@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,728 @@
|
|
|
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
|
+
// meta.ts
|
|
21
|
+
var meta_exports = {};
|
|
22
|
+
__export(meta_exports, {
|
|
23
|
+
CategoryOriginal: () => Category,
|
|
24
|
+
CommonSortOrderOriginal: () => CommonSortOrder,
|
|
25
|
+
DomainOriginal: () => Domain,
|
|
26
|
+
LanguageOriginal: () => Language,
|
|
27
|
+
OperatorOriginal: () => Operator,
|
|
28
|
+
OriginOriginal: () => Origin,
|
|
29
|
+
SortOrderOriginal: () => SortOrder,
|
|
30
|
+
StatusOriginal: () => Status,
|
|
31
|
+
TimeUnitOriginal: () => TimeUnit,
|
|
32
|
+
TypeOriginal: () => Type,
|
|
33
|
+
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
34
|
+
createAutomationTemplate: () => createAutomationTemplate2,
|
|
35
|
+
createDraftAutomationTemplate: () => createDraftAutomationTemplate2,
|
|
36
|
+
deleteAutomationTemplate: () => deleteAutomationTemplate2,
|
|
37
|
+
generateTemplateFromAutomation: () => generateTemplateFromAutomation2,
|
|
38
|
+
getAutomationTemplate: () => getAutomationTemplate2,
|
|
39
|
+
queryAutomationTemplatesForApp: () => queryAutomationTemplatesForApp2,
|
|
40
|
+
resolveAutomationTemplates: () => resolveAutomationTemplates2,
|
|
41
|
+
updateAutomationTemplate: () => updateAutomationTemplate2,
|
|
42
|
+
updateDraftAutomationTemplate: () => updateDraftAutomationTemplate2
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(meta_exports);
|
|
45
|
+
|
|
46
|
+
// src/automations-templates-v1-automation-template-automation-templates.http.ts
|
|
47
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
48
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
49
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
50
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
51
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
52
|
+
function resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl(opts) {
|
|
53
|
+
const domainToMappings = {
|
|
54
|
+
"manage._base_domain_": [
|
|
55
|
+
{
|
|
56
|
+
srcPath: "/_api/automation-templates",
|
|
57
|
+
destPath: "/api"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
srcPath: "/automation-templates",
|
|
61
|
+
destPath: ""
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
};
|
|
65
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
66
|
+
}
|
|
67
|
+
var PACKAGE_NAME = "@wix/auto_sdk_automations_automation-templates";
|
|
68
|
+
function createAutomationTemplate(payload) {
|
|
69
|
+
function __createAutomationTemplate({ host }) {
|
|
70
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
71
|
+
{
|
|
72
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
73
|
+
paths: [
|
|
74
|
+
{ path: "automationTemplate.createdDate" },
|
|
75
|
+
{ path: "automationTemplate.updatedDate" },
|
|
76
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
77
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
78
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
79
|
+
{
|
|
80
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]);
|
|
85
|
+
const metadata = {
|
|
86
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
87
|
+
method: "POST",
|
|
88
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.CreateAutomationTemplate",
|
|
89
|
+
packageName: PACKAGE_NAME,
|
|
90
|
+
migrationOptions: {
|
|
91
|
+
optInTransformResponse: true
|
|
92
|
+
},
|
|
93
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
94
|
+
protoPath: "/v1/automation-templates",
|
|
95
|
+
data: serializedData,
|
|
96
|
+
host
|
|
97
|
+
}),
|
|
98
|
+
data: serializedData,
|
|
99
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
100
|
+
{
|
|
101
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
102
|
+
paths: [
|
|
103
|
+
{ path: "automationTemplate.createdDate" },
|
|
104
|
+
{ path: "automationTemplate.updatedDate" },
|
|
105
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
106
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
107
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
108
|
+
{
|
|
109
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
])
|
|
114
|
+
};
|
|
115
|
+
return metadata;
|
|
116
|
+
}
|
|
117
|
+
return __createAutomationTemplate;
|
|
118
|
+
}
|
|
119
|
+
function createDraftAutomationTemplate(payload) {
|
|
120
|
+
function __createDraftAutomationTemplate({ host }) {
|
|
121
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
122
|
+
{
|
|
123
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
124
|
+
paths: [
|
|
125
|
+
{ path: "automationTemplate.createdDate" },
|
|
126
|
+
{ path: "automationTemplate.updatedDate" },
|
|
127
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
128
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
129
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
130
|
+
{
|
|
131
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
132
|
+
}
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
]);
|
|
136
|
+
const metadata = {
|
|
137
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
138
|
+
method: "POST",
|
|
139
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.CreateDraftAutomationTemplate",
|
|
140
|
+
packageName: PACKAGE_NAME,
|
|
141
|
+
migrationOptions: {
|
|
142
|
+
optInTransformResponse: true
|
|
143
|
+
},
|
|
144
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
145
|
+
protoPath: "/v1/automation-templates/drafts",
|
|
146
|
+
data: serializedData,
|
|
147
|
+
host
|
|
148
|
+
}),
|
|
149
|
+
data: serializedData,
|
|
150
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
151
|
+
{
|
|
152
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
153
|
+
paths: [
|
|
154
|
+
{ path: "automationTemplate.createdDate" },
|
|
155
|
+
{ path: "automationTemplate.updatedDate" },
|
|
156
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
157
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
158
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
159
|
+
{
|
|
160
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
])
|
|
165
|
+
};
|
|
166
|
+
return metadata;
|
|
167
|
+
}
|
|
168
|
+
return __createDraftAutomationTemplate;
|
|
169
|
+
}
|
|
170
|
+
function getAutomationTemplate(payload) {
|
|
171
|
+
function __getAutomationTemplate({ host }) {
|
|
172
|
+
const metadata = {
|
|
173
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
174
|
+
method: "GET",
|
|
175
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.GetAutomationTemplate",
|
|
176
|
+
packageName: PACKAGE_NAME,
|
|
177
|
+
migrationOptions: {
|
|
178
|
+
optInTransformResponse: true
|
|
179
|
+
},
|
|
180
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
181
|
+
protoPath: "/v1/automation-templates/{automationTemplateId}",
|
|
182
|
+
data: payload,
|
|
183
|
+
host
|
|
184
|
+
}),
|
|
185
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
186
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
187
|
+
{
|
|
188
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
189
|
+
paths: [
|
|
190
|
+
{ path: "automationTemplate.createdDate" },
|
|
191
|
+
{ path: "automationTemplate.updatedDate" },
|
|
192
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
193
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
194
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
195
|
+
{
|
|
196
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
])
|
|
201
|
+
};
|
|
202
|
+
return metadata;
|
|
203
|
+
}
|
|
204
|
+
return __getAutomationTemplate;
|
|
205
|
+
}
|
|
206
|
+
function updateAutomationTemplate(payload) {
|
|
207
|
+
function __updateAutomationTemplate({ host }) {
|
|
208
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
209
|
+
{
|
|
210
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
211
|
+
paths: [
|
|
212
|
+
{ path: "automationTemplate.createdDate" },
|
|
213
|
+
{ path: "automationTemplate.updatedDate" },
|
|
214
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
215
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
216
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
217
|
+
{
|
|
218
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
}
|
|
222
|
+
]);
|
|
223
|
+
const metadata = {
|
|
224
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
225
|
+
method: "PATCH",
|
|
226
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.UpdateAutomationTemplate",
|
|
227
|
+
packageName: PACKAGE_NAME,
|
|
228
|
+
migrationOptions: {
|
|
229
|
+
optInTransformResponse: true
|
|
230
|
+
},
|
|
231
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
232
|
+
protoPath: "/v1/automation-templates/{automationTemplate.id}",
|
|
233
|
+
data: serializedData,
|
|
234
|
+
host
|
|
235
|
+
}),
|
|
236
|
+
data: serializedData,
|
|
237
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
238
|
+
{
|
|
239
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
240
|
+
paths: [
|
|
241
|
+
{ path: "automationTemplate.createdDate" },
|
|
242
|
+
{ path: "automationTemplate.updatedDate" },
|
|
243
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
244
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
245
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
246
|
+
{
|
|
247
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
248
|
+
}
|
|
249
|
+
]
|
|
250
|
+
}
|
|
251
|
+
])
|
|
252
|
+
};
|
|
253
|
+
return metadata;
|
|
254
|
+
}
|
|
255
|
+
return __updateAutomationTemplate;
|
|
256
|
+
}
|
|
257
|
+
function updateDraftAutomationTemplate(payload) {
|
|
258
|
+
function __updateDraftAutomationTemplate({ host }) {
|
|
259
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
260
|
+
{
|
|
261
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
262
|
+
paths: [
|
|
263
|
+
{ path: "automationTemplate.createdDate" },
|
|
264
|
+
{ path: "automationTemplate.updatedDate" },
|
|
265
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
266
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
267
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
268
|
+
{
|
|
269
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
270
|
+
}
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
]);
|
|
274
|
+
const metadata = {
|
|
275
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
276
|
+
method: "PATCH",
|
|
277
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.UpdateDraftAutomationTemplate",
|
|
278
|
+
packageName: PACKAGE_NAME,
|
|
279
|
+
migrationOptions: {
|
|
280
|
+
optInTransformResponse: true
|
|
281
|
+
},
|
|
282
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
283
|
+
protoPath: "/v1/automation-templates/drafts/{automationTemplate.id}",
|
|
284
|
+
data: serializedData,
|
|
285
|
+
host
|
|
286
|
+
}),
|
|
287
|
+
data: serializedData,
|
|
288
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
289
|
+
{
|
|
290
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
291
|
+
paths: [
|
|
292
|
+
{ path: "automationTemplate.createdDate" },
|
|
293
|
+
{ path: "automationTemplate.updatedDate" },
|
|
294
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
295
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
296
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
297
|
+
{
|
|
298
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
299
|
+
}
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
])
|
|
303
|
+
};
|
|
304
|
+
return metadata;
|
|
305
|
+
}
|
|
306
|
+
return __updateDraftAutomationTemplate;
|
|
307
|
+
}
|
|
308
|
+
function deleteAutomationTemplate(payload) {
|
|
309
|
+
function __deleteAutomationTemplate({ host }) {
|
|
310
|
+
const metadata = {
|
|
311
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
312
|
+
method: "DELETE",
|
|
313
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.DeleteAutomationTemplate",
|
|
314
|
+
packageName: PACKAGE_NAME,
|
|
315
|
+
migrationOptions: {
|
|
316
|
+
optInTransformResponse: true
|
|
317
|
+
},
|
|
318
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
319
|
+
protoPath: "/v1/automation-templates/{componentId}",
|
|
320
|
+
data: payload,
|
|
321
|
+
host
|
|
322
|
+
}),
|
|
323
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
324
|
+
};
|
|
325
|
+
return metadata;
|
|
326
|
+
}
|
|
327
|
+
return __deleteAutomationTemplate;
|
|
328
|
+
}
|
|
329
|
+
function resolveAutomationTemplates(payload) {
|
|
330
|
+
function __resolveAutomationTemplates({ host }) {
|
|
331
|
+
const metadata = {
|
|
332
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
333
|
+
method: "POST",
|
|
334
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.ResolveAutomationTemplates",
|
|
335
|
+
packageName: PACKAGE_NAME,
|
|
336
|
+
migrationOptions: {
|
|
337
|
+
optInTransformResponse: true
|
|
338
|
+
},
|
|
339
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
340
|
+
protoPath: "/v1/automation-templates/resolve",
|
|
341
|
+
data: payload,
|
|
342
|
+
host
|
|
343
|
+
}),
|
|
344
|
+
data: payload,
|
|
345
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
346
|
+
{
|
|
347
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
348
|
+
paths: [
|
|
349
|
+
{ path: "automationTemplates.createdDate" },
|
|
350
|
+
{ path: "automationTemplates.updatedDate" },
|
|
351
|
+
{ path: "automationTemplates.automation.createdDate" },
|
|
352
|
+
{ path: "automationTemplates.automation.updatedDate" },
|
|
353
|
+
{ path: "automationTemplates.automation.draftUpdatedDate" },
|
|
354
|
+
{
|
|
355
|
+
path: "automationTemplates.automation.autoArchivePolicy.archiveDate"
|
|
356
|
+
}
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
])
|
|
360
|
+
};
|
|
361
|
+
return metadata;
|
|
362
|
+
}
|
|
363
|
+
return __resolveAutomationTemplates;
|
|
364
|
+
}
|
|
365
|
+
function queryAutomationTemplatesForApp(payload) {
|
|
366
|
+
function __queryAutomationTemplatesForApp({ host }) {
|
|
367
|
+
const metadata = {
|
|
368
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
369
|
+
method: "POST",
|
|
370
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.QueryAutomationTemplatesForApp",
|
|
371
|
+
packageName: PACKAGE_NAME,
|
|
372
|
+
migrationOptions: {
|
|
373
|
+
optInTransformResponse: true
|
|
374
|
+
},
|
|
375
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
376
|
+
protoPath: "/v1/automation-templates/query-for-app",
|
|
377
|
+
data: payload,
|
|
378
|
+
host
|
|
379
|
+
}),
|
|
380
|
+
data: payload,
|
|
381
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
382
|
+
{
|
|
383
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
384
|
+
paths: [
|
|
385
|
+
{ path: "automationTemplates.createdDate" },
|
|
386
|
+
{ path: "automationTemplates.updatedDate" },
|
|
387
|
+
{ path: "automationTemplates.automation.createdDate" },
|
|
388
|
+
{ path: "automationTemplates.automation.updatedDate" },
|
|
389
|
+
{ path: "automationTemplates.automation.draftUpdatedDate" },
|
|
390
|
+
{
|
|
391
|
+
path: "automationTemplates.automation.autoArchivePolicy.archiveDate"
|
|
392
|
+
}
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
])
|
|
396
|
+
};
|
|
397
|
+
return metadata;
|
|
398
|
+
}
|
|
399
|
+
return __queryAutomationTemplatesForApp;
|
|
400
|
+
}
|
|
401
|
+
function generateTemplateFromAutomation(payload) {
|
|
402
|
+
function __generateTemplateFromAutomation({ host }) {
|
|
403
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
404
|
+
{
|
|
405
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
406
|
+
paths: [
|
|
407
|
+
{ path: "automation.createdDate" },
|
|
408
|
+
{ path: "automation.updatedDate" },
|
|
409
|
+
{ path: "automation.draftUpdatedDate" },
|
|
410
|
+
{ path: "automation.autoArchivePolicy.archiveDate" }
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
]);
|
|
414
|
+
const metadata = {
|
|
415
|
+
entityFqdn: "wix.automations.templates.v1.automation_template",
|
|
416
|
+
method: "POST",
|
|
417
|
+
methodFqn: "wix.automations.templates.v1.AutomationTemplatesService.GenerateTemplateFromAutomation",
|
|
418
|
+
packageName: PACKAGE_NAME,
|
|
419
|
+
migrationOptions: {
|
|
420
|
+
optInTransformResponse: true
|
|
421
|
+
},
|
|
422
|
+
url: resolveWixAutomationsTemplatesV1AutomationTemplatesServiceUrl({
|
|
423
|
+
protoPath: "/v1/automation-templates/generate",
|
|
424
|
+
data: serializedData,
|
|
425
|
+
host
|
|
426
|
+
}),
|
|
427
|
+
data: serializedData,
|
|
428
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
429
|
+
{
|
|
430
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
431
|
+
paths: [
|
|
432
|
+
{ path: "automationTemplate.createdDate" },
|
|
433
|
+
{ path: "automationTemplate.updatedDate" },
|
|
434
|
+
{ path: "automationTemplate.automation.createdDate" },
|
|
435
|
+
{ path: "automationTemplate.automation.updatedDate" },
|
|
436
|
+
{ path: "automationTemplate.automation.draftUpdatedDate" },
|
|
437
|
+
{
|
|
438
|
+
path: "automationTemplate.automation.autoArchivePolicy.archiveDate"
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
}
|
|
442
|
+
])
|
|
443
|
+
};
|
|
444
|
+
return metadata;
|
|
445
|
+
}
|
|
446
|
+
return __generateTemplateFromAutomation;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
// src/automations-templates-v1-automation-template-automation-templates.types.ts
|
|
450
|
+
var Category = /* @__PURE__ */ ((Category2) => {
|
|
451
|
+
Category2["SELL_MORE_ONLINE"] = "SELL_MORE_ONLINE";
|
|
452
|
+
Category2["ENGAGE_WITH_CLIENTS"] = "ENGAGE_WITH_CLIENTS";
|
|
453
|
+
Category2["GET_PAID_ON_TIME"] = "GET_PAID_ON_TIME";
|
|
454
|
+
Category2["MANAGE_BUSINESS"] = "MANAGE_BUSINESS";
|
|
455
|
+
Category2["RETAIN_CUSTOMERS"] = "RETAIN_CUSTOMERS";
|
|
456
|
+
Category2["POPULAR"] = "POPULAR";
|
|
457
|
+
return Category2;
|
|
458
|
+
})(Category || {});
|
|
459
|
+
var Domain = /* @__PURE__ */ ((Domain2) => {
|
|
460
|
+
Domain2["USER"] = "USER";
|
|
461
|
+
Domain2["WIX"] = "WIX";
|
|
462
|
+
Domain2["WIX_ACCOUNT"] = "WIX_ACCOUNT";
|
|
463
|
+
return Domain2;
|
|
464
|
+
})(Domain || {});
|
|
465
|
+
var TimeUnit = /* @__PURE__ */ ((TimeUnit2) => {
|
|
466
|
+
TimeUnit2["MINUTES"] = "MINUTES";
|
|
467
|
+
TimeUnit2["HOURS"] = "HOURS";
|
|
468
|
+
TimeUnit2["DAYS"] = "DAYS";
|
|
469
|
+
TimeUnit2["WEEKS"] = "WEEKS";
|
|
470
|
+
TimeUnit2["MONTHS"] = "MONTHS";
|
|
471
|
+
return TimeUnit2;
|
|
472
|
+
})(TimeUnit || {});
|
|
473
|
+
var Operator = /* @__PURE__ */ ((Operator2) => {
|
|
474
|
+
Operator2["OR"] = "OR";
|
|
475
|
+
Operator2["AND"] = "AND";
|
|
476
|
+
return Operator2;
|
|
477
|
+
})(Operator || {});
|
|
478
|
+
var Language = /* @__PURE__ */ ((Language2) => {
|
|
479
|
+
Language2["JAVASCRIPT"] = "JAVASCRIPT";
|
|
480
|
+
return Language2;
|
|
481
|
+
})(Language || {});
|
|
482
|
+
var Type = /* @__PURE__ */ ((Type2) => {
|
|
483
|
+
Type2["APP_DEFINED"] = "APP_DEFINED";
|
|
484
|
+
Type2["CONDITION"] = "CONDITION";
|
|
485
|
+
Type2["CODE_CONDITION"] = "CODE_CONDITION";
|
|
486
|
+
Type2["DELAY"] = "DELAY";
|
|
487
|
+
Type2["RATE_LIMIT"] = "RATE_LIMIT";
|
|
488
|
+
return Type2;
|
|
489
|
+
})(Type || {});
|
|
490
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
491
|
+
Status2["ACTIVE"] = "ACTIVE";
|
|
492
|
+
Status2["INACTIVE"] = "INACTIVE";
|
|
493
|
+
return Status2;
|
|
494
|
+
})(Status || {});
|
|
495
|
+
var Origin = /* @__PURE__ */ ((Origin2) => {
|
|
496
|
+
Origin2["USER"] = "USER";
|
|
497
|
+
Origin2["APPLICATION"] = "APPLICATION";
|
|
498
|
+
Origin2["PREINSTALLED"] = "PREINSTALLED";
|
|
499
|
+
return Origin2;
|
|
500
|
+
})(Origin || {});
|
|
501
|
+
var CommonSortOrder = /* @__PURE__ */ ((CommonSortOrder2) => {
|
|
502
|
+
CommonSortOrder2["ASC"] = "ASC";
|
|
503
|
+
CommonSortOrder2["DESC"] = "DESC";
|
|
504
|
+
return CommonSortOrder2;
|
|
505
|
+
})(CommonSortOrder || {});
|
|
506
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
507
|
+
SortOrder2["ASC"] = "ASC";
|
|
508
|
+
SortOrder2["DESC"] = "DESC";
|
|
509
|
+
return SortOrder2;
|
|
510
|
+
})(SortOrder || {});
|
|
511
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
512
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
513
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
514
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
515
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
516
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
517
|
+
return WebhookIdentityType2;
|
|
518
|
+
})(WebhookIdentityType || {});
|
|
519
|
+
|
|
520
|
+
// src/automations-templates-v1-automation-template-automation-templates.meta.ts
|
|
521
|
+
function createAutomationTemplate2() {
|
|
522
|
+
const payload = {};
|
|
523
|
+
const getRequestOptions = createAutomationTemplate(
|
|
524
|
+
payload
|
|
525
|
+
);
|
|
526
|
+
const getUrl = (context) => {
|
|
527
|
+
const { url } = getRequestOptions(context);
|
|
528
|
+
return url;
|
|
529
|
+
};
|
|
530
|
+
return {
|
|
531
|
+
getUrl,
|
|
532
|
+
httpMethod: "POST",
|
|
533
|
+
path: "/v1/automation-templates",
|
|
534
|
+
pathParams: {},
|
|
535
|
+
__requestType: null,
|
|
536
|
+
__originalRequestType: null,
|
|
537
|
+
__responseType: null,
|
|
538
|
+
__originalResponseType: null
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
function createDraftAutomationTemplate2() {
|
|
542
|
+
const payload = {};
|
|
543
|
+
const getRequestOptions = createDraftAutomationTemplate(
|
|
544
|
+
payload
|
|
545
|
+
);
|
|
546
|
+
const getUrl = (context) => {
|
|
547
|
+
const { url } = getRequestOptions(context);
|
|
548
|
+
return url;
|
|
549
|
+
};
|
|
550
|
+
return {
|
|
551
|
+
getUrl,
|
|
552
|
+
httpMethod: "POST",
|
|
553
|
+
path: "/v1/automation-templates/drafts",
|
|
554
|
+
pathParams: {},
|
|
555
|
+
__requestType: null,
|
|
556
|
+
__originalRequestType: null,
|
|
557
|
+
__responseType: null,
|
|
558
|
+
__originalResponseType: null
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
function getAutomationTemplate2() {
|
|
562
|
+
const payload = { automationTemplateId: ":automationTemplateId" };
|
|
563
|
+
const getRequestOptions = getAutomationTemplate(
|
|
564
|
+
payload
|
|
565
|
+
);
|
|
566
|
+
const getUrl = (context) => {
|
|
567
|
+
const { url } = getRequestOptions(context);
|
|
568
|
+
return url;
|
|
569
|
+
};
|
|
570
|
+
return {
|
|
571
|
+
getUrl,
|
|
572
|
+
httpMethod: "GET",
|
|
573
|
+
path: "/v1/automation-templates/{automationTemplateId}",
|
|
574
|
+
pathParams: { automationTemplateId: "automationTemplateId" },
|
|
575
|
+
__requestType: null,
|
|
576
|
+
__originalRequestType: null,
|
|
577
|
+
__responseType: null,
|
|
578
|
+
__originalResponseType: null
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
function updateAutomationTemplate2() {
|
|
582
|
+
const payload = {
|
|
583
|
+
automationTemplate: { id: ":automationTemplateId" }
|
|
584
|
+
};
|
|
585
|
+
const getRequestOptions = updateAutomationTemplate(
|
|
586
|
+
payload
|
|
587
|
+
);
|
|
588
|
+
const getUrl = (context) => {
|
|
589
|
+
const { url } = getRequestOptions(context);
|
|
590
|
+
return url;
|
|
591
|
+
};
|
|
592
|
+
return {
|
|
593
|
+
getUrl,
|
|
594
|
+
httpMethod: "PATCH",
|
|
595
|
+
path: "/v1/automation-templates/{automationTemplate.id}",
|
|
596
|
+
pathParams: { automationTemplateId: "automationTemplateId" },
|
|
597
|
+
__requestType: null,
|
|
598
|
+
__originalRequestType: null,
|
|
599
|
+
__responseType: null,
|
|
600
|
+
__originalResponseType: null
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
function updateDraftAutomationTemplate2() {
|
|
604
|
+
const payload = {
|
|
605
|
+
automationTemplate: { id: ":automationTemplateId" }
|
|
606
|
+
};
|
|
607
|
+
const getRequestOptions = updateDraftAutomationTemplate(
|
|
608
|
+
payload
|
|
609
|
+
);
|
|
610
|
+
const getUrl = (context) => {
|
|
611
|
+
const { url } = getRequestOptions(context);
|
|
612
|
+
return url;
|
|
613
|
+
};
|
|
614
|
+
return {
|
|
615
|
+
getUrl,
|
|
616
|
+
httpMethod: "PATCH",
|
|
617
|
+
path: "/v1/automation-templates/drafts/{automationTemplate.id}",
|
|
618
|
+
pathParams: { automationTemplateId: "automationTemplateId" },
|
|
619
|
+
__requestType: null,
|
|
620
|
+
__originalRequestType: null,
|
|
621
|
+
__responseType: null,
|
|
622
|
+
__originalResponseType: null
|
|
623
|
+
};
|
|
624
|
+
}
|
|
625
|
+
function deleteAutomationTemplate2() {
|
|
626
|
+
const payload = { componentId: ":componentId" };
|
|
627
|
+
const getRequestOptions = deleteAutomationTemplate(
|
|
628
|
+
payload
|
|
629
|
+
);
|
|
630
|
+
const getUrl = (context) => {
|
|
631
|
+
const { url } = getRequestOptions(context);
|
|
632
|
+
return url;
|
|
633
|
+
};
|
|
634
|
+
return {
|
|
635
|
+
getUrl,
|
|
636
|
+
httpMethod: "DELETE",
|
|
637
|
+
path: "/v1/automation-templates/{componentId}",
|
|
638
|
+
pathParams: { componentId: "componentId" },
|
|
639
|
+
__requestType: null,
|
|
640
|
+
__originalRequestType: null,
|
|
641
|
+
__responseType: null,
|
|
642
|
+
__originalResponseType: null
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
function resolveAutomationTemplates2() {
|
|
646
|
+
const payload = {};
|
|
647
|
+
const getRequestOptions = resolveAutomationTemplates(
|
|
648
|
+
payload
|
|
649
|
+
);
|
|
650
|
+
const getUrl = (context) => {
|
|
651
|
+
const { url } = getRequestOptions(context);
|
|
652
|
+
return url;
|
|
653
|
+
};
|
|
654
|
+
return {
|
|
655
|
+
getUrl,
|
|
656
|
+
httpMethod: "POST",
|
|
657
|
+
path: "/v1/automation-templates/resolve",
|
|
658
|
+
pathParams: {},
|
|
659
|
+
__requestType: null,
|
|
660
|
+
__originalRequestType: null,
|
|
661
|
+
__responseType: null,
|
|
662
|
+
__originalResponseType: null
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
function queryAutomationTemplatesForApp2() {
|
|
666
|
+
const payload = {};
|
|
667
|
+
const getRequestOptions = queryAutomationTemplatesForApp(
|
|
668
|
+
payload
|
|
669
|
+
);
|
|
670
|
+
const getUrl = (context) => {
|
|
671
|
+
const { url } = getRequestOptions(context);
|
|
672
|
+
return url;
|
|
673
|
+
};
|
|
674
|
+
return {
|
|
675
|
+
getUrl,
|
|
676
|
+
httpMethod: "POST",
|
|
677
|
+
path: "/v1/automation-templates/query-for-app",
|
|
678
|
+
pathParams: {},
|
|
679
|
+
__requestType: null,
|
|
680
|
+
__originalRequestType: null,
|
|
681
|
+
__responseType: null,
|
|
682
|
+
__originalResponseType: null
|
|
683
|
+
};
|
|
684
|
+
}
|
|
685
|
+
function generateTemplateFromAutomation2() {
|
|
686
|
+
const payload = {};
|
|
687
|
+
const getRequestOptions = generateTemplateFromAutomation(
|
|
688
|
+
payload
|
|
689
|
+
);
|
|
690
|
+
const getUrl = (context) => {
|
|
691
|
+
const { url } = getRequestOptions(context);
|
|
692
|
+
return url;
|
|
693
|
+
};
|
|
694
|
+
return {
|
|
695
|
+
getUrl,
|
|
696
|
+
httpMethod: "POST",
|
|
697
|
+
path: "/v1/automation-templates/generate",
|
|
698
|
+
pathParams: {},
|
|
699
|
+
__requestType: null,
|
|
700
|
+
__originalRequestType: null,
|
|
701
|
+
__responseType: null,
|
|
702
|
+
__originalResponseType: null
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
706
|
+
0 && (module.exports = {
|
|
707
|
+
CategoryOriginal,
|
|
708
|
+
CommonSortOrderOriginal,
|
|
709
|
+
DomainOriginal,
|
|
710
|
+
LanguageOriginal,
|
|
711
|
+
OperatorOriginal,
|
|
712
|
+
OriginOriginal,
|
|
713
|
+
SortOrderOriginal,
|
|
714
|
+
StatusOriginal,
|
|
715
|
+
TimeUnitOriginal,
|
|
716
|
+
TypeOriginal,
|
|
717
|
+
WebhookIdentityTypeOriginal,
|
|
718
|
+
createAutomationTemplate,
|
|
719
|
+
createDraftAutomationTemplate,
|
|
720
|
+
deleteAutomationTemplate,
|
|
721
|
+
generateTemplateFromAutomation,
|
|
722
|
+
getAutomationTemplate,
|
|
723
|
+
queryAutomationTemplatesForApp,
|
|
724
|
+
resolveAutomationTemplates,
|
|
725
|
+
updateAutomationTemplate,
|
|
726
|
+
updateDraftAutomationTemplate
|
|
727
|
+
});
|
|
728
|
+
//# sourceMappingURL=meta.js.map
|