@compassdigital/sdk.typescript 4.149.0 → 4.151.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.
@@ -20,15 +20,20 @@ export interface Error {
20
20
  message: string;
21
21
  data: ErrorData;
22
22
  }
23
- export interface GetTimeslotsForBrandsRequest {
23
+ export interface PostTimeslotsForBrandsBody {
24
24
  brands: string[];
25
25
  duration: number;
26
26
  type: string;
27
27
  startTime: string;
28
28
  endTime: string;
29
29
  }
30
+ export interface BrandTimeslotKey {
31
+ time: string;
32
+ brandId: string;
33
+ type: 'pickup' | 'delivery';
34
+ }
30
35
  export interface PostBrandIncrementRequest {
31
- timeslots: string[];
36
+ timeslots: BrandTimeslotKey[];
32
37
  }
33
38
  export interface GetTimeslotsBrandPath {
34
39
  brandId: string;
@@ -41,8 +46,8 @@ export interface GetTimeslotsBrandQuery {
41
46
  _query?: string;
42
47
  }
43
48
  export type GetTimeslotsBrandResponse = GetTimeslotResponse;
44
- export type GetTimeslotsBrandsBody = GetTimeslotsForBrandsRequest;
45
- export type GetTimeslotsBrandsResponse = GetTimeslotResponse;
49
+ export type GetTimeslotsBrandsBody = PostTimeslotsForBrandsBody;
50
+ export type GetTimeslotsBrandsResponse = PostTimeslotsForBrandsBody;
46
51
  export type PostTimeslotsBrandIncrementBody = PostBrandIncrementRequest;
47
52
  export type PostTimeslotsBrandIncrementResponse = {};
48
53
  //# sourceMappingURL=timeslots.d.ts.map
@@ -1 +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,WAA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AAG,0BAA0B,CAAC;AAIpE,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CAAC;AAExE,MAAM,MAAM,mCAAmC,GAAG,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.149.0",
3
+ "version": "4.151.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -39,7 +39,7 @@ export interface Error {
39
39
  data: ErrorData;
40
40
  }
41
41
 
42
- export interface GetTimeslotsForBrandsRequest {
42
+ export interface PostTimeslotsForBrandsBody {
43
43
  // brands list
44
44
  brands: string[];
45
45
  // duration of timeslot
@@ -52,9 +52,18 @@ export interface GetTimeslotsForBrandsRequest {
52
52
  endTime: string;
53
53
  }
54
54
 
55
+ export interface BrandTimeslotKey {
56
+ // time of the order
57
+ time: string;
58
+ // brandId of the order
59
+ brandId: string;
60
+ // timeslot type
61
+ type: 'pickup' | 'delivery';
62
+ }
63
+
55
64
  export interface PostBrandIncrementRequest {
56
65
  // timeslots list
57
- timeslots: string[];
66
+ timeslots: BrandTimeslotKey[];
58
67
  }
59
68
 
60
69
  // GET /timeslots/brand/{brandId} - Get timeslots for brand
@@ -81,9 +90,9 @@ export type GetTimeslotsBrandResponse = GetTimeslotResponse;
81
90
 
82
91
  // POST /timeslots/brands - Get timeslots for brands
83
92
 
84
- export type GetTimeslotsBrandsBody = GetTimeslotsForBrandsRequest;
93
+ export type GetTimeslotsBrandsBody = PostTimeslotsForBrandsBody;
85
94
 
86
- export type GetTimeslotsBrandsResponse = GetTimeslotResponse;
95
+ export type GetTimeslotsBrandsResponse = PostTimeslotsForBrandsBody;
87
96
 
88
97
  // POST /timeslots/brand/increment - Update timeslots count for brands by key
89
98