@wix/motion 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/build/cjs/index.d.ts +3 -0
  2. package/build/cjs/index.js +26 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/src/alarm-v1-alarm.http.d.ts +4 -0
  5. package/build/cjs/src/alarm-v1-alarm.http.js +75 -0
  6. package/build/cjs/src/alarm-v1-alarm.http.js.map +1 -0
  7. package/build/cjs/src/alarm-v1-alarm.public.d.ts +4 -0
  8. package/build/cjs/src/alarm-v1-alarm.public.js +11 -0
  9. package/build/cjs/src/alarm-v1-alarm.public.js.map +1 -0
  10. package/build/cjs/src/alarm-v1-alarm.types.d.ts +14 -0
  11. package/build/cjs/src/alarm-v1-alarm.types.js +3 -0
  12. package/build/cjs/src/alarm-v1-alarm.types.js.map +1 -0
  13. package/build/cjs/src/alarm-v1-alarm.universal.d.ts +29 -0
  14. package/build/cjs/src/alarm-v1-alarm.universal.js +100 -0
  15. package/build/cjs/src/alarm-v1-alarm.universal.js.map +1 -0
  16. package/build/cjs/src/metroinspector-v1-echo.http.d.ts +4 -0
  17. package/build/cjs/src/metroinspector-v1-echo.http.js +75 -0
  18. package/build/cjs/src/metroinspector-v1-echo.http.js.map +1 -0
  19. package/build/cjs/src/metroinspector-v1-echo.public.d.ts +4 -0
  20. package/build/cjs/src/metroinspector-v1-echo.public.js +11 -0
  21. package/build/cjs/src/metroinspector-v1-echo.public.js.map +1 -0
  22. package/build/cjs/src/metroinspector-v1-echo.types.d.ts +31 -0
  23. package/build/cjs/src/metroinspector-v1-echo.types.js +3 -0
  24. package/build/cjs/src/metroinspector-v1-echo.types.js.map +1 -0
  25. package/build/cjs/src/metroinspector-v1-echo.universal.d.ts +51 -0
  26. package/build/cjs/src/metroinspector-v1-echo.universal.js +106 -0
  27. package/build/cjs/src/metroinspector-v1-echo.universal.js.map +1 -0
  28. package/build/cjs/src/metroinspector-v1-product.http.d.ts +8 -0
  29. package/build/cjs/src/metroinspector-v1-product.http.js +257 -0
  30. package/build/cjs/src/metroinspector-v1-product.http.js.map +1 -0
  31. package/build/cjs/src/metroinspector-v1-product.public.d.ts +9 -0
  32. package/build/cjs/src/metroinspector-v1-product.public.js +38 -0
  33. package/build/cjs/src/metroinspector-v1-product.public.js.map +1 -0
  34. package/build/cjs/src/metroinspector-v1-product.types.d.ts +280 -0
  35. package/build/cjs/src/metroinspector-v1-product.types.js +25 -0
  36. package/build/cjs/src/metroinspector-v1-product.types.js.map +1 -0
  37. package/build/cjs/src/metroinspector-v1-product.universal.d.ts +296 -0
  38. package/build/cjs/src/metroinspector-v1-product.universal.js +352 -0
  39. package/build/cjs/src/metroinspector-v1-product.universal.js.map +1 -0
  40. package/build/es/index.d.ts +3 -0
  41. package/build/es/index.js +4 -0
  42. package/build/es/index.js.map +1 -0
  43. package/build/es/src/alarm-v1-alarm.http.d.ts +4 -0
  44. package/build/es/src/alarm-v1-alarm.http.js +71 -0
  45. package/build/es/src/alarm-v1-alarm.http.js.map +1 -0
  46. package/build/es/src/alarm-v1-alarm.public.d.ts +4 -0
  47. package/build/es/src/alarm-v1-alarm.public.js +7 -0
  48. package/build/es/src/alarm-v1-alarm.public.js.map +1 -0
  49. package/build/es/src/alarm-v1-alarm.types.d.ts +14 -0
  50. package/build/es/src/alarm-v1-alarm.types.js +2 -0
  51. package/build/es/src/alarm-v1-alarm.types.js.map +1 -0
  52. package/build/es/src/alarm-v1-alarm.universal.d.ts +29 -0
  53. package/build/es/src/alarm-v1-alarm.universal.js +77 -0
  54. package/build/es/src/alarm-v1-alarm.universal.js.map +1 -0
  55. package/build/es/src/metroinspector-v1-echo.http.d.ts +4 -0
  56. package/build/es/src/metroinspector-v1-echo.http.js +71 -0
  57. package/build/es/src/metroinspector-v1-echo.http.js.map +1 -0
  58. package/build/es/src/metroinspector-v1-echo.public.d.ts +4 -0
  59. package/build/es/src/metroinspector-v1-echo.public.js +7 -0
  60. package/build/es/src/metroinspector-v1-echo.public.js.map +1 -0
  61. package/build/es/src/metroinspector-v1-echo.types.d.ts +31 -0
  62. package/build/es/src/metroinspector-v1-echo.types.js +2 -0
  63. package/build/es/src/metroinspector-v1-echo.types.js.map +1 -0
  64. package/build/es/src/metroinspector-v1-echo.universal.d.ts +51 -0
  65. package/build/es/src/metroinspector-v1-echo.universal.js +83 -0
  66. package/build/es/src/metroinspector-v1-echo.universal.js.map +1 -0
  67. package/build/es/src/metroinspector-v1-product.http.d.ts +8 -0
  68. package/build/es/src/metroinspector-v1-product.http.js +249 -0
  69. package/build/es/src/metroinspector-v1-product.http.js.map +1 -0
  70. package/build/es/src/metroinspector-v1-product.public.d.ts +9 -0
  71. package/build/es/src/metroinspector-v1-product.public.js +28 -0
  72. package/build/es/src/metroinspector-v1-product.public.js.map +1 -0
  73. package/build/es/src/metroinspector-v1-product.types.d.ts +280 -0
  74. package/build/es/src/metroinspector-v1-product.types.js +22 -0
  75. package/build/es/src/metroinspector-v1-product.types.js.map +1 -0
  76. package/build/es/src/metroinspector-v1-product.universal.d.ts +296 -0
  77. package/build/es/src/metroinspector-v1-product.universal.js +325 -0
  78. package/build/es/src/metroinspector-v1-product.universal.js.map +1 -0
  79. package/package.json +37 -0
