@wix/auto_sdk_automations_activation-log 1.0.7 → 1.0.8
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 +2 -2
- package/build/cjs/{automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.ts → index.typings.d.ts} +45 -1
- package/build/cjs/index.typings.js +457 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/{automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.mts → index.typings.d.mts} +45 -1
- package/build/es/index.typings.mjs +415 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/{automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.ts → index.typings.d.ts} +45 -1
- package/build/internal/cjs/index.typings.js +457 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/{automations-activation-logs-v1-activation-log-activation-log.universal-CgZ_qxWG.d.mts → index.typings.d.mts} +45 -1
- package/build/internal/es/index.typings.mjs +415 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
package/build/cjs/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { ActivationLog, ListActivationLogsOptions, ListActivationLogsResponse, SearchActivationLogsByPayloadPiiValueOptions, SearchActivationLogsByPayloadPiiValueResponse } from './index.typings.js';
|
|
3
|
+
export { Action, ActionEvent, ActionInfoOneOf, ActionSettings, ActivationContinuedAfterSchedule, AppDefinedAction, ApplicationOrigin, AuditInfo, AuditInfoIdOneOf, Automation, AutomationConfiguration, AutomationConfigurationStatus, AutomationIdInfo, AutomationOriginInfoOneOf, AutomationSettings, CancellationReason, CancelledStatusInfo, ClientEntityIdsByNamespace, CodeConditionAction, CodeSnippet, ConditionAction, ConditionExpressionGroup, CursorPaging, CursorPagingMetadata, Cursors, DelayAction, Domain, DomainEvent, DomainEventBodyOneOf, DraftInfo, Empty, EndedStatusInfo, Enrichment, Enrichments, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorReason, ExtendedFields, FailedStatusInfo, Filter, FilterBy, FilterValueSelection, FilterableAppDefinedActions, FutureDateActivationOffset, GetActivationLogRequest, GetActivationLogResponse, IdentificationData, IdentificationDataIdOneOf, IdentifierType, Identity, InitiatedStatusInfo, Language, ListActivationLogsOptionsIdentifierOneOf, ListActivationLogsRequest, ListActivationLogsRequestIdentifierOneOf, MessageEnvelope, Operator, Origin, OutputAction, Path, PreinstalledIdentifierInfo, PreinstalledOrigin, RateLimit, RateLimitAction, RestoreInfo, ScheduledStatusInfo, SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf, SearchActivationLogsByPayloadPiiValueRequest, SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf, SetVariablesAction, SkipReason, SkippedStatusInfo, SplitAction, StartedStatusInfo, Status, Target, TimeUnit, Trigger, Type, UouDeleteRequest, Warning, WarningReason, WebhookIdentityType } from './index.typings.js';
|
|
4
4
|
|
|
5
5
|
declare function getActivationLog$1(httpClient: HttpClient): GetActivationLogSignature;
|
|
6
6
|
interface GetActivationLogSignature {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
interface ActivationLog {
|
|
2
4
|
/**
|
|
3
5
|
* Activation ID
|
|
@@ -429,6 +431,8 @@ declare enum Domain {
|
|
|
429
431
|
/** Wix account-level domain. */
|
|
430
432
|
WIX_ACCOUNT = "WIX_ACCOUNT"
|
|
431
433
|
}
|
|
434
|
+
/** @enumType */
|
|
435
|
+
type DomainWithLiterals = Domain | 'USER' | 'WIX' | 'WIX_ACCOUNT';
|
|
432
436
|
interface Enrichment {
|
|
433
437
|
/**
|
|
434
438
|
* Enrichment input mappings.
|
|
@@ -1200,6 +1204,31 @@ declare enum WebhookIdentityType {
|
|
|
1200
1204
|
}
|
|
1201
1205
|
/** @enumType */
|
|
1202
1206
|
type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
|
|
1207
|
+
type ActivationLogNonNullablePaths = `_id` | `automationId` | `automationRevision` | `status` | `initiatedInfo.target` | `scheduledInfo.scheduleId` | `cancelledInfo.reason` | `failedInfo.errorDescription` | `failedInfo.errorReason` | `skippedInfo.reason` | `warnings` | `warnings.${number}.errorDescription` | `warnings.${number}.reason`;
|
|
1208
|
+
/**
|
|
1209
|
+
* Get activation log by ID
|
|
1210
|
+
* @param activationId - Activation log ID
|
|
1211
|
+
* @public
|
|
1212
|
+
* @documentationMaturity preview
|
|
1213
|
+
* @requiredField activationId
|
|
1214
|
+
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
1215
|
+
* @applicableIdentity APP
|
|
1216
|
+
* @returns Activation log
|
|
1217
|
+
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog
|
|
1218
|
+
*/
|
|
1219
|
+
declare function getActivationLog(activationId: string): Promise<NonNullablePaths<ActivationLog, ActivationLogNonNullablePaths>>;
|
|
1220
|
+
/**
|
|
1221
|
+
* List activation logs
|
|
1222
|
+
* @public
|
|
1223
|
+
* @documentationMaturity preview
|
|
1224
|
+
* @requiredField options.identifierType
|
|
1225
|
+
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
1226
|
+
* @applicableIdentity APP
|
|
1227
|
+
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs
|
|
1228
|
+
*/
|
|
1229
|
+
declare function listActivationLogs(options?: NonNullablePaths<ListActivationLogsOptions, `identifierType`>): Promise<NonNullablePaths<ListActivationLogsResponse, {
|
|
1230
|
+
[P in ActivationLogNonNullablePaths]: `activationLogs.${number}.${P}`;
|
|
1231
|
+
}[ActivationLogNonNullablePaths]>>;
|
|
1203
1232
|
interface ListActivationLogsOptions extends ListActivationLogsOptionsIdentifierOneOf {
|
|
1204
1233
|
/** From created date, If not specified, defaults to 30 days before the current time. */
|
|
1205
1234
|
fromCreatedDate?: Date | null;
|
|
@@ -1223,6 +1252,21 @@ interface ListActivationLogsOptionsIdentifierOneOf {
|
|
|
1223
1252
|
/** Look up activations by preinstalled identifier */
|
|
1224
1253
|
preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;
|
|
1225
1254
|
}
|
|
1255
|
+
/**
|
|
1256
|
+
* Search activation logs by payload pii value
|
|
1257
|
+
* Entire field value match is supported
|
|
1258
|
+
* Supported are emails, phones and guids
|
|
1259
|
+
* @param value - Value to search in the payload
|
|
1260
|
+
* @public
|
|
1261
|
+
* @documentationMaturity preview
|
|
1262
|
+
* @requiredField value
|
|
1263
|
+
* @permissionId AUTOMATIONS.ACTIVATION_LOG_READ
|
|
1264
|
+
* @applicableIdentity APP
|
|
1265
|
+
* @fqn wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue
|
|
1266
|
+
*/
|
|
1267
|
+
declare function searchActivationLogsByPayloadPiiValue(value: string, options?: SearchActivationLogsByPayloadPiiValueOptions): Promise<NonNullablePaths<SearchActivationLogsByPayloadPiiValueResponse, {
|
|
1268
|
+
[P in ActivationLogNonNullablePaths]: `activationLogs.${number}.${P}`;
|
|
1269
|
+
}[ActivationLogNonNullablePaths]>>;
|
|
1226
1270
|
interface SearchActivationLogsByPayloadPiiValueOptions extends SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {
|
|
1227
1271
|
/** Paging */
|
|
1228
1272
|
cursorPaging?: CursorPaging;
|
|
@@ -1247,4 +1291,4 @@ interface SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf {
|
|
|
1247
1291
|
preinstalledIdentifierInfo?: PreinstalledIdentifierInfo;
|
|
1248
1292
|
}
|
|
1249
1293
|
|
|
1250
|
-
export { type
|
|
1294
|
+
export { type Action, type ActionEvent, type ActionInfoOneOf, type ActionSettings, type ActivationContinuedAfterSchedule, type ActivationLog, type AppDefinedAction, type ApplicationOrigin, type AuditInfo, type AuditInfoIdOneOf, type Automation, type AutomationConfiguration, AutomationConfigurationStatus, type AutomationConfigurationStatusWithLiterals, type AutomationIdInfo, type AutomationOriginInfoOneOf, type AutomationSettings, CancellationReason, type CancellationReasonWithLiterals, type CancelledStatusInfo, type ClientEntityIdsByNamespace, type CodeConditionAction, type CodeSnippet, type ConditionAction, type ConditionExpressionGroup, type CursorPaging, type CursorPagingMetadata, type Cursors, type DelayAction, Domain, type DomainEvent, type DomainEventBodyOneOf, type DomainWithLiterals, type DraftInfo, type Empty, type EndedStatusInfo, type Enrichment, type Enrichments, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ErrorReason, type ErrorReasonWithLiterals, type ExtendedFields, type FailedStatusInfo, type Filter, FilterBy, type FilterByWithLiterals, type FilterValueSelection, type FilterableAppDefinedActions, type FutureDateActivationOffset, type GetActivationLogRequest, type GetActivationLogResponse, type IdentificationData, type IdentificationDataIdOneOf, IdentifierType, type IdentifierTypeWithLiterals, type Identity, type InitiatedStatusInfo, Language, type LanguageWithLiterals, type ListActivationLogsOptions, type ListActivationLogsOptionsIdentifierOneOf, type ListActivationLogsRequest, type ListActivationLogsRequestIdentifierOneOf, type ListActivationLogsResponse, type MessageEnvelope, Operator, type OperatorWithLiterals, Origin, type OriginWithLiterals, type OutputAction, type Path, type PreinstalledIdentifierInfo, type PreinstalledOrigin, type RateLimit, type RateLimitAction, type RestoreInfo, type ScheduledStatusInfo, type SearchActivationLogsByPayloadPiiValueOptions, type SearchActivationLogsByPayloadPiiValueOptionsFilterOptionOneOf, type SearchActivationLogsByPayloadPiiValueRequest, type SearchActivationLogsByPayloadPiiValueRequestFilterOptionOneOf, type SearchActivationLogsByPayloadPiiValueResponse, type SetVariablesAction, SkipReason, type SkipReasonWithLiterals, type SkippedStatusInfo, type SplitAction, type StartedStatusInfo, Status, type StatusWithLiterals, Target, type TargetWithLiterals, TimeUnit, type TimeUnitWithLiterals, type Trigger, Type, type TypeWithLiterals, type UouDeleteRequest, type Warning, WarningReason, type WarningReasonWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, getActivationLog, listActivationLogs, searchActivationLogsByPayloadPiiValue };
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.typings.ts
|
|
21
|
+
var index_typings_exports = {};
|
|
22
|
+
__export(index_typings_exports, {
|
|
23
|
+
AutomationConfigurationStatus: () => AutomationConfigurationStatus,
|
|
24
|
+
CancellationReason: () => CancellationReason,
|
|
25
|
+
Domain: () => Domain,
|
|
26
|
+
ErrorReason: () => ErrorReason,
|
|
27
|
+
FilterBy: () => FilterBy,
|
|
28
|
+
IdentifierType: () => IdentifierType,
|
|
29
|
+
Language: () => Language,
|
|
30
|
+
Operator: () => Operator,
|
|
31
|
+
Origin: () => Origin,
|
|
32
|
+
SkipReason: () => SkipReason,
|
|
33
|
+
Status: () => Status,
|
|
34
|
+
Target: () => Target,
|
|
35
|
+
TimeUnit: () => TimeUnit,
|
|
36
|
+
Type: () => Type,
|
|
37
|
+
WarningReason: () => WarningReason,
|
|
38
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
39
|
+
getActivationLog: () => getActivationLog2,
|
|
40
|
+
listActivationLogs: () => listActivationLogs2,
|
|
41
|
+
searchActivationLogsByPayloadPiiValue: () => searchActivationLogsByPayloadPiiValue2
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(index_typings_exports);
|
|
44
|
+
|
|
45
|
+
// src/automations-activation-logs-v1-activation-log-activation-log.universal.ts
|
|
46
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
47
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
48
|
+
|
|
49
|
+
// src/automations-activation-logs-v1-activation-log-activation-log.http.ts
|
|
50
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
51
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
52
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
53
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
54
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
55
|
+
function resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl(opts) {
|
|
56
|
+
const domainToMappings = {
|
|
57
|
+
"bo._base_domain_": [
|
|
58
|
+
{
|
|
59
|
+
srcPath: "/activation-logs",
|
|
60
|
+
destPath: ""
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"wixbo.ai": [
|
|
64
|
+
{
|
|
65
|
+
srcPath: "/activation-logs",
|
|
66
|
+
destPath: ""
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"wix-bo.com": [
|
|
70
|
+
{
|
|
71
|
+
srcPath: "/activation-logs",
|
|
72
|
+
destPath: ""
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"api._api_base_domain_": [
|
|
76
|
+
{
|
|
77
|
+
srcPath: "/activation-logs",
|
|
78
|
+
destPath: ""
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"manage._base_domain_": [
|
|
82
|
+
{
|
|
83
|
+
srcPath: "/activation-logs",
|
|
84
|
+
destPath: ""
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/_api/activation-logs",
|
|
88
|
+
destPath: "/api"
|
|
89
|
+
}
|
|
90
|
+
]
|
|
91
|
+
};
|
|
92
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
93
|
+
}
|
|
94
|
+
var PACKAGE_NAME = "@wix/auto_sdk_automations_activation-log";
|
|
95
|
+
function getActivationLog(payload) {
|
|
96
|
+
function __getActivationLog({ host }) {
|
|
97
|
+
const metadata = {
|
|
98
|
+
entityFqdn: "wix.automations.activation_logs.v1.activation_log",
|
|
99
|
+
method: "GET",
|
|
100
|
+
methodFqn: "wix.automations.activation_logs.v1.ActivationLogsService.GetActivationLog",
|
|
101
|
+
packageName: PACKAGE_NAME,
|
|
102
|
+
url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({
|
|
103
|
+
protoPath: "/v2/activation-logs/{activationId}",
|
|
104
|
+
data: payload,
|
|
105
|
+
host
|
|
106
|
+
}),
|
|
107
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
108
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
109
|
+
{
|
|
110
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
111
|
+
paths: [
|
|
112
|
+
{ path: "activationLog.createdDate" },
|
|
113
|
+
{ path: "activationLog.initiatedInfo.statusChangedDate" },
|
|
114
|
+
{ path: "activationLog.scheduledInfo.statusChangedDate" },
|
|
115
|
+
{ path: "activationLog.scheduledInfo.date" },
|
|
116
|
+
{ path: "activationLog.startedInfo.statusChangedDate" },
|
|
117
|
+
{ path: "activationLog.endedInfo.statusChangedDate" },
|
|
118
|
+
{ path: "activationLog.cancelledInfo.statusChangedDate" },
|
|
119
|
+
{ path: "activationLog.failedInfo.statusChangedDate" },
|
|
120
|
+
{ path: "activationLog.skippedInfo.statusChangedDate" },
|
|
121
|
+
{ path: "activationLog.warnings.warningDate" }
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
])
|
|
125
|
+
};
|
|
126
|
+
return metadata;
|
|
127
|
+
}
|
|
128
|
+
return __getActivationLog;
|
|
129
|
+
}
|
|
130
|
+
function listActivationLogs(payload) {
|
|
131
|
+
function __listActivationLogs({ host }) {
|
|
132
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
133
|
+
{
|
|
134
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
135
|
+
paths: [{ path: "fromCreatedDate" }, { path: "toCreatedDate" }]
|
|
136
|
+
}
|
|
137
|
+
]);
|
|
138
|
+
const metadata = {
|
|
139
|
+
entityFqdn: "wix.automations.activation_logs.v1.activation_log",
|
|
140
|
+
method: "GET",
|
|
141
|
+
methodFqn: "wix.automations.activation_logs.v1.ActivationLogsService.ListActivationLogs",
|
|
142
|
+
packageName: PACKAGE_NAME,
|
|
143
|
+
url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({
|
|
144
|
+
protoPath: "/v2/activation-logs",
|
|
145
|
+
data: serializedData,
|
|
146
|
+
host
|
|
147
|
+
}),
|
|
148
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData),
|
|
149
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
150
|
+
{
|
|
151
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
152
|
+
paths: [
|
|
153
|
+
{ path: "activationLogs.createdDate" },
|
|
154
|
+
{ path: "activationLogs.initiatedInfo.statusChangedDate" },
|
|
155
|
+
{ path: "activationLogs.scheduledInfo.statusChangedDate" },
|
|
156
|
+
{ path: "activationLogs.scheduledInfo.date" },
|
|
157
|
+
{ path: "activationLogs.startedInfo.statusChangedDate" },
|
|
158
|
+
{ path: "activationLogs.endedInfo.statusChangedDate" },
|
|
159
|
+
{ path: "activationLogs.cancelledInfo.statusChangedDate" },
|
|
160
|
+
{ path: "activationLogs.failedInfo.statusChangedDate" },
|
|
161
|
+
{ path: "activationLogs.skippedInfo.statusChangedDate" },
|
|
162
|
+
{ path: "activationLogs.warnings.warningDate" }
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
])
|
|
166
|
+
};
|
|
167
|
+
return metadata;
|
|
168
|
+
}
|
|
169
|
+
return __listActivationLogs;
|
|
170
|
+
}
|
|
171
|
+
function searchActivationLogsByPayloadPiiValue(payload) {
|
|
172
|
+
function __searchActivationLogsByPayloadPiiValue({ host }) {
|
|
173
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
174
|
+
{
|
|
175
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
176
|
+
paths: [{ path: "fromCreatedDate" }, { path: "toCreatedDate" }]
|
|
177
|
+
}
|
|
178
|
+
]);
|
|
179
|
+
const metadata = {
|
|
180
|
+
entityFqdn: "wix.automations.activation_logs.v1.activation_log",
|
|
181
|
+
method: "POST",
|
|
182
|
+
methodFqn: "wix.automations.activation_logs.v1.ActivationLogsService.SearchActivationLogsByPayloadPiiValue",
|
|
183
|
+
packageName: PACKAGE_NAME,
|
|
184
|
+
url: resolveWixAutomationsActivationLogsV1ActivationLogsServiceUrl({
|
|
185
|
+
protoPath: "/v2/activation-logs/search-by-payload-pii-value",
|
|
186
|
+
data: serializedData,
|
|
187
|
+
host
|
|
188
|
+
}),
|
|
189
|
+
data: serializedData,
|
|
190
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
191
|
+
{
|
|
192
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
193
|
+
paths: [
|
|
194
|
+
{ path: "activationLogs.createdDate" },
|
|
195
|
+
{ path: "activationLogs.initiatedInfo.statusChangedDate" },
|
|
196
|
+
{ path: "activationLogs.scheduledInfo.statusChangedDate" },
|
|
197
|
+
{ path: "activationLogs.scheduledInfo.date" },
|
|
198
|
+
{ path: "activationLogs.startedInfo.statusChangedDate" },
|
|
199
|
+
{ path: "activationLogs.endedInfo.statusChangedDate" },
|
|
200
|
+
{ path: "activationLogs.cancelledInfo.statusChangedDate" },
|
|
201
|
+
{ path: "activationLogs.failedInfo.statusChangedDate" },
|
|
202
|
+
{ path: "activationLogs.skippedInfo.statusChangedDate" },
|
|
203
|
+
{ path: "activationLogs.warnings.warningDate" }
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
])
|
|
207
|
+
};
|
|
208
|
+
return metadata;
|
|
209
|
+
}
|
|
210
|
+
return __searchActivationLogsByPayloadPiiValue;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// src/automations-activation-logs-v1-activation-log-activation-log.universal.ts
|
|
214
|
+
var Target = /* @__PURE__ */ ((Target2) => {
|
|
215
|
+
Target2["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
|
|
216
|
+
Target2["SCHEDULE"] = "SCHEDULE";
|
|
217
|
+
Target2["IMMEDIATE"] = "IMMEDIATE";
|
|
218
|
+
return Target2;
|
|
219
|
+
})(Target || {});
|
|
220
|
+
var CancellationReason = /* @__PURE__ */ ((CancellationReason2) => {
|
|
221
|
+
CancellationReason2["UNKNOWN_CANCELLATION_REASON"] = "UNKNOWN_CANCELLATION_REASON";
|
|
222
|
+
CancellationReason2["EVENT_CANCELLED"] = "EVENT_CANCELLED";
|
|
223
|
+
CancellationReason2["AUTOMATION_DEACTIVATED"] = "AUTOMATION_DEACTIVATED";
|
|
224
|
+
CancellationReason2["AUTOMATION_DELETED"] = "AUTOMATION_DELETED";
|
|
225
|
+
CancellationReason2["CANCELLED_BY_REFRESH_PAYLOAD"] = "CANCELLED_BY_REFRESH_PAYLOAD";
|
|
226
|
+
CancellationReason2["CANCELLED_BY_GDPR_REQUEST"] = "CANCELLED_BY_GDPR_REQUEST";
|
|
227
|
+
return CancellationReason2;
|
|
228
|
+
})(CancellationReason || {});
|
|
229
|
+
var ErrorReason = /* @__PURE__ */ ((ErrorReason2) => {
|
|
230
|
+
ErrorReason2["UNEXPECTED_ERROR_REASON"] = "UNEXPECTED_ERROR_REASON";
|
|
231
|
+
ErrorReason2["SCHEDULE_DATE_EVALUATION_FAILED"] = "SCHEDULE_DATE_EVALUATION_FAILED";
|
|
232
|
+
return ErrorReason2;
|
|
233
|
+
})(ErrorReason || {});
|
|
234
|
+
var SkipReason = /* @__PURE__ */ ((SkipReason2) => {
|
|
235
|
+
SkipReason2["UNKNOWN_SKIP_REASON"] = "UNKNOWN_SKIP_REASON";
|
|
236
|
+
SkipReason2["SCHEDULE_DATE_EXPIRED"] = "SCHEDULE_DATE_EXPIRED";
|
|
237
|
+
SkipReason2["TRIGGER_FILTERS_NOT_PASSED"] = "TRIGGER_FILTERS_NOT_PASSED";
|
|
238
|
+
SkipReason2["RATE_LIMIT_EXCEEDED"] = "RATE_LIMIT_EXCEEDED";
|
|
239
|
+
SkipReason2["EVENT_ALREADY_PROCESSED"] = "EVENT_ALREADY_PROCESSED";
|
|
240
|
+
return SkipReason2;
|
|
241
|
+
})(SkipReason || {});
|
|
242
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
243
|
+
Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
244
|
+
Status2["INITIATED"] = "INITIATED";
|
|
245
|
+
Status2["SCHEDULED"] = "SCHEDULED";
|
|
246
|
+
Status2["STARTED"] = "STARTED";
|
|
247
|
+
Status2["ENDED"] = "ENDED";
|
|
248
|
+
Status2["CANCELLED"] = "CANCELLED";
|
|
249
|
+
Status2["FAILED"] = "FAILED";
|
|
250
|
+
Status2["SKIPPED"] = "SKIPPED";
|
|
251
|
+
return Status2;
|
|
252
|
+
})(Status || {});
|
|
253
|
+
var WarningReason = /* @__PURE__ */ ((WarningReason2) => {
|
|
254
|
+
WarningReason2["UNKNOWN_WARNING_REASON"] = "UNKNOWN_WARNING_REASON";
|
|
255
|
+
WarningReason2["STUDIO_SITE_ENRICHMENT_FAILED"] = "STUDIO_SITE_ENRICHMENT_FAILED";
|
|
256
|
+
WarningReason2["REFRESH_PAYLOAD_FAILED"] = "REFRESH_PAYLOAD_FAILED";
|
|
257
|
+
WarningReason2["GET_CONTACT_ENRICHMENT_FAILED"] = "GET_CONTACT_ENRICHMENT_FAILED";
|
|
258
|
+
WarningReason2["GET_MEMBER_ENRICHMENT_FAILED"] = "GET_MEMBER_ENRICHMENT_FAILED";
|
|
259
|
+
return WarningReason2;
|
|
260
|
+
})(WarningReason || {});
|
|
261
|
+
var Domain = /* @__PURE__ */ ((Domain2) => {
|
|
262
|
+
Domain2["USER"] = "USER";
|
|
263
|
+
Domain2["WIX"] = "WIX";
|
|
264
|
+
Domain2["WIX_ACCOUNT"] = "WIX_ACCOUNT";
|
|
265
|
+
return Domain2;
|
|
266
|
+
})(Domain || {});
|
|
267
|
+
var TimeUnit = /* @__PURE__ */ ((TimeUnit2) => {
|
|
268
|
+
TimeUnit2["UNKNOWN_TIME_UNIT"] = "UNKNOWN_TIME_UNIT";
|
|
269
|
+
TimeUnit2["MINUTES"] = "MINUTES";
|
|
270
|
+
TimeUnit2["HOURS"] = "HOURS";
|
|
271
|
+
TimeUnit2["DAYS"] = "DAYS";
|
|
272
|
+
TimeUnit2["WEEKS"] = "WEEKS";
|
|
273
|
+
TimeUnit2["MONTHS"] = "MONTHS";
|
|
274
|
+
return TimeUnit2;
|
|
275
|
+
})(TimeUnit || {});
|
|
276
|
+
var Operator = /* @__PURE__ */ ((Operator2) => {
|
|
277
|
+
Operator2["UNKNOWN_OPERATOR"] = "UNKNOWN_OPERATOR";
|
|
278
|
+
Operator2["OR"] = "OR";
|
|
279
|
+
Operator2["AND"] = "AND";
|
|
280
|
+
return Operator2;
|
|
281
|
+
})(Operator || {});
|
|
282
|
+
var Language = /* @__PURE__ */ ((Language2) => {
|
|
283
|
+
Language2["UNKNOWN_LANGUAGE"] = "UNKNOWN_LANGUAGE";
|
|
284
|
+
Language2["JAVASCRIPT"] = "JAVASCRIPT";
|
|
285
|
+
return Language2;
|
|
286
|
+
})(Language || {});
|
|
287
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
288
|
+
Type2["UNKNOWN_ACTION_TYPE"] = "UNKNOWN_ACTION_TYPE";
|
|
289
|
+
Type2["APP_DEFINED"] = "APP_DEFINED";
|
|
290
|
+
Type2["CONDITION"] = "CONDITION";
|
|
291
|
+
Type2["DELAY"] = "DELAY";
|
|
292
|
+
Type2["RATE_LIMIT"] = "RATE_LIMIT";
|
|
293
|
+
return Type2;
|
|
294
|
+
})(Type || {});
|
|
295
|
+
var AutomationConfigurationStatus = /* @__PURE__ */ ((AutomationConfigurationStatus2) => {
|
|
296
|
+
AutomationConfigurationStatus2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
|
|
297
|
+
AutomationConfigurationStatus2["ACTIVE"] = "ACTIVE";
|
|
298
|
+
AutomationConfigurationStatus2["INACTIVE"] = "INACTIVE";
|
|
299
|
+
return AutomationConfigurationStatus2;
|
|
300
|
+
})(AutomationConfigurationStatus || {});
|
|
301
|
+
var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
302
|
+
Origin2["UNKNOWN_ORIGIN"] = "UNKNOWN_ORIGIN";
|
|
303
|
+
Origin2["USER"] = "USER";
|
|
304
|
+
Origin2["APPLICATION"] = "APPLICATION";
|
|
305
|
+
Origin2["PREINSTALLED"] = "PREINSTALLED";
|
|
306
|
+
return Origin2;
|
|
307
|
+
})(Origin || {});
|
|
308
|
+
var IdentifierType = /* @__PURE__ */ ((IdentifierType2) => {
|
|
309
|
+
IdentifierType2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
310
|
+
return IdentifierType2;
|
|
311
|
+
})(IdentifierType || {});
|
|
312
|
+
var FilterBy = /* @__PURE__ */ ((FilterBy2) => {
|
|
313
|
+
FilterBy2["UNKNOWN_TYPE"] = "UNKNOWN_TYPE";
|
|
314
|
+
return FilterBy2;
|
|
315
|
+
})(FilterBy || {});
|
|
316
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
317
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
318
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
319
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
320
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
321
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
322
|
+
return WebhookIdentityType2;
|
|
323
|
+
})(WebhookIdentityType || {});
|
|
324
|
+
async function getActivationLog2(activationId) {
|
|
325
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
326
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
327
|
+
activationId
|
|
328
|
+
});
|
|
329
|
+
const reqOpts = getActivationLog(
|
|
330
|
+
payload
|
|
331
|
+
);
|
|
332
|
+
sideEffects?.onSiteCall?.();
|
|
333
|
+
try {
|
|
334
|
+
const result = await httpClient.request(reqOpts);
|
|
335
|
+
sideEffects?.onSuccess?.(result);
|
|
336
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.activationLog;
|
|
337
|
+
} catch (err) {
|
|
338
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
339
|
+
err,
|
|
340
|
+
{
|
|
341
|
+
spreadPathsToArguments: {},
|
|
342
|
+
explicitPathsToArguments: { activationId: "$[0]" },
|
|
343
|
+
singleArgumentUnchanged: false
|
|
344
|
+
},
|
|
345
|
+
["activationId"]
|
|
346
|
+
);
|
|
347
|
+
sideEffects?.onError?.(err);
|
|
348
|
+
throw transformedError;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
async function listActivationLogs2(options) {
|
|
352
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
353
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
354
|
+
fromCreatedDate: options?.fromCreatedDate,
|
|
355
|
+
toCreatedDate: options?.toCreatedDate,
|
|
356
|
+
cursorPaging: options?.cursorPaging,
|
|
357
|
+
includePayload: options?.includePayload,
|
|
358
|
+
identifierType: options?.identifierType,
|
|
359
|
+
automationIdInfo: options?.automationIdInfo,
|
|
360
|
+
preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo
|
|
361
|
+
});
|
|
362
|
+
const reqOpts = listActivationLogs(
|
|
363
|
+
payload
|
|
364
|
+
);
|
|
365
|
+
sideEffects?.onSiteCall?.();
|
|
366
|
+
try {
|
|
367
|
+
const result = await httpClient.request(reqOpts);
|
|
368
|
+
sideEffects?.onSuccess?.(result);
|
|
369
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
370
|
+
} catch (err) {
|
|
371
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
372
|
+
err,
|
|
373
|
+
{
|
|
374
|
+
spreadPathsToArguments: {},
|
|
375
|
+
explicitPathsToArguments: {
|
|
376
|
+
fromCreatedDate: "$[0].fromCreatedDate",
|
|
377
|
+
toCreatedDate: "$[0].toCreatedDate",
|
|
378
|
+
cursorPaging: "$[0].cursorPaging",
|
|
379
|
+
includePayload: "$[0].includePayload",
|
|
380
|
+
identifierType: "$[0].identifierType",
|
|
381
|
+
automationIdInfo: "$[0].automationIdInfo",
|
|
382
|
+
preinstalledIdentifierInfo: "$[0].preinstalledIdentifierInfo"
|
|
383
|
+
},
|
|
384
|
+
singleArgumentUnchanged: false
|
|
385
|
+
},
|
|
386
|
+
["options"]
|
|
387
|
+
);
|
|
388
|
+
sideEffects?.onError?.(err);
|
|
389
|
+
throw transformedError;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
async function searchActivationLogsByPayloadPiiValue2(value, options) {
|
|
393
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
394
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
395
|
+
value,
|
|
396
|
+
cursorPaging: options?.cursorPaging,
|
|
397
|
+
includePayload: options?.includePayload,
|
|
398
|
+
filterBy: options?.filterBy,
|
|
399
|
+
automationIdInfo: options?.automationIdInfo,
|
|
400
|
+
preinstalledIdentifierInfo: options?.preinstalledIdentifierInfo,
|
|
401
|
+
fromCreatedDate: options?.fromCreatedDate,
|
|
402
|
+
toCreatedDate: options?.toCreatedDate
|
|
403
|
+
});
|
|
404
|
+
const reqOpts = searchActivationLogsByPayloadPiiValue(
|
|
405
|
+
payload
|
|
406
|
+
);
|
|
407
|
+
sideEffects?.onSiteCall?.();
|
|
408
|
+
try {
|
|
409
|
+
const result = await httpClient.request(reqOpts);
|
|
410
|
+
sideEffects?.onSuccess?.(result);
|
|
411
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
412
|
+
} catch (err) {
|
|
413
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
414
|
+
err,
|
|
415
|
+
{
|
|
416
|
+
spreadPathsToArguments: {},
|
|
417
|
+
explicitPathsToArguments: {
|
|
418
|
+
value: "$[0]",
|
|
419
|
+
cursorPaging: "$[1].cursorPaging",
|
|
420
|
+
includePayload: "$[1].includePayload",
|
|
421
|
+
filterBy: "$[1].filterBy",
|
|
422
|
+
automationIdInfo: "$[1].automationIdInfo",
|
|
423
|
+
preinstalledIdentifierInfo: "$[1].preinstalledIdentifierInfo",
|
|
424
|
+
fromCreatedDate: "$[1].fromCreatedDate",
|
|
425
|
+
toCreatedDate: "$[1].toCreatedDate"
|
|
426
|
+
},
|
|
427
|
+
singleArgumentUnchanged: false
|
|
428
|
+
},
|
|
429
|
+
["value", "options"]
|
|
430
|
+
);
|
|
431
|
+
sideEffects?.onError?.(err);
|
|
432
|
+
throw transformedError;
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
436
|
+
0 && (module.exports = {
|
|
437
|
+
AutomationConfigurationStatus,
|
|
438
|
+
CancellationReason,
|
|
439
|
+
Domain,
|
|
440
|
+
ErrorReason,
|
|
441
|
+
FilterBy,
|
|
442
|
+
IdentifierType,
|
|
443
|
+
Language,
|
|
444
|
+
Operator,
|
|
445
|
+
Origin,
|
|
446
|
+
SkipReason,
|
|
447
|
+
Status,
|
|
448
|
+
Target,
|
|
449
|
+
TimeUnit,
|
|
450
|
+
Type,
|
|
451
|
+
WarningReason,
|
|
452
|
+
WebhookIdentityType,
|
|
453
|
+
getActivationLog,
|
|
454
|
+
listActivationLogs,
|
|
455
|
+
searchActivationLogsByPayloadPiiValue
|
|
456
|
+
});
|
|
457
|
+
//# sourceMappingURL=index.typings.js.map
|