sort manifest
This commit is contained in:
parent
5b576fa8d3
commit
1e0c1cc818
10 changed files with 140 additions and 140 deletions
|
@ -13,11 +13,21 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "CMS",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
permissions: ["MANAGE_PRODUCTS"],
|
author: "Saleor Commerce",
|
||||||
|
brand: {
|
||||||
|
logo: {
|
||||||
|
default: `${apiBaseURL}/logo.png`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
id: "saleor.app.cms",
|
id: "saleor.app.cms",
|
||||||
|
name: "CMS",
|
||||||
|
permissions: ["MANAGE_PRODUCTS"],
|
||||||
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
webhooks: [
|
webhooks: [
|
||||||
productVariantCreatedWebhook.getWebhookManifest(apiBaseURL),
|
productVariantCreatedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
|
@ -25,16 +35,6 @@ export default createManifestHandler({
|
||||||
productVariantDeletedWebhook.getWebhookManifest(apiBaseURL),
|
productVariantDeletedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
productUpdatedWebhook.getWebhookManifest(apiBaseURL),
|
productUpdatedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
],
|
],
|
||||||
extensions: [],
|
|
||||||
author: "Saleor Commerce",
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
brand: {
|
|
||||||
logo: {
|
|
||||||
default: `${apiBaseURL}/logo.png`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -11,9 +11,23 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "CRM",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
|
author: "Saleor Commerce",
|
||||||
|
brand: {
|
||||||
|
logo: {
|
||||||
|
default: `${apiBaseURL}/logo.png`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [
|
||||||
|
/**
|
||||||
|
* Optionally, extend Dashboard with custom UIs
|
||||||
|
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
||||||
|
*/
|
||||||
|
],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
|
id: "saleor.app.crm",
|
||||||
|
name: "CRM",
|
||||||
permissions: [
|
permissions: [
|
||||||
"MANAGE_USERS",
|
"MANAGE_USERS",
|
||||||
/**
|
/**
|
||||||
|
@ -21,27 +35,13 @@ export default createManifestHandler({
|
||||||
* https://docs.saleor.io/docs/3.x/developer/permissions
|
* https://docs.saleor.io/docs/3.x/developer/permissions
|
||||||
*/
|
*/
|
||||||
],
|
],
|
||||||
id: "saleor.app.crm",
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
webhooks: [
|
webhooks: [
|
||||||
customerCreatedWebhook.getWebhookManifest(apiBaseURL),
|
customerCreatedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
customerMetadataUpdatedWebhook.getWebhookManifest(apiBaseURL),
|
customerMetadataUpdatedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
],
|
],
|
||||||
extensions: [
|
|
||||||
/**
|
|
||||||
* Optionally, extend Dashboard with custom UIs
|
|
||||||
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
|
||||||
*/
|
|
||||||
],
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
author: "Saleor Commerce",
|
|
||||||
brand: {
|
|
||||||
logo: {
|
|
||||||
default: `${apiBaseURL}/logo.png`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -9,11 +9,26 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "Data Importer",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
permissions: ["MANAGE_USERS"],
|
author: "Saleor Commerce",
|
||||||
|
brand: {
|
||||||
|
logo: {
|
||||||
|
default: `${apiBaseURL}/logo.png`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [
|
||||||
|
/**
|
||||||
|
* Optionally, extend Dashboard with custom UIs
|
||||||
|
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
||||||
|
*/
|
||||||
|
],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
id: "saleor.app.data-importer",
|
id: "saleor.app.data-importer",
|
||||||
|
name: "Data Importer",
|
||||||
|
permissions: ["MANAGE_USERS"],
|
||||||
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
webhooks: [
|
webhooks: [
|
||||||
/**
|
/**
|
||||||
|
@ -22,21 +37,6 @@ export default createManifestHandler({
|
||||||
* https://docs.saleor.io/docs/3.x/developer/api-reference/objects/webhook
|
* https://docs.saleor.io/docs/3.x/developer/api-reference/objects/webhook
|
||||||
*/
|
*/
|
||||||
],
|
],
|
||||||
extensions: [
|
|
||||||
/**
|
|
||||||
* Optionally, extend Dashboard with custom UIs
|
|
||||||
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
|
||||||
*/
|
|
||||||
],
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
author: "Saleor Commerce",
|
|
||||||
brand: {
|
|
||||||
logo: {
|
|
||||||
default: `${apiBaseURL}/logo.png`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -9,31 +9,31 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "Emails & Messages",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
permissions: ["MANAGE_ORDERS", "MANAGE_USERS"],
|
author: "Saleor Commerce",
|
||||||
id: "saleor.app.emails-and-messages",
|
brand: {
|
||||||
version: packageJson.version,
|
logo: {
|
||||||
|
default: `${apiBaseURL}/logo.png`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
extensions: [
|
extensions: [
|
||||||
/**
|
/**
|
||||||
* Optionally, extend Dashboard with custom UIs
|
* Optionally, extend Dashboard with custom UIs
|
||||||
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
||||||
*/
|
*/
|
||||||
],
|
],
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
id: "saleor.app.emails-and-messages",
|
||||||
author: "Saleor Commerce",
|
name: "Emails & Messages",
|
||||||
|
permissions: ["MANAGE_ORDERS", "MANAGE_USERS"],
|
||||||
/**
|
/**
|
||||||
* Requires 3.10 due to invoices event payload - in previous versions, order reference was missing
|
* Requires 3.10 due to invoices event payload - in previous versions, order reference was missing
|
||||||
*/
|
*/
|
||||||
requiredSaleorVersion: ">=3.10 <4",
|
requiredSaleorVersion: ">=3.10 <4",
|
||||||
brand: {
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
logo: {
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
default: `${apiBaseURL}/logo.png`,
|
version: packageJson.version,
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -11,27 +11,27 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "Invoices",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
permissions: ["MANAGE_ORDERS"],
|
|
||||||
id: "saleor.app.invoices",
|
|
||||||
version: packageJson.version,
|
|
||||||
webhooks: [invoiceRequestedWebhook.getWebhookManifest(apiBaseURL)],
|
|
||||||
extensions: [],
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
author: "Saleor Commerce",
|
author: "Saleor Commerce",
|
||||||
brand: {
|
brand: {
|
||||||
logo: {
|
logo: {
|
||||||
default: `${apiBaseURL}/logo.png`,
|
default: `${apiBaseURL}/logo.png`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
|
id: "saleor.app.invoices",
|
||||||
|
name: "Invoices",
|
||||||
|
permissions: ["MANAGE_ORDERS"],
|
||||||
/**
|
/**
|
||||||
* Requires 3.10 due to invoices event payload - in previous versions, order reference was missing
|
* Requires 3.10 due to invoices event payload - in previous versions, order reference was missing
|
||||||
*/
|
*/
|
||||||
requiredSaleorVersion: REQUIRED_SALEOR_VERSION,
|
requiredSaleorVersion: REQUIRED_SALEOR_VERSION,
|
||||||
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
|
version: packageJson.version,
|
||||||
|
webhooks: [invoiceRequestedWebhook.getWebhookManifest(apiBaseURL)],
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -15,27 +15,27 @@ const handler = createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: "saleor.app.klaviyo",
|
|
||||||
version: pkg.version,
|
|
||||||
name: "Klaviyo",
|
|
||||||
permissions: ["MANAGE_USERS", "MANAGE_ORDERS"],
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
webhooks: [
|
|
||||||
customerCreatedWebhook.getWebhookManifest(apiBaseURL),
|
|
||||||
fulfillmentCreatedWebhook.getWebhookManifest(apiBaseURL),
|
|
||||||
orderCreatedWebhook.getWebhookManifest(apiBaseURL),
|
|
||||||
orderFullyPaidWebhook.getWebhookManifest(apiBaseURL),
|
|
||||||
],
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
author: "Saleor Commerce",
|
author: "Saleor Commerce",
|
||||||
brand: {
|
brand: {
|
||||||
logo: {
|
logo: {
|
||||||
default: `${apiBaseURL}/logo.png`,
|
default: `${apiBaseURL}/logo.png`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
|
id: "saleor.app.klaviyo",
|
||||||
|
name: "Klaviyo",
|
||||||
|
permissions: ["MANAGE_USERS", "MANAGE_ORDERS"],
|
||||||
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
|
version: pkg.version,
|
||||||
|
webhooks: [
|
||||||
|
customerCreatedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
|
fulfillmentCreatedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
|
orderCreatedWebhook.getWebhookManifest(apiBaseURL),
|
||||||
|
orderFullyPaidWebhook.getWebhookManifest(apiBaseURL),
|
||||||
|
],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,11 +14,21 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "Product Feed",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
permissions: ["MANAGE_PRODUCTS"],
|
author: "Saleor Commerce",
|
||||||
|
brand: {
|
||||||
|
logo: {
|
||||||
|
default: `${apiBaseURL}/logo.png`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
id: "saleor.app.product-feed",
|
id: "saleor.app.product-feed",
|
||||||
|
name: "Product Feed",
|
||||||
|
permissions: ["MANAGE_PRODUCTS"],
|
||||||
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
webhooks: [
|
webhooks: [
|
||||||
webhookProductCreated.getWebhookManifest(apiBaseURL),
|
webhookProductCreated.getWebhookManifest(apiBaseURL),
|
||||||
|
@ -27,16 +37,6 @@ export default createManifestHandler({
|
||||||
webhookProductVariantDeleted.getWebhookManifest(apiBaseURL),
|
webhookProductVariantDeleted.getWebhookManifest(apiBaseURL),
|
||||||
webhookProductVariantUpdated.getWebhookManifest(apiBaseURL),
|
webhookProductVariantUpdated.getWebhookManifest(apiBaseURL),
|
||||||
],
|
],
|
||||||
extensions: [],
|
|
||||||
author: "Saleor Commerce",
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
brand: {
|
|
||||||
logo: {
|
|
||||||
default: `${apiBaseURL}/logo.png`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -15,9 +15,22 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "Search",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
|
brand: {
|
||||||
|
logo: {
|
||||||
|
default: `${apiBaseURL}/logo.png`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [
|
||||||
|
/**
|
||||||
|
* Optionally, extend Dashboard with custom UIs
|
||||||
|
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
||||||
|
*/
|
||||||
|
],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
|
id: "saleor.app.search",
|
||||||
|
name: "Search",
|
||||||
permissions: [
|
permissions: [
|
||||||
/**
|
/**
|
||||||
* Set permissions for app if needed
|
* Set permissions for app if needed
|
||||||
|
@ -26,7 +39,8 @@ export default createManifestHandler({
|
||||||
"MANAGE_PRODUCTS",
|
"MANAGE_PRODUCTS",
|
||||||
"MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES",
|
"MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES",
|
||||||
],
|
],
|
||||||
id: "saleor.app.search",
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
webhooks: [
|
webhooks: [
|
||||||
/**
|
/**
|
||||||
|
@ -41,20 +55,6 @@ export default createManifestHandler({
|
||||||
webhookProductVariantDeleted.getWebhookManifest(apiBaseURL),
|
webhookProductVariantDeleted.getWebhookManifest(apiBaseURL),
|
||||||
webhookProductVariantUpdated.getWebhookManifest(apiBaseURL),
|
webhookProductVariantUpdated.getWebhookManifest(apiBaseURL),
|
||||||
],
|
],
|
||||||
extensions: [
|
|
||||||
/**
|
|
||||||
* Optionally, extend Dashboard with custom UIs
|
|
||||||
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
|
||||||
*/
|
|
||||||
],
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
brand: {
|
|
||||||
logo: {
|
|
||||||
default: `${apiBaseURL}/logo.png`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -10,23 +10,23 @@ const handler = createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "Slack",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
permissions: ["MANAGE_ORDERS"],
|
|
||||||
id: "saleor.app.slack",
|
|
||||||
version: packageJson.version,
|
|
||||||
webhooks: [orderCreatedWebhook.getWebhookManifest(apiBaseURL)],
|
|
||||||
extensions: [],
|
|
||||||
author: "Saleor Commerce",
|
author: "Saleor Commerce",
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
brand: {
|
brand: {
|
||||||
logo: {
|
logo: {
|
||||||
default: `${apiBaseURL}/logo.png`,
|
default: `${apiBaseURL}/logo.png`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
|
id: "saleor.app.slack",
|
||||||
|
name: "Slack",
|
||||||
|
permissions: ["MANAGE_ORDERS"],
|
||||||
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
|
version: packageJson.version,
|
||||||
|
webhooks: [orderCreatedWebhook.getWebhookManifest(apiBaseURL)],
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
|
@ -14,11 +14,22 @@ export default createManifestHandler({
|
||||||
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
const apiBaseURL = process.env.APP_API_BASE_URL ?? appBaseUrl;
|
||||||
|
|
||||||
const manifest: AppManifest = {
|
const manifest: AppManifest = {
|
||||||
name: "Taxes",
|
|
||||||
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
|
||||||
appUrl: iframeBaseUrl,
|
appUrl: iframeBaseUrl,
|
||||||
permissions: ["HANDLE_TAXES", "MANAGE_ORDERS"],
|
author: "Saleor Commerce",
|
||||||
|
brand: {
|
||||||
|
logo: {
|
||||||
|
default: `${apiBaseURL}/logo.png`,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
||||||
|
extensions: [],
|
||||||
|
homepageUrl: "https://github.com/saleor/apps",
|
||||||
id: "saleor.app.taxes",
|
id: "saleor.app.taxes",
|
||||||
|
name: "Taxes",
|
||||||
|
permissions: ["HANDLE_TAXES", "MANAGE_ORDERS"],
|
||||||
|
requiredSaleorVersion: REQUIRED_SALEOR_VERSION,
|
||||||
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
||||||
|
tokenTargetUrl: `${apiBaseURL}/api/register`,
|
||||||
version: packageJson.version,
|
version: packageJson.version,
|
||||||
webhooks: [
|
webhooks: [
|
||||||
orderCalculateTaxesSyncWebhook.getWebhookManifest(apiBaseURL),
|
orderCalculateTaxesSyncWebhook.getWebhookManifest(apiBaseURL),
|
||||||
|
@ -26,17 +37,6 @@ export default createManifestHandler({
|
||||||
orderCreatedAsyncWebhook.getWebhookManifest(apiBaseURL),
|
orderCreatedAsyncWebhook.getWebhookManifest(apiBaseURL),
|
||||||
orderFulfilledAsyncWebhook.getWebhookManifest(apiBaseURL),
|
orderFulfilledAsyncWebhook.getWebhookManifest(apiBaseURL),
|
||||||
],
|
],
|
||||||
extensions: [],
|
|
||||||
homepageUrl: "https://github.com/saleor/apps",
|
|
||||||
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
||||||
author: "Saleor Commerce",
|
|
||||||
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
|
||||||
requiredSaleorVersion: REQUIRED_SALEOR_VERSION,
|
|
||||||
brand: {
|
|
||||||
logo: {
|
|
||||||
default: `${apiBaseURL}/logo.png`,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return manifest;
|
return manifest;
|
||||||
|
|
Loading…
Reference in a new issue