@compassdigital/sdk.typescript 4.575.0 → 4.577.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 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interface/consumer.d.ts +9 -5
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +22 -0
- package/lib/interface/menu.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +22 -4
- package/src/interface/consumer.ts +14 -8
- package/src/interface/menu.ts +27 -0
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -926,6 +926,7 @@ import {
|
|
|
926
926
|
PatchMenuV4BrandBody,
|
|
927
927
|
PatchMenuV4BrandResponse,
|
|
928
928
|
DeleteMenuV4BrandResponse,
|
|
929
|
+
GetMenuV4BrandStatusesResponse,
|
|
929
930
|
PostMenuV4BrandAttachmentQuery,
|
|
930
931
|
PostMenuV4BrandAttachmentResponse,
|
|
931
932
|
PostMenuV4BrandMenuBody,
|
|
@@ -1216,7 +1217,6 @@ import {
|
|
|
1216
1217
|
DeleteConsumerLogoutResponse,
|
|
1217
1218
|
PostConsumerChangePasswordBody,
|
|
1218
1219
|
PostConsumerChangePasswordResponse,
|
|
1219
|
-
GetPaymentCashlessConsumerQuery,
|
|
1220
1220
|
GetPaymentCashlessConsumerResponse,
|
|
1221
1221
|
PostPaymentCashlessConsumerBody,
|
|
1222
1222
|
PostPaymentCashlessConsumerResponse,
|
|
@@ -10760,6 +10760,26 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
10760
10760
|
);
|
|
10761
10761
|
}
|
|
10762
10762
|
|
|
10763
|
+
/**
|
|
10764
|
+
* GET /menu/v4/brand/{id}/statuses
|
|
10765
|
+
*
|
|
10766
|
+
* @param id
|
|
10767
|
+
* @param options - additional request options
|
|
10768
|
+
*/
|
|
10769
|
+
get_menu_v4_brand_statuses(
|
|
10770
|
+
id: string,
|
|
10771
|
+
options?: RequestOptions,
|
|
10772
|
+
): ResponsePromise<GetMenuV4BrandStatusesResponse> {
|
|
10773
|
+
return this.request(
|
|
10774
|
+
'menu',
|
|
10775
|
+
'/menu/v4/brand/{id}/statuses',
|
|
10776
|
+
'GET',
|
|
10777
|
+
`/menu/v4/brand/${id}/statuses`,
|
|
10778
|
+
null,
|
|
10779
|
+
options,
|
|
10780
|
+
);
|
|
10781
|
+
}
|
|
10782
|
+
|
|
10763
10783
|
/**
|
|
10764
10784
|
* POST /menu/v4/brand/{id}/attachment/{name}
|
|
10765
10785
|
*
|
|
@@ -13904,9 +13924,7 @@ export class ServiceClient extends BaseServiceClient {
|
|
|
13904
13924
|
*/
|
|
13905
13925
|
get_payment_cashless_consumer(
|
|
13906
13926
|
id: string,
|
|
13907
|
-
options?:
|
|
13908
|
-
query?: GetPaymentCashlessConsumerQuery;
|
|
13909
|
-
} & RequestOptions,
|
|
13927
|
+
options?: RequestOptions,
|
|
13910
13928
|
): ResponsePromise<GetPaymentCashlessConsumerResponse> {
|
|
13911
13929
|
return this.request(
|
|
13912
13930
|
'consumer',
|
|
@@ -139,7 +139,7 @@ export interface MultiLanguageLabel {
|
|
|
139
139
|
export interface ApexCodeProperties {
|
|
140
140
|
codeType: string;
|
|
141
141
|
codeValue: string;
|
|
142
|
-
qrImage
|
|
142
|
+
qrImage?: string;
|
|
143
143
|
qrExpiryDate?: string;
|
|
144
144
|
}
|
|
145
145
|
|
|
@@ -1295,6 +1295,8 @@ export interface ConsumerDiscountChannelConfig {
|
|
|
1295
1295
|
genius: boolean;
|
|
1296
1296
|
// agilysys channel
|
|
1297
1297
|
agilysys: boolean;
|
|
1298
|
+
// volante channel
|
|
1299
|
+
volante: boolean;
|
|
1298
1300
|
}
|
|
1299
1301
|
|
|
1300
1302
|
export interface ConsumerDiscountDTO {
|
|
@@ -1314,6 +1316,7 @@ export interface ConsumerDiscountDTO {
|
|
|
1314
1316
|
meta?: ConsumerDiscountMeta;
|
|
1315
1317
|
channelConfig: ConsumerDiscountChannelConfig;
|
|
1316
1318
|
appliesTo: Record<string, any>;
|
|
1319
|
+
type: Record<string, any>;
|
|
1317
1320
|
}
|
|
1318
1321
|
|
|
1319
1322
|
export interface ConsumerMenuHours {
|
|
@@ -1567,6 +1570,8 @@ export interface GetConsumerLocationGroupResponse {
|
|
|
1567
1570
|
};
|
|
1568
1571
|
// timezone
|
|
1569
1572
|
timezone?: string;
|
|
1573
|
+
// site operational status
|
|
1574
|
+
status?: Record<string, any>;
|
|
1570
1575
|
locations?: ConsumerLocation[];
|
|
1571
1576
|
address?: ConsumerAddress;
|
|
1572
1577
|
}
|
|
@@ -2750,6 +2755,8 @@ export interface ConsumerRedemption {
|
|
|
2750
2755
|
export interface ConsumerTenderIs {
|
|
2751
2756
|
// tender is validated or not by the user
|
|
2752
2757
|
validated?: boolean;
|
|
2758
|
+
// tender is supports split tender or not
|
|
2759
|
+
supports_split_tender?: boolean;
|
|
2753
2760
|
}
|
|
2754
2761
|
|
|
2755
2762
|
export interface ConsumerTender {
|
|
@@ -3725,6 +3732,8 @@ export interface GetConsumerLocationMultigroupPath {
|
|
|
3725
3732
|
}
|
|
3726
3733
|
|
|
3727
3734
|
export interface GetConsumerLocationMultigroupQuery {
|
|
3735
|
+
// Site statuses to include. Accepts a comma-separated list (e.g. active,inactive). Allowed values: active, inactive. Defaults to returning only active sites.
|
|
3736
|
+
status?: ('active' | 'inactive')[];
|
|
3728
3737
|
// Latitude of the user
|
|
3729
3738
|
latitude?: number;
|
|
3730
3739
|
// Longitude of the user
|
|
@@ -3733,16 +3742,18 @@ export interface GetConsumerLocationMultigroupQuery {
|
|
|
3733
3742
|
merge?: string;
|
|
3734
3743
|
// Include brands config
|
|
3735
3744
|
expanded?: boolean;
|
|
3736
|
-
// Public config only
|
|
3737
|
-
hours?: boolean;
|
|
3738
3745
|
// Extended
|
|
3739
3746
|
extended?: boolean;
|
|
3747
|
+
// Public config only
|
|
3748
|
+
hours?: boolean;
|
|
3740
3749
|
// Web
|
|
3741
3750
|
web?: boolean;
|
|
3742
3751
|
// Non marketplace
|
|
3743
3752
|
non_market_places?: boolean;
|
|
3744
3753
|
// Non scan go
|
|
3745
3754
|
non_scan_go?: boolean;
|
|
3755
|
+
_query?: string;
|
|
3756
|
+
nocache?: boolean;
|
|
3746
3757
|
}
|
|
3747
3758
|
|
|
3748
3759
|
export type GetConsumerLocationMultigroupResponse = GetConsumerLocationMultiGroupResponse;
|
|
@@ -3894,11 +3905,6 @@ export interface GetPaymentCashlessConsumerPath {
|
|
|
3894
3905
|
id: string;
|
|
3895
3906
|
}
|
|
3896
3907
|
|
|
3897
|
-
export interface GetPaymentCashlessConsumerQuery {
|
|
3898
|
-
// Graphql query string
|
|
3899
|
-
_query?: string;
|
|
3900
|
-
}
|
|
3901
|
-
|
|
3902
3908
|
export type GetPaymentCashlessConsumerResponse = ConsumerGetPaymentCashlessResponse;
|
|
3903
3909
|
|
|
3904
3910
|
// POST /consumer/payment/{id}/cashless - post payment cashless tenders
|
package/src/interface/menu.ts
CHANGED
|
@@ -2019,6 +2019,21 @@ export interface PutUniversalItemEntity {
|
|
|
2019
2019
|
price?: number;
|
|
2020
2020
|
}
|
|
2021
2021
|
|
|
2022
|
+
export interface BrandStatusEntityDTO {
|
|
2023
|
+
brand_id: string;
|
|
2024
|
+
type: string;
|
|
2025
|
+
status: string;
|
|
2026
|
+
metadata?: Record<string, any>;
|
|
2027
|
+
id: string;
|
|
2028
|
+
created_at?: string;
|
|
2029
|
+
updated_at?: string;
|
|
2030
|
+
deleted_at?: string;
|
|
2031
|
+
version?: number;
|
|
2032
|
+
brand?: DraftBrandDTO;
|
|
2033
|
+
permissions?: Record<string, any>;
|
|
2034
|
+
[index: string]: any;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2022
2037
|
export interface DraftModifierGroupEntityDTO {
|
|
2023
2038
|
parent?: DraftModifierGroupDTO;
|
|
2024
2039
|
children?: DraftModifierGroupDTO[];
|
|
@@ -8331,6 +8346,18 @@ export interface DeleteMenuV4BrandResponse {
|
|
|
8331
8346
|
|
|
8332
8347
|
export interface DeleteMenuV4BrandRequest extends BaseRequest, DeleteMenuV4BrandPath {}
|
|
8333
8348
|
|
|
8349
|
+
// GET /menu/v4/brand/{id}/statuses
|
|
8350
|
+
|
|
8351
|
+
export interface GetMenuV4BrandStatusesPath {
|
|
8352
|
+
id: string;
|
|
8353
|
+
}
|
|
8354
|
+
|
|
8355
|
+
export interface GetMenuV4BrandStatusesResponse {
|
|
8356
|
+
results?: BrandStatusEntityDTO[];
|
|
8357
|
+
}
|
|
8358
|
+
|
|
8359
|
+
export interface GetMenuV4BrandStatusesRequest extends BaseRequest, GetMenuV4BrandStatusesPath {}
|
|
8360
|
+
|
|
8334
8361
|
// POST /menu/v4/brand/{id}/attachment/{name}
|
|
8335
8362
|
|
|
8336
8363
|
export interface PostMenuV4BrandAttachmentPath {
|