@wix/motion 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,6 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { AlarmRequest, AlarmResponse } from './alarm-v1-alarm.types';
2
+ import { AlarmRequest, AlarmResponse, UpdateAlarmRequest, UpdateAlarmResponse } from './alarm-v1-alarm.types';
3
3
  /** sets up an alarm after {seconds} */
4
4
  export declare function alarm(payload: AlarmRequest): RequestOptionsFactory<AlarmResponse>;
5
+ /** sets up an existing alarm with id {id} to {seconds} */
6
+ export declare function updateAlarm(payload: UpdateAlarmRequest): RequestOptionsFactory<UpdateAlarmResponse>;
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.alarm = void 0;
3
+ exports.updateAlarm = exports.alarm = void 0;
4
4
  const ambassador_1 = require("@wix/metro-runtime/ambassador");
5
5
  const metro_runtime_1 = require("@wix/metro-runtime");
6
6
  const _alarmRequest = {};
7
7
  const _alarmResponse = { time: 'google.protobuf.Timestamp' };
8
+ const _updateAlarmRequest = { fieldMask: 'google.protobuf.FieldMask' };
9
+ const _updateAlarmResponse = {};
8
10
  function resolveWixCoreservicesAlarmV1AlarmServiceUrl(opts) {
9
11
  const domainToMappings = {
10
12
  'apps._base_domain_': [
@@ -68,4 +70,26 @@ function alarm(payload) {
68
70
  return __alarm;
69
71
  }
70
72
  exports.alarm = alarm;
73
+ /** sets up an existing alarm with id {id} to {seconds} */
74
+ function updateAlarm(payload) {
75
+ const { toJSON: toReq, fromJSON: fromReq } = (0, ambassador_1.serializer)(_updateAlarmRequest, {});
76
+ const { fromJSON: fromRes } = (0, ambassador_1.serializer)(_updateAlarmResponse, {});
77
+ function __updateAlarm({ host }) {
78
+ const serializedData = toReq(payload);
79
+ const metadata = {
80
+ method: 'PATCH',
81
+ url: resolveWixCoreservicesAlarmV1AlarmServiceUrl({
82
+ protoPath: '/api/v1/alarm/{alarm.id}/{alarm.seconds}',
83
+ data: serializedData,
84
+ host,
85
+ }),
86
+ data: serializedData,
87
+ transformResponse: fromRes,
88
+ };
89
+ return metadata;
90
+ }
91
+ __updateAlarm.fromReq = fromReq;
92
+ return __updateAlarm;
93
+ }
94
+ exports.updateAlarm = updateAlarm;
71
95
  //# sourceMappingURL=alarm-v1-alarm.http.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-v1-alarm.http.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.http.ts"],"names":[],"mappings":";;;AAAA,8DAA2D;AAC3D,sDAAgD;AAKhD,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,cAAc,GAAG,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;AAE7D,SAAS,4CAA4C,CACnD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,CAAC,EAAE;YACD;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,MAAM;aACjB;SACF;KACF,CAAC;IAEF,OAAO,IAAA,0BAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AA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jB,CAAC;AAzBD,sBAyBC;AAED,0DAA0D;AAC1D,SAAgB,WAAW,CACzB,OAA2B;IAE3B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EACrD,mBAAmB,EACnB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAA,uBAAU,EAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IAEnE,SAAS,aAAa,CAAC,EAAE,IAAI,EAAO;QAClC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,OAAc;YACtB,GAAG,EAAE,4CAA4C,CAAC;gBAChD,SAAS,EAAE,0CAA0C;gBACrD,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;IAEhC,OAAO,aAAa,CAAC;AACvB,CAAC;AA5BD,kCA4BC"}
@@ -1,4 +1,5 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { AlarmOptions } from './alarm-v1-alarm.universal';
2
+ import { AlarmOptions, UpdateAlarmIdentifiers, UpdateAlarmOptions } 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 { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, AlarmOptions, } from './alarm-v1-alarm.universal';
4
+ export declare function updateAlarm(httpClient: HttpClient): (identifiers: UpdateAlarmIdentifiers, options?: UpdateAlarmOptions | undefined) => Promise<import("./alarm-v1-alarm.universal").UpdateAlarmResponse>;
5
+ export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarmOptions, UpdateAlarmIdentifiers, } from './alarm-v1-alarm.universal';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.alarm = void 0;
3
+ exports.updateAlarm = exports.alarm = void 0;
4
4
  const alarm_v1_alarm_universal_1 = require("./alarm-v1-alarm.universal");
5
5
  function alarm(httpClient) {
6
6
  return (seconds, options) => (0, alarm_v1_alarm_universal_1.alarm)(seconds, options,
@@ -8,4 +8,10 @@ function alarm(httpClient) {
8
8
  { httpClient });
9
9
  }
10
10
  exports.alarm = alarm;
11
+ function updateAlarm(httpClient) {
12
+ return (identifiers, options) => (0, alarm_v1_alarm_universal_1.updateAlarm)(identifiers, options,
13
+ // @ts-ignore
14
+ { httpClient });
15
+ }
16
+ exports.updateAlarm = updateAlarm;
11
17
  //# sourceMappingURL=alarm-v1-alarm.public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-v1-alarm.public.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.public.ts"],"names":[],"mappings":";;;AACA,yEAGoC;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"}
1
+ {"version":3,"file":"alarm-v1-alarm.public.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.public.ts"],"names":[],"mappings":";;;AACA,yEAMoC;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,WAAmC,EAAE,OAA4B,EAAE,EAAE,CAC3E,IAAA,sCAAoB,EAClB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,kCAQC"}
@@ -1,5 +1,6 @@
1
1
  export interface AlarmMessage {
2
2
  id?: string;
3
+ seconds?: number;
3
4
  }
4
5
  export interface AlarmRequest {
5
6
  seconds: number;
@@ -12,3 +13,10 @@ export interface AlarmTriggered {
12
13
  }
13
14
  export interface AlarmSnoozed {
14
15
  }
16
+ export interface UpdateAlarmRequest {
17
+ alarm?: AlarmMessage;
18
+ fieldMask?: string[];
19
+ }
20
+ export interface UpdateAlarmResponse {
21
+ alarm?: AlarmMessage;
22
+ }
@@ -6,6 +6,7 @@ export declare const __debug: {
6
6
  };
7
7
  export interface AlarmMessage {
8
8
  _id?: string;
9
+ seconds?: number;
9
10
  }
10
11
  export interface AlarmRequest {
11
12
  seconds: number;
@@ -18,6 +19,13 @@ export interface AlarmTriggered {
18
19
  }
19
20
  export interface AlarmSnoozed {
20
21
  }
22
+ export interface UpdateAlarmRequest {
23
+ alarm?: AlarmMessage;
24
+ fieldMask?: string[];
25
+ }
26
+ export interface UpdateAlarmResponse {
27
+ alarm?: AlarmMessage;
28
+ }
21
29
  /**
22
30
  * sets up an alarm after {seconds}
23
31
  * @public
@@ -28,3 +36,22 @@ export declare function alarm(seconds: number, options?: AlarmOptions): Promise<
28
36
  export interface AlarmOptions {
29
37
  someString?: string;
30
38
  }
39
+ /**
40
+ * sets up an existing alarm with id {id} to {seconds}
41
+ * @public
42
+ * @documentationMaturity preview
43
+ * @requiredField identifiers
44
+ * @requiredField identifiers.alarmId
45
+ * @requiredField identifiers.alarmSeconds
46
+ */
47
+ export declare function updateAlarm(identifiers: UpdateAlarmIdentifiers, options?: UpdateAlarmOptions): Promise<UpdateAlarmResponse>;
48
+ export interface UpdateAlarmOptions {
49
+ alarm: {
50
+ _id?: string;
51
+ };
52
+ fieldMask?: string[];
53
+ }
54
+ export interface UpdateAlarmIdentifiers {
55
+ alarmId?: string;
56
+ alarmSeconds?: number;
57
+ }
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28
28
  });
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.alarm = exports.__debug = void 0;
31
+ exports.updateAlarm = exports.alarm = exports.__debug = void 0;
32
32
  const velo_1 = require("@wix/metro-runtime/velo");
33
33
  const ambassadorWixAlarmV1Alarm = __importStar(require("./alarm-v1-alarm.http"));
34
34
  let __verbose = false;
@@ -48,6 +48,8 @@ const _toVeloEntity = '$';
48
48
  const _fromVeloEntity = '$';
49
49
  const _alarmRequest = {};
50
50
  const _alarmResponse = {};
51
+ const _updateAlarmRequest = {};
52
+ const _updateAlarmResponse = {};
51
53
  /**
52
54
  * sets up an alarm after {seconds}
53
55
  * @public
@@ -102,4 +104,64 @@ function alarm(seconds, options) {
102
104
  });
103
105
  }
104
106
  exports.alarm = alarm;
107
+ /**
108
+ * sets up an existing alarm with id {id} to {seconds}
109
+ * @public
110
+ * @documentationMaturity preview
111
+ * @requiredField identifiers
112
+ * @requiredField identifiers.alarmId
113
+ * @requiredField identifiers.alarmSeconds
114
+ */
115
+ function updateAlarm(identifiers, options) {
116
+ var _a, _b, _c;
117
+ return __awaiter(this, arguments, void 0, function* () {
118
+ const requestTransformation = {
119
+ alarm: {
120
+ '*': '$[1].alarm',
121
+ id: '$[0].alarmId',
122
+ seconds: '$[0].alarmSeconds',
123
+ },
124
+ fieldMask: '$[1].fieldMask',
125
+ };
126
+ const responseTransformation = '$';
127
+ // @ts-ignore
128
+ const { httpClient, sideEffects } = arguments[2];
129
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
130
+ rootSchema: _updateAlarmRequest,
131
+ depSchemas: {},
132
+ fqdnTransformation: {
133
+ paths: [...['alarm']],
134
+ transformation: _fromVeloEntity,
135
+ },
136
+ customTransformation: requestTransformation,
137
+ });
138
+ const { fromJSON } = (0, velo_1.serializer)({
139
+ rootSchema: _updateAlarmResponse,
140
+ depSchemas: {},
141
+ fqdnTransformation: {
142
+ paths: [...['alarm']],
143
+ transformation: _toVeloEntity,
144
+ },
145
+ customTransformation: responseTransformation,
146
+ });
147
+ const payload = toAmbassadorRequest([identifiers, options]);
148
+ const reqOpts = ambassadorWixAlarmV1Alarm.updateAlarm(payload);
149
+ __log(`"UpdateAlarm" sending request with: ${__inspect(reqOpts)}`);
150
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
151
+ try {
152
+ const result = yield httpClient.request(reqOpts);
153
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
154
+ return fromJSON(result.data);
155
+ }
156
+ catch (err) {
157
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
158
+ 'identifiers',
159
+ 'options',
160
+ ]);
161
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
162
+ throw transformedError;
163
+ }
164
+ });
165
+ }
166
+ exports.updateAlarm = updateAlarm;
105
167
  //# sourceMappingURL=alarm-v1-alarm.universal.js.map
