Update sdk (#160)

This commit is contained in:
Lukasz Ostrowski 2023-02-15 13:01:19 +01:00 committed by GitHub
parent c786483f8b
commit b874d1065b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 46 additions and 169 deletions

View file

@ -0,0 +1,5 @@
---
"saleor-app-invoices": minor
---
Add logging error in SaleorAsyncWebhook

View file

@ -0,0 +1,9 @@
---
"saleor-app-data-importer": patch
"saleor-app-invoices": patch
"saleor-app-klaviyo": patch
"saleor-app-search": patch
"saleor-app-slack": patch
---
Update @saleor/app-sdk to 0.29.0

View file

@ -19,7 +19,7 @@
"@material-ui/core": "^4.12.4", "@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3", "@material-ui/icons": "^4.11.3",
"@material-ui/lab": "4.0.0-alpha.61", "@material-ui/lab": "4.0.0-alpha.61",
"@saleor/app-sdk": "0.26.1", "@saleor/app-sdk": "0.29.0",
"@saleor/macaw-ui": "^0.7.2", "@saleor/macaw-ui": "^0.7.2",
"@urql/exchange-auth": "^1.0.0", "@urql/exchange-auth": "^1.0.0",
"@vitejs/plugin-react": "^3.1.0", "@vitejs/plugin-react": "^3.1.0",

View file

@ -19,7 +19,7 @@
"@material-ui/core": "^4.12.4", "@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3", "@material-ui/icons": "^4.11.3",
"@material-ui/lab": "4.0.0-alpha.61", "@material-ui/lab": "4.0.0-alpha.61",
"@saleor/app-sdk": "0.27.1", "@saleor/app-sdk": "0.29.0",
"@saleor/macaw-ui": "^0.7.2", "@saleor/macaw-ui": "^0.7.2",
"@sentry/nextjs": "^7.36.0", "@sentry/nextjs": "^7.36.0",
"@tanstack/react-query": "^4.24.4", "@tanstack/react-query": "^4.24.4",

View file

@ -15,9 +15,9 @@ import {
import { MicroinvoiceInvoiceGenerator } from "../../../modules/invoice-generator/microinvoice/microinvoice-invoice-generator"; import { MicroinvoiceInvoiceGenerator } from "../../../modules/invoice-generator/microinvoice/microinvoice-invoice-generator";
import { hashInvoiceFilename } from "../../../modules/invoice-file-name/hash-invoice-filename"; import { hashInvoiceFilename } from "../../../modules/invoice-file-name/hash-invoice-filename";
import { resolveTempPdfFileLocation } from "../../../modules/invoice-file-name/resolve-temp-pdf-file-location"; import { resolveTempPdfFileLocation } from "../../../modules/invoice-file-name/resolve-temp-pdf-file-location";
import { appConfigurationRouter } from "../../../modules/app-configuration/app-configuration.router";
import { createLogger } from "../../../lib/logger"; import { createLogger } from "../../../lib/logger";
import { GetAppConfigurationService } from "../../../modules/app-configuration/get-app-configuration.service"; import { GetAppConfigurationService } from "../../../modules/app-configuration/get-app-configuration.service";
import { SALEOR_API_URL_HEADER } from "@saleor/app-sdk/const";
const OrderPayload = gql` const OrderPayload = gql`
fragment Address on Address { fragment Address on Address {
@ -125,6 +125,13 @@ export const invoiceRequestedWebhook = new SaleorAsyncWebhook<InvoiceRequestedPa
asyncEvent: "INVOICE_REQUESTED", asyncEvent: "INVOICE_REQUESTED",
apl: saleorApp.apl, apl: saleorApp.apl,
subscriptionQueryAst: InvoiceRequestedSubscription, subscriptionQueryAst: InvoiceRequestedSubscription,
onError(error, req, res) {
const saleorApiUrl = req.headers[SALEOR_API_URL_HEADER] as string;
const logger = createLogger({ domain: saleorApiUrl });
logger.error(error);
},
}); });
const invoiceNumberGenerator = new InvoiceNumberGenerator(); const invoiceNumberGenerator = new InvoiceNumberGenerator();

View file

@ -18,7 +18,7 @@
"@material-ui/core": "^4.12.4", "@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3", "@material-ui/icons": "^4.11.3",
"@material-ui/lab": "4.0.0-alpha.61", "@material-ui/lab": "4.0.0-alpha.61",
"@saleor/app-sdk": "~0.27.1", "@saleor/app-sdk": "0.29.0",
"@saleor/macaw-ui": "^0.7.2", "@saleor/macaw-ui": "^0.7.2",
"@sentry/nextjs": "^7.36.0", "@sentry/nextjs": "^7.36.0",
"@urql/exchange-auth": "^1.0.0", "@urql/exchange-auth": "^1.0.0",

View file

@ -17,7 +17,7 @@
"@material-ui/core": "^4.12.4", "@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3", "@material-ui/icons": "^4.11.3",
"@material-ui/lab": "4.0.0-alpha.61", "@material-ui/lab": "4.0.0-alpha.61",
"@saleor/app-sdk": "0.27.1", "@saleor/app-sdk": "0.29.0",
"@saleor/macaw-ui": "0.7.2", "@saleor/macaw-ui": "0.7.2",
"@sentry/nextjs": "^7.31.1", "@sentry/nextjs": "^7.31.1",
"@types/debug": "^4.1.7", "@types/debug": "^4.1.7",

View file

@ -17,7 +17,7 @@
"@material-ui/core": "^4.12.4", "@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.11.3", "@material-ui/icons": "^4.11.3",
"@material-ui/lab": "4.0.0-alpha.61", "@material-ui/lab": "4.0.0-alpha.61",
"@saleor/app-sdk": "0.27.1", "@saleor/app-sdk": "0.29.0",
"@saleor/macaw-ui": "^0.7.2", "@saleor/macaw-ui": "^0.7.2",
"@sentry/nextjs": "^7.30.0", "@sentry/nextjs": "^7.30.0",
"@urql/exchange-auth": "^1.0.0", "@urql/exchange-auth": "^1.0.0",

File diff suppressed because it is too large Load diff