@compassdigital/sdk.typescript 4.571.0 → 4.573.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 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/catalog.d.ts +14 -0
- package/lib/interface/catalog.d.ts.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 +48 -0
- package/src/interface/catalog.ts +23 -0
- 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,
|
|
@@ -1088,6 +1090,8 @@ import {
|
|
|
1088
1090
|
GetListCatalogItemsQuery,
|
|
1089
1091
|
GetListCatalogItemsResponse,
|
|
1090
1092
|
PostCloneCatalogResponse,
|
|
1093
|
+
GetListCatalogItemsMergedQuery,
|
|
1094
|
+
GetListCatalogItemsMergedResponse,
|
|
1091
1095
|
PostCatalogBaseItemBody,
|
|
1092
1096
|
PostCatalogBaseItemResponse,
|
|
1093
1097
|
GetCatalogBaseItemsBody,
|
|
@@ -11855,6 +11859,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
11855
11859
|
);
|
|
11856
11860
|
}
|
|
11857
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
|
+
|
|
11858
11884
|
/**
|
|
11859
11885
|
* PATCH /menu/v4/stock/business-unit
|
|
11860
11886
|
*
|
|
@@ -12561,6 +12587,28 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
12561
12587
|
);
|
|
12562
12588
|
}
|
|
12563
12589
|
|
|
12590
|
+
/**
|
|
12591
|
+
* GET /catalog/v1/catalog/{id}/items/merged - List catalog items (merged projection)
|
|
12592
|
+
*
|
|
12593
|
+
* @param id
|
|
12594
|
+
* @param options - additional request options
|
|
12595
|
+
*/
|
|
12596
|
+
get_list_catalog_items_merged(
|
|
12597
|
+
id: number,
|
|
12598
|
+
options: {
|
|
12599
|
+
query: GetListCatalogItemsMergedQuery;
|
|
12600
|
+
} & RequestOptions,
|
|
12601
|
+
): ResponsePromise<GetListCatalogItemsMergedResponse> {
|
|
12602
|
+
return this.request(
|
|
12603
|
+
'catalog',
|
|
12604
|
+
'/catalog/v1/catalog/{id}/items/merged',
|
|
12605
|
+
'GET',
|
|
12606
|
+
`/catalog/v1/catalog/${id}/items/merged`,
|
|
12607
|
+
null,
|
|
12608
|
+
options,
|
|
12609
|
+
);
|
|
12610
|
+
}
|
|
12611
|
+
|
|
12564
12612
|
/**
|
|
12565
12613
|
* POST /catalog/v1/base-item - Create a new base item
|
|
12566
12614
|
*
|
package/src/interface/catalog.ts
CHANGED
|
@@ -439,6 +439,29 @@ export type PostCloneCatalogResponse = CatalogResponseDTO;
|
|
|
439
439
|
|
|
440
440
|
export interface PostCloneCatalogRequest extends BaseRequest, PostCloneCatalogPath {}
|
|
441
441
|
|
|
442
|
+
// GET /catalog/v1/catalog/{id}/items/merged - List catalog items (merged projection)
|
|
443
|
+
|
|
444
|
+
export interface GetListCatalogItemsMergedPath {
|
|
445
|
+
id: number;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export interface GetListCatalogItemsMergedQuery {
|
|
449
|
+
page: number;
|
|
450
|
+
limit: number;
|
|
451
|
+
sort_by: string;
|
|
452
|
+
order: string;
|
|
453
|
+
filter: FilterQueryDTO;
|
|
454
|
+
// Comma-separated list of option keys to filter catalog items by. Items with any of these option keys will be included.
|
|
455
|
+
item_option_keys?: string;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
export type GetListCatalogItemsMergedResponse = CatalogItemsListResponseDTO;
|
|
459
|
+
|
|
460
|
+
export interface GetListCatalogItemsMergedRequest
|
|
461
|
+
extends BaseRequest,
|
|
462
|
+
RequestQuery<GetListCatalogItemsMergedQuery>,
|
|
463
|
+
GetListCatalogItemsMergedPath {}
|
|
464
|
+
|
|
442
465
|
// POST /catalog/v1/base-item - Create a new base item
|
|
443
466
|
|
|
444
467
|
export interface PostCatalogBaseItemBody {
|
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 {
|