@@ -0,0 +1,296 @@
1
+ export declare const __debug: {
2
+ verboseLogging: {
3
+ on: () => boolean;
4
+ off: () => boolean;
5
+ };
6
+ };
7
+ /** Physical address */
8
+ export interface Address extends AddressStreetOneOf {
9
+ /** Country code. */
10
+ country?: string | null;
11
+ /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
12
+ subdivision?: string | null;
13
+ /** City name. */
14
+ city?: string | null;
15
+ /** Zip/postal code. */
16
+ postalCode?: string | null;
17
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
18
+ addressLine2?: string | null;
19
+ /** Street name and number. */
20
+ streetAddress?: StreetAddress;
21
+ /** Main address line, usually street and number as free text. */
22
+ addressLine1?: string | null;
23
+ }
24
+ /** @oneof */
25
+ export interface AddressStreetOneOf {
26
+ /** Street name and number. */
27
+ streetAddress?: StreetAddress;
28
+ /** Main address line, usually street and number as free text. */
29
+ addressLine?: string | null;
30
+ }
31
+ export interface StreetAddress {
32
+ /** Street number. */
33
+ number?: string;
34
+ /** Street name. */
35
+ name?: string;
36
+ }
37
+ export interface AddressLocation {
38
+ /** Address latitude. */
39
+ latitude?: number | null;
40
+ /** Address longitude. */
41
+ longitude?: number | null;
42
+ }
43
+ export interface Subdivision {
44
+ /** Short subdivision code. */
45
+ code?: string;
46
+ /** Subdivision full name. */
47
+ name?: string;
48
+ }
49
+ export declare enum SubdivisionType {
50
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
51
+ /** State */
52
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
53
+ /** County */
54
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
55
+ /** City/town */
56
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
57
+ /** Neighborhood/quarter */
58
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
59
+ /** Street/block */
60
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
61
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
62
+ COUNTRY = "COUNTRY"
63
+ }
64
+ export interface VideoResolution {
65
+ /** Video URL. */
66
+ url?: string;
67
+ /** Video height. */
68
+ height?: number;
69
+ /** Video width. */
70
+ width?: number;
71
+ /** Video format for example, mp4, hls. */
72
+ format?: string;
73
+ }
74
+ export interface PageLink {
75
+ /** The page id we want from the site */
76
+ pageId?: string;
77
+ /** Where this link should open, supports _self and _blank or any name the user chooses. _self means same page, _blank means new page. */
78
+ target?: string | null;
79
+ }
80
+ export interface Variant {
81
+ name?: string;
82
+ value?: string;
83
+ image?: string;
84
+ }
85
+ export interface MyAddress {
86
+ country?: string | null;
87
+ subdivision?: string | null;
88
+ city?: string | null;
89
+ postalCode?: string | null;
90
+ streetAddress?: StreetAddress;
91
+ }
92
+ export interface CreateProductRequest {
93
+ product?: Product;
94
+ }
95
+ export interface CreateProductResponse {
96
+ product?: Product;
97
+ }
98
+ export interface ProductExistsError {
99
+ productId?: string;
100
+ }
101
+ export interface DeleteProductRequest {
102
+ productId: string;
103
+ }
104
+ export interface DeleteProductResponse {
105
+ }
106
+ export interface UpdateProductRequest {
107
+ productId: string;
108
+ product?: Product;
109
+ }
110
+ export interface UpdateProductResponse {
111
+ product?: Product;
112
+ }
113
+ export interface GetProductRequest {
114
+ productId: string;
115
+ }
116
+ export interface GetProductResponse {
117
+ product?: Product;
118
+ }
119
+ export interface QueryProductsRequest {
120
+ query?: QueryV2;
121
+ /** Whether variants should be included in the response. */
122
+ includeVariants?: boolean;
123
+ /** Whether hidden products should be included in the response. Requires permissions to manage products. */
124
+ includeHiddenProducts?: boolean;
125
+ /** Whether merchant specific data should be included in the response. Requires permissions to manage products. */
126
+ includeMerchantSpecificData?: boolean;
127
+ }
128
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
129
+ /**
130
+ * Filter object in the following format:
131
+ * `"filter" : {
132
+ * "fieldName1": "value1",
133
+ * "fieldName2":{"$operator":"value2"}
134
+ * }`
135
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
136
+ */
137
+ filter?: Record<string, any> | null;
138
+ /**
139
+ * Sort object in the following format:
140
+ * `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
141
+ */
142
+ sort?: Sorting[];
143
+ /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
144
+ fields?: string[];
145
+ /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
146
+ fieldsets?: string[];
147
+ /** Paging options to limit and skip the number of items. */
148
+ paging?: Paging;
149
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
150
+ cursorPaging?: CursorPaging;
151
+ }
152
+ /** @oneof */
153
+ export interface QueryV2PagingMethodOneOf {
154
+ /** Paging options to limit and skip the number of items. */
155
+ paging?: Paging;
156
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
157
+ cursorPaging?: CursorPaging;
158
+ }
159
+ export interface Sorting {
160
+ /** Name of the field to sort by. */
161
+ fieldName?: string;
162
+ /** Sort order. */
163
+ order?: SortOrder;
164
+ }
165
+ export declare enum SortOrder {
166
+ ASC = "ASC",
167
+ DESC = "DESC"
168
+ }
169
+ export interface Paging {
170
+ /** Number of items to load. */
171
+ limit?: number | null;
172
+ /** Number of items to skip in the current sort order. */
173
+ offset?: number | null;
174
+ }
175
+ export interface CursorPaging {
176
+ /** Number of items to load. */
177
+ limit?: number | null;
178
+ /**
179
+ * Pointer to the next or previous page in the list of results.
180
+ *
181
+ * You can get the relevant cursor token
182
+ * from the `pagingMetadata` object in the previous call's response.
183
+ * Not relevant for the first request.
184
+ */
185
+ cursor?: string | null;
186
+ }
187
+ export interface QueryProductsResponse {
188
+ products?: Product[];
189
+ metadata?: PagingMetadataV2;
190
+ }
191
+ export interface PagingMetadataV2 {
192
+ /** Number of items returned in the response. */
193
+ count?: number | null;
194
+ /** Offset that was requested. */
195
+ offset?: number | null;
196
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
197
+ total?: number | null;
198
+ /** Flag that indicates the server failed to calculate the `total` field. */
199
+ tooManyToCount?: boolean | null;
200
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
201
+ cursors?: Cursors;
202
+ }
203
+ export interface Cursors {
204
+ /** Cursor pointing to next page in the list of results. */
205
+ next?: string | null;
206
+ /** Cursor pointing to previous page in the list of results. */
207
+ prev?: string | null;
208
+ }
209
+ export declare type Product = {
210
+ _id: string;
211
+ name: string;
212
+ collectionId: string;
213
+ _createdDate: Date;
214
+ modifiedDate: Date;
215
+ image: string;
216
+ address: Address;
217
+ document: string;
218
+ video: string;
219
+ pageLink: PageLink;
220
+ audio: string;
221
+ color: string | null;
222
+ localDate: string | null;
223
+ localTime: string | null;
224
+ localDateTime: string | null;
225
+ variants: Variant[];
226
+ mainVariant: Variant;
227
+ customAddress: MyAddress;
228
+ guid: string;
229
+ };
230
+ /**
231
+ * Creating a product
232
+ * @public
233
+ * @requiredField options.product.title
234
+ */
235
+ export declare function createProduct(options?: CreateProductOptions): Promise<Product>;
236
+ export interface CreateProductOptions {
237
+ product?: Product;
238
+ }
239
+ /** @public
240
+ * @requiredField productId
241
+ */
242
+ export declare function deleteProduct(productId: string): Promise<void>;
243
+ /** @public
244
+ * @requiredField options.product._id
245
+ * @requiredField productId
246
+ */
247
+ export declare function updateProduct(productId: string, options?: UpdateProductOptions): Promise<Product>;
248
+ export interface UpdateProductOptions {
249
+ product?: Product;
250
+ }
251
+ /** @public
252
+ * @requiredField productId
253
+ */
254
+ export declare function getProduct(productId: string): Promise<Product>;
255
+ /** @public */
256
+ export declare function queryProducts(): ProductsQueryBuilder;
257
+ interface QueryCursorResult {
258
+ hasNext: () => boolean;
259
+ hasPrev: () => boolean;
260
+ length: number;
261
+ pageSize: number;
262
+ }
263
+ export interface ProductsQueryResult extends QueryCursorResult {
264
+ items: Product[];
265
+ query: ProductsQueryBuilder;
266
+ next: () => Promise<ProductsQueryResult>;
267
+ prev: () => Promise<ProductsQueryResult>;
268
+ }
269
+ export interface ProductsQueryBuilder {
270
+ /** @param propertyName - Property whose value is compared with `value`.
271
+ * @param value - Value to compare against.
272
+ */
273
+ eq: (propertyName: string, value: any) => ProductsQueryBuilder;
274
+ /** @param propertyName - Property whose value is compared with `value`.
275
+ * @param value - Value to compare against.
276
+ */
277
+ ne: (propertyName: string, value: any) => ProductsQueryBuilder;
278
+ /** @param propertyName - Property whose value is compared with `string`.
279
+ * @param string - String to compare against. Case-insensitive.
280
+ */
281
+ startsWith: (propertyName: string, value: string) => ProductsQueryBuilder;
282
+ /** @param propertyName - Property whose value is compared with `values`.
283
+ * @param values - List of values to compare against.
284
+ */
285
+ hasSome: (propertyName: string, value: any[]) => ProductsQueryBuilder;
286
+ in: (propertyName: string, value: any) => ProductsQueryBuilder;
287
+ exists: (propertyName: string, value: boolean) => ProductsQueryBuilder;
288
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
289
+ ascending: (...propertyNames: string[]) => ProductsQueryBuilder;
290
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
291
+ descending: (...propertyNames: string[]) => ProductsQueryBuilder;
292
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
293
+ limit: (limit: number) => ProductsQueryBuilder;
294
+ find: () => Promise<ProductsQueryResult>;
295
+ }
296
+ export {};
@@ -0,0 +1,352 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.queryProducts = exports.getProduct = exports.updateProduct = exports.deleteProduct = exports.createProduct = exports.SortOrder = exports.SubdivisionType = exports.__debug = void 0;
32
+ const velo_1 = require("@wix/metro-runtime/velo");
33
+ const ambassadorWixMetroinspectorV1Product = __importStar(require("./metroinspector-v1-product.http"));
34
+ // @ts-ignore
35
+ const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
36
+ let __verbose = false;
37
+ function __log(...args) {
38
+ __verbose && console.log(...args);
39
+ }
40
+ function __inspect(obj) {
41
+ return obj;
42
+ }
43
+ exports.__debug = {
44
+ verboseLogging: {
45
+ on: () => (__verbose = true),
46
+ off: () => (__verbose = false),
47
+ },
48
+ };
49
+ const _toVeloEntity = {
50
+ _id: '$.id',
51
+ name: '$.title',
52
+ collectionId: '$.collectionId',
53
+ _createdDate: '$.createdDate',
54
+ modifiedDate: '$.modifiedDate',
55
+ image: '$.image',
56
+ address: '$.address',
57
+ document: '$.document',
58
+ video: '$.video',
59
+ pageLink: '$.pageLink',
60
+ audio: '$.audio',
61
+ color: '$.color',
62
+ localDate: '$.localDate',
63
+ localTime: '$.localTime',
64
+ localDateTime: '$.localDateTime',
65
+ variants: '$.variants',
66
+ mainVariant: '$.mainVariant',
67
+ customAddress: '$.customAddress',
68
+ guid: '$.guid',
69
+ };
70
+ const _fromVeloEntity = {
71
+ id: '$._id',
72
+ title: '$.name',
73
+ collectionId: '$.collectionId',
74
+ createdDate: '$._createdDate',
75
+ modifiedDate: '$.modifiedDate',
76
+ image: '$.image',
77
+ address: '$.address',
78
+ document: '$.document',
79
+ video: '$.video',
80
+ pageLink: '$.pageLink',
81
+ audio: '$.audio',
82
+ color: '$.color',
83
+ localDate: '$.localDate',
84
+ localTime: '$.localTime',
85
+ localDateTime: '$.localDateTime',
86
+ variants: '$.variants',
87
+ mainVariant: '$.mainVariant',
88
+ customAddress: '$.customAddress',
89
+ guid: '$.guid',
90
+ };
91
+ var SubdivisionType;
92
+ (function (SubdivisionType) {
93
+ SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
94
+ /** State */
95
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
96
+ /** County */
97
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
98
+ /** City/town */
99
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
100
+ /** Neighborhood/quarter */
101
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
102
+ /** Street/block */
103
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
104
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
105
+ SubdivisionType["COUNTRY"] = "COUNTRY";
106
+ })(SubdivisionType = exports.SubdivisionType || (exports.SubdivisionType = {}));
107
+ var SortOrder;
108
+ (function (SortOrder) {
109
+ SortOrder["ASC"] = "ASC";
110
+ SortOrder["DESC"] = "DESC";
111
+ })(SortOrder = exports.SortOrder || (exports.SortOrder = {}));
112
+ const _createProductRequest = { product: '_product' };
113
+ const _createProductResponse = { product: '_product' };
114
+ const _deleteProductRequest = {};
115
+ const _deleteProductResponse = {};
116
+ const _getProductRequest = {};
117
+ const _getProductResponse = { product: '_product' };
118
+ const _product = {
119
+ image: 'wix.common.Image',
120
+ address: 'wix.common.Address',
121
+ document: 'wix.common.Document',
122
+ video: 'wix.common.VideoV2',
123
+ audio: 'wix.common.Audio',
124
+ customAddress: 'wix.common.Address',
125
+ variants: '_variant',
126
+ mainVariant: '_variant',
127
+ };
128
+ const _queryProductsRequest = {};
129
+ const _queryProductsResponse = { products: '_product' };
130
+ const _updateProductRequest = { product: '_product' };
131
+ const _updateProductResponse = { product: '_product' };
132
+ const _variant = { image: 'wix.common.Image' };
133
+ /**
134
+ * Creating a product
135
+ * @public
136
+ * @requiredField options.product.title
137
+ */
138
+ function createProduct(options) {
139
+ return __awaiter(this, arguments, void 0, function* () {
140
+ const requestTransformation = { product: '$[0].product' };
141
+ const responseTransformation = '$.product';
142
+ // @ts-ignore
143
+ const httpClient = arguments[1].httpClient;
144
+ const { toAmbassadorRequest } = velo_1.serializer({
145
+ rootSchema: _createProductRequest,
146
+ depSchemas: { _product, _variant },
147
+ fqdnTransformation: {
148
+ paths: [...['product']],
149
+ transformation: _fromVeloEntity,
150
+ },
151
+ customTransformation: requestTransformation,
152
+ });
153
+ const { fromJSON } = velo_1.serializer({
154
+ rootSchema: _createProductResponse,
155
+ depSchemas: { _product, _variant },
156
+ fqdnTransformation: {
157
+ paths: [...['product']],
158
+ transformation: _toVeloEntity,
159
+ },
160
+ customTransformation: responseTransformation,
161
+ });
162
+ const payload = toAmbassadorRequest([options]);
163
+ const reqOpts = ambassadorWixMetroinspectorV1Product.createProduct(payload);
164
+ __log(`"CreateProduct" sending request with: ${__inspect(reqOpts)}`);
165
+ try {
166
+ const { data } = yield httpClient.request(reqOpts);
167
+ return fromJSON(data);
168
+ }
169
+ catch (err) {
170
+ const transformedError = velo_1.transformError(err, requestTransformation, [
171
+ 'options',
172
+ ]);
173
+ throw transformedError;
174
+ }
175
+ });
176
+ }
177
+ exports.createProduct = createProduct;
178
+ /** @public
179
+ * @requiredField productId
180
+ */
181
+ function deleteProduct(productId) {
182
+ return __awaiter(this, arguments, void 0, function* () {
183
+ const requestTransformation = { productId: '$[0]' };
184
+ const responseTransformation = '$';
185
+ // @ts-ignore
186
+ const httpClient = arguments[1].httpClient;
187
+ const { toAmbassadorRequest } = velo_1.serializer({
188
+ rootSchema: _deleteProductRequest,
189
+ depSchemas: {},
190
+ fqdnTransformation: {
191
+ paths: [],
192
+ transformation: _fromVeloEntity,
193
+ },
194
+ customTransformation: requestTransformation,
195
+ });
196
+ const { fromJSON } = velo_1.serializer({
197
+ rootSchema: _deleteProductResponse,
198
+ depSchemas: {},
199
+ fqdnTransformation: {
200
+ paths: [],
201
+ transformation: _toVeloEntity,
202
+ },
203
+ customTransformation: responseTransformation,
204
+ });
205
+ const payload = toAmbassadorRequest([productId]);
206
+ const reqOpts = ambassadorWixMetroinspectorV1Product.deleteProduct(payload);
207
+ __log(`"DeleteProduct" sending request with: ${__inspect(reqOpts)}`);
208
+ try {
209
+ const { data } = yield httpClient.request(reqOpts);
210
+ return fromJSON(data);
211
+ }
212
+ catch (err) {
213
+ const transformedError = velo_1.transformError(err, requestTransformation, [
214
+ 'productId',
215
+ ]);
216
+ throw transformedError;
217
+ }
218
+ });
219
+ }
220
+ exports.deleteProduct = deleteProduct;
221
+ /** @public
222
+ * @requiredField options.product._id
223
+ * @requiredField productId
224
+ */
225
+ function updateProduct(productId, options) {
226
+ return __awaiter(this, arguments, void 0, function* () {
227
+ const requestTransformation = { productId: '$[0]', product: '$[1].product' };
228
+ const responseTransformation = '$.product';
229
+ // @ts-ignore
230
+ const httpClient = arguments[2].httpClient;
231
+ const { toAmbassadorRequest } = velo_1.serializer({
232
+ rootSchema: _updateProductRequest,
233
+ depSchemas: { _product, _variant },
234
+ fqdnTransformation: {
235
+ paths: [...['product']],
236
+ transformation: _fromVeloEntity,
237
+ },
238
+ customTransformation: requestTransformation,
239
+ });
240
+ const { fromJSON } = velo_1.serializer({
241
+ rootSchema: _updateProductResponse,
242
+ depSchemas: { _product, _variant },
243
+ fqdnTransformation: {
244
+ paths: [...['product']],
245
+ transformation: _toVeloEntity,
246
+ },
247
+ customTransformation: responseTransformation,
248
+ });
249
+ const payload = toAmbassadorRequest([productId, options]);
250
+ const reqOpts = ambassadorWixMetroinspectorV1Product.updateProduct(payload);
251
+ __log(`"UpdateProduct" sending request with: ${__inspect(reqOpts)}`);
252
+ try {
253
+ const { data } = yield httpClient.request(reqOpts);
254
+ return fromJSON(data);
255
+ }
256
+ catch (err) {
257
+ const transformedError = velo_1.transformError(err, requestTransformation, [
258
+ 'productId',
259
+ 'options',
260
+ ]);
261
+ throw transformedError;
262
+ }
263
+ });
264
+ }
265
+ exports.updateProduct = updateProduct;
266
+ /** @public
267
+ * @requiredField productId
268
+ */
269
+ function getProduct(productId) {
270
+ return __awaiter(this, arguments, void 0, function* () {
271
+ const requestTransformation = { productId: '$[0]' };
272
+ const responseTransformation = '$.product';
273
+ // @ts-ignore
274
+ const httpClient = arguments[1].httpClient;
275
+ const { toAmbassadorRequest } = velo_1.serializer({
276
+ rootSchema: _getProductRequest,
277
+ depSchemas: {},
278
+ fqdnTransformation: {
279
+ paths: [],
280
+ transformation: _fromVeloEntity,
281
+ },
282
+ customTransformation: requestTransformation,
283
+ });
284
+ const { fromJSON } = velo_1.serializer({
285
+ rootSchema: _getProductResponse,
286
+ depSchemas: { _product, _variant },
287
+ fqdnTransformation: {
288
+ paths: [...['product']],
289
+ transformation: _toVeloEntity,
290
+ },
291
+ customTransformation: responseTransformation,
292
+ });
293
+ const payload = toAmbassadorRequest([productId]);
294
+ const reqOpts = ambassadorWixMetroinspectorV1Product.getProduct(payload);
295
+ __log(`"GetProduct" sending request with: ${__inspect(reqOpts)}`);
296
+ try {
297
+ const { data } = yield httpClient.request(reqOpts);
298
+ return fromJSON(data);
299
+ }
300
+ catch (err) {
301
+ const transformedError = velo_1.transformError(err, requestTransformation, [
302
+ 'productId',
303
+ ]);
304
+ throw transformedError;
305
+ }
306
+ });
307
+ }
308
+ exports.getProduct = getProduct;
309
+ /** @public */
310
+ function queryProducts() {
311
+ const requestTransformation = { '*': '$[1]', query: '$[0]' };
312
+ const responseTransformation = {
313
+ items: '$.products',
314
+ pagingMetadata: '$.metadata',
315
+ };
316
+ // @ts-ignore
317
+ const httpClient = arguments[0].httpClient;
318
+ const { toAmbassadorRequest } = velo_1.serializer({
319
+ rootSchema: _queryProductsRequest,
320
+ depSchemas: {},
321
+ fqdnTransformation: {
322
+ paths: [],
323
+ transformation: _fromVeloEntity,
324
+ },
325
+ customTransformation: requestTransformation,
326
+ });
327
+ const { fromJSON } = velo_1.serializer({
328
+ rootSchema: _queryProductsResponse,
329
+ depSchemas: { _product, _variant },
330
+ fqdnTransformation: {
331
+ paths: [...['Array#products']],
332
+ transformation: _toVeloEntity,
333
+ },
334
+ customTransformation: responseTransformation,
335
+ });
336
+ return motion_edm_autogen_query_wrapper_1.wrapWithQueryBuilder({
337
+ func: (payload) => {
338
+ const reqOpts = ambassadorWixMetroinspectorV1Product.queryProducts(payload);
339
+ return httpClient.request(reqOpts);
340
+ },
341
+ requestTransformer: (...args) => toAmbassadorRequest(args),
342
+ responseTransformer: ({ data }) => fromJSON(data),
343
+ errorTransformer: (err) => {
344
+ const transformedError = velo_1.transformError(err, requestTransformation);
345
+ throw transformedError;
346
+ },
347
+ pagingMethod: 'CURSOR',
348
+ transformationPaths: velo_1.resolveQueryFieldsTransformationPaths(_toVeloEntity),
349
+ })({ cursorWithEmptyFilterAndSort: true });
350
+ }
351
+ exports.queryProducts = queryProducts;
352
+ //# sourceMappingURL=metroinspector-v1-product.universal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metroinspector-v1-product.universal.js","sourceRoot":"","s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AAM,EAAE,QAAQ,EAAE,GAAG,iBAAU,CAAC;QAC9B,UAAU,EAAE,sBAAsB;QAClC,UAAU,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE;QAClC,kBAAkB,EAAE;YAClB,KAAK,EAAE,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;YAC9B,cAAc,EAAE,aAAa;SAC9B;QACD,oBAAoB,EAAE,sBAAsB;KAC7C,CAAC,CAAC;IAEH,OAAO,uDAAoB,CAAC;QAC1B,IAAI,EAAE,CAAC,OAAY,EAAE,EAAE;YACrB,MAAM,OAAO,GACX,oCAAoC,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAE9D,OAAO,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;QACD,kBAAkB,EAAE,CAAC,GAAG,IAAW,EAAE,EAAE,CAAC,mBAAmB,CAAC,IAAI,CAAC;QACjE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC;QACtD,gBAAgB,EAAE,CAAC,GAAQ,EAAE,EAAE;YAC7B,MAAM,gBAAgB,GAAG,qBAAc,CAAC,GAAG,EAAE,qBAAqB,CAAC,CAAC;YAEpE,MAAM,gBAAgB,CAAC;QACzB,CAAC;QACD,YAAY,EAAE,QAAQ;QACtB,mBAAmB,EAAE,4CAAqC,CAAC,aAAa,CAAC;KAC1E,CAAC,CAAC,EAAE,4BAA4B,EAAE,IAAI,EAAE,CAAC,CAAC;AAC7C,CAAC;AA/CD,sCA+CC"}
@@ -0,0 +1,3 @@
1
+ export * as alarms from './src/alarm-v1-alarm.public';
2
+ export * as metroinspector from './src/metroinspector-v1-echo.public';
3
+ export * as products from './src/metroinspector-v1-product.public';
@@ -0,0 +1,4 @@
1
+ export * as alarms from './src/alarm-v1-alarm.public';
2
+ export * as metroinspector from './src/metroinspector-v1-echo.public';
3
+ export * as products from './src/metroinspector-v1-product.public';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC;AACtD,OAAO,KAAK,cAAc,MAAM,qCAAqC,CAAC;AACtE,OAAO,KAAK,QAAQ,MAAM,wCAAwC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { RequestOptionsFactory } from '@wix/sdk-types';
2
+ import { AlarmRequest, AlarmResponse } from './alarm-v1-alarm.types';
3
+ /** sets up an alarm after {seconds} */
4
+ export declare function alarm(payload: AlarmRequest): RequestOptionsFactory<AlarmResponse>;