@wix/auto_sdk_stores_customizations-v-3 1.0.16 → 1.0.17
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/index.d.mts +154 -0
- package/build/index.d.ts +154 -0
- package/build/index.js +1389 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1346 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/index.d.mts +154 -0
- package/build/internal/index.d.ts +154 -0
- package/build/internal/index.js +1389 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1346 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +619 -0
- package/build/internal/meta.d.ts +619 -0
- package/build/internal/meta.js +873 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +836 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/{es/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → internal/stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts} +377 -108
- package/build/{cjs/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → internal/stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts} +377 -108
- package/build/meta.d.mts +619 -0
- package/build/meta.d.ts +619 -0
- package/build/meta.js +873 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +836 -0
- package/build/meta.mjs.map +1 -0
- package/build/{internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.mts} +377 -108
- package/build/{internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.d.ts → stores-catalog-v3-customization-customizations-v-3.universal-CT4feroB.d.ts} +377 -108
- package/package.json +12 -11
- 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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -40
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -683
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -237
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -126
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -54
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -819
- package/build/cjs/src/stores-catalog-v3-customization-customizations-v-3.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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -31
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -669
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -200
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -106
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -51
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -782
- package/build/es/src/stores-catalog-v3-customization-customizations-v-3.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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -40
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -683
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -237
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -126
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -54
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -819
- package/build/internal/cjs/src/stores-catalog-v3-customization-customizations-v-3.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/stores-catalog-v3-customization-customizations-v-3.context.d.ts +0 -31
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.context.js +0 -31
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.context.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.d.ts +0 -63
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.js +0 -669
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.http.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.d.ts +0 -35
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js +0 -200
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.meta.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.d.ts +0 -130
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.js +0 -106
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.public.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.js +0 -51
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.types.js.map +0 -1
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.d.ts +0 -1588
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js +0 -782
- package/build/internal/es/src/stores-catalog-v3-customization-customizations-v-3.universal.js.map +0 -1
|
@@ -1,683 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bulkUpdateCustomizations = exports.bulkAddCustomizationChoices = exports.removeCustomizationChoices = exports.setCustomizationChoices = exports.addCustomizationChoices = exports.bulkCreateCustomizations = exports.queryCustomizations = exports.deleteCustomization = exports.updateCustomization = exports.getCustomization = exports.createCustomization = void 0;
|
|
4
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
-
const float_1 = require("@wix/sdk-runtime/transformations/float");
|
|
6
|
-
const float_2 = require("@wix/sdk-runtime/transformations/float");
|
|
7
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
8
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
9
|
-
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
10
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
11
|
-
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
12
|
-
function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
|
|
13
|
-
const domainToMappings = {
|
|
14
|
-
'manage._base_domain_': [
|
|
15
|
-
{
|
|
16
|
-
srcPath: '/customization',
|
|
17
|
-
destPath: '',
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
'www.wixapis.com': [
|
|
21
|
-
{
|
|
22
|
-
srcPath: '/stores/v3/customizations',
|
|
23
|
-
destPath: '/v3/customizations',
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
srcPath: '/stores/v3/bulk/customizations',
|
|
27
|
-
destPath: '/v3/bulk/customizations',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
'editor._base_domain_': [
|
|
31
|
-
{
|
|
32
|
-
srcPath: '/_api/customization',
|
|
33
|
-
destPath: '',
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
'blocks._base_domain_': [
|
|
37
|
-
{
|
|
38
|
-
srcPath: '/_api/customization',
|
|
39
|
-
destPath: '',
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
'create.editorx': [
|
|
43
|
-
{
|
|
44
|
-
srcPath: '/_api/customization',
|
|
45
|
-
destPath: '',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
_: [
|
|
49
|
-
{
|
|
50
|
-
srcPath: '/_api/customization',
|
|
51
|
-
destPath: '',
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
'*.dev.wix-code.com': [
|
|
55
|
-
{
|
|
56
|
-
srcPath: '/_api/customization',
|
|
57
|
-
destPath: '',
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
};
|
|
61
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
62
|
-
}
|
|
63
|
-
const PACKAGE_NAME = '@wix/auto_sdk_stores_customizations-v-3';
|
|
64
|
-
/** Creates a customization. */
|
|
65
|
-
function createCustomization(payload) {
|
|
66
|
-
function __createCustomization({ host }) {
|
|
67
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
68
|
-
{
|
|
69
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
70
|
-
paths: [
|
|
71
|
-
{ path: 'customization.createdDate' },
|
|
72
|
-
{ path: 'customization.updatedDate' },
|
|
73
|
-
{
|
|
74
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
80
|
-
paths: [
|
|
81
|
-
{ path: 'customization.choicesSettings.choices.image.focalPoint.x' },
|
|
82
|
-
{ path: 'customization.choicesSettings.choices.image.focalPoint.y' },
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
]);
|
|
86
|
-
const metadata = {
|
|
87
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
88
|
-
method: 'POST',
|
|
89
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.CreateCustomization',
|
|
90
|
-
packageName: PACKAGE_NAME,
|
|
91
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
92
|
-
protoPath: '/v3/customizations',
|
|
93
|
-
data: serializedData,
|
|
94
|
-
host,
|
|
95
|
-
}),
|
|
96
|
-
data: serializedData,
|
|
97
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
98
|
-
{
|
|
99
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
100
|
-
paths: [
|
|
101
|
-
{ path: 'customization.createdDate' },
|
|
102
|
-
{ path: 'customization.updatedDate' },
|
|
103
|
-
{
|
|
104
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
110
|
-
paths: [
|
|
111
|
-
{
|
|
112
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.x',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.y',
|
|
116
|
-
},
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
]),
|
|
120
|
-
};
|
|
121
|
-
return metadata;
|
|
122
|
-
}
|
|
123
|
-
return __createCustomization;
|
|
124
|
-
}
|
|
125
|
-
exports.createCustomization = createCustomization;
|
|
126
|
-
/** Retrieves a customization. */
|
|
127
|
-
function getCustomization(payload) {
|
|
128
|
-
function __getCustomization({ host }) {
|
|
129
|
-
const metadata = {
|
|
130
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
131
|
-
method: 'GET',
|
|
132
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.GetCustomization',
|
|
133
|
-
packageName: PACKAGE_NAME,
|
|
134
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
135
|
-
protoPath: '/v3/customizations/{customizationId}',
|
|
136
|
-
data: payload,
|
|
137
|
-
host,
|
|
138
|
-
}),
|
|
139
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
140
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
141
|
-
{
|
|
142
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
143
|
-
paths: [
|
|
144
|
-
{ path: 'customization.createdDate' },
|
|
145
|
-
{ path: 'customization.updatedDate' },
|
|
146
|
-
{
|
|
147
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
148
|
-
},
|
|
149
|
-
],
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
153
|
-
paths: [
|
|
154
|
-
{
|
|
155
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.x',
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.y',
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
},
|
|
162
|
-
]),
|
|
163
|
-
};
|
|
164
|
-
return metadata;
|
|
165
|
-
}
|
|
166
|
-
return __getCustomization;
|
|
167
|
-
}
|
|
168
|
-
exports.getCustomization = getCustomization;
|
|
169
|
-
/**
|
|
170
|
-
* Updates a customization.
|
|
171
|
-
*
|
|
172
|
-
* Each time the customization is updated, `revision` increments by 1.
|
|
173
|
-
* The current `revision` must be passed when updating the customization.
|
|
174
|
-
* This ensures you're working with the latest customization and prevents unintended overwrites.
|
|
175
|
-
*/
|
|
176
|
-
function updateCustomization(payload) {
|
|
177
|
-
function __updateCustomization({ host }) {
|
|
178
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
179
|
-
{
|
|
180
|
-
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
181
|
-
paths: [{ path: 'fieldMask' }],
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
185
|
-
paths: [
|
|
186
|
-
{ path: 'customization.createdDate' },
|
|
187
|
-
{ path: 'customization.updatedDate' },
|
|
188
|
-
{
|
|
189
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
190
|
-
},
|
|
191
|
-
],
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
195
|
-
paths: [
|
|
196
|
-
{ path: 'customization.choicesSettings.choices.image.focalPoint.x' },
|
|
197
|
-
{ path: 'customization.choicesSettings.choices.image.focalPoint.y' },
|
|
198
|
-
],
|
|
199
|
-
},
|
|
200
|
-
]);
|
|
201
|
-
const metadata = {
|
|
202
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
203
|
-
method: 'PATCH',
|
|
204
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.UpdateCustomization',
|
|
205
|
-
packageName: PACKAGE_NAME,
|
|
206
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
207
|
-
protoPath: '/v3/customizations/{customization.id}',
|
|
208
|
-
data: serializedData,
|
|
209
|
-
host,
|
|
210
|
-
}),
|
|
211
|
-
data: serializedData,
|
|
212
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
213
|
-
{
|
|
214
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
215
|
-
paths: [
|
|
216
|
-
{ path: 'customization.createdDate' },
|
|
217
|
-
{ path: 'customization.updatedDate' },
|
|
218
|
-
{
|
|
219
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
220
|
-
},
|
|
221
|
-
],
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
225
|
-
paths: [
|
|
226
|
-
{
|
|
227
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.x',
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.y',
|
|
231
|
-
},
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
]),
|
|
235
|
-
};
|
|
236
|
-
return metadata;
|
|
237
|
-
}
|
|
238
|
-
return __updateCustomization;
|
|
239
|
-
}
|
|
240
|
-
exports.updateCustomization = updateCustomization;
|
|
241
|
-
/**
|
|
242
|
-
* Deletes a customization.
|
|
243
|
-
*
|
|
244
|
-
* > **Note:** A customization cannot be deleted if it is assigned to one or more products.
|
|
245
|
-
*/
|
|
246
|
-
function deleteCustomization(payload) {
|
|
247
|
-
function __deleteCustomization({ host }) {
|
|
248
|
-
const metadata = {
|
|
249
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
250
|
-
method: 'DELETE',
|
|
251
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.DeleteCustomization',
|
|
252
|
-
packageName: PACKAGE_NAME,
|
|
253
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
254
|
-
protoPath: '/v3/customizations/{customizationId}',
|
|
255
|
-
data: payload,
|
|
256
|
-
host,
|
|
257
|
-
}),
|
|
258
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
259
|
-
};
|
|
260
|
-
return metadata;
|
|
261
|
-
}
|
|
262
|
-
return __deleteCustomization;
|
|
263
|
-
}
|
|
264
|
-
exports.deleteCustomization = deleteCustomization;
|
|
265
|
-
/**
|
|
266
|
-
* Retrieves a list of up to 100 customizations, given the provided filtering, sorting, and cursor paging.
|
|
267
|
-
* Pass supported values to the `fields` array in the request to include those fields in the response.
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
* Query Customizations runs with these defaults, which you can override:
|
|
271
|
-
*
|
|
272
|
-
* - `createdDate` is sorted in `DESC` order
|
|
273
|
-
* - `cursorPaging.limit` is `100`
|
|
274
|
-
*
|
|
275
|
-
* For field support for filters and sorting,
|
|
276
|
-
* see [Customizations: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/stores/catalog-v3/customizations-v3/supported-filters-and-sorting).
|
|
277
|
-
*
|
|
278
|
-
* To learn about working with _Query_ endpoints, see
|
|
279
|
-
* [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language),
|
|
280
|
-
* and [Sorting and Paging](https://dev.wix.com/docs/rest/articles/getting-started/sorting-and-paging).
|
|
281
|
-
*/
|
|
282
|
-
function queryCustomizations(payload) {
|
|
283
|
-
function __queryCustomizations({ host }) {
|
|
284
|
-
const metadata = {
|
|
285
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
286
|
-
method: 'POST',
|
|
287
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations',
|
|
288
|
-
packageName: PACKAGE_NAME,
|
|
289
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
290
|
-
protoPath: '/v3/customizations/query',
|
|
291
|
-
data: payload,
|
|
292
|
-
host,
|
|
293
|
-
}),
|
|
294
|
-
data: payload,
|
|
295
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
296
|
-
{
|
|
297
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
298
|
-
paths: [
|
|
299
|
-
{ path: 'customizations.createdDate' },
|
|
300
|
-
{ path: 'customizations.updatedDate' },
|
|
301
|
-
{
|
|
302
|
-
path: 'customizations.choicesSettings.choices.image.urlExpirationDate',
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
308
|
-
paths: [
|
|
309
|
-
{
|
|
310
|
-
path: 'customizations.choicesSettings.choices.image.focalPoint.x',
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
path: 'customizations.choicesSettings.choices.image.focalPoint.y',
|
|
314
|
-
},
|
|
315
|
-
],
|
|
316
|
-
},
|
|
317
|
-
]),
|
|
318
|
-
};
|
|
319
|
-
return metadata;
|
|
320
|
-
}
|
|
321
|
-
return __queryCustomizations;
|
|
322
|
-
}
|
|
323
|
-
exports.queryCustomizations = queryCustomizations;
|
|
324
|
-
/** Creates multiple brands. */
|
|
325
|
-
function bulkCreateCustomizations(payload) {
|
|
326
|
-
function __bulkCreateCustomizations({ host }) {
|
|
327
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
328
|
-
{
|
|
329
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
330
|
-
paths: [
|
|
331
|
-
{ path: 'customizations.createdDate' },
|
|
332
|
-
{ path: 'customizations.updatedDate' },
|
|
333
|
-
{
|
|
334
|
-
path: 'customizations.choicesSettings.choices.image.urlExpirationDate',
|
|
335
|
-
},
|
|
336
|
-
],
|
|
337
|
-
},
|
|
338
|
-
{
|
|
339
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
340
|
-
paths: [
|
|
341
|
-
{ path: 'customizations.choicesSettings.choices.image.focalPoint.x' },
|
|
342
|
-
{ path: 'customizations.choicesSettings.choices.image.focalPoint.y' },
|
|
343
|
-
],
|
|
344
|
-
},
|
|
345
|
-
]);
|
|
346
|
-
const metadata = {
|
|
347
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
348
|
-
method: 'POST',
|
|
349
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.BulkCreateCustomizations',
|
|
350
|
-
packageName: PACKAGE_NAME,
|
|
351
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
352
|
-
protoPath: '/v3/bulk/customizations/create',
|
|
353
|
-
data: serializedData,
|
|
354
|
-
host,
|
|
355
|
-
}),
|
|
356
|
-
data: serializedData,
|
|
357
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
358
|
-
{
|
|
359
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
360
|
-
paths: [
|
|
361
|
-
{ path: 'results.customization.createdDate' },
|
|
362
|
-
{ path: 'results.customization.updatedDate' },
|
|
363
|
-
{
|
|
364
|
-
path: 'results.customization.choicesSettings.choices.image.urlExpirationDate',
|
|
365
|
-
},
|
|
366
|
-
],
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
370
|
-
paths: [
|
|
371
|
-
{
|
|
372
|
-
path: 'results.customization.choicesSettings.choices.image.focalPoint.x',
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
path: 'results.customization.choicesSettings.choices.image.focalPoint.y',
|
|
376
|
-
},
|
|
377
|
-
],
|
|
378
|
-
},
|
|
379
|
-
]),
|
|
380
|
-
};
|
|
381
|
-
return metadata;
|
|
382
|
-
}
|
|
383
|
-
return __bulkCreateCustomizations;
|
|
384
|
-
}
|
|
385
|
-
exports.bulkCreateCustomizations = bulkCreateCustomizations;
|
|
386
|
-
/** Adds choices to a customization. */
|
|
387
|
-
function addCustomizationChoices(payload) {
|
|
388
|
-
function __addCustomizationChoices({ host }) {
|
|
389
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
390
|
-
{
|
|
391
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
392
|
-
paths: [{ path: 'choices.image.urlExpirationDate' }],
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
396
|
-
paths: [
|
|
397
|
-
{ path: 'choices.image.focalPoint.x' },
|
|
398
|
-
{ path: 'choices.image.focalPoint.y' },
|
|
399
|
-
],
|
|
400
|
-
},
|
|
401
|
-
]);
|
|
402
|
-
const metadata = {
|
|
403
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
404
|
-
method: 'POST',
|
|
405
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.AddCustomizationChoices',
|
|
406
|
-
packageName: PACKAGE_NAME,
|
|
407
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
408
|
-
protoPath: '/v3/customizations/{customizationId}/add-choices',
|
|
409
|
-
data: serializedData,
|
|
410
|
-
host,
|
|
411
|
-
}),
|
|
412
|
-
data: serializedData,
|
|
413
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
414
|
-
{
|
|
415
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
416
|
-
paths: [
|
|
417
|
-
{ path: 'customization.createdDate' },
|
|
418
|
-
{ path: 'customization.updatedDate' },
|
|
419
|
-
{
|
|
420
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
421
|
-
},
|
|
422
|
-
],
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
426
|
-
paths: [
|
|
427
|
-
{
|
|
428
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.x',
|
|
429
|
-
},
|
|
430
|
-
{
|
|
431
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.y',
|
|
432
|
-
},
|
|
433
|
-
],
|
|
434
|
-
},
|
|
435
|
-
]),
|
|
436
|
-
};
|
|
437
|
-
return metadata;
|
|
438
|
-
}
|
|
439
|
-
return __addCustomizationChoices;
|
|
440
|
-
}
|
|
441
|
-
exports.addCustomizationChoices = addCustomizationChoices;
|
|
442
|
-
/**
|
|
443
|
-
* Sets a customization's choices. Any and all existing choices will be overridden.
|
|
444
|
-
*
|
|
445
|
-
* > **Note:** A choice cannot be overridden if it is assigned to one or more products.
|
|
446
|
-
*/
|
|
447
|
-
function setCustomizationChoices(payload) {
|
|
448
|
-
function __setCustomizationChoices({ host }) {
|
|
449
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
450
|
-
{
|
|
451
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
452
|
-
paths: [{ path: 'choices.image.urlExpirationDate' }],
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
456
|
-
paths: [
|
|
457
|
-
{ path: 'choices.image.focalPoint.x' },
|
|
458
|
-
{ path: 'choices.image.focalPoint.y' },
|
|
459
|
-
],
|
|
460
|
-
},
|
|
461
|
-
]);
|
|
462
|
-
const metadata = {
|
|
463
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
464
|
-
method: 'POST',
|
|
465
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.SetCustomizationChoices',
|
|
466
|
-
packageName: PACKAGE_NAME,
|
|
467
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
468
|
-
protoPath: '/v3/customizations/{customizationId}/set-choices',
|
|
469
|
-
data: serializedData,
|
|
470
|
-
host,
|
|
471
|
-
}),
|
|
472
|
-
data: serializedData,
|
|
473
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
474
|
-
{
|
|
475
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
476
|
-
paths: [
|
|
477
|
-
{ path: 'customization.createdDate' },
|
|
478
|
-
{ path: 'customization.updatedDate' },
|
|
479
|
-
{
|
|
480
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
481
|
-
},
|
|
482
|
-
],
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
486
|
-
paths: [
|
|
487
|
-
{
|
|
488
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.x',
|
|
489
|
-
},
|
|
490
|
-
{
|
|
491
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.y',
|
|
492
|
-
},
|
|
493
|
-
],
|
|
494
|
-
},
|
|
495
|
-
]),
|
|
496
|
-
};
|
|
497
|
-
return metadata;
|
|
498
|
-
}
|
|
499
|
-
return __setCustomizationChoices;
|
|
500
|
-
}
|
|
501
|
-
exports.setCustomizationChoices = setCustomizationChoices;
|
|
502
|
-
/**
|
|
503
|
-
* Removes choices from a customization.
|
|
504
|
-
*
|
|
505
|
-
* +> **Note:** A choice cannot be removed if it is assigned to one or more products.
|
|
506
|
-
*/
|
|
507
|
-
function removeCustomizationChoices(payload) {
|
|
508
|
-
function __removeCustomizationChoices({ host }) {
|
|
509
|
-
const metadata = {
|
|
510
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
511
|
-
method: 'POST',
|
|
512
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.RemoveCustomizationChoices',
|
|
513
|
-
packageName: PACKAGE_NAME,
|
|
514
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
515
|
-
protoPath: '/v3/customizations/{customizationId}/remove-choices',
|
|
516
|
-
data: payload,
|
|
517
|
-
host,
|
|
518
|
-
}),
|
|
519
|
-
data: payload,
|
|
520
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
521
|
-
{
|
|
522
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
523
|
-
paths: [
|
|
524
|
-
{ path: 'customization.createdDate' },
|
|
525
|
-
{ path: 'customization.updatedDate' },
|
|
526
|
-
{
|
|
527
|
-
path: 'customization.choicesSettings.choices.image.urlExpirationDate',
|
|
528
|
-
},
|
|
529
|
-
],
|
|
530
|
-
},
|
|
531
|
-
{
|
|
532
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
533
|
-
paths: [
|
|
534
|
-
{
|
|
535
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.x',
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
path: 'customization.choicesSettings.choices.image.focalPoint.y',
|
|
539
|
-
},
|
|
540
|
-
],
|
|
541
|
-
},
|
|
542
|
-
]),
|
|
543
|
-
};
|
|
544
|
-
return metadata;
|
|
545
|
-
}
|
|
546
|
-
return __removeCustomizationChoices;
|
|
547
|
-
}
|
|
548
|
-
exports.removeCustomizationChoices = removeCustomizationChoices;
|
|
549
|
-
/** Adds choices to multiple customizations. */
|
|
550
|
-
function bulkAddCustomizationChoices(payload) {
|
|
551
|
-
function __bulkAddCustomizationChoices({ host }) {
|
|
552
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
553
|
-
{
|
|
554
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
555
|
-
paths: [
|
|
556
|
-
{ path: 'customizationsChoices.choices.image.urlExpirationDate' },
|
|
557
|
-
],
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
561
|
-
paths: [
|
|
562
|
-
{ path: 'customizationsChoices.choices.image.focalPoint.x' },
|
|
563
|
-
{ path: 'customizationsChoices.choices.image.focalPoint.y' },
|
|
564
|
-
],
|
|
565
|
-
},
|
|
566
|
-
]);
|
|
567
|
-
const metadata = {
|
|
568
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
569
|
-
method: 'POST',
|
|
570
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.BulkAddCustomizationChoices',
|
|
571
|
-
packageName: PACKAGE_NAME,
|
|
572
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
573
|
-
protoPath: '/v3/bulk/customizations/add-choices',
|
|
574
|
-
data: serializedData,
|
|
575
|
-
host,
|
|
576
|
-
}),
|
|
577
|
-
data: serializedData,
|
|
578
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
579
|
-
{
|
|
580
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
581
|
-
paths: [
|
|
582
|
-
{ path: 'results.customization.createdDate' },
|
|
583
|
-
{ path: 'results.customization.updatedDate' },
|
|
584
|
-
{
|
|
585
|
-
path: 'results.customization.choicesSettings.choices.image.urlExpirationDate',
|
|
586
|
-
},
|
|
587
|
-
],
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
591
|
-
paths: [
|
|
592
|
-
{
|
|
593
|
-
path: 'results.customization.choicesSettings.choices.image.focalPoint.x',
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
path: 'results.customization.choicesSettings.choices.image.focalPoint.y',
|
|
597
|
-
},
|
|
598
|
-
],
|
|
599
|
-
},
|
|
600
|
-
]),
|
|
601
|
-
};
|
|
602
|
-
return metadata;
|
|
603
|
-
}
|
|
604
|
-
return __bulkAddCustomizationChoices;
|
|
605
|
-
}
|
|
606
|
-
exports.bulkAddCustomizationChoices = bulkAddCustomizationChoices;
|
|
607
|
-
/**
|
|
608
|
-
* Updates multiple customizations.
|
|
609
|
-
*
|
|
610
|
-
* Each time the customization is updated, `revision` increments by 1.
|
|
611
|
-
* The current `revision` must be passed when updating the customization.
|
|
612
|
-
* This ensures you're working with the latest customization and prevents unintended overwrites.
|
|
613
|
-
*/
|
|
614
|
-
function bulkUpdateCustomizations(payload) {
|
|
615
|
-
function __bulkUpdateCustomizations({ host }) {
|
|
616
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
617
|
-
{
|
|
618
|
-
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
619
|
-
paths: [{ path: 'customizations.fieldMask' }],
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
623
|
-
paths: [
|
|
624
|
-
{ path: 'customizations.customization.createdDate' },
|
|
625
|
-
{ path: 'customizations.customization.updatedDate' },
|
|
626
|
-
{
|
|
627
|
-
path: 'customizations.customization.choicesSettings.choices.image.urlExpirationDate',
|
|
628
|
-
},
|
|
629
|
-
],
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
transformFn: float_1.transformSDKFloatToRESTFloat,
|
|
633
|
-
paths: [
|
|
634
|
-
{
|
|
635
|
-
path: 'customizations.customization.choicesSettings.choices.image.focalPoint.x',
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
path: 'customizations.customization.choicesSettings.choices.image.focalPoint.y',
|
|
639
|
-
},
|
|
640
|
-
],
|
|
641
|
-
},
|
|
642
|
-
]);
|
|
643
|
-
const metadata = {
|
|
644
|
-
entityFqdn: 'wix.stores.catalog.v3.customization',
|
|
645
|
-
method: 'POST',
|
|
646
|
-
methodFqn: 'wix.stores.catalog.customization.v3.CustomizationService.BulkUpdateCustomizations',
|
|
647
|
-
packageName: PACKAGE_NAME,
|
|
648
|
-
url: resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl({
|
|
649
|
-
protoPath: '/v3/bulk/customizations/update',
|
|
650
|
-
data: serializedData,
|
|
651
|
-
host,
|
|
652
|
-
}),
|
|
653
|
-
data: serializedData,
|
|
654
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
655
|
-
{
|
|
656
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
657
|
-
paths: [
|
|
658
|
-
{ path: 'results.customization.createdDate' },
|
|
659
|
-
{ path: 'results.customization.updatedDate' },
|
|
660
|
-
{
|
|
661
|
-
path: 'results.customization.choicesSettings.choices.image.urlExpirationDate',
|
|
662
|
-
},
|
|
663
|
-
],
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
transformFn: float_2.transformRESTFloatToSDKFloat,
|
|
667
|
-
paths: [
|
|
668
|
-
{
|
|
669
|
-
path: 'results.customization.choicesSettings.choices.image.focalPoint.x',
|
|
670
|
-
},
|
|
671
|
-
{
|
|
672
|
-
path: 'results.customization.choicesSettings.choices.image.focalPoint.y',
|
|
673
|
-
},
|
|
674
|
-
],
|
|
675
|
-
},
|
|
676
|
-
]),
|
|
677
|
-
};
|
|
678
|
-
return metadata;
|
|
679
|
-
}
|
|
680
|
-
return __bulkUpdateCustomizations;
|
|
681
|
-
}
|
|
682
|
-
exports.bulkUpdateCustomizations = bulkUpdateCustomizations;
|
|
683
|
-
//# sourceMappingURL=stores-catalog-v3-customization-customizations-v-3.http.js.map
|