@compassdigital/sdk.typescript 4.96.0 → 4.98.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/src/index.ts CHANGED
@@ -691,6 +691,8 @@ import {
691
691
  PostMenuV3DraftCategoryAttachmentResponse,
692
692
  PostMenuV3DraftCategoryDuplicateBody,
693
693
  PostMenuV3DraftCategoryDuplicateResponse,
694
+ GetMenuV3DraftCategoryUnattachedItemsQuery,
695
+ GetMenuV3DraftCategoryUnattachedItemsResponse,
694
696
  GetMenuV3CategoryQuery,
695
697
  GetMenuV3CategoryResponse,
696
698
  GetMenuV3CategorysCountQuery,
@@ -885,10 +887,12 @@ import {
885
887
  PostMenuV4BrandResponse,
886
888
  GetMenuV4BrandQuery,
887
889
  GetMenuV4BrandResponse,
890
+ DeleteMenuV4BrandResponse,
888
891
  PostMenuV4BrandMenuBody,
889
892
  PostMenuV4BrandMenuResponse,
890
893
  PatchMenuV4BrandMenuBody,
891
894
  PatchMenuV4BrandMenuResponse,
895
+ DeleteMenuV4BrandMenuResponse,
892
896
  GetMenuV4BrandItemsQuery,
893
897
  GetMenuV4BrandItemsResponse,
894
898
  GetMenuV4BrandModifierGroupsQuery,
@@ -901,13 +905,19 @@ import {
901
905
  PostMenuV4BrandCategoryResponse,
902
906
  PatchMenuV4BrandCategoryBody,
903
907
  PatchMenuV4BrandCategoryResponse,
908
+ DeleteMenuV4BrandCategoryResponse,
904
909
  PostMenuV4BrandCategoryAttachItemsBody,
905
910
  PostMenuV4BrandCategoryAttachItemsResponse,
906
911
  PostMenuV4BrandPublishResponse,
907
912
  PostMenuV4BrandV3ToV4Response,
908
- DeleteMenuV4BrandResponse,
909
- DeleteMenuV4BrandMenuResponse,
910
- DeleteMenuV4BrandCategoryResponse,
913
+ PostMenuV4BrandCategoryDuplicateBody,
914
+ PostMenuV4BrandCategoryDuplicateResponse,
915
+ PostMenuV4BrandMenuDuplicateBody,
916
+ PostMenuV4BrandMenuDuplicateResponse,
917
+ PostMenuV4CategoryAttachmentQuery,
918
+ PostMenuV4CategoryAttachmentResponse,
919
+ PostMenuV4ItemAttachmentQuery,
920
+ PostMenuV4ItemAttachmentResponse,
911
921
  PostMenuV4ItemBody,
912
922
  PostMenuV4ItemResponse,
913
923
  GetMenuV4ItemQuery,
@@ -915,6 +925,10 @@ import {
915
925
  PatchMenuV4ItemBody,
916
926
  PatchMenuV4ItemResponse,
917
927
  DeleteMenuV4ItemResponse,
928
+ PatchMenuV4ItemsBulkUpdateBody,
929
+ PatchMenuV4ItemsBulkUpdateResponse,
930
+ PostMenuV4ItemDuplicateBody,
931
+ PostMenuV4ItemDuplicateResponse,
918
932
  PostMenuV4ModifierBody,
919
933
  PostMenuV4ModifierResponse,
920
934
  GetMenuV4ModifierQuery,
@@ -922,6 +936,12 @@ import {
922
936
  PatchMenuV4ModifierBody,
923
937
  PatchMenuV4ModifierResponse,
924
938
  DeleteMenuV4ModifierResponse,
939
+ PostMenuV4ModifierDuplicateBody,
940
+ PostMenuV4ModifierDuplicateResponse,
941
+ PatchMenuV4ModifiersBulkUpdateBody,
942
+ PatchMenuV4ModifiersBulkUpdateResponse,
943
+ PostMenuV4ModifierAttachmentQuery,
944
+ PostMenuV4ModifierAttachmentResponse,
925
945
  PostMenuV4ModifierGroupBody,
926
946
  PostMenuV4ModifierGroupResponse,
927
947
  GetMenuV4ModifierGroupQuery,
@@ -931,6 +951,9 @@ import {
931
951
  DeleteMenuV4ModifierGroupResponse,
932
952
  PostMenuV4ModifierGroupAttachModifiersBody,
933
953
  PostMenuV4ModifierGroupAttachModifiersResponse,
954
+ PostMenuV4ModifierGroupDuplicateQuery,
955
+ PostMenuV4ModifierGroupDuplicateBody,
956
+ PostMenuV4ModifierGroupDuplicateResponse,
934
957
  } from './interface/menu';
935
958
 
936
959
  import {
@@ -1017,8 +1040,8 @@ import {
1017
1040
  GetPaymentListByBrandResponse,
1018
1041
  GetCustomerOrdersQuery,
1019
1042
  GetCustomerOrdersResponse,
1020
- PostReviewOrderItemRatingsBody,
1021
- PostReviewOrderItemRatingsResponse,
1043
+ PostReviewOrderItemsBody,
1044
+ PostReviewOrderItemsResponse,
1022
1045
  } from './interface/consumer';
1023
1046
 
1024
1047
  import {
@@ -1086,6 +1109,15 @@ import {
1086
1109
  GetAuthSsoExchangeResponse,
1087
1110
  } from './interface/auth';
1088
1111
 
1112
+ import {
1113
+ GetReviewsQuery,
1114
+ GetReviewsResponse,
1115
+ PostReviewBody,
1116
+ PostReviewResponse,
1117
+ GetReviewQuery,
1118
+ GetReviewResponse,
1119
+ } from './interface/review';
1120
+
1089
1121
  import { BaseServiceClient, RequestOptions, ResponsePromise } from './base';
1090
1122
  export * from './base';
1091
1123
 
@@ -7339,6 +7371,28 @@ export class ServiceClient extends BaseServiceClient {
7339
7371
  );
7340
7372
  }
7341
7373
 
7374
+ /**
7375
+ * GET /menu/v3/draft/category/{id}/unattached_items
7376
+ *
7377
+ * @param id
7378
+ * @param options - additional request options
7379
+ */
7380
+ get_menu_v3_draft_category_unattached_items(
7381
+ id: string,
7382
+ options?: {
7383
+ query?: GetMenuV3DraftCategoryUnattachedItemsQuery;
7384
+ } & RequestOptions,
7385
+ ): ResponsePromise<GetMenuV3DraftCategoryUnattachedItemsResponse> {
7386
+ return this.request(
7387
+ 'menu',
7388
+ '/menu/v3/draft/category/{id}/unattached_items',
7389
+ 'get',
7390
+ `/menu/v3/draft/category/${id}/unattached_items`,
7391
+ null,
7392
+ options,
7393
+ );
7394
+ }
7395
+
7342
7396
  /**
7343
7397
  * GET /menu/v3/category/{id}
7344
7398
  *
@@ -9408,6 +9462,26 @@ export class ServiceClient extends BaseServiceClient {
9408
9462
  );
9409
9463
  }
9410
9464
 
9465
+ /**
9466
+ * DELETE /menu/v4/brand/{id}
9467
+ *
9468
+ * @param id
9469
+ * @param options - additional request options
9470
+ */
9471
+ delete_menu_v4_brand(
9472
+ id: string,
9473
+ options?: RequestOptions,
9474
+ ): ResponsePromise<DeleteMenuV4BrandResponse> {
9475
+ return this.request(
9476
+ 'menu',
9477
+ '/menu/v4/brand/{id}',
9478
+ 'delete',
9479
+ `/menu/v4/brand/${id}`,
9480
+ null,
9481
+ options,
9482
+ );
9483
+ }
9484
+
9411
9485
  /**
9412
9486
  * POST /menu/v4/brand/{id}/menu
9413
9487
  *
@@ -9454,6 +9528,28 @@ export class ServiceClient extends BaseServiceClient {
9454
9528
  );
9455
9529
  }
9456
9530
 
9531
+ /**
9532
+ * DELETE /menu/v4/brand/{brand_id}/menu/{menu_id}
9533
+ *
9534
+ * @param brand_id
9535
+ * @param menu_id
9536
+ * @param options - additional request options
9537
+ */
9538
+ delete_menu_v4_brand_menu(
9539
+ brand_id: string,
9540
+ menu_id: string,
9541
+ options?: RequestOptions,
9542
+ ): ResponsePromise<DeleteMenuV4BrandMenuResponse> {
9543
+ return this.request(
9544
+ 'menu',
9545
+ '/menu/v4/brand/{brand_id}/menu/{menu_id}',
9546
+ 'delete',
9547
+ `/menu/v4/brand/${brand_id}/menu/${menu_id}`,
9548
+ null,
9549
+ options,
9550
+ );
9551
+ }
9552
+
9457
9553
  /**
9458
9554
  * GET /menu/v4/brand/{id}/items
9459
9555
  *
@@ -9590,6 +9686,28 @@ export class ServiceClient extends BaseServiceClient {
9590
9686
  );
9591
9687
  }
9592
9688
 
9689
+ /**
9690
+ * DELETE /menu/v4/brand/{brand_id}/category/{category_id}
9691
+ *
9692
+ * @param brand_id
9693
+ * @param category_id
9694
+ * @param options - additional request options
9695
+ */
9696
+ delete_menu_v4_brand_category(
9697
+ brand_id: string,
9698
+ category_id: string,
9699
+ options?: RequestOptions,
9700
+ ): ResponsePromise<DeleteMenuV4BrandCategoryResponse> {
9701
+ return this.request(
9702
+ 'menu',
9703
+ '/menu/v4/brand/{brand_id}/category/{category_id}',
9704
+ 'delete',
9705
+ `/menu/v4/brand/${brand_id}/category/${category_id}`,
9706
+ null,
9707
+ options,
9708
+ );
9709
+ }
9710
+
9593
9711
  /**
9594
9712
  * POST /menu/v4/brand/{id}/category/attach-items
9595
9713
  *
@@ -9613,7 +9731,7 @@ export class ServiceClient extends BaseServiceClient {
9613
9731
  }
9614
9732
 
9615
9733
  /**
9616
- * POST menu/v4/brand/{id}/publish
9734
+ * POST /menu/v4/brand/{id}/publish
9617
9735
  *
9618
9736
  * @param id
9619
9737
  * @param options - additional request options
@@ -9624,16 +9742,16 @@ export class ServiceClient extends BaseServiceClient {
9624
9742
  ): ResponsePromise<PostMenuV4BrandPublishResponse> {
9625
9743
  return this.request(
9626
9744
  'menu',
9627
- 'menu/v4/brand/{id}/publish',
9745
+ '/menu/v4/brand/{id}/publish',
9628
9746
  'post',
9629
- `menu/v4/brand/${id}/publish`,
9747
+ `/menu/v4/brand/${id}/publish`,
9630
9748
  null,
9631
9749
  options,
9632
9750
  );
9633
9751
  }
9634
9752
 
9635
9753
  /**
9636
- * POST menu/v4/brand/{id}/v3-to-v4
9754
+ * POST /menu/v4/brand/{id}/v3-to-v4
9637
9755
  *
9638
9756
  * @param id
9639
9757
  * @param options - additional request options
@@ -9644,73 +9762,105 @@ export class ServiceClient extends BaseServiceClient {
9644
9762
  ): ResponsePromise<PostMenuV4BrandV3ToV4Response> {
9645
9763
  return this.request(
9646
9764
  'menu',
9647
- 'menu/v4/brand/{id}/v3-to-v4',
9765
+ '/menu/v4/brand/{id}/v3-to-v4',
9648
9766
  'post',
9649
- `menu/v4/brand/${id}/v3-to-v4`,
9767
+ `/menu/v4/brand/${id}/v3-to-v4`,
9650
9768
  null,
9651
9769
  options,
9652
9770
  );
9653
9771
  }
9654
9772
 
9655
9773
  /**
9656
- * DELETE menu/v4/brand/{id}
9774
+ * POST /menu/v4/brand/{brand_id}/category/{category_id}/duplicate
9657
9775
  *
9658
- * @param id
9776
+ * @param brand_id
9777
+ * @param category_id
9778
+ * @param body
9659
9779
  * @param options - additional request options
9660
9780
  */
9661
- delete_menu_v4_brand(
9662
- id: string,
9781
+ post_menu_v4_brand_category_duplicate(
9782
+ brand_id: string,
9783
+ category_id: string,
9784
+ body: PostMenuV4BrandCategoryDuplicateBody,
9663
9785
  options?: RequestOptions,
9664
- ): ResponsePromise<DeleteMenuV4BrandResponse> {
9786
+ ): ResponsePromise<PostMenuV4BrandCategoryDuplicateResponse> {
9665
9787
  return this.request(
9666
9788
  'menu',
9667
- 'menu/v4/brand/{id}',
9668
- 'delete',
9669
- `menu/v4/brand/${id}`,
9670
- null,
9789
+ '/menu/v4/brand/{brand_id}/category/{category_id}/duplicate',
9790
+ 'post',
9791
+ `/menu/v4/brand/${brand_id}/category/${category_id}/duplicate`,
9792
+ body,
9671
9793
  options,
9672
9794
  );
9673
9795
  }
9674
9796
 
9675
9797
  /**
9676
- * DELETE menu/v4/brand/{brand_id}/menu/{menu_id}
9798
+ * POST /menu/v4/brand/{brand_id}/menu/{menu_id}/duplicate
9677
9799
  *
9678
9800
  * @param brand_id
9679
9801
  * @param menu_id
9802
+ * @param body
9680
9803
  * @param options - additional request options
9681
9804
  */
9682
- delete_menu_v4_brand_menu(
9805
+ post_menu_v4_brand_menu_duplicate(
9683
9806
  brand_id: string,
9684
9807
  menu_id: string,
9808
+ body: PostMenuV4BrandMenuDuplicateBody,
9685
9809
  options?: RequestOptions,
9686
- ): ResponsePromise<DeleteMenuV4BrandMenuResponse> {
9810
+ ): ResponsePromise<PostMenuV4BrandMenuDuplicateResponse> {
9687
9811
  return this.request(
9688
9812
  'menu',
9689
- 'menu/v4/brand/{brand_id}/menu/{menu_id}',
9690
- 'delete',
9691
- `menu/v4/brand/${brand_id}/menu/${menu_id}`,
9813
+ '/menu/v4/brand/{brand_id}/menu/{menu_id}/duplicate',
9814
+ 'post',
9815
+ `/menu/v4/brand/${brand_id}/menu/${menu_id}/duplicate`,
9816
+ body,
9817
+ options,
9818
+ );
9819
+ }
9820
+
9821
+ /**
9822
+ * POST /menu/v4/category/{id}/attachment/{name}
9823
+ *
9824
+ * @param id
9825
+ * @param name
9826
+ * @param options - additional request options
9827
+ */
9828
+ post_menu_v4_category_attachment(
9829
+ id: string,
9830
+ name: 'thumbnail',
9831
+ options?: {
9832
+ query?: PostMenuV4CategoryAttachmentQuery;
9833
+ } & RequestOptions,
9834
+ ): ResponsePromise<PostMenuV4CategoryAttachmentResponse> {
9835
+ return this.request(
9836
+ 'menu',
9837
+ '/menu/v4/category/{id}/attachment/{name}',
9838
+ 'post',
9839
+ `/menu/v4/category/${id}/attachment/${name}`,
9692
9840
  null,
9693
9841
  options,
9694
9842
  );
9695
9843
  }
9696
9844
 
9697
9845
  /**
9698
- * DELETE menu/v4/brand/{brand_id}/category/{category_id}
9846
+ * POST /menu/v4/item/{id}/attachment/{name}
9699
9847
  *
9700
- * @param brand_id
9701
- * @param category_id
9848
+ * @param id
9849
+ * @param name
9702
9850
  * @param options - additional request options
9703
9851
  */
9704
- delete_menu_v4_brand_category(
9705
- brand_id: string,
9706
- category_id: string,
9707
- options?: RequestOptions,
9708
- ): ResponsePromise<DeleteMenuV4BrandCategoryResponse> {
9852
+ post_menu_v4_item_attachment(
9853
+ id: string,
9854
+ name: 'thumbnail',
9855
+ options?: {
9856
+ query?: PostMenuV4ItemAttachmentQuery;
9857
+ } & RequestOptions,
9858
+ ): ResponsePromise<PostMenuV4ItemAttachmentResponse> {
9709
9859
  return this.request(
9710
9860
  'menu',
9711
- 'menu/v4/brand/{brand_id}/category/{category_id}',
9712
- 'delete',
9713
- `menu/v4/brand/${brand_id}/category/${category_id}`,
9861
+ '/menu/v4/item/{id}/attachment/{name}',
9862
+ 'post',
9863
+ `/menu/v4/item/${id}/attachment/${name}`,
9714
9864
  null,
9715
9865
  options,
9716
9866
  );
@@ -9786,6 +9936,48 @@ export class ServiceClient extends BaseServiceClient {
9786
9936
  );
9787
9937
  }
9788
9938
 
9939
+ /**
9940
+ * PATCH /menu/v4/items/bulk-update
9941
+ *
9942
+ * @param body
9943
+ * @param options - additional request options
9944
+ */
9945
+ patch_menu_v4_items_bulk_update(
9946
+ body: PatchMenuV4ItemsBulkUpdateBody,
9947
+ options?: RequestOptions,
9948
+ ): ResponsePromise<PatchMenuV4ItemsBulkUpdateResponse> {
9949
+ return this.request(
9950
+ 'menu',
9951
+ '/menu/v4/items/bulk-update',
9952
+ 'patch',
9953
+ `/menu/v4/items/bulk-update`,
9954
+ body,
9955
+ options,
9956
+ );
9957
+ }
9958
+
9959
+ /**
9960
+ * POST /menu/v4/item/{id}/duplicate
9961
+ *
9962
+ * @param id
9963
+ * @param body
9964
+ * @param options - additional request options
9965
+ */
9966
+ post_menu_v4_item_duplicate(
9967
+ id: string,
9968
+ body: PostMenuV4ItemDuplicateBody,
9969
+ options?: RequestOptions,
9970
+ ): ResponsePromise<PostMenuV4ItemDuplicateResponse> {
9971
+ return this.request(
9972
+ 'menu',
9973
+ '/menu/v4/item/{id}/duplicate',
9974
+ 'post',
9975
+ `/menu/v4/item/${id}/duplicate`,
9976
+ body,
9977
+ options,
9978
+ );
9979
+ }
9980
+
9789
9981
  /**
9790
9982
  * POST /menu/v4/modifier
9791
9983
  *
@@ -9863,6 +10055,72 @@ export class ServiceClient extends BaseServiceClient {
9863
10055
  );
9864
10056
  }
9865
10057
 
10058
+ /**
10059
+ * POST /menu/v4/modifier/{id}/duplicate
10060
+ *
10061
+ * @param id
10062
+ * @param body
10063
+ * @param options - additional request options
10064
+ */
10065
+ post_menu_v4_modifier_duplicate(
10066
+ id: string,
10067
+ body: PostMenuV4ModifierDuplicateBody,
10068
+ options?: RequestOptions,
10069
+ ): ResponsePromise<PostMenuV4ModifierDuplicateResponse> {
10070
+ return this.request(
10071
+ 'menu',
10072
+ '/menu/v4/modifier/{id}/duplicate',
10073
+ 'post',
10074
+ `/menu/v4/modifier/${id}/duplicate`,
10075
+ body,
10076
+ options,
10077
+ );
10078
+ }
10079
+
10080
+ /**
10081
+ * PATCH /menu/v4/modifiers/bulk-update
10082
+ *
10083
+ * @param body
10084
+ * @param options - additional request options
10085
+ */
10086
+ patch_menu_v4_modifiers_bulk_update(
10087
+ body: PatchMenuV4ModifiersBulkUpdateBody,
10088
+ options?: RequestOptions,
10089
+ ): ResponsePromise<PatchMenuV4ModifiersBulkUpdateResponse> {
10090
+ return this.request(
10091
+ 'menu',
10092
+ '/menu/v4/modifiers/bulk-update',
10093
+ 'patch',
10094
+ `/menu/v4/modifiers/bulk-update`,
10095
+ body,
10096
+ options,
10097
+ );
10098
+ }
10099
+
10100
+ /**
10101
+ * POST /menu/v4/modifier/{id}/attachment/{name}
10102
+ *
10103
+ * @param id
10104
+ * @param name
10105
+ * @param options - additional request options
10106
+ */
10107
+ post_menu_v4_modifier_attachment(
10108
+ id: string,
10109
+ name: 'thumbnail',
10110
+ options?: {
10111
+ query?: PostMenuV4ModifierAttachmentQuery;
10112
+ } & RequestOptions,
10113
+ ): ResponsePromise<PostMenuV4ModifierAttachmentResponse> {
10114
+ return this.request(
10115
+ 'menu',
10116
+ '/menu/v4/modifier/{id}/attachment/{name}',
10117
+ 'post',
10118
+ `/menu/v4/modifier/${id}/attachment/${name}`,
10119
+ null,
10120
+ options,
10121
+ );
10122
+ }
10123
+
9866
10124
  /**
9867
10125
  * POST /menu/v4/modifier-group
9868
10126
  *
@@ -9969,6 +10227,30 @@ export class ServiceClient extends BaseServiceClient {
9969
10227
  );
9970
10228
  }
9971
10229
 
10230
+ /**
10231
+ * POST /menu/v4/modifier-group/{id}/duplicate
10232
+ *
10233
+ * @param id
10234
+ * @param body
10235
+ * @param options - additional request options
10236
+ */
10237
+ post_menu_v4_modifier_group_duplicate(
10238
+ id: string,
10239
+ body: PostMenuV4ModifierGroupDuplicateBody,
10240
+ options?: {
10241
+ query?: PostMenuV4ModifierGroupDuplicateQuery;
10242
+ } & RequestOptions,
10243
+ ): ResponsePromise<PostMenuV4ModifierGroupDuplicateResponse> {
10244
+ return this.request(
10245
+ 'menu',
10246
+ '/menu/v4/modifier-group/{id}/duplicate',
10247
+ 'post',
10248
+ `/menu/v4/modifier-group/${id}/duplicate`,
10249
+ body,
10250
+ options,
10251
+ );
10252
+ }
10253
+
9972
10254
  /**
9973
10255
  * GET /notification - Get all notifications
9974
10256
  *
@@ -10657,40 +10939,42 @@ export class ServiceClient extends BaseServiceClient {
10657
10939
  }
10658
10940
 
10659
10941
  /**
10660
- * GET /consumer/customer-orders - Get customer orders
10942
+ * GET /consumer/customer-orders/{userId} - Get customer orders
10661
10943
  *
10944
+ * @param userId - TODO: add parameter to swagger.json
10662
10945
  * @param options - additional request options
10663
10946
  */
10664
10947
  get_customer_orders(
10948
+ userId: string,
10665
10949
  options?: {
10666
10950
  query?: GetCustomerOrdersQuery;
10667
10951
  } & RequestOptions,
10668
10952
  ): ResponsePromise<GetCustomerOrdersResponse> {
10669
10953
  return this.request(
10670
10954
  'consumer',
10671
- '/consumer/customer-orders',
10955
+ '/consumer/customer-orders/{userId}',
10672
10956
  'get',
10673
- `/consumer/customer-orders`,
10957
+ `/consumer/customer-orders/${userId}`,
10674
10958
  null,
10675
10959
  options,
10676
10960
  );
10677
10961
  }
10678
10962
 
10679
10963
  /**
10680
- * POST /consumer/review/order/item-ratings - Submit review containing order item ratings
10964
+ * POST /consumer/review/order-items - Submit reviews for order items
10681
10965
  *
10682
10966
  * @param body
10683
10967
  * @param options - additional request options
10684
10968
  */
10685
- post_review_order_item_ratings(
10686
- body: PostReviewOrderItemRatingsBody,
10969
+ post_review_order_items(
10970
+ body: PostReviewOrderItemsBody,
10687
10971
  options?: RequestOptions,
10688
- ): ResponsePromise<PostReviewOrderItemRatingsResponse> {
10972
+ ): ResponsePromise<PostReviewOrderItemsResponse> {
10689
10973
  return this.request(
10690
10974
  'consumer',
10691
- '/consumer/review/order/item-ratings',
10975
+ '/consumer/review/order-items',
10692
10976
  'post',
10693
- `/consumer/review/order/item-ratings`,
10977
+ `/consumer/review/order-items`,
10694
10978
  body,
10695
10979
  options,
10696
10980
  );
@@ -11137,4 +11421,42 @@ export class ServiceClient extends BaseServiceClient {
11137
11421
  ): ResponsePromise<GetAuthSsoExchangeResponse> {
11138
11422
  return this.request('auth', '/auth/sso/exchange', 'get', `/auth/sso/exchange`, null, options);
11139
11423
  }
11424
+
11425
+ /**
11426
+ * GET /review - Get reviews by taxonomy
11427
+ *
11428
+ * @param options - additional request options
11429
+ */
11430
+ get_reviews(
11431
+ options: {
11432
+ query: GetReviewsQuery;
11433
+ } & RequestOptions,
11434
+ ): ResponsePromise<GetReviewsResponse> {
11435
+ return this.request('review', '/review', 'get', `/review`, null, options);
11436
+ }
11437
+
11438
+ /**
11439
+ * POST /review - Post a review
11440
+ *
11441
+ * @param body
11442
+ * @param options - additional request options
11443
+ */
11444
+ post_review(body: PostReviewBody, options?: RequestOptions): ResponsePromise<PostReviewResponse> {
11445
+ return this.request('review', '/review', 'post', `/review`, body, options);
11446
+ }
11447
+
11448
+ /**
11449
+ * GET /review/{id} - Get a review
11450
+ *
11451
+ * @param id
11452
+ * @param options - additional request options
11453
+ */
11454
+ get_review(
11455
+ id: string,
11456
+ options?: {
11457
+ query?: GetReviewQuery;
11458
+ } & RequestOptions,
11459
+ ): ResponsePromise<GetReviewResponse> {
11460
+ return this.request('review', '/review/{id}', 'get', `/review/${id}`, null, options);
11461
+ }
11140
11462
  }
@@ -83,7 +83,7 @@ export interface Announcement {
83
83
  name: string;
84
84
  // Announcement Type
85
85
  type: string;
86
- key?: string;
86
+ key: string;
87
87
  // App name
88
88
  app: 'Boost' | 'Thrive' | 'Nourish' | 'JJKitchen' | 'Rogers';
89
89
  // True if all the sites are linked
@@ -97,7 +97,7 @@ export interface Announcement {
97
97
  created_at: string;
98
98
  // Date modified
99
99
  last_modified: string;
100
- position?: number;
100
+ position: number;
101
101
  // Announcement Properties
102
102
  info?: {
103
103
  en?: AnnouncementInfo;
@@ -109,7 +109,7 @@ export interface GetSitesResponse {
109
109
 
110
110
  export interface ReviewOrderItemsResponseDTO {
111
111
  // List of reviews
112
- reviews: string[];
112
+ reviews: Record<string, any>[][];
113
113
  }
114
114
 
115
115
  // POST /centricos/ai/item/description - Generate item description