@compassdigital/sdk.typescript 4.140.0 → 4.143.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,14 @@
1
+ export interface FakeCommand {
2
+ id: string;
3
+ type: 'FakeCommand';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceId?: string;
8
+ };
9
+ payload: {
10
+ foo: string;
11
+ };
12
+ source: string;
13
+ }
14
+ //# sourceMappingURL=FakeCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FakeCommand.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/FakeCommand.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=FakeCommand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FakeCommand.js","sourceRoot":"","sources":["../../../src/messages/commands/FakeCommand.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -1,2 +1,3 @@
1
+ export { FakeCommand } from './FakeCommand';
1
2
  export { SendPushNotificationCommand } from './SendPushNotificationCommand';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/commands/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,14 @@
1
+ export interface FakeEvent {
2
+ id: string;
3
+ type: 'FakeEvent';
4
+ version: '0.0.1';
5
+ timestamp: string;
6
+ traceContext: {
7
+ traceId?: string;
8
+ };
9
+ payload: {
10
+ foo: string;
11
+ };
12
+ source: string;
13
+ }
14
+ //# sourceMappingURL=FakeEvent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FakeEvent.d.ts","sourceRoot":"","sources":["../../../src/messages/events/FakeEvent.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,OAAO,EAAE;QACR,GAAG,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,MAAM,EAAE,MAAM,CAAC;CACf"}
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=FakeEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FakeEvent.js","sourceRoot":"","sources":["../../../src/messages/events/FakeEvent.ts"],"names":[],"mappings":";AAAA,sDAAsD"}
@@ -1 +1,2 @@
1
+ export { FakeEvent } from './FakeEvent';
1
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/events/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/messages/events/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+ Object.defineProperty(exports, "__esModule", { value: true });
3
4
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.140.0",
3
+ "version": "4.143.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -10,9 +10,29 @@ export interface CatalogResponseDTO {
10
10
  display: Record<string, any>;
11
11
  meta: Record<string, any> | null;
12
12
  items: Record<string, any> | null;
13
+ created_at: string;
14
+ updated_at: string;
13
15
  }
14
16
 
15
- export type CatalogItemResponseDTO = Record<string, any>;
17
+ export interface CatalogItemResponseDTO {
18
+ id: number;
19
+ catalog_id: number;
20
+ item_id: string;
21
+ name: string;
22
+ label?: string;
23
+ description?: string;
24
+ price: number;
25
+ overrides?: Record<string, any>;
26
+ options: Record<string, any>;
27
+ barcode?: string;
28
+ reporting?: Record<string, any>;
29
+ tax?: Record<string, any>;
30
+ is_visible: boolean;
31
+ is_out_of_stock: boolean;
32
+ meta: Record<string, any>;
33
+ created_at: string;
34
+ updated_at: string;
35
+ }
16
36
 
