@compassdigital/sdk.typescript 3.45.1 → 3.45.2

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
@@ -507,19 +507,10 @@ import {
507
507
  PatchMenuV3ItemRelationshipsModifierGroupBody,
508
508
  PatchMenuV3ItemRelationshipsModifierGroupResponse,
509
509
  DeleteMenuV3ItemRelationshipsModifierGroupResponse,
510
- GetMenuV3MenusQuery,
511
- GetMenuV3MenusResponse,
512
- GetMenuV3MenuQuery,
513
- GetMenuV3MenuResponse,
514
- PatchMenuV3MenuBody,
515
- PatchMenuV3MenuResponse,
516
- DeleteMenuV3MenuResponse,
517
- PostMenuV3MenuBody,
518
- PostMenuV3MenuResponse,
519
- GetMenuV3MenusCountQuery,
520
- GetMenuV3MenusCountResponse,
521
510
  GetMenuV3LayoutsQuery,
522
511
  GetMenuV3LayoutsResponse,
512
+ GetMenuV3LayoutCategoriesQuery,
513
+ GetMenuV3LayoutCategoriesResponse,
523
514
  GetMenuV3LayoutQuery,
524
515
  GetMenuV3LayoutResponse,
525
516
  PatchMenuV3LayoutBody,
@@ -549,6 +540,34 @@ import {
549
540
  PatchMenuV3CategoryRelationshipsItemBody,
550
541
  PatchMenuV3CategoryRelationshipsItemResponse,
551
542
  DeleteMenuV3CategoryRelationshipsItemResponse,
543
+ GetMenuV3BrandsQuery,
544
+ GetMenuV3BrandsResponse,
545
+ GetMenuV3BrandModifiersQuery,
546
+ GetMenuV3BrandModifiersResponse,
547
+ GetMenuV3BrandModifier_groupsQuery,
548
+ GetMenuV3BrandModifier_groupsResponse,
549
+ GetMenuV3BrandItemsQuery,
550
+ GetMenuV3BrandItemsResponse,
551
+ GetMenuV3BrandQuery,
552
+ GetMenuV3BrandResponse,
553
+ PatchMenuV3BrandBody,
554
+ PatchMenuV3BrandResponse,
555
+ DeleteMenuV3BrandResponse,
556
+ PostMenuV3BrandBody,
557
+ PostMenuV3BrandResponse,
558
+ GetMenuV3BrandsCountQuery,
559
+ GetMenuV3BrandsCountResponse,
560
+ GetMenuV3StationsQuery,
561
+ GetMenuV3StationsResponse,
562
+ GetMenuV3StationQuery,
563
+ GetMenuV3StationResponse,
564
+ PatchMenuV3StationBody,
565
+ PatchMenuV3StationResponse,
566
+ DeleteMenuV3StationResponse,
567
+ PostMenuV3StationBody,
568
+ PostMenuV3StationResponse,
569
+ GetMenuV3StationsCountQuery,
570
+ GetMenuV3StationsCountResponse,
552
571
  GetMenuClientQuery,
553
572
  GetMenuClientResponse,
554
573
  GetMenusQuery,
@@ -682,6 +701,13 @@ import {
682
701
  DeletePermissionRoleUserResponse,
683
702
  } from "./interface/permission";
684
703
 
704
+ import {
705
+ GetDeliveryOrderQuery,
706
+ GetDeliveryOrderResponse,
707
+ GetDeliveryQuery,
708
+ GetDeliveryResponse,
709
+ } from "./interface/delivery";
710
+
685
711
  import {
686
712
  PostLoyaltyEnrollQuery,
687
713
  PostLoyaltyEnrollResponse,
@@ -5229,121 +5255,40 @@ export class ServiceClient extends BaseServiceClient {
5229
5255
  }
5230
5256
 
5231
5257
  /**
5232
- * GET /menu/v3/menus
5233
- *
5234
- * @param options - additional request options
5235
- */
5236
- get_menu_v3_menus(
5237
- options?: {
5238
- query?: GetMenuV3MenusQuery;
5239
- } & RequestOptions
5240
- ): ResponsePromise<GetMenuV3MenusResponse> {
5241
- return this.request("menu", "get_menu_v3_menus", "get", `/menu/v3/menus`, null, options);
5242
- }
5243
-
5244
- /**
5245
- * GET /menu/v3/menu/{id}
5258
+ * GET /menu/v3/layouts
5246
5259
  *
5247
- * @param id
5248
5260
  * @param options - additional request options
5249
5261
  */
5250
- get_menu_v3_menu(
5251
- id: string,
5262
+ get_menu_v3_layouts(
5252
5263
  options?: {
5253
- query?: GetMenuV3MenuQuery;
5264
+ query?: GetMenuV3LayoutsQuery;
5254
5265
  } & RequestOptions
5255
- ): ResponsePromise<GetMenuV3MenuResponse> {
5256
- return this.request("menu", "get_menu_v3_menu", "get", `/menu/v3/menu/${id}`, null, options);
5257
- }
5258
-
5259
- /**
5260
- * PATCH /menu/v3/menu/{id}
5261
- *
5262
- * @param id
5263
- * @param body
5264
- * @param options - additional request options
5265
- */
5266
- patch_menu_v3_menu(
5267
- id: string,
5268
- body: PatchMenuV3MenuBody,
5269
- options?: RequestOptions
5270
- ): ResponsePromise<PatchMenuV3MenuResponse> {
5271
- return this.request(
5272
- "menu",
5273
- "patch_menu_v3_menu",
5274
- "patch",
5275
- `/menu/v3/menu/${id}`,
5276
- body,
5277
- options
5278
- );
5266
+ ): ResponsePromise<GetMenuV3LayoutsResponse> {
5267
+ return this.request("menu", "get_menu_v3_layouts", "get", `/menu/v3/layouts`, null, options);
5279
5268
  }
5280
5269
 
5281
5270
  /**
5282
- * DELETE /menu/v3/menu/{id}
5271
+ * GET /menu/v3/layout/{id}/categories
5283
5272
  *
5284
5273
  * @param id
5285
5274
  * @param options - additional request options
5286
5275
  */
5287
- delete_menu_v3_menu(
5276
+ get_menu_v3_layout_categories(
5288
5277
  id: string,
5289
- options?: RequestOptions
5290
- ): ResponsePromise<DeleteMenuV3MenuResponse> {
5291
- return this.request(
5292
- "menu",
5293
- "delete_menu_v3_menu",
5294
- "delete",
5295
- `/menu/v3/menu/${id}`,
5296
- null,
5297
- options
5298
- );
5299
- }
5300
-
5301
- /**
5302
- * POST /menu/v3/menu
5303
- *
5304
- * @param body
5305
- * @param options - additional request options
5306
- */
5307
- post_menu_v3_menu(
5308
- body: PostMenuV3MenuBody,
5309
- options?: RequestOptions
5310
- ): ResponsePromise<PostMenuV3MenuResponse> {
5311
- return this.request("menu", "post_menu_v3_menu", "post", `/menu/v3/menu`, body, options);
5312
- }
5313
-
5314
- /**
5315
- * GET /menu/v3/menus/count
5316
- *
5317
- * @param options - additional request options
5318
- */
5319
- get_menu_v3_menus_count(
5320
5278
  options?: {
5321
- query?: GetMenuV3MenusCountQuery;
5279
+ query?: GetMenuV3LayoutCategoriesQuery;
5322
5280
  } & RequestOptions
5323
- ): ResponsePromise<GetMenuV3MenusCountResponse> {
5281
+ ): ResponsePromise<GetMenuV3LayoutCategoriesResponse> {
5324
5282
  return this.request(
5325
5283
  "menu",
5326
- "get_menu_v3_menus_count",
5284
+ "get_menu_v3_layout_categories",
5327
5285
  "get",
5328
- `/menu/v3/menus/count`,
5286
+ `/menu/v3/layout/${id}/categories`,
5329
5287
  null,
5330
5288
  options
5331
5289
  );
5332
5290
  }
5333
5291
 
5334
- /**
5335
- * GET /menu/v3/layouts
5336
- *
5337
- * @param options - additional request options
5338
- */
5339
- get_menu_v3_layouts(
5340
- options?: {
5341
- query?: GetMenuV3LayoutsQuery;
5342
- } & RequestOptions
5343
- ): ResponsePromise<GetMenuV3LayoutsResponse> {
5344
- return this.request("menu", "get_menu_v3_layouts", "get", `/menu/v3/layouts`, null, options);
5345
- }
5346
-
5347
5292
  /**
5348
5293
  * GET /menu/v3/layout/{id}
5349
5294
  *
@@ -5667,6 +5612,285 @@ export class ServiceClient extends BaseServiceClient {
5667
5612
  );
5668
5613
  }
5669
5614
 
5615
+ /**
5616
+ * GET /menu/v3/brands
5617
+ *
5618
+ * @param options - additional request options
5619
+ */
5620
+ get_menu_v3_brands(
5621
+ options?: {
5622
+ query?: GetMenuV3BrandsQuery;
5623
+ } & RequestOptions
5624
+ ): ResponsePromise<GetMenuV3BrandsResponse> {
5625
+ return this.request("menu", "get_menu_v3_brands", "get", `/menu/v3/brands`, null, options);
5626
+ }
5627
+
5628
+ /**
5629
+ * GET /menu/v3/brand/{id}/modifiers
5630
+ *
5631
+ * @param id
5632
+ * @param options - additional request options
5633
+ */
5634
+ get_menu_v3_brand_modifiers(
5635
+ id: string,
5636
+ options?: {
5637
+ query?: GetMenuV3BrandModifiersQuery;
5638
+ } & RequestOptions
5639
+ ): ResponsePromise<GetMenuV3BrandModifiersResponse> {
5640
+ return this.request(
5641
+ "menu",
5642
+ "get_menu_v3_brand_modifiers",
5643
+ "get",
5644
+ `/menu/v3/brand/${id}/modifiers`,
5645
+ null,
5646
+ options
5647
+ );
5648
+ }
5649
+
5650
+ /**
5651
+ * GET /menu/v3/brand/{id}/modifier_groups
5652
+ *
5653
+ * @param id
5654
+ * @param options - additional request options
5655
+ */
5656
+ get_menu_v3_brand_modifier_groups(
5657
+ id: string,
5658
+ options?: {
5659
+ query?: GetMenuV3BrandModifier_groupsQuery;
5660
+ } & RequestOptions
5661
+ ): ResponsePromise<GetMenuV3BrandModifier_groupsResponse> {
5662
+ return this.request(
5663
+ "menu",
5664
+ "get_menu_v3_brand_modifier_groups",
5665
+ "get",
5666
+ `/menu/v3/brand/${id}/modifier_groups`,
5667
+ null,
5668
+ options
5669
+ );
5670
+ }
5671
+
5672
+ /**
5673
+ * GET /menu/v3/brand/{id}/items
5674
+ *
5675
+ * @param id
5676
+ * @param options - additional request options
5677
+ */
5678
+ get_menu_v3_brand_items(
5679
+ id: string,
5680
+ options?: {
5681
+ query?: GetMenuV3BrandItemsQuery;
5682
+ } & RequestOptions
5683
+ ): ResponsePromise<GetMenuV3BrandItemsResponse> {
5684
+ return this.request(
5685
+ "menu",
5686
+ "get_menu_v3_brand_items",
5687
+ "get",
5688
+ `/menu/v3/brand/${id}/items`,
5689
+ null,
5690
+ options
5691
+ );
5692
+ }
5693
+
5694
+ /**
5695
+ * GET /menu/v3/brand/{id}
5696
+ *
5697
+ * @param id
5698
+ * @param options - additional request options
5699
+ */
5700
+ get_menu_v3_brand(
5701
+ id: string,
5702
+ options?: {
5703
+ query?: GetMenuV3BrandQuery;
5704
+ } & RequestOptions
5705
+ ): ResponsePromise<GetMenuV3BrandResponse> {
5706
+ return this.request("menu", "get_menu_v3_brand", "get", `/menu/v3/brand/${id}`, null, options);
5707
+ }
5708
+
5709
+ /**
5710
+ * PATCH /menu/v3/brand/{id}
5711
+ *
5712
+ * @param id
5713
+ * @param body
5714
+ * @param options - additional request options
5715
+ */
5716
+ patch_menu_v3_brand(
5717
+ id: string,
5718
+ body: PatchMenuV3BrandBody,
5719
+ options?: RequestOptions
5720
+ ): ResponsePromise<PatchMenuV3BrandResponse> {
5721
+ return this.request(
5722
+ "menu",
5723
+ "patch_menu_v3_brand",
5724
+ "patch",
5725
+ `/menu/v3/brand/${id}`,
5726
+ body,
5727
+ options
5728
+ );
5729
+ }
5730
+
5731
+ /**
5732
+ * DELETE /menu/v3/brand/{id}
5733
+ *
5734
+ * @param id
5735
+ * @param options - additional request options
5736
+ */
5737
+ delete_menu_v3_brand(
5738
+ id: string,
5739
+ options?: RequestOptions
5740
+ ): ResponsePromise<DeleteMenuV3BrandResponse> {
5741
+ return this.request(
5742
+ "menu",
5743
+ "delete_menu_v3_brand",
5744
+ "delete",
5745
+ `/menu/v3/brand/${id}`,
5746
+ null,
5747
+ options
5748
+ );
5749
+ }
5750
+
5751
+ /**
5752
+ * POST /menu/v3/brand
5753
+ *
5754
+ * @param body
5755
+ * @param options - additional request options
5756
+ */
5757
+ post_menu_v3_brand(
5758
+ body: PostMenuV3BrandBody,
5759
+ options?: RequestOptions
5760
+ ): ResponsePromise<PostMenuV3BrandResponse> {
5761
+ return this.request("menu", "post_menu_v3_brand", "post", `/menu/v3/brand`, body, options);
5762
+ }
5763
+
5764
+ /**
5765
+ * GET /menu/v3/brands/count
5766
+ *
5767
+ * @param options - additional request options
5768
+ */
5769
+ get_menu_v3_brands_count(
5770
+ options?: {
5771
+ query?: GetMenuV3BrandsCountQuery;
5772
+ } & RequestOptions
5773
+ ): ResponsePromise<GetMenuV3BrandsCountResponse> {
5774
+ return this.request(
5775
+ "menu",
5776
+ "get_menu_v3_brands_count",
5777
+ "get",
5778
+ `/menu/v3/brands/count`,
5779
+ null,
5780
+ options
5781
+ );
5782
+ }
5783
+
5784
+ /**
5785
+ * GET /menu/v3/stations
5786
+ *
5787
+ * @param options - additional request options
5788
+ */
5789
+ get_menu_v3_stations(
5790
+ options?: {
5791
+ query?: GetMenuV3StationsQuery;
5792
+ } & RequestOptions
5793
+ ): ResponsePromise<GetMenuV3StationsResponse> {
5794
+ return this.request("menu", "get_menu_v3_stations", "get", `/menu/v3/stations`, null, options);
5795
+ }
5796
+
5797
+ /**
5798
+ * GET /menu/v3/station/{id}
5799
+ *
5800
+ * @param id
5801
+ * @param options - additional request options
5802
+ */
5803
+ get_menu_v3_station(
5804
+ id: string,
5805
+ options?: {
5806
+ query?: GetMenuV3StationQuery;
5807
+ } & RequestOptions
5808
+ ): ResponsePromise<GetMenuV3StationResponse> {
5809
+ return this.request(
5810
+ "menu",
5811
+ "get_menu_v3_station",
5812
+ "get",
5813
+ `/menu/v3/station/${id}`,
5814
+ null,
5815
+ options
5816
+ );
5817
+ }
5818
+
5819
+ /**
5820
+ * PATCH /menu/v3/station/{id}
5821
+ *
5822
+ * @param id
5823
+ * @param body
5824
+ * @param options - additional request options
5825
+ */
5826
+ patch_menu_v3_station(
5827
+ id: string,
5828
+ body: PatchMenuV3StationBody,
5829
+ options?: RequestOptions
5830
+ ): ResponsePromise<PatchMenuV3StationResponse> {
5831
+ return this.request(
5832
+ "menu",
5833
+ "patch_menu_v3_station",
5834
+ "patch",
5835
+ `/menu/v3/station/${id}`,
5836
+ body,
5837
+ options
5838
+ );
5839
+ }
5840
+
5841
+ /**
5842
+ * DELETE /menu/v3/station/{id}
5843
+ *
5844
+ * @param id
5845
+ * @param options - additional request options
5846
+ */
5847
+ delete_menu_v3_station(
5848
+ id: string,
5849
+ options?: RequestOptions
5850
+ ): ResponsePromise<DeleteMenuV3StationResponse> {
5851
+ return this.request(
5852
+ "menu",
5853
+ "delete_menu_v3_station",
5854
+ "delete",
5855
+ `/menu/v3/station/${id}`,
5856
+ null,
5857
+ options
5858
+ );
5859
+ }
5860
+
5861
+ /**
5862
+ * POST /menu/v3/station
5863
+ *
5864
+ * @param body
5865
+ * @param options - additional request options
5866
+ */
5867
+ post_menu_v3_station(
5868
+ body: PostMenuV3StationBody,
5869
+ options?: RequestOptions
5870
+ ): ResponsePromise<PostMenuV3StationResponse> {
5871
+ return this.request("menu", "post_menu_v3_station", "post", `/menu/v3/station`, body, options);
5872
+ }
5873
+
5874
+ /**
5875
+ * GET /menu/v3/stations/count
5876
+ *
5877
+ * @param options - additional request options
5878
+ */
5879
+ get_menu_v3_stations_count(
5880
+ options?: {
5881
+ query?: GetMenuV3StationsCountQuery;
5882
+ } & RequestOptions
5883
+ ): ResponsePromise<GetMenuV3StationsCountResponse> {
5884
+ return this.request(
5885
+ "menu",
5886
+ "get_menu_v3_stations_count",
5887
+ "get",
5888
+ `/menu/v3/stations/count`,
5889
+ null,
5890
+ options
5891
+ );
5892
+ }
5893
+
5670
5894
  /**
5671
5895
  * GET /menu/client/{client_id} - Get menu client
5672
5896
  *
@@ -6807,6 +7031,45 @@ export class ServiceClient extends BaseServiceClient {
6807
7031
  );
6808
7032
  }
6809
7033
 
7034
+ /**
7035
+ * GET /delivery/{id}/order/{order_id} - get delivery for order
7036
+ *
7037
+ * @param id - delivery provider id
7038
+ * @param order_id - order id
7039
+ * @param options - additional request options
7040
+ */
7041
+ get_delivery_order(
7042
+ id: string,
7043
+ order_id: string,
7044
+ options?: {
7045
+ query?: GetDeliveryOrderQuery;
7046
+ } & RequestOptions
7047
+ ): ResponsePromise<GetDeliveryOrderResponse> {
7048
+ return this.request(
7049
+ "delivery",
7050
+ "get_delivery_order",
7051
+ "get",
7052
+ `/delivery/${id}/order/${order_id}`,
7053
+ null,
7054
+ options
7055
+ );
7056
+ }
7057
+
7058
+ /**
7059
+ * GET /delivery/{id} - Get all Deliveries for delivery provider
7060
+ *
7061
+ * @param id - delivery provider id
7062
+ * @param options - additional request options
7063
+ */
7064
+ get_delivery(
7065
+ id: string,
7066
+ options?: {
7067
+ query?: GetDeliveryQuery;
7068
+ } & RequestOptions
7069
+ ): ResponsePromise<GetDeliveryResponse> {
7070
+ return this.request("delivery", "get_delivery", "get", `/delivery/${id}`, null, options);
7071
+ }
7072
+
6810
7073
  /**
6811
7074
  * POST /loyalty/{id}/enroll/{user_id} - Enroll logged in user in Loyalty program
6812
7075
  *
@@ -0,0 +1,101 @@
1
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
2
+
3
+ import { RequestQuery, BaseRequest } from "./util";
4
+
5
+ export interface Error {
6
+ message?: string;
7
+ code?: number;
8
+ }
9
+
10
+ export interface Delivery {
11
+ // starship delivery job
12
+ id?: string;
13
+ // order id
14
+ order_id?: string;
15
+ date?: {
16
+ created?: string;
17
+ modified?: string;
18
+ CONFIRMED?: string;
19
+ ENROUTE_LOADING_AREA?: string;
20
+ ARRIVING_LOADING_AREA?: string;
21
+ WAITING_LOADING?: string;
22
+ LOADING?: string;
23
+ ENROUTE_CUSTOMER?: string;
24
+ ARRIVING_CUSTOMER?: string;
25
+ WAITING_CUSTOMER?: string;
26
+ UNLOADING?: string;
27
+ COMPLETED?: string;
28
+ CANCELLED?: string;
29
+ CUSTOMER_NO_SHOW?: string;
30
+ NO_SHOW_DEADLINE?: string;
31
+ };
32
+ assigned_robot?: {
33
+ name?: string;
34
+ heading?: number;
35
+ arrivedDestinationAt?: string;
36
+ coordinates?: {
37
+ lat?: number;
38
+ lng?: number;
39
+ };
40
+ };
41
+ drop_off_location?: {
42
+ // drop off location cd id
43
+ id?: string;
44
+ // starship delivery location id
45
+ starship_id?: string;
46
+ name?: string;
47
+ coordinates?: {
48
+ lat?: number;
49
+ lng?: number;
50
+ };
51
+ };
52
+ eta?: {
53
+ loadingAt?: string;
54
+ destinationAt?: string;
55
+ };
56
+ customer?: string;
57
+ loading_code?: string;
58
+ state?: string;
59
+ state_reason?: string;
60
+ tracker_url?: string;
61
+ }
62
+
63
+ // GET /delivery/{id}/order/{order_id} - get delivery for order
64
+
65
+ export interface GetDeliveryOrderPath {
66
+ // delivery provider id
67
+ id: string;
68
+ // order id
69
+ order_id: string;
70
+ }
71
+
72
+ export interface GetDeliveryOrderQuery {
73
+ // Graphql query string
74
+ _query?: string;
75
+ }
76
+
77
+ export type GetDeliveryOrderResponse = Delivery;
78
+
79
+ export interface GetDeliveryOrderRequest
80
+ extends BaseRequest,
81
+ RequestQuery<GetDeliveryOrderQuery>,
82
+ GetDeliveryOrderPath {}
83
+
84
+ // GET /delivery/{id} - Get all Deliveries for delivery provider
85
+
86
+ export interface GetDeliveryPath {
87
+ // delivery provider id
88
+ id: string;
89
+ }
90
+
91
+ export interface GetDeliveryQuery {
92
+ // Graphql query string
93
+ _query?: string;
94
+ }
95
+
96
+ export type GetDeliveryResponse = Delivery;
97
+
98
+ export interface GetDeliveryRequest
99
+ extends BaseRequest,
100
+ RequestQuery<GetDeliveryQuery>,
101
+ GetDeliveryPath {}