@compassdigital/sdk.typescript 4.67.0 → 4.68.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.
Files changed (87) hide show
  1. package/lib/index.d.ts +58 -57
  2. package/lib/index.d.ts.map +1 -1
  3. package/lib/index.js +503 -501
  4. package/lib/index.js.map +1 -1
  5. package/lib/interface/ai.d.ts +1 -1
  6. package/lib/interface/ai.d.ts.map +1 -1
  7. package/lib/interface/announcement.d.ts +1 -1
  8. package/lib/interface/announcement.d.ts.map +1 -1
  9. package/lib/interface/auth.d.ts +3 -3
  10. package/lib/interface/auth.d.ts.map +1 -1
  11. package/lib/interface/calendar.d.ts +2 -2
  12. package/lib/interface/calendar.d.ts.map +1 -1
  13. package/lib/interface/centricos.d.ts +11 -11
  14. package/lib/interface/centricos.d.ts.map +1 -1
  15. package/lib/interface/compassconnect.d.ts +1 -1
  16. package/lib/interface/compassconnect.d.ts.map +1 -1
  17. package/lib/interface/config.d.ts +1 -1
  18. package/lib/interface/config.d.ts.map +1 -1
  19. package/lib/interface/datalake.d.ts +1 -1
  20. package/lib/interface/datalake.d.ts.map +1 -1
  21. package/lib/interface/email.d.ts +1 -1
  22. package/lib/interface/email.d.ts.map +1 -1
  23. package/lib/interface/file.d.ts +2 -2
  24. package/lib/interface/file.d.ts.map +1 -1
  25. package/lib/interface/frictionless.d.ts +9 -9
  26. package/lib/interface/frictionless.d.ts.map +1 -1
  27. package/lib/interface/kds.d.ts +1 -1
  28. package/lib/interface/kds.d.ts.map +1 -1
  29. package/lib/interface/location.d.ts +5 -3
  30. package/lib/interface/location.d.ts.map +1 -1
  31. package/lib/interface/mealplan.d.ts +2 -1
  32. package/lib/interface/mealplan.d.ts.map +1 -1
  33. package/lib/interface/menu.d.ts +149 -109
  34. package/lib/interface/menu.d.ts.map +1 -1
  35. package/lib/interface/notification.d.ts +3 -3
  36. package/lib/interface/notification.d.ts.map +1 -1
  37. package/lib/interface/order.d.ts +7 -7
  38. package/lib/interface/order.d.ts.map +1 -1
  39. package/lib/interface/partner.d.ts +10 -10
  40. package/lib/interface/partner.d.ts.map +1 -1
  41. package/lib/interface/payment.d.ts +3 -3
  42. package/lib/interface/payment.d.ts.map +1 -1
  43. package/lib/interface/promo.d.ts +8 -8
  44. package/lib/interface/promo.d.ts.map +1 -1
  45. package/lib/interface/report.d.ts +10 -10
  46. package/lib/interface/report.d.ts.map +1 -1
  47. package/lib/interface/search.d.ts +8 -8
  48. package/lib/interface/search.d.ts.map +1 -1
  49. package/lib/interface/shoppingcart.d.ts +7 -7
  50. package/lib/interface/shoppingcart.d.ts.map +1 -1
  51. package/lib/interface/task.d.ts +8 -8
  52. package/lib/interface/task.d.ts.map +1 -1
  53. package/lib/interface/tax.d.ts +2 -2
  54. package/lib/interface/tax.d.ts.map +1 -1
  55. package/lib/interface/user.d.ts +16 -16
  56. package/lib/interface/user.d.ts.map +1 -1
  57. package/lib/interface/vendor.d.ts +6 -6
  58. package/lib/interface/vendor.d.ts.map +1 -1
  59. package/package.json +1 -1
  60. package/src/index.ts +10395 -10394
  61. package/src/interface/ai.ts +22 -22
  62. package/src/interface/announcement.ts +60 -60
  63. package/src/interface/auth.ts +68 -68
  64. package/src/interface/calendar.ts +94 -94
  65. package/src/interface/centricos.ts +145 -145
  66. package/src/interface/compassconnect.ts +59 -59
  67. package/src/interface/config.ts +166 -166
  68. package/src/interface/datalake.ts +13 -13
  69. package/src/interface/email.ts +13 -13
  70. package/src/interface/file.ts +18 -18
  71. package/src/interface/frictionless.ts +177 -177
  72. package/src/interface/kds.ts +49 -49
  73. package/src/interface/location.ts +771 -769
  74. package/src/interface/mealplan.ts +155 -154
  75. package/src/interface/menu.ts +4079 -4018
  76. package/src/interface/notification.ts +51 -51
  77. package/src/interface/order.ts +464 -464
  78. package/src/interface/partner.ts +823 -823
  79. package/src/interface/payment.ts +278 -278
  80. package/src/interface/promo.ts +373 -373
  81. package/src/interface/report.ts +348 -348
  82. package/src/interface/search.ts +135 -135
  83. package/src/interface/shoppingcart.ts +429 -429
  84. package/src/interface/task.ts +212 -212
  85. package/src/interface/tax.ts +69 -69
  86. package/src/interface/user.ts +410 -410
  87. package/src/interface/vendor.ts +215 -215
