@wix/auto_sdk_automations_activations 1.0.127 → 1.0.129
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 +12 -3
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +13 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +12 -1
- package/build/cjs/schemas.js +25 -2
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +12 -3
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +13 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +12 -1
- package/build/es/schemas.mjs +22 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +0 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1 -1
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +12 -1
- package/build/internal/cjs/schemas.js +25 -2
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +0 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1 -1
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +12 -1
- package/build/internal/es/schemas.mjs +22 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/schemas.d.ts
CHANGED
|
@@ -84,6 +84,17 @@ declare const CancelEventRequest: z.ZodObject<{
|
|
|
84
84
|
externalEntityId: z.ZodString;
|
|
85
85
|
}, z.core.$strip>;
|
|
86
86
|
declare const CancelEventResponse: z.ZodObject<{}, z.core.$strip>;
|
|
87
|
+
declare const RerunActivationRequest: z.ZodObject<{
|
|
88
|
+
activationId: z.ZodString;
|
|
89
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
skipDelays: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
declare const RerunActivationResponse: z.ZodObject<{
|
|
96
|
+
activationId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
87
98
|
declare const ReportActionInvocationCompletedRequest: z.ZodObject<{
|
|
88
99
|
status: z.ZodEnum<{
|
|
89
100
|
UNKNOWN_STATUS: "UNKNOWN_STATUS";
|
|
@@ -108,4 +119,4 @@ declare const ReportActionInvocationCompletedRequest: z.ZodObject<{
|
|
|
108
119
|
}, z.core.$strip>;
|
|
109
120
|
declare const ReportActionInvocationCompletedResponse: z.ZodObject<{}, z.core.$strip>;
|
|
110
121
|
|
|
111
|
-
export { BulkCancelEventRequest, BulkCancelEventResponse, BulkReportEventRequest, BulkReportEventResponse, CancelEventRequest, CancelEventResponse, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedResponse, ReportEventRequest, ReportEventResponse };
|
|
122
|
+
export { BulkCancelEventRequest, BulkCancelEventResponse, BulkReportEventRequest, BulkReportEventResponse, CancelEventRequest, CancelEventResponse, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedResponse, ReportEventRequest, ReportEventResponse, RerunActivationRequest, RerunActivationResponse };
|
package/build/cjs/schemas.js
CHANGED
|
@@ -39,7 +39,9 @@ __export(schemas_exports, {
|
|
|
39
39
|
ReportActionInvocationCompletedRequest: () => ReportActionInvocationCompletedRequest,
|
|
40
40
|
ReportActionInvocationCompletedResponse: () => ReportActionInvocationCompletedResponse,
|
|
41
41
|
ReportEventRequest: () => ReportEventRequest,
|
|
42
|
-
ReportEventResponse: () => ReportEventResponse
|
|
42
|
+
ReportEventResponse: () => ReportEventResponse,
|
|
43
|
+
RerunActivationRequest: () => RerunActivationRequest,
|
|
44
|
+
RerunActivationResponse: () => RerunActivationResponse
|
|
43
45
|
});
|
|
44
46
|
module.exports = __toCommonJS(schemas_exports);
|
|
45
47
|
|
|
@@ -202,6 +204,25 @@ var CancelEventRequest = z.object({
|
|
|
202
204
|
)
|
|
203
205
|
});
|
|
204
206
|
var CancelEventResponse = z.object({});
|
|
207
|
+
var RerunActivationRequest = z.object({
|
|
208
|
+
activationId: z.string().describe("The activation ID whose payload will be used for the rerun.").regex(
|
|
209
|
+
/^[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}$/,
|
|
210
|
+
"Must be a valid GUID"
|
|
211
|
+
),
|
|
212
|
+
options: z.object({
|
|
213
|
+
options: z.object({
|
|
214
|
+
skipDelays: z.boolean().describe(
|
|
215
|
+
"When true, delay actions will be skipped (similar to test mode behavior)."
|
|
216
|
+
).optional()
|
|
217
|
+
}).describe("Options controlling execution behavior.").optional()
|
|
218
|
+
}).optional()
|
|
219
|
+
});
|
|
220
|
+
var RerunActivationResponse = z.object({
|
|
221
|
+
activationId: z.string().describe("Activation ID generated (for tracking)").regex(
|
|
222
|
+
/^[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}$/,
|
|
223
|
+
"Must be a valid GUID"
|
|
224
|
+
).optional().nullable()
|
|
225
|
+
});
|
|
205
226
|
var ReportActionInvocationCompletedRequest = z.object({
|
|
206
227
|
status: z.enum(["UNKNOWN_STATUS", "SUCCESS", "FAILURE"]),
|
|
207
228
|
invocationToken: z.string().describe(
|
|
@@ -243,6 +264,8 @@ var ReportActionInvocationCompletedResponse = z.object({});
|
|
|
243
264
|
ReportActionInvocationCompletedRequest,
|
|
244
265
|
ReportActionInvocationCompletedResponse,
|
|
245
266
|
ReportEventRequest,
|
|
246
|
-
ReportEventResponse
|
|
267
|
+
ReportEventResponse,
|
|
268
|
+
RerunActivationRequest,
|
|
269
|
+
RerunActivationResponse
|
|
247
270
|
});
|
|
248
271
|
//# sourceMappingURL=schemas.js.map
|
package/build/cjs/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../schemas.ts","../../src/automations-v2-activation-activations.schemas.ts"],"sourcesContent":["export * from './src/automations-v2-activation-activations.schemas.js';\n","import * as z from 'zod';\n\nexport const ReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n options: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.\\n\\nKey names can include only alphanumeric characters or underscores\\n(`A-Z`, `a-z`, `0-9`, `_`).\\nThey cannot start with an underscore.\\n\\nValues can be strings, numbers, integers, booleans, or arrays.\\nIf a value is an array, the array items must be objects,\\nand nested object properties must be\\nstrings, numbers, integers, or booleans only.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nRequired if your app needs to\\n[cancel the event](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/cancel-event)\\nif the automation becomes no longer relevant.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#about-canceling-events)\\nfor more information.'\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 .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .optional(),\n});\nexport const ReportEventResponse = z.object({\n activationIds: z.array(z.string()).max(100).optional(),\n});\nexport const BulkReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n eventsInfo: z\n .array(\n z.object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\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 .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n )\n .min(1)\n .max(100),\n});\nexport const BulkReportEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key associated with the event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Metadata for the individual item in the request.')\n .optional(),\n eventInfo: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\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 .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .describe('Event details for the item in the request.')\n .optional(),\n activationIds: z.array(z.string()).max(100).optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const BulkCancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose events you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityIds: z.array(z.string()).min(1).max(100),\n});\nexport const BulkCancelEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key related to the canceled event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe(\n 'Metadata of the item, including its ID and success or failure status.'\n )\n .optional(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\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 })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const CancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose event you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#choose-the-right-externalentityid)\\nfor more information.'\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});\nexport const CancelEventResponse = z.object({});\nexport const ReportActionInvocationCompletedRequest = z.object({\n status: z.enum(['UNKNOWN_STATUS', 'SUCCESS', 'FAILURE']),\n invocationToken: z\n .string()\n .describe(\n \"Invocation token from Wix's original call to [Invoke](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/invoke). Wix uses this token to match your results with the correct automation run.\\n\\nLearn more about [running an invoked action with a timeout](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/sample-flow#run-an-invoked-action-with-a-timeout).\"\n )\n .max(2048),\n options: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z.never().optional(),\n }),\n z.object({\n failureInfo: z.never().optional(),\n successInfo: z\n .object({\n result: z\n .record(z.string(), z.any())\n .describe(\n \"Your action's results as specified in its [output schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#the-output-schema).\"\n )\n .optional()\n .nullable(),\n })\n .describe(\"When the `status` is `SUCCESS`, your action's results.\"),\n }),\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z\n .object({\n errorDescription: z\n .string()\n .describe('Why the action failed.')\n .max(1000)\n .optional(),\n })\n .describe('When the `status` is `FAILURE`, why the action failed.'),\n }),\n ])\n )\n .optional(),\n});\nexport const ReportActionInvocationCompletedResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,YACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,SACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,kBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,aACG,SAAO;AAAA,MACN,KACG,SAAO,EACP;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS;AAAA,MACZ,mBACG,SAAO,EACP,MAAM,WAAW,8BAA8B,EAC/C;AAAA,QACC;AAAA,MACF,EACC,SAAS,EACT,SAA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,"sources":["../../schemas.ts","../../src/automations-v2-activation-activations.schemas.ts"],"sourcesContent":["export * from './src/automations-v2-activation-activations.schemas.js';\n","import * as z from 'zod';\n\nexport const ReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n options: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.\\n\\nKey names can include only alphanumeric characters or underscores\\n(`A-Z`, `a-z`, `0-9`, `_`).\\nThey cannot start with an underscore.\\n\\nValues can be strings, numbers, integers, booleans, or arrays.\\nIf a value is an array, the array items must be objects,\\nand nested object properties must be\\nstrings, numbers, integers, or booleans only.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nRequired if your app needs to\\n[cancel the event](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/cancel-event)\\nif the automation becomes no longer relevant.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#about-canceling-events)\\nfor more information.'\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 .optional()\n .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .optional(),\n});\nexport const ReportEventResponse = z.object({\n activationIds: z.array(z.string()).max(100).optional(),\n});\nexport const BulkReportEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n \"Trigger key as defined in your app's trigger configuration\\nin the app dashboard.\\nFor example, `form_submitted` or `invoice_due`.\"\n )\n .min(1)\n .max(100),\n eventsInfo: z\n .array(\n z.object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\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 .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n )\n .min(1)\n .max(100),\n});\nexport const BulkReportEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key associated with the event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe('Metadata for the individual item in the request.')\n .optional(),\n eventInfo: z\n .object({\n payload: z\n .record(z.string(), z.any())\n .describe(\n 'Event payload, formatted as key:value pairs.\\nMust comply with the payload schema\\nif you provided one when configuring your trigger.'\n )\n .optional()\n .nullable(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\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 .nullable(),\n idempotency: z\n .object({\n key: z\n .string()\n .describe(\n 'A unique identifier for the event.\\nIf you send the same idempotency key in multiple report event requests, for the same trigger key and app id,\\nconsecutive requests will be ignored after the first one. Note that the idempotency key is kept for a week before it expires.'\n )\n .min(1)\n .max(80)\n .optional(),\n ttlInMilliseconds: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Optional. The time to live (TTL) in milliseconds before the key will expire. Default is a week.'\n )\n .optional()\n .nullable(),\n })\n .describe('Idempotency information for the event.')\n .optional(),\n })\n .describe('Event details for the item in the request.')\n .optional(),\n activationIds: z.array(z.string()).max(100).optional(),\n })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const BulkCancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose events you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityIds: z.array(z.string()).min(1).max(100),\n});\nexport const BulkCancelEventResponse = z.object({\n triggerKey: z\n .string()\n .describe('Trigger key related to the canceled event.')\n .min(1)\n .max(100)\n .optional(),\n results: z\n .array(\n z.object({\n itemMetadata: z\n .object({\n _id: z\n .string()\n .describe(\n \"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).\"\n )\n .optional()\n .nullable(),\n originalIndex: z\n .number()\n .int()\n .describe(\n 'Index of the item within the request array. Allows for correlation between request and response items.'\n )\n .optional(),\n success: z\n .boolean()\n .describe(\n 'Whether the requested action was successful for this item. When `false`, the `error` field is populated.'\n )\n .optional(),\n error: z\n .object({\n code: z.string().describe('Error code.').optional(),\n description: z\n .string()\n .describe('Description of the error.')\n .optional(),\n data: z\n .record(z.string(), z.any())\n .describe('Data related to the error.')\n .optional()\n .nullable(),\n })\n .describe('Details about the error in case of failure.')\n .optional(),\n })\n .describe(\n 'Metadata of the item, including its ID and success or failure status.'\n )\n .optional(),\n externalEntityId: z\n .string()\n .describe('ID of the related resource in GUID format.')\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 })\n )\n .optional(),\n bulkActionMetadata: z\n .object({\n totalSuccesses: z\n .number()\n .int()\n .describe('Number of items that were successfully processed.')\n .optional(),\n totalFailures: z\n .number()\n .int()\n .describe(\"Number of items that couldn't be processed.\")\n .optional(),\n undetailedFailures: z\n .number()\n .int()\n .describe(\n 'Number of failures without details because detailed failure threshold was exceeded.'\n )\n .optional(),\n })\n .describe(\n 'Metadata for the overall bulk action, including success and failure counts.'\n )\n .optional(),\n});\nexport const CancelEventRequest = z.object({\n triggerKey: z\n .string()\n .describe(\n 'Trigger key whose event you want to cancel.\\nFor example, `form_submitted` or `invoice_due`.'\n )\n .min(1)\n .max(100),\n externalEntityId: z\n .string()\n .describe(\n 'ID of the related resource in GUID format.\\nFor example, `fc81a355-3429-50fc-a4c7-def486e828f3`.\\n\\nTypically, this ID is defined in your system,\\nbut you can also use any Wix resource GUID,\\nsuch as contact ID, member ID, or invoice ID.\\nSee\\n[Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#choose-the-right-externalentityid)\\nfor more information.'\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});\nexport const CancelEventResponse = z.object({});\nexport const RerunActivationRequest = z.object({\n activationId: z\n .string()\n .describe('The activation ID whose payload will be used for the rerun.')\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 options: z\n .object({\n options: z\n .object({\n skipDelays: z\n .boolean()\n .describe(\n 'When true, delay actions will be skipped (similar to test mode behavior).'\n )\n .optional(),\n })\n .describe('Options controlling execution behavior.')\n .optional(),\n })\n .optional(),\n});\nexport const RerunActivationResponse = z.object({\n activationId: z\n .string()\n .describe('Activation ID generated (for tracking)')\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 .nullable(),\n});\nexport const ReportActionInvocationCompletedRequest = z.object({\n status: z.enum(['UNKNOWN_STATUS', 'SUCCESS', 'FAILURE']),\n invocationToken: z\n .string()\n .describe(\n \"Invocation token from Wix's original call to [Invoke](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/invoke). Wix uses this token to match your results with the correct automation run.\\n\\nLearn more about [running an invoked action with a timeout](https://dev.wix.com/docs/api-reference/business-management/automations/actions/action-provider-service-plugin/sample-flow#run-an-invoked-action-with-a-timeout).\"\n )\n .max(2048),\n options: z\n .intersection(\n z.object({}),\n z.xor([\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z.never().optional(),\n }),\n z.object({\n failureInfo: z.never().optional(),\n successInfo: z\n .object({\n result: z\n .record(z.string(), z.any())\n .describe(\n \"Your action's results as specified in its [output schema](https://dev.wix.com/docs/api-reference/business-management/automations/actions/about-actions#the-output-schema).\"\n )\n .optional()\n .nullable(),\n })\n .describe(\"When the `status` is `SUCCESS`, your action's results.\"),\n }),\n z.object({\n successInfo: z.never().optional(),\n failureInfo: z\n .object({\n errorDescription: z\n .string()\n .describe('Why the action failed.')\n .max(1000)\n .optional(),\n })\n .describe('When the `status` is `FAILURE`, why the action failed.'),\n }),\n ])\n )\n .optional(),\n});\nexport const ReportActionInvocationCompletedResponse = z.object({});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,YACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG;AAAA,EACV,SACG,SAAO;AAAA,IACN,SACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,MACC;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,kBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EAC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C,CAAC;AAAA,IACT,MAAI;AAAA,MACF,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aAAe,QAAM,EAAE,SAAS;AAAA,MAClC,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aACG,SAAO;AAAA,UACN,QACG,SAAS,SAAO,GAAK,MAAI,CAAC,EAC1B;AAAA,YACC;AAAA,UACF,EACC,SAAS,EACT,SAAS;AAAA,QACd,CAAC,EACA,SAAS,wDAAwD;AAAA,MACtE,CAAC;AAAA,MACC,SAAO;AAAA,QACP,aAAe,QAAM,EAAE,SAAS;AAAA,QAChC,aACG,SAAO;AAAA,UACN,kBACG,SAAO,EACP,SAAS,wBAAwB,EACjC,IAAI,GAAI,EACR,SAAS;AAAA,QACd,CAAC,EACA,SAAS,wDAAwD;AAAA,MACtE,CAAC;AAAA,IACH,CAAC;AAAA,EACH,EACC,SAAS;AACd,CAAC;AACM,IAAM,0CAA4C,SAAO,CAAC,CAAC;","names":[]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, StatusWithLiterals, ReportActionInvocationCompletedOptions } from './index.typings.mjs';
|
|
3
|
-
export { AIMetadata, AccountInfo, Action, ActionActionOneOf, ActionAttributes, ActionCodeSnippet, ActionCompletedRequest, ActionData, ActionEvent, ActionRetryRequest, ActionSettings, ActionSplitAction, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationActionStatusChangedStatusWithLiterals, ActivationContext, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationSource, ActivationSourceOfOneOf, ActivationStatusChanged, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, ActivationStatusChangedStatusWithLiterals, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BatchActivationRequest, BlockType, BlockTypeWithLiterals, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, Case, CodeConditionAction, CodeConditionActionInfo, CodeConditionFilter, CodeSnippet, CodeSnippetLanguage, CodeSnippetLanguageWithLiterals, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, ConsumeReportEventRequest, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, FailureInfo, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetScheduleRequest, GetScheduleResponse, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, IdentifierTypeWithLiterals, Identity, IfFilter, InitiatedStatusInfo, InitiatorInfo, InvokedAsyncStatusInfo, InvokedAsyncStatusInfoAppDefinedActionInfo, InvokedAsyncStatusInfoTypeInfoOneOf, ItemMetadata, Language, LanguageWithLiterals, ManualActivationInfo, MergeAction, MessageEnvelope, Metadata, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, Output, OutputAction, Path, Position, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportAccountLevelEventRequest, ReportAccountLevelEventResponse, ReportActionInvocationCompletedOptionsStatusInfoOneOf, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedRequestStatusInfoOneOf, ReportActionInvocationCompletedResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventRequest, RerunActivationInfo,
|
|
2
|
+
import { ReportEventOptions, ReportEventResponse, ReportEventApplicationErrors, EventInfo, BulkReportEventResponse, BulkCancelEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, ReportActionInvocationCompletedOptions } from './index.typings.mjs';
|
|
3
|
+
export { AIMetadata, AccountInfo, Action, ActionActionOneOf, ActionAttributes, ActionCodeSnippet, ActionCompletedRequest, ActionData, ActionEvent, ActionRetryRequest, ActionSettings, ActionSplitAction, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationActionStatusChangedStatusWithLiterals, ActivationContext, ActivationContinuedAfterSchedule, ActivationInitiationSource, ActivationInitiationSourceInfo, ActivationInitiationSourceInfoInitiationSourceInfoOneOf, ActivationInitiationSourceWithLiterals, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationSource, ActivationSourceOfOneOf, ActivationStatusChanged, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, ActivationStatusChangedStatusWithLiterals, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, AutoArchivePolicy, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationConfigurationStatusWithLiterals, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BatchActivationRequest, BlockType, BlockTypeWithLiterals, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancellationReasonWithLiterals, CancelledStatusInfo, Case, CodeConditionAction, CodeConditionActionInfo, CodeConditionFilter, CodeSnippet, CodeSnippetLanguage, CodeSnippetLanguageWithLiterals, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, ConsumeReportEventRequest, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Dimensions, Domain, DomainEvent, DomainEventBodyOneOf, DomainWithLiterals, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ErrorReasonWithLiterals, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, FailureInfo, Filter, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetScheduleRequest, GetScheduleResponse, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, IdentifierTypeWithLiterals, Identity, IfFilter, InitiatedStatusInfo, InitiatorInfo, InvokedAsyncStatusInfo, InvokedAsyncStatusInfoAppDefinedActionInfo, InvokedAsyncStatusInfoTypeInfoOneOf, ItemMetadata, Language, LanguageWithLiterals, ManualActivationInfo, MergeAction, MessageEnvelope, Metadata, Note, Notes, Offset, Operator, OperatorWithLiterals, Origin, OriginWithLiterals, Output, OutputAction, Path, Position, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportAccountLevelEventRequest, ReportAccountLevelEventResponse, ReportActionInvocationCompletedOptionsStatusInfoOneOf, ReportActionInvocationCompletedRequest, ReportActionInvocationCompletedRequestStatusInfoOneOf, ReportActionInvocationCompletedResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventRequest, RerunActivationInfo, RerunActivationRequest, RestoreInfo, ResumeAfterAsyncActionCompleted, ResumeAfterAsyncActionCompletedStatusInfoOneOf, RetryInfo, RunAutomationRequest, RunAutomationResponse, RunOptions, RunPreinstalledAutomationRequest, RunPreinstalledAutomationResponse, Runtime, RuntimeStatus, RuntimeStatusWithLiterals, Schedule, ScheduleActivationRequested, ScheduleRequest, ScheduleResponse, ScheduleStatus, ScheduleStatusWithLiterals, ScheduledAction, ScheduledStatusInfo, Scheduler, Service, ServiceMapping, SetVariables, SetVariablesAction, SetVariablesActionInfo, SimpleDelay, SkipReason, SkipReasonWithLiterals, SkippedStatusInfo, SpiAction, SplitAction, SplitActionPath, StartedStatusInfo, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, StartedStatusInfoTypeInfoOneOf, Status, SuccessInfo, SwitchFilter, SystemHelper, SystemHelperHelperOneOf, Target, TargetWithLiterals, TemplateOrigin, TestAutomationRequest, TestAutomationRequestIdentifierOneOf, TestAutomationResponse, TimeUnit, TimeUnitWithLiterals, Trigger, TriggerInfo, TriggerSettings, Type, TypeWithLiterals, Units, UnitsWithLiterals, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, UpdateScheduleStatusRequest, UpdateScheduleStatusResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, V1RunAutomationResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.mjs';
|
|
4
4
|
|
|
5
5
|
declare function reportEvent$1(httpClient: HttpClient): ReportEventSignature;
|
|
6
6
|
interface ReportEventSignature {
|
|
@@ -71,6 +71,14 @@ interface CancelEventSignature {
|
|
|
71
71
|
*/
|
|
72
72
|
(triggerKey: string, externalEntityId: string): Promise<void>;
|
|
73
73
|
}
|
|
74
|
+
declare function rerunActivation$1(httpClient: HttpClient): RerunActivationSignature;
|
|
75
|
+
interface RerunActivationSignature {
|
|
76
|
+
/**
|
|
77
|
+
* Rerun an automation using a previous activation's payload.
|
|
78
|
+
* @param - The activation ID whose payload will be used for the rerun.
|
|
79
|
+
*/
|
|
80
|
+
(activationId: string, options?: RerunActivationOptions): Promise<RerunActivationResponse>;
|
|
81
|
+
}
|
|
74
82
|
declare function reportActionInvocationCompleted$1(httpClient: HttpClient): ReportActionInvocationCompletedSignature;
|
|
75
83
|
interface ReportActionInvocationCompletedSignature {
|
|
76
84
|
/**
|
|
@@ -93,6 +101,7 @@ declare const reportEvent: MaybeContext<BuildRESTFunction<typeof reportEvent$1>
|
|
|
93
101
|
declare const bulkReportEvent: MaybeContext<BuildRESTFunction<typeof bulkReportEvent$1> & typeof bulkReportEvent$1>;
|
|
94
102
|
declare const bulkCancelEvent: MaybeContext<BuildRESTFunction<typeof bulkCancelEvent$1> & typeof bulkCancelEvent$1>;
|
|
95
103
|
declare const cancelEvent: MaybeContext<BuildRESTFunction<typeof cancelEvent$1> & typeof cancelEvent$1>;
|
|
104
|
+
declare const rerunActivation: MaybeContext<BuildRESTFunction<typeof rerunActivation$1> & typeof rerunActivation$1>;
|
|
96
105
|
declare const reportActionInvocationCompleted: MaybeContext<BuildRESTFunction<typeof reportActionInvocationCompleted$1> & typeof reportActionInvocationCompleted$1>;
|
|
97
106
|
|
|
98
|
-
export { BulkCancelEventResponse, BulkReportEventResponse, EventInfo, ReportActionInvocationCompletedOptions, ReportEventApplicationErrors, ReportEventOptions, ReportEventResponse, StatusWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, reportActionInvocationCompleted, reportEvent };
|
|
107
|
+
export { BulkCancelEventResponse, BulkReportEventResponse, EventInfo, ReportActionInvocationCompletedOptions, ReportEventApplicationErrors, ReportEventOptions, ReportEventResponse, RerunActivationOptions, RerunActivationResponse, StatusWithLiterals, bulkCancelEvent, bulkReportEvent, cancelEvent, reportActionInvocationCompleted, reportEvent, rerunActivation };
|