@wix/motion 1.0.32 → 1.0.33
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/context.d.ts +3 -0
- package/build/cjs/{index.typings.js → context.js} +9 -5
- package/build/cjs/context.js.map +1 -0
- package/build/cjs/index.d.ts +3 -3
- package/build/cjs/index.js +8 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +3 -3
- package/build/cjs/meta.js +8 -4
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +3 -0
- package/build/es/context.js +4 -0
- package/build/es/context.js.map +1 -0
- package/build/es/index.d.ts +3 -3
- package/build/es/index.js +3 -3
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +3 -3
- package/build/es/meta.js +3 -3
- package/build/es/meta.js.map +1 -1
- package/context/package.json +6 -0
- package/package.json +17 -7
- package/build/cjs/index.typings.d.ts +0 -3
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/src/alarm-v1-alarm.http.d.ts +0 -6
- package/build/cjs/src/alarm-v1-alarm.http.js +0 -105
- package/build/cjs/src/alarm-v1-alarm.http.js.map +0 -1
- package/build/cjs/src/alarm-v1-alarm.meta.d.ts +0 -18
- package/build/cjs/src/alarm-v1-alarm.meta.js +0 -62
- package/build/cjs/src/alarm-v1-alarm.meta.js.map +0 -1
- package/build/cjs/src/alarm-v1-alarm.public.d.ts +0 -8
- package/build/cjs/src/alarm-v1-alarm.public.js +0 -18
- package/build/cjs/src/alarm-v1-alarm.public.js.map +0 -1
- package/build/cjs/src/alarm-v1-alarm.types.d.ts +0 -37
- package/build/cjs/src/alarm-v1-alarm.types.js +0 -3
- package/build/cjs/src/alarm-v1-alarm.types.js.map +0 -1
- package/build/cjs/src/alarm-v1-alarm.universal.d.ts +0 -65
- package/build/cjs/src/alarm-v1-alarm.universal.js +0 -159
- package/build/cjs/src/alarm-v1-alarm.universal.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-echo.http.d.ts +0 -4
- package/build/cjs/src/metroinspector-v1-echo.http.js +0 -79
- package/build/cjs/src/metroinspector-v1-echo.http.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-echo.meta.d.ts +0 -15
- package/build/cjs/src/metroinspector-v1-echo.meta.js +0 -43
- package/build/cjs/src/metroinspector-v1-echo.meta.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-echo.public.d.ts +0 -7
- package/build/cjs/src/metroinspector-v1-echo.public.js +0 -12
- package/build/cjs/src/metroinspector-v1-echo.public.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-echo.types.d.ts +0 -44
- package/build/cjs/src/metroinspector-v1-echo.types.js +0 -3
- package/build/cjs/src/metroinspector-v1-echo.types.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-echo.universal.d.ts +0 -65
- package/build/cjs/src/metroinspector-v1-echo.universal.js +0 -111
- package/build/cjs/src/metroinspector-v1-echo.universal.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-product.http.d.ts +0 -9
- package/build/cjs/src/metroinspector-v1-product.http.js +0 -314
- package/build/cjs/src/metroinspector-v1-product.http.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-product.meta.d.ts +0 -26
- package/build/cjs/src/metroinspector-v1-product.meta.js +0 -138
- package/build/cjs/src/metroinspector-v1-product.meta.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-product.public.d.ts +0 -76
- package/build/cjs/src/metroinspector-v1-product.public.js +0 -45
- package/build/cjs/src/metroinspector-v1-product.public.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-product.types.d.ts +0 -731
- package/build/cjs/src/metroinspector-v1-product.types.js +0 -25
- package/build/cjs/src/metroinspector-v1-product.types.js.map +0 -1
- package/build/cjs/src/metroinspector-v1-product.universal.d.ts +0 -494
- package/build/cjs/src/metroinspector-v1-product.universal.js +0 -442
- package/build/cjs/src/metroinspector-v1-product.universal.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -3
- package/build/es/index.typings.js +0 -4
- package/build/es/index.typings.js.map +0 -1
- package/build/es/src/alarm-v1-alarm.http.d.ts +0 -6
- package/build/es/src/alarm-v1-alarm.http.js +0 -100
- package/build/es/src/alarm-v1-alarm.http.js.map +0 -1
- package/build/es/src/alarm-v1-alarm.meta.d.ts +0 -18
- package/build/es/src/alarm-v1-alarm.meta.js +0 -38
- package/build/es/src/alarm-v1-alarm.meta.js.map +0 -1
- package/build/es/src/alarm-v1-alarm.public.d.ts +0 -8
- package/build/es/src/alarm-v1-alarm.public.js +0 -13
- package/build/es/src/alarm-v1-alarm.public.js.map +0 -1
- package/build/es/src/alarm-v1-alarm.types.d.ts +0 -37
- package/build/es/src/alarm-v1-alarm.types.js +0 -2
- package/build/es/src/alarm-v1-alarm.types.js.map +0 -1
- package/build/es/src/alarm-v1-alarm.universal.d.ts +0 -65
- package/build/es/src/alarm-v1-alarm.universal.js +0 -135
- package/build/es/src/alarm-v1-alarm.universal.js.map +0 -1
- package/build/es/src/metroinspector-v1-echo.http.d.ts +0 -4
- package/build/es/src/metroinspector-v1-echo.http.js +0 -75
- package/build/es/src/metroinspector-v1-echo.http.js.map +0 -1
- package/build/es/src/metroinspector-v1-echo.meta.d.ts +0 -15
- package/build/es/src/metroinspector-v1-echo.meta.js +0 -20
- package/build/es/src/metroinspector-v1-echo.meta.js.map +0 -1
- package/build/es/src/metroinspector-v1-echo.public.d.ts +0 -7
- package/build/es/src/metroinspector-v1-echo.public.js +0 -8
- package/build/es/src/metroinspector-v1-echo.public.js.map +0 -1
- package/build/es/src/metroinspector-v1-echo.types.d.ts +0 -44
- package/build/es/src/metroinspector-v1-echo.types.js +0 -2
- package/build/es/src/metroinspector-v1-echo.types.js.map +0 -1
- package/build/es/src/metroinspector-v1-echo.universal.d.ts +0 -65
- package/build/es/src/metroinspector-v1-echo.universal.js +0 -88
- package/build/es/src/metroinspector-v1-echo.universal.js.map +0 -1
- package/build/es/src/metroinspector-v1-product.http.d.ts +0 -9
- package/build/es/src/metroinspector-v1-product.http.js +0 -305
- package/build/es/src/metroinspector-v1-product.http.js.map +0 -1
- package/build/es/src/metroinspector-v1-product.meta.d.ts +0 -26
- package/build/es/src/metroinspector-v1-product.meta.js +0 -110
- package/build/es/src/metroinspector-v1-product.meta.js.map +0 -1
- package/build/es/src/metroinspector-v1-product.public.d.ts +0 -76
- package/build/es/src/metroinspector-v1-product.public.js +0 -34
- package/build/es/src/metroinspector-v1-product.public.js.map +0 -1
- package/build/es/src/metroinspector-v1-product.types.d.ts +0 -731
- package/build/es/src/metroinspector-v1-product.types.js +0 -22
- package/build/es/src/metroinspector-v1-product.types.js.map +0 -1
- package/build/es/src/metroinspector-v1-product.universal.d.ts +0 -494
- package/build/es/src/metroinspector-v1-product.universal.js +0 -414
- package/build/es/src/metroinspector-v1-product.universal.js.map +0 -1
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { toURLSearchParams } from '@wix/metro-runtime';
|
|
2
|
-
import { serializer } from '@wix/metro-runtime/ambassador';
|
|
3
|
-
import { resolveUrl } from '@wix/metro-runtime';
|
|
4
|
-
const _address = { geocode: '_addressLocation' };
|
|
5
|
-
const _addressLocation = {
|
|
6
|
-
latitude: 'google.protobuf.DoubleValue',
|
|
7
|
-
longitude: 'google.protobuf.DoubleValue',
|
|
8
|
-
};
|
|
9
|
-
const _audio = { urlExpirationDate: 'google.protobuf.Timestamp' };
|
|
10
|
-
const _createProductRequest = { product: '_product' };
|
|
11
|
-
const _createProductResponse = { product: '_product' };
|
|
12
|
-
const _deleteProductRequest = {};
|
|
13
|
-
const _deleteProductResponse = {};
|
|
14
|
-
const _document = { urlExpirationDate: 'google.protobuf.Timestamp' };
|
|
15
|
-
const _getProductRequest = {};
|
|
16
|
-
const _getProductResponse = { product: '_product' };
|
|
17
|
-
const _getProductsStartWithRequest = {};
|
|
18
|
-
const _getProductsStartWithResponse = { products: '_product' };
|
|
19
|
-
const _image = { urlExpirationDate: 'google.protobuf.Timestamp' };
|
|
20
|
-
const _product = {
|
|
21
|
-
createdDate: 'google.protobuf.Timestamp',
|
|
22
|
-
modifiedDate: 'google.protobuf.Timestamp',
|
|
23
|
-
image: '_image',
|
|
24
|
-
address: '_address',
|
|
25
|
-
document: '_document',
|
|
26
|
-
video: '_videoV2',
|
|
27
|
-
audio: '_audio',
|
|
28
|
-
variants: '_variant',
|
|
29
|
-
mainVariant: '_variant',
|
|
30
|
-
};
|
|
31
|
-
const _queryProductsRequest = {};
|
|
32
|
-
const _queryProductsResponse = { products: '_product' };
|
|
33
|
-
const _updateProductRequest = {
|
|
34
|
-
mask: 'google.protobuf.FieldMask',
|
|
35
|
-
product: '_product',
|
|
36
|
-
};
|
|
37
|
-
const _updateProductResponse = { product: '_product' };
|
|
38
|
-
const _variant = { image: '_image' };
|
|
39
|
-
const _videoResolution = {
|
|
40
|
-
urlExpirationDate: 'google.protobuf.Timestamp',
|
|
41
|
-
poster: '_image',
|
|
42
|
-
};
|
|
43
|
-
const _videoV2 = {
|
|
44
|
-
urlExpirationDate: 'google.protobuf.Timestamp',
|
|
45
|
-
resolutions: '_videoResolution',
|
|
46
|
-
posters: '_image',
|
|
47
|
-
};
|
|
48
|
-
function resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl(opts) {
|
|
49
|
-
const domainToMappings = {
|
|
50
|
-
'apps._base_domain_': [
|
|
51
|
-
{
|
|
52
|
-
srcPath: '/_api/metro-inspector',
|
|
53
|
-
destPath: '/api',
|
|
54
|
-
},
|
|
55
|
-
],
|
|
56
|
-
'api._api_base_domain_': [
|
|
57
|
-
{
|
|
58
|
-
srcPath: '/metro-inspector',
|
|
59
|
-
destPath: '',
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
'www._base_domain_': [
|
|
63
|
-
{
|
|
64
|
-
srcPath: '/metro-inspector',
|
|
65
|
-
destPath: '/api',
|
|
66
|
-
},
|
|
67
|
-
],
|
|
68
|
-
'manage._base_domain_': [
|
|
69
|
-
{
|
|
70
|
-
srcPath: '/metro-inspector',
|
|
71
|
-
destPath: '',
|
|
72
|
-
},
|
|
73
|
-
],
|
|
74
|
-
'www.wixgateway.com': [
|
|
75
|
-
{
|
|
76
|
-
srcPath: '/_api/metro-inspector',
|
|
77
|
-
destPath: '/api',
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
_: [
|
|
81
|
-
{
|
|
82
|
-
srcPath: '/_api/metro-inspector',
|
|
83
|
-
destPath: '/api',
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
'www.wixapis.com': [
|
|
87
|
-
{
|
|
88
|
-
srcPath: '/_api/metro-inspector',
|
|
89
|
-
destPath: '/api',
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
};
|
|
93
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
94
|
-
}
|
|
95
|
-
/** Creating a product */
|
|
96
|
-
export function createProduct(payload) {
|
|
97
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_createProductRequest, {
|
|
98
|
-
_address,
|
|
99
|
-
_addressLocation,
|
|
100
|
-
_audio,
|
|
101
|
-
_document,
|
|
102
|
-
_image,
|
|
103
|
-
_product,
|
|
104
|
-
_variant,
|
|
105
|
-
_videoResolution,
|
|
106
|
-
_videoV2,
|
|
107
|
-
});
|
|
108
|
-
const { fromJSON: fromRes } = serializer(_createProductResponse, {
|
|
109
|
-
_address,
|
|
110
|
-
_addressLocation,
|
|
111
|
-
_audio,
|
|
112
|
-
_document,
|
|
113
|
-
_image,
|
|
114
|
-
_product,
|
|
115
|
-
_variant,
|
|
116
|
-
_videoResolution,
|
|
117
|
-
_videoV2,
|
|
118
|
-
});
|
|
119
|
-
function __createProduct({ host }) {
|
|
120
|
-
const serializedData = toReq(payload);
|
|
121
|
-
const metadata = {
|
|
122
|
-
entityFqdn: 'wix.metroinspector.v1.product',
|
|
123
|
-
method: 'POST',
|
|
124
|
-
methodFqn: 'wix.coreservices.metroinspector.v1.products.ProductsService.CreateProduct',
|
|
125
|
-
url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({
|
|
126
|
-
protoPath: '/api/v1/products',
|
|
127
|
-
data: serializedData,
|
|
128
|
-
host,
|
|
129
|
-
}),
|
|
130
|
-
data: serializedData,
|
|
131
|
-
transformResponse: fromRes,
|
|
132
|
-
};
|
|
133
|
-
return metadata;
|
|
134
|
-
}
|
|
135
|
-
__createProduct.fromReq = fromReq;
|
|
136
|
-
return __createProduct;
|
|
137
|
-
}
|
|
138
|
-
export function deleteProduct(payload) {
|
|
139
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_deleteProductRequest, {});
|
|
140
|
-
const { fromJSON: fromRes } = serializer(_deleteProductResponse, {});
|
|
141
|
-
function __deleteProduct({ host }) {
|
|
142
|
-
const serializedData = toReq(payload);
|
|
143
|
-
const metadata = {
|
|
144
|
-
entityFqdn: 'wix.metroinspector.v1.product',
|
|
145
|
-
method: 'DELETE',
|
|
146
|
-
methodFqn: 'wix.coreservices.metroinspector.v1.products.ProductsService.DeleteProduct',
|
|
147
|
-
url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({
|
|
148
|
-
protoPath: '/api/v1/products/{productId}',
|
|
149
|
-
data: serializedData,
|
|
150
|
-
host,
|
|
151
|
-
}),
|
|
152
|
-
params: toURLSearchParams(serializedData),
|
|
153
|
-
transformResponse: fromRes,
|
|
154
|
-
};
|
|
155
|
-
return metadata;
|
|
156
|
-
}
|
|
157
|
-
__deleteProduct.fromReq = fromReq;
|
|
158
|
-
return __deleteProduct;
|
|
159
|
-
}
|
|
160
|
-
export function updateProduct(payload) {
|
|
161
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateProductRequest, {
|
|
162
|
-
_address,
|
|
163
|
-
_addressLocation,
|
|
164
|
-
_audio,
|
|
165
|
-
_document,
|
|
166
|
-
_image,
|
|
167
|
-
_product,
|
|
168
|
-
_variant,
|
|
169
|
-
_videoResolution,
|
|
170
|
-
_videoV2,
|
|
171
|
-
});
|
|
172
|
-
const { fromJSON: fromRes } = serializer(_updateProductResponse, {
|
|
173
|
-
_address,
|
|
174
|
-
_addressLocation,
|
|
175
|
-
_audio,
|
|
176
|
-
_document,
|
|
177
|
-
_image,
|
|
178
|
-
_product,
|
|
179
|
-
_variant,
|
|
180
|
-
_videoResolution,
|
|
181
|
-
_videoV2,
|
|
182
|
-
});
|
|
183
|
-
function __updateProduct({ host }) {
|
|
184
|
-
const serializedData = toReq(payload);
|
|
185
|
-
const metadata = {
|
|
186
|
-
entityFqdn: 'wix.metroinspector.v1.product',
|
|
187
|
-
method: 'PUT',
|
|
188
|
-
methodFqn: 'wix.coreservices.metroinspector.v1.products.ProductsService.UpdateProduct',
|
|
189
|
-
url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({
|
|
190
|
-
protoPath: '/api/v1/products/{productId}',
|
|
191
|
-
data: serializedData,
|
|
192
|
-
host,
|
|
193
|
-
}),
|
|
194
|
-
data: serializedData,
|
|
195
|
-
transformResponse: fromRes,
|
|
196
|
-
};
|
|
197
|
-
return metadata;
|
|
198
|
-
}
|
|
199
|
-
__updateProduct.fromReq = fromReq;
|
|
200
|
-
return __updateProduct;
|
|
201
|
-
}
|
|
202
|
-
export function getProduct(payload) {
|
|
203
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getProductRequest, {});
|
|
204
|
-
const { fromJSON: fromRes } = serializer(_getProductResponse, {
|
|
205
|
-
_address,
|
|
206
|
-
_addressLocation,
|
|
207
|
-
_audio,
|
|
208
|
-
_document,
|
|
209
|
-
_image,
|
|
210
|
-
_product,
|
|
211
|
-
_variant,
|
|
212
|
-
_videoResolution,
|
|
213
|
-
_videoV2,
|
|
214
|
-
});
|
|
215
|
-
function __getProduct({ host }) {
|
|
216
|
-
const serializedData = toReq(payload);
|
|
217
|
-
const metadata = {
|
|
218
|
-
entityFqdn: 'wix.metroinspector.v1.product',
|
|
219
|
-
method: 'GET',
|
|
220
|
-
methodFqn: 'wix.coreservices.metroinspector.v1.products.ProductsService.GetProduct',
|
|
221
|
-
url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({
|
|
222
|
-
protoPath: '/api/v1/products/{productId}',
|
|
223
|
-
data: serializedData,
|
|
224
|
-
host,
|
|
225
|
-
}),
|
|
226
|
-
params: toURLSearchParams(serializedData),
|
|
227
|
-
transformResponse: fromRes,
|
|
228
|
-
};
|
|
229
|
-
return metadata;
|
|
230
|
-
}
|
|
231
|
-
__getProduct.fromReq = fromReq;
|
|
232
|
-
return __getProduct;
|
|
233
|
-
}
|
|
234
|
-
export function getProductsStartWith(payload) {
|
|
235
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_getProductsStartWithRequest, {});
|
|
236
|
-
const { fromJSON: fromRes } = serializer(_getProductsStartWithResponse, {
|
|
237
|
-
_address,
|
|
238
|
-
_addressLocation,
|
|
239
|
-
_audio,
|
|
240
|
-
_document,
|
|
241
|
-
_image,
|
|
242
|
-
_product,
|
|
243
|
-
_variant,
|
|
244
|
-
_videoResolution,
|
|
245
|
-
_videoV2,
|
|
246
|
-
});
|
|
247
|
-
function __getProductsStartWith({ host }) {
|
|
248
|
-
const serializedData = toReq(payload);
|
|
249
|
-
const metadata = {
|
|
250
|
-
entityFqdn: 'wix.metroinspector.v1.product',
|
|
251
|
-
method: 'GET',
|
|
252
|
-
methodFqn: 'wix.coreservices.metroinspector.v1.products.ProductsService.GetProductsStartWith',
|
|
253
|
-
url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({
|
|
254
|
-
protoPath: '/api/v1/products/start-with/{title}',
|
|
255
|
-
data: serializedData,
|
|
256
|
-
host,
|
|
257
|
-
}),
|
|
258
|
-
params: toURLSearchParams(serializedData),
|
|
259
|
-
transformResponse: fromRes,
|
|
260
|
-
};
|
|
261
|
-
return metadata;
|
|
262
|
-
}
|
|
263
|
-
__getProductsStartWith.fromReq = fromReq;
|
|
264
|
-
return __getProductsStartWith;
|
|
265
|
-
}
|
|
266
|
-
export function queryProducts(payload) {
|
|
267
|
-
const { toJSON: toReq, fromJSON: fromReq } = serializer(_queryProductsRequest, {});
|
|
268
|
-
const { fromJSON: fromRes } = serializer(_queryProductsResponse, {
|
|
269
|
-
_address,
|
|
270
|
-
_addressLocation,
|
|
271
|
-
_audio,
|
|
272
|
-
_document,
|
|
273
|
-
_image,
|
|
274
|
-
_product,
|
|
275
|
-
_variant,
|
|
276
|
-
_videoResolution,
|
|
277
|
-
_videoV2,
|
|
278
|
-
});
|
|
279
|
-
function __queryProducts({ host }) {
|
|
280
|
-
const serializedData = toReq(payload);
|
|
281
|
-
const metadata = {
|
|
282
|
-
entityFqdn: 'wix.metroinspector.v1.product',
|
|
283
|
-
method: 'POST',
|
|
284
|
-
methodFqn: 'wix.coreservices.metroinspector.v1.products.ProductsService.QueryProducts',
|
|
285
|
-
url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({
|
|
286
|
-
protoPath: '/api/v1/query-products',
|
|
287
|
-
data: serializedData,
|
|
288
|
-
host,
|
|
289
|
-
}),
|
|
290
|
-
data: serializedData,
|
|
291
|
-
transformResponse: fromRes,
|
|
292
|
-
fallback: [
|
|
293
|
-
{
|
|
294
|
-
method: 'POST',
|
|
295
|
-
url: resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl({ protoPath: '/api/v1/query-products', data: serializedData, host }),
|
|
296
|
-
data: serializedData,
|
|
297
|
-
},
|
|
298
|
-
],
|
|
299
|
-
};
|
|
300
|
-
return metadata;
|
|
301
|
-
}
|
|
302
|
-
__queryProducts.fromReq = fromReq;
|
|
303
|
-
return __queryProducts;
|
|
304
|
-
}
|
|
305
|
-
//# sourceMappingURL=metroinspector-v1-product.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metroinspector-v1-product.http.js","sourceRoot":"","sources":["../../../src/metroinspector-v1-product.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,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,2EAA2E;YAC7E,GAAG,EAAE,gEAAgE,CAAC;gBACpE,SAAS,EAAE,wBAAwB;gBACnC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;YAC1B,QAAQ,EAAE;gBACR;oBACE,MAAM,EAAE,MAAa;oBACrB,GAAG,EAAE,gEAAgE,CACnE,EAAE,SAAS,EAAE,wBAAwB,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CACpE;oBACD,IAAI,EAAE,cAAc;iBACrB;aACF;SACF,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;IAElC,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixMetroinspectorV1ProductTypes from './metroinspector-v1-product.types';
|
|
2
|
-
import * as ambassadorWixMetroinspectorV1ProductUniversalTypes from './metroinspector-v1-product.universal';
|
|
3
|
-
export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function createProduct(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixMetroinspectorV1ProductUniversalTypes.CreateProductRequest, ambassadorWixMetroinspectorV1ProductTypes.CreateProductRequest, ambassadorWixMetroinspectorV1ProductUniversalTypes.CreateProductResponse & ambassadorWixMetroinspectorV1ProductUniversalTypes.CreateProductResponseNonNullableFields, ambassadorWixMetroinspectorV1ProductTypes.CreateProductResponse & ambassadorWixMetroinspectorV1ProductTypes.CreateProductResponseNonNullableFields>;
|
|
14
|
-
export declare function deleteProduct(): __PublicMethodMetaInfo<'DELETE', {
|
|
15
|
-
productId: string;
|
|
16
|
-
}, ambassadorWixMetroinspectorV1ProductUniversalTypes.DeleteProductRequest, ambassadorWixMetroinspectorV1ProductTypes.DeleteProductRequest, ambassadorWixMetroinspectorV1ProductUniversalTypes.DeleteProductResponse, ambassadorWixMetroinspectorV1ProductTypes.DeleteProductResponse>;
|
|
17
|
-
export declare function updateProduct(): __PublicMethodMetaInfo<'PUT', {
|
|
18
|
-
productId: string;
|
|
19
|
-
}, ambassadorWixMetroinspectorV1ProductUniversalTypes.UpdateProductRequest, ambassadorWixMetroinspectorV1ProductTypes.UpdateProductRequest, ambassadorWixMetroinspectorV1ProductUniversalTypes.UpdateProductResponse & ambassadorWixMetroinspectorV1ProductUniversalTypes.UpdateProductResponseNonNullableFields, ambassadorWixMetroinspectorV1ProductTypes.UpdateProductResponse & ambassadorWixMetroinspectorV1ProductTypes.UpdateProductResponseNonNullableFields>;
|
|
20
|
-
export declare function getProduct(): __PublicMethodMetaInfo<'GET', {
|
|
21
|
-
productId: string;
|
|
22
|
-
}, ambassadorWixMetroinspectorV1ProductUniversalTypes.GetProductRequest, ambassadorWixMetroinspectorV1ProductTypes.GetProductRequest, ambassadorWixMetroinspectorV1ProductUniversalTypes.GetProductResponse & ambassadorWixMetroinspectorV1ProductUniversalTypes.GetProductResponseNonNullableFields, ambassadorWixMetroinspectorV1ProductTypes.GetProductResponse & ambassadorWixMetroinspectorV1ProductTypes.GetProductResponseNonNullableFields>;
|
|
23
|
-
export declare function getProductsStartWith(): __PublicMethodMetaInfo<'GET', {
|
|
24
|
-
title: string;
|
|
25
|
-
}, ambassadorWixMetroinspectorV1ProductUniversalTypes.GetProductsStartWithRequest, ambassadorWixMetroinspectorV1ProductTypes.GetProductsStartWithRequest, ambassadorWixMetroinspectorV1ProductUniversalTypes.GetProductsStartWithResponse & ambassadorWixMetroinspectorV1ProductUniversalTypes.GetProductsStartWithResponseNonNullableFields, ambassadorWixMetroinspectorV1ProductTypes.GetProductsStartWithResponse & ambassadorWixMetroinspectorV1ProductTypes.GetProductsStartWithResponseNonNullableFields>;
|
|
26
|
-
export declare function queryProducts(): __PublicMethodMetaInfo<'GET', {}, ambassadorWixMetroinspectorV1ProductUniversalTypes.QueryProductsRequest, ambassadorWixMetroinspectorV1ProductTypes.QueryProductsRequest, ambassadorWixMetroinspectorV1ProductUniversalTypes.QueryProductsResponse & ambassadorWixMetroinspectorV1ProductUniversalTypes.QueryProductsResponseNonNullableFields, ambassadorWixMetroinspectorV1ProductTypes.QueryProductsResponse & ambassadorWixMetroinspectorV1ProductTypes.QueryProductsResponseNonNullableFields>;
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixMetroinspectorV1Product from './metroinspector-v1-product.http';
|
|
2
|
-
export function createProduct() {
|
|
3
|
-
const payload = {};
|
|
4
|
-
const getRequestOptions = ambassadorWixMetroinspectorV1Product.createProduct(payload);
|
|
5
|
-
const getUrl = (context) => {
|
|
6
|
-
const { url } = getRequestOptions(context);
|
|
7
|
-
return url;
|
|
8
|
-
};
|
|
9
|
-
return {
|
|
10
|
-
getUrl,
|
|
11
|
-
httpMethod: 'POST',
|
|
12
|
-
path: '/api/v1/products',
|
|
13
|
-
pathParams: {},
|
|
14
|
-
__requestType: null,
|
|
15
|
-
__originalRequestType: null,
|
|
16
|
-
__responseType: null,
|
|
17
|
-
__originalResponseType: null,
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export function deleteProduct() {
|
|
21
|
-
const payload = { productId: ':productId' };
|
|
22
|
-
const getRequestOptions = ambassadorWixMetroinspectorV1Product.deleteProduct(payload);
|
|
23
|
-
const getUrl = (context) => {
|
|
24
|
-
const { url } = getRequestOptions(context);
|
|
25
|
-
return url;
|
|
26
|
-
};
|
|
27
|
-
return {
|
|
28
|
-
getUrl,
|
|
29
|
-
httpMethod: 'DELETE',
|
|
30
|
-
path: '/api/v1/products/{productId}',
|
|
31
|
-
pathParams: { productId: 'productId' },
|
|
32
|
-
__requestType: null,
|
|
33
|
-
__originalRequestType: null,
|
|
34
|
-
__responseType: null,
|
|
35
|
-
__originalResponseType: null,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
export function updateProduct() {
|
|
39
|
-
const payload = { productId: ':productId' };
|
|
40
|
-
const getRequestOptions = ambassadorWixMetroinspectorV1Product.updateProduct(payload);
|
|
41
|
-
const getUrl = (context) => {
|
|
42
|
-
const { url } = getRequestOptions(context);
|
|
43
|
-
return url;
|
|
44
|
-
};
|
|
45
|
-
return {
|
|
46
|
-
getUrl,
|
|
47
|
-
httpMethod: 'PUT',
|
|
48
|
-
path: '/api/v1/products/{productId}',
|
|
49
|
-
pathParams: { productId: 'productId' },
|
|
50
|
-
__requestType: null,
|
|
51
|
-
__originalRequestType: null,
|
|
52
|
-
__responseType: null,
|
|
53
|
-
__originalResponseType: null,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export function getProduct() {
|
|
57
|
-
const payload = { productId: ':productId' };
|
|
58
|
-
const getRequestOptions = ambassadorWixMetroinspectorV1Product.getProduct(payload);
|
|
59
|
-
const getUrl = (context) => {
|
|
60
|
-
const { url } = getRequestOptions(context);
|
|
61
|
-
return url;
|
|
62
|
-
};
|
|
63
|
-
return {
|
|
64
|
-
getUrl,
|
|
65
|
-
httpMethod: 'GET',
|
|
66
|
-
path: '/api/v1/products/{productId}',
|
|
67
|
-
pathParams: { productId: 'productId' },
|
|
68
|
-
__requestType: null,
|
|
69
|
-
__originalRequestType: null,
|
|
70
|
-
__responseType: null,
|
|
71
|
-
__originalResponseType: null,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
export function getProductsStartWith() {
|
|
75
|
-
const payload = { title: ':title' };
|
|
76
|
-
const getRequestOptions = ambassadorWixMetroinspectorV1Product.getProductsStartWith(payload);
|
|
77
|
-
const getUrl = (context) => {
|
|
78
|
-
const { url } = getRequestOptions(context);
|
|
79
|
-
return url;
|
|
80
|
-
};
|
|
81
|
-
return {
|
|
82
|
-
getUrl,
|
|
83
|
-
httpMethod: 'GET',
|
|
84
|
-
path: '/api/v1/products/start-with/{title}',
|
|
85
|
-
pathParams: { title: 'title' },
|
|
86
|
-
__requestType: null,
|
|
87
|
-
__originalRequestType: null,
|
|
88
|
-
__responseType: null,
|
|
89
|
-
__originalResponseType: null,
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
export function queryProducts() {
|
|
93
|
-
const payload = {};
|
|
94
|
-
const getRequestOptions = ambassadorWixMetroinspectorV1Product.queryProducts(payload);
|
|
95
|
-
const getUrl = (context) => {
|
|
96
|
-
const { url } = getRequestOptions(context);
|
|
97
|
-
return url;
|
|
98
|
-
};
|
|
99
|
-
return {
|
|
100
|
-
getUrl,
|
|
101
|
-
httpMethod: 'GET',
|
|
102
|
-
path: '/api/v1/query-products',
|
|
103
|
-
pathParams: {},
|
|
104
|
-
__requestType: null,
|
|
105
|
-
__originalRequestType: null,
|
|
106
|
-
__responseType: null,
|
|
107
|
-
__originalResponseType: null,
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
//# sourceMappingURL=metroinspector-v1-product.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metroinspector-v1-product.meta.js","sourceRoot":"","sources":["../../../src/metroinspector-v1-product.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,oCAAoC,MAAM,kCAAkC,CAAC;AAsBzF,MAAM,UAAU,aAAa;IAU3B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL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J,CAAC;AAED,MAAM,UAAU,aAAa;IAU3B,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,oCAAoC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAE9D,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,wBAAwB;QAC9B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { CreateProductOptions, CreateProductOptionsRequiredFields, GetProductsStartWithOptions, QueryProductsOptions, UpdateProductOptions, UpdateProductOptionsRequiredFields } from './metroinspector-v1-product.universal';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function createProduct(httpClient: HttpClient): (options?: (CreateProductOptions & CreateProductOptionsRequiredFields) | undefined) => Promise<import("./metroinspector-v1-product.universal").Product & {
|
|
7
|
-
_id: string;
|
|
8
|
-
collectionId: string;
|
|
9
|
-
image: string;
|
|
10
|
-
document: string;
|
|
11
|
-
video: string;
|
|
12
|
-
pageLink?: {
|
|
13
|
-
pageId: string;
|
|
14
|
-
} | undefined;
|
|
15
|
-
audio: string;
|
|
16
|
-
variants: {
|
|
17
|
-
name: string;
|
|
18
|
-
value: string;
|
|
19
|
-
image: string;
|
|
20
|
-
}[];
|
|
21
|
-
mainVariant?: {
|
|
22
|
-
name: string;
|
|
23
|
-
value: string;
|
|
24
|
-
image: string;
|
|
25
|
-
} | undefined;
|
|
26
|
-
guid: string;
|
|
27
|
-
}>;
|
|
28
|
-
export declare function deleteProduct(httpClient: HttpClient): (productId: string) => Promise<void>;
|
|
29
|
-
export declare function updateProduct(httpClient: HttpClient): (productId: string, options?: (UpdateProductOptions & UpdateProductOptionsRequiredFields) | undefined) => Promise<import("./metroinspector-v1-product.universal").Product & {
|
|
30
|
-
_id: string;
|
|
31
|
-
collectionId: string;
|
|
32
|
-
image: string;
|
|
33
|
-
document: string;
|
|
34
|
-
video: string;
|
|
35
|
-
pageLink?: {
|
|
36
|
-
pageId: string;
|
|
37
|
-
} | undefined;
|
|
38
|
-
audio: string;
|
|
39
|
-
variants: {
|
|
40
|
-
name: string;
|
|
41
|
-
value: string;
|
|
42
|
-
image: string;
|
|
43
|
-
}[];
|
|
44
|
-
mainVariant?: {
|
|
45
|
-
name: string;
|
|
46
|
-
value: string;
|
|
47
|
-
image: string;
|
|
48
|
-
} | undefined;
|
|
49
|
-
guid: string;
|
|
50
|
-
}>;
|
|
51
|
-
export declare function getProduct(httpClient: HttpClient): (productId: string) => Promise<import("./metroinspector-v1-product.universal").Product & {
|
|
52
|
-
_id: string;
|
|
53
|
-
collectionId: string;
|
|
54
|
-
image: string;
|
|
55
|
-
document: string;
|
|
56
|
-
video: string;
|
|
57
|
-
pageLink?: {
|
|
58
|
-
pageId: string;
|
|
59
|
-
} | undefined;
|
|
60
|
-
audio: string;
|
|
61
|
-
variants: {
|
|
62
|
-
name: string;
|
|
63
|
-
value: string;
|
|
64
|
-
image: string;
|
|
65
|
-
}[];
|
|
66
|
-
mainVariant?: {
|
|
67
|
-
name: string;
|
|
68
|
-
value: string;
|
|
69
|
-
image: string;
|
|
70
|
-
} | undefined;
|
|
71
|
-
guid: string;
|
|
72
|
-
}>;
|
|
73
|
-
export declare function getProductsStartWith(httpClient: HttpClient): (title: string, options?: GetProductsStartWithOptions | undefined) => Promise<import("./metroinspector-v1-product.universal").GetProductsStartWithResponse & import("./metroinspector-v1-product.universal").GetProductsStartWithResponseNonNullableFields>;
|
|
74
|
-
export declare function queryProducts(httpClient: HttpClient): (options?: QueryProductsOptions | undefined) => import("./metroinspector-v1-product.universal").ProductsQueryBuilder;
|
|
75
|
-
export { SubdivisionType, SortOrder, } from './metroinspector-v1-product.universal';
|
|
76
|
-
export { Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, VideoResolution, PageLink, Variant, MyAddress, CreateProductRequest, CreateProductResponse, DeleteProductRequest, DeleteProductResponse, UpdateProductRequest, UpdateProductResponse, GetProductRequest, GetProductResponse, GetProductsStartWithRequest, GetProductsStartWithResponse, QueryProductsRequest, QueryV2, QueryV2PagingMethodOneOf, Sorting, Paging, CursorPaging, QueryProductsResponse, PagingMetadataV2, Cursors, CreateProductRequestRequiredFields, CreateProductResponseNonNullableFields, DeleteProductRequestRequiredFields, UpdateProductRequestRequiredFields, UpdateProductResponseNonNullableFields, GetProductRequestRequiredFields, GetProductResponseNonNullableFields, GetProductsStartWithRequestRequiredFields, GetProductsStartWithResponseNonNullableFields, QueryProductsResponseNonNullableFields, Product, CreateProductOptionsRequiredFields, CreateProductOptions, UpdateProductOptionsRequiredFields, UpdateProductOptions, GetProductsStartWithOptions, QueryProductsOptions, ProductsQueryResult, ProductsQueryBuilder, } from './metroinspector-v1-product.universal';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { createProduct as universalCreateProduct, deleteProduct as universalDeleteProduct, updateProduct as universalUpdateProduct, getProduct as universalGetProduct, getProductsStartWith as universalGetProductsStartWith, queryProducts as universalQueryProducts, } from './metroinspector-v1-product.universal';
|
|
2
|
-
export const __metadata = { PACKAGE_NAME: '@wix/motion' };
|
|
3
|
-
export function createProduct(httpClient) {
|
|
4
|
-
return (options) => universalCreateProduct(options,
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
{ httpClient });
|
|
7
|
-
}
|
|
8
|
-
export function deleteProduct(httpClient) {
|
|
9
|
-
return (productId) => universalDeleteProduct(productId,
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
{ httpClient });
|
|
12
|
-
}
|
|
13
|
-
export function updateProduct(httpClient) {
|
|
14
|
-
return (productId, options) => universalUpdateProduct(productId, options,
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
{ httpClient });
|
|
17
|
-
}
|
|
18
|
-
export function getProduct(httpClient) {
|
|
19
|
-
return (productId) => universalGetProduct(productId,
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
{ httpClient });
|
|
22
|
-
}
|
|
23
|
-
export function getProductsStartWith(httpClient) {
|
|
24
|
-
return (title, options) => universalGetProductsStartWith(title, options,
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
{ httpClient });
|
|
27
|
-
}
|
|
28
|
-
export function queryProducts(httpClient) {
|
|
29
|
-
return (options) => universalQueryProducts(options,
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
{ httpClient });
|
|
32
|
-
}
|
|
33
|
-
export { SubdivisionType, SortOrder, } from './metroinspector-v1-product.universal';
|
|
34
|
-
//# sourceMappingURL=metroinspector-v1-product.public.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metroinspector-v1-product.public.js","sourceRoot":"","sources":["../../../src/metroinspector-v1-product.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,IAAI,sBAAsB,EACvC,aAAa,IAAI,sBAAsB,EACvC,aAAa,IAAI,sBAAsB,EACvC,UAAU,IAAI,mBAAmB,EACjC,oBAAoB,IAAI,6BAA6B,EACrD,aAAa,IAAI,sBAAsB,GAOxC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AAE1D,MAAM,UAAU,aAAa,CAAC,UAAsB;IAClD,OAAO,CACL,OAAmE,EACnE,EAAE,CACF,sBAAsB,CACpB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU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