@compassdigital/sdk.typescript 4.221.0 → 4.223.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,88 @@
1
+ export interface LocationAddress {
2
+ address?: string;
3
+ city?: string;
4
+ state?: string;
5
+ zip?: string;
6
+ country?: string;
7
+ coordinates?: {
8
+ latitude: number;
9
+ longitude: number;
10
+ };
11
+ }
12
+ export interface LocationIs {
13
+ scanAndGoSupported?: boolean;
14
+ frictionlessSupported?: boolean;
15
+ pickupSupported?: boolean;
16
+ deliverySupported?: boolean;
17
+ specialInstructionsEnabled?: boolean;
18
+ cafe360?: boolean;
19
+ hidden?: boolean;
20
+ webOrderEnabled?: boolean;
21
+ itemLabelEditEnabled?: boolean;
22
+ localImagesEnabled?: boolean;
23
+ pluEnabled?: boolean;
24
+ }
25
+ export interface LocationTimeslots {
26
+ averagePrepTime?: string;
27
+ customersPerSlot?: number;
28
+ time?: string;
29
+ deliveryPrepTime?: string;
30
+ deliveryIsUserDefined?: boolean;
31
+ deliveryTime?: string;
32
+ deliveryDestinations?: string[];
33
+ deliveryUserDefined?: string[];
34
+ deliveryCustomersPerSlot?: number;
35
+ }
36
+ export interface LocationCreatedEvent {
37
+ id: string;
38
+ type: 'LocationCreatedEvent';
39
+ version: '0.0.1';
40
+ timestamp: string;
41
+ traceContext: {
42
+ traceId?: string;
43
+ };
44
+ payload: {
45
+ location: {
46
+ id: string;
47
+ createdBy: string;
48
+ updatedBy?: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ name: string;
52
+ type: string;
53
+ multiGroup?: string;
54
+ group?: string;
55
+ location?: string;
56
+ sector?: string;
57
+ company?: string;
58
+ externalId?: string;
59
+ address?: LocationAddress;
60
+ label?: Record<string, any>;
61
+ style?: Record<string, any>;
62
+ meta?: Record<string, any>;
63
+ deviceMapping?: Record<string, any>;
64
+ is?: LocationIs;
65
+ timeslots?: LocationTimeslots;
66
+ menus?: Record<string, any>[];
67
+ hours?: Record<string, any>[];
68
+ deliveryHours?: Record<string, any>[];
69
+ descriptions?: Record<string, any>;
70
+ paymentProvider?: string;
71
+ latitude?: number;
72
+ longitude?: number;
73
+ timezone?: string;
74
+ geohash?: string;
75
+ operationId?: number;
76
+ locationDescription?: string;
77
+ pos?: string;
78
+ terminals?: Record<string, any>[];
79
+ marketPlace?: Record<string, any>;
80
+ foodlocker?: boolean;
81
+ archived?: boolean;
82
+ sortSequence?: number;
83
+ information?: string;
84
+ };
85
+ };
86
+ source: string;
87
+ }
88
+ //# sourceMappingURL=LocationCreatedEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationCreatedEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/LocationCreatedEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KAClB,CAAC;CACF;AAED,MAAM,WAAW,UAAU;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,OAAO,C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MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=LocationCreatedEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocationCreatedEvent.js","sourceRoot":"","sources":["../../../src/messages/events/LocationCreatedEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -2,6 +2,7 @@ export { DiscountCreatedEvent } from './DiscountCreatedEvent';
2
2
  export { DiscountDeletedEvent } from './DiscountDeletedEvent';
3
3
  export { DiscountUpdatedEvent } from './DiscountUpdatedEvent';
4
4
  export { FakeEvent } from './FakeEvent';
5
+ export { LocationCreatedEvent } from './LocationCreatedEvent';
5
6
  export { LocationUpdatedEvent } from './LocationUpdatedEvent';
6
7
  export { OrderCompletedEvent } from './OrderCompletedEvent';
7
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.221.0",
3
+ "version": "4.223.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -559,8 +559,10 @@ import {
559
559
  GetMenuV3LocalMenuGroupAllowedGlobalBrandsQuery,
560
560
  GetMenuV3LocalMenuGroupAllowedGlobalBrandsResponse,
561
561
  PostMenuV3LocalMenuGroupImportBrandsQuery,
562
+ PostMenuV3LocalMenuGroupImportBrandsBody,
562
563
  PostMenuV3LocalMenuGroupImportBrandsResponse,
563
564
  PostMenuV4LocalMenuGroupImportBrandsQuery,
565
+ PostMenuV4LocalMenuGroupImportBrandsBody,
564
566
  PostMenuV4LocalMenuGroupImportBrandsResponse,
565
567
  GetMenuV3LocalMenuGroupSiteQuery,
566
568
  GetMenuV3LocalMenuGroupSiteResponse,
