@compassdigital/sdk.typescript 4.102.0 → 4.104.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.
@@ -0,0 +1,248 @@
1
+ /* eslint-disable */
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+
4
+ import { RequestQuery, BaseRequest } from './util';
5
+
6
+ export interface DiscountStatus {
7
+ live?: boolean;
8
+ publishedTo3rdParty?: boolean;
9
+ readyToPublish?: boolean;
10
+ }
11
+
12
+ export interface DiscountIs {
13
+ badgepayPromo?: boolean;
14
+ mealplanPromo?: boolean;
15
+ decliningBalancePromo?: boolean;
16
+ voucherPromo?: boolean;
17
+ }
18
+
19
+ export interface VoucherifyMetaDataDiscount {
20
+ type: string;
21
+ amountOff?: number;
22
+ percentOff?: number;
23
+ }
24
+
25
+ export interface VoucherifyMetaData {
26
+ id?: string;
27
+ code?: string;
28
+ discount?: VoucherifyMetaDataDiscount;
29
+ }
30
+
31
+ export interface MetaProvider {
32
+ voucherify?: VoucherifyMetaData;
33
+ }
34
+
35
+ export interface DiscountMeta {
36
+ provider: MetaProvider;
37
+ }
38
+
39
+ export interface GetDiscountResponseDTO {
40
+ // user is of discount creator
41
+ createdBy?: string;
42
+ id: string;
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ updatedBy?: string;
46
+ name?: string;
47
+ status?: DiscountStatus;
48
+ is?: DiscountIs;
49
+ app?: string;
50
+ meta?: DiscountMeta;
51
+ }
52
+
53
+ export interface UnauthorizedErrorDTO {
54
+ message: string;
55
+ code: number;
56
+ data: Record<string, any>;
57
+ }
58
+
59
+ export interface NotFoundErrorDTO {
60
+ message: string;
61
+ code: number;
62
+ data: Record<string, any>;
63
+ }
64
+
65
+ export interface DiscountDTO {
66
+ // user is of discount creator
67
+ createdBy?: string;
68
+ id: string;
69
+ createdAt: string;
70
+ updatedAt: string;
71
+ updatedBy?: string;
72
+ name?: string;
73
+ status?: DiscountStatus;
74
+ is?: DiscountIs;
75
+ app?: string;
76
+ meta?: DiscountMeta;
77
+ }
78
+
79
+ export interface GetDiscountsResponseDTO {
80
+ discounts: DiscountDTO[];
81
+ }
82
+
83
+ export interface BadRequestErrorDTO {
84
+ message: string;
85
+ code: number;
86
+ data: Record<string, any>;
87
+ }
88
+
89
+ export interface PostDiscountRequestDTO {
90
+ createdBy: string;
91
+ name: string;
92
+ app: string;
93
+ }
94
+
95
+ export interface PostDiscountResponseDTO {
96
+ createdBy: string;
97
+ name: string;
98
+ app: string;
99
+ id: string;
100
+ createdAt: string;
101
+ updatedAt: string;
102
+ }
103
+
104
+ export interface PutDiscountRequestDTO {
105
+ taxonomy?: Record<string, any>;
106
+ updatedBy?: string;
107
+ name?: string;
108
+ status?: DiscountStatus;
109
+ is?: DiscountIs;
110
+ app?: string;
111
+ meta?: DiscountMeta;
112
+ }
113
+
114
+ export interface PutDiscountResponseDTO {
115
+ // user is of discount creator
116
+ createdBy?: string;
117
+ id: string;
118
+ createdAt: string;
119
+ updatedAt: string;
120
+ updatedBy?: string;
121
+ name?: string;
122
+ status?: DiscountStatus;
123
+ is?: DiscountIs;
124
+ app?: string;
125
+ meta?: DiscountMeta;
126
+ }
127
+
128
+ export type InternalServerErrorException = Record<string, any>;
129
+
130
+ export interface PutDiscountPublishRequestDTO {
131
+ taxonomy?: Record<string, any>;
132
+ updatedBy?: string;
133
+ name?: string;
134
+ status?: DiscountStatus;
135
+ is?: DiscountIs;
136
+ app?: string;
137
+ meta?: DiscountMeta;
138
+ }
139
+
140
+ export interface PutDiscountPublishResponseDTO {
141
+ // user is of discount creator
142
+ createdBy?: string;
143
+ id: string;
144
+ createdAt: string;
145
+ updatedAt: string;
146
+ updatedBy?: string;
147
+ name?: string;
148
+ status?: DiscountStatus;
149
+ is?: DiscountIs;
150
+ app?: string;
151
+ meta?: DiscountMeta;
152
+ }
153
+
154
+ export interface DeleteDiscountRequestDTO {
155
+ id: string;
156
+ meta?: DiscountMeta;
157
+ app?: string;
158
+ }
159
+
160
+ export interface DeleteDiscountResponseDTO {
161
+ success: boolean;
162
+ }
163
+
164
+ // GET /discount/{id} - Get a discount
165
+
166
+ export interface GetDiscountPath {
167
+ id: string;
168
+ }
169
+
170
+ export interface GetDiscountQuery {
171
+ // Graphql query string
172
+ _query?: string;
173
+ }
174
+
175
+ export type GetDiscountResponse = GetDiscountResponseDTO;
176
+
177
+ export interface GetDiscountRequest
178
+ extends BaseRequest,
179
+ RequestQuery<GetDiscountQuery>,
180
+ GetDiscountPath {}
181
+
182
+ // PUT /discount/{id} - update a discount
183
+
184
+ export interface PutDiscountPath {
185
+ // Discount id
186
+ id: string;
187
+ }
188
+
189
+ export type PutDiscountBody = PutDiscountRequestDTO;
190
+
191
+ export type PutDiscountResponse = PutDiscountResponseDTO;
192
+
193
+ export interface PutDiscountRequest extends BaseRequest, PutDiscountPath {
194
+ body: PutDiscountBody;
195
+ }
196
+
197
+ // DELETE /discount/{id} - delete a discount
198
+
199
+ export interface DeleteDiscountPath {
200
+ // Discount id
201
+ id: string;
202
+ }
203
+
204
+ export type DeleteDiscountBody = DeleteDiscountRequestDTO;
205
+
206
+ export type DeleteDiscountResponse = DeleteDiscountResponseDTO;
207
+
208
+ export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {
209
+ body: DeleteDiscountBody;
210
+ }
211
+
212
+ // GET /discount - Get discounts by taxonomy
213
+
214
+ export interface GetDiscountsQuery {
215
+ taxonomyFilter: string;
216
+ active: boolean;
217
+ // Graphql query string
218
+ _query?: string;
219
+ }
220
+
221
+ export type GetDiscountsResponse = GetDiscountsResponseDTO;
222
+
223
+ export interface GetDiscountsRequest extends BaseRequest, RequestQuery<GetDiscountsQuery> {}
224
+
225
+ // POST /discount - Post a discount
226
+
227
+ export type PostDiscountBody = PostDiscountRequestDTO;
228
+
229
+ export type PostDiscountResponse = PostDiscountResponseDTO;
230
+
231
+ export interface PostDiscountRequest extends BaseRequest {
232
+ body: PostDiscountBody;
233
+ }
234
+
235
+ // PUT /discount/{id}/publish - update and publish a discount
236
+
237
+ export interface PutDiscountPublishPath {
238
+ // Discount id
239
+ id: string;
240
+ }
241
+
242
+ export type PutDiscountPublishBody = PutDiscountPublishRequestDTO;
243
+
244
+ export type PutDiscountPublishResponse = PutDiscountPublishResponseDTO;
245
+
246
+ export interface PutDiscountPublishRequest extends BaseRequest, PutDiscountPublishPath {
247
+ body: PutDiscountPublishBody;
248
+ }
@@ -157,15 +157,7 @@ export interface AmazonJWOIdentityKeysRequestDTO {
157
157
  storeId: string;
158
158
  }
