@compassdigital/sdk.typescript 4.72.0 → 4.73.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/base.d.ts +3 -3
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +27 -31
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +35 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +507 -482
- 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/consumer.d.ts +1 -1
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/mealplan.d.ts +1 -0
- package/lib/interface/mealplan.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +35 -14
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/shoppingcart.d.ts +8 -2
- package/lib/interface/shoppingcart.d.ts.map +1 -1
- package/lib/interface/util.d.ts.map +1 -1
- package/manifest.json +2 -2
- package/package.json +2 -2
- package/src/base.ts +455 -448
- package/src/index.ts +596 -631
- package/src/interface/config.ts +1 -0
- package/src/interface/consumer.ts +52 -52
- package/src/interface/mealplan.ts +1 -0
- package/src/interface/menu.ts +51 -15
- package/src/interface/shoppingcart.ts +17 -2
- package/src/interface/util.ts +3 -3
- package/test/client.test.ts +1 -1
package/lib/interface/menu.d.ts
CHANGED
|
@@ -551,7 +551,7 @@ export interface DraftItemDTO {
|
|
|
551
551
|
tax_tags?: string[];
|
|
552
552
|
brand_id?: string;
|
|
553
553
|
line_route?: string;
|
|
554
|
-
posid_segment?:
|
|
554
|
+
posid_segment?: number;
|
|
555
555
|
menu_works?: Record<string, any>;
|
|
556
556
|
is_out_of_stock?: boolean;
|
|
557
557
|
tax_tag_code?: string;
|
|
@@ -646,7 +646,7 @@ export interface DraftModifierDTO {
|
|
|
646
646
|
is_active?: boolean;
|
|
647
647
|
posid?: string;
|
|
648
648
|
reporting?: ReportingMetadataDTO;
|
|
649
|
-
posid_segment?:
|
|
649
|
+
posid_segment?: number;
|
|
650
650
|
brand_id?: string;
|
|
651
651
|
line_route?: string;
|
|
652
652
|
menu_works?: MenuWorksDTO;
|
|
@@ -932,7 +932,7 @@ export interface PublishedItemDTO {
|
|
|
932
932
|
tax_tags?: string[];
|
|
933
933
|
brand_id?: string;
|
|
934
934
|
line_route?: string;
|
|
935
|
-
posid_segment?:
|
|
935
|
+
posid_segment?: number;
|
|
936
936
|
is_out_of_stock?: boolean;
|
|
937
937
|
tax_tag_code?: string;
|
|
938
938
|
tags?: string[];
|
|
@@ -991,7 +991,7 @@ export interface PublishedModifierDTO {
|
|
|
991
991
|
tax_tags?: string[];
|
|
992
992
|
is_active?: boolean;
|
|
993
993
|
posid?: string;
|
|
994
|
-
posid_segment?:
|
|
994
|
+
posid_segment?: number;
|
|
995
995
|
brand_id?: string;
|
|
996
996
|
line_route?: string;
|
|
997
997
|
is_out_of_stock?: boolean;
|
|
@@ -1259,7 +1259,7 @@ export interface DraftItemEntityDTO {
|
|
|
1259
1259
|
tax_tags?: string[];
|
|
1260
1260
|
brand_id: string;
|
|
1261
1261
|
line_route?: string;
|
|
1262
|
-
posid_segment?:
|
|
1262
|
+
posid_segment?: number;
|
|
1263
1263
|
menu_works?: MenuWorksDTO;
|
|
1264
1264
|
is_out_of_stock?: boolean;
|
|
1265
1265
|
tax_tag_code?: string;
|
|
@@ -1297,7 +1297,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1297
1297
|
is_active?: boolean;
|
|
1298
1298
|
posid?: string;
|
|
1299
1299
|
reporting: ReportingMetadataDTO;
|
|
1300
|
-
posid_segment?:
|
|
1300
|
+
posid_segment?: number;
|
|
1301
1301
|
brand_id: string;
|
|
1302
1302
|
line_route?: string;
|
|
1303
1303
|
menu_works?: MenuWorksDTO;
|
|
@@ -1816,6 +1816,27 @@ export interface GetMenuV3DraftLocalMenuGroupBrandsResponse {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
export interface GetMenuV3DraftLocalMenuGroupBrandsRequest extends BaseRequest, RequestQuery<GetMenuV3DraftLocalMenuGroupBrandsQuery>, GetMenuV3DraftLocalMenuGroupBrandsPath {
|
|
1818
1818
|
}
|
|
1819
|
+
export interface GetMenuV3DraftLocalMenuGroupItemsPath {
|
|
1820
|
+
id: string;
|
|
1821
|
+
}
|
|
1822
|
+
export interface GetMenuV3DraftLocalMenuGroupItemsQuery {
|
|
1823
|
+
select?: string[];
|
|
1824
|
+
relationships?: string[];
|
|
1825
|
+
filter?: string;
|
|
1826
|
+
limit?: number;
|
|
1827
|
+
page?: number;
|
|
1828
|
+
sort_by?: string;
|
|
1829
|
+
sort_order?: 'DESC' | 'ASC';
|
|
1830
|
+
soft_deleted?: 'include' | 'exclude' | 'only';
|
|
1831
|
+
_query?: string;
|
|
1832
|
+
}
|
|
1833
|
+
export interface GetMenuV3DraftLocalMenuGroupItemsResponse {
|
|
1834
|
+
results: DraftItemDTO[];
|
|
1835
|
+
meta?: ListResponseMetadataDTO;
|
|
1836
|
+
[index: string]: any;
|
|
1837
|
+
}
|
|
1838
|
+
export interface GetMenuV3DraftLocalMenuGroupItemsRequest extends BaseRequest, RequestQuery<GetMenuV3DraftLocalMenuGroupItemsQuery>, GetMenuV3DraftLocalMenuGroupItemsPath {
|
|
1839
|
+
}
|
|
1819
1840
|
export interface GetMenuV3LocalMenuGroupBrandsPath {
|
|
1820
1841
|
id: string;
|
|
1821
1842
|
}
|
|
@@ -3360,7 +3381,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
3360
3381
|
tax_tags?: string[];
|
|
3361
3382
|
brand_id: string;
|
|
3362
3383
|
line_route?: string;
|
|
3363
|
-
posid_segment?:
|
|
3384
|
+
posid_segment?: number;
|
|
3364
3385
|
menu_works?: MenuWorksDTO;
|
|
3365
3386
|
is_out_of_stock?: boolean;
|
|
3366
3387
|
tax_tag_code?: string;
|
|
@@ -3416,7 +3437,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
3416
3437
|
tax_tags?: string[];
|
|
3417
3438
|
brand_id?: string;
|
|
3418
3439
|
line_route?: string;
|
|
3419
|
-
posid_segment?:
|
|
3440
|
+
posid_segment?: number;
|
|
3420
3441
|
menu_works?: MenuWorksDTO;
|
|
3421
3442
|
is_out_of_stock?: boolean;
|
|
3422
3443
|
tax_tag_code?: string;
|
|
@@ -3497,7 +3518,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
3497
3518
|
tax_tags?: string[];
|
|
3498
3519
|
brand_id: string;
|
|
3499
3520
|
line_route?: string;
|
|
3500
|
-
posid_segment?:
|
|
3521
|
+
posid_segment?: number;
|
|
3501
3522
|
menu_works?: MenuWorksDTO;
|
|
3502
3523
|
is_out_of_stock?: boolean;
|
|
3503
3524
|
tax_tag_code?: string;
|
|
@@ -3572,7 +3593,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
3572
3593
|
tax_tags?: string[];
|
|
3573
3594
|
brand_id?: string;
|
|
3574
3595
|
line_route?: string;
|
|
3575
|
-
posid_segment?:
|
|
3596
|
+
posid_segment?: number;
|
|
3576
3597
|
menu_works?: MenuWorksDTO;
|
|
3577
3598
|
is_out_of_stock?: boolean;
|
|
3578
3599
|
tax_tag_code?: string;
|
|
@@ -4299,7 +4320,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
4299
4320
|
is_active?: boolean;
|
|
4300
4321
|
posid?: string;
|
|
4301
4322
|
reporting: ReportingMetadataDTO;
|
|
4302
|
-
posid_segment?:
|
|
4323
|
+
posid_segment?: number;
|
|
4303
4324
|
brand_id: string;
|
|
4304
4325
|
line_route?: string;
|
|
4305
4326
|
menu_works?: MenuWorksDTO;
|
|
@@ -4355,7 +4376,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
4355
4376
|
is_active?: boolean;
|
|
4356
4377
|
posid?: string;
|
|
4357
4378
|
reporting?: ReportingMetadataDTO;
|
|
4358
|
-
posid_segment?:
|
|
4379
|
+
posid_segment?: number;
|
|
4359
4380
|
brand_id?: string;
|
|
4360
4381
|
line_route?: string;
|
|
4361
4382
|
menu_works?: MenuWorksDTO;
|
|
@@ -4436,7 +4457,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
4436
4457
|
is_active?: boolean;
|
|
4437
4458
|
posid?: string;
|
|
4438
4459
|
reporting: ReportingMetadataDTO;
|
|
4439
|
-
posid_segment?:
|
|
4460
|
+
posid_segment?: number;
|
|
4440
4461
|
brand_id: string;
|
|
4441
4462
|
line_route?: string;
|
|
4442
4463
|
menu_works?: MenuWorksDTO;
|
|
@@ -4511,7 +4532,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
4511
4532
|
is_active?: boolean;
|
|
4512
4533
|
posid?: string;
|
|
4513
4534
|
reporting?: ReportingMetadataDTO;
|
|
4514
|
-
posid_segment?:
|
|
4535
|
+
posid_segment?: number;
|
|
4515
4536
|
brand_id?: string;
|
|
4516
4537
|
line_route?: string;
|
|
4517
4538
|
menu_works?: MenuWorksDTO;
|