@@ -6190,10 +6192,12 @@ export class ServiceClient extends BaseServiceClient {
6190
6192
  * POST /menu/v3/local-menu-group/{id}/import-brands
6191
6193
  *
6192
6194
  * @param id
6195
+ * @param body
6193
6196
  * @param options - additional request options
6194
6197
  */
6195
6198
  post_menu_v3_local_menu_group_import_brands(
6196
6199
  id: string,
6200
+ body: PostMenuV3LocalMenuGroupImportBrandsBody,
6197
6201
  options?: {
6198
6202
  query?: PostMenuV3LocalMenuGroupImportBrandsQuery;
6199
6203
  } & RequestOptions,
@@ -6203,7 +6207,7 @@ export class ServiceClient extends BaseServiceClient {
6203
6207
  '/menu/v3/local-menu-group/{id}/import-brands',
6204
6208
  'POST',
6205
6209
  `/menu/v3/local-menu-group/${id}/import-brands`,
6206
- null,
6210
+ body,
6207
6211
  options,
6208
6212
  );
6209
6213
  }
@@ -6212,10 +6216,12 @@ export class ServiceClient extends BaseServiceClient {
6212
6216
  * POST /menu/v4/local-menu-group/{id}/import-brands
6213
6217
  *
6214
6218
  * @param id
6219
+ * @param body
6215
6220
  * @param options - additional request options
6216
6221
  */
6217
6222
  post_menu_v4_local_menu_group_import_brands(
6218
6223
  id: string,
6224
+ body: PostMenuV4LocalMenuGroupImportBrandsBody,
6219
6225
  options?: {
6220
6226
  query?: PostMenuV4LocalMenuGroupImportBrandsQuery;
6221
6227
  } & RequestOptions,
@@ -6225,7 +6231,7 @@ export class ServiceClient extends BaseServiceClient {
6225
6231
  '/menu/v4/local-menu-group/{id}/import-brands',
6226
6232
  'POST',
6227
6233
  `/menu/v4/local-menu-group/${id}/import-brands`,
6228
- null,
6234
+ body,
6229
6235
  options,
6230
6236
  );
6231
6237
  }
@@ -2663,7 +2663,6 @@ export interface PostMenuV3LocalMenuGroupImportBrandsQuery {
2663
2663
  relationships?: string[];
2664
2664
  // The fields that filtering is allowed on
2665
2665
  filter?: string;
2666
- 'body.brand_ids'?: string[];
2667
2666
  // Number of records to load per page
2668
2667
  limit?: number;
2669
2668
  page?: number;
@@ -2674,6 +2673,11 @@ export interface PostMenuV3LocalMenuGroupImportBrandsQuery {
2674
2673
  soft_deleted?: 'include' | 'exclude' | 'only';
2675
2674
  }
2676
2675
 
2676
+ export interface PostMenuV3LocalMenuGroupImportBrandsBody {
2677
+ brand_ids: string[];
2678
+ [index: string]: any;
2679
+ }
2680
+
2677
2681
  export interface PostMenuV3LocalMenuGroupImportBrandsResponse {
2678
2682
  results: DraftBrandDTO[];
2679
2683
  meta?: ListResponseMetadataDTO;
@@ -2683,7 +2687,9 @@ export interface PostMenuV3LocalMenuGroupImportBrandsResponse {
2683
2687
  export interface PostMenuV3LocalMenuGroupImportBrandsRequest
2684
2688
  extends BaseRequest,
2685
2689
  RequestQuery<PostMenuV3LocalMenuGroupImportBrandsQuery>,
2686
- PostMenuV3LocalMenuGroupImportBrandsPath {}
2690
+ PostMenuV3LocalMenuGroupImportBrandsPath {
2691
+ body: PostMenuV3LocalMenuGroupImportBrandsBody;
2692
+ }
2687
2693
 
2688
2694
  // POST /menu/v4/local-menu-group/{id}/import-brands
2689
2695
 
@@ -2698,7 +2704,6 @@ export interface PostMenuV4LocalMenuGroupImportBrandsQuery {
2698
2704
  relationships?: string[];
2699
2705
  // The fields that filtering is allowed on
2700
2706
  filter?: string;
2701
- 'body.brand_ids'?: string[];
2702
2707
  // Number of records to load per page
2703
2708
  limit?: number;
2704
2709
  page?: number;
@@ -2709,6 +2714,11 @@ export interface PostMenuV4LocalMenuGroupImportBrandsQuery {
2709
2714
  soft_deleted?: 'include' | 'exclude' | 'only';
2710
2715
  }
2711
2716
 
2717
+ export interface PostMenuV4LocalMenuGroupImportBrandsBody {
2718
+ brand_ids: string[];
2719
+ [index: string]: any;
2720
+ }
2721
+
2712
2722
  export interface PostMenuV4LocalMenuGroupImportBrandsResponse {
2713
2723
  results: DraftBrandDTO[];
2714
2724
  meta?: ListResponseMetadataDTO;
@@ -2718,7 +2728,9 @@ export interface PostMenuV4LocalMenuGroupImportBrandsResponse {
2718
2728
  export interface PostMenuV4LocalMenuGroupImportBrandsRequest
2719
2729
  extends BaseRequest,
2720
2730
  RequestQuery<PostMenuV4LocalMenuGroupImportBrandsQuery>,
2721
- PostMenuV4LocalMenuGroupImportBrandsPath {}
2731
+ PostMenuV4LocalMenuGroupImportBrandsPath {
2732
+ body: PostMenuV4LocalMenuGroupImportBrandsBody;
2733
+ }
2722
2734
 
2723
2735
  // GET /menu/v3/local-menu-group/{id}/site
2724
2736
 
@@ -0,0 +1,121 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface LocationAddress {
4
+ address?: string;
5
+ city?: string;
6
+ state?: string;
7
+ zip?: string;
8
+ country?: string;
9
+ coordinates?: {
10
+ latitude: number;
11
+ longitude: number;
12
+ };
13
+ }
14
+
15
+ export interface LocationIs {
16
+ scanAndGoSupported?: boolean;
17
+ frictionlessSupported?: boolean;
18
+ pickupSupported?: boolean;
19
+ deliverySupported?: boolean;
20
+ specialInstructionsEnabled?: boolean;
21
+ cafe360?: boolean;
22
+ hidden?: boolean;
23
+ webOrderEnabled?: boolean;
24
+ itemLabelEditEnabled?: boolean;
25
+ localImagesEnabled?: boolean;
26
+ pluEnabled?: boolean;
27
+ }
28
+
29
+ export interface LocationTimeslots {
30
+ averagePrepTime?: string;
31
+ customersPerSlot?: number;
32
+ time?: string;
33
+ deliveryPrepTime?: string;
34
+ deliveryIsUserDefined?: boolean;
35
+ deliveryTime?: string;
36
+ deliveryDestinations?: string[];
37
+ deliveryUserDefined?: string[];
38
+ deliveryCustomersPerSlot?: number;
39
+ }
40
+
41
+ export interface LocationCreatedEvent {
42
+ id: string;
43
+ type: 'LocationCreatedEvent';
44
+ version: '0.0.1';
45
+ timestamp: string;
46
+ traceContext: {
47
+ traceId?: string;
48
+ };
49
+ payload: {
50
+ location: {
51
+ // location id
52
+ id: string;
53
+ // user id of location creator
54
+ createdBy: string;
55
+ // user id of most recent update
56
+ updatedBy?: string;
57
+ createdAt: string;
58
+ updatedAt: string;
59
+ // Name of the location
60
+ name: string;
61
+ // Type of entity (e.g., brand, location, group, etc.)
62
+ type: string;
63
+ // Multi-group association
64
+ multiGroup?: string;
65
+ // Group association
66
+ group?: string;
67
+ // Location identifier
68
+ location?: string;
69
+ // Sector identifier
70
+ sector?: string;
71
+ // Company identifier
72
+ company?: string;
73
+ // External identifier for cross-system references
74
+ externalId?: string;
75
+ address?: LocationAddress;
76
+ // Labeling metadata
77
+ label?: Record<string, any>;
78
+ // Styling metadata
79
+ style?: Record<string, any>;
80
+ // Additional metadata
81
+ meta?: Record<string, any>;
82
+ // Device mapping information
83
+ deviceMapping?: Record<string, any>;
84
+ is?: LocationIs;
85
+ timeslots?: LocationTimeslots;
86
+ menus?: Record<string, any>[];
87
+ hours?: Record<string, any>[];
88
+ deliveryHours?: Record<string, any>[];
89
+ // Description data for the entity
90
+ descriptions?: Record<string, any>;
91
+ // Payment provider associated with the entity
92
+ paymentProvider?: string;
93
+ // Latitude coordinate
94
+ latitude?: number;
95
+ // Longitude coordinate
96
+ longitude?: number;
97
+ // Timezone for the entity
98
+ timezone?: string;
99
+ // Geohash of the entity's location
100
+ geohash?: string;
101
+ // Associated operation ID
102
+ operationId?: number;
103
+ // Description of the location
104
+ locationDescription?: string;
105
+ // Point-of-sale system identifier
106
+ pos?: string;
107
+ terminals?: Record<string, any>[];
108
+ // Marketplace information
109
+ marketPlace?: Record<string, any>;
110
+ // Indicates if the location has a food locker
111
+ foodlocker?: boolean;
112
+ // Indicates if the entity is archived
113
+ archived?: boolean;
114
+ // Sorting order for listings
115
+ sortSequence?: number;
116
+ // Additional information
117
+ information?: string;
118
+ };
119
+ };
120
+ source: string;
121
+ }
@@ -8,6 +8,8 @@ export { DiscountUpdatedEvent } from './DiscountUpdatedEvent';
8
8
 
9
9
  export { FakeEvent } from './FakeEvent';
10
10
 
11
+ export { LocationCreatedEvent } from './LocationCreatedEvent';
12
+
11
13
  export { LocationUpdatedEvent } from './LocationUpdatedEvent';
12
14
 
13
15
  export { OrderCompletedEvent } from './OrderCompletedEvent';