@compassdigital/sdk.typescript 4.143.0 → 4.144.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.
@@ -0,0 +1,34 @@
1
+ export interface Timeslot {
2
+ start_time: string;
3
+ number_orders: number;
4
+ }
5
+ export interface GetTimeslotResponse {
6
+ timeslots: Timeslot[];
7
+ }
8
+ export interface ErrorDisplayMessage {
9
+ title: string;
10
+ description: string;
11
+ }
12
+ export interface ErrorData {
13
+ statusCode: number;
14
+ statusText: string;
15
+ timestamp: string;
16
+ displayMessage: ErrorDisplayMessage;
17
+ }
18
+ export interface Error {
19
+ code: number;
20
+ message: string;
21
+ data: ErrorData;
22
+ }
23
+ export interface GetTimeslotsBrandPath {
24
+ brandId: string;
25
+ }
26
+ export interface GetTimeslotsBrandQuery {
27
+ duration: number;
28
+ type: 'pickup' | 'delivery';
29
+ startTime: string;
30
+ endTime: string;
31
+ _query?: string;
32
+ }
33
+ export type GetTimeslotsBrandResponse = GetTimeslotResponse;
34
+ //# sourceMappingURL=timeslots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeslots.d.ts","sourceRoot":"","sources":["../../src/interface/timeslots.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,QAAQ;IAExB,UAAU,EAAE,MAAM,CAAC;IAEnB,aAAa,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAEnC,SAAS,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAEnC,KAAK,EAAE,MAAM,CAAC;IAEd,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IAEzB,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,mBAAmB,CAAC;CACpC;AAED,MAAM,WAAW,KAAK;IAErB,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;CAChB;AAID,MAAM,WAAW,qBAAqB;IAErC,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IAEtC,QAAQ,EAAE,MAAM,CAAC;IAEjB,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;IAE5B,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,MAAM,CAAC;IAEhB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,yBAAyB,GAAG,mBAAmB,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /* eslint-disable */
3
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ //# sourceMappingURL=timeslots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timeslots.js","sourceRoot":"","sources":["../../src/interface/timeslots.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,sDAAsD"}
package/manifest.json CHANGED
@@ -150,6 +150,13 @@
150
150
  "options": {
151
151
  "request": false
152
152
  }
153
+ },
154
+ {
155
+ "name": "timeslots",
156
+ "swagger": "../../api/platform2/timeslots/swagger.json",
157
+ "options": {
158
+ "request": false
159
+ }
153
160
  }
154
161
  ]
155
162
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.143.0",
3
+ "version": "4.144.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -1285,6 +1285,8 @@ import {
1285
1285
  PutDiscountPublishResponse,
1286
1286
  } from './interface/discount';
1287
1287
 
1288
+ import { GetTimeslotsBrandQuery, GetTimeslotsBrandResponse } from './interface/timeslots';
1289
+
1288
1290
  import { BaseServiceClient, RequestOptions, ResponsePromise } from './base';
1289
1291
  export * from './base';
1290
1292
 
@@ -13344,4 +13346,26 @@ export class ServiceClient extends BaseServiceClient {
13344
13346
  options,
13345
13347
  );
13346
13348
  }
13349
+
13350
+ /**
13351
+ * GET /timeslots/brand/{brandId} - Get timeslots for brand
13352
+ *
13353
+ * @param brandId - brandId
13354
+ * @param options - additional request options
13355
+ */
13356
+ get_timeslots_brand(
13357
+ brandId: string,
13358
+ options: {
13359
+ query: GetTimeslotsBrandQuery;
13360
+ } & RequestOptions,
13361
+ ): ResponsePromise<GetTimeslotsBrandResponse> {
13362
+ return this.request(
13363
+ 'timeslots',
13364
+ '/timeslots/brand/{brandId}',
13365
+ 'GET',
13366
+ `/timeslots/brand/${brandId}`,
13367
+ null,
13368
+ options,
13369
+ );
13370
+ }
13347
13371
  }
@@ -550,8 +550,6 @@ export interface ConsumerDiscountStatus {
550
550
  export interface ConsumerDiscountIs {
551
551
  badgepayPromo?: boolean;
552
552
  mealplanPromo?: boolean;
553
- decliningBalancePromo?: boolean;
554
- voucherPromo?: boolean;
555
553
  }
556
554
 
557
555
  export interface ConsumerVoucherifyMetaDataDiscount {
@@ -566,12 +564,12 @@ export interface ConsumerVoucherifyMetaData {
566
564
  discount?: ConsumerVoucherifyMetaDataDiscount;
567
565
  }
568
566
 
569
- export interface ClassMetaProvider {
567
+ export interface ConsumerMetaProvider {
570
568
  voucherify?: ConsumerVoucherifyMetaData;
571
569
  }
572
570
 
573
571
  export interface ConsumerDiscountMeta {
574
- provider: ClassMetaProvider;
572
+ provider: ConsumerMetaProvider;
575
573
  }
576
574
 
577
575
  export interface ConsumerStackedDiscount {
@@ -588,7 +586,7 @@ export interface ConsumerStackedDiscount {
588
586
  }
589
587
 
590
588
  export interface Discounts {
591
- applied_amount?: number;
589
+ stacked_total?: number;
592
590
  app?: string;
593
591
  stacked_discounts?: ConsumerStackedDiscount[];
594
592
  }
@@ -1896,8 +1894,6 @@ export interface PostConsumerPromoRedeemRequest {
1896
1894
  email?: string;
1897
1895
  // The app of the customer
1898
1896
  app?: string;
1899
- // The realm of the customer
1900
- realm?: string;
1901
1897
  // The location brand of the customer
1902
1898
  location_brand?: string;
1903
1899
  shoppingcart?: {