@compassdigital/sdk.typescript 4.15.0 → 4.16.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 (101) hide show
  1. package/lib/base.d.ts +1 -11
  2. package/lib/base.d.ts.map +1 -1
  3. package/lib/base.js +3 -21
  4. package/lib/base.js.map +1 -1
  5. package/lib/index.d.ts +46 -5
  6. package/lib/index.d.ts.map +1 -1
  7. package/lib/index.js +47 -2
  8. package/lib/index.js.map +1 -1
  9. package/lib/interface/ai.d.ts +3 -3
  10. package/lib/interface/ai.d.ts.map +1 -1
  11. package/lib/interface/announcement.d.ts +2 -2
  12. package/lib/interface/announcement.d.ts.map +1 -1
  13. package/lib/interface/calendar.d.ts +1 -1
  14. package/lib/interface/calendar.d.ts.map +1 -1
  15. package/lib/interface/centricos.d.ts +46 -4
  16. package/lib/interface/centricos.d.ts.map +1 -1
  17. package/lib/interface/compassconnect.d.ts +1 -1
  18. package/lib/interface/compassconnect.d.ts.map +1 -1
  19. package/lib/interface/config.d.ts +2 -2
  20. package/lib/interface/config.d.ts.map +1 -1
  21. package/lib/interface/datalake.d.ts +2 -2
  22. package/lib/interface/datalake.d.ts.map +1 -1
  23. package/lib/interface/delivery.d.ts +1 -1
  24. package/lib/interface/delivery.d.ts.map +1 -1
  25. package/lib/interface/email.d.ts +2 -2
  26. package/lib/interface/email.d.ts.map +1 -1
  27. package/lib/interface/file.d.ts +1 -1
  28. package/lib/interface/file.d.ts.map +1 -1
  29. package/lib/interface/frictionless.d.ts +26 -7
  30. package/lib/interface/frictionless.d.ts.map +1 -1
  31. package/lib/interface/kds.d.ts +1 -1
  32. package/lib/interface/kds.d.ts.map +1 -1
  33. package/lib/interface/location.d.ts +21 -12
  34. package/lib/interface/location.d.ts.map +1 -1
  35. package/lib/interface/location.js +12 -0
  36. package/lib/interface/location.js.map +1 -1
  37. package/lib/interface/mealplan.d.ts +1 -1
  38. package/lib/interface/mealplan.d.ts.map +1 -1
  39. package/lib/interface/menu.d.ts +255 -249
  40. package/lib/interface/menu.d.ts.map +1 -1
  41. package/lib/interface/menu.js +6 -0
  42. package/lib/interface/menu.js.map +1 -1
  43. package/lib/interface/notification.d.ts +2 -2
  44. package/lib/interface/notification.d.ts.map +1 -1
  45. package/lib/interface/order.d.ts +3 -3
  46. package/lib/interface/order.d.ts.map +1 -1
  47. package/lib/interface/partner.d.ts +26 -18
  48. package/lib/interface/partner.d.ts.map +1 -1
  49. package/lib/interface/partner.js +11 -0
  50. package/lib/interface/partner.js.map +1 -1
  51. package/lib/interface/payment.d.ts +1 -1
  52. package/lib/interface/payment.d.ts.map +1 -1
  53. package/lib/interface/promo.d.ts +12 -5
  54. package/lib/interface/promo.d.ts.map +1 -1
  55. package/lib/interface/promo.js +8 -0
  56. package/lib/interface/promo.js.map +1 -1
  57. package/lib/interface/report.d.ts +11 -5
  58. package/lib/interface/report.d.ts.map +1 -1
  59. package/lib/interface/shoppingcart.d.ts +12 -8
  60. package/lib/interface/shoppingcart.d.ts.map +1 -1
  61. package/lib/interface/shoppingcart.js +5 -0
  62. package/lib/interface/shoppingcart.js.map +1 -1
  63. package/lib/interface/task.d.ts +14 -6
  64. package/lib/interface/task.d.ts.map +1 -1
  65. package/lib/interface/task.js +9 -0
  66. package/lib/interface/task.js.map +1 -1
  67. package/lib/interface/user.d.ts +4 -4
  68. package/lib/interface/user.d.ts.map +1 -1
  69. package/lib/interface/util.d.ts +19 -0
  70. package/lib/interface/util.d.ts.map +1 -1
  71. package/lib/interface/vendor.d.ts +1 -1
  72. package/lib/interface/vendor.d.ts.map +1 -1
  73. package/package.json +1 -1
  74. package/src/base.ts +6 -25
  75. package/src/index.ts +117 -2
  76. package/src/interface/ai.ts +3 -3
  77. package/src/interface/announcement.ts +2 -2
  78. package/src/interface/calendar.ts +1 -1
  79. package/src/interface/centricos.ts +76 -4
  80. package/src/interface/compassconnect.ts +1 -1
  81. package/src/interface/config.ts +2 -2
  82. package/src/interface/datalake.ts +2 -2
  83. package/src/interface/delivery.ts +1 -1
  84. package/src/interface/email.ts +2 -2
  85. package/src/interface/file.ts +1 -1
  86. package/src/interface/frictionless.ts +49 -7
  87. package/src/interface/kds.ts +1 -1
  88. package/src/interface/location.ts +20 -12
  89. package/src/interface/mealplan.ts +1 -1
  90. package/src/interface/menu.ts +254 -249
  91. package/src/interface/notification.ts +2 -2
  92. package/src/interface/order.ts +3 -3
  93. package/src/interface/partner.ts +25 -18
  94. package/src/interface/payment.ts +1 -1
  95. package/src/interface/promo.ts +11 -5
  96. package/src/interface/report.ts +17 -7
  97. package/src/interface/shoppingcart.ts +11 -8
  98. package/src/interface/task.ts +13 -12
  99. package/src/interface/user.ts +4 -4
  100. package/src/interface/util.ts +21 -0
  101. package/src/interface/vendor.ts +1 -1
