@wix/auto_sdk_automations_activations 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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/automations-v2-activation-activations.context.d.ts +14 -0
  11. package/build/cjs/src/automations-v2-activation-activations.context.js +35 -0
  12. package/build/cjs/src/automations-v2-activation-activations.context.js.map +1 -0
  13. package/build/cjs/src/automations-v2-activation-activations.http.d.ts +31 -0
  14. package/build/cjs/src/automations-v2-activation-activations.http.js +143 -0
  15. package/build/cjs/src/automations-v2-activation-activations.http.js.map +1 -0
  16. package/build/cjs/src/automations-v2-activation-activations.meta.d.ts +16 -0
  17. package/build/cjs/src/automations-v2-activation-activations.meta.js +104 -0
  18. package/build/cjs/src/automations-v2-activation-activations.meta.js.map +1 -0
  19. package/build/cjs/src/automations-v2-activation-activations.public.d.ts +74 -0
  20. package/build/cjs/src/automations-v2-activation-activations.public.js +66 -0
  21. package/build/cjs/src/automations-v2-activation-activations.public.js.map +1 -0
  22. package/build/cjs/src/automations-v2-activation-activations.types.d.ts +1592 -0
  23. package/build/cjs/src/automations-v2-activation-activations.types.js +195 -0
  24. package/build/cjs/src/automations-v2-activation-activations.types.js.map +1 -0
  25. package/build/cjs/src/automations-v2-activation-activations.universal.d.ts +1775 -0
  26. package/build/cjs/src/automations-v2-activation-activations.universal.js +423 -0
  27. package/build/cjs/src/automations-v2-activation-activations.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/automations-v2-activation-activations.context.d.ts +14 -0
  39. package/build/es/src/automations-v2-activation-activations.context.js +14 -0
  40. package/build/es/src/automations-v2-activation-activations.context.js.map +1 -0
  41. package/build/es/src/automations-v2-activation-activations.http.d.ts +31 -0
  42. package/build/es/src/automations-v2-activation-activations.http.js +136 -0
  43. package/build/es/src/automations-v2-activation-activations.http.js.map +1 -0
  44. package/build/es/src/automations-v2-activation-activations.meta.d.ts +16 -0
  45. package/build/es/src/automations-v2-activation-activations.meta.js +74 -0
  46. package/build/es/src/automations-v2-activation-activations.meta.js.map +1 -0
  47. package/build/es/src/automations-v2-activation-activations.public.d.ts +74 -0
  48. package/build/es/src/automations-v2-activation-activations.public.js +41 -0
  49. package/build/es/src/automations-v2-activation-activations.public.js.map +1 -0
  50. package/build/es/src/automations-v2-activation-activations.types.d.ts +1592 -0
  51. package/build/es/src/automations-v2-activation-activations.types.js +192 -0
  52. package/build/es/src/automations-v2-activation-activations.types.js.map +1 -0
  53. package/build/es/src/automations-v2-activation-activations.universal.d.ts +1775 -0
  54. package/build/es/src/automations-v2-activation-activations.universal.js +393 -0
  55. package/build/es/src/automations-v2-activation-activations.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/automations-v2-activation-activations.context.d.ts +14 -0
  66. package/build/internal/cjs/src/automations-v2-activation-activations.context.js +35 -0
  67. package/build/internal/cjs/src/automations-v2-activation-activations.context.js.map +1 -0
  68. package/build/internal/cjs/src/automations-v2-activation-activations.http.d.ts +31 -0
  69. package/build/internal/cjs/src/automations-v2-activation-activations.http.js +143 -0
  70. package/build/internal/cjs/src/automations-v2-activation-activations.http.js.map +1 -0
  71. package/build/internal/cjs/src/automations-v2-activation-activations.meta.d.ts +16 -0
  72. package/build/internal/cjs/src/automations-v2-activation-activations.meta.js +104 -0
  73. package/build/internal/cjs/src/automations-v2-activation-activations.meta.js.map +1 -0
  74. package/build/internal/cjs/src/automations-v2-activation-activations.public.d.ts +74 -0
  75. package/build/internal/cjs/src/automations-v2-activation-activations.public.js +66 -0
  76. package/build/internal/cjs/src/automations-v2-activation-activations.public.js.map +1 -0
  77. package/build/internal/cjs/src/automations-v2-activation-activations.types.d.ts +1592 -0
  78. package/build/internal/cjs/src/automations-v2-activation-activations.types.js +195 -0
  79. package/build/internal/cjs/src/automations-v2-activation-activations.types.js.map +1 -0
  80. package/build/internal/cjs/src/automations-v2-activation-activations.universal.d.ts +1775 -0
  81. package/build/internal/cjs/src/automations-v2-activation-activations.universal.js +423 -0
  82. package/build/internal/cjs/src/automations-v2-activation-activations.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/automations-v2-activation-activations.context.d.ts +14 -0
  93. package/build/internal/es/src/automations-v2-activation-activations.context.js +14 -0
  94. package/build/internal/es/src/automations-v2-activation-activations.context.js.map +1 -0
  95. package/build/internal/es/src/automations-v2-activation-activations.http.d.ts +31 -0
  96. package/build/internal/es/src/automations-v2-activation-activations.http.js +136 -0
  97. package/build/internal/es/src/automations-v2-activation-activations.http.js.map +1 -0
  98. package/build/internal/es/src/automations-v2-activation-activations.meta.d.ts +16 -0
  99. package/build/internal/es/src/automations-v2-activation-activations.meta.js +74 -0
  100. package/build/internal/es/src/automations-v2-activation-activations.meta.js.map +1 -0
  101. package/build/internal/es/src/automations-v2-activation-activations.public.d.ts +74 -0
  102. package/build/internal/es/src/automations-v2-activation-activations.public.js +41 -0
  103. package/build/internal/es/src/automations-v2-activation-activations.public.js.map +1 -0
  104. package/build/internal/es/src/automations-v2-activation-activations.types.d.ts +1592 -0
  105. package/build/internal/es/src/automations-v2-activation-activations.types.js +192 -0
  106. package/build/internal/es/src/automations-v2-activation-activations.types.js.map +1 -0
  107. package/build/internal/es/src/automations-v2-activation-activations.universal.d.ts +1775 -0
  108. package/build/internal/es/src/automations-v2-activation-activations.universal.js +393 -0
  109. package/build/internal/es/src/automations-v2-activation-activations.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1 @@
