@compassdigital/sdk.typescript 3.14.0 → 3.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.
- package/README.md +0 -9
- package/lib/index.d.ts +19 -74
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +16 -75
- package/lib/index.js.map +1 -1
- package/lib/interface/location.d.ts +3 -10
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/order.d.ts +13 -0
- package/lib/interface/order.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +6 -13
- package/lib/interface/partner.d.ts.map +1 -1
- package/lib/interface/report.d.ts +0 -102
- package/lib/interface/report.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +3 -0
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/user.d.ts +0 -2
- package/lib/interface/user.d.ts.map +1 -1
- package/manifest.json +11 -11
- package/package.json +5 -12
- package/src/index.ts +30 -186
- package/src/interface/location.ts +3 -18
- package/src/interface/order.ts +24 -0
- package/src/interface/partner.ts +8 -19
- package/src/interface/report.ts +0 -145
- package/src/interface/shoppingcart.ts +7 -1
- package/src/interface/user.ts +1 -5
- package/bin/gen.js +0 -497
- package/bin/index.js +0 -3
- package/gen.ts +0 -442
- package/template.ejs +0 -21
- package/test/gen.test.ts +0 -22
package/src/index.ts
CHANGED
|
@@ -51,6 +51,8 @@ import {
|
|
|
51
51
|
GetOrderLocationOrdersResponse,
|
|
52
52
|
GetOrderGroupOrdersQuery,
|
|
53
53
|
GetOrderGroupOrdersResponse,
|
|
54
|
+
GetOrderUserOrdersQuery,
|
|
55
|
+
GetOrderUserOrdersResponse,
|
|
54
56
|
PatchOrderCheckinResponse,
|
|
55
57
|
PostOrderApexSnsBody,
|
|
56
58
|
PostOrderApexSnsResponse,
|
|
@@ -154,8 +156,6 @@ import {
|
|
|
154
156
|
GetLocationCompanyResponse,
|
|
155
157
|
PatchLocationCompanyBody,
|
|
156
158
|
PatchLocationCompanyResponse,
|
|
157
|
-
GetLocationBrandExternalQuery,
|
|
158
|
-
GetLocationBrandExternalResponse,
|
|
159
159
|
DeleteLocationRecordQuery,
|
|
160
160
|
DeleteLocationRecordResponse,
|
|
161
161
|
} from "./interface/location";
|
|
@@ -168,6 +168,7 @@ import {
|
|
|
168
168
|
DeleteShoppingcartCartItemsBody,
|
|
169
169
|
DeleteShoppingcartCartItemsResponse,
|
|
170
170
|
GetShoppingcartCartResponse,
|
|
171
|
+
PatchShoppingcartCartBody,
|
|
171
172
|
PatchShoppingcartCartResponse,
|
|
172
173
|
PutShoppingcartCartPromoBody,
|
|
173
174
|
PutShoppingcartCartPromoResponse,
|
|
@@ -190,7 +191,6 @@ import {
|
|
|
190
191
|
PostPartnerStandardcognitionShoppingcartResponse,
|
|
191
192
|
GetPartnerStandardcognitionLocationsResponse,
|
|
192
193
|
GetPartnerStandardcognitionStoresResponse,
|
|
193
|
-
PostPartnerStandardcognitionMenuBody,
|
|
194
194
|
PostPartnerStandardcognitionMenuResponse,
|
|
195
195
|
GetPartnerCoolrLocationsResponse,
|
|
196
196
|
GetPartnerCoolrImagesResponse,
|
|
@@ -327,13 +327,6 @@ import {
|
|
|
327
327
|
GetReportAnalyticsGroupResponse,
|
|
328
328
|
GetReportAnalyticsCombinedGroupQuery,
|
|
329
329
|
GetReportAnalyticsCombinedGroupResponse,
|
|
330
|
-
GetReportAnalyticsExactmobileTotalsQuery,
|
|
331
|
-
GetReportAnalyticsExactmobileTotalsResponse,
|
|
332
|
-
GetReportAnalyticsExactmobileTransactionsQuery,
|
|
333
|
-
GetReportAnalyticsExactmobileTransactionsResponse,
|
|
334
|
-
GetReportAnalyticsExactmobileDiscrepanciesQuery,
|
|
335
|
-
GetReportAnalyticsExactmobileDiscrepanciesResponse,
|
|
336
|
-
GetReportAnalyticsTrackerReportResponse,
|
|
337
330
|
GetReportEodGroupQuery,
|
|
338
331
|
GetReportEodGroupResponse,
|
|
339
332
|
GetReportEodGroupSubscribersResponse,
|
|
@@ -342,12 +335,6 @@ import {
|
|
|
342
335
|
DeleteReportEodGroupSubscribersResponse,
|
|
343
336
|
PutReportEodGroupSubscribersBody,
|
|
344
337
|
PutReportEodGroupSubscribersResponse,
|
|
345
|
-
GetReportDiscrepancySubscribersQuery,
|
|
346
|
-
GetReportDiscrepancySubscribersResponse,
|
|
347
|
-
DeleteReportDiscrepancySubscribersQuery,
|
|
348
|
-
DeleteReportDiscrepancySubscribersResponse,
|
|
349
|
-
PostReportDiscrepancySubscribersBody,
|
|
350
|
-
PostReportDiscrepancySubscribersResponse,
|
|
351
338
|
} from "./interface/report";
|
|
352
339
|
|
|
353
340
|
import {
|
|
@@ -374,7 +361,6 @@ import {
|
|
|
374
361
|
GetUserKdsTokenQuery,
|
|
375
362
|
GetUserKdsTokenResponse,
|
|
376
363
|
DeleteUserDeviceAuthResponse,
|
|
377
|
-
PatchUserAuthKdsBody,
|
|
378
364
|
PatchUserAuthKdsResponse,
|
|
379
365
|
PostUserChangePasswordBody,
|
|
380
366
|
PostUserChangePasswordResponse,
|
|
@@ -1064,6 +1050,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
1064
1050
|
);
|
|
1065
1051
|
}
|
|
1066
1052
|
|
|
1053
|
+
/**
|
|
1054
|
+
* GET /order/user/{id} - Get all delivery orders for a User related to the order in the details (Runner)
|
|
1055
|
+
*
|
|
1056
|
+
* @param id - Get orders by their associated group
|
|
1057
|
+
* @param options - additional request options
|
|
1058
|
+
*/
|
|
1059
|
+
get_order_user_orders(
|
|
1060
|
+
id: string,
|
|
1061
|
+
options?: {
|
|
1062
|
+
query?: GetOrderUserOrdersQuery;
|
|
1063
|
+
} & RequestOptions
|
|
1064
|
+
): ResponsePromise<GetOrderUserOrdersResponse> {
|
|
1065
|
+
return this.request(
|
|
1066
|
+
"order",
|
|
1067
|
+
"get_order_user_orders",
|
|
1068
|
+
"get",
|
|
1069
|
+
`/order/user/${id}`,
|
|
1070
|
+
null,
|
|
1071
|
+
options
|
|
1072
|
+
);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1067
1075
|
/**
|
|
1068
1076
|
* PATCH /order/{id}/checkin - Accept an order by checking in
|
|
1069
1077
|
*
|
|
@@ -2144,28 +2152,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2144
2152
|
);
|
|
2145
2153
|
}
|
|
2146
2154
|
|
|
2147
|
-
/**
|
|
2148
|
-
* GET /location/brand/external/{external_id} - Get an individual Location filtered by external_id
|
|
2149
|
-
*
|
|
2150
|
-
* @param external_id - external location id
|
|
2151
|
-
* @param options - additional request options
|
|
2152
|
-
*/
|
|
2153
|
-
get_location_brand_external(
|
|
2154
|
-
external_id: string,
|
|
2155
|
-
options?: {
|
|
2156
|
-
query?: GetLocationBrandExternalQuery;
|
|
2157
|
-
} & RequestOptions
|
|
2158
|
-
): ResponsePromise<GetLocationBrandExternalResponse> {
|
|
2159
|
-
return this.request(
|
|
2160
|
-
"location",
|
|
2161
|
-
"get_location_brand_external",
|
|
2162
|
-
"get",
|
|
2163
|
-
`/location/brand/external/${external_id}`,
|
|
2164
|
-
null,
|
|
2165
|
-
options
|
|
2166
|
-
);
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
2155
|
/**
|
|
2170
2156
|
* DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
|
|
2171
2157
|
*
|
|
@@ -2276,10 +2262,12 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2276
2262
|
* PATCH /shoppingcart/{id} - Update a ShoppingCart
|
|
2277
2263
|
*
|
|
2278
2264
|
* @param id - Shopping cart ID
|
|
2265
|
+
* @param body - body accepting properties to patch
|
|
2279
2266
|
* @param options - additional request options
|
|
2280
2267
|
*/
|
|
2281
2268
|
patch_shoppingcart_cart(
|
|
2282
2269
|
id: string,
|
|
2270
|
+
body: PatchShoppingcartCartBody,
|
|
2283
2271
|
options?: RequestOptions
|
|
2284
2272
|
): ResponsePromise<PatchShoppingcartCartResponse> {
|
|
2285
2273
|
return this.request(
|
|
@@ -2287,7 +2275,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2287
2275
|
"patch_shoppingcart_cart",
|
|
2288
2276
|
"patch",
|
|
2289
2277
|
`/shoppingcart/${id}`,
|
|
2290
|
-
|
|
2278
|
+
body,
|
|
2291
2279
|
options
|
|
2292
2280
|
);
|
|
2293
2281
|
}
|
|
@@ -2525,11 +2513,9 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2525
2513
|
/**
|
|
2526
2514
|
* POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
|
|
2527
2515
|
*
|
|
2528
|
-
* @param body
|
|
2529
2516
|
* @param options - additional request options
|
|
2530
2517
|
*/
|
|
2531
2518
|
post_partner_standardcognition_menu(
|
|
2532
|
-
body: PostPartnerStandardcognitionMenuBody,
|
|
2533
2519
|
options?: RequestOptions
|
|
2534
2520
|
): ResponsePromise<PostPartnerStandardcognitionMenuResponse> {
|
|
2535
2521
|
return this.request(
|
|
@@ -2537,7 +2523,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
2537
2523
|
"post_partner_standardcognition_menu",
|
|
2538
2524
|
"post",
|
|
2539
2525
|
`/partner/standardcognition/menu`,
|
|
2540
|
-
|
|
2526
|
+
null,
|
|
2541
2527
|
options
|
|
2542
2528
|
);
|
|
2543
2529
|
}
|
|
@@ -3688,86 +3674,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3688
3674
|
);
|
|
3689
3675
|
}
|
|
3690
3676
|
|
|
3691
|
-
/**
|
|
3692
|
-
* GET /report/analytics/exactmobile/totals
|
|
3693
|
-
*
|
|
3694
|
-
* @param options - additional request options
|
|
3695
|
-
*/
|
|
3696
|
-
get_report_analytics_exactmobile_totals(
|
|
3697
|
-
options: {
|
|
3698
|
-
query: GetReportAnalyticsExactmobileTotalsQuery;
|
|
3699
|
-
} & RequestOptions
|
|
3700
|
-
): ResponsePromise<GetReportAnalyticsExactmobileTotalsResponse> {
|
|
3701
|
-
return this.request(
|
|
3702
|
-
"report",
|
|
3703
|
-
"get_report_analytics_exactmobile_totals",
|
|
3704
|
-
"get",
|
|
3705
|
-
`/report/analytics/exactmobile/totals`,
|
|
3706
|
-
null,
|
|
3707
|
-
options
|
|
3708
|
-
);
|
|
3709
|
-
}
|
|
3710
|
-
|
|
3711
|
-
/**
|
|
3712
|
-
* GET /report/analytics/exactmobile/transactions
|
|
3713
|
-
*
|
|
3714
|
-
* @param options - additional request options
|
|
3715
|
-
*/
|
|
3716
|
-
get_report_analytics_exactmobile_transactions(
|
|
3717
|
-
options: {
|
|
3718
|
-
query: GetReportAnalyticsExactmobileTransactionsQuery;
|
|
3719
|
-
} & RequestOptions
|
|
3720
|
-
): ResponsePromise<GetReportAnalyticsExactmobileTransactionsResponse> {
|
|
3721
|
-
return this.request(
|
|
3722
|
-
"report",
|
|
3723
|
-
"get_report_analytics_exactmobile_transactions",
|
|
3724
|
-
"get",
|
|
3725
|
-
`/report/analytics/exactmobile/transactions`,
|
|
3726
|
-
null,
|
|
3727
|
-
options
|
|
3728
|
-
);
|
|
3729
|
-
}
|
|
3730
|
-
|
|
3731
|
-
/**
|
|
3732
|
-
* GET /report/analytics/exactmobile/discrepancies
|
|
3733
|
-
*
|
|
3734
|
-
* @param options - additional request options
|
|
3735
|
-
*/
|
|
3736
|
-
get_report_analytics_exactmobile_discrepancies(
|
|
3737
|
-
options: {
|
|
3738
|
-
query: GetReportAnalyticsExactmobileDiscrepanciesQuery;
|
|
3739
|
-
} & RequestOptions
|
|
3740
|
-
): ResponsePromise<GetReportAnalyticsExactmobileDiscrepanciesResponse> {
|
|
3741
|
-
return this.request(
|
|
3742
|
-
"report",
|
|
3743
|
-
"get_report_analytics_exactmobile_discrepancies",
|
|
3744
|
-
"get",
|
|
3745
|
-
`/report/analytics/exactmobile/discrepancies`,
|
|
3746
|
-
null,
|
|
3747
|
-
options
|
|
3748
|
-
);
|
|
3749
|
-
}
|
|
3750
|
-
|
|
3751
|
-
/**
|
|
3752
|
-
* GET /report/analytics/tracker/report/{id}
|
|
3753
|
-
*
|
|
3754
|
-
* @param id
|
|
3755
|
-
* @param options - additional request options
|
|
3756
|
-
*/
|
|
3757
|
-
get_report_analytics_tracker_report(
|
|
3758
|
-
id: string,
|
|
3759
|
-
options?: RequestOptions
|
|
3760
|
-
): ResponsePromise<GetReportAnalyticsTrackerReportResponse> {
|
|
3761
|
-
return this.request(
|
|
3762
|
-
"report",
|
|
3763
|
-
"get_report_analytics_tracker_report",
|
|
3764
|
-
"get",
|
|
3765
|
-
`/report/analytics/tracker/report/${id}`,
|
|
3766
|
-
null,
|
|
3767
|
-
options
|
|
3768
|
-
);
|
|
3769
|
-
}
|
|
3770
|
-
|
|
3771
3677
|
/**
|
|
3772
3678
|
* GET /report/eod/group/{id} - Get reports for selected location group
|
|
3773
3679
|
*
|
|
@@ -3874,66 +3780,6 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3874
3780
|
);
|
|
3875
3781
|
}
|
|
3876
3782
|
|
|
3877
|
-
/**
|
|
3878
|
-
* GET /report/discrepancy/subscribers - Get subscribers for discrepency widget
|
|
3879
|
-
*
|
|
3880
|
-
* @param options - additional request options
|
|
3881
|
-
*/
|
|
3882
|
-
get_report_discrepancy_subscribers(
|
|
3883
|
-
options?: {
|
|
3884
|
-
query?: GetReportDiscrepancySubscribersQuery;
|
|
3885
|
-
} & RequestOptions
|
|
3886
|
-
): ResponsePromise<GetReportDiscrepancySubscribersResponse> {
|
|
3887
|
-
return this.request(
|
|
3888
|
-
"report",
|
|
3889
|
-
"get_report_discrepancy_subscribers",
|
|
3890
|
-
"get",
|
|
3891
|
-
`/report/discrepancy/subscribers`,
|
|
3892
|
-
null,
|
|
3893
|
-
options
|
|
3894
|
-
);
|
|
3895
|
-
}
|
|
3896
|
-
|
|
3897
|
-
/**
|
|
3898
|
-
* DELETE /report/discrepancy/subscribers - deletes subscriber from discrepency
|
|
3899
|
-
*
|
|
3900
|
-
* @param options - additional request options
|
|
3901
|
-
*/
|
|
3902
|
-
delete_report_discrepancy_subscribers(
|
|
3903
|
-
options: {
|
|
3904
|
-
query: DeleteReportDiscrepancySubscribersQuery;
|
|
3905
|
-
} & RequestOptions
|
|
3906
|
-
): ResponsePromise<DeleteReportDiscrepancySubscribersResponse> {
|
|
3907
|
-
return this.request(
|
|
3908
|
-
"report",
|
|
3909
|
-
"delete_report_discrepancy_subscribers",
|
|
3910
|
-
"delete",
|
|
3911
|
-
`/report/discrepancy/subscribers`,
|
|
3912
|
-
null,
|
|
3913
|
-
options
|
|
3914
|
-
);
|
|
3915
|
-
}
|
|
3916
|
-
|
|
3917
|
-
/**
|
|
3918
|
-
* POST /report/discrepancy/subscribers - Create new discrepancy subscriber
|
|
3919
|
-
*
|
|
3920
|
-
* @param body
|
|
3921
|
-
* @param options - additional request options
|
|
3922
|
-
*/
|
|
3923
|
-
post_report_discrepancy_subscribers(
|
|
3924
|
-
body: PostReportDiscrepancySubscribersBody,
|
|
3925
|
-
options?: RequestOptions
|
|
3926
|
-
): ResponsePromise<PostReportDiscrepancySubscribersResponse> {
|
|
3927
|
-
return this.request(
|
|
3928
|
-
"report",
|
|
3929
|
-
"post_report_discrepancy_subscribers",
|
|
3930
|
-
"post",
|
|
3931
|
-
`/report/discrepancy/subscribers`,
|
|
3932
|
-
body,
|
|
3933
|
-
options
|
|
3934
|
-
);
|
|
3935
|
-
}
|
|
3936
|
-
|
|
3937
3783
|
/**
|
|
3938
3784
|
* GET /user/auth - Gets the JWT token for a user
|
|
3939
3785
|
*
|
|
@@ -4098,12 +3944,10 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4098
3944
|
* PATCH /user/device/auth/{device_id} - Endpoint for authorizing device to retrieve valid kds token
|
|
4099
3945
|
*
|
|
4100
3946
|
* @param device_id - KDS device ID
|
|
4101
|
-
* @param body
|
|
4102
3947
|
* @param options - additional request options
|
|
4103
3948
|
*/
|
|
4104
3949
|
patch_user_auth_kds(
|
|
4105
3950
|
device_id: string,
|
|
4106
|
-
body: PatchUserAuthKdsBody,
|
|
4107
3951
|
options?: RequestOptions
|
|
4108
3952
|
): ResponsePromise<PatchUserAuthKdsResponse> {
|
|
4109
3953
|
return this.request(
|
|
@@ -4111,7 +3955,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
4111
3955
|
"patch_user_auth_kds",
|
|
4112
3956
|
"patch",
|
|
4113
3957
|
`/user/device/auth/${device_id}`,
|
|
4114
|
-
|
|
3958
|
+
null,
|
|
4115
3959
|
options
|
|
4116
3960
|
);
|
|
4117
3961
|
}
|
|
@@ -189,7 +189,6 @@ export interface Brand {
|
|
|
189
189
|
fr?: string;
|
|
190
190
|
};
|
|
191
191
|
};
|
|
192
|
-
external_id?: string;
|
|
193
192
|
[index: string]: any;
|
|
194
193
|
}
|
|
195
194
|
|
|
@@ -317,6 +316,9 @@ export interface Sector {
|
|
|
317
316
|
fr?: string;
|
|
318
317
|
};
|
|
319
318
|
companies?: Company[];
|
|
319
|
+
meta?: {
|
|
320
|
+
[index: string]: any;
|
|
321
|
+
};
|
|
320
322
|
}
|
|
321
323
|
|
|
322
324
|
export interface Company {
|
|
@@ -1255,23 +1257,6 @@ export interface PatchLocationCompanyRequest extends PatchLocationCompanyPath {
|
|
|
1255
1257
|
body: PatchLocationCompanyBody;
|
|
1256
1258
|
}
|
|
1257
1259
|
|
|
1258
|
-
// GET /location/brand/external/{external_id} - Get an individual Location filtered by external_id
|
|
1259
|
-
|
|
1260
|
-
export interface GetLocationBrandExternalPath {
|
|
1261
|
-
// external location id
|
|
1262
|
-
external_id: string;
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
export interface GetLocationBrandExternalQuery {
|
|
1266
|
-
nocache?: boolean;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
export type GetLocationBrandExternalResponse = Location;
|
|
1270
|
-
|
|
1271
|
-
export interface GetLocationBrandExternalRequest
|
|
1272
|
-
extends RequestQuery<GetLocationBrandExternalQuery>,
|
|
1273
|
-
GetLocationBrandExternalPath {}
|
|
1274
|
-
|
|
1275
1260
|
// DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
|
|
1276
1261
|
|
|
1277
1262
|
export interface DeleteLocationRecordPath {
|
package/src/interface/order.ts
CHANGED
|
@@ -493,6 +493,30 @@ export interface GetOrderGroupOrdersRequest
|
|
|
493
493
|
extends RequestQuery<GetOrderGroupOrdersQuery>,
|
|
494
494
|
GetOrderGroupOrdersPath {}
|
|
495
495
|
|
|
496
|
+
// GET /order/user/{id} - Get all delivery orders for a User related to the order in the details (Runner)
|
|
497
|
+
|
|
498
|
+
export interface GetOrderUserOrdersPath {
|
|
499
|
+
// Get orders by their associated group
|
|
500
|
+
id: string;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export interface GetOrderUserOrdersQuery {
|
|
504
|
+
// Filter orders by their status.
|
|
505
|
+
status?: string;
|
|
506
|
+
// Filter orders by their requested date. Only return orders that have a date greater than or equal to the date. Default is all orders
|
|
507
|
+
start?: number;
|
|
508
|
+
// Filter orders by their requested date. Only return orders that have a date less than or equal to the date. Default is the current time in milliseconds.
|
|
509
|
+
end?: number;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export interface GetOrderUserOrdersResponse {
|
|
513
|
+
orders?: Order[];
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export interface GetOrderUserOrdersRequest
|
|
517
|
+
extends RequestQuery<GetOrderUserOrdersQuery>,
|
|
518
|
+
GetOrderUserOrdersPath {}
|
|
519
|
+
|
|
496
520
|
// PATCH /order/{id}/checkin - Accept an order by checking in
|
|
497
521
|
|
|
498
522
|
export interface PatchOrderCheckinPath {
|
package/src/interface/partner.ts
CHANGED
|
@@ -164,6 +164,8 @@ export interface ShoppingCart {
|
|
|
164
164
|
type?: string;
|
|
165
165
|
// If an order should be paid with meal exchange. If true, this will calculate meals total.
|
|
166
166
|
mx_cart?: boolean;
|
|
167
|
+
// If a user's email domain is a match in a sites list of tax exempt domains
|
|
168
|
+
domain_tax_exempt?: boolean;
|
|
167
169
|
};
|
|
168
170
|
meta?: {
|
|
169
171
|
// Raw request from any vendor integrated with CDL
|
|
@@ -358,7 +360,6 @@ export interface LocationGroup {
|
|
|
358
360
|
fr?: string;
|
|
359
361
|
};
|
|
360
362
|
};
|
|
361
|
-
external_id?: string;
|
|
362
363
|
[index: string]: any;
|
|
363
364
|
}[];
|
|
364
365
|
meta?: any;
|
|
@@ -392,6 +393,7 @@ export interface LocationGroup {
|
|
|
392
393
|
show_instructions?: boolean;
|
|
393
394
|
runner_app_enabled?: boolean;
|
|
394
395
|
};
|
|
396
|
+
delivery_destinations?: string[];
|
|
395
397
|
pickup_instruction?: {
|
|
396
398
|
en?: string;
|
|
397
399
|
fr?: string;
|
|
@@ -691,14 +693,14 @@ export type CoolrImages = any[];
|
|
|
691
693
|
// POST /partner/standardcognition/shoppingcart - Calculates a shoppingcart
|
|
692
694
|
|
|
693
695
|
export interface PostPartnerStandardcognitionShoppingcartBody {
|
|
694
|
-
items
|
|
696
|
+
items?: {
|
|
695
697
|
sku?: string;
|
|
696
698
|
quantity?: number;
|
|
697
699
|
}[];
|
|
698
700
|
// brand
|
|
699
|
-
location_brand
|
|
700
|
-
//
|
|
701
|
-
shoppingcart
|
|
701
|
+
location_brand?: string;
|
|
702
|
+
// shoppingcart
|
|
703
|
+
shoppingcart?: string;
|
|
702
704
|
// Meta data from Standard Cognition shoppingcart
|
|
703
705
|
meta?: any;
|
|
704
706
|
}
|
|
@@ -725,22 +727,9 @@ export type GetPartnerStandardcognitionStoresRequest = {};
|
|
|
725
727
|
|
|
726
728
|
// POST /partner/standardcognition/menu - Create new Standard Cognition menu from JSON files
|
|
727
729
|
|
|
728
|
-
export interface PostPartnerStandardcognitionMenuBody {
|
|
729
|
-
// CDL company ID
|
|
730
|
-
company: string;
|
|
731
|
-
// CDL sector ID
|
|
732
|
-
sector: string;
|
|
733
|
-
// CDL location brand ID
|
|
734
|
-
location_brand: string;
|
|
735
|
-
// Link for S3 menu file provided by Standard Cognition
|
|
736
|
-
s3_link: string;
|
|
737
|
-
}
|
|
738
|
-
|
|
739
730
|
export type PostPartnerStandardcognitionMenuResponse = Menu;
|
|
740
731
|
|
|
741
|
-
export
|
|
742
|
-
body: PostPartnerStandardcognitionMenuBody;
|
|
743
|
-
}
|
|
732
|
+
export type PostPartnerStandardcognitionMenuRequest = {};
|
|
744
733
|
|
|
745
734
|
// GET /partner/coolr/locations - Gets the locations where Coolr is available
|
|
746
735
|
|
package/src/interface/report.ts
CHANGED
|
@@ -284,17 +284,6 @@ export interface SAReport {
|
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
export interface DiscrepancySubscriber {
|
|
288
|
-
subscribers_response?: {
|
|
289
|
-
id?: string;
|
|
290
|
-
email?: string;
|
|
291
|
-
type?: string;
|
|
292
|
-
}[];
|
|
293
|
-
[index: string]: any;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export type DiscrepancySubscriberRequest = any[];
|
|
297
|
-
|
|
298
287
|
export interface P2AnalyticsReport {
|
|
299
288
|
message?: string;
|
|
300
289
|
date_resolved?: string;
|
|
@@ -316,54 +305,6 @@ export interface P2AnalyticsReport {
|
|
|
316
305
|
}[];
|
|
317
306
|
}
|
|
318
307
|
|
|
319
|
-
export interface DiscrepancyTotals {
|
|
320
|
-
message?: string;
|
|
321
|
-
date_resolved?: string;
|
|
322
|
-
payload?: {
|
|
323
|
-
unitid?: string;
|
|
324
|
-
date?: string;
|
|
325
|
-
exact_total?: number;
|
|
326
|
-
mobile_total?: number;
|
|
327
|
-
difference?: number;
|
|
328
|
-
}[];
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export interface DiscrepancyCount {
|
|
332
|
-
message?: string;
|
|
333
|
-
date_resolved?: string;
|
|
334
|
-
payload?: {
|
|
335
|
-
discrepancy_count?: number;
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
export interface DiscrepancyTranscation {
|
|
340
|
-
message?: string;
|
|
341
|
-
date_resolved?: string;
|
|
342
|
-
payload?: {
|
|
343
|
-
unitid?: string;
|
|
344
|
-
exact_tag?: string;
|
|
345
|
-
exact_order_time?: string;
|
|
346
|
-
exact_card_type?: string;
|
|
347
|
-
exact_pickup_name?: string;
|
|
348
|
-
exact_transcation_type?: string;
|
|
349
|
-
exact_total?: number;
|
|
350
|
-
exact_merchant_name?: string;
|
|
351
|
-
exact_status?: string;
|
|
352
|
-
mobile_orderid?: string;
|
|
353
|
-
mobile_order_time?: string;
|
|
354
|
-
mobile_payment_type?: string;
|
|
355
|
-
mobile_pickup_name?: string;
|
|
356
|
-
mobile_total?: number;
|
|
357
|
-
}[];
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export interface TrackerReport {
|
|
361
|
-
// Base64 encoded file
|
|
362
|
-
file?: string;
|
|
363
|
-
// Base64 encoded file format
|
|
364
|
-
format?: string;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
308
|
// GET /report/analytics/group/{location_group}/{report_type}
|
|
368
309
|
|
|
369
310
|
export interface GetReportAnalyticsGroupPath {
|
|
@@ -378,7 +319,6 @@ export interface GetReportAnalyticsGroupQuery {
|
|
|
378
319
|
end_date: string;
|
|
379
320
|
time_frame: string;
|
|
380
321
|
order_type?: string;
|
|
381
|
-
nocache?: boolean;
|
|
382
322
|
}
|
|
383
323
|
|
|
384
324
|
export type GetReportAnalyticsGroupResponse = P2AnalyticsReport;
|
|
@@ -408,59 +348,6 @@ export interface GetReportAnalyticsCombinedGroupRequest
|
|
|
408
348
|
extends RequestQuery<GetReportAnalyticsCombinedGroupQuery>,
|
|
409
349
|
GetReportAnalyticsCombinedGroupPath {}
|
|
410
350
|
|
|
411
|
-
// GET /report/analytics/exactmobile/totals
|
|
412
|
-
|
|
413
|
-
export interface GetReportAnalyticsExactmobileTotalsQuery {
|
|
414
|
-
start_date: string;
|
|
415
|
-
end_date: string;
|
|
416
|
-
unitids: number[];
|
|
417
|
-
offset: number;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
export type GetReportAnalyticsExactmobileTotalsResponse = DiscrepancyTotals;
|
|
421
|
-
|
|
422
|
-
export interface GetReportAnalyticsExactmobileTotalsRequest
|
|
423
|
-
extends RequestQuery<GetReportAnalyticsExactmobileTotalsQuery> {}
|
|
424
|
-
|
|
425
|
-
// GET /report/analytics/exactmobile/transactions
|
|
426
|
-
|
|
427
|
-
export interface GetReportAnalyticsExactmobileTransactionsQuery {
|
|
428
|
-
start_date: string;
|
|
429
|
-
end_date: string;
|
|
430
|
-
unitids: number[];
|
|
431
|
-
offset: number;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
export type GetReportAnalyticsExactmobileTransactionsResponse = DiscrepancyTranscation;
|
|
435
|
-
|
|
436
|
-
export interface GetReportAnalyticsExactmobileTransactionsRequest
|
|
437
|
-
extends RequestQuery<GetReportAnalyticsExactmobileTransactionsQuery> {}
|
|
438
|
-
|
|
439
|
-
// GET /report/analytics/exactmobile/discrepancies
|
|
440
|
-
|
|
441
|
-
export interface GetReportAnalyticsExactmobileDiscrepanciesQuery {
|
|
442
|
-
start_date: string;
|
|
443
|
-
end_date: string;
|
|
444
|
-
unitids: number[];
|
|
445
|
-
offset: number;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
export type GetReportAnalyticsExactmobileDiscrepanciesResponse = DiscrepancyCount;
|
|
449
|
-
|
|
450
|
-
export interface GetReportAnalyticsExactmobileDiscrepanciesRequest
|
|
451
|
-
extends RequestQuery<GetReportAnalyticsExactmobileDiscrepanciesQuery> {}
|
|
452
|
-
|
|
453
|
-
// GET /report/analytics/tracker/report/{id}
|
|
454
|
-
|
|
455
|
-
export interface GetReportAnalyticsTrackerReportPath {
|
|
456
|
-
id: string;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export type GetReportAnalyticsTrackerReportResponse = TrackerReport;
|
|
460
|
-
|
|
461
|
-
export interface GetReportAnalyticsTrackerReportRequest
|
|
462
|
-
extends GetReportAnalyticsTrackerReportPath {}
|
|
463
|
-
|
|
464
351
|
// GET /report/eod/group/{id} - Get reports for selected location group
|
|
465
352
|
|
|
466
353
|
export interface GetReportEodGroupPath {
|
|
@@ -533,35 +420,3 @@ export type PutReportEodGroupSubscribersResponse = EODSubscribers;
|
|
|
533
420
|
export interface PutReportEodGroupSubscribersRequest extends PutReportEodGroupSubscribersPath {
|
|
534
421
|
body: PutReportEodGroupSubscribersBody;
|
|
535
422
|
}
|
|
536
|
-
|
|
537
|
-
// GET /report/discrepancy/subscribers - Get subscribers for discrepency widget
|
|
538
|
-
|
|
539
|
-
export interface GetReportDiscrepancySubscribersQuery {
|
|
540
|
-
email?: string;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export type GetReportDiscrepancySubscribersResponse = DiscrepancySubscriber;
|
|
544
|
-
|
|
545
|
-
export interface GetReportDiscrepancySubscribersRequest
|
|
546
|
-
extends RequestQuery<GetReportDiscrepancySubscribersQuery> {}
|
|
547
|
-
|
|
548
|
-
// DELETE /report/discrepancy/subscribers - deletes subscriber from discrepency
|
|
549
|
-
|
|
550
|
-
export interface DeleteReportDiscrepancySubscribersQuery {
|
|
551
|
-
emailid: string;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
export type DeleteReportDiscrepancySubscribersResponse = Success;
|
|
555
|
-
|
|
556
|
-
export interface DeleteReportDiscrepancySubscribersRequest
|
|
557
|
-
extends RequestQuery<DeleteReportDiscrepancySubscribersQuery> {}
|
|
558
|
-
|
|
559
|
-
// POST /report/discrepancy/subscribers - Create new discrepancy subscriber
|
|
560
|
-
|
|
561
|
-
export type PostReportDiscrepancySubscribersBody = DiscrepancySubscriberRequest;
|
|
562
|
-
|
|
563
|
-
export type PostReportDiscrepancySubscribersResponse = DiscrepancySubscriber;
|
|
564
|
-
|
|
565
|
-
export interface PostReportDiscrepancySubscribersRequest {
|
|
566
|
-
body: PostReportDiscrepancySubscribersBody;
|
|
567
|
-
}
|
|
@@ -222,6 +222,8 @@ export interface ShoppingCart {
|
|
|
222
222
|
type?: string;
|
|
223
223
|
// If an order should be paid with meal exchange. If true, this will calculate meals total.
|
|
224
224
|
mx_cart?: boolean;
|
|
225
|
+
// If a user's email domain is a match in a sites list of tax exempt domains
|
|
226
|
+
domain_tax_exempt?: boolean;
|
|
225
227
|
};
|
|
226
228
|
meta?: {
|
|
227
229
|
// Raw request from any vendor integrated with CDL
|
|
@@ -288,9 +290,13 @@ export interface PatchShoppingcartCartPath {
|
|
|
288
290
|
id: string;
|
|
289
291
|
}
|
|
290
292
|
|
|
293
|
+
export type PatchShoppingcartCartBody = ShoppingCart;
|
|
294
|
+
|
|
291
295
|
export type PatchShoppingcartCartResponse = ShoppingCart;
|
|
292
296
|
|
|
293
|
-
export interface PatchShoppingcartCartRequest extends PatchShoppingcartCartPath {
|
|
297
|
+
export interface PatchShoppingcartCartRequest extends PatchShoppingcartCartPath {
|
|
298
|
+
body: PatchShoppingcartCartBody;
|
|
299
|
+
}
|
|
294
300
|
|
|
295
301
|
// PUT /shoppingcart/{id}/promo - Put a promo in a ShoppingCart
|
|
296
302
|
|
package/src/interface/user.ts
CHANGED
|
@@ -372,13 +372,9 @@ export interface PatchUserAuthKdsPath {
|
|
|
372
372
|
device_id: string;
|
|
373
373
|
}
|
|
374
374
|
|
|
375
|
-
export type PatchUserAuthKdsBody = KDSDevice["device"];
|
|
376
|
-
|
|
377
375
|
export type PatchUserAuthKdsResponse = KDSDevice;
|
|
378
376
|
|
|
379
|
-
export interface PatchUserAuthKdsRequest extends PatchUserAuthKdsPath {
|
|
380
|
-
body: PatchUserAuthKdsBody;
|
|
381
|
-
}
|
|
377
|
+
export interface PatchUserAuthKdsRequest extends PatchUserAuthKdsPath {}
|
|
382
378
|
|
|
383
379
|
// POST /user/{id}/changepassword - Change the users password
|
|
384
380
|
|