@wix/auto_sdk_automations_activation-log 1.0.5 → 1.0.6
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/{internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts → automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.mts} +106 -160
- package/build/{cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts → automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.ts} +106 -160
- package/build/index.d.mts +36 -0
- package/build/index.d.ts +36 -0
- package/build/index.js +487 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +445 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts → automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.mts} +106 -160
- package/build/{es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts → internal/automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.ts} +106 -160
- package/build/internal/index.d.mts +36 -0
- package/build/internal/index.d.ts +36 -0
- package/build/internal/index.js +487 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +445 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +405 -0
- package/build/internal/meta.d.ts +405 -0
- package/build/internal/meta.js +260 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +231 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +405 -0
- package/build/meta.d.ts +405 -0
- package/build/meta.js +260 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +231 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +0 -7
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +0 -26
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +0 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +0 -11
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js +0 -176
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +0 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +0 -17
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +0 -85
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +0 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +0 -32
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +0 -41
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +0 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +0 -1206
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +0 -169
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +0 -1
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +0 -341
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +0 -7
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +0 -7
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +0 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +0 -11
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js +0 -170
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +0 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +0 -17
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +0 -56
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +0 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +0 -32
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +0 -19
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +0 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +0 -1206
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +0 -166
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +0 -1
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +0 -312
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +0 -7
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +0 -26
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +0 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +0 -11
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js +0 -176
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +0 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +0 -17
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +0 -85
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +0 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +0 -32
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +0 -41
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +0 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +0 -1206
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +0 -169
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +0 -1
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +0 -341
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +0 -7
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +0 -7
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +0 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +0 -11
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js +0 -170
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +0 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +0 -17
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +0 -56
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +0 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +0 -32
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +0 -19
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +0 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +0 -1206
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +0 -166
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +0 -1
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +0 -312
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +0 -1
package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js
DELETED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
export var Target;
|
|
2
|
-
(function (Target) {
|
|
3
|
-
Target["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
|
|
4
|
-
Target["SCHEDULE"] = "SCHEDULE";
|
|
5
|
-
Target["IMMEDIATE"] = "IMMEDIATE";
|
|
6
|
-
})(Target || (Target = {}));
|
|
7
|
-
export var CancellationReason;
|
|
8
|
-
(function (CancellationReason) {
|
|
9
|
-
CancellationReason["UNKNOWN_CANCELLATION_REASON"] = "UNKNOWN_CANCELLATION_REASON";
|
|
10
|
-
/** Indicating that the activation was cancelled directly */
|
|
11
|
-
CancellationReason["EVENT_CANCELLED"] = "EVENT_CANCELLED";
|
|
12
|
-
/** Indicating that the activation is cancelled because the automation was deactivated */
|
|
13
|
-
CancellationReason["AUTOMATION_DEACTIVATED"] = "AUTOMATION_DEACTIVATED";
|
|
14
|
-
/** Indicating that the activation is cancelled because the automation was deleted */
|
|
15
|
-
CancellationReason["AUTOMATION_DELETED"] = "AUTOMATION_DELETED";
|
|
16
|
-
/** Indicating that the activation is cancelled after the automation schedule time was reached */
|
|
17
|
-
CancellationReason["CANCELLED_BY_REFRESH_PAYLOAD"] = "CANCELLED_BY_REFRESH_PAYLOAD";
|
|
18
|
-
/** Indicates that the activation was cancelled due to a UoU GDPR "Right to be Forgotten" request. */
|
|
19
|
-
CancellationReason["CANCELLED_BY_GDPR_REQUEST"] = "CANCELLED_BY_GDPR_REQUEST";
|
|
20
|
-
})(CancellationReason || (CancellationReason = {}));
|
|
21
|
-
export var ErrorReason;
|
|
22
|
-
(function (ErrorReason) {
|
|
23
|
-
/** Unexpected error reason */
|
|
24
|
-
ErrorReason["UNEXPECTED_ERROR_REASON"] = "UNEXPECTED_ERROR_REASON";
|
|
25
|
-
/** Failed to evaluate the schedule date expression */
|
|
26
|
-
ErrorReason["SCHEDULE_DATE_EVALUATION_FAILED"] = "SCHEDULE_DATE_EVALUATION_FAILED";
|
|
27
|
-
})(ErrorReason || (ErrorReason = {}));
|
|
28
|
-
export var SkipReason;
|
|
29
|
-
(function (SkipReason) {
|
|
30
|
-
SkipReason["UNKNOWN_SKIP_REASON"] = "UNKNOWN_SKIP_REASON";
|
|
31
|
-
/** Activation was skipped because the scheduled execution time had already passed at the time of execution */
|
|
32
|
-
SkipReason["SCHEDULE_DATE_EXPIRED"] = "SCHEDULE_DATE_EXPIRED";
|
|
33
|
-
/** Activation was skipped because the trigger filters defined in the automation did not match the payload. */
|
|
34
|
-
SkipReason["TRIGGER_FILTERS_NOT_PASSED"] = "TRIGGER_FILTERS_NOT_PASSED";
|
|
35
|
-
/** Activation was skipped because it exceeded the configured rate limit (maximum number of executions allowed in a time period). */
|
|
36
|
-
SkipReason["RATE_LIMIT_EXCEEDED"] = "RATE_LIMIT_EXCEEDED";
|
|
37
|
-
/** Activation was skipped because an event with the same idempotency key was already processed. */
|
|
38
|
-
SkipReason["EVENT_ALREADY_PROCESSED"] = "EVENT_ALREADY_PROCESSED";
|
|
39
|
-
})(SkipReason || (SkipReason = {}));
|
|
40
|
-
export var Status;
|
|
41
|
-
(function (Status) {
|
|
42
|
-
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
43
|
-
/** This indicates activation is not started yet (no action has run yet) */
|
|
44
|
-
Status["INITIATED"] = "INITIATED";
|
|
45
|
-
/** The activation is in scheduled status when the automation has future date or debounce defined and we're in the waiting stage (no action has run yet) */
|
|
46
|
-
Status["SCHEDULED"] = "SCHEDULED";
|
|
47
|
-
/** This indicates the automation activation has started and currently in progress */
|
|
48
|
-
Status["STARTED"] = "STARTED";
|
|
49
|
-
/** This indicates all the automation actions were handled either by invoking them, skipping them etc. */
|
|
50
|
-
Status["ENDED"] = "ENDED";
|
|
51
|
-
/** This indicates the activation was cancelled */
|
|
52
|
-
Status["CANCELLED"] = "CANCELLED";
|
|
53
|
-
/**
|
|
54
|
-
* This indicates the activation failed to start
|
|
55
|
-
* Note that failure in the activation of a single action will not result a failure in activation of the entire automation
|
|
56
|
-
*/
|
|
57
|
-
Status["FAILED"] = "FAILED";
|
|
58
|
-
/**
|
|
59
|
-
* Indicates that the automation activation was skipped without executing any actions.
|
|
60
|
-
* Note that an activation will either be skipped immediately or move to INITIATED state.
|
|
61
|
-
*/
|
|
62
|
-
Status["SKIPPED"] = "SKIPPED";
|
|
63
|
-
})(Status || (Status = {}));
|
|
64
|
-
export var WarningReason;
|
|
65
|
-
(function (WarningReason) {
|
|
66
|
-
WarningReason["UNKNOWN_WARNING_REASON"] = "UNKNOWN_WARNING_REASON";
|
|
67
|
-
/** Failed to enrich payload with studio site enrichment */
|
|
68
|
-
WarningReason["STUDIO_SITE_ENRICHMENT_FAILED"] = "STUDIO_SITE_ENRICHMENT_FAILED";
|
|
69
|
-
/** Failed to refresh payload data */
|
|
70
|
-
WarningReason["REFRESH_PAYLOAD_FAILED"] = "REFRESH_PAYLOAD_FAILED";
|
|
71
|
-
/** Failed to retrieve contact information */
|
|
72
|
-
WarningReason["GET_CONTACT_ENRICHMENT_FAILED"] = "GET_CONTACT_ENRICHMENT_FAILED";
|
|
73
|
-
/** Failed to retrieve member information */
|
|
74
|
-
WarningReason["GET_MEMBER_ENRICHMENT_FAILED"] = "GET_MEMBER_ENRICHMENT_FAILED";
|
|
75
|
-
})(WarningReason || (WarningReason = {}));
|
|
76
|
-
export var Domain;
|
|
77
|
-
(function (Domain) {
|
|
78
|
-
/** User domain (default). */
|
|
79
|
-
Domain["USER"] = "USER";
|
|
80
|
-
/** Wix domain. */
|
|
81
|
-
Domain["WIX"] = "WIX";
|
|
82
|
-
/** Wix account-level domain. */
|
|
83
|
-
Domain["WIX_ACCOUNT"] = "WIX_ACCOUNT";
|
|
84
|
-
})(Domain || (Domain = {}));
|
|
85
|
-
export var TimeUnit;
|
|
86
|
-
(function (TimeUnit) {
|
|
87
|
-
TimeUnit["UNKNOWN_TIME_UNIT"] = "UNKNOWN_TIME_UNIT";
|
|
88
|
-
/** Minutes. */
|
|
89
|
-
TimeUnit["MINUTES"] = "MINUTES";
|
|
90
|
-
/** Hours. */
|
|
91
|
-
TimeUnit["HOURS"] = "HOURS";
|
|
92
|
-
/** Days. */
|
|
93
|
-
TimeUnit["DAYS"] = "DAYS";
|
|
94
|
-
/** Weeks. */
|
|
95
|
-
TimeUnit["WEEKS"] = "WEEKS";
|
|
96
|
-
/** Months. */
|
|
97
|
-
TimeUnit["MONTHS"] = "MONTHS";
|
|
98
|
-
})(TimeUnit || (TimeUnit = {}));
|
|
99
|
-
export var Operator;
|
|
100
|
-
(function (Operator) {
|
|
101
|
-
/** Unknown. */
|
|
102
|
-
Operator["UNKNOWN_OPERATOR"] = "UNKNOWN_OPERATOR";
|
|
103
|
-
/** `OR` operator. */
|
|
104
|
-
Operator["OR"] = "OR";
|
|
105
|
-
/** `AND` operator. */
|
|
106
|
-
Operator["AND"] = "AND";
|
|
107
|
-
})(Operator || (Operator = {}));
|
|
108
|
-
export var Language;
|
|
109
|
-
(function (Language) {
|
|
110
|
-
/** Unknown. */
|
|
111
|
-
Language["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
112
|
-
/** `JAVASCRIPT` language. */
|
|
113
|
-
Language["JAVASCRIPT"] = "JAVASCRIPT";
|
|
114
|
-
})(Language || (Language = {}));
|
|
115
|
-
export var Type;
|
|
116
|
-
(function (Type) {
|
|
117
|
-
/** Based on the trigger. */
|
|
118
|
-
Type["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
119
|
-
/** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#app-defined-actions). This action type is available in the site dashboard. */
|
|
120
|
-
Type["APP_DEFINED"] = "APP_DEFINED";
|
|
121
|
-
/** Condition. This determines which action runs next. */
|
|
122
|
-
Type["CONDITION"] = "CONDITION";
|
|
123
|
-
/** Delay. The automation must wait before executing the next step. */
|
|
124
|
-
Type["DELAY"] = "DELAY";
|
|
125
|
-
/** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
|
|
126
|
-
Type["RATE_LIMIT"] = "RATE_LIMIT";
|
|
127
|
-
})(Type || (Type = {}));
|
|
128
|
-
export var AutomationConfigurationStatus;
|
|
129
|
-
(function (AutomationConfigurationStatus) {
|
|
130
|
-
/** Unknown. */
|
|
131
|
-
AutomationConfigurationStatus["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
132
|
-
/** Active. Active automations can be triggered. */
|
|
133
|
-
AutomationConfigurationStatus["ACTIVE"] = "ACTIVE";
|
|
134
|
-
/** Inactive. Inactive automations cannot be triggered. */
|
|
135
|
-
AutomationConfigurationStatus["INACTIVE"] = "INACTIVE";
|
|
136
|
-
})(AutomationConfigurationStatus || (AutomationConfigurationStatus = {}));
|
|
137
|
-
export var Origin;
|
|
138
|
-
(function (Origin) {
|
|
139
|
-
/** Default value. */
|
|
140
|
-
Origin["UNKNOWN_ORIGIN"] = "UNKNOWN_ORIGIN";
|
|
141
|
-
/** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */
|
|
142
|
-
Origin["USER"] = "USER";
|
|
143
|
-
/** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */
|
|
144
|
-
Origin["APPLICATION"] = "APPLICATION";
|
|
145
|
-
/** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
|
|
146
|
-
Origin["PREINSTALLED"] = "PREINSTALLED";
|
|
147
|
-
})(Origin || (Origin = {}));
|
|
148
|
-
/** Type of identifier used to look up activation logs */
|
|
149
|
-
export var IdentifierType;
|
|
150
|
-
(function (IdentifierType) {
|
|
151
|
-
IdentifierType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
152
|
-
})(IdentifierType || (IdentifierType = {}));
|
|
153
|
-
/** FilterBy */
|
|
154
|
-
export var FilterBy;
|
|
155
|
-
(function (FilterBy) {
|
|
156
|
-
FilterBy["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
157
|
-
})(FilterBy || (FilterBy = {}));
|
|
158
|
-
export var WebhookIdentityType;
|
|
159
|
-
(function (WebhookIdentityType) {
|
|
160
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
161
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
162
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
163
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
164
|
-
WebhookIdentityType["APP"] = "APP";
|
|
165
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
166
|
-
//# sourceMappingURL=automations-activation-logs-v1-activation-log-activation-log.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations-activation-logs-v1-activation-log-activation-log.types.js","sourceRoot":"","sources":["../../../../src/automations-activation-logs-v1-activation-log-activation-log.types.ts"],"names":[],"mappings":"AAsCA,MAAM,CAAN,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,+BAAqB,CAAA;IACrB,iCAAuB,CAAA;AACzB,CAAC,EAJW,MAAM,KAAN,MAAM,QAIjB;AASD,MAAM,CAAN,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,iFAA2D,CAAA;IAC3D,4DAA4D;IAC5D,yDAAmC,CAAA;IACnC,yFAAyF;IACzF,uEAAiD,CAAA;IACjD,qFAAqF;IACrF,+DAAyC,CAAA;IACzC,iGAAiG;IACjG,mFAA6D,CAAA;IAC7D,qGAAqG;IACrG,6EAAuD,CAAA;AACzD,CAAC,EAZW,kBAAkB,KAAlB,kBAAkB,QAY7B;AAyBD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,8BAA8B;IAC9B,kEAAmD,CAAA;IACnD,sDAAsD;IACtD,kFAAmE,CAAA;AACrE,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAQD,MAAM,CAAN,IAAY,UAUX;AAVD,WAAY,UAAU;IACpB,yDAA2C,CAAA;IAC3C,8GAA8G;IAC9G,6DAA+C,CAAA;IAC/C,8GAA8G;IAC9G,uEAAyD,CAAA;IACzD,oIAAoI;IACpI,yDAA2C,CAAA;IAC3C,mGAAmG;IACnG,iEAAmD,CAAA;AACrD,CAAC,EAVW,UAAU,KAAV,UAAU,QAUrB;AAWD,MAAM,CAAN,IAAY,MAsBX;AAtBD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,2EAA2E;IAC3E,iCAAuB,CAAA;IACvB,2JAA2J;IAC3J,iCAAuB,CAAA;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1,312 +0,0 @@
|
|
|
1
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
-
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
3
|
-
import * as ambassadorWixAutomationsActivationLogsV1ActivationLog from './automations-activation-logs-v1-activation-log-activation-log.http.js';
|
|
4
|
-
export var Target;
|
|
5
|
-
(function (Target) {
|
|
6
|
-
Target["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
|
|
7
|
-
Target["SCHEDULE"] = "SCHEDULE";
|
|
8
|
-
Target["IMMEDIATE"] = "IMMEDIATE";
|
|
9
|
-
})(Target || (Target = {}));
|
|
10
|
-
export var CancellationReason;
|
|
11
|
-
(function (CancellationReason) {
|
|
12
|
-
CancellationReason["UNKNOWN_CANCELLATION_REASON"] = "UNKNOWN_CANCELLATION_REASON";
|
|
13
|
-
/** Indicating that the activation was cancelled directly */
|
|
14
|
-
CancellationReason["EVENT_CANCELLED"] = "EVENT_CANCELLED";
|
|
15
|
-
/** Indicating that the activation is cancelled because the automation was deactivated */
|
|
16
|
-
CancellationReason["AUTOMATION_DEACTIVATED"] = "AUTOMATION_DEACTIVATED";
|
|
17
|
-
/** Indicating that the activation is cancelled because the automation was deleted */
|
|
18
|
-
CancellationReason["AUTOMATION_DELETED"] = "AUTOMATION_DELETED";
|
|
19
|
-
/** Indicating that the activation is cancelled after the automation schedule time was reached */
|
|
20
|
-
CancellationReason["CANCELLED_BY_REFRESH_PAYLOAD"] = "CANCELLED_BY_REFRESH_PAYLOAD";
|
|
21
|
-
/** Indicates that the activation was cancelled due to a UoU GDPR "Right to be Forgotten" request. */
|
|
22
|
-
CancellationReason["CANCELLED_BY_GDPR_REQUEST"] = "CANCELLED_BY_GDPR_REQUEST";
|
|
23
|
-
})(CancellationReason || (CancellationReason = {}));
|
|
24
|
-
export var ErrorReason;
|
|
25
|
-
(function (ErrorReason) {
|
|
26
|
-
/** Unexpected error reason */
|
|
27
|
-
ErrorReason["UNEXPECTED_ERROR_REASON"] = "UNEXPECTED_ERROR_REASON";
|
|
28
|
-
/** Failed to evaluate the schedule date expression */
|
|
29
|
-
ErrorReason["SCHEDULE_DATE_EVALUATION_FAILED"] = "SCHEDULE_DATE_EVALUATION_FAILED";
|
|
30
|
-
})(ErrorReason || (ErrorReason = {}));
|
|
31
|
-
export var SkipReason;
|
|
32
|
-
(function (SkipReason) {
|
|
33
|
-
SkipReason["UNKNOWN_SKIP_REASON"] = "UNKNOWN_SKIP_REASON";
|
|
34
|
-
/** Activation was skipped because the scheduled execution time had already passed at the time of execution */
|
|
35
|
-
SkipReason["SCHEDULE_DATE_EXPIRED"] = "SCHEDULE_DATE_EXPIRED";
|
|
36
|
-
/** Activation was skipped because the trigger filters defined in the automation did not match the payload. */
|
|
37
|
-
SkipReason["TRIGGER_FILTERS_NOT_PASSED"] = "TRIGGER_FILTERS_NOT_PASSED";
|
|
38
|
-
/** Activation was skipped because it exceeded the configured rate limit (maximum number of executions allowed in a time period). */
|
|
39
|
-
SkipReason["RATE_LIMIT_EXCEEDED"] = "RATE_LIMIT_EXCEEDED";
|
|
40
|
-
/** Activation was skipped because an event with the same idempotency key was already processed. */
|
|
41
|
-
SkipReason["EVENT_ALREADY_PROCESSED"] = "EVENT_ALREADY_PROCESSED";
|
|
42
|
-
})(SkipReason || (SkipReason = {}));
|
|
43
|
-
export var Status;
|
|
44
|
-
(function (Status) {
|
|
45
|
-
Status["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
46
|
-
/** This indicates activation is not started yet (no action has run yet) */
|
|
47
|
-
Status["INITIATED"] = "INITIATED";
|
|
48
|
-
/** The activation is in scheduled status when the automation has future date or debounce defined and we're in the waiting stage (no action has run yet) */
|
|
49
|
-
Status["SCHEDULED"] = "SCHEDULED";
|
|
50
|
-
/** This indicates the automation activation has started and currently in progress */
|
|
51
|
-
Status["STARTED"] = "STARTED";
|
|
52
|
-
/** This indicates all the automation actions were handled either by invoking them, skipping them etc. */
|
|
53
|
-
Status["ENDED"] = "ENDED";
|
|
54
|
-
/** This indicates the activation was cancelled */
|
|
55
|
-
Status["CANCELLED"] = "CANCELLED";
|
|
56
|
-
/**
|
|
57
|
-
* This indicates the activation failed to start
|
|
58
|
-
* Note that failure in the activation of a single action will not result a failure in activation of the entire automation
|
|
59
|
-
*/
|
|
60
|
-
Status["FAILED"] = "FAILED";
|
|
61
|
-
/**
|
|
62
|
-
* Indicates that the automation activation was skipped without executing any actions.
|
|
63
|
-
* Note that an activation will either be skipped immediately or move to INITIATED state.
|
|
64
|
-
*/
|
|
65
|
-
Status["SKIPPED"] = "SKIPPED";
|
|
66
|
-
})(Status || (Status = {}));
|
|
67
|
-
export var WarningReason;
|
|
68
|
-
(function (WarningReason) {
|
|
69
|
-
WarningReason["UNKNOWN_WARNING_REASON"] = "UNKNOWN_WARNING_REASON";
|
|
70
|
-
/** Failed to enrich payload with studio site enrichment */
|
|
71
|
-
WarningReason["STUDIO_SITE_ENRICHMENT_FAILED"] = "STUDIO_SITE_ENRICHMENT_FAILED";
|
|
72
|
-
/** Failed to refresh payload data */
|
|
73
|
-
WarningReason["REFRESH_PAYLOAD_FAILED"] = "REFRESH_PAYLOAD_FAILED";
|
|
74
|
-
/** Failed to retrieve contact information */
|
|
75
|
-
WarningReason["GET_CONTACT_ENRICHMENT_FAILED"] = "GET_CONTACT_ENRICHMENT_FAILED";
|
|
76
|
-
/** Failed to retrieve member information */
|
|
77
|
-
WarningReason["GET_MEMBER_ENRICHMENT_FAILED"] = "GET_MEMBER_ENRICHMENT_FAILED";
|
|
78
|
-
})(WarningReason || (WarningReason = {}));
|
|
79
|
-
export var Domain;
|
|
80
|
-
(function (Domain) {
|
|
81
|
-
/** User domain (default). */
|
|
82
|
-
Domain["USER"] = "USER";
|
|
83
|
-
/** Wix domain. */
|
|
84
|
-
Domain["WIX"] = "WIX";
|
|
85
|
-
/** Wix account-level domain. */
|
|
86
|
-
Domain["WIX_ACCOUNT"] = "WIX_ACCOUNT";
|
|
87
|
-
})(Domain || (Domain = {}));
|
|
88
|
-
export var TimeUnit;
|
|
89
|
-
(function (TimeUnit) {
|
|
90
|
-
TimeUnit["UNKNOWN_TIME_UNIT"] = "UNKNOWN_TIME_UNIT";
|
|
91
|
-
/** Minutes. */
|
|
92
|
-
TimeUnit["MINUTES"] = "MINUTES";
|
|
93
|
-
/** Hours. */
|
|
94
|
-
TimeUnit["HOURS"] = "HOURS";
|
|
95
|
-
/** Days. */
|
|
96
|
-
TimeUnit["DAYS"] = "DAYS";
|
|
97
|
-
/** Weeks. */
|
|
98
|
-
TimeUnit["WEEKS"] = "WEEKS";
|
|
99
|
-
/** Months. */
|
|
100
|
-
TimeUnit["MONTHS"] = "MONTHS";
|
|
101
|
-
})(TimeUnit || (TimeUnit = {}));
|
|
102
|
-
export var Operator;
|
|
103
|
-
(function (Operator) {
|
|
104
|
-
/** Unknown. */
|
|
105
|
-
Operator["UNKNOWN_OPERATOR"] = "UNKNOWN_OPERATOR";
|
|
106
|
-
/** `OR` operator. */
|
|
107
|
-
Operator["OR"] = "OR";
|
|
108
|
-
/** `AND` operator. */
|
|
109
|
-
Operator["AND"] = "AND";
|
|
110
|
-
})(Operator || (Operator = {}));
|
|
111
|
-
export var Language;
|
|
112
|
-
(function (Language) {
|
|
113
|
-
/** Unknown. */
|
|
114
|
-
Language["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
115
|
-
/** `JAVASCRIPT` language. */
|
|
116
|
-
Language["JAVASCRIPT"] = "JAVASCRIPT";
|
|
117
|
-
})(Language || (Language = {}));
|
|
118
|
-
export var Type;
|
|
119
|
-
(function (Type) {
|
|
120
|
-
/** Based on the trigger. */
|
|
121
|
-
Type["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
122
|
-
/** Defined by a [Wix app](https://dev.wix.com/docs/rest/business-management/automations/automations/automations-v2/about-automation-configuration#app-defined-actions). This action type is available in the site dashboard. */
|
|
123
|
-
Type["APP_DEFINED"] = "APP_DEFINED";
|
|
124
|
-
/** Condition. This determines which action runs next. */
|
|
125
|
-
Type["CONDITION"] = "CONDITION";
|
|
126
|
-
/** Delay. The automation must wait before executing the next step. */
|
|
127
|
-
Type["DELAY"] = "DELAY";
|
|
128
|
-
/** Rate-limiter. This stops the automation flow if the subsequent action has reached its maximum allowed executions. */
|
|
129
|
-
Type["RATE_LIMIT"] = "RATE_LIMIT";
|
|
130
|
-
})(Type || (Type = {}));
|
|
131
|
-
export var AutomationConfigurationStatus;
|
|
132
|
-
(function (AutomationConfigurationStatus) {
|
|
133
|
-
/** Unknown. */
|
|
134
|
-
AutomationConfigurationStatus["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
135
|
-
/** Active. Active automations can be triggered. */
|
|
136
|
-
AutomationConfigurationStatus["ACTIVE"] = "ACTIVE";
|
|
137
|
-
/** Inactive. Inactive automations cannot be triggered. */
|
|
138
|
-
AutomationConfigurationStatus["INACTIVE"] = "INACTIVE";
|
|
139
|
-
})(AutomationConfigurationStatus || (AutomationConfigurationStatus = {}));
|
|
140
|
-
export var Origin;
|
|
141
|
-
(function (Origin) {
|
|
142
|
-
/** Default value. */
|
|
143
|
-
Origin["UNKNOWN_ORIGIN"] = "UNKNOWN_ORIGIN";
|
|
144
|
-
/** Created by a [Wix user](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-user). */
|
|
145
|
-
Origin["USER"] = "USER";
|
|
146
|
-
/** Created by a [Wix app](https://dev.wix.com/docs/build-apps/get-started/overview/glossary#wix-app) for a particular site. */
|
|
147
|
-
Origin["APPLICATION"] = "APPLICATION";
|
|
148
|
-
/** [Preinstalled automation](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/automations/pre-installed-automations/about-pre-installed-automations). */
|
|
149
|
-
Origin["PREINSTALLED"] = "PREINSTALLED";
|
|
150
|
-
})(Origin || (Origin = {}));
|
|
151
|
-
/** Type of identifier used to look up activation logs */
|
|
152
|
-
export var IdentifierType;
|
|
153
|
-
(function (IdentifierType) {
|
|
154
|
-
IdentifierType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
155
|
-
})(IdentifierType || (IdentifierType = {}));
|
|
156
|
-
/** FilterBy */
|
|
157
|
-
export var FilterBy;
|
|
158
|
-
(function (FilterBy) {
|
|
159
|
-
FilterBy["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
160
|
-
})(FilterBy || (FilterBy = {}));
|
|
161
|
-
export var WebhookIdentityType;
|
|
162
|
-
(function (WebhookIdentityType) {
|
|
163
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
164
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
165
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
166
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
167
|
-
WebhookIdentityType["APP"] = "APP";
|
|
168
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
169
|
-
/**
|
|
170
|
-
* Get activation log by ID
|
|
171
|
-
* @param activationId - Activation log ID
|
|
172
|
-
* @public
|
|
173
|
-
* @documentationMaturity preview
|
|
174
|
-
* @requiredField activationId
|
|
175
|
-
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
176
|
-
* @permissionScope Manage Stores
|
|
177
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
178
|
-
* @permissionScope Set Up Automations
|
|
179
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
180
|
-
* @applicableIdentity APP
|
|
181
|
-
* @returns Activation log
|
|
182
|
-
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog
|
|
183
|
-
*/
|
|
184
|
-
export async function getActivationLog(activationId) {
|
|
185
|
-
// @ts-ignore
|
|
186
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
187
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
188
|
-
activationId: activationId,
|
|
189
|
-
});
|
|
190
|
-
const reqOpts = ambassadorWixAutomationsActivationLogsV1ActivationLog.getActivationLog(payload);
|
|
191
|
-
sideEffects?.onSiteCall?.();
|
|
192
|
-
try {
|
|
193
|
-
const result = await httpClient.request(reqOpts);
|
|
194
|
-
sideEffects?.onSuccess?.(result);
|
|
195
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)?.activationLog;
|
|
196
|
-
}
|
|
197
|
-
catch (err) {
|
|
198
|
-
const transformedError = sdkTransformError(err, {
|
|
199
|
-
spreadPathsToArguments: {},
|
|
200
|
-
explicitPathsToArguments: { activationId: '$[0]' },
|
|
201
|
-
singleArgumentUnchanged: false,
|
|
202
|
-
}, ['activationId']);
|
|
203
|
-
sideEffects?.onError?.(err);
|
|
204
|
-
throw transformedError;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* List activation logs
|
|
209
|
-
* @public
|
|
210
|
-
* @documentationMaturity preview
|
|
211
|
-
* @requiredField options.identifierType
|
|
212
|
-
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
213
|
-
* @permissionScope Manage Stores
|
|
214
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
215
|
-
* @permissionScope Set Up Automations
|
|
216
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
217
|
-
* @applicableIdentity APP
|
|
218
|
-
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs
|
|
219
|
-
*/
|
|
220
|
-
export async function listActivationLogs(options) {
|
|
221
|
-
// @ts-ignore
|
|
222
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
223
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
224
|
-
fromCreatedDate: options?.fromCreatedDate,
|
|
225
|
-
toCreatedDate: options?.toCreatedDate,
|
|
226
|
-
cursorPaging: options?.cursorPaging,
|
|
227
|
-
includePayload: options?.includePayload,
|
|
228
|
-
identifierType: options?.identifierType,
|
|
229
|
-
automationIdInfo: options?.automationIdInfo,
|
|
230
|
-
preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,
|
|
231
|
-
});
|
|
232
|
-
const reqOpts = ambassadorWixAutomationsActivationLogsV1ActivationLog.listActivationLogs(payload);
|
|
233
|
-
sideEffects?.onSiteCall?.();
|
|
234
|
-
try {
|
|
235
|
-
const result = await httpClient.request(reqOpts);
|
|
236
|
-
sideEffects?.onSuccess?.(result);
|
|
237
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
238
|
-
}
|
|
239
|
-
catch (err) {
|
|
240
|
-
const transformedError = sdkTransformError(err, {
|
|
241
|
-
spreadPathsToArguments: {},
|
|
242
|
-
explicitPathsToArguments: {
|
|
243
|
-
fromCreatedDate: '$[0].fromCreatedDate',
|
|
244
|
-
toCreatedDate: '$[0].toCreatedDate',
|
|
245
|
-
cursorPaging: '$[0].cursorPaging',
|
|
246
|
-
includePayload: '$[0].includePayload',
|
|
247
|
-
identifierType: '$[0].identifierType',
|
|
248
|
-
automationIdInfo: '$[0].automationIdInfo',
|
|
249
|
-
preinstalledIdentifierInfo: '$[0].preinstalledIdentifierInfo',
|
|
250
|
-
},
|
|
251
|
-
singleArgumentUnchanged: false,
|
|
252
|
-
}, ['options']);
|
|
253
|
-
sideEffects?.onError?.(err);
|
|
254
|
-
throw transformedError;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* Search activation logs by payload pii value
|
|
259
|
-
* Entire field value match is supported
|
|
260
|
-
* Supported are emails, phones and guids
|
|
261
|
-
* @param value - Value to search in the payload
|
|
262
|
-
* @public
|
|
263
|
-
* @documentationMaturity preview
|
|
264
|
-
* @requiredField value
|
|
265
|
-
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
266
|
-
* @permissionScope Manage Stores
|
|
267
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
268
|
-
* @permissionScope Set Up Automations
|
|
269
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
270
|
-
* @applicableIdentity APP
|
|
271
|
-
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue
|
|
272
|
-
*/
|
|
273
|
-
export async function searchActivationLogsByPayloadPiiValue(value, options) {
|
|
274
|
-
// @ts-ignore
|
|
275
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
276
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
277
|
-
value: value,
|
|
278
|
-
cursorPaging: options?.cursorPaging,
|
|
279
|
-
includePayload: options?.includePayload,
|
|
280
|
-
filterBy: options?.filterBy,
|
|
281
|
-
automationIdInfo: options?.automationIdInfo,
|
|
282
|
-
preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,
|
|
283
|
-
fromCreatedDate: options?.fromCreatedDate,
|
|
284
|
-
toCreatedDate: options?.toCreatedDate,
|
|
285
|
-
});
|
|
286
|
-
const reqOpts = ambassadorWixAutomationsActivationLogsV1ActivationLog.searchActivationLogsByPayloadPiiValue(payload);
|
|
287
|
-
sideEffects?.onSiteCall?.();
|
|
288
|
-
try {
|
|
289
|
-
const result = await httpClient.request(reqOpts);
|
|
290
|
-
sideEffects?.onSuccess?.(result);
|
|
291
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
292
|
-
}
|
|
293
|
-
catch (err) {
|
|
294
|
-
const transformedError = sdkTransformError(err, {
|
|
295
|
-
spreadPathsToArguments: {},
|
|
296
|
-
explicitPathsToArguments: {
|
|
297
|
-
value: '$[0]',
|
|
298
|
-
cursorPaging: '$[1].cursorPaging',
|
|
299
|
-
includePayload: '$[1].includePayload',
|
|
300
|
-
filterBy: '$[1].filterBy',
|
|
301
|
-
automationIdInfo: '$[1].automationIdInfo',
|
|
302
|
-
preinstalledIdentifierInfo: '$[1].preinstalledIdentifierInfo',
|
|
303
|
-
fromCreatedDate: '$[1].fromCreatedDate',
|
|
304
|
-
toCreatedDate: '$[1].toCreatedDate',
|
|
305
|
-
},
|
|
306
|
-
singleArgumentUnchanged: false,
|
|
307
|
-
}, ['value', 'options']);
|
|
308
|
-
sideEffects?.onError?.(err);
|
|
309
|
-
throw transformedError;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
//# sourceMappingURL=automations-activation-logs-v1-activation-log-activation-log.universal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"automations-activation-logs-v1-activation-log-activation-log.universal.js","sourceRoot":"","sources":["../../../../src/automations-activation-logs-v1-activation-log-activation-log.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,qDAAqD,MAAM,wEAAwE,CAAC;AAwChJ,MAAM,CAAN,IAAY,MAIX;AAJD,WAAY,MAAM;IAChB,2CAAiC,CAAA;IACjC,+BAAqB,CAAA;IACrB,iCAAuB,CAAA;AACzB,CAAC,EAJW,MAAM,KAAN,MAAM,QAIjB;AASD,MAAM,CAAN,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,iFAA2D,CAAA;IAC3D,4DAA4D;IAC5D,yDAAmC,CAAA;IACnC,yFAAyF;IACzF,uEAAiD,CAAA;IACjD,qFAAqF;IACrF,+DAAyC,CAAA;IACzC,iGAAiG;IACjG,mFAA6D,CAAA;IAC7D,qGAAqG;IACrG,6EAAuD,CAAA;AACzD,CAAC,EAZW,kBAAkB,KAAlB,kBAAkB,QAY7B;AAyBD,MAAM,CAAN,IAAY,WAKX;AALD,WAAY,WAAW;IACrB,8BAA8B;IAC9B,kEAAmD,CAAA;IACnD,sDAAsD;IACtD,kFAAmE,CAAA;AACrE,CAAC,EALW,WAAW,KAAX,WAAW,QAKtB;AAQD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