@compassdigital/sdk.typescript 4.22.1 → 4.23.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 +10 -0
- package/lib/base.d.ts.map +1 -1
- package/lib/base.js +16 -1
- package/lib/base.js.map +1 -1
- package/lib/index.d.ts +8 -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/menu.d.ts +34 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/payment.d.ts +24 -0
- package/lib/interface/payment.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/base.ts +27 -4
- package/src/index.ts +773 -751
- package/src/interface/menu.ts +35 -0
- package/src/interface/payment.ts +30 -0
package/src/interface/menu.ts
CHANGED
|
@@ -588,6 +588,7 @@ export interface DraftItemDTO {
|
|
|
588
588
|
brand_id?: string;
|
|
589
589
|
line_route?: FilterFieldDTO;
|
|
590
590
|
posid_segment?: FilterFieldDTO;
|
|
591
|
+
menu_works?: Record<string, any>;
|
|
591
592
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
592
593
|
brand?: Record<string, any>;
|
|
593
594
|
categories?: Record<string, any>[];
|
|
@@ -632,6 +633,7 @@ export interface DraftModifierGroupDTO {
|
|
|
632
633
|
is_active?: boolean;
|
|
633
634
|
limit?: number;
|
|
634
635
|
brand_id?: string;
|
|
636
|
+
type?: "normal" | "limit_enabled" | "sizing_enabled";
|
|
635
637
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
636
638
|
brand?: Record<string, any>;
|
|
637
639
|
changes?: ModifierGroupChangeDTO[];
|
|
@@ -677,6 +679,7 @@ export interface DraftModifierDTO {
|
|
|
677
679
|
posid_segment?: FilterFieldDTO;
|
|
678
680
|
brand_id?: string;
|
|
679
681
|
sizing?: FilterFieldDTO[];
|
|
682
|
+
menu_works?: MenuWorksDTO;
|
|
680
683
|
applied_diff_snapshot?: FilterFieldDTO;
|
|
681
684
|
brand?: Record<string, any>;
|
|
682
685
|
changes?: ModifierChangeDTO[];
|
|
@@ -723,6 +726,17 @@ export interface FileAttachmentsDTO {
|
|
|
723
726
|
[index: string]: any;
|
|
724
727
|
}
|
|
725
728
|
|
|
729
|
+
export interface MenuWorksDTO {
|
|
730
|
+
MRN?: FilterFieldDTO;
|
|
731
|
+
unit_id?: FilterFieldDTO;
|
|
732
|
+
GTIN?: FilterFieldDTO;
|
|
733
|
+
cost?: number;
|
|
734
|
+
ingredients?: FilterFieldDTO[];
|
|
735
|
+
smart_tags?: FilterFieldDTO[];
|
|
736
|
+
id?: Record<string, any>;
|
|
737
|
+
[index: string]: any;
|
|
738
|
+
}
|
|
739
|
+
|
|
726
740
|
export interface ModifierGroupToModifierRelationshipChangeDTO {
|
|
727
741
|
id?: string;
|
|
728
742
|
insert?: FilterFieldDTO;
|
|
@@ -853,6 +867,7 @@ export interface DraftModifierDraftModifierDTO {
|
|
|
853
867
|
reporting?: ReportingMetadataDTO;
|
|
854
868
|
weight?: WeightDTO;
|
|
855
869
|
attachments?: FileAttachmentsDTO;
|
|
870
|
+
menu_works?: MenuWorksDTO;
|
|
856
871
|
permissions?: FilterFieldDTO;
|
|
857
872
|
[index: string]: any;
|
|
858
873
|
}
|
|
@@ -867,6 +882,7 @@ export interface DraftModifierGroupDraftModifierGroupDTO {
|
|
|
867
882
|
is_active?: FilterFieldDTO;
|
|
868
883
|
limit?: FilterFieldDTO;
|
|
869
884
|
brand_id?: FilterFieldDTO;
|
|
885
|
+
type?: FilterFieldDTO;
|
|
870
886
|
id?: FilterFieldDTO;
|
|
871
887
|
version?: FilterFieldDTO;
|
|
872
888
|
created_at?: FilterFieldDTO;
|
|
@@ -914,6 +930,7 @@ export interface DraftItemDraftItemDTO {
|
|
|
914
930
|
reporting?: ReportingMetadataDTO;
|
|
915
931
|
attachments?: FileAttachmentsDTO;
|
|
916
932
|
weight?: WeightDTO;
|
|
933
|
+
menu_works?: MenuWorksDTO;
|
|
917
934
|
permissions?: FilterFieldDTO;
|
|
918
935
|
[index: string]: any;
|
|
919
936
|
}
|
|
@@ -1061,6 +1078,7 @@ export interface PublishedModifierGroupDTO {
|
|
|
1061
1078
|
is_active?: boolean;
|
|
1062
1079
|
limit?: number;
|
|
1063
1080
|
brand_id?: string;
|
|
1081
|
+
type?: "normal" | "limit_enabled" | "sizing_enabled";
|
|
1064
1082
|
permissions?: Record<string, any>;
|
|
1065
1083
|
[index: string]: any;
|
|
1066
1084
|
}
|
|
@@ -1265,6 +1283,7 @@ export interface DraftItemEntityDTO {
|
|
|
1265
1283
|
brand_id: string;
|
|
1266
1284
|
line_route?: string;
|
|
1267
1285
|
posid_segment?: string;
|
|
1286
|
+
menu_works?: MenuWorksDTO;
|
|
1268
1287
|
applied_diff_snapshot?: Record<string, any>;
|
|
1269
1288
|
version?: number;
|
|
1270
1289
|
brand?: DraftBrandDTO;
|
|
@@ -1305,6 +1324,7 @@ export interface PublishedItemPublishedItemDTO {
|
|
|
1305
1324
|
reporting?: ReportingMetadataDTO;
|
|
1306
1325
|
attachments?: FileAttachmentsDTO;
|
|
1307
1326
|
weight?: WeightDTO;
|
|
1327
|
+
menu_works?: MenuWorksDTO;
|
|
1308
1328
|
permissions?: FilterFieldDTO;
|
|
1309
1329
|
[index: string]: any;
|
|
1310
1330
|
}
|
|
@@ -1361,6 +1381,7 @@ export interface PublishedModifierGroupPublishedModifierGroupDTO {
|
|
|
1361
1381
|
is_active?: FilterFieldDTO;
|
|
1362
1382
|
limit?: FilterFieldDTO;
|
|
1363
1383
|
brand_id?: FilterFieldDTO;
|
|
1384
|
+
type?: FilterFieldDTO;
|
|
1364
1385
|
id?: FilterFieldDTO;
|
|
1365
1386
|
version?: FilterFieldDTO;
|
|
1366
1387
|
created_at?: FilterFieldDTO;
|
|
@@ -1439,6 +1460,7 @@ export interface DraftModifierEntityDTO {
|
|
|
1439
1460
|
posid_segment?: string;
|
|
1440
1461
|
brand_id: string;
|
|
1441
1462
|
sizing?: Record<string, any>[];
|
|
1463
|
+
menu_works?: MenuWorksDTO;
|
|
1442
1464
|
applied_diff_snapshot?: Record<string, any>;
|
|
1443
1465
|
version?: number;
|
|
1444
1466
|
brand?: DraftBrandDTO;
|
|
@@ -1475,6 +1497,7 @@ export interface PublishedModifierPublishedModifierDTO {
|
|
|
1475
1497
|
reporting?: ReportingMetadataDTO;
|
|
1476
1498
|
weight?: WeightDTO;
|
|
1477
1499
|
attachments?: FileAttachmentsDTO;
|
|
1500
|
+
menu_works?: MenuWorksDTO;
|
|
1478
1501
|
permissions?: FilterFieldDTO;
|
|
1479
1502
|
[index: string]: any;
|
|
1480
1503
|
}
|
|
@@ -4357,6 +4380,7 @@ export interface PostMenuV3DraftItemBody {
|
|
|
4357
4380
|
brand_id: string;
|
|
4358
4381
|
line_route?: string;
|
|
4359
4382
|
posid_segment?: string;
|
|
4383
|
+
menu_works?: MenuWorksDTO;
|
|
4360
4384
|
id?: Record<string, any>;
|
|
4361
4385
|
applied_diff_snapshot?: Record<string, any>;
|
|
4362
4386
|
brand?: DraftBrandDTO;
|
|
@@ -4423,6 +4447,7 @@ export interface PatchMenuV3DraftItemBody {
|
|
|
4423
4447
|
brand_id?: string;
|
|
4424
4448
|
line_route?: string;
|
|
4425
4449
|
posid_segment?: string;
|
|
4450
|
+
menu_works?: MenuWorksDTO;
|
|
4426
4451
|
applied_diff_snapshot?: Record<string, any>;
|
|
4427
4452
|
version?: number;
|
|
4428
4453
|
brand?: DraftBrandDTO;
|
|
@@ -4505,6 +4530,7 @@ export type PostMenuV3DraftItemsBody = {
|
|
|
4505
4530
|
brand_id: string;
|
|
4506
4531
|
line_route?: string;
|
|
4507
4532
|
posid_segment?: string;
|
|
4533
|
+
menu_works?: MenuWorksDTO;
|
|
4508
4534
|
id?: Record<string, any>;
|
|
4509
4535
|
applied_diff_snapshot?: Record<string, any>;
|
|
4510
4536
|
brand?: DraftBrandDTO;
|
|
@@ -4591,6 +4617,7 @@ export interface PatchMenuV3DraftItemsBulkUpdateBody {
|
|
|
4591
4617
|
brand_id?: string;
|
|
4592
4618
|
line_route?: string;
|
|
4593
4619
|
posid_segment?: string;
|
|
4620
|
+
menu_works?: MenuWorksDTO;
|
|
4594
4621
|
applied_diff_snapshot?: Record<string, any>;
|
|
4595
4622
|
brand?: DraftBrandDTO;
|
|
4596
4623
|
categories?: DraftCategoryToItemRelationshipDTO[];
|
|
@@ -5034,6 +5061,7 @@ export interface PostMenuV3DraftModifierGroupBody {
|
|
|
5034
5061
|
is_active?: boolean;
|
|
5035
5062
|
limit?: number;
|
|
5036
5063
|
brand_id: string;
|
|
5064
|
+
type?: "normal" | "limit_enabled" | "sizing_enabled";
|
|
5037
5065
|
id?: Record<string, any>;
|
|
5038
5066
|
applied_diff_snapshot?: Record<string, any>;
|
|
5039
5067
|
brand?: DraftBrandDTO;
|
|
@@ -5091,6 +5119,7 @@ export interface PatchMenuV3DraftModifierGroupBody {
|
|
|
5091
5119
|
is_active?: boolean;
|
|
5092
5120
|
limit?: number;
|
|
5093
5121
|
brand_id?: string;
|
|
5122
|
+
type?: "normal" | "limit_enabled" | "sizing_enabled";
|
|
5094
5123
|
applied_diff_snapshot?: Record<string, any>;
|
|
5095
5124
|
version?: number;
|
|
5096
5125
|
brand?: DraftBrandDTO;
|
|
@@ -5168,6 +5197,7 @@ export type PostMenuV3DraftModifierGroupsBody = {
|
|
|
5168
5197
|
is_active?: boolean;
|
|
5169
5198
|
limit?: number;
|
|
5170
5199
|
brand_id: string;
|
|
5200
|
+
type?: "normal" | "limit_enabled" | "sizing_enabled";
|
|
5171
5201
|
id?: Record<string, any>;
|
|
5172
5202
|
applied_diff_snapshot?: Record<string, any>;
|
|
5173
5203
|
brand?: DraftBrandDTO;
|
|
@@ -5230,6 +5260,7 @@ export interface PostMenuV3DraftModifierGroupDuplicateResponse {
|
|
|
5230
5260
|
is_active?: boolean;
|
|
5231
5261
|
limit?: number;
|
|
5232
5262
|
brand_id: string;
|
|
5263
|
+
type?: "normal" | "limit_enabled" | "sizing_enabled";
|
|
5233
5264
|
applied_diff_snapshot?: Record<string, any>;
|
|
5234
5265
|
version?: number;
|
|
5235
5266
|
brand?: DraftBrandDTO;
|
|
@@ -5602,6 +5633,7 @@ export interface PostMenuV3DraftModifierBody {
|
|
|
5602
5633
|
posid_segment?: string;
|
|
5603
5634
|
brand_id: string;
|
|
5604
5635
|
sizing?: Record<string, any>[];
|
|
5636
|
+
menu_works?: MenuWorksDTO;
|
|
5605
5637
|
id?: Record<string, any>;
|
|
5606
5638
|
applied_diff_snapshot?: Record<string, any>;
|
|
5607
5639
|
brand?: DraftBrandDTO;
|
|
@@ -5665,6 +5697,7 @@ export interface PatchMenuV3DraftModifierBody {
|
|
|
5665
5697
|
posid_segment?: string;
|
|
5666
5698
|
brand_id?: string;
|
|
5667
5699
|
sizing?: Record<string, any>[];
|
|
5700
|
+
menu_works?: MenuWorksDTO;
|
|
5668
5701
|
applied_diff_snapshot?: Record<string, any>;
|
|
5669
5702
|
version?: number;
|
|
5670
5703
|
brand?: DraftBrandDTO;
|
|
@@ -5746,6 +5779,7 @@ export type PostMenuV3DraftModifiersBody = {
|
|
|
5746
5779
|
posid_segment?: string;
|
|
5747
5780
|
brand_id: string;
|
|
5748
5781
|
sizing?: Record<string, any>[];
|
|
5782
|
+
menu_works?: MenuWorksDTO;
|
|
5749
5783
|
id?: Record<string, any>;
|
|
5750
5784
|
applied_diff_snapshot?: Record<string, any>;
|
|
5751
5785
|
brand?: DraftBrandDTO;
|
|
@@ -5808,6 +5842,7 @@ export interface PatchMenuV3DraftModifiersBulkUpdateBody {
|
|
|
5808
5842
|
posid_segment?: string;
|
|
5809
5843
|
brand_id?: string;
|
|
5810
5844
|
sizing?: Record<string, any>[];
|
|
5845
|
+
menu_works?: MenuWorksDTO;
|
|
5811
5846
|
applied_diff_snapshot?: Record<string, any>;
|
|
5812
5847
|
brand?: DraftBrandDTO;
|
|
5813
5848
|
changes?: ModifierChangeDTO[];
|
package/src/interface/payment.ts
CHANGED
|
@@ -184,6 +184,23 @@ export interface HpcIframe {
|
|
|
184
184
|
sessionKey?: string;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
|
+
export interface ApplePayMerchantSession {
|
|
188
|
+
merchant_session?: {
|
|
189
|
+
epochTimestamp?: number;
|
|
190
|
+
expiresAt?: number;
|
|
191
|
+
nonce?: string;
|
|
192
|
+
merchantIdentifier?: string;
|
|
193
|
+
merchantSessionIdentifier?: string;
|
|
194
|
+
operationalAnalyticsIdentifier?: string;
|
|
195
|
+
domainName?: string;
|
|
196
|
+
displayName?: string;
|
|
197
|
+
signature?: string;
|
|
198
|
+
retries?: number;
|
|
199
|
+
pspId?: string;
|
|
200
|
+
[index: string]: any;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
187
204
|
// POST /payment/{id}/transaction
|
|
188
205
|
|
|
189
206
|
export interface PostPaymentTransactionPath {
|
|
@@ -515,3 +532,16 @@ export type PostPaymentConfigvalidateResponse = Success;
|
|
|
515
532
|
export interface PostPaymentConfigvalidateRequest extends BaseRequest {
|
|
516
533
|
body: PostPaymentConfigvalidateBody;
|
|
517
534
|
}
|
|
535
|
+
|
|
536
|
+
// POST /payment/validatemerchant
|
|
537
|
+
|
|
538
|
+
export interface PostPaymentValidatemerchantBody {
|
|
539
|
+
validation_url: string;
|
|
540
|
+
display_name: string;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export type PostPaymentValidatemerchantResponse = ApplePayMerchantSession;
|
|
544
|
+
|
|
545
|
+
export interface PostPaymentValidatemerchantRequest extends BaseRequest {
|
|
546
|
+
body: PostPaymentValidatemerchantBody;
|
|
547
|
+
}
|