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