@unchainedshop/platform 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/startPlatform.d.ts +1 -1
- package/lib/startPlatform.js +2 -1
- package/package.json +1 -1
package/lib/startPlatform.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type PlatformOptions = {
|
|
|
10
10
|
rolesOptions?: IRoleOptionConfig;
|
|
11
11
|
workQueueOptions?: SetupWorkqueueOptions;
|
|
12
12
|
} & Omit<UnchainedCoreOptions, 'migrationRepository' | 'db'> & Omit<UnchainedServerOptions, 'roles' | 'unchainedAPI'>;
|
|
13
|
-
export declare const startPlatform: ({ modules, services, options, rolesOptions, bulkImporter, workQueueOptions, ...arbitraryAPIServerConfiguration }: PlatformOptions) => Promise<{
|
|
13
|
+
export declare const startPlatform: ({ modules, services, options, rolesOptions, bulkImporter, bulkExporter, workQueueOptions, ...arbitraryAPIServerConfiguration }: PlatformOptions) => Promise<{
|
|
14
14
|
unchainedAPI: UnchainedCore;
|
|
15
15
|
graphqlHandler: any;
|
|
16
16
|
db: mongodb.Db;
|
package/lib/startPlatform.js
CHANGED
|
@@ -30,7 +30,7 @@ const existOnInvalidEnvironmentVariables = () => {
|
|
|
30
30
|
process.exit(1);
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
export const startPlatform = async ({ modules, services, options, rolesOptions, bulkImporter, workQueueOptions, ...arbitraryAPIServerConfiguration }) => {
|
|
33
|
+
export const startPlatform = async ({ modules, services, options, rolesOptions, bulkImporter, bulkExporter, workQueueOptions, ...arbitraryAPIServerConfiguration }) => {
|
|
34
34
|
const start = performance.now();
|
|
35
35
|
exitOnMissingEnvironmentVariables();
|
|
36
36
|
existOnInvalidEnvironmentVariables();
|
|
@@ -44,6 +44,7 @@ export const startPlatform = async ({ modules, services, options, rolesOptions,
|
|
|
44
44
|
modules,
|
|
45
45
|
services,
|
|
46
46
|
options,
|
|
47
|
+
bulkExporter,
|
|
47
48
|
});
|
|
48
49
|
setupAccounts(unchainedAPI);
|
|
49
50
|
setupTemplates(unchainedAPI);
|
package/package.json
CHANGED