package/src/index.ts CHANGED
@@ -371,6 +371,7 @@ import {
371
371
  PutReportGroupConfigResponse,
372
372
  GetReportGroupConfigQuery,
373
373
  GetReportGroupConfigResponse,
374
+ DeleteReportGroupConfigResponse,
374
375
  } from "./interface/report";
375
376
 
376
377
  import {
@@ -883,6 +884,8 @@ import {
883
884
  GetFrictionlessUsersPaymentIssuesResponse,
884
885
  PostFrictionlessCheckinReprocessPaymentBody,
885
886
  PostFrictionlessCheckinReprocessPaymentResponse,
887
+ GetFrictionlessCheckinQuery,
888
+ GetFrictionlessCheckinResponse,
886
889
  } from "./interface/frictionless";
887
890
 
888
891
  import {
@@ -899,6 +902,12 @@ import {
899
902
  PostCentricosAiItemImageResponse,
900
903
  PostCentricosOrdersExportQuery,
901
904
  PostCentricosOrdersExportResponse,
905
+ GetCentricosReportGroupConfigQuery,
906
+ GetCentricosReportGroupConfigResponse,
907
+ PutCentricosReportGroupConfigBody,
908
+ PutCentricosReportGroupConfigResponse,
909
+ GetCentricosReportConfigDefaultQuery,
910
+ GetCentricosReportConfigDefaultResponse,
902
911
  } from "./interface/centricos";
903
912
 
904
913
  import { BaseServiceClient, RequestOptions, ResponsePromise } from "./base";
@@ -4169,7 +4178,7 @@ export class ServiceClient extends BaseServiceClient {
4169
4178
  }
4170
4179
 
4171
4180
  /**
4172
- * PUT /report/group/{location_group}/config - Update report configuration for a location group
4181
+ * PUT /report/group/{location_group}/config - Update report configuration for a location group. Times are in UTC.
4173
4182
  *
4174
4183
  * @param location_group
4175
4184
  * @param body
@@ -4191,7 +4200,7 @@ export class ServiceClient extends BaseServiceClient {
4191
4200
  }
4192
4201
 
4193
4202
  /**
4194
- * GET /report/group/{location_group}/config - Get report configuration for a location group
4203
+ * GET /report/group/{location_group}/config - Get report configuration for a location group. Times are in UTC.
4195
4204
  *
4196
4205
  * @param location_group
4197
4206
  * @param options - additional request options
@@ -4212,6 +4221,26 @@ export class ServiceClient extends BaseServiceClient {
4212
4221
  );
4213
4222
  }
4214
4223
 
4224
+ /**
4225
+ * DELETE /report/group/{location_group}/config - Delete report configuration for a location group
4226
+ *
4227
+ * @param location_group
4228
+ * @param options - additional request options
4229
+ */
4230
+ delete_report_group_config(
4231
+ location_group: string,
4232
+ options?: RequestOptions
4233
+ ): ResponsePromise<DeleteReportGroupConfigResponse> {
4234
+ return this.request(
4235
+ "report",
4236
+ "delete_report_group_config",
4237
+ "delete",
4238
+ `/report/group/${location_group}/config`,
4239
+ null,
4240
+ options
4241
+ );
4242
+ }
4243
+
4215
4244
  /**
4216
4245
  * GET /user/auth - Gets the JWT token for a user
4217
4246
  *
@@ -9093,6 +9122,28 @@ export class ServiceClient extends BaseServiceClient {
9093
9122
  );
9094
9123
  }
9095
9124
 
9125
+ /**
9126
+ * GET /frictionless/checkin/{id_checkin} - Fetch CheckIn
9127
+ *
9128
+ * @param id_checkin
9129
+ * @param options - additional request options
9130
+ */
9131
+ get_frictionless_checkin(
9132
+ id_checkin: string,
9133
+ options?: {
9134
+ query?: GetFrictionlessCheckinQuery;
9135
+ } & RequestOptions
9136
+ ): ResponsePromise<GetFrictionlessCheckinResponse> {
9137
+ return this.request(
9138
+ "frictionless",
9139
+ "get_frictionless_checkin",
9140
+ "get",
9141
+ `/frictionless/checkin/${id_checkin}`,
9142
+ null,
9143
+ options
9144
+ );
9145
+ }
9146
+
9096
9147
  /**
9097
9148
  * POST /ai/language/generate - Generate text from a given prompt
9098
9149
  *
@@ -9192,4 +9243,68 @@ export class ServiceClient extends BaseServiceClient {
9192
9243
  options
9193
9244
  );
9194
9245
  }
9246
+
9247
+ /**
9248
+ * GET /centricos/report/group/{location_group}/config - Get report configuration for a location group. Times are in UTC.
9249
+ *
9250
+ * @param location_group - TODO: add parameter to swagger.json
9251
+ * @param options - additional request options
9252
+ */
9253
+ get_centricos_report_group_config(
9254
+ location_group: string,
9255
+ options?: {
9256
+ query?: GetCentricosReportGroupConfigQuery;
9257
+ } & RequestOptions
9258
+ ): ResponsePromise<GetCentricosReportGroupConfigResponse> {
9259
+ return this.request(
9260
+ "centricos",
9261
+ "get_centricos_report_group_config",
9262
+ "get",
9263
+ `/centricos/report/group/${location_group}/config`,
9264
+ null,
9265
+ options
9266
+ );
9267
+ }
9268
+
9269
+ /**
9270
+ * PUT /centricos/report/group/{location_group}/config - Update report configuration for a location group. Times are in UTC.
9271
+ *
9272
+ * @param location_group - TODO: add parameter to swagger.json
9273
+ * @param body
9274
+ * @param options - additional request options
9275
+ */
9276
+ put_centricos_report_group_config(
9277
+ location_group: string,
9278
+ body: PutCentricosReportGroupConfigBody,
9279
+ options?: RequestOptions
9280
+ ): ResponsePromise<PutCentricosReportGroupConfigResponse> {
9281
+ return this.request(
9282
+ "centricos",
9283
+ "put_centricos_report_group_config",
9284
+ "put",
9285
+ `/centricos/report/group/${location_group}/config`,
9286
+ body,
9287
+ options
9288
+ );
9289
+ }
9290
+
9291
+ /**
9292
+ * GET /centricos/report/config/default - Get default report configuration. Times are in UTC.
9293
+ *
9294
+ * @param options - additional request options
9295
+ */
9296
+ get_centricos_report_config_default(
9297
+ options?: {
9298
+ query?: GetCentricosReportConfigDefaultQuery;
9299
+ } & RequestOptions
9300
+ ): ResponsePromise<GetCentricosReportConfigDefaultResponse> {
9301
+ return this.request(
9302
+ "centricos",
9303
+ "get_centricos_report_config_default",
9304
+ "get",
9305
+ `/centricos/report/config/default`,
9306
+ null,
9307
+ options
9308
+ );
9309
+ }
9195
9310
  }
@@ -25,16 +25,16 @@ export interface GenerateTextResponse {
25
25
  export interface BadRequestErrorDTO {
26
26
  message: string;
27
27
  code: number;
28
- data: Record<string, any>;
28
+ data: any;
29
29
  }
30
30
 
31
31
  export interface UnauthorizedErrorDTO {
32
32
  message: string;
33
33
  code: number;
34
- data: Record<string, any>;
34
+ data: any;
35
35
  }
36
36
 
37
- export type InternalServerErrorException = Record<string, any>;
37
+ export type InternalServerErrorException = any;
38
38
 
39
39
  export interface GenerateImageRequest {
40
40
  prompt: string;
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
6
6
  export interface Error {
7
7
  code?: number;
8
8
  message?: string;
9
- data?: Record<string, any>;
9
+ data?: any;
10
10
  }
11
11
 
12
12
  export interface Success {
@@ -33,7 +33,7 @@ export interface Announcement {
33
33
  en?: Announcement_info;
34
34
  fr?: Announcement_info;
35
35
  };
36
- date?: Record<string, any>;
36
+ date?: any;
37
37
  [index: string]: any;
38
38
  }
39
39
 
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
6
6
  export interface Error {
7
7
  message?: string;
8
8
  code?: number;
9
- data?: Record<string, any>;
9
+ data?: any;
10
10
  }
11
11
 
12
12
  export interface Event {
@@ -15,16 +15,16 @@ export interface AIItemDescriptionResponse {
15
15
  export interface BadRequestErrorDTO {
16
16
  message: string;
17
17
  code: number;
18
- data: Record<string, any>;
18
+ data: any;
19
19
  }
20
20
 
21
21
  export interface UnauthorizedErrorDTO {
22
22
  message: string;
23
23
  code: number;
24
- data: Record<string, any>;
24
+ data: any;
25
25
  }
26
26
 
27
- export type InternalServerErrorException = Record<string, any>;
27
+ export type InternalServerErrorException = any;
28
28
 
29
29
  export interface AIItemImageRequest {
30
30
  name?: string;
@@ -50,6 +50,29 @@ export interface OrdersExportResponse {
50
50
  fileName: string;
51
51
  }
52
52
 
53
+ export interface DayPart {
54
+ label: string;
55
+ start: string;
56
+ end: string;
57
+ }
58
+
59
+ export interface ReportGroupConfigResponse {
60
+ location_group_id: string;
61
+ day_start: string;
62
+ day_parts: DayPart[];
63
+ is_default: boolean;
64
+ }
65
+
66
+ export interface ReportGroupConfigRequest {
67
+ day_start: string;
68
+ day_parts: DayPart[];
69
+ }
70
+
71
+ export interface ReportDefaultConfigResponse {
72
+ day_start: string;
73
+ day_parts: DayPart[];
74
+ }
75
+
53
76
  // POST /centricos/ai/item/description - Generate item description
54
77
 
55
78
  export type PostCentricosAiItemDescriptionBody = AIItemDescriptionRequest;
@@ -90,7 +113,7 @@ export interface PostCentricosOrdersExportQuery {
90
113
  // Filter orders by payment category
91
114
  payment_category?: ("digital wallet" | "badge pay" | "credit card" | "mealplan")[];
92
115
  // Search order by refund_status
93
- refund_status?: ("partial" | "full")[];
116
+ refund_status?: ("partial" | "full" | "")[];
94
117
  // Return items sorted by this column
95
118
  sortBy?:
96
119
  | "date_created"
@@ -118,3 +141,52 @@ export type PostCentricosOrdersExportResponse = OrdersExportResponse;
118
141
  export interface PostCentricosOrdersExportRequest
119
142
  extends BaseRequest,
120
143
  RequestQuery<PostCentricosOrdersExportQuery> {}
144
+
145
+ // GET /centricos/report/group/{location_group}/config - Get report configuration for a location group. Times are in UTC.
146
+
147
+ export interface GetCentricosReportGroupConfigPath {
148
+ // TODO: add parameter to swagger.json
149
+ location_group: string;
150
+ }
151
+
152
+ export interface GetCentricosReportGroupConfigQuery {
153
+ // Graphql query string
154
+ _query?: string;
155
+ }
156
+
157
+ export type GetCentricosReportGroupConfigResponse = ReportGroupConfigResponse;
158
+
159
+ export interface GetCentricosReportGroupConfigRequest
160
+ extends BaseRequest,
161
+ RequestQuery<GetCentricosReportGroupConfigQuery>,
162
+ GetCentricosReportGroupConfigPath {}
163
+
164
+ // PUT /centricos/report/group/{location_group}/config - Update report configuration for a location group. Times are in UTC.
165
+
166
+ export interface PutCentricosReportGroupConfigPath {
167
+ // TODO: add parameter to swagger.json
168
+ location_group: string;
169
+ }
170
+
171
+ export type PutCentricosReportGroupConfigBody = ReportGroupConfigRequest;
172
+
173
+ export type PutCentricosReportGroupConfigResponse = ReportGroupConfigResponse;
174
+
175
+ export interface PutCentricosReportGroupConfigRequest
176
+ extends BaseRequest,
177
+ PutCentricosReportGroupConfigPath {
178
+ body: PutCentricosReportGroupConfigBody;
179
+ }
180
+
181
+ // GET /centricos/report/config/default - Get default report configuration. Times are in UTC.
182
+
183
+ export interface GetCentricosReportConfigDefaultQuery {
184
+ // Graphql query string
185
+ _query?: string;
186
+ }
187
+
188
+ export type GetCentricosReportConfigDefaultResponse = ReportDefaultConfigResponse;
189
+
190
+ export interface GetCentricosReportConfigDefaultRequest
191
+ extends BaseRequest,
192
+ RequestQuery<GetCentricosReportConfigDefaultQuery> {}
@@ -13,7 +13,7 @@ export interface OMSRequest {
13
13
  export interface Error {
14
14
  message?: string;
15
15
  code?: number;
16
- data?: Record<string, any>;
16
+ data?: any;
17
17
  }
18
18
 
19
19
  export interface Auth {
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { RequestQuery, BaseRequest } from "./util";
5
5
 
6
- export type CreateConfig = Record<string, any>;
6
+ export type CreateConfig = any;
7
7
 
8
8
  export interface Config {
9
9
  [index: string]: any;
@@ -12,7 +12,7 @@ export interface Config {
12
12
  export interface Error {
13
13
  error?: string;
14
14
  code?: number;
15
- data?: Record<string, any>;
15
+ data?: any;
16
16
  }
17
17
 
18
18
  export interface Success {
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
6
6
  export interface Error {
7
7
  error?: string;
8
8
  code?: number;
9
- data?: Record<string, any>;
9
+ data?: any;
10
10
  }
11
11
 
12
12
  export interface QueryBody {
@@ -34,7 +34,7 @@ export interface GetDatalakeSwaggerQuery {
34
34
  _query?: string;
35
35
  }
36
36
 
37
- export type GetDatalakeSwaggerResponse = Record<string, any>;
37
+ export type GetDatalakeSwaggerResponse = any;
38
38
 
39
39
  export interface GetDatalakeSwaggerRequest
40
40
  extends BaseRequest,
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
6
6
  export interface Error {
7
7
  message?: string;
8
8
  code?: number;
9
- data?: Record<string, any>;
9
+ data?: any;
10
10
  }
11
11
 
12
12
  export interface Delivery {
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
6
6
  export interface Error {
7
7
  message?: string;
8
8
  code?: number;
9
- data?: Record<string, any>;
9
+ data?: any;
10
10
  }
11
11
 
12
12
  export interface Success {
@@ -20,7 +20,7 @@ export interface EmailPayload {
20
20
  // Text of an email instead of template_id/data
21
21
  text?: string;
22
22
  template_id?: string;
23
- data?: Record<string, any>;
23
+ data?: any;
24
24
  }
25
25
 
26
26
  // POST /email - Send an email
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
6
6
  export interface Error {
7
7
  message?: string;
8
8
  code?: number;
9
- data?: Record<string, any>;
9
+ data?: any;
10
10
  }
11
11
 
12
12
  export interface File {
@@ -12,8 +12,11 @@ export interface StandardCognitionEvent {
12
12
  }
13
13
 
14
14
  export interface AmazonJWOAuthEventDTO {
15
+ // Value that uniquely identifies each authorization event that occurs when a shopper interacts with a JWO gate
15
16
  id: string;
17
+ // Contains the timestamp when the authorization event took place
16
18
  timestamp: string;
19
+ // Contains an enumerated string that tells the system where the authorization event took place. Current values are ENTRY for the JWO Entry Gate and EXIT for the Exit Gate
17
20
  location: "ENTRY" | "EXIT";
18
21
  }
19
22
 
@@ -36,39 +39,49 @@ export interface AmazonJWOIdentityKeysResponseDTO {
36
39
  export interface BadRequestErrorDTO {
37
40
  message: string;
38
41
  code: number;
39
- data: Record<string, any>;
42
+ data: any;
40
43
  }
41
44
 
42
45
  export interface UnauthorizedErrorDTO {
43
46
  message: string;
44
47
  code: number;
45
- data: Record<string, any>;
48
+ data: any;
46
49
  }
47
50
 
48
51
  export interface ShoppingTrip {
52
+ // Contains a timestamp for the time the shopping trip starts. This value is not validated on our service.
49
53
  startTime: string;
54
+ // Contains a timestamp for the time the shopping trip ends. This value is not validated on our service.
50
55
  endTime: string;
51
56
  authEvents: AmazonJWOAuthEventDTO[];
52
57
  }
53
58
 
54
59
  export interface Quantity {
60
+ // Contains the number of each item the shopper purchased
55
61
  value: string;
56
- unit: string;
62
+ // Contains the type of unique identifier your store uses to identify each item in the cart
63
+ unit: "unit" | "each";
57
64
  }
58
65
 
59
66
  export interface CartItem {
67
+ // Contain a unique identifier for the item in the cart. This identifier will be an SKU for Compass
60
68
  id: string;
61
- type: string;
69
+ // Contains the type of unique identifier the store uses to identify each item in the cart. This field will be always SKU for Compass
70
+ type: "SKU";
62
71
  quantity: Quantity;
63
72
  }
64
73
 
65
74
  export interface ShopperIdentity {
75
+ // Contains a unique identifier for each shopper AWS sends back. Refers to our CheckIn ID.
66
76
  id: string;
67
77
  }
68
78
 
69
79
  export interface AmazonJWOOrderingRequestDTO {
80
+ // Contains a UUID for each checkout request. Amazon generates this UUID for each request. If Amazon has to send the same request more than once, the requestId will be different for each request. Compare the requestId to the idempotentShoppingTripId field, which remains the same throughout the shopping trip.
70
81
  requestId: string;
82
+ // Contains a Universally Unique ID (UUID) for the current shopping trip. Amazon generates this UUID for each shopping trip
71
83
  idempotentShoppingTripId: string;
84
+ // The storeId field contains a unique identifier for your store on AWS system
72
85
  storeId: string;
73
86
  shoppingTrip: ShoppingTrip;
74
87
  cartItems: CartItem[];
@@ -87,13 +100,13 @@ export interface FrictionlessSupportResponse {
87
100
  export interface ForbiddenErrorDTO {
88
101
  message: string;
89
102
  code: number;
90
- data: Record<string, any>;
103
+ data: any;
91
104
  }
92
105
 
93
106
  export interface NotFoundErrorDTO {
94
107
  message: string;
95
108
  code: number;
96
- data: Record<string, any>;
109
+ data: any;
97
110
  }
98
111
 
99
112
  export interface MealplanDTO {
@@ -164,6 +177,17 @@ export interface CheckInPaymentRequiredDTO {
164
177
  id: string;
165
178
  }
166
179
 
180
+ export interface GetCheckinResponseDTO {
181
+ id: string;
182
+ provider: string;
183
+ status: string;
184
+ reasonOfFail?: string;
185
+ thirdPartyCorrelatedID?: string;
186
+ shoppingCartID?: string;
187
+ brandID: string;
188
+ userID: string;
189
+ }
190
+
167
191
  // POST /frictionless/webhook/standardcognition - Receive frictionless standard cognition events
168
192
 
169
193
  export type PostFrictionlessWebhookStandardcognitionBody = StandardCognitionEvent;
@@ -221,7 +245,7 @@ export interface GetFrictionlessBrandFrictionlessStatusRequest
221
245
 
222
246
  export type PostFrictionlessQrCodeBody = CreateFrictionlessQRCodeCommand;
223
247
 
224
- export type PostFrictionlessQrCodeResponse = QRCodeCreationResponse;
248
+ export type PostFrictionlessQrCodeResponse = {};
225
249
 
226
250
  export interface PostFrictionlessQrCodeRequest extends BaseRequest {
227
251
  body: PostFrictionlessQrCodeBody;
@@ -303,3 +327,21 @@ export interface PostFrictionlessCheckinReprocessPaymentRequest
303
327
  PostFrictionlessCheckinReprocessPaymentPath {
304
328
  body: PostFrictionlessCheckinReprocessPaymentBody;
305
329
  }
330
+
331
+ // GET /frictionless/checkin/{id_checkin} - Fetch CheckIn
332
+
333
+ export interface GetFrictionlessCheckinPath {
334
+ id_checkin: string;
335
+ }
336
+
337
+ export interface GetFrictionlessCheckinQuery {
338
+ // Graphql query string
339
+ _query?: string;
340
+ }
341
+
342
+ export type GetFrictionlessCheckinResponse = GetCheckinResponseDTO;
343
+
344
+ export interface GetFrictionlessCheckinRequest
345
+ extends BaseRequest,
346
+ RequestQuery<GetFrictionlessCheckinQuery>,
347
+ GetFrictionlessCheckinPath {}
@@ -11,7 +11,7 @@ export interface Error {
11
11
  error?: string;
12
12
  message?: string;
13
13
  code: number;
14
- data?: Record<string, any>;
14
+ data?: any;
15
15
  }
16
16
 
17
17
  export interface Device {
@@ -95,10 +95,10 @@ export interface Brand {
95
95
  };
96
96
  hours?: Hours[];
97
97
  deliveryHours?: DeliveryHours[];
98
- style?: Record<string, any>;
98
+ style?: any;
99
99
  // pos
100
100
  pos?: string;
101
- terminals?: Record<string, any>[];
101
+ terminals?: any[];
102
102
  timeslots?: {
103
103
  time?: string;
104
104
  averagePrepTime?: string;
@@ -145,8 +145,8 @@ export interface Brand {
145
145
  // company
146
146
  company?: string;
147
147
  config?: {
148
- private?: Record<string, any>;
149
- public?: Record<string, any>;
148
+ private?: any;
149
+ public?: any;
150
150
  };
151
151
  tax_rate?: number;
152
152
  meta?: {
@@ -254,8 +254,8 @@ export interface Location {
254
254
  en?: string;
255
255
  fr?: string;
256
256
  };
257
- hours?: Record<string, any>;
258
- deliveryHours?: Record<string, any>;
257
+ hours?: any;
258
+ deliveryHours?: any;
259
259
  service_fee?: {
260
260
  type?: string;
261
261
  value?: number;
@@ -280,7 +280,7 @@ export interface Group {
280
280
  meta?: {
281
281
  [index: string]: any;
282
282
  };
283
- style?: Record<string, any>;
283
+ style?: any;
284
284
  [index: string]: any;
285
285
  }
286
286
 
@@ -299,7 +299,7 @@ export interface success {
299
299
  export interface Error {
300
300
  error?: string;
301
301
  code?: number;
302
- data?: Record<string, any>;
302
+ data?: any;
303
303
  }
304
304
 
305
305
  export interface Sector {
@@ -418,7 +418,11 @@ export interface BadRequest {
418
418
  error?: string;
419
419
  }
420
420
 
421
- export type PartnerStatus = "await_partner" | "await_scout" | "completed";
421
+ enum PartnerStatus {
422
+ AWAIT_PARTNER = "await_partner",
423
+ AWAIT_SCOUT = "await_scout",
424
+ COMPLETED = "completed",
425
+ }
422
426
 
423
427
  export interface WaitTime {
424
428
  // maxium wait time to the next time slot in minutes
@@ -429,7 +433,11 @@ export interface WaitTime {
429
433
  ready_time: number;
430
434
  }
431
435
 
432
- export type BrandOrMenuState = "open" | "closed" | "preorder";
436
+ enum BrandOrMenuState {
437
+ OPEN = "open",
438
+ CLOSED = "closed",
439
+ PREORDER = "preorder",
440
+ }
433
441
 
434
442
  export interface MenuAssociations {
435
443
  menu_associations?: MenuAssociation[];
@@ -499,7 +507,7 @@ export interface GetLocationQuery {
499
507
  // When fetching location, brands will come with private and public configs
500
508
  include_brands_config?: boolean;
501
509
  // active cafes
502
- active_cafes?: Record<string, any>[];
510
+ active_cafes?: any[];
503
511
  // show additional hidden properties/entities
504
512
  extended?: boolean;
505
513
  // Graphql query string
@@ -1215,7 +1223,7 @@ export interface PostLocationCompanyBody {
1215
1223
  name: string;
1216
1224
  // sector
1217
1225
  sector: string;
1218
- label?: Record<string, any>;
1226
+ label?: any;
1219
1227
  is?: {
1220
1228
  global_images_enabled?: boolean;
1221
1229
  };
@@ -6,7 +6,7 @@ import { RequestQuery, BaseRequest } from "./util";
6
6
  export interface Error {
7
7
  code?: number;
8
8
  message?: string;
9
- data?: Record<string, any>;
9
+ data?: any;
10
10
  headers?: {
11
11
  Location?: string;
12
12
  };