1
+ export * from './src/automations-v2-activation-activations.context.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/automations-v2-activation-activations.context.js"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yFAAuE"}
@@ -0,0 +1 @@
1
+ export * from './src/automations-v2-activation-activations.universal.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/automations-v2-activation-activations.universal.js"), exports);
18
+ //# sourceMappingURL=index.typings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2FAAyE"}
@@ -0,0 +1 @@
1
+ export * from './src/automations-v2-activation-activations.meta.js';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./src/automations-v2-activation-activations.meta.js"), exports);
18
+ //# sourceMappingURL=meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sFAAoE"}
@@ -0,0 +1,14 @@
1
+ import { reportEvent as publicReportEvent, bulkReportEvent as publicBulkReportEvent, bulkCancelEvent as publicBulkCancelEvent, cancelEvent as publicCancelEvent } from './automations-v2-activation-activations.public.js';
2
+ import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
3
+ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
4
+ import { onActivationStatusChanged as publicOnActivationStatusChanged } from './automations-v2-activation-activations.public.js';
5
+ export declare const reportEvent: MaybeContext<BuildRESTFunction<typeof publicReportEvent> & typeof publicReportEvent>;
6
+ export declare const bulkReportEvent: MaybeContext<BuildRESTFunction<typeof publicBulkReportEvent> & typeof publicBulkReportEvent>;
7
+ export declare const bulkCancelEvent: MaybeContext<BuildRESTFunction<typeof publicBulkCancelEvent> & typeof publicBulkCancelEvent>;
8
+ export declare const cancelEvent: MaybeContext<BuildRESTFunction<typeof publicCancelEvent> & typeof publicCancelEvent>;
9
+ /**
10
+ * activation status changed message
11
+ */
12
+ export declare const onActivationStatusChanged: ReturnType<typeof createEventModule<typeof publicOnActivationStatusChanged>>;
13
+ export { Domain, TimeUnit, Operator, Type, AutomationConfigurationStatus, Origin, Status, Target, CancellationReason, ErrorReason, SkipReason, ActivationStatusChangedStatus, Units, ScheduleStatus, WebhookIdentityType, BlockType, ActivationActionStatusChangedStatus, IdentifierType, } from './automations-v2-activation-activations.universal.js';
14
+ export { Activation, Automation, AutomationOriginInfoOneOf, ActionSettings, Enrichment, AuditInfo, AuditInfoIdOneOf, AutomationConfiguration, Filter, FutureDateActivationOffset, RateLimit, ConditionExpressionGroup, AppDefinedAction, ConditionAction, DelayAction, RateLimitAction, SetVariablesAction, OutputAction, Trigger, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, ApplicationOrigin, PreinstalledOrigin, AutomationSettings, DraftInfo, Enrichments, ExtendedFields, ActivationStatus, ActivationStatusChanged, ActivationStatusChangedStatusInfoOneOf, Identity, InitiatedStatusInfo, ActivationStatusChangedStartedStatusInfo, ScheduledStatusInfo, CancelledStatusInfo, ActivationStatusChangedFailedStatusInfo, SkippedStatusInfo, ScheduleRequest, Schedule, ScheduledAction, Delay, DelayOfOneOf, SimpleDelay, TriggerInfo, ScheduleResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, ActivationRequest, Runtime, Scheduler, AsyncAction, ActionData, Action, ActionActionOneOf, ServiceMapping, IfFilter, SwitchFilter, Case, DelayHelper, RateLimiting, ConditionFilter, ConditionBlock, Output, SetVariables, Service, SystemHelper, SystemHelperHelperOneOf, SpiAction, ActivationSource, ActivationSourceOfOneOf, ActionsData, ActionStatus, BatchActivationRequest, Empty, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatusInfoOneOf, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, ExpressionEvaluationResult, EndedStatusInfoAppDefinedActionInfo, ConditionActionInfo, RateLimitActionInfo, DelayActionInfo, SetVariablesActionInfo, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AppDefinedActionInfo, StartedStatusInfo, StartedStatusInfoTypeInfoOneOf, EndedStatusInfo, EndedStatusInfoTypeInfoOneOf, FailedStatusInfo, ActivationResumeAfterDelay, ActionCompletedRequest, RefreshPayloadRequest, RefreshPayloadResponse, RunAutomationRequest, RunAutomationResponse, ActivationScheduleRequested, ScheduleActivationRequested, ActivationContinuedAfterSchedule, ReportEventRequest, Idempotency, ReportEventResponse, BulkReportEventRequest, EventInfo, BulkReportEventResponse, BulkReportEventResult, ItemMetadata, ApplicationError, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResponse, BulkCancelEventResult, CancelEventRequest, CancelEventResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, PreinstalledIdentifier, AutomationIdentifier, V1RunAutomationResponse, ReportDomainEventRequest, ReportDomainEventResponse, ExecuteFromActionRequest, ExecuteFromActionResponse, ActivationScheduleCompleted, ReportEventResponseNonNullableFields, BulkReportEventResponseNonNullableFields, BulkCancelEventResponseNonNullableFields, BaseEventMetadata, EventMetadata, ActivationStatusChangedEnvelope, ReportEventOptions, } from './automations-v2-activation-activations.universal.js';
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IdentifierType = exports.ActivationActionStatusChangedStatus = exports.BlockType = exports.WebhookIdentityType = exports.ScheduleStatus = exports.Units = exports.ActivationStatusChangedStatus = exports.SkipReason = exports.ErrorReason = exports.CancellationReason = exports.Target = exports.Status = exports.Origin = exports.AutomationConfigurationStatus = exports.Type = exports.Operator = exports.TimeUnit = exports.Domain = exports.onActivationStatusChanged = exports.cancelEvent = exports.bulkCancelEvent = exports.bulkReportEvent = exports.reportEvent = void 0;
4
+ const automations_v2_activation_activations_public_js_1 = require("./automations-v2-activation-activations.public.js");
5
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
6
+ const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
7
+ const automations_v2_activation_activations_public_js_2 = require("./automations-v2-activation-activations.public.js");
8
+ exports.reportEvent = (0, rest_modules_1.createRESTModule)(automations_v2_activation_activations_public_js_1.reportEvent);
9
+ exports.bulkReportEvent = (0, rest_modules_1.createRESTModule)(automations_v2_activation_activations_public_js_1.bulkReportEvent);
10
+ exports.bulkCancelEvent = (0, rest_modules_1.createRESTModule)(automations_v2_activation_activations_public_js_1.bulkCancelEvent);
11
+ exports.cancelEvent = (0, rest_modules_1.createRESTModule)(automations_v2_activation_activations_public_js_1.cancelEvent);
12
+ /**
13
+ * activation status changed message
14
+ */
15
+ exports.onActivationStatusChanged = (0, event_definition_modules_1.createEventModule)(automations_v2_activation_activations_public_js_2.onActivationStatusChanged);
16
+ var automations_v2_activation_activations_universal_js_1 = require("./automations-v2-activation-activations.universal.js");
17
+ Object.defineProperty(exports, "Domain", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.Domain; } });
18
+ Object.defineProperty(exports, "TimeUnit", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.TimeUnit; } });
19
+ Object.defineProperty(exports, "Operator", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.Operator; } });
20
+ Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.Type; } });
21
+ Object.defineProperty(exports, "AutomationConfigurationStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.AutomationConfigurationStatus; } });
22
+ Object.defineProperty(exports, "Origin", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.Origin; } });
23
+ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.Status; } });
24
+ Object.defineProperty(exports, "Target", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.Target; } });
25
+ Object.defineProperty(exports, "CancellationReason", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.CancellationReason; } });
26
+ Object.defineProperty(exports, "ErrorReason", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.ErrorReason; } });
27
+ Object.defineProperty(exports, "SkipReason", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.SkipReason; } });
28
+ Object.defineProperty(exports, "ActivationStatusChangedStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.ActivationStatusChangedStatus; } });
29
+ Object.defineProperty(exports, "Units", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.Units; } });
30
+ Object.defineProperty(exports, "ScheduleStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.ScheduleStatus; } });
31
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.WebhookIdentityType; } });
32
+ Object.defineProperty(exports, "BlockType", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.BlockType; } });
33
+ Object.defineProperty(exports, "ActivationActionStatusChangedStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.ActivationActionStatusChangedStatus; } });
34
+ Object.defineProperty(exports, "IdentifierType", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_1.IdentifierType; } });
35
+ //# sourceMappingURL=automations-v2-activation-activations.context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automations-v2-activation-activations.context.js","sourceRoot":"","sources":["../../../src/automations-v2-activation-activations.context.ts"],"names":[],"mappings":";;;AAAA,uHAK2D;AAC3D,gEAAiE;AACjE,wFAA8E;AAE9E,uHAAiI;AAEpH,QAAA,WAAW,GAEN,IAAA,+BAAgB,EAAC,6DAAiB,CAAC,CAAC;AACzC,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,iEAAqB,CAAC,CAAC;AAC7C,QAAA,eAAe,GAEV,IAAA,+BAAgB,EAAC,iEAAqB,CAAC,CAAC;AAC7C,QAAA,WAAW,GAEN,IAAA,+BAAgB,EAAC,6DAAiB,CAAC,CAAC;AACtD;;GAEG;AACU,QAAA,yBAAyB,GAElC,IAAA,4CAAiB,EAAC,2EAA+B,CAAC,CAAC;AAEvD,2HAmB8D;AAlB5D,4IAAA,MAAM,OAAA;AACN,8IAAA,QAAQ,OAAA;AACR,8IAAA,QAAQ,OAAA;AACR,0IAAA,IAAI,OAAA;AACJ,mKAAA,6BAA6B,OAAA;AAC7B,4IAAA,MAAM,OAAA;AACN,4IAAA,MAAM,OAAA;AACN,4IAAA,MAAM,OAAA;AACN,wJAAA,kBAAkB,OAAA;AAClB,iJAAA,WAAW,OAAA;AACX,gJAAA,UAAU,OAAA;AACV,mKAAA,6BAA6B,OAAA;AAC7B,2IAAA,KAAK,OAAA;AACL,oJAAA,cAAc,OAAA;AACd,yJAAA,mBAAmB,OAAA;AACnB,+IAAA,SAAS,OAAA;AACT,yKAAA,mCAAmC,OAAA;AACnC,oJAAA,cAAc,OAAA"}
@@ -0,0 +1,31 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ /**
3
+ * Reports an event and activates site automations with the specified trigger key.
4
+ *
5
+ *
6
+ * Only the app that created a trigger can report events for it.
7
+ * This means other apps can't report events for your triggers,
8
+ * and you can't report events for another app's triggers.
9
+ *
10
+ * If your app supports canceling events,
11
+ * `externalEntityId` must be provided.
12
+ * `externalEntityId` is required when calling [cancelEvent()](#cancel-event).
13
+ */
14
+ export declare function reportEvent(payload: object): RequestOptionsFactory<any>;
15
+ /** Bulk reports events and activates site automations with the specified trigger key. */
16
+ export declare function bulkReportEvent(payload: object): RequestOptionsFactory<any>;
17
+ /** Bulk cancels any remaining actions for a trigger and external entities. */
18
+ export declare function bulkCancelEvent(payload: object): RequestOptionsFactory<any>;
19
+ /**
20
+ * Cancels any remaining actions for a trigger and external entity.
21
+ *
22
+ *
23
+ * Events are not cancelable by default.
24
+ * To make an event cancelable,
25
+ * you must first pass an `externalEntityId`
26
+ * and the applicable `triggerKey` to [reportEvent()](#report-event).
27
+ * When you call cancelEvent() with the same `externalEntityId` and `triggerKey`,
28
+ * the event is canceled,
29
+ * as are all other events that share the `externalEntityId` and `triggerKey`.
30
+ */
31
+ export declare function cancelEvent(payload: object): RequestOptionsFactory<any>;
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cancelEvent = exports.bulkCancelEvent = exports.bulkReportEvent = exports.reportEvent = void 0;
4
+ const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
5
+ function resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl(opts) {
6
+ const domainToMappings = {
7
+ 'manage._base_domain_': [
8
+ {
9
+ srcPath: '/_api/esb-config-resolver',
10
+ destPath: '',
11
+ },
12
+ ],
13
+ 'www.wixapis.com': [
14
+ {
15
+ srcPath: '/automations/v1/events/report',
16
+ destPath: '/v1/events/report',
17
+ },
18
+ {
19
+ srcPath: '/automations/v1/events/bulk-report',
20
+ destPath: '/v1/events/bulk-report',
21
+ },
22
+ {
23
+ srcPath: '/automations/v1/events/cancel',
24
+ destPath: '/v1/events/cancel',
25
+ },
26
+ {
27
+ srcPath: '/automations/v1/events/bulk-cancel',
28
+ destPath: '/v1/events/bulk-cancel',
29
+ },
30
+ ],
31
+ 'platform.rise.ai': [
32
+ {
33
+ srcPath: '/workflows/v1/events/report',
34
+ destPath: '/v1/events/report',
35
+ },
36
+ ],
37
+ };
38
+ return (0, rest_modules_1.resolveUrl)(Object.assign(opts, { domainToMappings }));
39
+ }
40
+ const PACKAGE_NAME = '@wix/auto_sdk_automations_activations';
41
+ /**
42
+ * Reports an event and activates site automations with the specified trigger key.
43
+ *
44
+ *
45
+ * Only the app that created a trigger can report events for it.
46
+ * This means other apps can't report events for your triggers,
47
+ * and you can't report events for another app's triggers.
48
+ *
49
+ * If your app supports canceling events,
50
+ * `externalEntityId` must be provided.
51
+ * `externalEntityId` is required when calling [cancelEvent()](#cancel-event).
52
+ */
53
+ function reportEvent(payload) {
54
+ function __reportEvent({ host }) {
55
+ const metadata = {
56
+ entityFqdn: 'wix.automations.v2.activation',
57
+ method: 'POST',
58
+ methodFqn: 'wix.automations.esb.resolver.v1.EsbConfigResolver.ReportEvent',
59
+ packageName: PACKAGE_NAME,
60
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
61
+ protoPath: '/v1/events/report',
62
+ data: payload,
63
+ host,
64
+ }),
65
+ data: payload,
66
+ };
67
+ return metadata;
68
+ }
69
+ return __reportEvent;
70
+ }
71
+ exports.reportEvent = reportEvent;
72
+ /** Bulk reports events and activates site automations with the specified trigger key. */
73
+ function bulkReportEvent(payload) {
74
+ function __bulkReportEvent({ host }) {
75
+ const metadata = {
76
+ entityFqdn: 'wix.automations.v2.activation',
77
+ method: 'POST',
78
+ methodFqn: 'wix.automations.esb.resolver.v1.EsbConfigResolver.BulkReportEvent',
79
+ packageName: PACKAGE_NAME,
80
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
81
+ protoPath: '/v1/events/bulk-report',
82
+ data: payload,
83
+ host,
84
+ }),
85
+ data: payload,
86
+ };
87
+ return metadata;
88
+ }
89
+ return __bulkReportEvent;
90
+ }
91
+ exports.bulkReportEvent = bulkReportEvent;
92
+ /** Bulk cancels any remaining actions for a trigger and external entities. */
93
+ function bulkCancelEvent(payload) {
94
+ function __bulkCancelEvent({ host }) {
95
+ const metadata = {
96
+ entityFqdn: 'wix.automations.v2.activation',
97
+ method: 'POST',
98
+ methodFqn: 'wix.automations.esb.resolver.v1.EsbConfigResolver.BulkCancelEvent',
99
+ packageName: PACKAGE_NAME,
100
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
101
+ protoPath: '/v1/events/bulk-cancel',
102
+ data: payload,
103
+ host,
104
+ }),
105
+ data: payload,
106
+ };
107
+ return metadata;
108
+ }
109
+ return __bulkCancelEvent;
110
+ }
111
+ exports.bulkCancelEvent = bulkCancelEvent;
112
+ /**
113
+ * Cancels any remaining actions for a trigger and external entity.
114
+ *
115
+ *
116
+ * Events are not cancelable by default.
117
+ * To make an event cancelable,
118
+ * you must first pass an `externalEntityId`
119
+ * and the applicable `triggerKey` to [reportEvent()](#report-event).
120
+ * When you call cancelEvent() with the same `externalEntityId` and `triggerKey`,
121
+ * the event is canceled,
122
+ * as are all other events that share the `externalEntityId` and `triggerKey`.
123
+ */
124
+ function cancelEvent(payload) {
125
+ function __cancelEvent({ host }) {
126
+ const metadata = {
127
+ entityFqdn: 'wix.automations.v2.activation',
128
+ method: 'POST',
129
+ methodFqn: 'wix.automations.esb.resolver.v1.EsbConfigResolver.CancelEvent',
130
+ packageName: PACKAGE_NAME,
131
+ url: resolveWixAutomationsEsbResolverV1EsbConfigResolverUrl({
132
+ protoPath: '/v1/events/cancel',
133
+ data: payload,
134
+ host,
135
+ }),
136
+ data: payload,
137
+ };
138
+ return metadata;
139
+ }
140
+ return __cancelEvent;
141
+ }
142
+ exports.cancelEvent = cancelEvent;
143
+ //# sourceMappingURL=automations-v2-activation-activations.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automations-v2-activation-activations.http.js","sourceRoot":"","sources":["../../../src/automations-v2-activation-activations.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,sDAAsD,CAC7D,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,2BAA2B;gBACpC,QAAQ,EAAE,EAAE;aACb;SACF;QACD,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,mBAAmB;aAC9B;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,wBAAwB;aACnC;YACD;gBACE,OAAO,EAAE,+BAA+B;gBACxC,QAAQ,EAAE,mBAAmB;aAC9B;YACD;gBACE,OAAO,EAAE,oCAAoC;gBAC7C,QAAQ,EAAE,wBAAwB;aACnC;SACF;QACD,kBAAkB,EAAE;YAClB;gBACE,OAAO,EAAE,6BAA6B;gBACtC,QAAQ,EAAE,mBAAmB;aAC9B;SACF;KACF,CAAC;IA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AS,EACP,mEAAmE;YACrE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,sDAAsD,CAAC;gBAC1D,SAAS,EAAE,wBAAwB;gBACnC,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AApBD,0CAoBC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,WAAW,CAAC,OAAe;IACzC,SAAS,aAAa,CAAC,EAAE,IAAI,EAAO;QAClC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,+BAA+B;YAC3C,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,+DAA+D;YACjE,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,sDAAsD,CAAC;gBAC1D,SAAS,EAAE,mBAAmB;gBAC9B,IAAI,EAAE,OAAO;gBACb,IAAI;aACL,CAAC;YACF,IAAI,EAAE,OAAO;SACd,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AApBD,kCAoBC"}
@@ -0,0 +1,16 @@
1
+ import * as ambassadorWixAutomationsV2ActivationTypes from './automations-v2-activation-activations.types.js';
2
+ import * as ambassadorWixAutomationsV2ActivationUniversalTypes from './automations-v2-activation-activations.universal.js';
3
+ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function reportEvent(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2ActivationUniversalTypes.ReportEventRequest, ambassadorWixAutomationsV2ActivationTypes.ReportEventRequest, ambassadorWixAutomationsV2ActivationUniversalTypes.ReportEventResponse & ambassadorWixAutomationsV2ActivationUniversalTypes.ReportEventResponseNonNullableFields, ambassadorWixAutomationsV2ActivationTypes.ReportEventResponse & ambassadorWixAutomationsV2ActivationTypes.ReportEventResponseNonNullableFields>;
14
+ export declare function bulkReportEvent(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2ActivationUniversalTypes.BulkReportEventRequest, ambassadorWixAutomationsV2ActivationTypes.BulkReportEventRequest, ambassadorWixAutomationsV2ActivationUniversalTypes.BulkReportEventResponse & ambassadorWixAutomationsV2ActivationUniversalTypes.BulkReportEventResponseNonNullableFields, ambassadorWixAutomationsV2ActivationTypes.BulkReportEventResponse & ambassadorWixAutomationsV2ActivationTypes.BulkReportEventResponseNonNullableFields>;
15
+ export declare function bulkCancelEvent(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2ActivationUniversalTypes.BulkCancelEventRequest, ambassadorWixAutomationsV2ActivationTypes.BulkCancelEventRequest, ambassadorWixAutomationsV2ActivationUniversalTypes.BulkCancelEventResponse & ambassadorWixAutomationsV2ActivationUniversalTypes.BulkCancelEventResponseNonNullableFields, ambassadorWixAutomationsV2ActivationTypes.BulkCancelEventResponse & ambassadorWixAutomationsV2ActivationTypes.BulkCancelEventResponseNonNullableFields>;
16
+ export declare function cancelEvent(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixAutomationsV2ActivationUniversalTypes.CancelEventRequest, ambassadorWixAutomationsV2ActivationTypes.CancelEventRequest, ambassadorWixAutomationsV2ActivationUniversalTypes.CancelEventResponse, ambassadorWixAutomationsV2ActivationTypes.CancelEventResponse>;
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.cancelEvent = exports.bulkCancelEvent = exports.bulkReportEvent = exports.reportEvent = void 0;
27
+ const ambassadorWixAutomationsV2Activation = __importStar(require("./automations-v2-activation-activations.http.js"));
28
+ function reportEvent() {
29
+ const payload = {};
30
+ const getRequestOptions = ambassadorWixAutomationsV2Activation.reportEvent(payload);
31
+ const getUrl = (context) => {
32
+ const { url } = getRequestOptions(context);
33
+ return url;
34
+ };
35
+ return {
36
+ getUrl,
37
+ httpMethod: 'POST',
38
+ path: '/v1/events/report',
39
+ pathParams: {},
40
+ __requestType: null,
41
+ __originalRequestType: null,
42
+ __responseType: null,
43
+ __originalResponseType: null,
44
+ };
45
+ }
46
+ exports.reportEvent = reportEvent;
47
+ function bulkReportEvent() {
48
+ const payload = {};
49
+ const getRequestOptions = ambassadorWixAutomationsV2Activation.bulkReportEvent(payload);
50
+ const getUrl = (context) => {
51
+ const { url } = getRequestOptions(context);
52
+ return url;
53
+ };
54
+ return {
55
+ getUrl,
56
+ httpMethod: 'POST',
57
+ path: '/v1/events/bulk-report',
58
+ pathParams: {},
59
+ __requestType: null,
60
+ __originalRequestType: null,
61
+ __responseType: null,
62
+ __originalResponseType: null,
63
+ };
64
+ }
65
+ exports.bulkReportEvent = bulkReportEvent;
66
+ function bulkCancelEvent() {
67
+ const payload = {};
68
+ const getRequestOptions = ambassadorWixAutomationsV2Activation.bulkCancelEvent(payload);
69
+ const getUrl = (context) => {
70
+ const { url } = getRequestOptions(context);
71
+ return url;
72
+ };
73
+ return {
74
+ getUrl,
75
+ httpMethod: 'POST',
76
+ path: '/v1/events/bulk-cancel',
77
+ pathParams: {},
78
+ __requestType: null,
79
+ __originalRequestType: null,
80
+ __responseType: null,
81
+ __originalResponseType: null,
82
+ };
83
+ }
84
+ exports.bulkCancelEvent = bulkCancelEvent;
85
+ function cancelEvent() {
86
+ const payload = {};
87
+ const getRequestOptions = ambassadorWixAutomationsV2Activation.cancelEvent(payload);
88
+ const getUrl = (context) => {
89
+ const { url } = getRequestOptions(context);
90
+ return url;
91
+ };
92
+ return {
93
+ getUrl,
94
+ httpMethod: 'POST',
95
+ path: '/v1/events/cancel',
96
+ pathParams: {},
97
+ __requestType: null,
98
+ __originalRequestType: null,
99
+ __responseType: null,
100
+ __originalResponseType: null,
101
+ };
102
+ }
103
+ exports.cancelEvent = cancelEvent;
104
+ //# sourceMappingURL=automations-v2-activation-activations.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automations-v2-activation-activations.meta.js","sourceRoot":"","sources":["../../../src/automations-v2-activation-activations.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sHAAwG;AAsBxG,SAAgB,WAAW;IAUzB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,mBAAmB;QACzB,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IAQzB,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAE5D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,kCA4BC"}
@@ -0,0 +1,74 @@
1
+ import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
+ import { ActivationStatusChangedEnvelope, BulkCancelEventResponse, BulkCancelEventResponseNonNullableFields, BulkReportEventResponse, BulkReportEventResponseNonNullableFields, EventInfo, ReportEventOptions, ReportEventResponse, ReportEventResponseNonNullableFields } from './automations-v2-activation-activations.universal.js';
3
+ export declare const __metadata: {
4
+ PACKAGE_NAME: string;
5
+ };
6
+ export declare function reportEvent(httpClient: HttpClient): ReportEventSignature;
7
+ interface ReportEventSignature {
8
+ /**
9
+ * Reports an event and activates site automations with the specified trigger key.
10
+ *
11
+ *
12
+ * Only the app that created a trigger can report events for it.
13
+ * This means other apps can't report events for your triggers,
14
+ * and you can't report events for another app's triggers.
15
+ *
16
+ * If your app supports canceling events,
17
+ * `externalEntityId` must be provided.
18
+ * `externalEntityId` is required when calling [cancelEvent()](#cancel-event).
19
+ * @param - Trigger key as defined in your app's trigger configuration
20
+ * in the app dashboard.
21
+ * For example, `form_submitted` or `invoice_due`.
22
+ */
23
+ (triggerKey: string, options?: ReportEventOptions | undefined): Promise<ReportEventResponse & ReportEventResponseNonNullableFields>;
24
+ }
25
+ export declare function bulkReportEvent(httpClient: HttpClient): BulkReportEventSignature;
26
+ interface BulkReportEventSignature {
27
+ /**
28
+ * Bulk reports events and activates site automations with the specified trigger key.
29
+ * @param - Trigger key as defined in your app's trigger configuration
30
+ * in the app dashboard.
31
+ * For example, `form_submitted` or `invoice_due`.
32
+ * @param - Repeated list of event details for bulk reporting.
33
+ */
34
+ (triggerKey: string, eventsInfo: EventInfo[]): Promise<BulkReportEventResponse & BulkReportEventResponseNonNullableFields>;
35
+ }
36
+ export declare function bulkCancelEvent(httpClient: HttpClient): BulkCancelEventSignature;
37
+ interface BulkCancelEventSignature {
38
+ /**
39
+ * Bulk cancels any remaining actions for a trigger and external entities.
40
+ * @param - Trigger key whose events you want to cancel.
41
+ * For example, `form_submitted` or `invoice_due`.
42
+ * @param - Repeated list of external_entity_id, representing the related resources' IDs.
43
+ */
44
+ (triggerKey: string, externalEntityIds: string[]): Promise<BulkCancelEventResponse & BulkCancelEventResponseNonNullableFields>;
45
+ }
46
+ export declare function cancelEvent(httpClient: HttpClient): CancelEventSignature;
47
+ interface CancelEventSignature {
48
+ /**
49
+ * Cancels any remaining actions for a trigger and external entity.
50
+ *
51
+ *
52
+ * Events are not cancelable by default.
53
+ * To make an event cancelable,
54
+ * you must first pass an `externalEntityId`
55
+ * and the applicable `triggerKey` to [reportEvent()](#report-event).
56
+ * When you call cancelEvent() with the same `externalEntityId` and `triggerKey`,
57
+ * the event is canceled,
58
+ * as are all other events that share the `externalEntityId` and `triggerKey`.
59
+ * @param - Trigger key whose event you want to cancel.
60
+ * For example, `form_submitted` or `invoice_due`.
61
+ * @param - ID of the related resource in GUID format.
62
+ * For example, `fc81a355-3429-50fc-a4c7-def486e828f3`.
63
+ *
64
+ * Typically, this ID is defined in your system,
65
+ * but you can also use any Wix resource GUID,
66
+ * such as contact ID, member ID, or invoice ID.
67
+ * See
68
+ * [Choose the right `externalEntityId`](https://dev.wix.com/docs/rest/business-management/automations/triggered-events/reporting-and-canceling-events#choose-the-right-externalentityid)
69
+ * for more information.
70
+ */
71
+ (triggerKey: string, externalEntityId: string): Promise<void>;
72
+ }
73
+ export declare const onActivationStatusChanged: EventDefinition<ActivationStatusChangedEnvelope, "wix.automations.v2.activation_activation_status_changed">;
74
+ export { Action, ActionActionOneOf, ActionCompletedRequest, ActionData, ActionEvent, ActionSettings, ActionStatus, ActionsData, Activation, ActivationActionStatusChanged, ActivationActionStatusChangedInfoOneOf, ActivationActionStatusChangedStatus, ActivationActionStatusChangedStatusInfoOneOf, ActivationContinuedAfterSchedule, ActivationRequest, ActivationResumeAfterDelay, ActivationScheduleCompleted, ActivationScheduleRequested, ActivationSource, ActivationSourceOfOneOf, ActivationStatus, ActivationStatusChanged, ActivationStatusChangedEnvelope, ActivationStatusChangedFailedStatusInfo, ActivationStatusChangedStartedStatusInfo, ActivationStatusChangedStatus, ActivationStatusChangedStatusInfoOneOf, AppDefinedAction, AppDefinedActionInfo, ApplicationError, ApplicationOrigin, AsyncAction, AuditInfo, AuditInfoIdOneOf, Automation, AutomationConfiguration, AutomationConfigurationAction, AutomationConfigurationActionInfoOneOf, AutomationConfigurationStatus, AutomationIdentifier, AutomationInfo, AutomationInfoOriginInfoOneOf, AutomationInfoTriggerInfo, AutomationOriginInfoOneOf, AutomationSettings, BaseEventMetadata, BatchActivationRequest, BlockType, BulkActionMetadata, BulkCancelEventRequest, BulkCancelEventResponse, BulkCancelEventResponseNonNullableFields, BulkCancelEventResult, BulkReportEventRequest, BulkReportEventResponse, BulkReportEventResponseNonNullableFields, BulkReportEventResult, CancelEventRequest, CancelEventResponse, CancelPendingScheduleRequest, CancelPendingScheduleRequestByOneOf, CancelPendingScheduleResponse, CancellationReason, CancelledStatusInfo, Case, ConditionAction, ConditionActionInfo, ConditionBlock, ConditionExpressionGroup, ConditionFilter, Delay, DelayAction, DelayActionInfo, DelayHelper, DelayOfOneOf, Domain, DomainEvent, DomainEventBodyOneOf, DraftInfo, Empty, EndedStatusInfo, EndedStatusInfoAppDefinedActionInfo, EndedStatusInfoTypeInfoOneOf, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, EventInfo, EventMetadata, ExecuteFromActionRequest, ExecuteFromActionResponse, ExpressionEvaluationResult, ExtendedFields, FailedStatusInfo, Filter, FutureDateActivationOffset, Idempotency, IdentificationData, IdentificationDataIdOneOf, IdentifierType, Identity, IfFilter, InitiatedStatusInfo, ItemMetadata, MessageEnvelope, Operator, Origin, Output, OutputAction, PreinstalledIdentifier, PreinstalledOrigin, RateLimit, RateLimitAction, RateLimitActionInfo, RateLimiting, RefreshPayloadRequest, RefreshPayloadResponse, ReportDomainEventRequest, ReportDomainEventResponse, ReportEventOptions, ReportEventRequest, ReportEventResponse, ReportEventResponseNonNullableFields, RestoreInfo, RunAutomationRequest, RunAutomationResponse, Runtime, Schedule, ScheduleActivationRequested, ScheduleRequest, ScheduleResponse, ScheduleStatus, ScheduledAction, ScheduledStatusInfo, Scheduler, Service, ServiceMapping, SetVariables, SetVariablesAction, SetVariablesActionInfo, SimpleDelay, SkipReason, SkippedStatusInfo, SpiAction, StartedStatusInfo, StartedStatusInfoAppDefinedActionInfo, StartedStatusInfoDelayActionInfo, StartedStatusInfoTypeInfoOneOf, Status, SwitchFilter, SystemHelper, SystemHelperHelperOneOf, Target, TimeUnit, Trigger, TriggerInfo, Type, Units, UpdatePendingSchedulesPayloadRequest, UpdatePendingSchedulesPayloadResponse, V1RunAutomationRequest, V1RunAutomationRequestIdentifierOneOf, V1RunAutomationResponse, WebhookIdentityType, } from './automations-v2-activation-activations.universal.js';
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebhookIdentityType = exports.Units = exports.Type = exports.TimeUnit = exports.Target = exports.Status = exports.SkipReason = exports.ScheduleStatus = exports.Origin = exports.Operator = exports.IdentifierType = exports.ErrorReason = exports.Domain = exports.CancellationReason = exports.BlockType = exports.AutomationConfigurationStatus = exports.ActivationStatusChangedStatus = exports.ActivationActionStatusChangedStatus = exports.onActivationStatusChanged = exports.cancelEvent = exports.bulkCancelEvent = exports.bulkReportEvent = exports.reportEvent = exports.__metadata = void 0;
4
+ const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
5
+ const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
6
+ const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
7
+ const sdk_types_1 = require("@wix/sdk-types");
8
+ const automations_v2_activation_activations_universal_js_1 = require("./automations-v2-activation-activations.universal.js");
9
+ exports.__metadata = { PACKAGE_NAME: '@wix/automations' };
10
+ function reportEvent(httpClient) {
11
+ return (triggerKey, options) => (0, automations_v2_activation_activations_universal_js_1.reportEvent)(triggerKey, options,
12
+ // @ts-ignore
13
+ { httpClient });
14
+ }
15
+ exports.reportEvent = reportEvent;
16
+ function bulkReportEvent(httpClient) {
17
+ return (triggerKey, eventsInfo) => (0, automations_v2_activation_activations_universal_js_1.bulkReportEvent)(triggerKey, eventsInfo,
18
+ // @ts-ignore
19
+ { httpClient });
20
+ }
21
+ exports.bulkReportEvent = bulkReportEvent;
22
+ function bulkCancelEvent(httpClient) {
23
+ return (triggerKey, externalEntityIds) => (0, automations_v2_activation_activations_universal_js_1.bulkCancelEvent)(triggerKey, externalEntityIds,
24
+ // @ts-ignore
25
+ { httpClient });
26
+ }
27
+ exports.bulkCancelEvent = bulkCancelEvent;
28
+ function cancelEvent(httpClient) {
29
+ return (triggerKey, externalEntityId) => (0, automations_v2_activation_activations_universal_js_1.cancelEvent)(triggerKey, externalEntityId,
30
+ // @ts-ignore
31
+ { httpClient });
32
+ }
33
+ exports.cancelEvent = cancelEvent;
34
+ exports.onActivationStatusChanged = (0, sdk_types_1.EventDefinition)('wix.automations.v2.activation_activation_status_changed', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
35
+ {
36
+ transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
37
+ paths: [
38
+ { path: 'data.statusChangedDate' },
39
+ { path: 'data.scheduledInfo.date' },
40
+ { path: 'data.activation.automation.createdDate' },
41
+ { path: 'data.activation.automation.updatedDate' },
42
+ { path: 'data.activation.automation.draftUpdatedDate' },
43
+ { path: 'metadata.eventTime' },
44
+ ],
45
+ },
46
+ ])))();
47
+ var automations_v2_activation_activations_universal_js_2 = require("./automations-v2-activation-activations.universal.js");
48
+ Object.defineProperty(exports, "ActivationActionStatusChangedStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.ActivationActionStatusChangedStatus; } });
49
+ Object.defineProperty(exports, "ActivationStatusChangedStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.ActivationStatusChangedStatus; } });
50
+ Object.defineProperty(exports, "AutomationConfigurationStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.AutomationConfigurationStatus; } });
51
+ Object.defineProperty(exports, "BlockType", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.BlockType; } });
52
+ Object.defineProperty(exports, "CancellationReason", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.CancellationReason; } });
53
+ Object.defineProperty(exports, "Domain", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.Domain; } });
54
+ Object.defineProperty(exports, "ErrorReason", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.ErrorReason; } });
55
+ Object.defineProperty(exports, "IdentifierType", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.IdentifierType; } });
56
+ Object.defineProperty(exports, "Operator", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.Operator; } });
57
+ Object.defineProperty(exports, "Origin", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.Origin; } });
58
+ Object.defineProperty(exports, "ScheduleStatus", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.ScheduleStatus; } });
59
+ Object.defineProperty(exports, "SkipReason", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.SkipReason; } });
60
+ Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.Status; } });
61
+ Object.defineProperty(exports, "Target", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.Target; } });
62
+ Object.defineProperty(exports, "TimeUnit", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.TimeUnit; } });
63
+ Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.Type; } });
64
+ Object.defineProperty(exports, "Units", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.Units; } });
65
+ Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return automations_v2_activation_activations_universal_js_2.WebhookIdentityType; } });
66
+ //# sourceMappingURL=automations-v2-activation-activations.public.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automations-v2-activation-activations.public.js","sourceRoot":"","sources":["../../../src/automations-v2-activation-activations.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,6HAc8D;AAEjD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,kBAAkB,EAAE,CAAC;AAE/D,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,UAAkB,EAAE,OAA4B,EAAE,EAAE,CAC1D,IAAA,gEAAoB,EAClB,UAAU,EACV,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC;AAuBD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,CAAC,UAAkB,EAAE,UAAuB,EAAE,EAAE,CACrD,IAAA,oEAAwB,EACtB,UAAU,EACV,UAAU;IACV,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAVD,0CAUC;AAeD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,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