17
37
  export interface PaginationQueryDTO {
18
38
  // Page number
@@ -32,7 +52,47 @@ export interface ListParamsDTO {
32
52
  filter?: FilterQueryDTO;
33
53
  }
34
54
 
35
- export type CatalogItemsListResponseDTO = Record<string, any>;
55
+ export interface CatalogItemRecord {
56
+ id: number;
57
+ catalog_id: number;
58
+ item_id: string;
59
+ name: string;
60
+ label?: string;
61
+ description?: string;
62
+ price: number;
63
+ overrides?: Record<string, any>;
64
+ options: Record<string, any>;
65
+ barcode?: string;
66
+ reporting?: Record<string, any>;
67
+ tax?: Record<string, any>;
68
+ is_visible: boolean;
69
+ is_out_of_stock: boolean;
70
+ meta: Record<string, any>;
71
+ created_at: string;
72
+ updated_at: string;
73
+ }
74
+
75
+ export interface MetaData {
76
+ // Total number of results
77
+ total_results: number;
78
+ // Total number of pages
79
+ total_pages: number;
80
+ // Number of results on this page
81
+ result_count: number;
82
+ // Number of results per page
83
+ limit?: number;
84
+ // Current page number
85
+ page?: number;
86
+ // Field to sort by
87
+ sort_by?: string;
88
+ // Sort order
89
+ order?: 'ASC' | 'DESC';
90
+ }
91
+
92
+ export interface CatalogItemsListResponseDTO {
93
+ results: CatalogItemRecord[];
94
+ meta: MetaData;
95
+ }
36
96
 
37
97
  export interface SearchConditionDTO {
38
98
  // Contains search term
@@ -55,7 +115,36 @@ export interface SearchConditionDTO {
55
115
  lessThanOrEqual?: Record<string, any>;
56
116
  }
57
117
 
58
- export type BaseItemDTO = Record<string, any>;
118
+ export interface DeleteCatalogItemResponseDTO {
119
+ id: number;
120
+ catalog_id: number;
121
+ item_id: string;
122
+ name: string;
123
+ label?: string;
124
+ description?: string;
125
+ price: number;
126
+ overrides?: Record<string, any>;
127
+ options: Record<string, any>;
128
+ barcode?: string;
129
+ reporting?: Record<string, any>;
130
+ tax?: Record<string, any>;
131
+ is_visible: boolean;
132
+ is_out_of_stock: boolean;
133
+ meta: Record<string, any>;
134
+ }
135
+
136
+ export interface BaseItemResponseDTO {
137
+ id: string;
138
+ name: string;
139
+ description: string;
140
+ price: number;
141
+ barcode: string;
142
+ reporting: Record<string, any>;
143
+ tax: Record<string, any>;
144
+ meta: Record<string, any>;
145
+ created_at: string;
146
+ updated_at: string;
147
+ }
59
148
 
60
149
  // GET /catalog/status - Get the status of the Catalog service
61
150
 
@@ -175,7 +264,19 @@ export interface PostCatalogItemsBulkPath {
175
264
  id: number;
176
265
  }
177
266
 
178
- export type PostCatalogItemsBulkBody = string[];
267
+ export type PostCatalogItemsBulkBody = {
268
+ base_item_id?: string;
269
+ name?: string;
270
+ catalog_item_id?: number | null;
271
+ label?: string | null;
272
+ description?: string | null;
273
+ price?: number | null;
274
+ overrides?: Record<string, any> | null;
275
+ options?: Record<string, any> | null;
276
+ meta?: Record<string, any> | null;
277
+ is_visible?: boolean | null;
278
+ is_out_of_stock?: boolean | null;
279
+ }[];
179
280
 
180
281
  export type PostCatalogItemsBulkResponse = CatalogItemResponseDTO[];
181
282
 
@@ -216,7 +317,7 @@ export interface DeleteCatalogItemPath {
216
317
  id: number;
217
318
  }
218
319
 
219
- export type DeleteCatalogItemResponse = CatalogItemResponseDTO;
320
+ export type DeleteCatalogItemResponse = DeleteCatalogItemResponseDTO;
220
321
 
221
322
  export interface DeleteCatalogItemRequest extends BaseRequest, DeleteCatalogItemPath {}
222
323
 
@@ -279,7 +380,7 @@ export interface PostCatalogBaseItemBody {
279
380
  meta?: Record<string, any> | null;
280
381
  }
281
382
 
282
- export type PostCatalogBaseItemResponse = BaseItemDTO;
383
+ export type PostCatalogBaseItemResponse = BaseItemResponseDTO;
283
384
 
284
385
  export interface PostCatalogBaseItemRequest extends BaseRequest {
285
386
  body: PostCatalogBaseItemBody;
@@ -298,7 +399,7 @@ export interface GetCatalogBaseItemsBody {
298
399
  offset?: number;
299
400
  }
300
401
 
301
- export type GetCatalogBaseItemsResponse = BaseItemDTO[];
402
+ export type GetCatalogBaseItemsResponse = BaseItemResponseDTO[];
302
403
 
303
404
  export interface GetCatalogBaseItemsRequest
304
405
  extends BaseRequest,
@@ -317,7 +418,7 @@ export interface GetCatalogBaseItemQuery {
317
418
  _query?: string;
318
419
  }
319
420
 
320
- export type GetCatalogBaseItemResponse = BaseItemDTO;
421
+ export type GetCatalogBaseItemResponse = BaseItemResponseDTO;
321
422
 
322
423
  export interface GetCatalogBaseItemRequest
323
424
  extends BaseRequest,
@@ -454,6 +454,7 @@ export interface DraftBrandDTO {
454
454
  auto_push_to_local?: boolean;
455
455
  frictionless_partner?: string;
456
456
  meta?: BrandMeta;
457
+ supported_languages?: SupportedLanguages;
457
458
  applied_diff_snapshot?: Record<string, any>;
458
459
  version?: number;
459
460
  permissions?: Record<string, any>;
@@ -464,6 +465,11 @@ export interface BrandMeta {
464
465
  jde_category?: string;
465
466
  }
466
467
 
468
+ export interface SupportedLanguages {
469
+ fr?: string;
470
+ kvi?: string;
471
+ }
472
+
467
473
  export interface PublishedBrandDTO {
468
474
  published_catalog_id?: number;
469
475
  id?: string;
@@ -482,6 +488,7 @@ export interface PublishedBrandDTO {
482
488
  auto_push_to_local?: boolean;
483
489
  frictionless_partner?: string;
484
490
  meta?: Record<string, any>;
491
+ supported_languages?: Record<string, any>;
485
492
  version?: number;
486
493
  permissions?: Record<string, any>;
487
494
  [index: string]: any;
@@ -3093,6 +3100,7 @@ export interface PostMenuV3DraftBrandBody {
3093
3100
  auto_push_to_local?: boolean;
3094
3101
  frictionless_partner?: string;
3095
3102
  meta?: BrandMeta;
3103
+ supported_languages?: SupportedLanguages;
3096
3104
  applied_diff_snapshot?: Record<string, any>;
3097
3105
  changes?: BrandChangeDTO[];
3098
3106
  local_menu_group?: LocalMenuGroupDTO;
@@ -3166,6 +3174,7 @@ export interface PatchMenuV3DraftBrandBody {
3166
3174
  auto_push_to_local?: boolean;
3167
3175
  frictionless_partner?: string;
3168
3176
  meta?: BrandMeta;
3177
+ supported_languages?: SupportedLanguages;
3169
3178
  applied_diff_snapshot?: Record<string, any>;
3170
3179
  version?: number;
3171
3180
  changes?: BrandChangeDTO[];
@@ -3261,6 +3270,7 @@ export type PostMenuV3DraftBrandsBody = {
3261
3270
  auto_push_to_local?: boolean;
3262
3271
  frictionless_partner?: string;
3263
3272
  meta?: BrandMeta;
3273
+ supported_languages?: SupportedLanguages;
3264
3274
  applied_diff_snapshot?: Record<string, any>;
3265
3275
  changes?: BrandChangeDTO[];
3266
3276
  local_menu_group?: LocalMenuGroupDTO;
@@ -3788,6 +3798,7 @@ export interface PostMenuV3BrandBody {
3788
3798
  auto_push_to_local?: boolean;
3789
3799
  frictionless_partner?: string;
3790
3800
  meta?: BrandMeta;
3801
+ supported_languages?: SupportedLanguages;
3791
3802
  local_menu_group?: LocalMenuGroupDTO;
3792
3803
  global_menu_group?: GlobalMenuGroupDTO;
3793
3804
  attachments?: FileAttachmentsDTO;
@@ -3859,6 +3870,7 @@ export interface PatchMenuV3BrandBody {
3859
3870
  auto_push_to_local?: boolean;
3860
3871
  frictionless_partner?: string;
3861
3872
  meta?: BrandMeta;
3873
+ supported_languages?: SupportedLanguages;
3862
3874
  version?: number;
3863
3875
  local_menu_group?: LocalMenuGroupDTO;
3864
3876
  global_menu_group?: GlobalMenuGroupDTO;
@@ -3954,6 +3966,7 @@ export type PostMenuV3BrandsBody = {
3954
3966
  auto_push_to_local?: boolean;
3955
3967
  frictionless_partner?: string;
3956
3968
  meta?: BrandMeta;
3969
+ supported_languages?: SupportedLanguages;
3957
3970
  local_menu_group?: LocalMenuGroupDTO;
3958
3971
  global_menu_group?: GlobalMenuGroupDTO;
3959
3972
  attachments?: FileAttachmentsDTO;
@@ -7407,6 +7420,7 @@ export interface PostMenuV4BrandBody {
7407
7420
  auto_push_to_local?: boolean;
7408
7421
  frictionless_partner?: string;
7409
7422
  meta?: BrandMeta;
7423
+ supported_languages?: SupportedLanguages;
7410
7424
  applied_diff_snapshot?: Record<string, any>;
7411
7425
  changes?: BrandChangeDTO[];
7412
7426
  local_menu_group?: LocalMenuGroupDTO;
@@ -7449,6 +7463,7 @@ export interface PostMenuV4BrandResponse {
7449
7463
  auto_push_to_local?: boolean;
7450
7464
  frictionless_partner?: string;
7451
7465
  meta?: BrandMeta;
7466
+ supported_languages?: SupportedLanguages;
7452
7467
  applied_diff_snapshot?: Record<string, any>;
7453
7468
  version?: number;
7454
7469
  changes?: BrandChangeDTO[];
@@ -7508,6 +7523,7 @@ export interface GetMenuV4BrandResponse {
7508
7523
  auto_push_to_local?: boolean;
7509
7524
  frictionless_partner?: string;
7510
7525
  meta?: BrandMeta;
7526
+ supported_languages?: SupportedLanguages;
7511
7527
  applied_diff_snapshot?: Record<string, any>;
7512
7528
  version?: number;
7513
7529
  changes?: BrandChangeDTO[];
@@ -7562,6 +7578,7 @@ export interface DeleteMenuV4BrandResponse {
7562
7578
  auto_push_to_local?: boolean;
7563
7579
  frictionless_partner?: string;
7564
7580
  meta?: BrandMeta;
7581
+ supported_languages?: SupportedLanguages;
7565
7582
  applied_diff_snapshot?: Record<string, any>;
7566
7583
  version?: number;
7567
7584
  changes?: BrandChangeDTO[];
@@ -0,0 +1,15 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface FakeCommand {
4
+ id: string;
5
+ type: 'FakeCommand';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ traceId?: string;
10
+ };
11
+ payload: {
12
+ foo: string;
13
+ };
14
+ source: string;
15
+ }
@@ -1,3 +1,5 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
2
 
3
+ export { FakeCommand } from './FakeCommand';
4
+
3
5
  export { SendPushNotificationCommand } from './SendPushNotificationCommand';
@@ -0,0 +1,15 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export interface FakeEvent {
4
+ id: string;
5
+ type: 'FakeEvent';
6
+ version: '0.0.1';
7
+ timestamp: string;
8
+ traceContext: {
9
+ traceId?: string;
10
+ };
11
+ payload: {
12
+ foo: string;
13
+ };
14
+ source: string;
15
+ }
@@ -1 +1,3 @@
1
1
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ export { FakeEvent } from './FakeEvent';