@wix/motion 1.0.19 → 1.0.21

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.
@@ -1,5 +1,5 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { AlarmOptions, UpdateAlarmOptions } from './alarm-v1-alarm.universal';
2
+ import { AlarmOptions, UpdateAlarm } from './alarm-v1-alarm.universal';
3
3
  export declare function alarm(httpClient: HttpClient): (seconds: number, options?: AlarmOptions | undefined) => Promise<import("./alarm-v1-alarm.universal").AlarmResponse>;
4
- export declare function updateAlarm(httpClient: HttpClient): (_id: string, options?: UpdateAlarmOptions | undefined) => Promise<import("./alarm-v1-alarm.universal").UpdateAlarmResponse>;
5
- export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarmOptions, } from './alarm-v1-alarm.universal';
4
+ export declare function updateAlarm(httpClient: HttpClient): (_id: string, alarm: UpdateAlarm) => Promise<import("./alarm-v1-alarm.universal").UpdateAlarmResponse>;
5
+ export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarm, } from './alarm-v1-alarm.universal';
@@ -9,7 +9,7 @@ function alarm(httpClient) {
9
9
  }
10
10
  exports.alarm = alarm;
11
11
  function updateAlarm(httpClient) {
12
- return (_id, options) => (0, alarm_v1_alarm_universal_1.updateAlarm)(_id, options,
12
+ return (_id, alarm) => (0, alarm_v1_alarm_universal_1.updateAlarm)(_id, alarm,
13
13
  // @ts-ignore
14
14
  { httpClient });
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-v1-alarm.public.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.public.ts"],"names":[],"mappings":";;;AACA,yEAKoC;AAEpC,SAAgB,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAe,EAAE,OAAsB,EAAE,EAAE,CACjD,IAAA,gCAAc,EACZ,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sBAQC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,OAA4B,EAAE,EAAE,CACnD,IAAA,sCAAoB,EAClB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC"}
1
+ {"version":3,"file":"alarm-v1-alarm.public.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.public.ts"],"names":[],"mappings":";;;AACA,yEAKoC;AAEpC,SAAgB,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAe,EAAE,OAAsB,EAAE,EAAE,CACjD,IAAA,gCAAc,EACZ,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,sBAQC;AAED,SAAgB,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,KAAkB,EAAE,EAAE,CACzC,IAAA,sCAAoB,EAClB,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC"}
@@ -14,8 +14,7 @@ export interface AlarmTriggered {
14
14
  export interface AlarmSnoozed {
15
15
  }
16
16
  export interface UpdateAlarmRequest {
17
- alarm?: AlarmMessage;
18
- fieldMask?: string[];
17
+ alarm: AlarmMessage;
19
18
  }
20
19
  export interface UpdateAlarmResponse {
21
20
  alarm?: AlarmMessage;
@@ -20,8 +20,7 @@ export interface AlarmTriggered {
20
20
  export interface AlarmSnoozed {
21
21
  }
22
22
  export interface UpdateAlarmRequest {
23
- alarm?: AlarmMessage;
24
- fieldMask?: string[];
23
+ alarm: AlarmMessage;
25
24
  }
26
25
  export interface UpdateAlarmResponse {
27
26
  alarm?: AlarmMessage;
@@ -41,12 +40,10 @@ export interface AlarmOptions {
41
40
  * @public
42
41
  * @documentationMaturity preview
43
42
  * @requiredField _id
43
+ * @requiredField alarm
44
44
  */
45
- export declare function updateAlarm(_id: string, options?: UpdateAlarmOptions): Promise<UpdateAlarmResponse>;
46
- export interface UpdateAlarmOptions {
47
- alarm: {
48
- _id?: string;
49
- seconds?: number;
50
- };
51
- fieldMask?: string[];
45
+ export declare function updateAlarm(_id: string, alarm: UpdateAlarm): Promise<UpdateAlarmResponse>;
46
+ export interface UpdateAlarm {
47
+ _id?: string;
48
+ seconds?: number;
52
49
  }
@@ -109,14 +109,12 @@ exports.alarm = alarm;
109
109
  * @public
110
110
  * @documentationMaturity preview
111
111
  * @requiredField _id
112
+ * @requiredField alarm
112
113
  */
113
- function updateAlarm(_id, options) {
114
+ function updateAlarm(_id, alarm) {
114
115
  var _a, _b, _c;
115
116
  return __awaiter(this, arguments, void 0, function* () {
116
- const requestTransformation = {
117
- alarm: { '*': '$[1].alarm', id: '$[0]' },
118
- fieldMask: '$[1].fieldMask',
119
- };
117
+ const requestTransformation = { alarm: { '*': '$[1]', id: '$[0]' } };
120
118
  const responseTransformation = '$';
121
119
  // @ts-ignore
122
120
  const { httpClient, sideEffects } = arguments[2];
@@ -138,7 +136,7 @@ function updateAlarm(_id, options) {
138
136
  },
139
137
  customTransformation: responseTransformation,
140
138
  });
141
- const payload = toAmbassadorRequest([_id, options]);
139
+ const payload = toAmbassadorRequest([_id, alarm]);
142
140
  const reqOpts = ambassadorWixAlarmV1Alarm.updateAlarm(payload);
143
141
  __log(`"UpdateAlarm" sending request with: ${__inspect(reqOpts)}`);
144
142
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
@@ -150,7 +148,7 @@ function updateAlarm(_id, options) {
150
148
  catch (err) {
151
149
  const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
152
150
  '_id',
153
- 'options',
151
+ 'alarm',
154
152
  ]);
155
153
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
156
154
  throw transformedError;
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-v1-alarm.universal.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,iFAAmE;AAEnE,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA6B5B,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,cAAc,GAAG,EAAE,CAAC;AAC1B,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAC/B,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEhC;;;;;GAKG;AACH,SAAsB,KAAK,CACzB,OAAe,EACf,OAAsB;;;QAEtB,MAAM,qBAAqB,GAAG;YAC5B,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,iBAAiB;SAC9B,CAAC;QACF,MAAM,sBAAsB,GAAG,GAAG,CAAC;QAEnC,aAAa;QACb,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAC;QAEF,MAAM,EAAE,mBAAmB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M,OAAO,GAAG,mBAAmB,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;QAElD,MAAM,OAAO,GAAG,yBAAyB,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAE/D,KAAK,CAAC,uCAAuC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAEnE,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,IAAA,qBAAc,EAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,OAAO;aACR,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AAtDD,kCAsDC"}
@@ -45,6 +45,10 @@ export interface Image {
45
45
  }
46
46
  /** Physical address */
47
47
  export interface Address extends AddressStreetOneOf {
48
+ /** Street name and number. */
49
+ streetAddress?: StreetAddress;
50
+ /** Main address line, usually street and number as free text. */
51
+ addressLine?: string | null;
48
52
  /** Country code. */
49
53
  country?: string | null;
50
54
  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -55,10 +59,6 @@ export interface Address extends AddressStreetOneOf {
55
59
  postalCode?: string | null;
56
60
  /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
57
61
  addressLine2?: string | null;
58
- /** Street name and number. */
59
- streetAddress?: StreetAddress;
60
- /** Main address line, usually street and number as free text. */
61
- addressLine?: string | null;
62
62
  }
63
63
  /** @oneof */
64
64
  export interface AddressStreetOneOf {
@@ -206,6 +206,10 @@ export interface QueryProductsRequest {
206
206
  includeMerchantSpecificData?: boolean;
207
207
  }
208
208
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
209
+ /** Paging options to limit and skip the number of items. */
210
+ paging?: Paging;
211
+ /** 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`. */
212
+ cursorPaging?: CursorPaging;
209
213
  /**
210
214
  * Filter object in the following format:
211
215
  * `"filter" : {
@@ -224,10 +228,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
224
228
  fields?: string[];
225
229
  /** 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. */
226
230
  fieldsets?: string[];
227
- /** Paging options to limit and skip the number of items. */
228
- paging?: Paging;
229
- /** 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`. */
230
- cursorPaging?: CursorPaging;
231
231
  }
232
232
  /** @oneof */
233
233
  export interface QueryV2PagingMethodOneOf {
@@ -6,6 +6,10 @@ export declare const __debug: {
6
6
  };
7
7
  /** Physical address */
8
8
  export interface Address extends AddressStreetOneOf {
9
+ /** Street name and number. */
10
+ streetAddress?: StreetAddress;
11
+ /** Main address line, usually street and number as free text. */
12
+ addressLine1?: string | null;
9
13
  /** Country code. */
10
14
  country?: string | null;
11
15
  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -16,10 +20,6 @@ export interface Address extends AddressStreetOneOf {
16
20
  postalCode?: string | null;
17
21
  /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
18
22
  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
23
  }
24
24
  /** @oneof */
25
25
  export interface AddressStreetOneOf {
@@ -134,6 +134,10 @@ export interface QueryProductsRequest {
134
134
  includeMerchantSpecificData?: boolean;
135
135
  }
136
136
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
137
+ /** Paging options to limit and skip the number of items. */
138
+ paging?: Paging;
139
+ /** 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`. */
140
+ cursorPaging?: CursorPaging;
137
141
  /**
138
142
  * Filter object in the following format:
139
143
  * `"filter" : {
@@ -152,10 +156,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
152
156
  fields?: string[];
153
157
  /** 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. */
154
158
  fieldsets?: string[];
155
- /** Paging options to limit and skip the number of items. */
156
- paging?: Paging;
157
- /** 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`. */
158
- cursorPaging?: CursorPaging;
159
159
  }
160
160
  /** @oneof */
161
161
  export interface QueryV2PagingMethodOneOf {
@@ -1,5 +1,5 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { AlarmOptions, UpdateAlarmOptions } from './alarm-v1-alarm.universal';
2
+ import { AlarmOptions, UpdateAlarm } from './alarm-v1-alarm.universal';
3
3
  export declare function alarm(httpClient: HttpClient): (seconds: number, options?: AlarmOptions | undefined) => Promise<import("./alarm-v1-alarm.universal").AlarmResponse>;
4
- export declare function updateAlarm(httpClient: HttpClient): (_id: string, options?: UpdateAlarmOptions | undefined) => Promise<import("./alarm-v1-alarm.universal").UpdateAlarmResponse>;
5
- export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarmOptions, } from './alarm-v1-alarm.universal';
4
+ export declare function updateAlarm(httpClient: HttpClient): (_id: string, alarm: UpdateAlarm) => Promise<import("./alarm-v1-alarm.universal").UpdateAlarmResponse>;
5
+ export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarm, } from './alarm-v1-alarm.universal';
@@ -5,7 +5,7 @@ export function alarm(httpClient) {
5
5
  { httpClient });
6
6
  }
7
7
  export function updateAlarm(httpClient) {
8
- return (_id, options) => universalUpdateAlarm(_id, options,
8
+ return (_id, alarm) => universalUpdateAlarm(_id, alarm,
9
9
  // @ts-ignore
10
10
  { httpClient });
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-v1-alarm.public.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,IAAI,cAAc,EAEvB,WAAW,IAAI,oBAAoB,GAEpC,MAAM,4BAA4B,CAAC;AAEpC,MAAM,UAAU,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAe,EAAE,OAAsB,EAAE,EAAE,CACjD,cAAc,CACZ,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,OAA4B,EAAE,EAAE,CACnD,oBAAoB,CAClB,GAAG,EACH,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"alarm-v1-alarm.public.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.public.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,IAAI,cAAc,EAEvB,WAAW,IAAI,oBAAoB,GAEpC,MAAM,4BAA4B,CAAC;AAEpC,MAAM,UAAU,KAAK,CAAC,UAAsB;IAC1C,OAAO,CAAC,OAAe,EAAE,OAAsB,EAAE,EAAE,CACjD,cAAc,CACZ,OAAO,EACP,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,UAAsB;IAChD,OAAO,CAAC,GAAW,EAAE,KAAkB,EAAE,EAAE,CACzC,oBAAoB,CAClB,GAAG,EACH,KAAK;IACL,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
@@ -14,8 +14,7 @@ export interface AlarmTriggered {
14
14
  export interface AlarmSnoozed {
15
15
  }
16
16
  export interface UpdateAlarmRequest {
17
- alarm?: AlarmMessage;
18
- fieldMask?: string[];
17
+ alarm: AlarmMessage;
19
18
  }
20
19
  export interface UpdateAlarmResponse {
21
20
  alarm?: AlarmMessage;
@@ -20,8 +20,7 @@ export interface AlarmTriggered {
20
20
  export interface AlarmSnoozed {
21
21
  }
22
22
  export interface UpdateAlarmRequest {
23
- alarm?: AlarmMessage;
24
- fieldMask?: string[];
23
+ alarm: AlarmMessage;
25
24
  }
26
25
  export interface UpdateAlarmResponse {
27
26
  alarm?: AlarmMessage;
@@ -41,12 +40,10 @@ export interface AlarmOptions {
41
40
  * @public
42
41
  * @documentationMaturity preview
43
42
  * @requiredField _id
43
+ * @requiredField alarm
44
44
  */
45
- export declare function updateAlarm(_id: string, options?: UpdateAlarmOptions): Promise<UpdateAlarmResponse>;
46
- export interface UpdateAlarmOptions {
47
- alarm: {
48
- _id?: string;
49
- seconds?: number;
50
- };
51
- fieldMask?: string[];
45
+ export declare function updateAlarm(_id: string, alarm: UpdateAlarm): Promise<UpdateAlarmResponse>;
46
+ export interface UpdateAlarm {
47
+ _id?: string;
48
+ seconds?: number;
52
49
  }
@@ -86,14 +86,12 @@ export function alarm(seconds, options) {
86
86
  * @public
87
87
  * @documentationMaturity preview
88
88
  * @requiredField _id
89
+ * @requiredField alarm
89
90
  */
90
- export function updateAlarm(_id, options) {
91
+ export function updateAlarm(_id, alarm) {
91
92
  var _a, _b, _c;
92
93
  return __awaiter(this, arguments, void 0, function* () {
93
- const requestTransformation = {
94
- alarm: { '*': '$[1].alarm', id: '$[0]' },
95
- fieldMask: '$[1].fieldMask',
96
- };
94
+ const requestTransformation = { alarm: { '*': '$[1]', id: '$[0]' } };
97
95
  const responseTransformation = '$';
98
96
  // @ts-ignore
99
97
  const { httpClient, sideEffects } = arguments[2];
@@ -115,7 +113,7 @@ export function updateAlarm(_id, options) {
115
113
  },
116
114
  customTransformation: responseTransformation,
117
115
  });
118
- const payload = toAmbassadorRequest([_id, options]);
116
+ const payload = toAmbassadorRequest([_id, alarm]);
119
117
  const reqOpts = ambassadorWixAlarmV1Alarm.updateAlarm(payload);
120
118
  __log(`"UpdateAlarm" sending request with: ${__inspect(reqOpts)}`);
121
119
  (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
@@ -127,7 +125,7 @@ export function updateAlarm(_id, options) {
127
125
  catch (err) {
128
126
  const transformedError = transformError(err, requestTransformation, [
129
127
  '_id',
130
- 'options',
128
+ 'alarm',
131
129
  ]);
132
130
  (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
133
131
  throw transformedError;
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-v1-alarm.universal.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.universal.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,yBAAyB,MAAM,uBAAuB,CAAC;AAEnE,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAA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AQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,KAAK;gBACL,OAAO;aACR,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
@@ -45,6 +45,10 @@ export interface Image {
45
45
  }
46
46
  /** Physical address */
47
47
  export interface Address extends AddressStreetOneOf {
48
+ /** Street name and number. */
49
+ streetAddress?: StreetAddress;
50
+ /** Main address line, usually street and number as free text. */
51
+ addressLine?: string | null;
48
52
  /** Country code. */
49
53
  country?: string | null;
50
54
  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -55,10 +59,6 @@ export interface Address extends AddressStreetOneOf {
55
59
  postalCode?: string | null;
56
60
  /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
57
61
  addressLine2?: string | null;
58
- /** Street name and number. */
59
- streetAddress?: StreetAddress;
60
- /** Main address line, usually street and number as free text. */
61
- addressLine?: string | null;
62
62
  }
63
63
  /** @oneof */
64
64
  export interface AddressStreetOneOf {
@@ -206,6 +206,10 @@ export interface QueryProductsRequest {
206
206
  includeMerchantSpecificData?: boolean;
207
207
  }
208
208
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
209
+ /** Paging options to limit and skip the number of items. */
210
+ paging?: Paging;
211
+ /** 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`. */
212
+ cursorPaging?: CursorPaging;
209
213
  /**
210
214
  * Filter object in the following format:
211
215
  * `"filter" : {
@@ -224,10 +228,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
224
228
  fields?: string[];
225
229
  /** 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. */
226
230
  fieldsets?: string[];
227
- /** Paging options to limit and skip the number of items. */
228
- paging?: Paging;
229
- /** 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`. */
230
- cursorPaging?: CursorPaging;
231
231
  }
232
232
  /** @oneof */
233
233
  export interface QueryV2PagingMethodOneOf {
@@ -6,6 +6,10 @@ export declare const __debug: {
6
6
  };
7
7
  /** Physical address */
8
8
  export interface Address extends AddressStreetOneOf {
9
+ /** Street name and number. */
10
+ streetAddress?: StreetAddress;
11
+ /** Main address line, usually street and number as free text. */
12
+ addressLine1?: string | null;
9
13
  /** Country code. */
10
14
  country?: string | null;
11
15
  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
@@ -16,10 +20,6 @@ export interface Address extends AddressStreetOneOf {
16
20
  postalCode?: string | null;
17
21
  /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
18
22
  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
23
  }
24
24
  /** @oneof */
25
25
  export interface AddressStreetOneOf {
@@ -134,6 +134,10 @@ export interface QueryProductsRequest {
134
134
  includeMerchantSpecificData?: boolean;
135
135
  }
136
136
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
137
+ /** Paging options to limit and skip the number of items. */
138
+ paging?: Paging;
139
+ /** 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`. */
140
+ cursorPaging?: CursorPaging;
137
141
  /**
138
142
  * Filter object in the following format:
139
143
  * `"filter" : {
@@ -152,10 +156,6 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
152
156
  fields?: string[];
153
157
  /** 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. */
154
158
  fieldsets?: string[];
155
- /** Paging options to limit and skip the number of items. */
156
- paging?: Paging;
157
- /** 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`. */
158
- cursorPaging?: CursorPaging;
159
159
  }
160
160
  /** @oneof */
161
161
  export interface QueryV2PagingMethodOneOf {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/motion",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -33,5 +33,5 @@
33
33
  "groupId": "com.wixpress.public-sdk-autogen"
34
34
  }
35
35
  },
36
- "falconPackageHash": "c1aa927a8440f428ed576ad72cd71400b3e7c47ee31e589af372e503"
36
+ "falconPackageHash": "4f0b6eb6de5e0e0ae6a9830feb87847b326a802d3b6a111043501623"
37
37
  }