@compassdigital/sdk.typescript 4.94.2 → 4.96.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.94.2",
3
+ "version": "4.96.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -534,6 +534,8 @@ import {
534
534
  GetMenuV3LocalMenuGroupAllowedGlobalBrandsResponse,
535
535
  PostMenuV3LocalMenuGroupImportBrandsQuery,
536
536
  PostMenuV3LocalMenuGroupImportBrandsResponse,
537
+ PostMenuV4LocalMenuGroupImportBrandsQuery,
538
+ PostMenuV4LocalMenuGroupImportBrandsResponse,
537
539
  GetMenuV3LocalMenuGroupSiteQuery,
538
540
  GetMenuV3LocalMenuGroupSiteResponse,
539
541
  GetMenuV3LocalMenuGroupMenuGroupQuery,
@@ -607,6 +609,10 @@ import {
607
609
  PostMenuV3DraftBrandGlobalDiffsApplyResponse,
608
610
  PostMenuV3DraftBrandAttachmentQuery,
609
611
  PostMenuV3DraftBrandAttachmentResponse,
612
+ GetMenuV3DraftBrandExportQuery,
613
+ GetMenuV3DraftBrandExportResponse,
614
+ GetMenuV3DraftBrandImportLinkQuery,
615
+ GetMenuV3DraftBrandImportLinkResponse,
610
616
  PostMenuV3BrandQuery,
611
617
  PostMenuV3BrandBody,
612
618
  PostMenuV3BrandResponse,
@@ -881,6 +887,8 @@ import {
881
887
  GetMenuV4BrandResponse,
882
888
  PostMenuV4BrandMenuBody,
883
889
  PostMenuV4BrandMenuResponse,
890
+ PatchMenuV4BrandMenuBody,
891
+ PatchMenuV4BrandMenuResponse,
884
892
  GetMenuV4BrandItemsQuery,
885
893
  GetMenuV4BrandItemsResponse,
886
894
  GetMenuV4BrandModifierGroupsQuery,
@@ -897,24 +905,30 @@ import {
897
905
  PostMenuV4BrandCategoryAttachItemsResponse,
898
906
  PostMenuV4BrandPublishResponse,
899
907
  PostMenuV4BrandV3ToV4Response,
908
+ DeleteMenuV4BrandResponse,
909
+ DeleteMenuV4BrandMenuResponse,
910
+ DeleteMenuV4BrandCategoryResponse,
900
911
  PostMenuV4ItemBody,
901
912
  PostMenuV4ItemResponse,
902
913
  GetMenuV4ItemQuery,
903
914
  GetMenuV4ItemResponse,
904
915
  PatchMenuV4ItemBody,
905
916
  PatchMenuV4ItemResponse,
917
+ DeleteMenuV4ItemResponse,
906
918
  PostMenuV4ModifierBody,
907
919
  PostMenuV4ModifierResponse,
908
920
  GetMenuV4ModifierQuery,
909
921
  GetMenuV4ModifierResponse,
910
922
  PatchMenuV4ModifierBody,
911
923
  PatchMenuV4ModifierResponse,
924
+ DeleteMenuV4ModifierResponse,
912
925
  PostMenuV4ModifierGroupBody,
913
926
  PostMenuV4ModifierGroupResponse,
914
927
  GetMenuV4ModifierGroupQuery,
915
928
  GetMenuV4ModifierGroupResponse,
916
929
  PatchMenuV4ModifierGroupBody,
917
930
  PatchMenuV4ModifierGroupResponse,
931
+ DeleteMenuV4ModifierGroupResponse,
918
932
  PostMenuV4ModifierGroupAttachModifiersBody,
919
933
  PostMenuV4ModifierGroupAttachModifiersResponse,
920
934
  } from './interface/menu';
@@ -1003,8 +1017,8 @@ import {
1003
1017
  GetPaymentListByBrandResponse,
1004
1018
  GetCustomerOrdersQuery,
1005
1019
  GetCustomerOrdersResponse,
1006
- PostOrderReviewsBody,
1007
- PostOrderReviewsResponse,
1020
+ PostReviewOrderItemRatingsBody,
1021
+ PostReviewOrderItemRatingsResponse,
1008
1022
  } from './interface/consumer';
1009
1023
 
1010
1024
  import {
@@ -1012,6 +1026,8 @@ import {
1012
1026
  PostAiLanguageGenerateResponse,
1013
1027
  PostAiImageGenerateBody,
1014
1028
  PostAiImageGenerateResponse,
1029
+ PostAiTranslateBody,
1030
+ PostAiTranslateResponse,
1015
1031
  } from './interface/ai';
1016
1032
 
1017
1033
  import {
@@ -1034,6 +1050,8 @@ import {
1034
1050
  GetSiteDevicesResponse,
1035
1051
  GetCentricosSitesQuery,
1036
1052
  GetCentricosSitesResponse,
1053
+ GetReviewOrderItemsQuery,
1054
+ GetReviewOrderItemsResponse,
1037
1055
  } from './interface/centricos';
1038
1056
 
1039
1057
  import {
@@ -5646,6 +5664,28 @@ export class ServiceClient extends BaseServiceClient {
5646
5664
  );
5647
5665
  }
5648
5666
 
5667
+ /**
5668
+ * POST /menu/v4/local-menu-group/{id}/import-brands
5669
+ *
5670
+ * @param id
5671
+ * @param options - additional request options
5672
+ */
5673
+ post_menu_v4_local_menu_group_import_brands(
5674
+ id: string,
5675
+ options?: {
5676
+ query?: PostMenuV4LocalMenuGroupImportBrandsQuery;
5677
+ } & RequestOptions,
5678
+ ): ResponsePromise<PostMenuV4LocalMenuGroupImportBrandsResponse> {
5679
+ return this.request(
5680
+ 'menu',
5681
+ '/menu/v4/local-menu-group/{id}/import-brands',
5682
+ 'post',
5683
+ `/menu/v4/local-menu-group/${id}/import-brands`,
5684
+ null,
5685
+ options,
5686
+ );
5687
+ }
5688
+
5649
5689
  /**
5650
5690
  * GET /menu/v3/local-menu-group/{id}/site
5651
5691
  *
@@ -6458,6 +6498,50 @@ export class ServiceClient extends BaseServiceClient {
6458
6498
  );
6459
6499
  }
6460
6500
 
6501
+ /**
6502
+ * GET /menu/v3/draft/brand/{id}/export
6503
+ *
6504
+ * @param id
6505
+ * @param options - additional request options
6506
+ */
6507
+ get_menu_v3_draft_brand_export(
6508
+ id: string,
6509
+ options?: {
6510
+ query?: GetMenuV3DraftBrandExportQuery;
6511
+ } & RequestOptions,
6512
+ ): ResponsePromise<GetMenuV3DraftBrandExportResponse> {
6513
+ return this.request(
6514
+ 'menu',
6515
+ '/menu/v3/draft/brand/{id}/export',
6516
+ 'get',
6517
+ `/menu/v3/draft/brand/${id}/export`,
6518
+ null,
6519
+ options,
6520
+ );
6521
+ }
6522
+
6523
+ /**
6524
+ * GET /menu/v3/draft/brand/{id}/import/link
6525
+ *
6526
+ * @param id
6527
+ * @param options - additional request options
6528
+ */
6529
+ get_menu_v3_draft_brand_import_link(
6530
+ id: string,
6531
+ options?: {
6532
+ query?: GetMenuV3DraftBrandImportLinkQuery;
6533
+ } & RequestOptions,
6534
+ ): ResponsePromise<GetMenuV3DraftBrandImportLinkResponse> {
6535
+ return this.request(
6536
+ 'menu',
6537
+ '/menu/v3/draft/brand/{id}/import/link',
6538
+ 'get',
6539
+ `/menu/v3/draft/brand/${id}/import/link`,
6540
+ null,
6541
+ options,
6542
+ );
6543
+ }
6544
+
6461
6545
  /**
6462
6546
  * POST /menu/v3/brand
6463
6547
  *
@@ -9346,6 +9430,30 @@ export class ServiceClient extends BaseServiceClient {
9346
9430
  );
9347
9431
  }
9348
9432
 
9433
+ /**
9434
+ * PATCH /menu/v4/brand/{brand_id}/menu/{menu_id}
9435
+ *
9436
+ * @param brand_id
9437
+ * @param menu_id
9438
+ * @param body
9439
+ * @param options - additional request options
9440
+ */
9441
+ patch_menu_v4_brand_menu(
9442
+ brand_id: string,
9443
+ menu_id: string,
9444
+ body: PatchMenuV4BrandMenuBody,
9445
+ options?: RequestOptions,
9446
+ ): ResponsePromise<PatchMenuV4BrandMenuResponse> {
9447
+ return this.request(
9448
+ 'menu',
9449
+ '/menu/v4/brand/{brand_id}/menu/{menu_id}',
9450
+ 'patch',
9451
+ `/menu/v4/brand/${brand_id}/menu/${menu_id}`,
9452
+ body,
9453
+ options,
9454
+ );
9455
+ }
9456
+
9349
9457
  /**
9350
9458
  * GET /menu/v4/brand/{id}/items
9351
9459
  *
@@ -9544,6 +9652,70 @@ export class ServiceClient extends BaseServiceClient {
9544
9652
  );
9545
9653
  }
9546
9654
 
9655
+ /**
9656
+ * DELETE menu/v4/brand/{id}
9657
+ *
9658
+ * @param id
9659
+ * @param options - additional request options
9660
+ */
9661
+ delete_menu_v4_brand(
9662
+ id: string,
9663
+ options?: RequestOptions,
9664
+ ): ResponsePromise<DeleteMenuV4BrandResponse> {
9665
+ return this.request(
9666
+ 'menu',
9667
+ 'menu/v4/brand/{id}',
9668
+ 'delete',
9669
+ `menu/v4/brand/${id}`,
9670
+ null,
9671
+ options,
9672
+ );
9673
+ }
9674
+
9675
+ /**
9676
+ * DELETE menu/v4/brand/{brand_id}/menu/{menu_id}
9677
+ *
9678
+ * @param brand_id
9679
+ * @param menu_id
9680
+ * @param options - additional request options
9681
+ */
9682
+ delete_menu_v4_brand_menu(
9683
+ brand_id: string,
9684
+ menu_id: string,
9685
+ options?: RequestOptions,
9686
+ ): ResponsePromise<DeleteMenuV4BrandMenuResponse> {
9687
+ return this.request(
9688
+ 'menu',
9689
+ 'menu/v4/brand/{brand_id}/menu/{menu_id}',
9690
+ 'delete',
9691
+ `menu/v4/brand/${brand_id}/menu/${menu_id}`,
9692
+ null,
9693
+ options,
9694
+ );
9695
+ }
9696
+
9697
+ /**
9698
+ * DELETE menu/v4/brand/{brand_id}/category/{category_id}
9699
+ *
9700
+ * @param brand_id
9701
+ * @param category_id
9702
+ * @param options - additional request options
9703
+ */
9704
+ delete_menu_v4_brand_category(
9705
+ brand_id: string,
9706
+ category_id: string,
9707
+ options?: RequestOptions,
9708
+ ): ResponsePromise<DeleteMenuV4BrandCategoryResponse> {
9709
+ return this.request(
9710
+ 'menu',
9711
+ 'menu/v4/brand/{brand_id}/category/{category_id}',
9712
+ 'delete',
9713
+ `menu/v4/brand/${brand_id}/category/${category_id}`,
9714
+ null,
9715
+ options,
9716
+ );
9717
+ }
9718
+
9547
9719
  /**
9548
9720
  * POST /menu/v4/item
9549
9721
  *
@@ -9594,6 +9766,26 @@ export class ServiceClient extends BaseServiceClient {
9594
9766
  );
9595
9767
  }
9596
9768
 
9769
+ /**
9770
+ * DELETE /menu/v4/item/{id}
9771
+ *
9772
+ * @param id
9773
+ * @param options - additional request options
9774
+ */
9775
+ delete_menu_v4_item(
9776
+ id: string,
9777
+ options?: RequestOptions,
9778
+ ): ResponsePromise<DeleteMenuV4ItemResponse> {
9779
+ return this.request(
9780
+ 'menu',
9781
+ '/menu/v4/item/{id}',
9782
+ 'delete',
9783
+ `/menu/v4/item/${id}`,
9784
+ null,
9785
+ options,
9786
+ );
9787
+ }
9788
+
9597
9789
  /**
9598
9790
  * POST /menu/v4/modifier
9599
9791
  *
@@ -9651,6 +9843,26 @@ export class ServiceClient extends BaseServiceClient {
9651
9843
  );
9652
9844
  }
9653
9845
 
9846
+ /**
9847
+ * DELETE /menu/v4/modifier/{id}
9848
+ *
9849
+ * @param id
9850
+ * @param options - additional request options
9851
+ */
9852
+ delete_menu_v4_modifier(
9853
+ id: string,
9854
+ options?: RequestOptions,
9855
+ ): ResponsePromise<DeleteMenuV4ModifierResponse> {
9856
+ return this.request(
9857
+ 'menu',
9858
+ '/menu/v4/modifier/{id}',
9859
+ 'delete',
9860
+ `/menu/v4/modifier/${id}`,
9861
+ null,
9862
+ options,
9863
+ );
9864
+ }
9865
+
9654
9866
  /**
9655
9867
  * POST /menu/v4/modifier-group
9656
9868
  *
@@ -9715,6 +9927,26 @@ export class ServiceClient extends BaseServiceClient {
9715
9927
  );
9716
9928
  }
9717
9929
 
9930
+ /**
9931
+ * DELETE /menu/v4/modifier-group/{id}
9932
+ *
9933
+ * @param id
9934
+ * @param options - additional request options
9935
+ */
9936
+ delete_menu_v4_modifier_group(
9937
+ id: string,
9938
+ options?: RequestOptions,
9939
+ ): ResponsePromise<DeleteMenuV4ModifierGroupResponse> {
9940
+ return this.request(
9941
+ 'menu',
9942
+ '/menu/v4/modifier-group/{id}',
9943
+ 'delete',
9944
+ `/menu/v4/modifier-group/${id}`,
9945
+ null,
9946
+ options,
9947
+ );
9948
+ }
9949
+
9718
9950
  /**
9719
9951
  * POST /menu/v4/modifier-group/{id}/attach-modifiers
9720
9952
  *
@@ -10445,15 +10677,15 @@ export class ServiceClient extends BaseServiceClient {
10445
10677
  }
10446
10678
 
10447
10679
  /**
10448
- * POST /consumer/review/order/item-ratings - Submit order reviews
10680
+ * POST /consumer/review/order/item-ratings - Submit review containing order item ratings
10449
10681
  *
10450
10682
  * @param body
10451
10683
  * @param options - additional request options
10452
10684
  */
10453
- post_order_reviews(
10454
- body: PostOrderReviewsBody,
10685
+ post_review_order_item_ratings(
10686
+ body: PostReviewOrderItemRatingsBody,
10455
10687
  options?: RequestOptions,
10456
- ): ResponsePromise<PostOrderReviewsResponse> {
10688
+ ): ResponsePromise<PostReviewOrderItemRatingsResponse> {
10457
10689
  return this.request(
10458
10690
  'consumer',
10459
10691
  '/consumer/review/order/item-ratings',
@@ -10497,6 +10729,19 @@ export class ServiceClient extends BaseServiceClient {
10497
10729
  return this.request('ai', '/ai/image/generate', 'post', `/ai/image/generate`, body, options);
10498
10730
  }
10499
10731
 
10732
+ /**
10733
+ * POST /ai/translate - Translate strings
10734
+ *
10735
+ * @param body
10736
+ * @param options - additional request options
10737
+ */
10738
+ post_ai_translate(
10739
+ body: PostAiTranslateBody,
10740
+ options?: RequestOptions,
10741
+ ): ResponsePromise<PostAiTranslateResponse> {
10742
+ return this.request('ai', '/ai/translate', 'post', `/ai/translate`, body, options);
10743
+ }
10744
+
10500
10745
  /**
10501
10746
  * POST /centricos/ai/item/description - Generate item description
10502
10747
  *
@@ -10698,6 +10943,28 @@ export class ServiceClient extends BaseServiceClient {
10698
10943
  return this.request('centricos', '/centricos/sites', 'get', `/centricos/sites`, null, options);
10699
10944
  }
10700
10945
 
10946
+ /**
10947
+ * GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
10948
+ *
10949
+ * @param orderId
10950
+ * @param options - additional request options
10951
+ */
10952
+ get_review_order_items(
10953
+ orderId: string,
10954
+ options?: {
10955
+ query?: GetReviewOrderItemsQuery;
10956
+ } & RequestOptions,
10957
+ ): ResponsePromise<GetReviewOrderItemsResponse> {
10958
+ return this.request(
10959
+ 'centricos',
10960
+ '/centricos/review/{orderId}/order-items',
10961
+ 'get',
10962
+ `/centricos/review/${orderId}/order-items`,
10963
+ null,
10964
+ options,
10965
+ );
10966
+ }
10967
+
10701
10968
  /**
10702
10969
  * GET /tax/v1/health-check - Health Check
10703
10970
  *
@@ -51,6 +51,20 @@ export interface GenerateImageResponse {
51
51
  images: ImageDTO[];
52
52
  }
53
53
 
54
+ export type TranslationStrings = Record<string, any>;
55
+
56
+ export interface TranslateRequest {
57
+ sourceLanguage: string;
58
+ targetLanguage: string;
59
+ strings: TranslationStrings;
60
+ }
61
+
62
+ export interface TranslateResponse {
63
+ sourceLanguage: string;
64
+ targetLanguage: string;
65
+ translations: Record<string, string>;
66
+ }
67
+
54
68
  // POST /ai/language/generate - Generate text from a given prompt
55
69
 
56
70
  export type PostAiLanguageGenerateBody = GenerateTextRequest;
@@ -70,3 +84,13 @@ export type PostAiImageGenerateResponse = GenerateImageResponse;
70
84
  export interface PostAiImageGenerateRequest extends BaseRequest {
71
85
  body: PostAiImageGenerateBody;
72
86
  }
87
+
88
+ // POST /ai/translate - Translate strings
89
+
90
+ export type PostAiTranslateBody = TranslateRequest;
91
+
92
+ export type PostAiTranslateResponse = TranslateResponse;
93
+
94
+ export interface PostAiTranslateRequest extends BaseRequest {
95
+ body: PostAiTranslateBody;
96
+ }
@@ -45,10 +45,8 @@ export interface AnnouncementPutRequestBody {
45
45
  is_global?: boolean;
46
46
  allowed_resources?: string[];
47
47
  position: number;
48
- //@deprecated
49
48
  active?: boolean;
50
- // Status of the announcement
51
- status?: 'draft' | 'active' | 'disabled';
49
+ status?: Status;
52
50
  // Announcement Properties
53
51
  info?: {
54
52
  en?: AnnouncementInfo;
@@ -69,8 +67,7 @@ export interface AnnouncementPatchRequestBody {
69
67
  position?: number;
70
68
  //@deprecated
71
69
  active?: boolean;
72
- // Status of the announcement
73
- status?: 'draft' | 'active' | 'disabled';
70
+ status?: Status;
74
71
  // Announcement Properties
75
72
  info?: {
76
73
  en?: AnnouncementInfo;
@@ -94,8 +91,7 @@ export interface Announcement {
94
91
  allowed_resources: string[];
95
92
  //@deprecated
96
93
  active: boolean;
97
- // Status of the announcement
98
- status?: 'draft' | 'active' | 'disabled';
94
+ status?: Status;
99
95
  schedule?: Schedule;
100
96
  // Date created
101
97
  created_at: string;
@@ -141,7 +137,7 @@ export interface EditHistory {
141
137
 
142
138
  export interface Schedule {
143
139
  // If true, refer to `sites`, if false, refer to start/end times below
144
- variable: boolean;
140
+ variable?: boolean;
145
141
  start_datetime?: string;
146
142
  // Maximum 1 year from today
147
143
  end_datetime?: string;
@@ -154,7 +150,7 @@ export interface Schedule {
154
150
  }[];
155
151
  }
156
152
 
157
- export type Status = 'draft' | 'active' | 'disabled';
153
+ export type Status = 'draft' | 'published' | 'active' | 'disabled';
158
154
 
159
155
  // POST /announcement - Create Announcement
160
156
 
@@ -195,7 +191,7 @@ export interface GetAnnouncementsQuery {
195
191
  name?: string;
196
192
  // Filter by announcement position
197
193
  position?: number;
198
- // Filter by announcement enabled status
194
+ // Filter by announcement active status
199
195
  enabled?: boolean;
200
196
  // Filter by announcement purpose
201
197
  purpose?: string;
@@ -205,7 +201,7 @@ export interface GetAnnouncementsQuery {
205
201
  sort_by?: string;
206
202
  // Sort order (ASC or DESC)
207
203
  sort_order?: string;
208
- // Filter by status - 'active', 'draft', 'disabled'
204
+ // Filter by status - 'published', 'draft'
209
205
  status?: string;
210
206
  // Graphql query string
211
207
  _query?: string;
@@ -107,6 +107,11 @@ export interface GetSitesResponse {
107
107
  results: Site[];
108
108
  }
109
109
 
110
+ export interface ReviewOrderItemsResponseDTO {
111
+ // List of reviews
112
+ reviews: string[];
113
+ }
114
+
110
115
  // POST /centricos/ai/item/description - Generate item description
111
116
 
112
117
  export type PostCentricosAiItemDescriptionBody = AIItemDescriptionRequest;
@@ -299,3 +304,21 @@ export type GetCentricosSitesResponse = GetSitesResponse;
299
304
  export interface GetCentricosSitesRequest
300
305
  extends BaseRequest,
301
306
  RequestQuery<GetCentricosSitesQuery> {}
307
+
308
+ // GET /centricos/review/{orderId}/order-items - Get reviews for items in a given order in an array format
309
+
310
+ export interface GetReviewOrderItemsPath {
311
+ orderId: string;
312
+ }
313
+
314
+ export interface GetReviewOrderItemsQuery {
315
+ // Graphql query string
316
+ _query?: string;
317
+ }
318
+
319
+ export type GetReviewOrderItemsResponse = ReviewOrderItemsResponseDTO;
320
+
321
+ export interface GetReviewOrderItemsRequest
322
+ extends BaseRequest,
323
+ RequestQuery<GetReviewOrderItemsQuery>,
324
+ GetReviewOrderItemsPath {}
@@ -55,15 +55,6 @@ export interface Auth {
55
55
  refresh_token?: string;
56
56
  }
57
57
 
58
- export interface Compassconnect {
59
- // compassconnect
60
- id: string;
61
- }
62
-
63
- export interface Compassconnects {
64
- compassconnects: Compassconnect[];
65
- }
66
-
67
58
  // GET /compassconnect/oms_token - Gets an OMS token
68
59
 
69
60
  export interface GetCompassconnectOmsTokenQuery {
@@ -167,12 +167,19 @@ export interface ModifierGroup {
167
167
  items?: Modifier[];
168
168
  }
169
169
 
170
- export interface CartItemRating {
170
+ export interface OrderItemRating {
171
+ // order id
171
172
  id: string;
173
+ // menu id
174
+ menu: string;
175
+ // item id
172
176
  item: string;
177
+ // rating score
173
178
  score: number;
174
- comment?: string;
175
- tags?: string[];
179
+ // review comment
180
+ comment: string;
181
+ // review tags
182
+ reason: string[];
176
183
  }
177
184
 
178
185
  export interface CartItem {
@@ -188,7 +195,7 @@ export interface CartItem {
188
195
  options?: ModifierGroup[];
189
196
  label?: Label;
190
197
  name?: string;
191
- review: CartItemRating;
198
+ review: OrderItemRating;
192
199
  }
193
200
 
194
201
  export interface ShoppingCart {
@@ -236,20 +243,26 @@ export interface BadRequestErrorDTO {
236
243
  data: Record<string, any>;
237
244
  }
238
245
 
239
- export interface NewCartItemRating {
246
+ export interface ReviewOrderItemRatings {
247
+ // menu id
248
+ menu: string;
249
+ // item id
240
250
  item: string;
251
+ // rating score
241
252
  score: number;
242
- comment?: string;
243
- tags?: string[];
253
+ // review comment
254
+ comment: string;
255
+ // review tags
256
+ reason: string[];
244
257
  }
245
258
 
246
- export interface PostOrderItemRatingsRequestDTO {
259
+ export interface PostReviewOrderItemRatingsRequestDTO {
247
260
  orderId: string;
248
- reviews: NewCartItemRating[];
261
+ reviews: ReviewOrderItemRatings[];
249
262
  }
250
263
 
251
- export interface PostOrderItemRatingsResponseDTO {
252
- reviews: CartItemRating[];
264
+ export interface PostReviewOrderItemRatingsResponseDTO {
265
+ reviews: OrderItemRating[];
253
266
  }
254
267
 
255
268
  // GET /consumer/v1/health-check
@@ -299,12 +312,12 @@ export interface GetCustomerOrdersRequest
299
312
  extends BaseRequest,
300
313
  RequestQuery<GetCustomerOrdersQuery> {}
301
314
 
302
- // POST /consumer/review/order/item-ratings - Submit order reviews
315
+ // POST /consumer/review/order/item-ratings - Submit review containing order item ratings
303
316
 
304
- export type PostOrderReviewsBody = PostOrderItemRatingsRequestDTO;
317
+ export type PostReviewOrderItemRatingsBody = PostReviewOrderItemRatingsRequestDTO;
305
318
 
306
- export type PostOrderReviewsResponse = PostOrderItemRatingsResponseDTO;
319
+ export type PostReviewOrderItemRatingsResponse = PostReviewOrderItemRatingsResponseDTO;
307
320
 
308
- export interface PostOrderReviewsRequest extends BaseRequest {
309
- body: PostOrderReviewsBody;
321
+ export interface PostReviewOrderItemRatingsRequest extends BaseRequest {
322
+ body: PostReviewOrderItemRatingsBody;
310
323
  }