@@ -1,153 +1,153 @@
1
1
  /* eslint-disable */
2
2
  // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
3
 
4
- import { RequestQuery, BaseRequest } from "./util";
4
+ import { RequestQuery, BaseRequest } from './util';
5
5
 
6
6
  export interface MetaResultsDto {
7
- limit: number;
8
- page: number;
9
- sortBy?: Record<string, any>;
10
- sortOrder?: Record<string, any>;
11
- totalResults: number;
12
- totalPages: number;
13
- resultsCount: number;
7
+ limit: number;
8
+ page: number;
9
+ sortBy?: Record<string, any>;
10
+ sortOrder?: Record<string, any>;
11
+ totalResults: number;
12
+ totalPages: number;
13
+ resultsCount: number;
14
14
  }
15
15
 
16
16
  export interface GetShoppingcartDto {
17
- id: string;
18
- source_id: string;
19
- menu: string;
20
- location: string;
21
- meta: {
22
- [index: string]: any;
23
- };
24
- sub_total: Record<string, any>;
25
- payment_method: Record<string, any>;
26
- loyalty: Record<string, any>;
27
- total: Record<string, any>;
28
- exemptions: Record<string, any>;
29
- brand: string;
30
- is: Record<string, any>;
31
- source_order_id: string;
32
- items: Record<string, any>;
33
- discount: Record<string, any>;
34
- delivery_fee: Record<string, any>;
35
- source_date_created: string;
36
- source_date_modified: string;
37
- promo: Record<string, any>;
38
- taxes: Record<string, any>;
39
- service_fee: Record<string, any>;
17
+ id: string;
18
+ source_id: string;
19
+ menu: string;
20
+ location: string;
21
+ meta: {
22
+ [index: string]: any;
23
+ };
24
+ sub_total: Record<string, any>;
25
+ payment_method: Record<string, any>;
26
+ loyalty: Record<string, any>;
27
+ total: Record<string, any>;
28
+ exemptions: Record<string, any>;
29
+ brand: string;
30
+ is: Record<string, any>;
31
+ source_order_id: string;
32
+ items: Record<string, any>;
33
+ discount: Record<string, any>;
34
+ delivery_fee: Record<string, any>;
35
+ source_date_created: string;
36
+ source_date_modified: string;
37
+ promo: Record<string, any>;
38
+ taxes: Record<string, any>;
39
+ service_fee: Record<string, any>;
40
40
  }
41
41
 
42
42
  export interface OrderGroupDetails {
43
- source_id?: string;
44
- name?: string;
43
+ source_id?: string;
44
+ name?: string;
45
45
  }
46
46
 
47
47
  export interface OrderBrandDetails {
48
- source_id?: string;
49
- name?: string;
48
+ source_id?: string;
49
+ name?: string;
50
50
  }
51
51
 
