@compassdigital/sdk.typescript 4.537.0 → 4.539.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 +9 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/kds.d.ts +14 -0
- package/lib/interface/kds.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +9 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -0
- package/src/interface/kds.ts +24 -0
- package/src/interface/menu.ts +10 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -250,6 +250,8 @@ import {
|
|
|
250
250
|
import {
|
|
251
251
|
GetKdsDevicesQuery,
|
|
252
252
|
GetKdsDevicesResponse,
|
|
253
|
+
GetKdsDeviceLocationsQuery,
|
|
254
|
+
GetKdsDeviceLocationsResponse,
|
|
253
255
|
PostKdsDeviceAuthBody,
|
|
254
256
|
PostKdsDeviceAuthResponse,
|
|
255
257
|
DeleteKdsDeviceAuthResponse,
|
|
@@ -3812,6 +3814,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
3812
3814
|
return this.request('kds', '/kds/devices', 'GET', `/kds/devices`, null, options);
|
|
3813
3815
|
}
|
|
3814
3816
|
|
|
3817
|
+
/**
|
|
3818
|
+
* GET /kds/device/locations - List unit ids and location names for a serial number
|
|
3819
|
+
*
|
|
3820
|
+
* @param options - additional request options
|
|
3821
|
+
*/
|
|
3822
|
+
get_kds_device_locations(
|
|
3823
|
+
options: {
|
|
3824
|
+
query: GetKdsDeviceLocationsQuery;
|
|
3825
|
+
} & RequestOptions,
|
|
3826
|
+
): ResponsePromise<GetKdsDeviceLocationsResponse> {
|
|
3827
|
+
return this.request(
|
|
3828
|
+
'kds',
|
|
3829
|
+
'/kds/device/locations',
|
|
3830
|
+
'GET',
|
|
3831
|
+
`/kds/device/locations`,
|
|
3832
|
+
null,
|
|
3833
|
+
options,
|
|
3834
|
+
);
|
|
3835
|
+
}
|
|
3836
|
+
|
|
3815
3837
|
/**
|
|
3816
3838
|
* POST /kds/device/auth - Get auth token for a device
|
|
3817
3839
|
*
|
package/src/interface/kds.ts
CHANGED
|
@@ -58,6 +58,17 @@ export interface DeviceInfo {
|
|
|
58
58
|
[index: string]: any;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export interface DeviceLocations {
|
|
62
|
+
unit_id: string;
|
|
63
|
+
location_name: string;
|
|
64
|
+
// CDL location group id
|
|
65
|
+
location_group: string;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface DeviceLocationsResponse {
|
|
69
|
+
locations: DeviceLocations[];
|
|
70
|
+
}
|
|
71
|
+
|
|
61
72
|
// GET /kds/devices - Get kds devices for a specified unit number
|
|
62
73
|
|
|
63
74
|
export interface GetKdsDevicesQuery {
|
|
@@ -71,6 +82,19 @@ export type GetKdsDevicesResponse = Units;
|
|
|
71
82
|
|
|
72
83
|
export interface GetKdsDevicesRequest extends BaseRequest, RequestQuery<GetKdsDevicesQuery> {}
|
|
73
84
|
|
|
85
|
+
// GET /kds/device/locations - List unit ids and location names for a serial number
|
|
86
|
+
|
|
87
|
+
export interface GetKdsDeviceLocationsQuery {
|
|
88
|
+
// KDS device serial number
|
|
89
|
+
serial_number: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GetKdsDeviceLocationsResponse = DeviceLocationsResponse;
|
|
93
|
+
|
|
94
|
+
export interface GetKdsDeviceLocationsRequest
|
|
95
|
+
extends BaseRequest,
|
|
96
|
+
RequestQuery<GetKdsDeviceLocationsQuery> {}
|
|
97
|
+
|
|
74
98
|
// POST /kds/device/auth - Get auth token for a device
|
|
75
99
|
|
|
76
100
|
export type PostKdsDeviceAuthBody = AuthPostBody;
|
package/src/interface/menu.ts
CHANGED
|
@@ -1054,6 +1054,7 @@ export interface MenuWorksDTO {
|
|
|
1054
1054
|
allergen_tags?: string[];
|
|
1055
1055
|
allergens?: AllergenDTO[];
|
|
1056
1056
|
nutrition?: NutritionDTO;
|
|
1057
|
+
icons?: MenuWorksIconDTO[];
|
|
1057
1058
|
updated_at?: string;
|
|
1058
1059
|
[index: string]: any;
|
|
1059
1060
|
}
|
|
@@ -1085,6 +1086,14 @@ export interface NutritionValueDTO {
|
|
|
1085
1086
|
[index: string]: any;
|
|
1086
1087
|
}
|
|
1087
1088
|
|
|
1089
|
+
export interface MenuWorksIconDTO {
|
|
1090
|
+
id: number;
|
|
1091
|
+
name: string;
|
|
1092
|
+
url: string;
|
|
1093
|
+
rank?: number;
|
|
1094
|
+
[index: string]: any;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1088
1097
|
export interface ModifierGroupToModifierRelationshipChangeDTO {
|
|
1089
1098
|
id?: string;
|
|
1090
1099
|
created_at?: string;
|
|
@@ -7798,6 +7807,7 @@ export interface GetMenuV3MenuworksResponse {
|
|
|
7798
7807
|
portion_size: string;
|
|
7799
7808
|
allergens?: AllergenDTO[];
|
|
7800
7809
|
nutrition?: NutritionDTO;
|
|
7810
|
+
icons?: MenuWorksIconDTO[];
|
|
7801
7811
|
MRN?: string;
|
|
7802
7812
|
portion_quantity?: number;
|
|
7803
7813
|
portion_unit_name?: string;
|