@compassdigital/sdk.typescript 4.751.0 → 4.753.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/lib/index.d.ts +11 -3
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +12 -2
- package/lib/index.js.map +1 -1
- package/lib/interface/centricos.d.ts +41 -0
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +8 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +25 -1
- package/src/interface/centricos.ts +76 -0
- package/src/interface/menu.ts +14 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -961,6 +961,7 @@ import {
|
|
|
961
961
|
DeleteMenuV4BrandMenuResponse,
|
|
962
962
|
PatchMenuV4BrandMenusReorderBody,
|
|
963
963
|
PatchMenuV4BrandMenusReorderResponse,
|
|
964
|
+
GetMenuV4BrandGenerateBarcodeResponse,
|
|
964
965
|
GetMenuV4BrandItemsQuery,
|
|
965
966
|
GetMenuV4BrandItemsResponse,
|
|
966
967
|
GetMenuV4BrandModifierGroupsQuery,
|
|
@@ -1389,6 +1390,7 @@ import {
|
|
|
1389
1390
|
GetYesterdaysSnapshotResponse,
|
|
1390
1391
|
GetCentricosStationResponse,
|
|
1391
1392
|
DeleteCentricosStationResponse,
|
|
1393
|
+
PutCentricosStationIntegrationBody,
|
|
1392
1394
|
PutCentricosStationIntegrationResponse,
|
|
1393
1395
|
DeleteCentricosStationIntegrationResponse,
|
|
1394
1396
|
PutCentricosDiscountVoucherifyBody,
|
|
@@ -11366,6 +11368,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11366
11368
|
);
|
|
11367
11369
|
}
|
|
11368
11370
|
|
|
11371
|
+
/**
|
|
11372
|
+
* GET /menu/v4/brand/{id}/generate-barcode
|
|
11373
|
+
*
|
|
11374
|
+
* @param id
|
|
11375
|
+
* @param options - additional request options
|
|
11376
|
+
*/
|
|
11377
|
+
get_menu_v4_brand_generate_barcode(
|
|
11378
|
+
id: string,
|
|
11379
|
+
options?: RequestOptions,
|
|
11380
|
+
): ResponsePromise<GetMenuV4BrandGenerateBarcodeResponse> {
|
|
11381
|
+
return this.request(
|
|
11382
|
+
'menu',
|
|
11383
|
+
'/menu/v4/brand/{id}/generate-barcode',
|
|
11384
|
+
'GET',
|
|
11385
|
+
`/menu/v4/brand/${id}/generate-barcode`,
|
|
11386
|
+
null,
|
|
11387
|
+
options,
|
|
11388
|
+
);
|
|
11389
|
+
}
|
|
11390
|
+
|
|
11369
11391
|
/**
|
|
11370
11392
|
* GET /menu/v4/brand/{id}/items
|
|
11371
11393
|
*
|
|
@@ -16152,11 +16174,13 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
16152
16174
|
*
|
|
16153
16175
|
* @param station_id - TODO: cannot use CompassLongID as path parameter
|
|
16154
16176
|
* @param integration_type
|
|
16177
|
+
* @param body
|
|
16155
16178
|
* @param options - additional request options
|
|
16156
16179
|
*/
|
|
16157
16180
|
put_centricos_station_integration(
|
|
16158
16181
|
station_id: string,
|
|
16159
16182
|
integration_type: string,
|
|
16183
|
+
body: PutCentricosStationIntegrationBody,
|
|
16160
16184
|
options?: RequestOptions,
|
|
16161
16185
|
): ResponsePromise<PutCentricosStationIntegrationResponse> {
|
|
16162
16186
|
return this.request(
|
|
@@ -16164,7 +16188,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
16164
16188
|
'/centricos/station/{station_id}/integration/{integration_type}',
|
|
16165
16189
|
'PUT',
|
|
16166
16190
|
`/centricos/station/${station_id}/integration/${integration_type}`,
|
|
16167
|
-
|
|
16191
|
+
body,
|
|
16168
16192
|
options,
|
|
16169
16193
|
);
|
|
16170
16194
|
}
|
|
@@ -430,6 +430,80 @@ export interface GetStationResponse {
|
|
|
430
430
|
closure_schedules: ClosureSchedule[];
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
+
export interface PickupSectionDto {
|
|
434
|
+
// Whether the station accepts pickup orders
|
|
435
|
+
enabled: boolean;
|
|
436
|
+
// Length of a pickup timeslot, in minutes. Required when enabled.
|
|
437
|
+
timeslot_length_minutes?: number;
|
|
438
|
+
// Average order prep time, in minutes. Required when enabled.
|
|
439
|
+
average_prep_time_minutes?: number;
|
|
440
|
+
// Orders accepted per pickup timeslot. Required when enabled.
|
|
441
|
+
customers_per_slot?: number;
|
|
442
|
+
// Whether guests must check in on arrival
|
|
443
|
+
guest_checkin?: boolean;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export interface CustomDropOffTimeslotDto {
|
|
447
|
+
// Window start, HH:mm on a 24 hour clock
|
|
448
|
+
start_time: string;
|
|
449
|
+
// Window end, HH:mm on a 24 hour clock
|
|
450
|
+
end_time: string;
|
|
451
|
+
// Delivery destination ids served during this window
|
|
452
|
+
destinations: string[];
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export interface DropOffSectionDto {
|
|
456
|
+
// Whether the station accepts drop-off orders
|
|
457
|
+
enabled: boolean;
|
|
458
|
+
// How drop-off timeslots are generated. Required when enabled.
|
|
459
|
+
mode?: 'automatic' | 'custom' | 'robot';
|
|
460
|
+
// Drop-off prep time, in minutes. Required when enabled.
|
|
461
|
+
prep_time_minutes?: number;
|
|
462
|
+
// Orders accepted per drop-off timeslot. Required when enabled.
|
|
463
|
+
customers_per_slot?: number;
|
|
464
|
+
// Timeslot interval in minutes. Required in automatic mode.
|
|
465
|
+
auto_time_minutes?: number;
|
|
466
|
+
// Destination ids served all day. Required in automatic mode.
|
|
467
|
+
destinations?: string[];
|
|
468
|
+
// Caller-defined delivery windows. Required in custom mode.
|
|
469
|
+
custom_timeslots?: CustomDropOffTimeslotDto[];
|
|
470
|
+
// Fee in dollars. Send null to remove it; omit to leave it as is.
|
|
471
|
+
fee?: number | null;
|
|
472
|
+
// Whether guests can leave drop-off instructions
|
|
473
|
+
show_instructions?: boolean;
|
|
474
|
+
// Whether guests see a single timeslot instead of a list
|
|
475
|
+
show_single_timeslot?: boolean;
|
|
476
|
+
// Whether orders are handed to the runner app
|
|
477
|
+
runner_app_enabled?: boolean;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
export interface ScanAndPaySectionDto {
|
|
481
|
+
// Canteen (System365) location id for this station
|
|
482
|
+
canteen_location_id: string;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
export interface JustWalkOutSectionDto {
|
|
486
|
+
// Whether the store is live. Drives frictionless_supported and pickup_supported.
|
|
487
|
+
enabled: boolean;
|
|
488
|
+
// Frictionless vendor operating the store
|
|
489
|
+
third_party_partner?: string;
|
|
490
|
+
// Amazon Just Walk Out store id
|
|
491
|
+
amazon_store_id?: string;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export interface PutStationIntegrationRequest {
|
|
495
|
+
// How the station takes orders
|
|
496
|
+
order_method?: 'pre-order' | 'scan-n-pay' | 'just-walk-out';
|
|
497
|
+
// Pickup setup
|
|
498
|
+
pickup?: PickupSectionDto;
|
|
499
|
+
// Drop-off setup
|
|
500
|
+
drop_off?: DropOffSectionDto;
|
|
501
|
+
// Scan & Pay setup
|
|
502
|
+
scan_and_pay?: ScanAndPaySectionDto;
|
|
503
|
+
// Just Walk Out setup
|
|
504
|
+
just_walk_out?: JustWalkOutSectionDto;
|
|
505
|
+
}
|
|
506
|
+
|
|
433
507
|
export interface PutStationIntegrationResponse {
|
|
434
508
|
success: boolean;
|
|
435
509
|
}
|
|
@@ -1453,6 +1527,8 @@ export interface PutCentricosStationIntegrationPath {
|
|
|
1453
1527
|
integration_type: string;
|
|
1454
1528
|
}
|
|
1455
1529
|
|
|
1530
|
+
export type PutCentricosStationIntegrationBody = PutStationIntegrationRequest;
|
|
1531
|
+
|
|
1456
1532
|
export type PutCentricosStationIntegrationResponse = PutStationIntegrationResponse;
|
|
1457
1533
|
|
|
1458
1534
|
// DELETE /centricos/station/{station_id}/{integration_type} - Delete station integration
|
package/src/interface/menu.ts
CHANGED
|
@@ -8717,6 +8717,20 @@ export interface PatchMenuV4BrandMenusReorderRequest
|
|
|
8717
8717
|
body: PatchMenuV4BrandMenusReorderBody;
|
|
8718
8718
|
}
|
|
8719
8719
|
|
|
8720
|
+
// GET /menu/v4/brand/{id}/generate-barcode
|
|
8721
|
+
|
|
8722
|
+
export interface GetMenuV4BrandGenerateBarcodePath {
|
|
8723
|
+
id: string;
|
|
8724
|
+
}
|
|
8725
|
+
|
|
8726
|
+
export interface GetMenuV4BrandGenerateBarcodeResponse {
|
|
8727
|
+
barcode?: string;
|
|
8728
|
+
}
|
|
8729
|
+
|
|
8730
|
+
export interface GetMenuV4BrandGenerateBarcodeRequest
|
|
8731
|
+
extends BaseRequest,
|
|
8732
|
+
GetMenuV4BrandGenerateBarcodePath {}
|
|
8733
|
+
|
|
8720
8734
|
// GET /menu/v4/brand/{id}/items
|
|
8721
8735
|
|
|
8722
8736
|
export interface GetMenuV4BrandItemsPath {
|