@compassdigital/sdk.typescript 4.328.0 → 4.330.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 +20 -43
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -47
- package/lib/index.js.map +1 -1
- package/lib/interface/location.d.ts +0 -42
- package/lib/interface/location.d.ts.map +1 -1
- package/lib/interface/partner.d.ts +61 -0
- package/lib/interface/partner.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +48 -111
- package/src/interface/location.ts +0 -81
- package/src/interface/partner.ts +94 -0
package/lib/index.js
CHANGED
|
@@ -376,16 +376,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
376
376
|
get_location(id, options) {
|
|
377
377
|
return this.request('location', '/location/{id}', 'GET', `/location/${id}`, null, options);
|
|
378
378
|
}
|
|
379
|
-
/**
|
|
380
|
-
* PUT /location/{id} - Override a complete Location
|
|
381
|
-
*
|
|
382
|
-
* @param id - location id
|
|
383
|
-
* @param body
|
|
384
|
-
* @param options - additional request options
|
|
385
|
-
*/
|
|
386
|
-
put_location(id, body, options) {
|
|
387
|
-
return this.request('location', '/location/{id}', 'PUT', `/location/${id}`, body, options);
|
|
388
|
-
}
|
|
389
379
|
/**
|
|
390
380
|
* DELETE /location/{id} - Delete brands from a Location
|
|
391
381
|
*
|
|
@@ -441,16 +431,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
441
431
|
get_location_multigroup(id, options) {
|
|
442
432
|
return this.request('location', '/location/multigroup/{id}', 'GET', `/location/multigroup/${id}`, null, options);
|
|
443
433
|
}
|
|
444
|
-
/**
|
|
445
|
-
* PUT /location/multigroup/{id} - Override a complete multigroup
|
|
446
|
-
*
|
|
447
|
-
* @param id - multigroup id
|
|
448
|
-
* @param body
|
|
449
|
-
* @param options - additional request options
|
|
450
|
-
*/
|
|
451
|
-
put_location_multigroup(id, body, options) {
|
|
452
|
-
return this.request('location', '/location/multigroup/{id}', 'PUT', `/location/multigroup/${id}`, body, options);
|
|
453
|
-
}
|
|
454
434
|
/**
|
|
455
435
|
* DELETE /location/multigroup/{id} - Delete groups from a multigroup
|
|
456
436
|
*
|
|
@@ -499,16 +479,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
499
479
|
get_location_group(id, options) {
|
|
500
480
|
return this.request('location', '/location/group/{id}', 'GET', `/location/group/${id}`, null, options);
|
|
501
481
|
}
|
|
502
|
-
/**
|
|
503
|
-
* PUT /location/group/{id} - Override a complete Group
|
|
504
|
-
*
|
|
505
|
-
* @param id - group id
|
|
506
|
-
* @param body
|
|
507
|
-
* @param options - additional request options
|
|
508
|
-
*/
|
|
509
|
-
put_location_group(id, body, options) {
|
|
510
|
-
return this.request('location', '/location/group/{id}', 'PUT', `/location/group/${id}`, body, options);
|
|
511
|
-
}
|
|
512
482
|
/**
|
|
513
483
|
* DELETE /location/group/{id} - Delete locations from a Group
|
|
514
484
|
*
|
|
@@ -605,23 +575,6 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
605
575
|
get_location_group_deliverydestination(id, delivery_destination, options) {
|
|
606
576
|
return this.request('location', '/location/group/{id}/deliverydestination/{delivery_destination}', 'GET', `/location/group/${id}/deliverydestination/${delivery_destination}`, null, options);
|
|
607
577
|
}
|
|
608
|
-
/**
|
|
609
|
-
* GET /location/brands - Get all location brands
|
|
610
|
-
*
|
|
611
|
-
* @param options - additional request options
|
|
612
|
-
*/
|
|
613
|
-
get_location_brands(options) {
|
|
614
|
-
return this.request('location', '/location/brands', 'GET', `/location/brands`, null, options);
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* GET /location/brand/{id}/deliverydestinations - Get delivery destinations for a brand
|
|
618
|
-
*
|
|
619
|
-
* @param id - Brand ID
|
|
620
|
-
* @param options - additional request options
|
|
621
|
-
*/
|
|
622
|
-
get_location_brand_destinations(id, options) {
|
|
623
|
-
return this.request('location', '/location/brand/{id}/deliverydestinations', 'GET', `/location/brand/${id}/deliverydestinations`, null, options);
|
|
624
|
-
}
|
|
625
578
|
/**
|
|
626
579
|
* GET /location/brand/{id}/timeslots - Get location brand timeslots
|
|
627
580
|
*
|
|
@@ -1010,6 +963,24 @@ class ServiceClient extends base_1.BaseServiceClient {
|
|
|
1010
963
|
post_partner_menu(id, body, options) {
|
|
1011
964
|
return this.request('partner', '/partner/{id}/menu', 'POST', `/partner/${id}/menu`, body, options);
|
|
1012
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* GET /partner/external/stations/{group_id} - List the stations inside a group
|
|
968
|
+
*
|
|
969
|
+
* @param group_id - The group id to fetch stations for
|
|
970
|
+
* @param options - additional request options
|
|
971
|
+
*/
|
|
972
|
+
get_partner_external_stations(group_id, options) {
|
|
973
|
+
return this.request('partner', '/partner/external/stations/{group_id}', 'GET', `/partner/external/stations/${group_id}`, null, options);
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* GET /partner/external/menu/{menu_id}/items - Get the items for a specific menu
|
|
977
|
+
*
|
|
978
|
+
* @param menu_id - The menu id to fetch items for
|
|
979
|
+
* @param options - additional request options
|
|
980
|
+
*/
|
|
981
|
+
get_partner_external_menu_items(menu_id, options) {
|
|
982
|
+
return this.request('partner', '/partner/external/menu/{menu_id}/items', 'GET', `/partner/external/menu/${menu_id}/items`, null, options);
|
|
983
|
+
}
|
|
1013
984
|
/**
|
|
1014
985
|
* POST /email - Send an email
|
|
1015
986
|
*
|