@compassdigital/sdk.typescript 4.572.0 → 4.574.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 +10 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/config.d.ts +1 -0
- package/lib/interface/config.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +19 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +24 -0
- package/src/interface/compassconnect.ts +6 -6
- package/src/interface/config.ts +2 -0
- package/src/interface/menu.ts +32 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1021,6 +1021,8 @@ import {
|
|
|
1021
1021
|
DeleteMenuV4ModifierGroupModifiersDetachResponse,
|
|
1022
1022
|
GetMenuV4ModifierGroupAttachableModifiersQuery,
|
|
1023
1023
|
GetMenuV4ModifierGroupAttachableModifiersResponse,
|
|
1024
|
+
GetMenuV4ModifierGroupItemsQuery,
|
|
1025
|
+
GetMenuV4ModifierGroupItemsResponse,
|
|
1024
1026
|
PatchMenuV4StockBusinessUnitBody,
|
|
1025
1027
|
PatchMenuV4StockBusinessUnitResponse,
|
|
1026
1028
|
PatchMenuV4StockBody,
|
|
@@ -11857,6 +11859,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11857
11859
|
);
|
|
11858
11860
|
}
|
|
11859
11861
|
|
|
11862
|
+
/**
|
|
11863
|
+
* GET /menu/v4/modifier-group/{id}/items
|
|
11864
|
+
*
|
|
11865
|
+
* @param id
|
|
11866
|
+
* @param options - additional request options
|
|
11867
|
+
*/
|
|
11868
|
+
get_menu_v4_modifier_group_items(
|
|
11869
|
+
id: string,
|
|
11870
|
+
options?: {
|
|
11871
|
+
query?: GetMenuV4ModifierGroupItemsQuery;
|
|
11872
|
+
} & RequestOptions,
|
|
11873
|
+
): ResponsePromise<GetMenuV4ModifierGroupItemsResponse> {
|
|
11874
|
+
return this.request(
|
|
11875
|
+
'menu',
|
|
11876
|
+
'/menu/v4/modifier-group/{id}/items',
|
|
11877
|
+
'GET',
|
|
11878
|
+
`/menu/v4/modifier-group/${id}/items`,
|
|
11879
|
+
null,
|
|
11880
|
+
options,
|
|
11881
|
+
);
|
|
11882
|
+
}
|
|
11883
|
+
|
|
11860
11884
|
/**
|
|
11861
11885
|
* PATCH /menu/v4/stock/business-unit
|
|
11862
11886
|
*
|
|
@@ -25,11 +25,11 @@ export interface Auth {
|
|
|
25
25
|
token?: string;
|
|
26
26
|
expires?: string;
|
|
27
27
|
};
|
|
28
|
-
// Access token
|
|
28
|
+
// Access token (flat field for backward compatibility; prefer the access object in new clients)
|
|
29
29
|
access_token?: string;
|
|
30
|
-
//
|
|
30
|
+
// Access token lifetime in seconds (flat field for backward compatibility)
|
|
31
31
|
expires_in?: number;
|
|
32
|
-
//
|
|
32
|
+
// When the access token expires (epoch ms, flat field for backward compatibility)
|
|
33
33
|
expires_at?: number;
|
|
34
34
|
attributes?: {
|
|
35
35
|
clientName?: string;
|
|
@@ -51,20 +51,20 @@ export interface Auth {
|
|
|
51
51
|
};
|
|
52
52
|
// Identifier of the user or session
|
|
53
53
|
id?: string;
|
|
54
|
-
// Refresh token
|
|
54
|
+
// Refresh token (flat field for backward compatibility; prefer the refresh object in new clients)
|
|
55
55
|
refresh_token?: string;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// GET /compassconnect/oms_token - Gets an OMS token
|
|
59
59
|
|
|
60
60
|
export interface GetCompassconnectOmsTokenQuery {
|
|
61
|
-
//
|
|
61
|
+
// SSO authorization code from the IdP after login
|
|
62
62
|
code: string;
|
|
63
63
|
// The client id of the application getting the token
|
|
64
64
|
client_id: string;
|
|
65
65
|
// The callback uri of the application calling the service
|
|
66
66
|
callback_uri: string;
|
|
67
|
-
//
|
|
67
|
+
// Base URL of the Compass/OMS instance (e.g. https://host/oauth2.0)
|
|
68
68
|
oms_url: string;
|
|
69
69
|
}
|
|
70
70
|
|
package/src/interface/config.ts
CHANGED
|
@@ -181,6 +181,8 @@ export interface Tender {
|
|
|
181
181
|
type?: string;
|
|
182
182
|
id?: string;
|
|
183
183
|
tax_exempt?: boolean;
|
|
184
|
+
// When true, declining-balance meal plan tenders use the stipend split flow (e.g. secondary card split) where platform rules enforce it. Centric Atrium uses this for the Stipend tender row (type remains declining_balance). Omitted or false means off.
|
|
185
|
+
stipend_split?: boolean;
|
|
184
186
|
}
|
|
185
187
|
|
|
186
188
|
export interface HealthResponse {
|
package/src/interface/menu.ts
CHANGED
|
@@ -10764,6 +10764,38 @@ export interface GetMenuV4ModifierGroupAttachableModifiersRequest
|
|
|
10764
10764
|
RequestQuery<GetMenuV4ModifierGroupAttachableModifiersQuery>,
|
|
10765
10765
|
GetMenuV4ModifierGroupAttachableModifiersPath {}
|
|
10766
10766
|
|
|
10767
|
+
// GET /menu/v4/modifier-group/{id}/items
|
|
10768
|
+
|
|
10769
|
+
export interface GetMenuV4ModifierGroupItemsPath {
|
|
10770
|
+
id: string;
|
|
10771
|
+
}
|
|
10772
|
+
|
|
10773
|
+
export interface GetMenuV4ModifierGroupItemsQuery {
|
|
10774
|
+
// If specified, only the selected fields will be returned
|
|
10775
|
+
select?: string[];
|
|
10776
|
+
// List of relationships to load alongside this entity. Can load nested relationships using the pattern 'children.grand_children.foo'
|
|
10777
|
+
relationships?: string[];
|
|
10778
|
+
// Number of records to load per page
|
|
10779
|
+
limit?: number;
|
|
10780
|
+
page?: number;
|
|
10781
|
+
// A field to sort the results based on
|
|
10782
|
+
sort_by?: string;
|
|
10783
|
+
sort_order?: 'DESC' | 'ASC';
|
|
10784
|
+
// How soft deleted records should be shown in the list
|
|
10785
|
+
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
10786
|
+
}
|
|
10787
|
+
|
|
10788
|
+
export interface GetMenuV4ModifierGroupItemsResponse {
|
|
10789
|
+
results: DraftItemToModifierGroupRelationshipDTO[];
|
|
10790
|
+
meta?: ListResponseMetadataDTO;
|
|
10791
|
+
[index: string]: any;
|
|
10792
|
+
}
|
|
10793
|
+
|
|
10794
|
+
export interface GetMenuV4ModifierGroupItemsRequest
|
|
10795
|
+
extends BaseRequest,
|
|
10796
|
+
RequestQuery<GetMenuV4ModifierGroupItemsQuery>,
|
|
10797
|
+
GetMenuV4ModifierGroupItemsPath {}
|
|
10798
|
+
|
|
10767
10799
|
// PATCH /menu/v4/stock/business-unit
|
|
10768
10800
|
|
|
10769
10801
|
export interface PatchMenuV4StockBusinessUnitBody {
|