52
52
  export interface GetOrderDto {
53
- source_id: string;
54
- requested_date: string;
55
- pickup_id: string;
56
- pickup: string;
57
- is: Record<string, any>;
58
- mealplan: Record<string, any>;
59
- shoppingcart: GetShoppingcartDto;
60
- date: Record<string, any>;
61
- pickup_name: string;
62
- details: Record<string, any>;
63
- payment: Record<string, any>;
64
- meal_swipes: Record<string, any>;
65
- meal_exchange: Record<string, any>;
66
- issue: Record<string, any>;
67
- source_group: OrderGroupDetails;
68
- source_brand: OrderBrandDetails;
69
- date_created: string;
70
- refund_status: string;
71
- payment_type: string;
72
- payment_category: string;
73
- market_place_stations: OrderBrandDetails[];
74
- // Order original cart amount before refunds
75
- total: string;
76
- // Customer email
77
- email: string;
78
- // Order type: pickup/delivery/etc
79
- order_type: string;
80
- // Order status: accepted/in_progress/ready/etc
81
- status: string;
53
+ source_id: string;
54
+ requested_date: string;
55
+ pickup_id: string;
56
+ pickup: string;
57
+ is: Record<string, any>;
58
+ mealplan: Record<string, any>;
59
+ shoppingcart: GetShoppingcartDto;
60
+ date: Record<string, any>;
61
+ pickup_name: string;
62
+ details: Record<string, any>;
63
+ payment: Record<string, any>;
64
+ meal_swipes: Record<string, any>;
65
+ meal_exchange: Record<string, any>;
66
+ issue: Record<string, any>;
67
+ source_group: OrderGroupDetails;
68
+ source_brand: OrderBrandDetails;
69
+ date_created: string;
70
+ refund_status: string;
71
+ payment_type: string;
72
+ payment_category: string;
73
+ market_place_stations: OrderBrandDetails[];
74
+ // Order original cart amount before refunds
75
+ total: string;
76
+ // Customer email
77
+ email: string;
78
+ // Order type: pickup/delivery/etc
79
+ order_type: string;
80
+ // Order status: accepted/in_progress/ready/etc
81
+ status: string;
82
82
  }
83
83
 
84
84
  export interface GetOrderPaginatedResult {
85
- meta: MetaResultsDto;
86
- results: GetOrderDto[];
85
+ meta: MetaResultsDto;
86
+ results: GetOrderDto[];
87
87
  }
88
88
 
89
89
  export interface GetLocationDto {
90
- source_id: string;
91
- source_type: string;
92
- name: string;
90
+ source_id: string;
91
+ source_type: string;
92
+ name: string;
93
93
  }
94
94
 
95
95
  export interface GetLocationPaginatedResult {
96
- meta: MetaResultsDto;
97
- results: GetLocationDto[];
96
+ meta: MetaResultsDto;
97
+ results: GetLocationDto[];
98
98
  }
99
99
 
100
100
  // GET /search/order
101
101
 
