@compassdigital/sdk.typescript 4.108.0 → 4.110.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 +115 -12
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +125 -10
- package/lib/index.js.map +1 -1
- package/lib/interface/ai.d.ts +0 -10
- package/lib/interface/ai.d.ts.map +1 -1
- package/lib/interface/auth.d.ts +5 -22
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +88 -69
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +174 -14
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +25 -29
- package/lib/interface/discount.d.ts.map +1 -1
- package/lib/interface/frictionless.d.ts +0 -25
- package/lib/interface/frictionless.d.ts.map +1 -1
- package/lib/interface/menu.d.ts +14 -2
- package/lib/interface/menu.d.ts.map +1 -1
- package/lib/interface/promo.d.ts +59 -0
- package/lib/interface/promo.d.ts.map +1 -1
- package/lib/interface/review.d.ts +0 -8
- package/lib/interface/review.d.ts.map +1 -1
- package/lib/interface/search.d.ts +7 -7
- package/lib/interface/search.d.ts.map +1 -1
- package/lib/interface/tax.d.ts +0 -6
- package/lib/interface/tax.d.ts.map +1 -1
- package/lib/interface/user.d.ts +10 -1
- package/lib/interface/user.d.ts.map +1 -1
- package/manifest.json +36 -9
- package/package.json +2 -2
- package/pipeline.yml +1 -0
- package/src/index.ts +304 -18
- package/src/interface/ai.ts +0 -12
- package/src/interface/auth.ts +6 -30
- package/src/interface/centricos.ts +146 -108
- package/src/interface/consumer.ts +277 -23
- package/src/interface/discount.ts +32 -35
- package/src/interface/frictionless.ts +0 -47
- package/src/interface/menu.ts +14 -2
- package/src/interface/promo.ts +73 -0
- package/src/interface/review.ts +0 -11
- package/src/interface/search.ts +8 -8
- package/src/interface/tax.ts +0 -6
- package/src/interface/user.ts +14 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RequestQuery, BaseRequest } from './util';
|
|
2
1
|
export interface DiscountStatus {
|
|
3
2
|
live?: boolean;
|
|
4
3
|
publishedTo3rdParty?: boolean;
|
|
@@ -27,9 +26,9 @@ export interface DiscountMeta {
|
|
|
27
26
|
provider: MetaProvider;
|
|
28
27
|
}
|
|
29
28
|
export interface GetDiscountResponseDTO {
|
|
29
|
+
id: string;
|
|
30
30
|
createdBy: string;
|
|
31
31
|
updatedBy: string;
|
|
32
|
-
id: string;
|
|
33
32
|
createdAt: string;
|
|
34
33
|
updatedAt: string;
|
|
35
34
|
name: string;
|
|
@@ -37,6 +36,11 @@ export interface GetDiscountResponseDTO {
|
|
|
37
36
|
is?: DiscountIs;
|
|
38
37
|
meta?: DiscountMeta;
|
|
39
38
|
}
|
|
39
|
+
export interface BadRequestErrorDTO {
|
|
40
|
+
message: string;
|
|
41
|
+
code: number;
|
|
42
|
+
data: Record<string, any>;
|
|
43
|
+
}
|
|
40
44
|
export interface UnauthorizedErrorDTO {
|
|
41
45
|
message: string;
|
|
42
46
|
code: number;
|
|
@@ -47,10 +51,11 @@ export interface NotFoundErrorDTO {
|
|
|
47
51
|
code: number;
|
|
48
52
|
data: Record<string, any>;
|
|
49
53
|
}
|
|
54
|
+
export type InternalServerErrorException = Record<string, any>;
|
|
50
55
|
export interface DiscountDTO {
|
|
56
|
+
id: string;
|
|
51
57
|
createdBy: string;
|
|
52
58
|
updatedBy: string;
|
|
53
|
-
id: string;
|
|
54
59
|
createdAt: string;
|
|
55
60
|
updatedAt: string;
|
|
56
61
|
name: string;
|
|
@@ -61,35 +66,43 @@ export interface DiscountDTO {
|
|
|
61
66
|
export interface GetDiscountsResponseDTO {
|
|
62
67
|
discounts: DiscountDTO[];
|
|
63
68
|
}
|
|
64
|
-
export interface
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
data: Record<string, any>;
|
|
69
|
+
export interface DiscountTaxonomy {
|
|
70
|
+
site?: string[];
|
|
71
|
+
brand?: string[];
|
|
68
72
|
}
|
|
69
73
|
export interface PostDiscountRequestDTO {
|
|
70
74
|
createdBy: string;
|
|
75
|
+
updatedBy?: string;
|
|
71
76
|
name: string;
|
|
77
|
+
status?: DiscountStatus;
|
|
78
|
+
is?: DiscountIs;
|
|
79
|
+
meta?: DiscountMeta;
|
|
80
|
+
taxonomy?: DiscountTaxonomy;
|
|
72
81
|
}
|
|
73
82
|
export interface PostDiscountResponseDTO {
|
|
74
|
-
createdBy: string;
|
|
75
|
-
name: string;
|
|
76
83
|
id: string;
|
|
77
84
|
createdAt: string;
|
|
78
85
|
updatedAt: string;
|
|
79
86
|
updatedBy: string;
|
|
87
|
+
name: string;
|
|
88
|
+
status?: DiscountStatus;
|
|
89
|
+
is?: DiscountIs;
|
|
90
|
+
meta?: DiscountMeta;
|
|
91
|
+
taxonomy?: DiscountTaxonomy;
|
|
92
|
+
createdBy: string;
|
|
80
93
|
}
|
|
81
94
|
export interface PutDiscountRequestDTO {
|
|
82
95
|
updatedBy: string;
|
|
83
|
-
taxonomy?:
|
|
96
|
+
taxonomy?: DiscountTaxonomy;
|
|
84
97
|
name: string;
|
|
85
98
|
status?: DiscountStatus;
|
|
86
99
|
is?: DiscountIs;
|
|
87
100
|
meta?: DiscountMeta;
|
|
88
101
|
}
|
|
89
102
|
export interface PutDiscountResponseDTO {
|
|
103
|
+
id: string;
|
|
90
104
|
createdBy: string;
|
|
91
105
|
updatedBy: string;
|
|
92
|
-
id: string;
|
|
93
106
|
createdAt: string;
|
|
94
107
|
updatedAt: string;
|
|
95
108
|
name: string;
|
|
@@ -97,14 +110,13 @@ export interface PutDiscountResponseDTO {
|
|
|
97
110
|
is?: DiscountIs;
|
|
98
111
|
meta?: DiscountMeta;
|
|
99
112
|
}
|
|
100
|
-
export type InternalServerErrorException = Record<string, any>;
|
|
101
113
|
export interface PutDiscountPublishRequestDTO {
|
|
102
114
|
updatedBy: string;
|
|
103
115
|
}
|
|
104
116
|
export interface PutDiscountPublishResponseDTO {
|
|
117
|
+
id: string;
|
|
105
118
|
createdBy: string;
|
|
106
119
|
updatedBy: string;
|
|
107
|
-
id: string;
|
|
108
120
|
createdAt: string;
|
|
109
121
|
updatedAt: string;
|
|
110
122
|
name: string;
|
|
@@ -122,41 +134,25 @@ export interface GetDiscountQuery {
|
|
|
122
134
|
_query?: string;
|
|
123
135
|
}
|
|
124
136
|
export type GetDiscountResponse = GetDiscountResponseDTO;
|
|
125
|
-
export interface GetDiscountRequest extends BaseRequest, RequestQuery<GetDiscountQuery>, GetDiscountPath {
|
|
126
|
-
}
|
|
127
137
|
export interface PutDiscountPath {
|
|
128
138
|
id: string;
|
|
129
139
|
}
|
|
130
140
|
export type PutDiscountBody = PutDiscountRequestDTO;
|
|
131
141
|
export type PutDiscountResponse = PutDiscountResponseDTO;
|
|
132
|
-
export interface PutDiscountRequest extends BaseRequest, PutDiscountPath {
|
|
133
|
-
body: PutDiscountBody;
|
|
134
|
-
}
|
|
135
142
|
export interface DeleteDiscountPath {
|
|
136
143
|
id: string;
|
|
137
144
|
}
|
|
138
145
|
export type DeleteDiscountResponse = DeleteDiscountResponseDTO;
|
|
139
|
-
export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {
|
|
140
|
-
}
|
|
141
146
|
export interface GetDiscountsQuery {
|
|
142
147
|
taxonomyFilter: string;
|
|
143
|
-
active: boolean;
|
|
144
148
|
_query?: string;
|
|
145
149
|
}
|
|
146
150
|
export type GetDiscountsResponse = GetDiscountsResponseDTO;
|
|
147
|
-
export interface GetDiscountsRequest extends BaseRequest, RequestQuery<GetDiscountsQuery> {
|
|
148
|
-
}
|
|
149
151
|
export type PostDiscountBody = PostDiscountRequestDTO;
|
|
150
152
|
export type PostDiscountResponse = PostDiscountResponseDTO;
|
|
151
|
-
export interface PostDiscountRequest extends BaseRequest {
|
|
152
|
-
body: PostDiscountBody;
|
|
153
|
-
}
|
|
154
153
|
export interface PutDiscountPublishPath {
|
|
155
154
|
id: string;
|
|
156
155
|
}
|
|
157
156
|
export type PutDiscountPublishBody = PutDiscountPublishRequestDTO;
|
|
158
157
|
export type PutDiscountPublishResponse = PutDiscountPublishResponseDTO;
|
|
159
|
-
export interface PutDiscountPublishRequest extends BaseRequest, PutDiscountPublishPath {
|
|
160
|
-
body: PutDiscountPublishBody;
|
|
161
|
-
}
|
|
162
158
|
//# sourceMappingURL=discount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discount.d.ts","sourceRoot":"","sources":["../../src/interface/discount.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"discount.d.ts","sourceRoot":"","sources":["../../src/interface/discount.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,0BAA0B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACtC;AAED,MAAM,WAAW,YAAY;IAC5B,UAAU,CAAC,EAAE,kBAAkB,CAAC;CAChC;AAED,MAAM,WAAW,YAAY;IAC5B,QAAQ,EAAE,YAAY,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IAEtC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,EAAE,MAAM,CAAC;IAElB,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AAM,0BAA0B,GAAG,6BAA6B,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { RequestQuery, BaseRequest } from './util';
|
|
2
1
|
export interface FrictionlessSupportResponseDTO {
|
|
3
2
|
supported: boolean;
|
|
4
3
|
version?: 'NFC' | 'QR';
|
|
@@ -128,13 +127,8 @@ export interface GetFrictionlessBrandFrictionlessStatusQuery {
|
|
|
128
127
|
_query?: string;
|
|
129
128
|
}
|
|
130
129
|
export type GetFrictionlessBrandFrictionlessStatusResponse = FrictionlessSupportResponseDTO;
|
|
131
|
-
export interface GetFrictionlessBrandFrictionlessStatusRequest extends BaseRequest, RequestQuery<GetFrictionlessBrandFrictionlessStatusQuery>, GetFrictionlessBrandFrictionlessStatusPath {
|
|
132
|
-
}
|
|
133
130
|
export type PostFrictionlessQrCodeBody = CreateFrictionlessQRCodeCommandDTO;
|
|
134
131
|
export type PostFrictionlessQrCodeResponse = QRCodeCreationResponseDTO;
|
|
135
|
-
export interface PostFrictionlessQrCodeRequest extends BaseRequest {
|
|
136
|
-
body: PostFrictionlessQrCodeBody;
|
|
137
|
-
}
|
|
138
132
|
export interface GetFrictionlessCheckinStatusPath {
|
|
139
133
|
id_checkin: string;
|
|
140
134
|
}
|
|
@@ -142,8 +136,6 @@ export interface GetFrictionlessCheckinStatusQuery {
|
|
|
142
136
|
_query?: string;
|
|
143
137
|
}
|
|
144
138
|
export type GetFrictionlessCheckinStatusResponse = GetCheckInStatusResponseDTO;
|
|
145
|
-
export interface GetFrictionlessCheckinStatusRequest extends BaseRequest, RequestQuery<GetFrictionlessCheckinStatusQuery>, GetFrictionlessCheckinStatusPath {
|
|
146
|
-
}
|
|
147
139
|
export interface GetFrictionlessCheckinPath {
|
|
148
140
|
id_checkin: string;
|
|
149
141
|
}
|
|
@@ -151,8 +143,6 @@ export interface GetFrictionlessCheckinQuery {
|
|
|
151
143
|
_query?: string;
|
|
152
144
|
}
|
|
153
145
|
export type GetFrictionlessCheckinResponse = GetCheckinResponseDTO;
|
|
154
|
-
export interface GetFrictionlessCheckinRequest extends BaseRequest, RequestQuery<GetFrictionlessCheckinQuery>, GetFrictionlessCheckinPath {
|
|
155
|
-
}
|
|
156
146
|
export interface GetFrictionlessUsersPaymentIssuesPath {
|
|
157
147
|
user_id: string;
|
|
158
148
|
}
|
|
@@ -160,36 +150,21 @@ export interface GetFrictionlessUsersPaymentIssuesQuery {
|
|
|
160
150
|
_query?: string;
|
|
161
151
|
}
|
|
162
152
|
export type GetFrictionlessUsersPaymentIssuesResponse = CheckInPaymentRequiredDTO[];
|
|
163
|
-
export interface GetFrictionlessUsersPaymentIssuesRequest extends BaseRequest, RequestQuery<GetFrictionlessUsersPaymentIssuesQuery>, GetFrictionlessUsersPaymentIssuesPath {
|
|
164
|
-
}
|
|
165
153
|
export interface GetFrictionlessFailedCheckinsQuery {
|
|
166
154
|
_query?: string;
|
|
167
155
|
}
|
|
168
156
|
export type GetFrictionlessFailedCheckinsResponse = FailedCheckInDTO[];
|
|
169
|
-
export interface GetFrictionlessFailedCheckinsRequest extends BaseRequest, RequestQuery<GetFrictionlessFailedCheckinsQuery> {
|
|
170
|
-
}
|
|
171
157
|
export interface PostFrictionlessCheckinsReprocessPath {
|
|
172
158
|
id_checkin: string;
|
|
173
159
|
}
|
|
174
160
|
export type PostFrictionlessCheckinsReprocessResponse = {};
|
|
175
|
-
export interface PostFrictionlessCheckinsReprocessRequest extends BaseRequest, PostFrictionlessCheckinsReprocessPath {
|
|
176
|
-
}
|
|
177
161
|
export interface PostFrictionlessCheckinReprocessPaymentPath {
|
|
178
162
|
checkin_id: string;
|
|
179
163
|
}
|
|
180
164
|
export type PostFrictionlessCheckinReprocessPaymentBody = PaymentMethodDTO;
|
|
181
165
|
export type PostFrictionlessCheckinReprocessPaymentResponse = {};
|
|
182
|
-
export interface PostFrictionlessCheckinReprocessPaymentRequest extends BaseRequest, PostFrictionlessCheckinReprocessPaymentPath {
|
|
183
|
-
body: PostFrictionlessCheckinReprocessPaymentBody;
|
|
184
|
-
}
|
|
185
166
|
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody = AmazonJWOIdentityKeysRequestDTO;
|
|
186
167
|
export type PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse = AmazonJWOIdentityKeysResponseDTO;
|
|
187
|
-
export interface PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysRequest extends BaseRequest {
|
|
188
|
-
body: PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody;
|
|
189
|
-
}
|
|
190
168
|
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody = AmazonJWOOrderingRequestDTO;
|
|
191
169
|
export type PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse = AmazonJWOOrderingResponseDTO;
|
|
192
|
-
export interface PostFrictionlessAmazonJwoConnectorV1OrderPurchasesRequest extends BaseRequest {
|
|
193
|
-
body: PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody;
|
|
194
|
-
}
|
|
195
170
|
//# sourceMappingURL=frictionless.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frictionless.d.ts","sourceRoot":"","sources":["../../src/interface/frictionless.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"frictionless.d.ts","sourceRoot":"","sources":["../../src/interface/frictionless.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,8BAA8B;IAE9C,SAAS,EAAE,OAAO,CAAC;IAEnB,OAAO,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,oBAAoB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC,MAAM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CAChB;AAED,MAAM,MAAM,8BAA8B,GAAG,qBAAqB,CAAC;AAInE,MAAM,WAAW,qCAAqC;IACrD,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sCAAsC;IAEtD,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,yCAAyC,GAAG,yBAAyB,EAAE,CAAC;AAIpF,MAAM,WAAW,kCAAkC;IAElD,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,qCAAqC,GAAG,gBAAgB,EAAE,CAAC;AAIvE,MAAM,WAAW,qCAAqC;IACrD,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,yCAAyC,GAAG,EAAE,CAAC;AAI3D,MAAM,WAAW,2CAA2C;IAC3D,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,2CAA2C,GAAG,gBAAgB,CAAC;AAE3E,MAAM,MAAM,+CAA+C,GAAG,EAAE,CAAC;AAIjE,MAAM,MAAM,4DAA4D,GACvE,+BAA+B,CAAC;AAEjC,MAAM,MAAM,gEAAgE,GAC3E,gCAAgC,CAAC;AAIlC,MAAM,MAAM,sDAAsD,GAAG,2BAA2B,CAAC;AAEjG,MAAM,MAAM,0DAA0D,GACrE,4BAA4B,CAAC"}
|
package/lib/interface/menu.d.ts
CHANGED
|
@@ -628,6 +628,7 @@ export interface DraftItemToModifierGroupRelationshipDTO {
|
|
|
628
628
|
brand?: DraftBrandDTO;
|
|
629
629
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
630
630
|
vendor_metadata?: VendorMetadataDTO[];
|
|
631
|
+
is_global?: boolean;
|
|
631
632
|
permissions?: Record<string, any>;
|
|
632
633
|
[index: string]: any;
|
|
633
634
|
}
|
|
@@ -671,6 +672,7 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
|
|
|
671
672
|
brand?: DraftBrandDTO;
|
|
672
673
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
673
674
|
vendor_metadata?: VendorMetadataDTO[];
|
|
675
|
+
is_global?: boolean;
|
|
674
676
|
permissions?: Record<string, any>;
|
|
675
677
|
[index: string]: any;
|
|
676
678
|
}
|
|
@@ -728,7 +730,7 @@ export interface ReportingMetadataDTO {
|
|
|
728
730
|
[index: string]: any;
|
|
729
731
|
}
|
|
730
732
|
export interface ReportingCategoryMetadataDTO {
|
|
731
|
-
primary?: '
|
|
733
|
+
primary?: 'Alcohol' | 'Beverage' | 'Food' | 'Gift Cards' | 'Snack' | 'Sundry';
|
|
732
734
|
secondary?: string;
|
|
733
735
|
[index: string]: any;
|
|
734
736
|
}
|
|
@@ -1030,6 +1032,7 @@ export interface PublishedItemToModifierGroupRelationshipDTO {
|
|
|
1030
1032
|
item_id?: string;
|
|
1031
1033
|
brand_id?: string;
|
|
1032
1034
|
sequence?: number;
|
|
1035
|
+
is_global?: boolean;
|
|
1033
1036
|
permissions?: Record<string, any>;
|
|
1034
1037
|
[index: string]: any;
|
|
1035
1038
|
}
|
|
@@ -1057,6 +1060,7 @@ export interface PublishedModifierGroupToModifierRelationshipDTO {
|
|
|
1057
1060
|
modifier_group_id?: string;
|
|
1058
1061
|
brand_id?: string;
|
|
1059
1062
|
sequence?: number;
|
|
1063
|
+
is_global?: boolean;
|
|
1060
1064
|
permissions?: Record<string, any>;
|
|
1061
1065
|
[index: string]: any;
|
|
1062
1066
|
}
|
|
@@ -4022,6 +4026,7 @@ export interface PostMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
4022
4026
|
brand?: DraftBrandDTO;
|
|
4023
4027
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
4024
4028
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4029
|
+
is_global?: boolean;
|
|
4025
4030
|
permissions?: Record<string, any>;
|
|
4026
4031
|
[index: string]: any;
|
|
4027
4032
|
}
|
|
@@ -4059,6 +4064,7 @@ export interface PatchMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
4059
4064
|
brand?: DraftBrandDTO;
|
|
4060
4065
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
4061
4066
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4067
|
+
is_global?: boolean;
|
|
4062
4068
|
permissions?: Record<string, any>;
|
|
4063
4069
|
[index: string]: any;
|
|
4064
4070
|
}
|
|
@@ -4107,6 +4113,7 @@ export type PostMenuV3DraftItemRelationshipsModifierGroupsBody = {
|
|
|
4107
4113
|
brand?: DraftBrandDTO;
|
|
4108
4114
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
4109
4115
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4116
|
+
is_global?: boolean;
|
|
4110
4117
|
permissions?: Record<string, any>;
|
|
4111
4118
|
[index: string]: any;
|
|
4112
4119
|
}[];
|
|
@@ -4434,6 +4441,7 @@ export interface PostMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
4434
4441
|
brand?: DraftBrandDTO;
|
|
4435
4442
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
4436
4443
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4444
|
+
is_global?: boolean;
|
|
4437
4445
|
permissions?: Record<string, any>;
|
|
4438
4446
|
[index: string]: any;
|
|
4439
4447
|
}
|
|
@@ -4471,6 +4479,7 @@ export interface PatchMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
4471
4479
|
brand?: DraftBrandDTO;
|
|
4472
4480
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
4473
4481
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4482
|
+
is_global?: boolean;
|
|
4474
4483
|
permissions?: Record<string, any>;
|
|
4475
4484
|
[index: string]: any;
|
|
4476
4485
|
}
|
|
@@ -4519,6 +4528,7 @@ export type PostMenuV3DraftModifierGroupRelationshipsModifiersBody = {
|
|
|
4519
4528
|
brand?: DraftBrandDTO;
|
|
4520
4529
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
4521
4530
|
vendor_metadata?: VendorMetadataDTO[];
|
|
4531
|
+
is_global?: boolean;
|
|
4522
4532
|
permissions?: Record<string, any>;
|
|
4523
4533
|
[index: string]: any;
|
|
4524
4534
|
}[];
|
|
@@ -4979,7 +4989,7 @@ export interface PostMenuV3GlobalDiffRecoverRequest extends BaseRequest, PostMen
|
|
|
4979
4989
|
}
|
|
4980
4990
|
export interface GetMenuV3MenuworksQuery {
|
|
4981
4991
|
unit_id?: string;
|
|
4982
|
-
MRN?:
|
|
4992
|
+
MRN?: string;
|
|
4983
4993
|
_query?: string;
|
|
4984
4994
|
}
|
|
4985
4995
|
export interface GetMenuV3MenuworksResponse {
|
|
@@ -4988,6 +4998,7 @@ export interface GetMenuV3MenuworksResponse {
|
|
|
4988
4998
|
name?: string;
|
|
4989
4999
|
short_name?: string;
|
|
4990
5000
|
description?: string;
|
|
5001
|
+
portion_size: string;
|
|
4991
5002
|
MRN?: string;
|
|
4992
5003
|
portion_quantity?: number;
|
|
4993
5004
|
portion_unit_name?: string;
|
|
@@ -6906,6 +6917,7 @@ export type PostMenuV4ModifierGroupAttachModifiersBody = {
|
|
|
6906
6917
|
brand?: DraftBrandDTO;
|
|
6907
6918
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6908
6919
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6920
|
+
is_global?: boolean;
|
|
6909
6921
|
permissions?: Record<string, any>;
|
|
6910
6922
|
[index: string]: any;
|
|
6911
6923
|
}[];
|