@wix/auto_sdk_automations_automation-templates 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 +1491 -0
- package/build/cjs/index.js +895 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +809 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1353 -0
- package/build/cjs/meta.js +728 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +1491 -0
- package/build/es/index.mjs +852 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1 -0
- package/build/es/index.typings.mjs +766 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1353 -0
- package/build/es/meta.mjs +682 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +110 -0
- package/build/internal/cjs/index.js +895 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1608 -0
- package/build/internal/cjs/index.typings.js +809 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1354 -0
- package/build/internal/cjs/meta.js +728 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/es/index.d.mts +110 -0
- package/build/internal/es/index.mjs +852 -0
- package/build/internal/es/index.mjs.map +1 -0
- package/build/internal/es/index.typings.d.mts +1608 -0
- package/build/internal/es/index.typings.mjs +766 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +1354 -0
- package/build/internal/es/meta.mjs +682 -0
- package/build/internal/es/meta.mjs.map +1 -0
- package/meta/package.json +3 -0
- package/package.json +55 -0
|
@@ -0,0 +1,895 @@
|
|
|
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.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
Category: () => Category,
|
|
24
|
+
CommonSortOrder: () => CommonSortOrder,
|
|
25
|
+
Domain: () => Domain,
|
|
26
|
+
Language: () => Language,
|
|
27
|
+
Operator: () => Operator,
|
|
28
|
+
Origin: () => Origin,
|
|
29
|
+
SortOrder: () => SortOrder,
|
|
30
|
+
Status: () => Status,
|
|
31
|
+
TimeUnit: () => TimeUnit,
|
|
32
|
+
Type: () => Type,
|
|
33
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
34
|
+
createAutomationTemplate: () => createAutomationTemplate4,
|
|
35
|
+
createDraftAutomationTemplate: () => createDraftAutomationTemplate4,
|
|
36
|
+
deleteAutomationTemplate: () => deleteAutomationTemplate4,
|
|
37
|
+
generateTemplateFromAutomation: () => generateTemplateFromAutomation4,
|
|
38
|
+
getAutomationTemplate: () => getAutomationTemplate4,
|
|
39
|
+
queryAutomationTemplatesForApp: () => queryAutomationTemplatesForApp4,
|
|
40
|
+
resolveAutomationTemplates: () => resolveAutomationTemplates4,
|
|
41
|
+
updateAutomationTemplate: () => updateAutomationTemplate4,
|
|
42
|
+
updateDraftAutomationTemplate: () => updateDraftAutomationTemplate4
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(index_exports);
|
|
45
|
+
|
|
46
|
+
// src/automations-templates-v1-automation-template-automation-templates.universal.ts
|
|
47
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
48
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
49
|
+
|
|
50
|
+
// src/automations-templates-v1-automation-template-automation-templates.http.ts
|
|
51
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
52
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
53
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
54
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
55
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
56
|
+
function resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl(opts) {
|
|
57
|
+
const domainToMappings = {
|
|
58
|
+
"manage._base_domain_": [
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/_api/automation-templates",
|
|
61
|
+
destPath: "/api"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/automation-templates",
|
|
65
|
+
destPath: ""
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
};
|
|
69
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
70
|
+
}
|
|
71
|
+
var PACKAGE_NAME = "@wix/auto_sdk_automations_automation-templates";
|
|
72
|
+
function createAutomationTemplate(payload) {
|
|
73
|
+
function __createAutomationTemplate({ host }) {
|
|
74
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
75
|
+
{
|
|
76
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
77
|
+
paths: [
|
|
78
|
+
{ path: "automationTemplate.createdDate" },
|
|
79
|
+
{ path: "automationTemplate.updatedDate" },
|
|
80
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
81
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
82
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
83
|
+
{
|
|
84
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
]);
|
|
89
|
+
const metadata = {
|
|
90
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
91
|
+
method: "POST",
|
|
92
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.CreateAutomationTemplate",
|
|
93
|
+
packageName: PACKAGE_NAME,
|
|
94
|
+
migrationOptions: {
|
|
95
|
+
optInTransformResponse: true
|
|
96
|
+
},
|
|
97
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
98
|
+
protoPath: "/v1/automation-templates",
|
|
99
|
+
data: serializedData,
|
|
100
|
+
host
|
|
101
|
+
}),
|
|
102
|
+
data: serializedData,
|
|
103
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
104
|
+
{
|
|
105
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
106
|
+
paths: [
|
|
107
|
+
{ path: "automationTemplate.createdDate" },
|
|
108
|
+
{ path: "automationTemplate.updatedDate" },
|
|
109
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
110
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
111
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
112
|
+
{
|
|
113
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
])
|
|
118
|
+
};
|
|
119
|
+
return metadata;
|
|
120
|
+
}
|
|
121
|
+
return __createAutomationTemplate;
|
|
122
|
+
}
|
|
123
|
+
function createDraftAutomationTemplate(payload) {
|
|
124
|
+
function __createDraftAutomationTemplate({ host }) {
|
|
125
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
126
|
+
{
|
|
127
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
128
|
+
paths: [
|
|
129
|
+
{ path: "automationTemplate.createdDate" },
|
|
130
|
+
{ path: "automationTemplate.updatedDate" },
|
|
131
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
132
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
133
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
134
|
+
{
|
|
135
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
]);
|
|
140
|
+
const metadata = {
|
|
141
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
142
|
+
method: "POST",
|
|
143
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.CreateDraftAutomationTemplate",
|
|
144
|
+
packageName: PACKAGE_NAME,
|
|
145
|
+
migrationOptions: {
|
|
146
|
+
optInTransformResponse: true
|
|
147
|
+
},
|
|
148
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
149
|
+
protoPath: "/v1/automation-templates/drafts",
|
|
150
|
+
data: serializedData,
|
|
151
|
+
host
|
|
152
|
+
}),
|
|
153
|
+
data: serializedData,
|
|
154
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
155
|
+
{
|
|
156
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
157
|
+
paths: [
|
|
158
|
+
{ path: "automationTemplate.createdDate" },
|
|
159
|
+
{ path: "automationTemplate.updatedDate" },
|
|
160
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
161
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
162
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
163
|
+
{
|
|
164
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
])
|
|
169
|
+
};
|
|
170
|
+
return metadata;
|
|
171
|
+
}
|
|
172
|
+
return __createDraftAutomationTemplate;
|
|
173
|
+
}
|
|
174
|
+
function getAutomationTemplate(payload) {
|
|
175
|
+
function __getAutomationTemplate({ host }) {
|
|
176
|
+
const metadata = {
|
|
177
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
178
|
+
method: "GET",
|
|
179
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.GetAutomationTemplate",
|
|
180
|
+
packageName: PACKAGE_NAME,
|
|
181
|
+
migrationOptions: {
|
|
182
|
+
optInTransformResponse: true
|
|
183
|
+
},
|
|
184
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
185
|
+
protoPath: "/v1/automation-templates/{automationTemplateId}",
|
|
186
|
+
data: payload,
|
|
187
|
+
host
|
|
188
|
+
}),
|
|
189
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
190
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
191
|
+
{
|
|
192
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
193
|
+
paths: [
|
|
194
|
+
{ path: "automationTemplate.createdDate" },
|
|
195
|
+
{ path: "automationTemplate.updatedDate" },
|
|
196
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
197
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
198
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
199
|
+
{
|
|
200
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
])
|
|
205
|
+
};
|
|
206
|
+
return metadata;
|
|
207
|
+
}
|
|
208
|
+
return __getAutomationTemplate;
|
|
209
|
+
}
|
|
210
|
+
function updateAutomationTemplate(payload) {
|
|
211
|
+
function __updateAutomationTemplate({ host }) {
|
|
212
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
213
|
+
{
|
|
214
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
215
|
+
paths: [
|
|
216
|
+
{ path: "automationTemplate.createdDate" },
|
|
217
|
+
{ path: "automationTemplate.updatedDate" },
|
|
218
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
219
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
220
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
221
|
+
{
|
|
222
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
]);
|
|
227
|
+
const metadata = {
|
|
228
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
229
|
+
method: "PATCH",
|
|
230
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.UpdateAutomationTemplate",
|
|
231
|
+
packageName: PACKAGE_NAME,
|
|
232
|
+
migrationOptions: {
|
|
233
|
+
optInTransformResponse: true
|
|
234
|
+
},
|
|
235
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
236
|
+
protoPath: "/v1/automation-templates/{automationTemplate.id}",
|
|
237
|
+
data: serializedData,
|
|
238
|
+
host
|
|
239
|
+
}),
|
|
240
|
+
data: serializedData,
|
|
241
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
242
|
+
{
|
|
243
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
244
|
+
paths: [
|
|
245
|
+
{ path: "automationTemplate.createdDate" },
|
|
246
|
+
{ path: "automationTemplate.updatedDate" },
|
|
247
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
248
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
249
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
250
|
+
{
|
|
251
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
])
|
|
256
|
+
};
|
|
257
|
+
return metadata;
|
|
258
|
+
}
|
|
259
|
+
return __updateAutomationTemplate;
|
|
260
|
+
}
|
|
261
|
+
function updateDraftAutomationTemplate(payload) {
|
|
262
|
+
function __updateDraftAutomationTemplate({ host }) {
|
|
263
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
264
|
+
{
|
|
265
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
266
|
+
paths: [
|
|
267
|
+
{ path: "automationTemplate.createdDate" },
|
|
268
|
+
{ path: "automationTemplate.updatedDate" },
|
|
269
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
270
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
271
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
272
|
+
{
|
|
273
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
}
|
|
277
|
+
]);
|
|
278
|
+
const metadata = {
|
|
279
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
280
|
+
method: "PATCH",
|
|
281
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.UpdateDraftAutomationTemplate",
|
|
282
|
+
packageName: PACKAGE_NAME,
|
|
283
|
+
migrationOptions: {
|
|
284
|
+
optInTransformResponse: true
|
|
285
|
+
},
|
|
286
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
287
|
+
protoPath: "/v1/automation-templates/drafts/{automationTemplate.id}",
|
|
288
|
+
data: serializedData,
|
|
289
|
+
host
|
|
290
|
+
}),
|
|
291
|
+
data: serializedData,
|
|
292
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
293
|
+
{
|
|
294
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
295
|
+
paths: [
|
|
296
|
+
{ path: "automationTemplate.createdDate" },
|
|
297
|
+
{ path: "automationTemplate.updatedDate" },
|
|
298
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
299
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
300
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
301
|
+
{
|
|
302
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
303
|
+
}
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
])
|
|
307
|
+
};
|
|
308
|
+
return metadata;
|
|
309
|
+
}
|
|
310
|
+
return __updateDraftAutomationTemplate;
|
|
311
|
+
}
|
|
312
|
+
function deleteAutomationTemplate(payload) {
|
|
313
|
+
function __deleteAutomationTemplate({ host }) {
|
|
314
|
+
const metadata = {
|
|
315
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
316
|
+
method: "DELETE",
|
|
317
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.DeleteAutomationTemplate",
|
|
318
|
+
packageName: PACKAGE_NAME,
|
|
319
|
+
migrationOptions: {
|
|
320
|
+
optInTransformResponse: true
|
|
321
|
+
},
|
|
322
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
323
|
+
protoPath: "/v1/automation-templates/{componentId}",
|
|
324
|
+
data: payload,
|
|
325
|
+
host
|
|
326
|
+
}),
|
|
327
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
328
|
+
};
|
|
329
|
+
return metadata;
|
|
330
|
+
}
|
|
331
|
+
return __deleteAutomationTemplate;
|
|
332
|
+
}
|
|
333
|
+
function resolveAutomationTemplates(payload) {
|
|
334
|
+
function __resolveAutomationTemplates({ host }) {
|
|
335
|
+
const metadata = {
|
|
336
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
337
|
+
method: "POST",
|
|
338
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.ResolveAutomationTemplates",
|
|
339
|
+
packageName: PACKAGE_NAME,
|
|
340
|
+
migrationOptions: {
|
|
341
|
+
optInTransformResponse: true
|
|
342
|
+
},
|
|
343
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
344
|
+
protoPath: "/v1/automation-templates/resolve",
|
|
345
|
+
data: payload,
|
|
346
|
+
host
|
|
347
|
+
}),
|
|
348
|
+
data: payload,
|
|
349
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
350
|
+
{
|
|
351
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
352
|
+
paths: [
|
|
353
|
+
{ path: "automationTemplates.createdDate" },
|
|
354
|
+
{ path: "automationTemplates.updatedDate" },
|
|
355
|
+
{ path: "automationTemplates.automation.createdDate" },
|
|
356
|
+
{ path: "automationTemplates.automation.updatedDate" },
|
|
357
|
+
{ path: "automationTemplates.automation.draftUpdatedDate" },
|
|
358
|
+
{
|
|
359
|
+
path: "automationTemplates.automation.autoArchivePolicy.archiveDate"
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
])
|
|
364
|
+
};
|
|
365
|
+
return metadata;
|
|
366
|
+
}
|
|
367
|
+
return __resolveAutomationTemplates;
|
|
368
|
+
}
|
|
369
|
+
function queryAutomationTemplatesForApp(payload) {
|
|
370
|
+
function __queryAutomationTemplatesForApp({ host }) {
|
|
371
|
+
const metadata = {
|
|
372
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
373
|
+
method: "POST",
|
|
374
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.QueryAutomationTemplatesForApp",
|
|
375
|
+
packageName: PACKAGE_NAME,
|
|
376
|
+
migrationOptions: {
|
|
377
|
+
optInTransformResponse: true
|
|
378
|
+
},
|
|
379
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
380
|
+
protoPath: "/v1/automation-templates/query-for-app",
|
|
381
|
+
data: payload,
|
|
382
|
+
host
|
|
383
|
+
}),
|
|
384
|
+
data: payload,
|
|
385
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
386
|
+
{
|
|
387
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
388
|
+
paths: [
|
|
389
|
+
{ path: "automationTemplates.createdDate" },
|
|
390
|
+
{ path: "automationTemplates.updatedDate" },
|
|
391
|
+
{ path: "automationTemplates.automation.createdDate" },
|
|
392
|
+
{ path: "automationTemplates.automation.updatedDate" },
|
|
393
|
+
{ path: "automationTemplates.automation.draftUpdatedDate" },
|
|
394
|
+
{
|
|
395
|
+
path: "automationTemplates.automation.autoArchivePolicy.archiveDate"
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
}
|
|
399
|
+
])
|
|
400
|
+
};
|
|
401
|
+
return metadata;
|
|
402
|
+
}
|
|
403
|
+
return __queryAutomationTemplatesForApp;
|
|
404
|
+
}
|
|
405
|
+
function generateTemplateFromAutomation(payload) {
|
|
406
|
+
function __generateTemplateFromAutomation({ host }) {
|
|
407
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
408
|
+
{
|
|
409
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
410
|
+
paths: [
|
|
411
|
+
{ path: "automation.createdDate" },
|
|
412
|
+
{ path: "automation.updatedDate" },
|
|
413
|
+
{ path: "automation.draftUpdatedDate" },
|
|
414
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
]);
|
|
418
|
+
const metadata = {
|
|
419
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
420
|
+
method: "POST",
|
|
421
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.GenerateTemplateFromAutomation",
|
|
422
|
+
packageName: PACKAGE_NAME,
|
|
423
|
+
migrationOptions: {
|
|
424
|
+
optInTransformResponse: true
|
|
425
|
+
},
|
|
426
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
427
|
+
protoPath: "/v1/automation-templates/generate",
|
|
428
|
+
data: serializedData,
|
|
429
|
+
host
|
|
430
|
+
}),
|
|
431
|
+
data: serializedData,
|
|
432
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
433
|
+
{
|
|
434
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
435
|
+
paths: [
|
|
436
|
+
{ path: "automationTemplate.createdDate" },
|
|
437
|
+
{ path: "automationTemplate.updatedDate" },
|
|
438
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
439
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
440
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
441
|
+
{
|
|
442
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
443
|
+
}
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
])
|
|
447
|
+
};
|
|
448
|
+
return metadata;
|
|
449
|
+
}
|
|
450
|
+
return __generateTemplateFromAutomation;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// src/automations-templates-v1-automation-template-automation-templates.universal.ts
|
|
454
|
+
var Category = /* @__PURE__ */ ((Category2) => {
|
|
455
|
+
Category2["SELL_MORE_ONLINE"] = "SELL_MORE_ONLINE";
|
|
456
|
+
Category2["ENGAGE_WITH_CLIENTS"] = "ENGAGE_WITH_CLIENTS";
|
|
457
|
+
Category2["GET_PAID_ON_TIME"] = "GET_PAID_ON_TIME";
|
|
458
|
+
Category2["MANAGE_BUSINESS"] = "MANAGE_BUSINESS";
|
|
459
|
+
Category2["RETAIN_CUSTOMERS"] = "RETAIN_CUSTOMERS";
|
|
460
|
+
Category2["POPULAR"] = "POPULAR";
|
|
461
|
+
return Category2;
|
|
462
|
+
})(Category || {});
|
|
463
|
+
var Domain = /* @__PURE__ */ ((Domain2) => {
|
|
464
|
+
Domain2["USER"] = "USER";
|
|
465
|
+
Domain2["WIX"] = "WIX";
|
|
466
|
+
Domain2["WIX_ACCOUNT"] = "WIX_ACCOUNT";
|
|
467
|
+
return Domain2;
|
|
468
|
+
})(Domain || {});
|
|
469
|
+
var TimeUnit = /* @__PURE__ */ ((TimeUnit2) => {
|
|
470
|
+
TimeUnit2["MINUTES"] = "MINUTES";
|
|
471
|
+
TimeUnit2["HOURS"] = "HOURS";
|
|
472
|
+
TimeUnit2["DAYS"] = "DAYS";
|
|
473
|
+
TimeUnit2["WEEKS"] = "WEEKS";
|
|
474
|
+
TimeUnit2["MONTHS"] = "MONTHS";
|
|
475
|
+
return TimeUnit2;
|
|
476
|
+
})(TimeUnit || {});
|
|
477
|
+
var Operator = /* @__PURE__ */ ((Operator2) => {
|
|
478
|
+
Operator2["OR"] = "OR";
|
|
479
|
+
Operator2["AND"] = "AND";
|
|
480
|
+
return Operator2;
|
|
481
|
+
})(Operator || {});
|
|
482
|
+
var Language = /* @__PURE__ */ ((Language2) => {
|
|
483
|
+
Language2["JAVASCRIPT"] = "JAVASCRIPT";
|
|
484
|
+
return Language2;
|
|
485
|
+
})(Language || {});
|
|
486
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
487
|
+
Type2["APP_DEFINED"] = "APP_DEFINED";
|
|
488
|
+
Type2["CONDITION"] = "CONDITION";
|
|
489
|
+
Type2["CODE_CONDITION"] = "CODE_CONDITION";
|
|
490
|
+
Type2["DELAY"] = "DELAY";
|
|
491
|
+
Type2["RATE_LIMIT"] = "RATE_LIMIT";
|
|
492
|
+
return Type2;
|
|
493
|
+
})(Type || {});
|
|
494
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
495
|
+
Status2["ACTIVE"] = "ACTIVE";
|
|
496
|
+
Status2["INACTIVE"] = "INACTIVE";
|
|
497
|
+
return Status2;
|
|
498
|
+
})(Status || {});
|
|
499
|
+
var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
500
|
+
Origin2["USER"] = "USER";
|
|
501
|
+
Origin2["APPLICATION"] = "APPLICATION";
|
|
502
|
+
Origin2["PREINSTALLED"] = "PREINSTALLED";
|
|
503
|
+
return Origin2;
|
|
504
|
+
})(Origin || {});
|
|
505
|
+
var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
|
|
506
|
+
CommonSortOrder2["ASC"] = "ASC";
|
|
507
|
+
CommonSortOrder2["DESC"] = "DESC";
|
|
508
|
+
return CommonSortOrder2;
|
|
509
|
+
})(CommonSortOrder || {});
|
|
510
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
511
|
+
SortOrder2["ASC"] = "ASC";
|
|
512
|
+
SortOrder2["DESC"] = "DESC";
|
|
513
|
+
return SortOrder2;
|
|
514
|
+
})(SortOrder || {});
|
|
515
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
516
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
517
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
518
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
519
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
520
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
521
|
+
return WebhookIdentityType2;
|
|
522
|
+
})(WebhookIdentityType || {});
|
|
523
|
+
async function createAutomationTemplate2(automationTemplate, options) {
|
|
524
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
525
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
526
|
+
automationTemplate,
|
|
527
|
+
appId: options?.appId,
|
|
528
|
+
originalMetaSiteId: options?.originalMetaSiteId
|
|
529
|
+
});
|
|
530
|
+
const reqOpts = createAutomationTemplate(
|
|
531
|
+
payload
|
|
532
|
+
);
|
|
533
|
+
sideEffects?.onSiteCall?.();
|
|
534
|
+
try {
|
|
535
|
+
const result = await httpClient.request(reqOpts);
|
|
536
|
+
sideEffects?.onSuccess?.(result);
|
|
537
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.automationTemplate;
|
|
538
|
+
} catch (err) {
|
|
539
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
540
|
+
err,
|
|
541
|
+
{
|
|
542
|
+
spreadPathsToArguments: {},
|
|
543
|
+
explicitPathsToArguments: {
|
|
544
|
+
automationTemplate: "$[0]",
|
|
545
|
+
appId: "$[1].appId",
|
|
546
|
+
originalMetaSiteId: "$[1].originalMetaSiteId"
|
|
547
|
+
},
|
|
548
|
+
singleArgumentUnchanged: false
|
|
549
|
+
},
|
|
550
|
+
["automationTemplate", "options"]
|
|
551
|
+
);
|
|
552
|
+
sideEffects?.onError?.(err);
|
|
553
|
+
throw transformedError;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
async function createDraftAutomationTemplate2(automationTemplate, options) {
|
|
557
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
558
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
559
|
+
automationTemplate,
|
|
560
|
+
appId: options?.appId
|
|
561
|
+
});
|
|
562
|
+
const reqOpts = createDraftAutomationTemplate(
|
|
563
|
+
payload
|
|
564
|
+
);
|
|
565
|
+
sideEffects?.onSiteCall?.();
|
|
566
|
+
try {
|
|
567
|
+
const result = await httpClient.request(reqOpts);
|
|
568
|
+
sideEffects?.onSuccess?.(result);
|
|
569
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
570
|
+
} catch (err) {
|
|
571
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
572
|
+
err,
|
|
573
|
+
{
|
|
574
|
+
spreadPathsToArguments: {},
|
|
575
|
+
explicitPathsToArguments: {
|
|
576
|
+
automationTemplate: "$[0]",
|
|
577
|
+
appId: "$[1].appId"
|
|
578
|
+
},
|
|
579
|
+
singleArgumentUnchanged: false
|
|
580
|
+
},
|
|
581
|
+
["automationTemplate", "options"]
|
|
582
|
+
);
|
|
583
|
+
sideEffects?.onError?.(err);
|
|
584
|
+
throw transformedError;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
async function getAutomationTemplate2(automationTemplateId) {
|
|
588
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
589
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
590
|
+
automationTemplateId
|
|
591
|
+
});
|
|
592
|
+
const reqOpts = getAutomationTemplate(
|
|
593
|
+
payload
|
|
594
|
+
);
|
|
595
|
+
sideEffects?.onSiteCall?.();
|
|
596
|
+
try {
|
|
597
|
+
const result = await httpClient.request(reqOpts);
|
|
598
|
+
sideEffects?.onSuccess?.(result);
|
|
599
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.automationTemplate;
|
|
600
|
+
} catch (err) {
|
|
601
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
602
|
+
err,
|
|
603
|
+
{
|
|
604
|
+
spreadPathsToArguments: {},
|
|
605
|
+
explicitPathsToArguments: { automationTemplateId: "$[0]" },
|
|
606
|
+
singleArgumentUnchanged: false
|
|
607
|
+
},
|
|
608
|
+
["automationTemplateId"]
|
|
609
|
+
);
|
|
610
|
+
sideEffects?.onError?.(err);
|
|
611
|
+
throw transformedError;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
async function updateAutomationTemplate2(_id, automationTemplate, options) {
|
|
615
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
616
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
617
|
+
automationTemplate: { ...automationTemplate, id: _id },
|
|
618
|
+
appId: options?.appId
|
|
619
|
+
});
|
|
620
|
+
const reqOpts = updateAutomationTemplate(
|
|
621
|
+
payload
|
|
622
|
+
);
|
|
623
|
+
sideEffects?.onSiteCall?.();
|
|
624
|
+
try {
|
|
625
|
+
const result = await httpClient.request(reqOpts);
|
|
626
|
+
sideEffects?.onSuccess?.(result);
|
|
627
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.automationTemplate;
|
|
628
|
+
} catch (err) {
|
|
629
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
630
|
+
err,
|
|
631
|
+
{
|
|
632
|
+
spreadPathsToArguments: { automationTemplate: "$[1]" },
|
|
633
|
+
explicitPathsToArguments: {
|
|
634
|
+
"automationTemplate.id": "$[0]",
|
|
635
|
+
appId: "$[2].appId"
|
|
636
|
+
},
|
|
637
|
+
singleArgumentUnchanged: false
|
|
638
|
+
},
|
|
639
|
+
["_id", "automationTemplate", "options"]
|
|
640
|
+
);
|
|
641
|
+
sideEffects?.onError?.(err);
|
|
642
|
+
throw transformedError;
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
async function updateDraftAutomationTemplate2(_id, automationTemplate, options) {
|
|
646
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
647
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
648
|
+
automationTemplate: { ...automationTemplate, id: _id },
|
|
649
|
+
appId: options?.appId,
|
|
650
|
+
metaSiteId: options?.metaSiteId
|
|
651
|
+
});
|
|
652
|
+
const reqOpts = updateDraftAutomationTemplate(
|
|
653
|
+
payload
|
|
654
|
+
);
|
|
655
|
+
sideEffects?.onSiteCall?.();
|
|
656
|
+
try {
|
|
657
|
+
const result = await httpClient.request(reqOpts);
|
|
658
|
+
sideEffects?.onSuccess?.(result);
|
|
659
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
660
|
+
} catch (err) {
|
|
661
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
662
|
+
err,
|
|
663
|
+
{
|
|
664
|
+
spreadPathsToArguments: { automationTemplate: "$[1]" },
|
|
665
|
+
explicitPathsToArguments: {
|
|
666
|
+
"automationTemplate.id": "$[0]",
|
|
667
|
+
appId: "$[2].appId",
|
|
668
|
+
metaSiteId: "$[2].metaSiteId"
|
|
669
|
+
},
|
|
670
|
+
singleArgumentUnchanged: false
|
|
671
|
+
},
|
|
672
|
+
["_id", "automationTemplate", "options"]
|
|
673
|
+
);
|
|
674
|
+
sideEffects?.onError?.(err);
|
|
675
|
+
throw transformedError;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
async function deleteAutomationTemplate2(componentId, appId) {
|
|
679
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
680
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
681
|
+
componentId,
|
|
682
|
+
appId
|
|
683
|
+
});
|
|
684
|
+
const reqOpts = deleteAutomationTemplate(
|
|
685
|
+
payload
|
|
686
|
+
);
|
|
687
|
+
sideEffects?.onSiteCall?.();
|
|
688
|
+
try {
|
|
689
|
+
const result = await httpClient.request(reqOpts);
|
|
690
|
+
sideEffects?.onSuccess?.(result);
|
|
691
|
+
} catch (err) {
|
|
692
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
693
|
+
err,
|
|
694
|
+
{
|
|
695
|
+
spreadPathsToArguments: {},
|
|
696
|
+
explicitPathsToArguments: { componentId: "$[0]", appId: "$[1]" },
|
|
697
|
+
singleArgumentUnchanged: false
|
|
698
|
+
},
|
|
699
|
+
["componentId", "appId"]
|
|
700
|
+
);
|
|
701
|
+
sideEffects?.onError?.(err);
|
|
702
|
+
throw transformedError;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
async function resolveAutomationTemplates2(query) {
|
|
706
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
707
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
708
|
+
const reqOpts = resolveAutomationTemplates(
|
|
709
|
+
payload
|
|
710
|
+
);
|
|
711
|
+
sideEffects?.onSiteCall?.();
|
|
712
|
+
try {
|
|
713
|
+
const result = await httpClient.request(reqOpts);
|
|
714
|
+
sideEffects?.onSuccess?.(result);
|
|
715
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
716
|
+
} catch (err) {
|
|
717
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
718
|
+
err,
|
|
719
|
+
{
|
|
720
|
+
spreadPathsToArguments: {},
|
|
721
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
722
|
+
singleArgumentUnchanged: false
|
|
723
|
+
},
|
|
724
|
+
["query"]
|
|
725
|
+
);
|
|
726
|
+
sideEffects?.onError?.(err);
|
|
727
|
+
throw transformedError;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
async function queryAutomationTemplatesForApp2(query, options) {
|
|
731
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
732
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
733
|
+
query,
|
|
734
|
+
appId: options?.appId
|
|
735
|
+
});
|
|
736
|
+
const reqOpts = queryAutomationTemplatesForApp(
|
|
737
|
+
payload
|
|
738
|
+
);
|
|
739
|
+
sideEffects?.onSiteCall?.();
|
|
740
|
+
try {
|
|
741
|
+
const result = await httpClient.request(reqOpts);
|
|
742
|
+
sideEffects?.onSuccess?.(result);
|
|
743
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
744
|
+
} catch (err) {
|
|
745
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
746
|
+
err,
|
|
747
|
+
{
|
|
748
|
+
spreadPathsToArguments: {},
|
|
749
|
+
explicitPathsToArguments: { query: "$[0]", appId: "$[1].appId" },
|
|
750
|
+
singleArgumentUnchanged: false
|
|
751
|
+
},
|
|
752
|
+
["query", "options"]
|
|
753
|
+
);
|
|
754
|
+
sideEffects?.onError?.(err);
|
|
755
|
+
throw transformedError;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
async function generateTemplateFromAutomation2(automation, options) {
|
|
759
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
760
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
761
|
+
automation,
|
|
762
|
+
appId: options?.appId
|
|
763
|
+
});
|
|
764
|
+
const reqOpts = generateTemplateFromAutomation(
|
|
765
|
+
payload
|
|
766
|
+
);
|
|
767
|
+
sideEffects?.onSiteCall?.();
|
|
768
|
+
try {
|
|
769
|
+
const result = await httpClient.request(reqOpts);
|
|
770
|
+
sideEffects?.onSuccess?.(result);
|
|
771
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
772
|
+
} catch (err) {
|
|
773
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
774
|
+
err,
|
|
775
|
+
{
|
|
776
|
+
spreadPathsToArguments: {},
|
|
777
|
+
explicitPathsToArguments: { automation: "$[0]", appId: "$[1].appId" },
|
|
778
|
+
singleArgumentUnchanged: false
|
|
779
|
+
},
|
|
780
|
+
["automation", "options"]
|
|
781
|
+
);
|
|
782
|
+
sideEffects?.onError?.(err);
|
|
783
|
+
throw transformedError;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
// src/automations-templates-v1-automation-template-automation-templates.public.ts
|
|
788
|
+
function createAutomationTemplate3(httpClient) {
|
|
789
|
+
return (automationTemplate, options) => createAutomationTemplate2(
|
|
790
|
+
automationTemplate,
|
|
791
|
+
options,
|
|
792
|
+
// @ts-ignore
|
|
793
|
+
{ httpClient }
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
function createDraftAutomationTemplate3(httpClient) {
|
|
797
|
+
return (automationTemplate, options) => createDraftAutomationTemplate2(
|
|
798
|
+
automationTemplate,
|
|
799
|
+
options,
|
|
800
|
+
// @ts-ignore
|
|
801
|
+
{ httpClient }
|
|
802
|
+
);
|
|
803
|
+
}
|
|
804
|
+
function getAutomationTemplate3(httpClient) {
|
|
805
|
+
return (automationTemplateId) => getAutomationTemplate2(
|
|
806
|
+
automationTemplateId,
|
|
807
|
+
// @ts-ignore
|
|
808
|
+
{ httpClient }
|
|
809
|
+
);
|
|
810
|
+
}
|
|
811
|
+
function updateAutomationTemplate3(httpClient) {
|
|
812
|
+
return (_id, automationTemplate, options) => updateAutomationTemplate2(
|
|
813
|
+
_id,
|
|
814
|
+
automationTemplate,
|
|
815
|
+
options,
|
|
816
|
+
// @ts-ignore
|
|
817
|
+
{ httpClient }
|
|
818
|
+
);
|
|
819
|
+
}
|
|
820
|
+
function updateDraftAutomationTemplate3(httpClient) {
|
|
821
|
+
return (_id, automationTemplate, options) => updateDraftAutomationTemplate2(
|
|
822
|
+
_id,
|
|
823
|
+
automationTemplate,
|
|
824
|
+
options,
|
|
825
|
+
// @ts-ignore
|
|
826
|
+
{ httpClient }
|
|
827
|
+
);
|
|
828
|
+
}
|
|
829
|
+
function deleteAutomationTemplate3(httpClient) {
|
|
830
|
+
return (componentId, appId) => deleteAutomationTemplate2(
|
|
831
|
+
componentId,
|
|
832
|
+
appId,
|
|
833
|
+
// @ts-ignore
|
|
834
|
+
{ httpClient }
|
|
835
|
+
);
|
|
836
|
+
}
|
|
837
|
+
function resolveAutomationTemplates3(httpClient) {
|
|
838
|
+
return (query) => resolveAutomationTemplates2(
|
|
839
|
+
query,
|
|
840
|
+
// @ts-ignore
|
|
841
|
+
{ httpClient }
|
|
842
|
+
);
|
|
843
|
+
}
|
|
844
|
+
function queryAutomationTemplatesForApp3(httpClient) {
|
|
845
|
+
return (query, options) => queryAutomationTemplatesForApp2(
|
|
846
|
+
query,
|
|
847
|
+
options,
|
|
848
|
+
// @ts-ignore
|
|
849
|
+
{ httpClient }
|
|
850
|
+
);
|
|
851
|
+
}
|
|
852
|
+
function generateTemplateFromAutomation3(httpClient) {
|
|
853
|
+
return (automation, options) => generateTemplateFromAutomation2(
|
|
854
|
+
automation,
|
|
855
|
+
options,
|
|
856
|
+
// @ts-ignore
|
|
857
|
+
{ httpClient }
|
|
858
|
+
);
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
// src/automations-templates-v1-automation-template-automation-templates.context.ts
|
|
862
|
+
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
863
|
+
var createAutomationTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createAutomationTemplate3);
|
|
864
|
+
var createDraftAutomationTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createDraftAutomationTemplate3);
|
|
865
|
+
var getAutomationTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAutomationTemplate3);
|
|
866
|
+
var updateAutomationTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateAutomationTemplate3);
|
|
867
|
+
var updateDraftAutomationTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateDraftAutomationTemplate3);
|
|
868
|
+
var deleteAutomationTemplate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteAutomationTemplate3);
|
|
869
|
+
var resolveAutomationTemplates4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(resolveAutomationTemplates3);
|
|
870
|
+
var queryAutomationTemplatesForApp4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryAutomationTemplatesForApp3);
|
|
871
|
+
var generateTemplateFromAutomation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(generateTemplateFromAutomation3);
|
|
872
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
873
|
+
0 && (module.exports = {
|
|
874
|
+
Category,
|
|
875
|
+
CommonSortOrder,
|
|
876
|
+
Domain,
|
|
877
|
+
Language,
|
|
878
|
+
Operator,
|
|
879
|
+
Origin,
|
|
880
|
+
SortOrder,
|
|
881
|
+
Status,
|
|
882
|
+
TimeUnit,
|
|
883
|
+
Type,
|
|
884
|
+
WebhookIdentityType,
|
|
885
|
+
createAutomationTemplate,
|
|
886
|
+
createDraftAutomationTemplate,
|
|
887
|
+
deleteAutomationTemplate,
|
|
888
|
+
generateTemplateFromAutomation,
|
|
889
|
+
getAutomationTemplate,
|
|
890
|
+
queryAutomationTemplatesForApp,
|
|
891
|
+
resolveAutomationTemplates,
|
|
892
|
+
updateAutomationTemplate,
|
|
893
|
+
updateDraftAutomationTemplate
|
|
894
|
+
});
|
|
895
|
+
//# sourceMappingURL=index.js.map
|