159
159
 
160
- export interface VisitorDetailsDTO {
161
- // The unique identifier for this visitor on AWS System. Coincides with our Checkin ID
162
- id: string;
163
- type: 'SHOPPER' | 'ASSOCIATE' | 'CASH_SHOPPER';
164
- }
165
-
166
- export interface AmazonJWOIdentityKeysResponseDTO {
167
- visitorDetails: VisitorDetailsDTO;
168
- }
160
+ export type AmazonJWOIdentityKeysResponseDTO = Record<string, any>;
169
161
 
170
162
  export interface BadRequestErrorDTO {
171
163
  message: string;
@@ -192,7 +184,7 @@ export interface CartItemDTO {
192
184
  // Contain a unique identifier for the item in the cart. This identifier will be an SKU for Compass
193
185
  id: string;
194
186
  // Contains the type of unique identifier the store uses to identify each item in the cart. This field will be always SKU for Compass
195
- type: 'SKU';
187
+ type: string;
196
188
  quantity: QuantityDTO;
197
189
  }
198
190
 
@@ -213,9 +205,7 @@ export interface AmazonJWOOrderingRequestDTO {
213
205
  shopperIdentity: ShopperIdentity;
214
206
  }
215
207
 
216
- export interface AmazonJWOOrderingResponseDTO {
217
- purchaseId: string;
218
- }
208
+ export type AmazonJWOOrderingResponseDTO = Record<string, any>;
219
209
 
220
210
  // GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
221
211
 
@@ -198,6 +198,7 @@ export interface Brand {
198
198
  jwo?: string;
199
199
  time2eat?: {
200
200
  enabled?: boolean;
201
+ use_timeslots?: boolean;
201
202
  };
202
203
  nextep?: {
203
204
  mobile_app?: boolean;