2023-03-09 08:14:29 +00:00
|
|
|
import { createManifestHandler } from "@saleor/app-sdk/handlers/next";
|
|
|
|
import { AppManifest } from "@saleor/app-sdk/types";
|
|
|
|
|
|
|
|
import packageJson from "../../../package.json";
|
|
|
|
|
|
|
|
export default createManifestHandler({
|
|
|
|
async manifestFactory(context) {
|
|
|
|
const manifest: AppManifest = {
|
2023-06-30 12:01:46 +00:00
|
|
|
about:
|
|
|
|
"Emails & Messages App is a multi-vendor Saleor app that integrates with notification services.",
|
2023-03-09 08:14:29 +00:00
|
|
|
appUrl: context.appBaseUrl,
|
2023-06-30 12:01:46 +00:00
|
|
|
author: "Saleor Commerce",
|
|
|
|
brand: {
|
|
|
|
logo: {
|
|
|
|
default: `${context.appBaseUrl}/logo.png`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataPrivacyUrl: "https://saleor.io/legal/privacy/",
|
2023-03-09 08:14:29 +00:00
|
|
|
extensions: [
|
|
|
|
/**
|
|
|
|
* Optionally, extend Dashboard with custom UIs
|
|
|
|
* https://docs.saleor.io/docs/3.x/developer/extending/apps/extending-dashboard-with-apps
|
|
|
|
*/
|
|
|
|
],
|
2023-04-18 12:04:14 +00:00
|
|
|
homepageUrl: "https://github.com/saleor/apps",
|
2023-06-30 12:01:46 +00:00
|
|
|
id: "saleor.app.emails-and-messages",
|
|
|
|
name: "Emails & Messages",
|
|
|
|
permissions: ["MANAGE_ORDERS", "MANAGE_USERS"],
|
2023-03-27 13:53:07 +00:00
|
|
|
/**
|
|
|
|
* Requires 3.10 due to invoices event payload - in previous versions, order reference was missing
|
|
|
|
*/
|
|
|
|
requiredSaleorVersion: ">=3.10 <4",
|
2023-06-30 12:01:46 +00:00
|
|
|
supportUrl: "https://github.com/saleor/apps/discussions",
|
|
|
|
tokenTargetUrl: `${context.appBaseUrl}/api/register`,
|
|
|
|
version: packageJson.version,
|
2023-03-09 08:14:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
return manifest;
|
|
|
|
},
|
|
|
|
});
|