@wix/auto_sdk_automations_automations-v-2 1.0.3 → 1.0.5
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/{internal/cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts} +223 -567
- package/build/{cjs/src/automations-v2-automation-automations-v-2.universal.d.ts → automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts} +223 -567
- package/build/index.d.mts +202 -0
- package/build/index.d.ts +202 -0
- package/build/index.js +1562 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1498 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.mts} +223 -567
- package/build/{es/src/automations-v2-automation-automations-v-2.universal.d.ts → internal/automations-v2-automation-automations-v-2.universal-BVuQcd6J.d.ts} +223 -567
- package/build/internal/index.d.mts +202 -0
- package/build/internal/index.d.ts +202 -0
- package/build/internal/index.js +1562 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1498 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +1167 -0
- package/build/internal/meta.d.ts +1167 -0
- package/build/internal/meta.js +963 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +920 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +1167 -0
- package/build/meta.d.ts +1167 -0
- package/build/meta.js +963 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +920 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
- package/build/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
- package/build/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
- package/build/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
- package/build/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2222
- package/build/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -275
- package/build/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1024
- package/build/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
- package/build/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
- package/build/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
- package/build/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
- package/build/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2222
- package/build/es/src/automations-v2-automation-automations-v-2.types.js +0 -272
- package/build/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/es/src/automations-v2-automation-automations-v-2.universal.js +0 -981
- package/build/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js +0 -61
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js +0 -666
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js +0 -351
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js +0 -167
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2222
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js +0 -275
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js +0 -1024
- package/build/internal/cjs/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.context.d.ts +0 -37
- package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js +0 -37
- package/build/internal/es/src/automations-v2-automation-automations-v-2.context.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.http.d.ts +0 -74
- package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js +0 -646
- package/build/internal/es/src/automations-v2-automation-automations-v-2.http.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.d.ts +0 -49
- package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js +0 -308
- package/build/internal/es/src/automations-v2-automation-automations-v-2.meta.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.public.d.ts +0 -172
- package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js +0 -126
- package/build/internal/es/src/automations-v2-automation-automations-v-2.public.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.d.ts +0 -2222
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js +0 -272
- package/build/internal/es/src/automations-v2-automation-automations-v-2.types.js.map +0 -1
- package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js +0 -981
- package/build/internal/es/src/automations-v2-automation-automations-v-2.universal.js.map +0 -1
|
@@ -0,0 +1,963 @@
|
|
|
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
|
+
bulkDeleteAutomations: () => bulkDeleteAutomations2,
|
|
24
|
+
copyAutomation: () => copyAutomation2,
|
|
25
|
+
createAutomation: () => createAutomation2,
|
|
26
|
+
createDraftAutomation: () => createDraftAutomation2,
|
|
27
|
+
deleteAutomation: () => deleteAutomation2,
|
|
28
|
+
deleteDraftAutomation: () => deleteDraftAutomation2,
|
|
29
|
+
generatePreinstalledAutomation: () => generatePreinstalledAutomation2,
|
|
30
|
+
getAutomation: () => getAutomation2,
|
|
31
|
+
getAutomationRevision: () => getAutomationRevision2,
|
|
32
|
+
getOrCreateDraftAutomation: () => getOrCreateDraftAutomation2,
|
|
33
|
+
publishDraftAutomation: () => publishDraftAutomation2,
|
|
34
|
+
queryAutomations: () => queryAutomations2,
|
|
35
|
+
queryAutomationsWithDrafts: () => queryAutomationsWithDrafts2,
|
|
36
|
+
updateAutomation: () => updateAutomation2,
|
|
37
|
+
updateDraftAutomation: () => updateDraftAutomation2,
|
|
38
|
+
validateAutomation: () => validateAutomation2,
|
|
39
|
+
validateAutomationById: () => validateAutomationById2
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(meta_exports);
|
|
42
|
+
|
|
43
|
+
// src/automations-v2-automation-automations-v-2.http.ts
|
|
44
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
45
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
46
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
47
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
48
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
49
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
50
|
+
function resolveWixAutomationsV2AutomationRevisionsServiceUrl(opts) {
|
|
51
|
+
const domainToMappings = {
|
|
52
|
+
"manage._base_domain_": [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/automations-service",
|
|
55
|
+
destPath: ""
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/_api/automations-service",
|
|
59
|
+
destPath: "/api"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"platform.rise.ai": [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/v2/automations",
|
|
65
|
+
destPath: ""
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"www.wixapis.com": [
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/automations-service",
|
|
71
|
+
destPath: ""
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"*.dev.wix-code.com": [
|
|
75
|
+
{
|
|
76
|
+
srcPath: "/automations-service",
|
|
77
|
+
destPath: ""
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
_: [
|
|
81
|
+
{
|
|
82
|
+
srcPath: "/automations-service",
|
|
83
|
+
destPath: ""
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
};
|
|
87
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
88
|
+
}
|
|
89
|
+
function resolveWixAutomationsV2AutomationsServiceUrl(opts) {
|
|
90
|
+
const domainToMappings = {
|
|
91
|
+
"manage._base_domain_": [
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/automations-service",
|
|
94
|
+
destPath: ""
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
srcPath: "/_api/automations-service",
|
|
98
|
+
destPath: "/api"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"platform.rise.ai": [
|
|
102
|
+
{
|
|
103
|
+
srcPath: "/v2/automations",
|
|
104
|
+
destPath: ""
|
|
105
|
+
}
|
|
106
|
+
],
|
|
107
|
+
"www.wixapis.com": [
|
|
108
|
+
{
|
|
109
|
+
srcPath: "/automations-service",
|
|
110
|
+
destPath: ""
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"*.dev.wix-code.com": [
|
|
114
|
+
{
|
|
115
|
+
srcPath: "/automations-service",
|
|
116
|
+
destPath: ""
|
|
117
|
+
}
|
|
118
|
+
],
|
|
119
|
+
_: [
|
|
120
|
+
{
|
|
121
|
+
srcPath: "/automations-service",
|
|
122
|
+
destPath: ""
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
127
|
+
}
|
|
128
|
+
var PACKAGE_NAME = "@wix/auto_sdk_automations_automations-v-2";
|
|
129
|
+
function createAutomation(payload) {
|
|
130
|
+
function __createAutomation({ host }) {
|
|
131
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
132
|
+
{
|
|
133
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
134
|
+
paths: [
|
|
135
|
+
{ path: "automation.createdDate" },
|
|
136
|
+
{ path: "automation.updatedDate" },
|
|
137
|
+
{ path: "automation.draftUpdatedDate" }
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
]);
|
|
141
|
+
const metadata = {
|
|
142
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
143
|
+
method: "POST",
|
|
144
|
+
methodFqn: "wix.automations.v2.AutomationsService.CreateAutomation",
|
|
145
|
+
packageName: PACKAGE_NAME,
|
|
146
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
147
|
+
protoPath: "/v2/automations",
|
|
148
|
+
data: serializedData,
|
|
149
|
+
host
|
|
150
|
+
}),
|
|
151
|
+
data: serializedData,
|
|
152
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
153
|
+
{
|
|
154
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
155
|
+
paths: [
|
|
156
|
+
{ path: "automation.createdDate" },
|
|
157
|
+
{ path: "automation.updatedDate" },
|
|
158
|
+
{ path: "automation.draftUpdatedDate" }
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
])
|
|
162
|
+
};
|
|
163
|
+
return metadata;
|
|
164
|
+
}
|
|
165
|
+
return __createAutomation;
|
|
166
|
+
}
|
|
167
|
+
function getAutomation(payload) {
|
|
168
|
+
function __getAutomation({ host }) {
|
|
169
|
+
const metadata = {
|
|
170
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
171
|
+
method: "GET",
|
|
172
|
+
methodFqn: "wix.automations.v2.AutomationsService.GetAutomation",
|
|
173
|
+
packageName: PACKAGE_NAME,
|
|
174
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
175
|
+
protoPath: "/v2/automations/{automationId}",
|
|
176
|
+
data: payload,
|
|
177
|
+
host
|
|
178
|
+
}),
|
|
179
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
180
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
181
|
+
{
|
|
182
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
183
|
+
paths: [
|
|
184
|
+
{ path: "automation.createdDate" },
|
|
185
|
+
{ path: "automation.updatedDate" },
|
|
186
|
+
{ path: "automation.draftUpdatedDate" }
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
])
|
|
190
|
+
};
|
|
191
|
+
return metadata;
|
|
192
|
+
}
|
|
193
|
+
return __getAutomation;
|
|
194
|
+
}
|
|
195
|
+
function updateAutomation(payload) {
|
|
196
|
+
function __updateAutomation({ host }) {
|
|
197
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
198
|
+
{
|
|
199
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
200
|
+
paths: [{ path: "fieldMask" }]
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
204
|
+
paths: [
|
|
205
|
+
{ path: "automation.createdDate" },
|
|
206
|
+
{ path: "automation.updatedDate" },
|
|
207
|
+
{ path: "automation.draftUpdatedDate" }
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
]);
|
|
211
|
+
const metadata = {
|
|
212
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
213
|
+
method: "PATCH",
|
|
214
|
+
methodFqn: "wix.automations.v2.AutomationsService.UpdateAutomation",
|
|
215
|
+
packageName: PACKAGE_NAME,
|
|
216
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
217
|
+
protoPath: "/v2/automations/{automation.id}",
|
|
218
|
+
data: serializedData,
|
|
219
|
+
host
|
|
220
|
+
}),
|
|
221
|
+
data: serializedData,
|
|
222
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
223
|
+
{
|
|
224
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
225
|
+
paths: [
|
|
226
|
+
{ path: "automation.createdDate" },
|
|
227
|
+
{ path: "automation.updatedDate" },
|
|
228
|
+
{ path: "automation.draftUpdatedDate" }
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
])
|
|
232
|
+
};
|
|
233
|
+
return metadata;
|
|
234
|
+
}
|
|
235
|
+
return __updateAutomation;
|
|
236
|
+
}
|
|
237
|
+
function deleteAutomation(payload) {
|
|
238
|
+
function __deleteAutomation({ host }) {
|
|
239
|
+
const metadata = {
|
|
240
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
241
|
+
method: "DELETE",
|
|
242
|
+
methodFqn: "wix.automations.v2.AutomationsService.DeleteAutomation",
|
|
243
|
+
packageName: PACKAGE_NAME,
|
|
244
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
245
|
+
protoPath: "/v2/automations/{automationId}",
|
|
246
|
+
data: payload,
|
|
247
|
+
host
|
|
248
|
+
}),
|
|
249
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
250
|
+
};
|
|
251
|
+
return metadata;
|
|
252
|
+
}
|
|
253
|
+
return __deleteAutomation;
|
|
254
|
+
}
|
|
255
|
+
function bulkDeleteAutomations(payload) {
|
|
256
|
+
function __bulkDeleteAutomations({ host }) {
|
|
257
|
+
const metadata = {
|
|
258
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
259
|
+
method: "POST",
|
|
260
|
+
methodFqn: "wix.automations.v2.AutomationsService.BulkDeleteAutomations",
|
|
261
|
+
packageName: PACKAGE_NAME,
|
|
262
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
263
|
+
protoPath: "/v2/bulk/automations/delete",
|
|
264
|
+
data: payload,
|
|
265
|
+
host
|
|
266
|
+
}),
|
|
267
|
+
data: payload
|
|
268
|
+
};
|
|
269
|
+
return metadata;
|
|
270
|
+
}
|
|
271
|
+
return __bulkDeleteAutomations;
|
|
272
|
+
}
|
|
273
|
+
function generatePreinstalledAutomation(payload) {
|
|
274
|
+
function __generatePreinstalledAutomation({ host }) {
|
|
275
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
276
|
+
{
|
|
277
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
278
|
+
paths: [
|
|
279
|
+
{ path: "automation.createdDate" },
|
|
280
|
+
{ path: "automation.updatedDate" },
|
|
281
|
+
{ path: "automation.draftUpdatedDate" }
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
]);
|
|
285
|
+
const metadata = {
|
|
286
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
287
|
+
method: "POST",
|
|
288
|
+
methodFqn: "wix.automations.v2.AutomationsService.GeneratePreinstalledAutomation",
|
|
289
|
+
packageName: PACKAGE_NAME,
|
|
290
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
291
|
+
protoPath: "/v2/preinstalled-automation/generate",
|
|
292
|
+
data: serializedData,
|
|
293
|
+
host
|
|
294
|
+
}),
|
|
295
|
+
data: serializedData,
|
|
296
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
297
|
+
{
|
|
298
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
299
|
+
paths: [
|
|
300
|
+
{ path: "automation.createdDate" },
|
|
301
|
+
{ path: "automation.updatedDate" },
|
|
302
|
+
{ path: "automation.draftUpdatedDate" }
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
])
|
|
306
|
+
};
|
|
307
|
+
return metadata;
|
|
308
|
+
}
|
|
309
|
+
return __generatePreinstalledAutomation;
|
|
310
|
+
}
|
|
311
|
+
function queryAutomations(payload) {
|
|
312
|
+
function __queryAutomations({ host }) {
|
|
313
|
+
const metadata = {
|
|
314
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
315
|
+
method: "POST",
|
|
316
|
+
methodFqn: "wix.automations.v2.AutomationsService.QueryAutomations",
|
|
317
|
+
packageName: PACKAGE_NAME,
|
|
318
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
319
|
+
protoPath: "/v2/automations/query",
|
|
320
|
+
data: payload,
|
|
321
|
+
host
|
|
322
|
+
}),
|
|
323
|
+
data: payload,
|
|
324
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
325
|
+
{
|
|
326
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
327
|
+
paths: [
|
|
328
|
+
{ path: "automations.createdDate" },
|
|
329
|
+
{ path: "automations.updatedDate" },
|
|
330
|
+
{ path: "automations.draftUpdatedDate" }
|
|
331
|
+
]
|
|
332
|
+
}
|
|
333
|
+
])
|
|
334
|
+
};
|
|
335
|
+
return metadata;
|
|
336
|
+
}
|
|
337
|
+
return __queryAutomations;
|
|
338
|
+
}
|
|
339
|
+
function copyAutomation(payload) {
|
|
340
|
+
function __copyAutomation({ host }) {
|
|
341
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
342
|
+
{
|
|
343
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
344
|
+
paths: [
|
|
345
|
+
{ path: "automation.createdDate" },
|
|
346
|
+
{ path: "automation.updatedDate" },
|
|
347
|
+
{ path: "automation.draftUpdatedDate" }
|
|
348
|
+
]
|
|
349
|
+
}
|
|
350
|
+
]);
|
|
351
|
+
const metadata = {
|
|
352
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
353
|
+
method: "POST",
|
|
354
|
+
methodFqn: "wix.automations.v2.AutomationsService.CopyAutomation",
|
|
355
|
+
packageName: PACKAGE_NAME,
|
|
356
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
357
|
+
protoPath: "/v2/automations/{automationId}/copy",
|
|
358
|
+
data: serializedData,
|
|
359
|
+
host
|
|
360
|
+
}),
|
|
361
|
+
data: serializedData,
|
|
362
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
363
|
+
{
|
|
364
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
365
|
+
paths: [
|
|
366
|
+
{ path: "automation.createdDate" },
|
|
367
|
+
{ path: "automation.updatedDate" },
|
|
368
|
+
{ path: "automation.draftUpdatedDate" }
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
])
|
|
372
|
+
};
|
|
373
|
+
return metadata;
|
|
374
|
+
}
|
|
375
|
+
return __copyAutomation;
|
|
376
|
+
}
|
|
377
|
+
function createDraftAutomation(payload) {
|
|
378
|
+
function __createDraftAutomation({ host }) {
|
|
379
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
380
|
+
{
|
|
381
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
382
|
+
paths: [
|
|
383
|
+
{ path: "automation.createdDate" },
|
|
384
|
+
{ path: "automation.updatedDate" },
|
|
385
|
+
{ path: "automation.draftUpdatedDate" }
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
]);
|
|
389
|
+
const metadata = {
|
|
390
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
391
|
+
method: "POST",
|
|
392
|
+
methodFqn: "wix.automations.v2.AutomationsService.CreateDraftAutomation",
|
|
393
|
+
packageName: PACKAGE_NAME,
|
|
394
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
395
|
+
protoPath: "/v2/automations/drafts",
|
|
396
|
+
data: serializedData,
|
|
397
|
+
host
|
|
398
|
+
}),
|
|
399
|
+
data: serializedData,
|
|
400
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
401
|
+
{
|
|
402
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
403
|
+
paths: [
|
|
404
|
+
{ path: "automation.createdDate" },
|
|
405
|
+
{ path: "automation.updatedDate" },
|
|
406
|
+
{ path: "automation.draftUpdatedDate" }
|
|
407
|
+
]
|
|
408
|
+
}
|
|
409
|
+
])
|
|
410
|
+
};
|
|
411
|
+
return metadata;
|
|
412
|
+
}
|
|
413
|
+
return __createDraftAutomation;
|
|
414
|
+
}
|
|
415
|
+
function getOrCreateDraftAutomation(payload) {
|
|
416
|
+
function __getOrCreateDraftAutomation({ host }) {
|
|
417
|
+
const metadata = {
|
|
418
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
419
|
+
method: "POST",
|
|
420
|
+
methodFqn: "wix.automations.v2.AutomationsService.GetOrCreateDraftAutomation",
|
|
421
|
+
packageName: PACKAGE_NAME,
|
|
422
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
423
|
+
protoPath: "/v2/automations/drafts/get-or-create/original-automation-id/{originalAutomationId}",
|
|
424
|
+
data: payload,
|
|
425
|
+
host
|
|
426
|
+
}),
|
|
427
|
+
data: payload,
|
|
428
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
429
|
+
{
|
|
430
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
431
|
+
paths: [
|
|
432
|
+
{ path: "automation.createdDate" },
|
|
433
|
+
{ path: "automation.updatedDate" },
|
|
434
|
+
{ path: "automation.draftUpdatedDate" }
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
])
|
|
438
|
+
};
|
|
439
|
+
return metadata;
|
|
440
|
+
}
|
|
441
|
+
return __getOrCreateDraftAutomation;
|
|
442
|
+
}
|
|
443
|
+
function updateDraftAutomation(payload) {
|
|
444
|
+
function __updateDraftAutomation({ host }) {
|
|
445
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
446
|
+
{
|
|
447
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
448
|
+
paths: [{ path: "fieldMask" }]
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
452
|
+
paths: [
|
|
453
|
+
{ path: "automation.createdDate" },
|
|
454
|
+
{ path: "automation.updatedDate" },
|
|
455
|
+
{ path: "automation.draftUpdatedDate" }
|
|
456
|
+
]
|
|
457
|
+
}
|
|
458
|
+
]);
|
|
459
|
+
const metadata = {
|
|
460
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
461
|
+
method: "PATCH",
|
|
462
|
+
methodFqn: "wix.automations.v2.AutomationsService.UpdateDraftAutomation",
|
|
463
|
+
packageName: PACKAGE_NAME,
|
|
464
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
465
|
+
protoPath: "/v2/automations/drafts/{automation.id}",
|
|
466
|
+
data: serializedData,
|
|
467
|
+
host
|
|
468
|
+
}),
|
|
469
|
+
data: serializedData,
|
|
470
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
471
|
+
{
|
|
472
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
473
|
+
paths: [
|
|
474
|
+
{ path: "automation.createdDate" },
|
|
475
|
+
{ path: "automation.updatedDate" },
|
|
476
|
+
{ path: "automation.draftUpdatedDate" }
|
|
477
|
+
]
|
|
478
|
+
}
|
|
479
|
+
])
|
|
480
|
+
};
|
|
481
|
+
return metadata;
|
|
482
|
+
}
|
|
483
|
+
return __updateDraftAutomation;
|
|
484
|
+
}
|
|
485
|
+
function queryAutomationsWithDrafts(payload) {
|
|
486
|
+
function __queryAutomationsWithDrafts({ host }) {
|
|
487
|
+
const metadata = {
|
|
488
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
489
|
+
method: "POST",
|
|
490
|
+
methodFqn: "wix.automations.v2.AutomationsService.QueryAutomationsWithDrafts",
|
|
491
|
+
packageName: PACKAGE_NAME,
|
|
492
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
493
|
+
protoPath: "/v2/automations/query-with-drafts",
|
|
494
|
+
data: payload,
|
|
495
|
+
host
|
|
496
|
+
}),
|
|
497
|
+
data: payload,
|
|
498
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
499
|
+
{
|
|
500
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
501
|
+
paths: [
|
|
502
|
+
{ path: "automations.createdDate" },
|
|
503
|
+
{ path: "automations.updatedDate" },
|
|
504
|
+
{ path: "automations.draftUpdatedDate" }
|
|
505
|
+
]
|
|
506
|
+
}
|
|
507
|
+
])
|
|
508
|
+
};
|
|
509
|
+
return metadata;
|
|
510
|
+
}
|
|
511
|
+
return __queryAutomationsWithDrafts;
|
|
512
|
+
}
|
|
513
|
+
function deleteDraftAutomation(payload) {
|
|
514
|
+
function __deleteDraftAutomation({ host }) {
|
|
515
|
+
const metadata = {
|
|
516
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
517
|
+
method: "DELETE",
|
|
518
|
+
methodFqn: "wix.automations.v2.AutomationsService.DeleteDraftAutomation",
|
|
519
|
+
packageName: PACKAGE_NAME,
|
|
520
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
521
|
+
protoPath: "/v2/automations/drafts/{automationId}",
|
|
522
|
+
data: payload,
|
|
523
|
+
host
|
|
524
|
+
}),
|
|
525
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
526
|
+
};
|
|
527
|
+
return metadata;
|
|
528
|
+
}
|
|
529
|
+
return __deleteDraftAutomation;
|
|
530
|
+
}
|
|
531
|
+
function publishDraftAutomation(payload) {
|
|
532
|
+
function __publishDraftAutomation({ host }) {
|
|
533
|
+
const metadata = {
|
|
534
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
535
|
+
method: "POST",
|
|
536
|
+
methodFqn: "wix.automations.v2.AutomationsService.PublishDraftAutomation",
|
|
537
|
+
packageName: PACKAGE_NAME,
|
|
538
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
539
|
+
protoPath: "/v2/automations/drafts/{automationId}/publish",
|
|
540
|
+
data: payload,
|
|
541
|
+
host
|
|
542
|
+
}),
|
|
543
|
+
data: payload,
|
|
544
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
545
|
+
{
|
|
546
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
547
|
+
paths: [
|
|
548
|
+
{ path: "automation.createdDate" },
|
|
549
|
+
{ path: "automation.updatedDate" },
|
|
550
|
+
{ path: "automation.draftUpdatedDate" }
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
])
|
|
554
|
+
};
|
|
555
|
+
return metadata;
|
|
556
|
+
}
|
|
557
|
+
return __publishDraftAutomation;
|
|
558
|
+
}
|
|
559
|
+
function validateAutomation(payload) {
|
|
560
|
+
function __validateAutomation({ host }) {
|
|
561
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
562
|
+
{
|
|
563
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
564
|
+
paths: [
|
|
565
|
+
{ path: "automation.createdDate" },
|
|
566
|
+
{ path: "automation.updatedDate" },
|
|
567
|
+
{ path: "automation.draftUpdatedDate" }
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
]);
|
|
571
|
+
const metadata = {
|
|
572
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
573
|
+
method: "POST",
|
|
574
|
+
methodFqn: "wix.automations.v2.AutomationsService.ValidateAutomation",
|
|
575
|
+
packageName: PACKAGE_NAME,
|
|
576
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
577
|
+
protoPath: "/v2/automations/validate",
|
|
578
|
+
data: serializedData,
|
|
579
|
+
host
|
|
580
|
+
}),
|
|
581
|
+
data: serializedData
|
|
582
|
+
};
|
|
583
|
+
return metadata;
|
|
584
|
+
}
|
|
585
|
+
return __validateAutomation;
|
|
586
|
+
}
|
|
587
|
+
function validateAutomationById(payload) {
|
|
588
|
+
function __validateAutomationById({ host }) {
|
|
589
|
+
const metadata = {
|
|
590
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
591
|
+
method: "POST",
|
|
592
|
+
methodFqn: "wix.automations.v2.AutomationsService.ValidateAutomationById",
|
|
593
|
+
packageName: PACKAGE_NAME,
|
|
594
|
+
url: resolveWixAutomationsV2AutomationsServiceUrl({
|
|
595
|
+
protoPath: "/v2/automations/{automationId}/validate",
|
|
596
|
+
data: payload,
|
|
597
|
+
host
|
|
598
|
+
}),
|
|
599
|
+
data: payload
|
|
600
|
+
};
|
|
601
|
+
return metadata;
|
|
602
|
+
}
|
|
603
|
+
return __validateAutomationById;
|
|
604
|
+
}
|
|
605
|
+
function getAutomationRevision(payload) {
|
|
606
|
+
function __getAutomationRevision({ host }) {
|
|
607
|
+
const metadata = {
|
|
608
|
+
entityFqdn: "wix.automations.v2.automation",
|
|
609
|
+
method: "GET",
|
|
610
|
+
methodFqn: "wix.automations.v2.AutomationRevisionsService.GetAutomationRevision",
|
|
611
|
+
packageName: PACKAGE_NAME,
|
|
612
|
+
url: resolveWixAutomationsV2AutomationRevisionsServiceUrl({
|
|
613
|
+
protoPath: "/v1/automation-revisions/{automationId}",
|
|
614
|
+
data: payload,
|
|
615
|
+
host
|
|
616
|
+
}),
|
|
617
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
618
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
619
|
+
{
|
|
620
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
621
|
+
paths: [
|
|
622
|
+
{ path: "automation.createdDate" },
|
|
623
|
+
{ path: "automation.updatedDate" },
|
|
624
|
+
{ path: "automation.draftUpdatedDate" }
|
|
625
|
+
]
|
|
626
|
+
}
|
|
627
|
+
])
|
|
628
|
+
};
|
|
629
|
+
return metadata;
|
|
630
|
+
}
|
|
631
|
+
return __getAutomationRevision;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
// src/automations-v2-automation-automations-v-2.meta.ts
|
|
635
|
+
function createAutomation2() {
|
|
636
|
+
const payload = {};
|
|
637
|
+
const getRequestOptions = createAutomation(payload);
|
|
638
|
+
const getUrl = (context) => {
|
|
639
|
+
const { url } = getRequestOptions(context);
|
|
640
|
+
return url;
|
|
641
|
+
};
|
|
642
|
+
return {
|
|
643
|
+
getUrl,
|
|
644
|
+
httpMethod: "POST",
|
|
645
|
+
path: "/v2/automations",
|
|
646
|
+
pathParams: {},
|
|
647
|
+
__requestType: null,
|
|
648
|
+
__originalRequestType: null,
|
|
649
|
+
__responseType: null,
|
|
650
|
+
__originalResponseType: null
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
function getAutomation2() {
|
|
654
|
+
const payload = { automationId: ":automationId" };
|
|
655
|
+
const getRequestOptions = getAutomation(payload);
|
|
656
|
+
const getUrl = (context) => {
|
|
657
|
+
const { url } = getRequestOptions(context);
|
|
658
|
+
return url;
|
|
659
|
+
};
|
|
660
|
+
return {
|
|
661
|
+
getUrl,
|
|
662
|
+
httpMethod: "GET",
|
|
663
|
+
path: "/v2/automations/{automationId}",
|
|
664
|
+
pathParams: { automationId: "automationId" },
|
|
665
|
+
__requestType: null,
|
|
666
|
+
__originalRequestType: null,
|
|
667
|
+
__responseType: null,
|
|
668
|
+
__originalResponseType: null
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
function updateAutomation2() {
|
|
672
|
+
const payload = { automation: { id: ":automationId" } };
|
|
673
|
+
const getRequestOptions = updateAutomation(payload);
|
|
674
|
+
const getUrl = (context) => {
|
|
675
|
+
const { url } = getRequestOptions(context);
|
|
676
|
+
return url;
|
|
677
|
+
};
|
|
678
|
+
return {
|
|
679
|
+
getUrl,
|
|
680
|
+
httpMethod: "PATCH",
|
|
681
|
+
path: "/v2/automations/{automation.id}",
|
|
682
|
+
pathParams: { automationId: "automationId" },
|
|
683
|
+
__requestType: null,
|
|
684
|
+
__originalRequestType: null,
|
|
685
|
+
__responseType: null,
|
|
686
|
+
__originalResponseType: null
|
|
687
|
+
};
|
|
688
|
+
}
|
|
689
|
+
function deleteAutomation2() {
|
|
690
|
+
const payload = { automationId: ":automationId" };
|
|
691
|
+
const getRequestOptions = deleteAutomation(payload);
|
|
692
|
+
const getUrl = (context) => {
|
|
693
|
+
const { url } = getRequestOptions(context);
|
|
694
|
+
return url;
|
|
695
|
+
};
|
|
696
|
+
return {
|
|
697
|
+
getUrl,
|
|
698
|
+
httpMethod: "DELETE",
|
|
699
|
+
path: "/v2/automations/{automationId}",
|
|
700
|
+
pathParams: { automationId: "automationId" },
|
|
701
|
+
__requestType: null,
|
|
702
|
+
__originalRequestType: null,
|
|
703
|
+
__responseType: null,
|
|
704
|
+
__originalResponseType: null
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
function bulkDeleteAutomations2() {
|
|
708
|
+
const payload = {};
|
|
709
|
+
const getRequestOptions = bulkDeleteAutomations(payload);
|
|
710
|
+
const getUrl = (context) => {
|
|
711
|
+
const { url } = getRequestOptions(context);
|
|
712
|
+
return url;
|
|
713
|
+
};
|
|
714
|
+
return {
|
|
715
|
+
getUrl,
|
|
716
|
+
httpMethod: "POST",
|
|
717
|
+
path: "/v2/bulk/automations/delete",
|
|
718
|
+
pathParams: {},
|
|
719
|
+
__requestType: null,
|
|
720
|
+
__originalRequestType: null,
|
|
721
|
+
__responseType: null,
|
|
722
|
+
__originalResponseType: null
|
|
723
|
+
};
|
|
724
|
+
}
|
|
725
|
+
function generatePreinstalledAutomation2() {
|
|
726
|
+
const payload = {};
|
|
727
|
+
const getRequestOptions = generatePreinstalledAutomation(
|
|
728
|
+
payload
|
|
729
|
+
);
|
|
730
|
+
const getUrl = (context) => {
|
|
731
|
+
const { url } = getRequestOptions(context);
|
|
732
|
+
return url;
|
|
733
|
+
};
|
|
734
|
+
return {
|
|
735
|
+
getUrl,
|
|
736
|
+
httpMethod: "POST",
|
|
737
|
+
path: "/v2/preinstalled-automation/generate",
|
|
738
|
+
pathParams: {},
|
|
739
|
+
__requestType: null,
|
|
740
|
+
__originalRequestType: null,
|
|
741
|
+
__responseType: null,
|
|
742
|
+
__originalResponseType: null
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function queryAutomations2() {
|
|
746
|
+
const payload = {};
|
|
747
|
+
const getRequestOptions = queryAutomations(payload);
|
|
748
|
+
const getUrl = (context) => {
|
|
749
|
+
const { url } = getRequestOptions(context);
|
|
750
|
+
return url;
|
|
751
|
+
};
|
|
752
|
+
return {
|
|
753
|
+
getUrl,
|
|
754
|
+
httpMethod: "POST",
|
|
755
|
+
path: "/v2/automations/query",
|
|
756
|
+
pathParams: {},
|
|
757
|
+
__requestType: null,
|
|
758
|
+
__originalRequestType: null,
|
|
759
|
+
__responseType: null,
|
|
760
|
+
__originalResponseType: null
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
function copyAutomation2() {
|
|
764
|
+
const payload = { automationId: ":automationId" };
|
|
765
|
+
const getRequestOptions = copyAutomation(payload);
|
|
766
|
+
const getUrl = (context) => {
|
|
767
|
+
const { url } = getRequestOptions(context);
|
|
768
|
+
return url;
|
|
769
|
+
};
|
|
770
|
+
return {
|
|
771
|
+
getUrl,
|
|
772
|
+
httpMethod: "POST",
|
|
773
|
+
path: "/v2/automations/{automationId}/copy",
|
|
774
|
+
pathParams: { automationId: "automationId" },
|
|
775
|
+
__requestType: null,
|
|
776
|
+
__originalRequestType: null,
|
|
777
|
+
__responseType: null,
|
|
778
|
+
__originalResponseType: null
|
|
779
|
+
};
|
|
780
|
+
}
|
|
781
|
+
function createDraftAutomation2() {
|
|
782
|
+
const payload = {};
|
|
783
|
+
const getRequestOptions = createDraftAutomation(payload);
|
|
784
|
+
const getUrl = (context) => {
|
|
785
|
+
const { url } = getRequestOptions(context);
|
|
786
|
+
return url;
|
|
787
|
+
};
|
|
788
|
+
return {
|
|
789
|
+
getUrl,
|
|
790
|
+
httpMethod: "POST",
|
|
791
|
+
path: "/v2/automations/drafts",
|
|
792
|
+
pathParams: {},
|
|
793
|
+
__requestType: null,
|
|
794
|
+
__originalRequestType: null,
|
|
795
|
+
__responseType: null,
|
|
796
|
+
__originalResponseType: null
|
|
797
|
+
};
|
|
798
|
+
}
|
|
799
|
+
function getOrCreateDraftAutomation2() {
|
|
800
|
+
const payload = { originalAutomationId: ":originalAutomationId" };
|
|
801
|
+
const getRequestOptions = getOrCreateDraftAutomation(payload);
|
|
802
|
+
const getUrl = (context) => {
|
|
803
|
+
const { url } = getRequestOptions(context);
|
|
804
|
+
return url;
|
|
805
|
+
};
|
|
806
|
+
return {
|
|
807
|
+
getUrl,
|
|
808
|
+
httpMethod: "POST",
|
|
809
|
+
path: "/v2/automations/drafts/get-or-create/original-automation-id/{originalAutomationId}",
|
|
810
|
+
pathParams: { originalAutomationId: "originalAutomationId" },
|
|
811
|
+
__requestType: null,
|
|
812
|
+
__originalRequestType: null,
|
|
813
|
+
__responseType: null,
|
|
814
|
+
__originalResponseType: null
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
function updateDraftAutomation2() {
|
|
818
|
+
const payload = { automation: { id: ":automationId" } };
|
|
819
|
+
const getRequestOptions = updateDraftAutomation(payload);
|
|
820
|
+
const getUrl = (context) => {
|
|
821
|
+
const { url } = getRequestOptions(context);
|
|
822
|
+
return url;
|
|
823
|
+
};
|
|
824
|
+
return {
|
|
825
|
+
getUrl,
|
|
826
|
+
httpMethod: "PATCH",
|
|
827
|
+
path: "/v2/automations/drafts/{automation.id}",
|
|
828
|
+
pathParams: { automationId: "automationId" },
|
|
829
|
+
__requestType: null,
|
|
830
|
+
__originalRequestType: null,
|
|
831
|
+
__responseType: null,
|
|
832
|
+
__originalResponseType: null
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
function queryAutomationsWithDrafts2() {
|
|
836
|
+
const payload = {};
|
|
837
|
+
const getRequestOptions = queryAutomationsWithDrafts(payload);
|
|
838
|
+
const getUrl = (context) => {
|
|
839
|
+
const { url } = getRequestOptions(context);
|
|
840
|
+
return url;
|
|
841
|
+
};
|
|
842
|
+
return {
|
|
843
|
+
getUrl,
|
|
844
|
+
httpMethod: "POST",
|
|
845
|
+
path: "/v2/automations/query-with-drafts",
|
|
846
|
+
pathParams: {},
|
|
847
|
+
__requestType: null,
|
|
848
|
+
__originalRequestType: null,
|
|
849
|
+
__responseType: null,
|
|
850
|
+
__originalResponseType: null
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
function deleteDraftAutomation2() {
|
|
854
|
+
const payload = { automationId: ":automationId" };
|
|
855
|
+
const getRequestOptions = deleteDraftAutomation(payload);
|
|
856
|
+
const getUrl = (context) => {
|
|
857
|
+
const { url } = getRequestOptions(context);
|
|
858
|
+
return url;
|
|
859
|
+
};
|
|
860
|
+
return {
|
|
861
|
+
getUrl,
|
|
862
|
+
httpMethod: "DELETE",
|
|
863
|
+
path: "/v2/automations/drafts/{automationId}",
|
|
864
|
+
pathParams: { automationId: "automationId" },
|
|
865
|
+
__requestType: null,
|
|
866
|
+
__originalRequestType: null,
|
|
867
|
+
__responseType: null,
|
|
868
|
+
__originalResponseType: null
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
function publishDraftAutomation2() {
|
|
872
|
+
const payload = { automationId: ":automationId" };
|
|
873
|
+
const getRequestOptions = publishDraftAutomation(payload);
|
|
874
|
+
const getUrl = (context) => {
|
|
875
|
+
const { url } = getRequestOptions(context);
|
|
876
|
+
return url;
|
|
877
|
+
};
|
|
878
|
+
return {
|
|
879
|
+
getUrl,
|
|
880
|
+
httpMethod: "POST",
|
|
881
|
+
path: "/v2/automations/drafts/{automationId}/publish",
|
|
882
|
+
pathParams: { automationId: "automationId" },
|
|
883
|
+
__requestType: null,
|
|
884
|
+
__originalRequestType: null,
|
|
885
|
+
__responseType: null,
|
|
886
|
+
__originalResponseType: null
|
|
887
|
+
};
|
|
888
|
+
}
|
|
889
|
+
function validateAutomation2() {
|
|
890
|
+
const payload = {};
|
|
891
|
+
const getRequestOptions = validateAutomation(payload);
|
|
892
|
+
const getUrl = (context) => {
|
|
893
|
+
const { url } = getRequestOptions(context);
|
|
894
|
+
return url;
|
|
895
|
+
};
|
|
896
|
+
return {
|
|
897
|
+
getUrl,
|
|
898
|
+
httpMethod: "POST",
|
|
899
|
+
path: "/v2/automations/validate",
|
|
900
|
+
pathParams: {},
|
|
901
|
+
__requestType: null,
|
|
902
|
+
__originalRequestType: null,
|
|
903
|
+
__responseType: null,
|
|
904
|
+
__originalResponseType: null
|
|
905
|
+
};
|
|
906
|
+
}
|
|
907
|
+
function validateAutomationById2() {
|
|
908
|
+
const payload = { automationId: ":automationId" };
|
|
909
|
+
const getRequestOptions = validateAutomationById(payload);
|
|
910
|
+
const getUrl = (context) => {
|
|
911
|
+
const { url } = getRequestOptions(context);
|
|
912
|
+
return url;
|
|
913
|
+
};
|
|
914
|
+
return {
|
|
915
|
+
getUrl,
|
|
916
|
+
httpMethod: "POST",
|
|
917
|
+
path: "/v2/automations/{automationId}/validate",
|
|
918
|
+
pathParams: { automationId: "automationId" },
|
|
919
|
+
__requestType: null,
|
|
920
|
+
__originalRequestType: null,
|
|
921
|
+
__responseType: null,
|
|
922
|
+
__originalResponseType: null
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
function getAutomationRevision2() {
|
|
926
|
+
const payload = { automationId: ":automationId" };
|
|
927
|
+
const getRequestOptions = getAutomationRevision(payload);
|
|
928
|
+
const getUrl = (context) => {
|
|
929
|
+
const { url } = getRequestOptions(context);
|
|
930
|
+
return url;
|
|
931
|
+
};
|
|
932
|
+
return {
|
|
933
|
+
getUrl,
|
|
934
|
+
httpMethod: "GET",
|
|
935
|
+
path: "/v1/automation-revisions/{automationId}",
|
|
936
|
+
pathParams: { automationId: "automationId" },
|
|
937
|
+
__requestType: null,
|
|
938
|
+
__originalRequestType: null,
|
|
939
|
+
__responseType: null,
|
|
940
|
+
__originalResponseType: null
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
944
|
+
0 && (module.exports = {
|
|
945
|
+
bulkDeleteAutomations,
|
|
946
|
+
copyAutomation,
|
|
947
|
+
createAutomation,
|
|
948
|
+
createDraftAutomation,
|
|
949
|
+
deleteAutomation,
|
|
950
|
+
deleteDraftAutomation,
|
|
951
|
+
generatePreinstalledAutomation,
|
|
952
|
+
getAutomation,
|
|
953
|
+
getAutomationRevision,
|
|
954
|
+
getOrCreateDraftAutomation,
|
|
955
|
+
publishDraftAutomation,
|
|
956
|
+
queryAutomations,
|
|
957
|
+
queryAutomationsWithDrafts,
|
|
958
|
+
updateAutomation,
|
|
959
|
+
updateDraftAutomation,
|
|
960
|
+
validateAutomation,
|
|
961
|
+
validateAutomationById
|
|
962
|
+
});
|
|
963
|
+
//# sourceMappingURL=meta.js.map
|