@compassdigital/sdk.typescript 4.318.0 → 4.320.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compassdigital/sdk.typescript",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.320.0",
|
|
4
4
|
"description": "Compass Digital Labs TypeScript SDK",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@compassdigital/review": "^7.6.3",
|
|
60
|
-
"@compassdigital/sdk.typescript.cli": "^4.
|
|
60
|
+
"@compassdigital/sdk.typescript.cli": "^4.54.0",
|
|
61
61
|
"@swc/core": "^1.4.1",
|
|
62
62
|
"@swc/jest": "^0.2.36",
|
|
63
63
|
"@types/jest": "^30.0.0",
|
|
@@ -54,9 +54,43 @@ export interface Success {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
export interface Schedule {
|
|
57
|
-
|
|
57
|
+
// Start timestamp in milliseconds (Unix epoch).
|
|
58
|
+
start?: number;
|
|
59
|
+
// End timestamp in milliseconds (Unix epoch). If omitted, the schedule continues indefinitely.
|
|
60
|
+
end?: number;
|
|
61
|
+
// Array of time strings specifying the start time of the event each day it occurs.
|
|
58
62
|
times?: string[];
|
|
63
|
+
// Duration of the event, combined with times to calculate the end time.
|
|
64
|
+
duration?: number;
|
|
65
|
+
// Duration unit for the schedule.
|
|
66
|
+
durationUnit?: 'minutes' | 'hours' | 'days' | 'weeks';
|
|
67
|
+
// Creates discrete, repeating time windows when the schedule is active. The system uses 'start' to determine which month/week/day/year to begin counting from, then snaps to the beginning of that time unit before applying the interval.
|
|
68
|
+
every?:
|
|
69
|
+
| {
|
|
70
|
+
week?: number;
|
|
71
|
+
day?: number;
|
|
72
|
+
month?: number;
|
|
73
|
+
year?: number;
|
|
74
|
+
}
|
|
75
|
+
| false;
|
|
76
|
+
// Array of specific years when schedule applies (full year values, e.g., 2024).
|
|
77
|
+
year?: number[];
|
|
78
|
+
// Array of specific months when schedule applies (0-indexed, 0 = January, 11 = December).
|
|
79
|
+
month?: number[];
|
|
80
|
+
// Array of days of the week when this schedule is active.
|
|
59
81
|
dayOfWeek?: number[];
|
|
82
|
+
// Array of specific weeks of the month when schedule applies.
|
|
83
|
+
weekOfMonth?: number[];
|
|
84
|
+
// Array of specific weeks of the year when schedule applies (ISO week numbers).
|
|
85
|
+
weekOfYear?: number[];
|
|
86
|
+
// Array of week spans within the month (0-indexed week blocks).
|
|
87
|
+
weekspanOfMonth?: number[];
|
|
88
|
+
// Array of week spans within the year (0-indexed week blocks).
|
|
89
|
+
weekspanOfYear?: number[];
|
|
90
|
+
// Array of specific days of the year when schedule applies.
|
|
91
|
+
dayOfYear?: number[];
|
|
92
|
+
// Array of specific days of month when schedule applies.
|
|
93
|
+
dayOfMonth?: number[];
|
|
60
94
|
[index: string]: any;
|
|
61
95
|
}
|
|
62
96
|
|
package/src/interface/menu.ts
CHANGED
|
@@ -799,6 +799,7 @@ export interface DraftItemDTO {
|
|
|
799
799
|
unique_id?: number;
|
|
800
800
|
cpg_item_id?: string;
|
|
801
801
|
price_levels?: Record<string, any>;
|
|
802
|
+
menu_labels?: Record<string, any>;
|
|
802
803
|
translation?: Record<string, any>;
|
|
803
804
|
applied_diff_snapshot?: Record<string, any>;
|
|
804
805
|
version?: number;
|
|
@@ -924,6 +925,7 @@ export interface DraftModifierDTO {
|
|
|
924
925
|
tags?: string[];
|
|
925
926
|
unique_id?: number;
|
|
926
927
|
price_levels?: Record<string, any>;
|
|
928
|
+
menu_labels?: Record<string, any>;
|
|
927
929
|
translation?: Record<string, any>;
|
|
928
930
|
applied_diff_snapshot?: Record<string, any>;
|
|
929
931
|
version?: number;
|
|
@@ -1367,6 +1369,7 @@ export interface PublishedItemDTO {
|
|
|
1367
1369
|
tax_jwo_code?: string;
|
|
1368
1370
|
cpg_item_id?: string;
|
|
1369
1371
|
price_levels?: Record<string, any>;
|
|
1372
|
+
menu_labels?: Record<string, any>;
|
|
1370
1373
|
translation?: Record<string, any>;
|
|
1371
1374
|
version?: number;
|
|
1372
1375
|
permissions?: Record<string, any>;
|
|
@@ -1456,6 +1459,7 @@ export interface PublishedModifierDTO {
|
|
|
1456
1459
|
tax_tag_code?: string;
|
|
1457
1460
|
tags?: string[];
|
|
1458
1461
|
price_levels?: Record<string, any>;
|
|
1462
|
+
menu_labels?: Record<string, any>;
|
|
1459
1463
|
translation?: Record<string, any>;
|
|
1460
1464
|
version?: number;
|
|
1461
1465
|
permissions?: Record<string, any>;
|
|
@@ -1740,6 +1744,7 @@ export interface DraftItemEntityDTO {
|
|
|
1740
1744
|
unique_id?: number;
|
|
1741
1745
|
cpg_item_id?: string;
|
|
1742
1746
|
price_levels?: Record<string, any>;
|
|
1747
|
+
menu_labels?: Record<string, any>;
|
|
1743
1748
|
translation?: Record<string, any>;
|
|
1744
1749
|
applied_diff_snapshot?: Record<string, any>;
|
|
1745
1750
|
version?: number;
|
|
@@ -1793,6 +1798,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1793
1798
|
tags?: string[];
|
|
1794
1799
|
unique_id?: number;
|
|
1795
1800
|
price_levels?: Record<string, any>;
|
|
1801
|
+
menu_labels?: Record<string, any>;
|
|
1796
1802
|
translation?: Record<string, any>;
|
|
1797
1803
|
applied_diff_snapshot?: Record<string, any>;
|
|
1798
1804
|
version?: number;
|
|
@@ -1939,6 +1945,7 @@ export interface PartialItemDTO {
|
|
|
1939
1945
|
unique_id?: number;
|
|
1940
1946
|
cpg_item_id?: string;
|
|
1941
1947
|
price_levels?: Record<string, any>;
|
|
1948
|
+
menu_labels?: Record<string, any>;
|
|
1942
1949
|
translation?: Record<string, any>;
|
|
1943
1950
|
applied_diff_snapshot?: Record<string, any>;
|
|
1944
1951
|
brand?: DraftBrandDTO;
|
|
@@ -1982,6 +1989,7 @@ export interface PartialModifierDTO {
|
|
|
1982
1989
|
tags?: string[];
|
|
1983
1990
|
unique_id?: number;
|
|
1984
1991
|
price_levels?: Record<string, any>;
|
|
1992
|
+
menu_labels?: Record<string, any>;
|
|
1985
1993
|
translation?: Record<string, any>;
|
|
1986
1994
|
applied_diff_snapshot?: Record<string, any>;
|
|
1987
1995
|
brand?: DraftBrandDTO;
|
|
@@ -5649,6 +5657,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
5649
5657
|
unique_id?: number;
|
|
5650
5658
|
cpg_item_id?: string;
|
|
5651
5659
|
price_levels?: Record<string, any>;
|
|
5660
|
+
menu_labels?: Record<string, any>;
|
|
5652
5661
|
translation?: Record<string, any>;
|
|
5653
5662
|
applied_diff_snapshot?: Record<string, any>;
|
|
5654
5663
|
brand?: DraftBrandDTO;
|
|
@@ -5730,6 +5739,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
5730
5739
|
unique_id?: number;
|
|
5731
5740
|
cpg_item_id?: string;
|
|
5732
5741
|
price_levels?: Record<string, any>;
|
|
5742
|
+
menu_labels?: Record<string, any>;
|
|
5733
5743
|
translation?: Record<string, any>;
|
|
5734
5744
|
applied_diff_snapshot?: Record<string, any>;
|
|
5735
5745
|
version?: number;
|
|
@@ -5850,6 +5860,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
5850
5860
|
unique_id?: number;
|
|
5851
5861
|
cpg_item_id?: string;
|
|
5852
5862
|
price_levels?: Record<string, any>;
|
|
5863
|
+
menu_labels?: Record<string, any>;
|
|
5853
5864
|
translation?: Record<string, any>;
|
|
5854
5865
|
applied_diff_snapshot?: Record<string, any>;
|
|
5855
5866
|
brand?: DraftBrandDTO;
|
|
@@ -5961,6 +5972,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
5961
5972
|
unique_id?: number;
|
|
5962
5973
|
cpg_item_id?: string;
|
|
5963
5974
|
price_levels?: Record<string, any>;
|
|
5975
|
+
menu_labels?: Record<string, any>;
|
|
5964
5976
|
translation?: Record<string, any>;
|
|
5965
5977
|
applied_diff_snapshot?: Record<string, any>;
|
|
5966
5978
|
brand?: DraftBrandDTO;
|
|
@@ -7101,6 +7113,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
7101
7113
|
tags?: string[];
|
|
7102
7114
|
unique_id?: number;
|
|
7103
7115
|
price_levels?: Record<string, any>;
|
|
7116
|
+
menu_labels?: Record<string, any>;
|
|
7104
7117
|
translation?: Record<string, any>;
|
|
7105
7118
|
applied_diff_snapshot?: Record<string, any>;
|
|
7106
7119
|
brand?: DraftBrandDTO;
|
|
@@ -7178,6 +7191,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
7178
7191
|
tags?: string[];
|
|
7179
7192
|
unique_id?: number;
|
|
7180
7193
|
price_levels?: Record<string, any>;
|
|
7194
|
+
menu_labels?: Record<string, any>;
|
|
7181
7195
|
translation?: Record<string, any>;
|
|
7182
7196
|
applied_diff_snapshot?: Record<string, any>;
|
|
7183
7197
|
version?: number;
|
|
@@ -7294,6 +7308,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
7294
7308
|
tags?: string[];
|
|
7295
7309
|
unique_id?: number;
|
|
7296
7310
|
price_levels?: Record<string, any>;
|
|
7311
|
+
menu_labels?: Record<string, any>;
|
|
7297
7312
|
translation?: Record<string, any>;
|
|
7298
7313
|
applied_diff_snapshot?: Record<string, any>;
|
|
7299
7314
|
brand?: DraftBrandDTO;
|
|
@@ -7401,6 +7416,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
7401
7416
|
tags?: string[];
|
|
7402
7417
|
unique_id?: number;
|
|
7403
7418
|
price_levels?: Record<string, any>;
|
|
7419
|
+
menu_labels?: Record<string, any>;
|
|
7404
7420
|
translation?: Record<string, any>;
|
|
7405
7421
|
applied_diff_snapshot?: Record<string, any>;
|
|
7406
7422
|
brand?: DraftBrandDTO;
|
|
@@ -8818,6 +8834,7 @@ export interface PostMenuV4ItemBody {
|
|
|
8818
8834
|
unique_id?: number;
|
|
8819
8835
|
cpg_item_id?: string;
|
|
8820
8836
|
price_levels?: Record<string, any>;
|
|
8837
|
+
menu_labels?: Record<string, any>;
|
|
8821
8838
|
translation?: Record<string, any>;
|
|
8822
8839
|
base_item_id?: string;
|
|
8823
8840
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -8869,6 +8886,7 @@ export interface PostMenuV4ItemResponse {
|
|
|
8869
8886
|
unique_id?: number;
|
|
8870
8887
|
cpg_item_id?: string;
|
|
8871
8888
|
price_levels?: Record<string, any>;
|
|
8889
|
+
menu_labels?: Record<string, any>;
|
|
8872
8890
|
translation?: Record<string, any>;
|
|
8873
8891
|
applied_diff_snapshot?: Record<string, any>;
|
|
8874
8892
|
version?: number;
|
|
@@ -8922,6 +8940,7 @@ export type PostMenuV4ItemsBulkCreateBody = {
|
|
|
8922
8940
|
unique_id?: number;
|
|
8923
8941
|
cpg_item_id?: string;
|
|
8924
8942
|
price_levels?: Record<string, any>;
|
|
8943
|
+
menu_labels?: Record<string, any>;
|
|
8925
8944
|
translation?: Record<string, any>;
|
|
8926
8945
|
base_item_id?: string;
|
|
8927
8946
|
applied_diff_snapshot?: Record<string, any>;
|
|
@@ -8994,6 +9013,7 @@ export interface GetMenuV4ItemResponse {
|
|
|
8994
9013
|
unique_id?: number;
|
|
8995
9014
|
cpg_item_id?: string;
|
|
8996
9015
|
price_levels?: Record<string, any>;
|
|
9016
|
+
menu_labels?: Record<string, any>;
|
|
8997
9017
|
translation?: Record<string, any>;
|
|
8998
9018
|
applied_diff_snapshot?: Record<string, any>;
|
|
8999
9019
|
version?: number;
|
|
@@ -9053,6 +9073,7 @@ export interface PatchMenuV4ItemBody {
|
|
|
9053
9073
|
unique_id?: number;
|
|
9054
9074
|
cpg_item_id?: string;
|
|
9055
9075
|
price_levels?: Record<string, any>;
|
|
9076
|
+
menu_labels?: Record<string, any>;
|
|
9056
9077
|
translation?: Record<string, any>;
|
|
9057
9078
|
applied_diff_snapshot?: Record<string, any>;
|
|
9058
9079
|
brand?: DraftBrandDTO;
|
|
@@ -9103,6 +9124,7 @@ export interface PatchMenuV4ItemResponse {
|
|
|
9103
9124
|
unique_id?: number;
|
|
9104
9125
|
cpg_item_id?: string;
|
|
9105
9126
|
price_levels?: Record<string, any>;
|
|
9127
|
+
menu_labels?: Record<string, any>;
|
|
9106
9128
|
translation?: Record<string, any>;
|
|
9107
9129
|
applied_diff_snapshot?: Record<string, any>;
|
|
9108
9130
|
version?: number;
|
|
@@ -9164,6 +9186,7 @@ export interface DeleteMenuV4ItemResponse {
|
|
|
9164
9186
|
unique_id?: number;
|
|
9165
9187
|
cpg_item_id?: string;
|
|
9166
9188
|
price_levels?: Record<string, any>;
|
|
9189
|
+
menu_labels?: Record<string, any>;
|
|
9167
9190
|
translation?: Record<string, any>;
|
|
9168
9191
|
applied_diff_snapshot?: Record<string, any>;
|
|
9169
9192
|
version?: number;
|
|
@@ -9217,6 +9240,7 @@ export interface PatchMenuV4ItemsBulkUpdateBody {
|
|
|
9217
9240
|
unique_id?: number;
|
|
9218
9241
|
cpg_item_id?: string;
|
|
9219
9242
|
price_levels?: Record<string, any>;
|
|
9243
|
+
menu_labels?: Record<string, any>;
|
|
9220
9244
|
translation?: Record<string, any>;
|
|
9221
9245
|
applied_diff_snapshot?: Record<string, any>;
|
|
9222
9246
|
brand?: DraftBrandDTO;
|
|
@@ -9277,6 +9301,7 @@ export interface PatchMenuV4ItemsBulkPriceUpdateBody {
|
|
|
9277
9301
|
unique_id?: number;
|
|
9278
9302
|
cpg_item_id?: string;
|
|
9279
9303
|
price_levels?: Record<string, any>;
|
|
9304
|
+
menu_labels?: Record<string, any>;
|
|
9280
9305
|
translation?: Record<string, any>;
|
|
9281
9306
|
applied_diff_snapshot?: Record<string, any>;
|
|
9282
9307
|
brand?: DraftBrandDTO;
|
|
@@ -9347,6 +9372,7 @@ export interface PostMenuV4ItemDuplicateResponse {
|
|
|
9347
9372
|
unique_id?: number;
|
|
9348
9373
|
cpg_item_id?: string;
|
|
9349
9374
|
price_levels?: Record<string, any>;
|
|
9375
|
+
menu_labels?: Record<string, any>;
|
|
9350
9376
|
translation?: Record<string, any>;
|
|
9351
9377
|
applied_diff_snapshot?: Record<string, any>;
|
|
9352
9378
|
version?: number;
|
|
@@ -9487,6 +9513,7 @@ export interface PostMenuV4ModifierBody {
|
|
|
9487
9513
|
tags?: string[];
|
|
9488
9514
|
unique_id?: number;
|
|
9489
9515
|
price_levels?: Record<string, any>;
|
|
9516
|
+
menu_labels?: Record<string, any>;
|
|
9490
9517
|
translation?: Record<string, any>;
|
|
9491
9518
|
applied_diff_snapshot?: Record<string, any>;
|
|
9492
9519
|
brand?: DraftBrandDTO;
|
|
@@ -9533,6 +9560,7 @@ export interface PostMenuV4ModifierResponse {
|
|
|
9533
9560
|
tags?: string[];
|
|
9534
9561
|
unique_id?: number;
|
|
9535
9562
|
price_levels?: Record<string, any>;
|
|
9563
|
+
menu_labels?: Record<string, any>;
|
|
9536
9564
|
translation?: Record<string, any>;
|
|
9537
9565
|
applied_diff_snapshot?: Record<string, any>;
|
|
9538
9566
|
version?: number;
|
|
@@ -9596,6 +9624,7 @@ export interface GetMenuV4ModifierResponse {
|
|
|
9596
9624
|
tags?: string[];
|
|
9597
9625
|
unique_id?: number;
|
|
9598
9626
|
price_levels?: Record<string, any>;
|
|
9627
|
+
menu_labels?: Record<string, any>;
|
|
9599
9628
|
translation?: Record<string, any>;
|
|
9600
9629
|
applied_diff_snapshot?: Record<string, any>;
|
|
9601
9630
|
version?: number;
|
|
@@ -9650,6 +9679,7 @@ export interface PatchMenuV4ModifierBody {
|
|
|
9650
9679
|
tags?: string[];
|
|
9651
9680
|
unique_id?: number;
|
|
9652
9681
|
price_levels?: Record<string, any>;
|
|
9682
|
+
menu_labels?: Record<string, any>;
|
|
9653
9683
|
translation?: Record<string, any>;
|
|
9654
9684
|
applied_diff_snapshot?: Record<string, any>;
|
|
9655
9685
|
brand?: DraftBrandDTO;
|
|
@@ -9696,6 +9726,7 @@ export interface PatchMenuV4ModifierResponse {
|
|
|
9696
9726
|
tags?: string[];
|
|
9697
9727
|
unique_id?: number;
|
|
9698
9728
|
price_levels?: Record<string, any>;
|
|
9729
|
+
menu_labels?: Record<string, any>;
|
|
9699
9730
|
translation?: Record<string, any>;
|
|
9700
9731
|
applied_diff_snapshot?: Record<string, any>;
|
|
9701
9732
|
version?: number;
|
|
@@ -9753,6 +9784,7 @@ export interface DeleteMenuV4ModifierResponse {
|
|
|
9753
9784
|
tags?: string[];
|
|
9754
9785
|
unique_id?: number;
|
|
9755
9786
|
price_levels?: Record<string, any>;
|
|
9787
|
+
menu_labels?: Record<string, any>;
|
|
9756
9788
|
translation?: Record<string, any>;
|
|
9757
9789
|
applied_diff_snapshot?: Record<string, any>;
|
|
9758
9790
|
version?: number;
|
|
@@ -9814,6 +9846,7 @@ export interface PostMenuV4ModifierDuplicateResponse {
|
|
|
9814
9846
|
tags?: string[];
|
|
9815
9847
|
unique_id?: number;
|
|
9816
9848
|
price_levels?: Record<string, any>;
|
|
9849
|
+
menu_labels?: Record<string, any>;
|
|
9817
9850
|
translation?: Record<string, any>;
|
|
9818
9851
|
applied_diff_snapshot?: Record<string, any>;
|
|
9819
9852
|
version?: number;
|
|
@@ -9867,6 +9900,7 @@ export interface PatchMenuV4ModifiersBulkUpdateBody {
|
|
|
9867
9900
|
tags?: string[];
|
|
9868
9901
|
unique_id?: number;
|
|
9869
9902
|
price_levels?: Record<string, any>;
|
|
9903
|
+
menu_labels?: Record<string, any>;
|
|
9870
9904
|
translation?: Record<string, any>;
|
|
9871
9905
|
applied_diff_snapshot?: Record<string, any>;
|
|
9872
9906
|
brand?: DraftBrandDTO;
|