102
102
  export interface GetSearchOrderQuery {
103
- // Items to return in response
104
- limit?: number;
105
- // Pagination param
106
- page?: number;
107
- // Return items sorted by this column
108
- sortBy?:
109
- | "date_created"
110
- | "destination"
111
- | "id"
112
- | "pickup"
113
- | "pickup_id"
114
- | "pickup_name"
115
- | "source_id"
116
- | "sub_total"
117
- | "total"
118
- | "site_name"
119
- | "status"
120
- | "order_type"
121
- | "fulfillment_date";
122
- sortOrder?: "ASC" | "DESC";
123
- // Filter orders by site id
124
- source_group_id?: string;
125
- // Filter orders by station id
126
- source_brand_id?: string;
127
- // Filter orders with created date not earlier than
128
- date_created_start?: string;
129
- // Filter orders with created date not later than this date
130
- date_created_end?: string;
131
- // Filter orders having specific order number
132
- pickup_id?: string;
133
- // Filter orders by user pickup name
134
- pickup_name?: string;
135
- // Search order by order ID
136
- source_id?: string;
137
- // Search order by refund_status
138
- refund_status?: ("" | "partial" | "full")[];
139
- // Filter orders by payment type
140
- payment_type?: string;
141
- // Filter orders by payment category
142
- payment_category?: ("digital wallet" | "badge pay" | "credit card" | "mealplan")[];
143
- // Filter orders by customer email
144
- email?: string;
145
- // Filter orders by order type
146
- order_type?: ("frictionless" | "delivery" | "pickup" | "scan_and_go")[];
147
- // Filter orders by order status/progress
148
- status?: ("ready" | "accepted" | "delivered" | "in_progress" | "out_for_delivery" | "created")[];
149
- // Graphql query string
150
- _query?: string;
103
+ // Items to return in response
104
+ limit?: number;
105
+ // Pagination param
106
+ page?: number;
107
+ // Return items sorted by this column
108
+ sortBy?:
109
+ | 'date_created'
110
+ | 'destination'
111
+ | 'id'
112
+ | 'pickup'
113
+ | 'pickup_id'
114
+ | 'pickup_name'
115
+ | 'source_id'
116
+ | 'sub_total'
117
+ | 'total'
118
+ | 'site_name'
119
+ | 'status'
120
+ | 'order_type'
121
+ | 'fulfillment_date';
122
+ sortOrder?: 'ASC' | 'DESC';
123
+ // Filter orders by site id
124
+ source_group_id?: string;
125
+ // Filter orders by station id
126
+ source_brand_id?: string;
127
+ // Filter orders with created date not earlier than
128
+ date_created_start?: string;
129
+ // Filter orders with created date not later than this date
130
+ date_created_end?: string;
131
+ // Filter orders having specific order number
132
+ pickup_id?: string;
133
+ // Filter orders by user pickup name
134
+ pickup_name?: string;
135
+ // Search order by order ID
136
+ source_id?: string;
137
+ // Search order by refund_status
138
+ refund_status?: ('' | 'partial' | 'full')[];
139
+ // Filter orders by payment type
140
+ payment_type?: string;
141
+ // Filter orders by payment category
142
+ payment_category?: ('digital wallet' | 'badge pay' | 'credit card' | 'mealplan')[];
143
+ // Filter orders by customer email
144
+ email?: string;
145
+ // Filter orders by order type
146
+ order_type?: ('frictionless' | 'delivery' | 'pickup' | 'scan_and_go')[];
147
+ // Filter orders by order status/progress
148
+ status?: ('ready' | 'accepted' | 'delivered' | 'in_progress' | 'out_for_delivery' | 'created')[];
149
+ // Graphql query string
150
+ _query?: string;
151
151
  }
152
152
 
153
153
  export type GetSearchOrderResponse = GetOrderPaginatedResult;
@@ -157,24 +157,24 @@ export interface GetSearchOrderRequest extends BaseRequest, RequestQuery<GetSear
157
157
  // GET /search/location
158
158
 
159
159
  export interface GetSearchLocationQuery {
160
- // Items to return in response
161
- limit?: number;
162
- // Pagination param
163
- page?: number;
164
- // Filter entities with names containing this value
165
- name?: string;
166
- // Filter entities with specific type
167
- source_type?: "brand" | "location" | "group" | "multigroup" | "sector" | "company";
168
- // Filter entities with specific group id as a parent
169
- source_group_parent?: string;
170
- // Filter entities with specific multigroup id as a parent
171
- source_multigroup_parent?: string;
172
- // Graphql query string
173
- _query?: string;
160
+ // Items to return in response
161
+ limit?: number;
162
+ // Pagination param
163
+ page?: number;
164
+ // Filter entities with names containing this value
165
+ name?: string;
166
+ // Filter entities with specific type
167
+ source_type?: 'brand' | 'location' | 'group' | 'multigroup' | 'sector' | 'company';
168
+ // Filter entities with specific group id as a parent
169
+ source_group_parent?: string;
170
+ // Filter entities with specific multigroup id as a parent
171
+ source_multigroup_parent?: string;
172
+ // Graphql query string
173
+ _query?: string;
174
174
  }
175
175
 
176
176
  export type GetSearchLocationResponse = GetLocationPaginatedResult;
177
177
 
178
178
  export interface GetSearchLocationRequest
179
- extends BaseRequest,
180
- RequestQuery<GetSearchLocationQuery> {}
179
+ extends BaseRequest,
180
+ RequestQuery<GetSearchLocationQuery> {}