@wix/auto_sdk_automations_activation-log 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +25 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js +176 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +85 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +40 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +158 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +323 -0
- package/build/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +7 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js +170 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +56 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +19 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +155 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +294 -0
- package/build/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js +25 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js +176 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +85 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js +40 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js +158 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +323 -0
- package/build/internal/cjs/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.d.ts +7 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js +7 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.context.js.map +1 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.d.ts +11 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js +170 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.http.js.map +1 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.d.ts +17 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js +56 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.meta.js.map +1 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.d.ts +32 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js +19 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.public.js.map +1 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.d.ts +1144 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js +155 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.types.js.map +1 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.d.ts +1228 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js +294 -0
- package/build/internal/es/src/automations-activation-logs-v1-activation-log-activation-log.universal.js.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +52 -0
|
@@ -0,0 +1,294 @@
|
|
|
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
|
+
})(Domain || (Domain = {}));
|
|
86
|
+
export var TimeUnit;
|
|
87
|
+
(function (TimeUnit) {
|
|
88
|
+
TimeUnit["UNKNOWN_TIME_UNIT"] = "UNKNOWN_TIME_UNIT";
|
|
89
|
+
TimeUnit["MINUTES"] = "MINUTES";
|
|
90
|
+
TimeUnit["HOURS"] = "HOURS";
|
|
91
|
+
TimeUnit["DAYS"] = "DAYS";
|
|
92
|
+
TimeUnit["WEEKS"] = "WEEKS";
|
|
93
|
+
TimeUnit["MONTHS"] = "MONTHS";
|
|
94
|
+
})(TimeUnit || (TimeUnit = {}));
|
|
95
|
+
export var Operator;
|
|
96
|
+
(function (Operator) {
|
|
97
|
+
Operator["UNKNOWN_OPERATOR"] = "UNKNOWN_OPERATOR";
|
|
98
|
+
Operator["OR"] = "OR";
|
|
99
|
+
Operator["AND"] = "AND";
|
|
100
|
+
})(Operator || (Operator = {}));
|
|
101
|
+
export var Type;
|
|
102
|
+
(function (Type) {
|
|
103
|
+
/** Automation will be triggered according to the trigger configuration. */
|
|
104
|
+
Type["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
105
|
+
/** App defined Action. */
|
|
106
|
+
Type["APP_DEFINED"] = "APP_DEFINED";
|
|
107
|
+
/** Condition Action. */
|
|
108
|
+
Type["CONDITION"] = "CONDITION";
|
|
109
|
+
/** Delay Action. */
|
|
110
|
+
Type["DELAY"] = "DELAY";
|
|
111
|
+
/** RateLimit Action. */
|
|
112
|
+
Type["RATE_LIMIT"] = "RATE_LIMIT";
|
|
113
|
+
/** Set Variables Action. */
|
|
114
|
+
Type["SET_VARIABLES"] = "SET_VARIABLES";
|
|
115
|
+
/** Output Action. */
|
|
116
|
+
Type["OUTPUT"] = "OUTPUT";
|
|
117
|
+
})(Type || (Type = {}));
|
|
118
|
+
export var AutomationConfigurationStatus;
|
|
119
|
+
(function (AutomationConfigurationStatus) {
|
|
120
|
+
/** unused */
|
|
121
|
+
AutomationConfigurationStatus["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
122
|
+
/** Automation will be triggered according to the trigger configuration */
|
|
123
|
+
AutomationConfigurationStatus["ACTIVE"] = "ACTIVE";
|
|
124
|
+
/** Automation will not be triggered */
|
|
125
|
+
AutomationConfigurationStatus["INACTIVE"] = "INACTIVE";
|
|
126
|
+
})(AutomationConfigurationStatus || (AutomationConfigurationStatus = {}));
|
|
127
|
+
export var Origin;
|
|
128
|
+
(function (Origin) {
|
|
129
|
+
/** Default value. This is unused. */
|
|
130
|
+
Origin["UNKNOWN_ORIGIN"] = "UNKNOWN_ORIGIN";
|
|
131
|
+
/** User created automation. */
|
|
132
|
+
Origin["USER"] = "USER";
|
|
133
|
+
/** Automation created by application (site specific). */
|
|
134
|
+
Origin["APPLICATION"] = "APPLICATION";
|
|
135
|
+
/** Preinstalled application automation. */
|
|
136
|
+
Origin["PREINSTALLED"] = "PREINSTALLED";
|
|
137
|
+
/** Automation created from a recipe. */
|
|
138
|
+
Origin["RECIPE"] = "RECIPE";
|
|
139
|
+
})(Origin || (Origin = {}));
|
|
140
|
+
/** Type of identifier used to look up activation logs */
|
|
141
|
+
export var IdentifierType;
|
|
142
|
+
(function (IdentifierType) {
|
|
143
|
+
IdentifierType["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
144
|
+
})(IdentifierType || (IdentifierType = {}));
|
|
145
|
+
/** FilterBy */
|
|
146
|
+
export var FilterBy;
|
|
147
|
+
(function (FilterBy) {
|
|
148
|
+
FilterBy["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
149
|
+
})(FilterBy || (FilterBy = {}));
|
|
150
|
+
export var WebhookIdentityType;
|
|
151
|
+
(function (WebhookIdentityType) {
|
|
152
|
+
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
153
|
+
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
154
|
+
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
155
|
+
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
156
|
+
WebhookIdentityType["APP"] = "APP";
|
|
157
|
+
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
158
|
+
/**
|
|
159
|
+
* Get activation log by ID
|
|
160
|
+
* @param activationId - Activation log ID
|
|
161
|
+
* @public
|
|
162
|
+
* @documentationMaturity preview
|
|
163
|
+
* @requiredField activationId
|
|
164
|
+
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
165
|
+
* @permissionScope Set Up Automations
|
|
166
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
167
|
+
* @applicableIdentity APP
|
|
168
|
+
* @returns Activation log
|
|
169
|
+
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog
|
|
170
|
+
*/
|
|
171
|
+
export async function getActivationLog(activationId) {
|
|
172
|
+
// @ts-ignore
|
|
173
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
174
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
175
|
+
activationId: activationId,
|
|
176
|
+
});
|
|
177
|
+
const reqOpts = ambassadorWixAutomationsActivationLogsV1ActivationLog.getActivationLog(payload);
|
|
178
|
+
sideEffects?.onSiteCall?.();
|
|
179
|
+
try {
|
|
180
|
+
const result = await httpClient.request(reqOpts);
|
|
181
|
+
sideEffects?.onSuccess?.(result);
|
|
182
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.activationLog;
|
|
183
|
+
}
|
|
184
|
+
catch (err) {
|
|
185
|
+
const transformedError = sdkTransformError(err, {
|
|
186
|
+
spreadPathsToArguments: {},
|
|
187
|
+
explicitPathsToArguments: { activationId: '$[0]' },
|
|
188
|
+
singleArgumentUnchanged: false,
|
|
189
|
+
}, ['activationId']);
|
|
190
|
+
sideEffects?.onError?.(err);
|
|
191
|
+
throw transformedError;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* List activation logs
|
|
196
|
+
* @public
|
|
197
|
+
* @documentationMaturity preview
|
|
198
|
+
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
199
|
+
* @permissionScope Set Up Automations
|
|
200
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
201
|
+
* @applicableIdentity APP
|
|
202
|
+
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs
|
|
203
|
+
*/
|
|
204
|
+
export async function listActivationLogs(options) {
|
|
205
|
+
// @ts-ignore
|
|
206
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
207
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
208
|
+
fromCreatedDate: options?.fromCreatedDate,
|
|
209
|
+
toCreatedDate: options?.toCreatedDate,
|
|
210
|
+
cursorPaging: options?.cursorPaging,
|
|
211
|
+
includePayload: options?.includePayload,
|
|
212
|
+
identifierType: options?.identifierType,
|
|
213
|
+
automationIdInfo: options?.automationIdInfo,
|
|
214
|
+
preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,
|
|
215
|
+
});
|
|
216
|
+
const reqOpts = ambassadorWixAutomationsActivationLogsV1ActivationLog.listActivationLogs(payload);
|
|
217
|
+
sideEffects?.onSiteCall?.();
|
|
218
|
+
try {
|
|
219
|
+
const result = await httpClient.request(reqOpts);
|
|
220
|
+
sideEffects?.onSuccess?.(result);
|
|
221
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
222
|
+
}
|
|
223
|
+
catch (err) {
|
|
224
|
+
const transformedError = sdkTransformError(err, {
|
|
225
|
+
spreadPathsToArguments: {},
|
|
226
|
+
explicitPathsToArguments: {
|
|
227
|
+
fromCreatedDate: '$[0].fromCreatedDate',
|
|
228
|
+
toCreatedDate: '$[0].toCreatedDate',
|
|
229
|
+
cursorPaging: '$[0].cursorPaging',
|
|
230
|
+
includePayload: '$[0].includePayload',
|
|
231
|
+
identifierType: '$[0].identifierType',
|
|
232
|
+
automationIdInfo: '$[0].automationIdInfo',
|
|
233
|
+
preinstalledIdentifierInfo: '$[0].preinstalledIdentifierInfo',
|
|
234
|
+
},
|
|
235
|
+
singleArgumentUnchanged: false,
|
|
236
|
+
}, ['options']);
|
|
237
|
+
sideEffects?.onError?.(err);
|
|
238
|
+
throw transformedError;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Search activation logs by payload pii value
|
|
243
|
+
* Entire field value match is supported
|
|
244
|
+
* Supported are emails, phones and guids
|
|
245
|
+
* @param value - Value to search in the payload
|
|
246
|
+
* @public
|
|
247
|
+
* @documentationMaturity preview
|
|
248
|
+
* @requiredField value
|
|
249
|
+
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
250
|
+
* @permissionScope Set Up Automations
|
|
251
|
+
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
252
|
+
* @applicableIdentity APP
|
|
253
|
+
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue
|
|
254
|
+
*/
|
|
255
|
+
export async function searchActivationLogsByPayloadPiiValue(value, options) {
|
|
256
|
+
// @ts-ignore
|
|
257
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
258
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
259
|
+
value: value,
|
|
260
|
+
cursorPaging: options?.cursorPaging,
|
|
261
|
+
includePayload: options?.includePayload,
|
|
262
|
+
filterBy: options?.filterBy,
|
|
263
|
+
automationIdInfo: options?.automationIdInfo,
|
|
264
|
+
preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,
|
|
265
|
+
fromCreatedDate: options?.fromCreatedDate,
|
|
266
|
+
toCreatedDate: options?.toCreatedDate,
|
|
267
|
+
});
|
|
268
|
+
const reqOpts = ambassadorWixAutomationsActivationLogsV1ActivationLog.searchActivationLogsByPayloadPiiValue(payload);
|
|
269
|
+
sideEffects?.onSiteCall?.();
|
|
270
|
+
try {
|
|
271
|
+
const result = await httpClient.request(reqOpts);
|
|
272
|
+
sideEffects?.onSuccess?.(result);
|
|
273
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
274
|
+
}
|
|
275
|
+
catch (err) {
|
|
276
|
+
const transformedError = sdkTransformError(err, {
|
|
277
|
+
spreadPathsToArguments: {},
|
|
278
|
+
explicitPathsToArguments: {
|
|
279
|
+
value: '$[0]',
|
|
280
|
+
cursorPaging: '$[1].cursorPaging',
|
|
281
|
+
includePayload: '$[1].includePayload',
|
|
282
|
+
filterBy: '$[1].filterBy',
|
|
283
|
+
automationIdInfo: '$[1].automationIdInfo',
|
|
284
|
+
preinstalledIdentifierInfo: '$[1].preinstalledIdentifierInfo',
|
|
285
|
+
fromCreatedDate: '$[1].fromCreatedDate',
|
|
286
|
+
toCreatedDate: '$[1].toCreatedDate',
|
|
287
|
+
},
|
|
288
|
+
singleArgumentUnchanged: false,
|
|
289
|
+
}, ['value', 'options']);
|
|
290
|
+
sideEffects?.onError?.(err);
|
|
291
|
+
throw transformedError;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
//# sourceMappingURL=automations-activation-logs-v1-activation-log-activation-log.universal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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;AAED,MAAM,CAAN,IAAY,kBAYX;AAZ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CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,KAAK,EAAE,MAAM;gBACb,YAAY,EAAE,mBAAmB;gBACjC,cAAc,EAAE,qBAAqB;gBACrC,QAAQ,EAAE,eAAe;gBACzB,gBAAgB,EAAE,uBAAuB;gBACzC,0BAA0B,EAAE,iCAAiC;gBAC7D,eAAe,EAAE,sBAAsB;gBACvC,aAAa,EAAE,oBAAoB;aACpC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,OAAO,EAAE,SAAS,CAAC,CACrB,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wix/auto_sdk_automations_activation-log",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"registry": "https://registry.npmjs.org/",
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"main": "./build/cjs/index.js",
|
|
11
|
+
"types": "./build/es/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./build/es/index.js",
|
|
15
|
+
"require": "./build/cjs/index.js",
|
|
16
|
+
"types": "./build/es/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./package.json": "./package.json",
|
|
19
|
+
"./meta": {
|
|
20
|
+
"import": "./build/es/meta.js",
|
|
21
|
+
"require": "./build/cjs/meta.js",
|
|
22
|
+
"types": "./build/es/meta.d.ts"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"build",
|
|
27
|
+
"meta",
|
|
28
|
+
"service-plugins"
|
|
29
|
+
],
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@wix/sdk-runtime": "^0.3.35",
|
|
32
|
+
"@wix/sdk-types": "^1.12.4"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"typescript": "^5.3.2"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc -b tsconfig.json tsconfig.esm.json tsconfig.internal.json tsconfig.internal.esm.json",
|
|
39
|
+
"test": ":"
|
|
40
|
+
},
|
|
41
|
+
"wix": {
|
|
42
|
+
"artifact": {
|
|
43
|
+
"artifactId": "auto-sdk-automations-activation-log",
|
|
44
|
+
"groupId": "com.wixpress.public-sdk-dependencies"
|
|
45
|
+
},
|
|
46
|
+
"sdkDependency": {
|
|
47
|
+
"fqdnNamespace": "activationLog",
|
|
48
|
+
"fqdn": "wix.automations.activation_logs.v1.activation_log"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"falconPackageHash": "6ad5be2882f699cb35eff94eeb1b263394b1f4d504cf48cdfebf255a"
|
|
52
|
+
}
|