@wix/auto_sdk_data_movement-workflows 1.0.0
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/build/cjs/index.d.ts +48 -0
- package/build/cjs/index.js +573 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1003 -0
- package/build/cjs/index.typings.js +475 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +759 -0
- package/build/cjs/meta.js +394 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/schemas.d.ts +478 -0
- package/build/cjs/schemas.js +748 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +48 -0
- package/build/es/index.mjs +533 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1003 -0
- package/build/es/index.typings.mjs +436 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +759 -0
- package/build/es/meta.mjs +354 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/schemas.d.mts +478 -0
- package/build/es/schemas.mjs +704 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +48 -0
- package/build/internal/cjs/index.js +573 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1014 -0
- package/build/internal/cjs/index.typings.js +475 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +759 -0
- package/build/internal/cjs/meta.js +394 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/schemas.d.ts +478 -0
- package/build/internal/cjs/schemas.js +748 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +48 -0
- package/build/internal/es/index.mjs +533 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1014 -0
- package/build/internal/es/index.typings.mjs +436 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +759 -0
- package/build/internal/es/meta.mjs +354 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/build/internal/es/schemas.d.mts +478 -0
- package/build/internal/es/schemas.mjs +704 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +61 -0
- package/schemas/package.json +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/hub-v1-workflow-movement-workflows.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const CreateWorkflowRequest = z.object({\n workflow: z\n .object({\n _id: z\n .string()\n .describe('Workflow ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Revision number incremented on each workflow update.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time when the workflow was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time when the workflow was last updated.')\n .optional()\n .nullable(),\n status: z.enum(['UNINITIALIZED', 'RUNNING', 'FINISHED']).optional(),\n specs: z\n .array(\n z.intersection(\n z.object({\n source: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the data collection.')\n .min(1)\n .max(256)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter to apply to the items. Only items that pass the filter are moved.\\n\\nLearn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).'\n )\n .optional()\n .nullable(),\n fields: z.array(z.string()).optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z\n .array(z.string())\n .min(2)\n .max(64)\n .optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe(\n 'File format. If not specified, automatically determined by Wix.'\n )\n .optional(),\n fileId: z\n .string()\n .describe(\n \"File ID as returned in the `fileId` property of the Create File Upload URL method's response.\"\n )\n .max(512)\n .optional(),\n url: z\n .string()\n .describe(\n 'URL where the source file is uploaded. Automatically generated by Wix.'\n )\n .max(2048)\n .optional(),\n })\n .describe(\n 'Source file.\\n\\nYou can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\\n\\nTo upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\\n\\n`curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`'\n ),\n }),\n ])\n )\n .describe('Source to read data from.')\n .optional(),\n destination: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the destination collection.')\n .max(256)\n .optional(),\n writePolicy: z\n .enum([\n 'OVERWRITE',\n 'SKIP_EXISTING',\n 'TRUNCATE_BEFORE',\n ])\n .describe(\n 'When items already exist in the destination collection, the data writing policy.\\n\\nDefault: `OVERWRITE`.'\n )\n .optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z\n .array(z.string())\n .min(2)\n .max(64)\n .optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe('File format.')\n .optional(),\n fileName: z\n .string()\n .describe('File name.')\n .max(512)\n .optional()\n .nullable(),\n url: z\n .string()\n .describe('File download URL.')\n .max(2048)\n .optional(),\n })\n .describe('Downloadable file with the moved items.'),\n }),\n ])\n )\n .describe('Destination to write data to.')\n .optional(),\n }),\n z.xor([\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z.never().optional(),\n }),\n z.object({\n destinationSiteId: z.never().optional(),\n sourceSiteId: z\n .string()\n .describe('Site ID to read from instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z\n .string()\n .describe('Site ID to write to instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n )\n .min(1)\n .max(100),\n })\n .describe('Workflow to create.'),\n});\nexport const CreateWorkflowResponse = z.object({\n _id: z\n .string()\n .describe('Workflow ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Revision number incremented on each workflow update.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time when the workflow was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time when the workflow was last updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['UNINITIALIZED', 'RUNNING', 'FINISHED'])\n .describe('Current workflow lifecycle status.')\n .optional(),\n specs: z\n .array(\n z.intersection(\n z.object({\n source: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the data collection.')\n .min(1)\n .max(256)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter to apply to the items. Only items that pass the filter are moved.\\n\\nLearn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).'\n )\n .optional()\n .nullable(),\n fields: z.array(z.string()).optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z.array(z.string()).min(2).max(64).optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe(\n 'File format. If not specified, automatically determined by Wix.'\n )\n .optional(),\n fileId: z\n .string()\n .describe(\n \"File ID as returned in the `fileId` property of the Create File Upload URL method's response.\"\n )\n .max(512)\n .optional(),\n url: z\n .string()\n .describe(\n 'URL where the source file is uploaded. Automatically generated by Wix.'\n )\n .max(2048)\n .optional(),\n })\n .describe(\n 'Source file.\\n\\nYou can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\\n\\nTo upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\\n\\n`curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`'\n ),\n }),\n ])\n )\n .describe('Source to read data from.')\n .optional(),\n destination: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the destination collection.')\n .max(256)\n .optional(),\n writePolicy: z\n .enum(['OVERWRITE', 'SKIP_EXISTING', 'TRUNCATE_BEFORE'])\n .describe(\n 'When items already exist in the destination collection, the data writing policy.\\n\\nDefault: `OVERWRITE`.'\n )\n .optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z.array(z.string()).min(2).max(64).optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe('File format.')\n .optional(),\n fileName: z\n .string()\n .describe('File name.')\n .max(512)\n .optional()\n .nullable(),\n url: z\n .string()\n .describe('File download URL.')\n .max(2048)\n .optional(),\n })\n .describe('Downloadable file with the moved items.'),\n }),\n ])\n )\n .describe('Destination to write data to.')\n .optional(),\n }),\n z.xor([\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z.never().optional(),\n }),\n z.object({\n destinationSiteId: z.never().optional(),\n sourceSiteId: z\n .string()\n .describe('Site ID to read from instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z\n .string()\n .describe('Site ID to write to instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n )\n .min(1)\n .max(100)\n .optional(),\n});\nexport const GetWorkflowRequest = z.object({\n workflowId: z\n .string()\n .describe('ID of the workflow to retrieve.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetWorkflowResponse = z.object({\n _id: z\n .string()\n .describe('Workflow ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Revision number incremented on each workflow update.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time when the workflow was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time when the workflow was last updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['UNINITIALIZED', 'RUNNING', 'FINISHED'])\n .describe('Current workflow lifecycle status.')\n .optional(),\n specs: z\n .array(\n z.intersection(\n z.object({\n source: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the data collection.')\n .min(1)\n .max(256)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter to apply to the items. Only items that pass the filter are moved.\\n\\nLearn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).'\n )\n .optional()\n .nullable(),\n fields: z.array(z.string()).optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z.array(z.string()).min(2).max(64).optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe(\n 'File format. If not specified, automatically determined by Wix.'\n )\n .optional(),\n fileId: z\n .string()\n .describe(\n \"File ID as returned in the `fileId` property of the Create File Upload URL method's response.\"\n )\n .max(512)\n .optional(),\n url: z\n .string()\n .describe(\n 'URL where the source file is uploaded. Automatically generated by Wix.'\n )\n .max(2048)\n .optional(),\n })\n .describe(\n 'Source file.\\n\\nYou can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\\n\\nTo upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\\n\\n`curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`'\n ),\n }),\n ])\n )\n .describe('Source to read data from.')\n .optional(),\n destination: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the destination collection.')\n .max(256)\n .optional(),\n writePolicy: z\n .enum(['OVERWRITE', 'SKIP_EXISTING', 'TRUNCATE_BEFORE'])\n .describe(\n 'When items already exist in the destination collection, the data writing policy.\\n\\nDefault: `OVERWRITE`.'\n )\n .optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z.array(z.string()).min(2).max(64).optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe('File format.')\n .optional(),\n fileName: z\n .string()\n .describe('File name.')\n .max(512)\n .optional()\n .nullable(),\n url: z\n .string()\n .describe('File download URL.')\n .max(2048)\n .optional(),\n })\n .describe('Downloadable file with the moved items.'),\n }),\n ])\n )\n .describe('Destination to write data to.')\n .optional(),\n }),\n z.xor([\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z.never().optional(),\n }),\n z.object({\n destinationSiteId: z.never().optional(),\n sourceSiteId: z\n .string()\n .describe('Site ID to read from instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z\n .string()\n .describe('Site ID to write to instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n )\n .min(1)\n .max(100)\n .optional(),\n});\nexport const QueryWorkflowsRequest = z.object({\n query: z\n .intersection(\n z.object({\n filter: z\n .record(z.string(), z.any())\n .describe('Filter object.')\n .optional()\n .nullable(),\n sort: z\n .array(\n z.object({\n fieldName: z\n .string()\n .describe('Name of the field to sort by.')\n .max(512)\n .optional(),\n order: z.enum(['ASC', 'DESC']).optional(),\n })\n )\n .max(5)\n .optional(),\n }),\n z.xor([\n z.object({ cursorPaging: z.never().optional() }),\n z.object({\n cursorPaging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Maximum number of items to return.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n cursor: z\n .string()\n .describe('Cursor token from a previous response.')\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Cursor paging options.'),\n }),\n ])\n )\n .describe('Query options.'),\n});\nexport const QueryWorkflowsResponse = z.object({\n workflows: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Workflow ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Revision number incremented on each workflow update.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time when the workflow was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time when the workflow was last updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['UNINITIALIZED', 'RUNNING', 'FINISHED'])\n .describe('Current workflow lifecycle status.')\n .optional(),\n specs: z\n .array(\n z.intersection(\n z.object({\n source: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the data collection.')\n .min(1)\n .max(256)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter to apply to the items. Only items that pass the filter are moved.\\n\\nLearn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).'\n )\n .optional()\n .nullable(),\n fields: z.array(z.string()).optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z\n .array(z.string())\n .min(2)\n .max(64)\n .optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe(\n 'File format. If not specified, automatically determined by Wix.'\n )\n .optional(),\n fileId: z\n .string()\n .describe(\n \"File ID as returned in the `fileId` property of the Create File Upload URL method's response.\"\n )\n .max(512)\n .optional(),\n url: z\n .string()\n .describe(\n 'URL where the source file is uploaded. Automatically generated by Wix.'\n )\n .max(2048)\n .optional(),\n })\n .describe(\n 'Source file.\\n\\nYou can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\\n\\nTo upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\\n\\n`curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`'\n ),\n }),\n ])\n )\n .describe('Source to read data from.')\n .optional(),\n destination: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the destination collection.')\n .max(256)\n .optional(),\n writePolicy: z\n .enum([\n 'OVERWRITE',\n 'SKIP_EXISTING',\n 'TRUNCATE_BEFORE',\n ])\n .describe(\n 'When items already exist in the destination collection, the data writing policy.\\n\\nDefault: `OVERWRITE`.'\n )\n .optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z\n .array(z.string())\n .min(2)\n .max(64)\n .optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe('File format.')\n .optional(),\n fileName: z\n .string()\n .describe('File name.')\n .max(512)\n .optional()\n .nullable(),\n url: z\n .string()\n .describe('File download URL.')\n .max(2048)\n .optional(),\n })\n .describe('Downloadable file with the moved items.'),\n }),\n ])\n )\n .describe('Destination to write data to.')\n .optional(),\n }),\n z.xor([\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z.never().optional(),\n }),\n z.object({\n destinationSiteId: z.never().optional(),\n sourceSiteId: z\n .string()\n .describe(\n 'Site ID to read from instead of the current site.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z\n .string()\n .describe(\n 'Site ID to write to instead of the current site.'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n )\n .min(1)\n .max(100)\n .optional(),\n })\n )\n .optional(),\n pagingMetadata: z\n .object({\n count: z\n .number()\n .int()\n .describe('Number of items returned in the current page.')\n .optional()\n .nullable(),\n cursors: z\n .object({\n next: z\n .string()\n .describe('Cursor pointing to the next page.')\n .max(16000)\n .optional()\n .nullable(),\n prev: z\n .string()\n .describe('Cursor pointing to the previous page.')\n .max(16000)\n .optional()\n .nullable(),\n })\n .describe('Cursor values for navigating between pages.')\n .optional(),\n hasNext: z\n .boolean()\n .describe('Whether another page can be retrieved.')\n .optional()\n .nullable(),\n })\n .describe('Cursor paging metadata for the current result set.')\n .optional(),\n});\nexport const TerminateWorkflowRequest = z.object({\n workflowId: z\n .string()\n .describe('ID of the workflow to terminate.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const TerminateWorkflowResponse = z.object({\n workflow: z\n .object({\n _id: z\n .string()\n .describe('Workflow ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe('Revision number incremented on each workflow update.')\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time when the workflow was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time when the workflow was last updated.')\n .optional()\n .nullable(),\n status: z\n .enum(['UNINITIALIZED', 'RUNNING', 'FINISHED'])\n .describe('Current workflow lifecycle status.')\n .optional(),\n specs: z\n .array(\n z.intersection(\n z.object({\n source: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the data collection.')\n .min(1)\n .max(256)\n .optional(),\n filter: z\n .record(z.string(), z.any())\n .describe(\n 'Filter to apply to the items. Only items that pass the filter are moved.\\n\\nLearn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).'\n )\n .optional()\n .nullable(),\n fields: z.array(z.string()).optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z\n .array(z.string())\n .min(2)\n .max(64)\n .optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe(\n 'File format. If not specified, automatically determined by Wix.'\n )\n .optional(),\n fileId: z\n .string()\n .describe(\n \"File ID as returned in the `fileId` property of the Create File Upload URL method's response.\"\n )\n .max(512)\n .optional(),\n url: z\n .string()\n .describe(\n 'URL where the source file is uploaded. Automatically generated by Wix.'\n )\n .max(2048)\n .optional(),\n })\n .describe(\n 'Source file.\\n\\nYou can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\\n\\nTo upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\\n\\n`curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`'\n ),\n }),\n ])\n )\n .describe('Source to read data from.')\n .optional(),\n destination: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z.never().optional(),\n }),\n z.object({\n localization: z.never().optional(),\n file: z.never().optional(),\n wixDataCollection: z\n .object({\n collectionId: z\n .string()\n .describe('ID of the destination collection.')\n .max(256)\n .optional(),\n writePolicy: z\n .enum([\n 'OVERWRITE',\n 'SKIP_EXISTING',\n 'TRUNCATE_BEFORE',\n ])\n .describe(\n 'When items already exist in the destination collection, the data writing policy.\\n\\nDefault: `OVERWRITE`.'\n )\n .optional(),\n })\n .describe(\n 'Wix data collection.\\n\\nYou can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n file: z.never().optional(),\n localization: z\n .object({\n languages: z\n .array(z.string())\n .min(2)\n .max(64)\n .optional(),\n })\n .describe(\n 'Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\\n\\nLearn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).'\n ),\n }),\n z.object({\n wixDataCollection: z.never().optional(),\n localization: z.never().optional(),\n file: z\n .object({\n format: z\n .enum(['UNKNOWN', 'CSV', 'JSONL'])\n .describe('File format.')\n .optional(),\n fileName: z\n .string()\n .describe('File name.')\n .max(512)\n .optional()\n .nullable(),\n url: z\n .string()\n .describe('File download URL.')\n .max(2048)\n .optional(),\n })\n .describe('Downloadable file with the moved items.'),\n }),\n ])\n )\n .describe('Destination to write data to.')\n .optional(),\n }),\n z.xor([\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z.never().optional(),\n }),\n z.object({\n destinationSiteId: z.never().optional(),\n sourceSiteId: z\n .string()\n .describe('Site ID to read from instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n z.object({\n sourceSiteId: z.never().optional(),\n destinationSiteId: z\n .string()\n .describe('Site ID to write to instead of the current site.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n }),\n ])\n )\n )\n .min(1)\n .max(100)\n .optional(),\n })\n .describe('Terminated workflow.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,wBAA0B,SAAO;AAAA,EAC5C,UACG,SAAO;AAAA,IACN,KACG,SAAO,EACP,SAAS,cAAc,EACvB;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS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,CAAC;AAAA,UACC,SAAO;AAAA,YACP,mBAAqB,QAAM,EAAE,SAAS;AAAA,YACtC,cACG,SAAO,EACP,SAAS,mDAAmD,EAC5D;AAAA,cACC;AAAA,cACA;AAAA,YACF;AAAA,UACJ,CAAC;AAAA,UACC,SAAO;AAAA,YACP,cAAgB,QAAM,EAAE,SAAS;AAAA,YACjC,mBACG,SAAO,EACP,SAAS,kDAAkD,EAC3D;AAAA,cACC;AAAA,cACA;AAAA,YACF;AAAA,UACJ,CAAC;AAAA,QACH,CAAC;AAAA,MACH;AAAA,IACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS;AAAA,EACd,CAAC,EACA,SAAS,sBAAsB,EAC/B,SAAS;AACd,CAAC;","names":[]}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { Workflow, TerminateWorkflowResponse, WorkflowCreatedEnvelope, WorkflowUpdatedEnvelope, WorkflowsQueryBuilder, WorkflowQuery, typedQueryWorkflows } from './index.typings.js';
|
|
3
|
+
export { AccountInfo, AccountInfoMetadata, ActionEvent, BaseEventMetadata, CommonQueryWithEntityContext, CreateWorkflowRequest, CreateWorkflowResponse, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DataMovementJobLogs, Destination, DestinationDestinationOneOf, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalFileSource, Field, FieldType, FieldTypeWithLiterals, FileDestination, FileFormat, FileFormatWithLiterals, FileSource, GetWorkflowRequest, GetWorkflowResponse, GoogleSheetsSource, IdentificationData, IdentificationDataIdOneOf, JobSpec, JobSpecSiteOverrideOneOf, LocalizationDestination, LocalizationSource, MediaType, MediaTypeWithLiterals, MessageEnvelope, QueryWorkflowsRequest, QueryWorkflowsResponse, RestoreInfo, Schema, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceSourceOneOf, Status, StatusWithLiterals, StoresCatalogProductsDestination, TerminateWorkflowRequest, TestDestination, TestSource, TestTransformation, Transformation, TransformationTransformationOneOf, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixDataCollectionDefinitionDestination, WixDataCollectionDefinitionSource, WixDataDestination, WixDataDestinationWritePolicy, WixDataDestinationWritePolicyWithLiterals, WixDataEnvironment, WixDataEnvironmentWithLiterals, WixDataSource, WixMediaDestination, WixMediaDestinationWritePolicy, WixMediaDestinationWritePolicyWithLiterals, WixMediaSource, WorkflowQuerySpec, WorkflowsQueryResult, WritePolicy, WritePolicyWithLiterals, utils } from './index.typings.js';
|
|
4
|
+
|
|
5
|
+
declare function createWorkflow$1(httpClient: HttpClient): CreateWorkflowSignature;
|
|
6
|
+
interface CreateWorkflowSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a workflow and persists its immutable execution plan.
|
|
9
|
+
* @param - Workflow to create.
|
|
10
|
+
* @returns Created workflow.
|
|
11
|
+
*/
|
|
12
|
+
(workflow: NonNullablePaths<Workflow, `specs`, 2>): Promise<NonNullablePaths<Workflow, `_id` | `status` | `specs` | `specs.${number}.sourceSiteId` | `specs.${number}.destinationSiteId` | `specs.${number}.source.wixDataCollection.collectionId` | `specs.${number}.source.file.format` | `specs.${number}.source.file.fileId` | `specs.${number}.source.file.url` | `specs.${number}.destination.wixDataCollection.collectionId` | `specs.${number}.destination.wixDataCollection.writePolicy` | `specs.${number}.destination.file.format` | `specs.${number}.destination.file.url`, 6>>;
|
|
13
|
+
}
|
|
14
|
+
declare function getWorkflow$1(httpClient: HttpClient): GetWorkflowSignature;
|
|
15
|
+
interface GetWorkflowSignature {
|
|
16
|
+
/**
|
|
17
|
+
* Retrieves a workflow by ID.
|
|
18
|
+
* @param - ID of the workflow to retrieve.
|
|
19
|
+
* @returns Retrieved workflow.
|
|
20
|
+
*/
|
|
21
|
+
(workflowId: string): Promise<NonNullablePaths<Workflow, `_id` | `status` | `specs` | `specs.${number}.sourceSiteId` | `specs.${number}.destinationSiteId` | `specs.${number}.source.wixDataCollection.collectionId` | `specs.${number}.source.file.format` | `specs.${number}.source.file.fileId` | `specs.${number}.source.file.url` | `specs.${number}.destination.wixDataCollection.collectionId` | `specs.${number}.destination.wixDataCollection.writePolicy` | `specs.${number}.destination.file.format` | `specs.${number}.destination.file.url`, 6>>;
|
|
22
|
+
}
|
|
23
|
+
declare function terminateWorkflow$1(httpClient: HttpClient): TerminateWorkflowSignature;
|
|
24
|
+
interface TerminateWorkflowSignature {
|
|
25
|
+
/**
|
|
26
|
+
* Terminates a workflow and prevents further step creation.
|
|
27
|
+
* @param - ID of the workflow to terminate.
|
|
28
|
+
* @returns Terminate workflow response.
|
|
29
|
+
*/
|
|
30
|
+
(workflowId: string): Promise<NonNullablePaths<TerminateWorkflowResponse, `workflow._id` | `workflow.status` | `workflow.specs` | `workflow.specs.${number}.sourceSiteId` | `workflow.specs.${number}.destinationSiteId` | `workflow.specs.${number}.source.wixDataCollection.collectionId` | `workflow.specs.${number}.source.file.format` | `workflow.specs.${number}.source.file.fileId` | `workflow.specs.${number}.source.file.url` | `workflow.specs.${number}.destination.wixDataCollection.collectionId` | `workflow.specs.${number}.destination.wixDataCollection.writePolicy` | `workflow.specs.${number}.destination.file.format` | `workflow.specs.${number}.destination.file.url`, 7>>;
|
|
31
|
+
}
|
|
32
|
+
declare const onWorkflowCreated$1: EventDefinition<WorkflowCreatedEnvelope, "wix.hub.v1.workflow_created">;
|
|
33
|
+
declare const onWorkflowUpdated$1: EventDefinition<WorkflowUpdatedEnvelope, "wix.hub.v1.workflow_updated">;
|
|
34
|
+
|
|
35
|
+
declare function customQueryWorkflows(httpClient: HttpClient): {
|
|
36
|
+
(): WorkflowsQueryBuilder;
|
|
37
|
+
(query: WorkflowQuery): ReturnType<typeof typedQueryWorkflows>;
|
|
38
|
+
};
|
|
39
|
+
declare const createWorkflow: MaybeContext<BuildRESTFunction<typeof createWorkflow$1> & typeof createWorkflow$1>;
|
|
40
|
+
declare const getWorkflow: MaybeContext<BuildRESTFunction<typeof getWorkflow$1> & typeof getWorkflow$1>;
|
|
41
|
+
declare const terminateWorkflow: MaybeContext<BuildRESTFunction<typeof terminateWorkflow$1> & typeof terminateWorkflow$1>;
|
|
42
|
+
declare const queryWorkflows: MaybeContext<BuildRESTFunction<typeof customQueryWorkflows> & typeof customQueryWorkflows>;
|
|
43
|
+
/** */
|
|
44
|
+
declare const onWorkflowCreated: BuildEventDefinition<typeof onWorkflowCreated$1> & typeof onWorkflowCreated$1;
|
|
45
|
+
/** */
|
|
46
|
+
declare const onWorkflowUpdated: BuildEventDefinition<typeof onWorkflowUpdated$1> & typeof onWorkflowUpdated$1;
|
|
47
|
+
|
|
48
|
+
export { TerminateWorkflowResponse, Workflow, WorkflowCreatedEnvelope, WorkflowQuery, WorkflowUpdatedEnvelope, WorkflowsQueryBuilder, createWorkflow, getWorkflow, onWorkflowCreated, onWorkflowUpdated, queryWorkflows, terminateWorkflow };
|