@@ -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,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B;SAC5C,CAAC,CAAC;QAEH,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,iBAAU,EAAC;YAC9B,UAAU,EAAE,oBAAoB;YAChC,UAAU,EAAE,EAAE;YACd,kBAAkB,EAAE;gBAClB,KAAK,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACrB,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QAE5D,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,aAAa;gBACb,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF;AA7DD,kCA6DC"}
@@ -284,6 +284,7 @@ export interface QueryProductsOptions {
284
284
  includeMerchantSpecificData?: boolean | undefined;
285
285
  }
286
286
  interface QueryCursorResult {
287
+ cursors: Cursors;
287
288
  hasNext: () => boolean;
288
289
  hasPrev: () => boolean;
289
290
  length: number;
@@ -300,38 +301,42 @@ export interface ProductsQueryBuilder {
300
301
  * @param value - Value to compare against.
301
302
  * @documentationMaturity preview
302
303
  */
303
- eq: (propertyName: string, value: any) => ProductsQueryBuilder;
304
+ eq: (propertyName: 'title' | 'collectionId' | 'guid', value: any) => ProductsQueryBuilder;
304
305
  /** @param propertyName - Property whose value is compared with `value`.
305
306
  * @param value - Value to compare against.
306
307
  * @documentationMaturity preview
307
308
  */
308
- ne: (propertyName: string, value: any) => ProductsQueryBuilder;
309
+ ne: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
309
310
  /** @param propertyName - Property whose value is compared with `string`.
310
311
  * @param string - String to compare against. Case-insensitive.
311
312
  * @documentationMaturity preview
312
313
  */
313
- startsWith: (propertyName: string, value: string) => ProductsQueryBuilder;
314
+ startsWith: (propertyName: 'title' | 'guid', value: string) => ProductsQueryBuilder;
314
315
  /** @param propertyName - Property whose value is compared with `values`.
315
316
  * @param values - List of values to compare against.
316
317
  * @documentationMaturity preview
317
318
  */
318
- hasSome: (propertyName: string, value: any[]) => ProductsQueryBuilder;
319
+ hasSome: (propertyName: 'title' | 'guid', value: any[]) => ProductsQueryBuilder;
319
320
  /** @documentationMaturity preview */
320
- in: (propertyName: string, value: any) => ProductsQueryBuilder;
321
+ in: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
321
322
  /** @documentationMaturity preview */
322
- exists: (propertyName: string, value: boolean) => ProductsQueryBuilder;
323
+ exists: (propertyName: 'title' | 'guid', value: boolean) => ProductsQueryBuilder;
323
324
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
324
325
  * @documentationMaturity preview
325
326
  */
326
- ascending: (...propertyNames: string[]) => ProductsQueryBuilder;
327
+ ascending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
327
328
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
328
329
  * @documentationMaturity preview
329
330
  */
330
- descending: (...propertyNames: string[]) => ProductsQueryBuilder;
331
+ descending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
331
332
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
332
333
  * @documentationMaturity preview
333
334
  */
334
335
  limit: (limit: number) => ProductsQueryBuilder;
336
+ /** @param cursor - A pointer to specific record
337
+ * @documentationMaturity preview
338
+ */
339
+ skipTo: (cursor: string) => ProductsQueryBuilder;
335
340
  /** @documentationMaturity preview */
336
341
  find: () => Promise<ProductsQueryResult>;
337
342
  }
@@ -1,4 +1,6 @@
1
1
  import { RequestOptionsFactory } from '@wix/sdk-types';
2
- import { AlarmRequest, AlarmResponse } from './alarm-v1-alarm.types';
2
+ import { AlarmRequest, AlarmResponse, UpdateAlarmRequest, UpdateAlarmResponse } from './alarm-v1-alarm.types';
3
3
  /** sets up an alarm after {seconds} */
4
4
  export declare function alarm(payload: AlarmRequest): RequestOptionsFactory<AlarmResponse>;
5
+ /** sets up an existing alarm with id {id} to {seconds} */
6
+ export declare function updateAlarm(payload: UpdateAlarmRequest): RequestOptionsFactory<UpdateAlarmResponse>;
@@ -2,6 +2,8 @@ import { serializer } from '@wix/metro-runtime/ambassador';
2
2
  import { resolveUrl } from '@wix/metro-runtime';
3
3
  const _alarmRequest = {};
4
4
  const _alarmResponse = { time: 'google.protobuf.Timestamp' };
5
+ const _updateAlarmRequest = { fieldMask: 'google.protobuf.FieldMask' };
6
+ const _updateAlarmResponse = {};
5
7
  function resolveWixCoreservicesAlarmV1AlarmServiceUrl(opts) {
6
8
  const domainToMappings = {
7
9
  'apps._base_domain_': [
@@ -64,4 +66,25 @@ export function alarm(payload) {
64
66
  __alarm.fromReq = fromReq;
65
67
  return __alarm;
66
68
  }
69
+ /** sets up an existing alarm with id {id} to {seconds} */
70
+ export function updateAlarm(payload) {
71
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_updateAlarmRequest, {});
72
+ const { fromJSON: fromRes } = serializer(_updateAlarmResponse, {});
73
+ function __updateAlarm({ host }) {
74
+ const serializedData = toReq(payload);
75
+ const metadata = {
76
+ method: 'PATCH',
77
+ url: resolveWixCoreservicesAlarmV1AlarmServiceUrl({
78
+ protoPath: '/api/v1/alarm/{alarm.id}/{alarm.seconds}',
79
+ data: serializedData,
80
+ host,
81
+ }),
82
+ data: serializedData,
83
+ transformResponse: fromRes,
84
+ };
85
+ return metadata;
86
+ }
87
+ __updateAlarm.fromReq = fromReq;
88
+ return __updateAlarm;
89
+ }
67
90
  //# sourceMappingURL=alarm-v1-alarm.http.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"alarm-v1-alarm.http.js","sourceRoot":"","sources":["../../../src/alarm-v1-alarm.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKhD,MAAM,aAAa,GAAG,EAAE,CAAC;AACzB,MAAM,cAAc,GAAG,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;AAE7D,SAAS,4CAA4C,CACnD,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,uBAAuB,EAAE;YACvB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,mBAAmB,EAAE;YACnB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,sBAAsB,EAAE;YACtB;gBACE,OAAO,EAAE,kBAAkB;gBAC3B,QAAQ,EAAE,EAAE;aACb;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,uBAAuB;gBAChC,QAAQ,EAAE,MAAM;aACjB;SACF;QACD,CAAC,EA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BAAyB;gBACpC,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IAE1B,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,WAAW,CACzB,OAA2B;IAE3B,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,mBAAmB,EACnB,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC;IAEnE,SAAS,aAAa,CAAC,EAAE,IAAI,EAAO;QAClC,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,MAAM,EAAE,OAAc;YACtB,GAAG,EAAE,4CAA4C,CAAC;gBAChD,SAAS,EAAE,0CAA0C;gBACrD,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,aAAa,CAAC,OAAO,GAAG,OAAO,CAAC;IAEhC,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { HttpClient } from '@wix/sdk-types';
2
- import { AlarmOptions } from './alarm-v1-alarm.universal';
2
+ import { AlarmOptions, UpdateAlarmIdentifiers, UpdateAlarmOptions } 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 { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, AlarmOptions, } from './alarm-v1-alarm.universal';
4
+ export declare function updateAlarm(httpClient: HttpClient): (identifiers: UpdateAlarmIdentifiers, options?: UpdateAlarmOptions | undefined) => Promise<import("./alarm-v1-alarm.universal").UpdateAlarmResponse>;
5
+ export { AlarmMessage, AlarmRequest, AlarmResponse, AlarmTriggered, AlarmSnoozed, UpdateAlarmRequest, UpdateAlarmResponse, AlarmOptions, UpdateAlarmOptions, UpdateAlarmIdentifiers, } from './alarm-v1-alarm.universal';
@@ -1,7 +1,12 @@
1
- import { alarm as universalAlarm, } from './alarm-v1-alarm.universal';
1
+ import { alarm as universalAlarm, updateAlarm as universalUpdateAlarm, } from './alarm-v1-alarm.universal';
2
2
  export function alarm(httpClient) {
3
3
  return (seconds, options) => universalAlarm(seconds, options,
4
4
  // @ts-ignore
5
5
  { httpClient });
6
6
  }
7
+ export function updateAlarm(httpClient) {
8
+ return (identifiers, options) => universalUpdateAlarm(identifiers, options,
9
+ // @ts-ignore
10
+ { httpClient });
11
+ }
7
12
  //# sourceMappingURL=alarm-v1-alarm.public.js.map
@@ -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,GAExB,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"}
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,GAGpC,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,WAAmC,EAAE,OAA4B,EAAE,EAAE,CAC3E,oBAAoB,CAClB,WAAW,EACX,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export interface AlarmMessage {
2
2
  id?: string;
3
+ seconds?: number;
3
4
  }
4
5
  export interface AlarmRequest {
5
6
  seconds: number;
@@ -12,3 +13,10 @@ export interface AlarmTriggered {
12
13
  }
13
14
  export interface AlarmSnoozed {
14
15
  }
16
+ export interface UpdateAlarmRequest {
17
+ alarm?: AlarmMessage;
18
+ fieldMask?: string[];
19
+ }
20
+ export interface UpdateAlarmResponse {
21
+ alarm?: AlarmMessage;
22
+ }
@@ -6,6 +6,7 @@ export declare const __debug: {
6
6
  };
7
7
  export interface AlarmMessage {
8
8
  _id?: string;
9
+ seconds?: number;
9
10
  }
10
11
  export interface AlarmRequest {
11
12
  seconds: number;
@@ -18,6 +19,13 @@ export interface AlarmTriggered {
18
19
  }
19
20
  export interface AlarmSnoozed {
20
21
  }
22
+ export interface UpdateAlarmRequest {
23
+ alarm?: AlarmMessage;
24
+ fieldMask?: string[];
25
+ }
26
+ export interface UpdateAlarmResponse {
27
+ alarm?: AlarmMessage;
28
+ }
21
29
  /**
22
30
  * sets up an alarm after {seconds}
23
31
  * @public
@@ -28,3 +36,22 @@ export declare function alarm(seconds: number, options?: AlarmOptions): Promise<
28
36
  export interface AlarmOptions {
29
37
  someString?: string;
30
38
  }
39
+ /**
40
+ * sets up an existing alarm with id {id} to {seconds}
41
+ * @public
42
+ * @documentationMaturity preview
43
+ * @requiredField identifiers
44
+ * @requiredField identifiers.alarmId
45
+ * @requiredField identifiers.alarmSeconds
46
+ */
47
+ export declare function updateAlarm(identifiers: UpdateAlarmIdentifiers, options?: UpdateAlarmOptions): Promise<UpdateAlarmResponse>;
48
+ export interface UpdateAlarmOptions {
49
+ alarm: {
50
+ _id?: string;
51
+ };
52
+ fieldMask?: string[];
53
+ }
54
+ export interface UpdateAlarmIdentifiers {
55
+ alarmId?: string;
56
+ alarmSeconds?: number;
57
+ }
@@ -26,6 +26,8 @@ const _toVeloEntity = '$';
26
26
  const _fromVeloEntity = '$';
27
27
  const _alarmRequest = {};
28
28
  const _alarmResponse = {};
29
+ const _updateAlarmRequest = {};
30
+ const _updateAlarmResponse = {};
29
31
  /**
30
32
  * sets up an alarm after {seconds}
31
33
  * @public
@@ -79,4 +81,63 @@ export function alarm(seconds, options) {
79
81
  }
80
82
  });
81
83
  }
84
+ /**
85
+ * sets up an existing alarm with id {id} to {seconds}
86
+ * @public
87
+ * @documentationMaturity preview
88
+ * @requiredField identifiers
89
+ * @requiredField identifiers.alarmId
90
+ * @requiredField identifiers.alarmSeconds
91
+ */
92
+ export function updateAlarm(identifiers, options) {
93
+ var _a, _b, _c;
94
+ return __awaiter(this, arguments, void 0, function* () {
95
+ const requestTransformation = {
96
+ alarm: {
97
+ '*': '$[1].alarm',
98
+ id: '$[0].alarmId',
99
+ seconds: '$[0].alarmSeconds',
100
+ },
101
+ fieldMask: '$[1].fieldMask',
102
+ };
103
+ const responseTransformation = '$';
104
+ // @ts-ignore
105
+ const { httpClient, sideEffects } = arguments[2];
106
+ const { toAmbassadorRequest } = serializer({
107
+ rootSchema: _updateAlarmRequest,
108
+ depSchemas: {},
109
+ fqdnTransformation: {
110
+ paths: [...['alarm']],
111
+ transformation: _fromVeloEntity,
112
+ },
113
+ customTransformation: requestTransformation,
114
+ });
115
+ const { fromJSON } = serializer({
116
+ rootSchema: _updateAlarmResponse,
117
+ depSchemas: {},
118
+ fqdnTransformation: {
119
+ paths: [...['alarm']],
120
+ transformation: _toVeloEntity,
121
+ },
122
+ customTransformation: responseTransformation,
123
+ });
124
+ const payload = toAmbassadorRequest([identifiers, options]);
125
+ const reqOpts = ambassadorWixAlarmV1Alarm.updateAlarm(payload);
126
+ __log(`"UpdateAlarm" sending request with: ${__inspect(reqOpts)}`);
127
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
128
+ try {
129
+ const result = yield httpClient.request(reqOpts);
130
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
131
+ return fromJSON(result.data);
132
+ }
133
+ catch (err) {
134
+ const transformedError = transformError(err, requestTransformation, [
135
+ 'identifiers',
136
+ 'options',
137
+ ]);
138
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
139
+ throw transformedError;
140
+ }
141
+ });
142
+ }
82
143
  //# sourceMappingURL=alarm-v1-alarm.universal.js.map
@@ -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,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,E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AAC,OAAO,CAAC,CAAC;gBACrB,cAAc,EAAE,aAAa;aAC9B;YACD,oBAAoB,EAAE,sBAAsB;SAC7C,CAAC,CAAC;QAEH,MAAM,OAAO,GAAG,mBAAmB,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QAE5D,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,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,aAAa;gBACb,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
@@ -284,6 +284,7 @@ export interface QueryProductsOptions {
284
284
  includeMerchantSpecificData?: boolean | undefined;
285
285
  }
286
286
  interface QueryCursorResult {
287
+ cursors: Cursors;
287
288
  hasNext: () => boolean;
288
289
  hasPrev: () => boolean;
289
290
  length: number;
@@ -300,38 +301,42 @@ export interface ProductsQueryBuilder {
300
301
  * @param value - Value to compare against.
301
302
  * @documentationMaturity preview
302
303
  */
303
- eq: (propertyName: string, value: any) => ProductsQueryBuilder;
304
+ eq: (propertyName: 'title' | 'collectionId' | 'guid', value: any) => ProductsQueryBuilder;
304
305
  /** @param propertyName - Property whose value is compared with `value`.
305
306
  * @param value - Value to compare against.
306
307
  * @documentationMaturity preview
307
308
  */
308
- ne: (propertyName: string, value: any) => ProductsQueryBuilder;
309
+ ne: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
309
310
  /** @param propertyName - Property whose value is compared with `string`.
310
311
  * @param string - String to compare against. Case-insensitive.
311
312
  * @documentationMaturity preview
312
313
  */
313
- startsWith: (propertyName: string, value: string) => ProductsQueryBuilder;
314
+ startsWith: (propertyName: 'title' | 'guid', value: string) => ProductsQueryBuilder;
314
315
  /** @param propertyName - Property whose value is compared with `values`.
315
316
  * @param values - List of values to compare against.
316
317
  * @documentationMaturity preview
317
318
  */
318
- hasSome: (propertyName: string, value: any[]) => ProductsQueryBuilder;
319
+ hasSome: (propertyName: 'title' | 'guid', value: any[]) => ProductsQueryBuilder;
319
320
  /** @documentationMaturity preview */
320
- in: (propertyName: string, value: any) => ProductsQueryBuilder;
321
+ in: (propertyName: 'title' | 'guid', value: any) => ProductsQueryBuilder;
321
322
  /** @documentationMaturity preview */
322
- exists: (propertyName: string, value: boolean) => ProductsQueryBuilder;
323
+ exists: (propertyName: 'title' | 'guid', value: boolean) => ProductsQueryBuilder;
323
324
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
324
325
  * @documentationMaturity preview
325
326
  */
326
- ascending: (...propertyNames: string[]) => ProductsQueryBuilder;
327
+ ascending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
327
328
  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
328
329
  * @documentationMaturity preview
329
330
  */
330
- descending: (...propertyNames: string[]) => ProductsQueryBuilder;
331
+ descending: (...propertyNames: Array<'title' | 'collectionId' | 'guid'>) => ProductsQueryBuilder;
331
332
  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
332
333
  * @documentationMaturity preview
333
334
  */
334
335
  limit: (limit: number) => ProductsQueryBuilder;
336
+ /** @param cursor - A pointer to specific record
337
+ * @documentationMaturity preview
338
+ */
339
+ skipTo: (cursor: string) => ProductsQueryBuilder;
335
340
  /** @documentationMaturity preview */
336
341
  find: () => Promise<ProductsQueryResult>;
337
342
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/motion",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
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": "0c5c5898cc3e256053835bb66fa2fcff6388c47fb8ed2350ee29bda6"
36
+ "falconPackageHash": "7df370774f423532c6fb2b08da6c02018e8304d5debc2f3788bd9ec0"
37
37
  }