@wix/motion 1.0.20 → 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.
- package/build/cjs/src/alarm-v1-alarm.public.d.ts +3 -3
- package/build/cjs/src/alarm-v1-alarm.public.js +1 -1
- package/build/cjs/src/alarm-v1-alarm.public.js.map +1 -1
- package/build/cjs/src/alarm-v1-alarm.types.d.ts +0 -1
- package/build/cjs/src/alarm-v1-alarm.universal.d.ts +1 -5
- package/build/cjs/src/alarm-v1-alarm.universal.js +4 -8
- package/build/cjs/src/alarm-v1-alarm.universal.js.map +1 -1
- package/build/cjs/src/metroinspector-v1-product.types.d.ts +8 -8
- package/build/cjs/src/metroinspector-v1-product.universal.d.ts +8 -8
- package/build/es/src/alarm-v1-alarm.public.d.ts +3 -3
- package/build/es/src/alarm-v1-alarm.public.js +1 -1
- package/build/es/src/alarm-v1-alarm.public.js.map +1 -1
- package/build/es/src/alarm-v1-alarm.types.d.ts +0 -1
- package/build/es/src/alarm-v1-alarm.universal.d.ts +1 -5
- package/build/es/src/alarm-v1-alarm.universal.js +4 -8
- package/build/es/src/alarm-v1-alarm.universal.js.map +1 -1
- package/build/es/src/metroinspector-v1-product.types.d.ts +8 -8
- package/build/es/src/metroinspector-v1-product.universal.d.ts +8 -8
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { AlarmOptions, UpdateAlarm
|
|
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, alarm: UpdateAlarm
|
|
5
|
-
export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarm,
|
|
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, alarm
|
|
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,
|
|
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"}
|
|
@@ -21,7 +21,6 @@ export interface AlarmSnoozed {
|
|
|
21
21
|
}
|
|
22
22
|
export interface UpdateAlarmRequest {
|
|
23
23
|
alarm: AlarmMessage;
|
|
24
|
-
fieldMask?: string[];
|
|
25
24
|
}
|
|
26
25
|
export interface UpdateAlarmResponse {
|
|
27
26
|
alarm?: AlarmMessage;
|
|
@@ -43,11 +42,8 @@ export interface AlarmOptions {
|
|
|
43
42
|
* @requiredField _id
|
|
44
43
|
* @requiredField alarm
|
|
45
44
|
*/
|
|
46
|
-
export declare function updateAlarm(_id: string, alarm: UpdateAlarm
|
|
45
|
+
export declare function updateAlarm(_id: string, alarm: UpdateAlarm): Promise<UpdateAlarmResponse>;
|
|
47
46
|
export interface UpdateAlarm {
|
|
48
47
|
_id?: string;
|
|
49
48
|
seconds?: number;
|
|
50
49
|
}
|
|
51
|
-
export interface UpdateAlarmOptions {
|
|
52
|
-
fieldMask?: string[];
|
|
53
|
-
}
|
|
@@ -111,16 +111,13 @@ exports.alarm = alarm;
|
|
|
111
111
|
* @requiredField _id
|
|
112
112
|
* @requiredField alarm
|
|
113
113
|
*/
|
|
114
|
-
function updateAlarm(_id, alarm
|
|
114
|
+
function updateAlarm(_id, alarm) {
|
|
115
115
|
var _a, _b, _c;
|
|
116
116
|
return __awaiter(this, arguments, void 0, function* () {
|
|
117
|
-
const requestTransformation = {
|
|
118
|
-
alarm: { '*': '$[1]', id: '$[0]' },
|
|
119
|
-
fieldMask: '$[2].fieldMask',
|
|
120
|
-
};
|
|
117
|
+
const requestTransformation = { alarm: { '*': '$[1]', id: '$[0]' } };
|
|
121
118
|
const responseTransformation = '$';
|
|
122
119
|
// @ts-ignore
|
|
123
|
-
const { httpClient, sideEffects } = arguments[
|
|
120
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
124
121
|
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
125
122
|
rootSchema: _updateAlarmRequest,
|
|
126
123
|
depSchemas: {},
|
|
@@ -139,7 +136,7 @@ function updateAlarm(_id, alarm, options) {
|
|
|
139
136
|
},
|
|
140
137
|
customTransformation: responseTransformation,
|
|
141
138
|
});
|
|
142
|
-
const payload = toAmbassadorRequest([_id, alarm
|
|
139
|
+
const payload = toAmbassadorRequest([_id, alarm]);
|
|
143
140
|
const reqOpts = ambassadorWixAlarmV1Alarm.updateAlarm(payload);
|
|
144
141
|
__log(`"UpdateAlarm" sending request with: ${__inspect(reqOpts)}`);
|
|
145
142
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -152,7 +149,6 @@ function updateAlarm(_id, alarm, options) {
|
|
|
152
149
|
const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
|
|
153
150
|
'_id',
|
|
154
151
|
'alarm',
|
|
155
|
-
'options',
|
|
156
152
|
]);
|
|
157
153
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
158
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,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,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, UpdateAlarm
|
|
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, alarm: UpdateAlarm
|
|
5
|
-
export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarm,
|
|
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, alarm
|
|
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,
|
|
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"}
|
|
@@ -21,7 +21,6 @@ export interface AlarmSnoozed {
|
|
|
21
21
|
}
|
|
22
22
|
export interface UpdateAlarmRequest {
|
|
23
23
|
alarm: AlarmMessage;
|
|
24
|
-
fieldMask?: string[];
|
|
25
24
|
}
|
|
26
25
|
export interface UpdateAlarmResponse {
|
|
27
26
|
alarm?: AlarmMessage;
|
|
@@ -43,11 +42,8 @@ export interface AlarmOptions {
|
|
|
43
42
|
* @requiredField _id
|
|
44
43
|
* @requiredField alarm
|
|
45
44
|
*/
|
|
46
|
-
export declare function updateAlarm(_id: string, alarm: UpdateAlarm
|
|
45
|
+
export declare function updateAlarm(_id: string, alarm: UpdateAlarm): Promise<UpdateAlarmResponse>;
|
|
47
46
|
export interface UpdateAlarm {
|
|
48
47
|
_id?: string;
|
|
49
48
|
seconds?: number;
|
|
50
49
|
}
|
|
51
|
-
export interface UpdateAlarmOptions {
|
|
52
|
-
fieldMask?: string[];
|
|
53
|
-
}
|
|
@@ -88,16 +88,13 @@ export function alarm(seconds, options) {
|
|
|
88
88
|
* @requiredField _id
|
|
89
89
|
* @requiredField alarm
|
|
90
90
|
*/
|
|
91
|
-
export function updateAlarm(_id, alarm
|
|
91
|
+
export function updateAlarm(_id, alarm) {
|
|
92
92
|
var _a, _b, _c;
|
|
93
93
|
return __awaiter(this, arguments, void 0, function* () {
|
|
94
|
-
const requestTransformation = {
|
|
95
|
-
alarm: { '*': '$[1]', id: '$[0]' },
|
|
96
|
-
fieldMask: '$[2].fieldMask',
|
|
97
|
-
};
|
|
94
|
+
const requestTransformation = { alarm: { '*': '$[1]', id: '$[0]' } };
|
|
98
95
|
const responseTransformation = '$';
|
|
99
96
|
// @ts-ignore
|
|
100
|
-
const { httpClient, sideEffects } = arguments[
|
|
97
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
101
98
|
const { toAmbassadorRequest } = serializer({
|
|
102
99
|
rootSchema: _updateAlarmRequest,
|
|
103
100
|
depSchemas: {},
|
|
@@ -116,7 +113,7 @@ export function updateAlarm(_id, alarm, options) {
|
|
|
116
113
|
},
|
|
117
114
|
customTransformation: responseTransformation,
|
|
118
115
|
});
|
|
119
|
-
const payload = toAmbassadorRequest([_id, alarm
|
|
116
|
+
const payload = toAmbassadorRequest([_id, alarm]);
|
|
120
117
|
const reqOpts = ambassadorWixAlarmV1Alarm.updateAlarm(payload);
|
|
121
118
|
__log(`"UpdateAlarm" sending request with: ${__inspect(reqOpts)}`);
|
|
122
119
|
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
@@ -129,7 +126,6 @@ export function updateAlarm(_id, alarm, options) {
|
|
|
129
126
|
const transformedError = transformError(err, requestTransformation, [
|
|
130
127
|
'_id',
|
|
131
128
|
'alarm',
|
|
132
|
-
'options',
|
|
133
129
|
]);
|
|
134
130
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
135
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,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,c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AAW,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,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.
|
|
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": "
|
|
36
|
+
"falconPackageHash": "4f0b6eb6de5e0e0ae6a9830feb87847b326a802d3b6a111043501623"
|
|
37
37
|
}
|