@compassdigital/sdk.typescript 4.107.0 → 4.109.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 +49 -44
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +54 -44
- package/lib/index.js.map +1 -1
- package/lib/interface/auth.d.ts +5 -0
- package/lib/interface/auth.d.ts.map +1 -1
- package/lib/interface/centricos.d.ts +100 -53
- package/lib/interface/centricos.d.ts.map +1 -1
- package/lib/interface/consumer.d.ts +17 -0
- package/lib/interface/consumer.d.ts.map +1 -1
- package/lib/interface/discount.d.ts +25 -18
- package/lib/interface/discount.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 +15 -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/search.d.ts +7 -2
- package/lib/interface/search.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 +4 -4
- package/package.json +1 -1
- package/src/index.ts +128 -111
- package/src/interface/auth.ts +6 -0
- package/src/interface/centricos.ts +165 -62
- package/src/interface/consumer.ts +31 -0
- package/src/interface/discount.ts +32 -19
- package/src/interface/mealplan.ts +1 -0
- package/src/interface/menu.ts +15 -2
- package/src/interface/promo.ts +73 -0
- package/src/interface/search.ts +8 -2
- package/src/interface/user.ts +14 -2
|
@@ -762,6 +762,27 @@ export interface PostReviewOrderItemsResponseDTO {
|
|
|
762
762
|
reviews: OrderItemReview[];
|
|
763
763
|
}
|
|
764
764
|
|
|
765
|
+
export interface HomePageRequest {
|
|
766
|
+
// site id
|
|
767
|
+
siteId: string;
|
|
768
|
+
// start date as a long
|
|
769
|
+
start: number;
|
|
770
|
+
// end date as a long
|
|
771
|
+
end: number;
|
|
772
|
+
// current date as a long
|
|
773
|
+
date: number;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
export interface HomePageResponse {
|
|
777
|
+
// valid diverse greeting messages
|
|
778
|
+
greetingMessage: Record<string, any>[];
|
|
779
|
+
// valid hero images
|
|
780
|
+
heroImages: Record<string, any>[];
|
|
781
|
+
orders: Record<string, any>[][];
|
|
782
|
+
// location object for the site
|
|
783
|
+
location: Record<string, any>;
|
|
784
|
+
}
|
|
785
|
+
|
|
765
786
|
// GET /consumer/v1/health-check
|
|
766
787
|
|
|
767
788
|
export interface HealthCheckControllerExecuteQuery {
|
|
@@ -824,3 +845,13 @@ export type PostReviewOrderItemsResponse = PostReviewOrderItemsResponseDTO;
|
|
|
824
845
|
export interface PostReviewOrderItemsRequest extends BaseRequest {
|
|
825
846
|
body: PostReviewOrderItemsBody;
|
|
826
847
|
}
|
|
848
|
+
|
|
849
|
+
// POST /consumer/home - Provide the front end all the data required to render the home page
|
|
850
|
+
|
|
851
|
+
export type PostHomePageBody = HomePageRequest;
|
|
852
|
+
|
|
853
|
+
export type PostHomePageResponse = HomePageResponse;
|
|
854
|
+
|
|
855
|
+
export interface PostHomePageRequest extends BaseRequest {
|
|
856
|
+
body: PostHomePageBody;
|
|
857
|
+
}
|
|
@@ -37,11 +37,12 @@ export interface DiscountMeta {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
export interface GetDiscountResponseDTO {
|
|
40
|
+
// discount id
|
|
41
|
+
id: string;
|
|
40
42
|
// user id of discount creator
|
|
41
43
|
createdBy: string;
|
|
42
44
|
// user id of most recent update
|
|
43
45
|
updatedBy: string;
|
|
44
|
-
id: string;
|
|
45
46
|
createdAt: string;
|
|
46
47
|
updatedAt: string;
|
|
47
48
|
name: string;
|
|
@@ -50,6 +51,12 @@ export interface GetDiscountResponseDTO {
|
|
|
50
51
|
meta?: DiscountMeta;
|
|
51
52
|
}
|
|
52
53
|
|
|
54
|
+
export interface BadRequestErrorDTO {
|
|
55
|
+
message: string;
|
|
56
|
+
code: number;
|
|
57
|
+
data: Record<string, any>;
|
|
58
|
+
}
|
|
59
|
+
|
|
53
60
|
export interface UnauthorizedErrorDTO {
|
|
54
61
|
message: string;
|
|
55
62
|
code: number;
|
|
@@ -62,12 +69,15 @@ export interface NotFoundErrorDTO {
|
|
|
62
69
|
data: Record<string, any>;
|
|
63
70
|
}
|
|
64
71
|
|
|
72
|
+
export type InternalServerErrorException = Record<string, any>;
|
|
73
|
+
|
|
65
74
|
export interface DiscountDTO {
|
|
75
|
+
// discount id
|
|
76
|
+
id: string;
|
|
66
77
|
// user id of discount creator
|
|
67
78
|
createdBy: string;
|
|
68
79
|
// user id of most recent update
|
|
69
80
|
updatedBy: string;
|
|
70
|
-
id: string;
|
|
71
81
|
createdAt: string;
|
|
72
82
|
updatedAt: string;
|
|
73
83
|
name: string;
|
|
@@ -80,30 +90,38 @@ export interface GetDiscountsResponseDTO {
|
|
|
80
90
|
discounts: DiscountDTO[];
|
|
81
91
|
}
|
|
82
92
|
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
data: Record<string, any>;
|
|
93
|
+
export interface DiscountTaxonomy {
|
|
94
|
+
site?: string[];
|
|
95
|
+
brand?: string[];
|
|
87
96
|
}
|
|
88
97
|
|
|
89
98
|
export interface PostDiscountRequestDTO {
|
|
90
99
|
createdBy: string;
|
|
100
|
+
updatedBy?: string;
|
|
91
101
|
name: string;
|
|
102
|
+
status?: DiscountStatus;
|
|
103
|
+
is?: DiscountIs;
|
|
104
|
+
meta?: DiscountMeta;
|
|
105
|
+
taxonomy?: DiscountTaxonomy;
|
|
92
106
|
}
|
|
93
107
|
|
|
94
108
|
export interface PostDiscountResponseDTO {
|
|
95
|
-
createdBy: string;
|
|
96
|
-
name: string;
|
|
97
109
|
id: string;
|
|
98
110
|
createdAt: string;
|
|
99
111
|
updatedAt: string;
|
|
100
112
|
updatedBy: string;
|
|
113
|
+
name: string;
|
|
114
|
+
status?: DiscountStatus;
|
|
115
|
+
is?: DiscountIs;
|
|
116
|
+
meta?: DiscountMeta;
|
|
117
|
+
taxonomy?: DiscountTaxonomy;
|
|
118
|
+
createdBy: string;
|
|
101
119
|
}
|
|
102
120
|
|
|
103
121
|
export interface PutDiscountRequestDTO {
|
|
104
122
|
// user id of most recent update
|
|
105
123
|
updatedBy: string;
|
|
106
|
-
taxonomy?:
|
|
124
|
+
taxonomy?: DiscountTaxonomy;
|
|
107
125
|
name: string;
|
|
108
126
|
status?: DiscountStatus;
|
|
109
127
|
is?: DiscountIs;
|
|
@@ -111,11 +129,12 @@ export interface PutDiscountRequestDTO {
|
|
|
111
129
|
}
|
|
112
130
|
|
|
113
131
|
export interface PutDiscountResponseDTO {
|
|
132
|
+
// discount id
|
|
133
|
+
id: string;
|
|
114
134
|
// user id of discount creator
|
|
115
135
|
createdBy: string;
|
|
116
136
|
// user id of most recent update
|
|
117
137
|
updatedBy: string;
|
|
118
|
-
id: string;
|
|
119
138
|
createdAt: string;
|
|
120
139
|
updatedAt: string;
|
|
121
140
|
name: string;
|
|
@@ -124,24 +143,18 @@ export interface PutDiscountResponseDTO {
|
|
|
124
143
|
meta?: DiscountMeta;
|
|
125
144
|
}
|
|
126
145
|
|
|
127
|
-
export type InternalServerErrorException = Record<string, any>;
|
|
128
|
-
|
|
129
146
|
export interface PutDiscountPublishRequestDTO {
|
|
130
147
|
// user id of most recent update
|
|
131
148
|
updatedBy: string;
|
|
132
|
-
taxonomy?: Record<string, any>;
|
|
133
|
-
name: string;
|
|
134
|
-
status?: DiscountStatus;
|
|
135
|
-
is?: DiscountIs;
|
|
136
|
-
meta?: DiscountMeta;
|
|
137
149
|
}
|
|
138
150
|
|
|
139
151
|
export interface PutDiscountPublishResponseDTO {
|
|
152
|
+
// discount id
|
|
153
|
+
id: string;
|
|
140
154
|
// user id of discount creator
|
|
141
155
|
createdBy: string;
|
|
142
156
|
// user id of most recent update
|
|
143
157
|
updatedBy: string;
|
|
144
|
-
id: string;
|
|
145
158
|
createdAt: string;
|
|
146
159
|
updatedAt: string;
|
|
147
160
|
name: string;
|
|
@@ -157,6 +170,7 @@ export interface DeleteDiscountResponseDTO {
|
|
|
157
170
|
// GET /discount/{id} - Get a discount
|
|
158
171
|
|
|
159
172
|
export interface GetDiscountPath {
|
|
173
|
+
// a discount id
|
|
160
174
|
id: string;
|
|
161
175
|
}
|
|
162
176
|
|
|
@@ -202,7 +216,6 @@ export interface DeleteDiscountRequest extends BaseRequest, DeleteDiscountPath {
|
|
|
202
216
|
|
|
203
217
|
export interface GetDiscountsQuery {
|
|
204
218
|
taxonomyFilter: string;
|
|
205
|
-
active: boolean;
|
|
206
219
|
// Graphql query string
|
|
207
220
|
_query?: string;
|
|
208
221
|
}
|
package/src/interface/menu.ts
CHANGED
|
@@ -723,6 +723,7 @@ export interface DraftItemToModifierGroupRelationshipDTO {
|
|
|
723
723
|
brand?: DraftBrandDTO;
|
|
724
724
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
725
725
|
vendor_metadata?: VendorMetadataDTO[];
|
|
726
|
+
is_global?: boolean;
|
|
726
727
|
permissions?: Record<string, any>;
|
|
727
728
|
[index: string]: any;
|
|
728
729
|
}
|
|
@@ -768,6 +769,7 @@ export interface DraftModifierGroupToModifierRelationshipDTO {
|
|
|
768
769
|
brand?: DraftBrandDTO;
|
|
769
770
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
770
771
|
vendor_metadata?: VendorMetadataDTO[];
|
|
772
|
+
is_global?: boolean;
|
|
771
773
|
permissions?: Record<string, any>;
|
|
772
774
|
[index: string]: any;
|
|
773
775
|
}
|
|
@@ -829,7 +831,7 @@ export interface ReportingMetadataDTO {
|
|
|
829
831
|
}
|
|
830
832
|
|
|
831
833
|
export interface ReportingCategoryMetadataDTO {
|
|
832
|
-
primary?: '
|
|
834
|
+
primary?: 'Alcohol' | 'Beverage' | 'Food' | 'Gift Cards' | 'Snack' | 'Sundry';
|
|
833
835
|
secondary?: string;
|
|
834
836
|
[index: string]: any;
|
|
835
837
|
}
|
|
@@ -1162,6 +1164,7 @@ export interface PublishedItemToModifierGroupRelationshipDTO {
|
|
|
1162
1164
|
item_id?: string;
|
|
1163
1165
|
brand_id?: string;
|
|
1164
1166
|
sequence?: number;
|
|
1167
|
+
is_global?: boolean;
|
|
1165
1168
|
permissions?: Record<string, any>;
|
|
1166
1169
|
[index: string]: any;
|
|
1167
1170
|
}
|
|
@@ -1191,6 +1194,7 @@ export interface PublishedModifierGroupToModifierRelationshipDTO {
|
|
|
1191
1194
|
modifier_group_id?: string;
|
|
1192
1195
|
brand_id?: string;
|
|
1193
1196
|
sequence?: number;
|
|
1197
|
+
is_global?: boolean;
|
|
1194
1198
|
permissions?: Record<string, any>;
|
|
1195
1199
|
[index: string]: any;
|
|
1196
1200
|
}
|
|
@@ -5573,6 +5577,7 @@ export interface PostMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
5573
5577
|
brand?: DraftBrandDTO;
|
|
5574
5578
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
5575
5579
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5580
|
+
is_global?: boolean;
|
|
5576
5581
|
permissions?: Record<string, any>;
|
|
5577
5582
|
[index: string]: any;
|
|
5578
5583
|
}
|
|
@@ -5629,6 +5634,7 @@ export interface PatchMenuV3DraftItemRelationshipsModifierGroupBody {
|
|
|
5629
5634
|
brand?: DraftBrandDTO;
|
|
5630
5635
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
5631
5636
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5637
|
+
is_global?: boolean;
|
|
5632
5638
|
permissions?: Record<string, any>;
|
|
5633
5639
|
[index: string]: any;
|
|
5634
5640
|
}
|
|
@@ -5707,6 +5713,7 @@ export type PostMenuV3DraftItemRelationshipsModifierGroupsBody = {
|
|
|
5707
5713
|
brand?: DraftBrandDTO;
|
|
5708
5714
|
changes?: ItemToModifierGroupRelationshipChangeDTO[];
|
|
5709
5715
|
vendor_metadata?: VendorMetadataDTO[];
|
|
5716
|
+
is_global?: boolean;
|
|
5710
5717
|
permissions?: Record<string, any>;
|
|
5711
5718
|
[index: string]: any;
|
|
5712
5719
|
}[];
|
|
@@ -6208,6 +6215,7 @@ export interface PostMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
6208
6215
|
brand?: DraftBrandDTO;
|
|
6209
6216
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6210
6217
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6218
|
+
is_global?: boolean;
|
|
6211
6219
|
permissions?: Record<string, any>;
|
|
6212
6220
|
[index: string]: any;
|
|
6213
6221
|
}
|
|
@@ -6264,6 +6272,7 @@ export interface PatchMenuV3DraftModifierGroupRelationshipsModifierBody {
|
|
|
6264
6272
|
brand?: DraftBrandDTO;
|
|
6265
6273
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6266
6274
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6275
|
+
is_global?: boolean;
|
|
6267
6276
|
permissions?: Record<string, any>;
|
|
6268
6277
|
[index: string]: any;
|
|
6269
6278
|
}
|
|
@@ -6342,6 +6351,7 @@ export type PostMenuV3DraftModifierGroupRelationshipsModifiersBody = {
|
|
|
6342
6351
|
brand?: DraftBrandDTO;
|
|
6343
6352
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
6344
6353
|
vendor_metadata?: VendorMetadataDTO[];
|
|
6354
|
+
is_global?: boolean;
|
|
6345
6355
|
permissions?: Record<string, any>;
|
|
6346
6356
|
[index: string]: any;
|
|
6347
6357
|
}[];
|
|
@@ -7037,7 +7047,7 @@ export interface PostMenuV3GlobalDiffRecoverRequest
|
|
|
7037
7047
|
|
|
7038
7048
|
export interface GetMenuV3MenuworksQuery {
|
|
7039
7049
|
unit_id?: string;
|
|
7040
|
-
MRN?:
|
|
7050
|
+
MRN?: string;
|
|
7041
7051
|
// Graphql query string
|
|
7042
7052
|
_query?: string;
|
|
7043
7053
|
}
|
|
@@ -7048,6 +7058,7 @@ export interface GetMenuV3MenuworksResponse {
|
|
|
7048
7058
|
name?: string;
|
|
7049
7059
|
short_name?: string;
|
|
7050
7060
|
description?: string;
|
|
7061
|
+
portion_size: string;
|
|
7051
7062
|
MRN?: string;
|
|
7052
7063
|
portion_quantity?: number;
|
|
7053
7064
|
portion_unit_name?: string;
|
|
@@ -9280,6 +9291,7 @@ export type PostMenuV4ModifierGroupAttachModifiersBody = {
|
|
|
9280
9291
|
brand?: DraftBrandDTO;
|
|
9281
9292
|
changes?: ModifierGroupToModifierRelationshipChangeDTO[];
|
|
9282
9293
|
vendor_metadata?: VendorMetadataDTO[];
|
|
9294
|
+
is_global?: boolean;
|
|
9283
9295
|
permissions?: Record<string, any>;
|
|
9284
9296
|
[index: string]: any;
|
|
9285
9297
|
}[];
|
|
@@ -9571,6 +9583,7 @@ export interface PostMenuV4ScheduleMenuRequest extends BaseRequest {
|
|
|
9571
9583
|
|
|
9572
9584
|
export interface PostMenuV4UnscheduleMenuBody {
|
|
9573
9585
|
menu_id: string;
|
|
9586
|
+
station_id: string;
|
|
9574
9587
|
[index: string]: any;
|
|
9575
9588
|
}
|
|
9576
9589
|
|
package/src/interface/promo.ts
CHANGED
|
@@ -149,6 +149,24 @@ export interface PromoValidateRequest {
|
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
export interface PromoVouchersValidateRequest {
|
|
153
|
+
codes?: string[];
|
|
154
|
+
email?: string;
|
|
155
|
+
app?: string;
|
|
156
|
+
realm?: string;
|
|
157
|
+
location_brand?: string;
|
|
158
|
+
shoppingcart?: {
|
|
159
|
+
id?: string;
|
|
160
|
+
date_created?: string;
|
|
161
|
+
items?: ItemResponse[];
|
|
162
|
+
};
|
|
163
|
+
totals?: {
|
|
164
|
+
amount?: number;
|
|
165
|
+
discount?: number;
|
|
166
|
+
currency?: string;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
|
|
152
170
|
export interface PromoRedeemRequest {
|
|
153
171
|
code?: string;
|
|
154
172
|
email?: string;
|
|
@@ -169,6 +187,26 @@ export interface PromoRedeemRequest {
|
|
|
169
187
|
payment_request_id?: string;
|
|
170
188
|
}
|
|
171
189
|
|
|
190
|
+
export interface PromoRedeemVouchersRequest {
|
|
191
|
+
codes?: string[];
|
|
192
|
+
email?: string;
|
|
193
|
+
app?: string;
|
|
194
|
+
realm?: string;
|
|
195
|
+
location_brand?: string;
|
|
196
|
+
shoppingcart?: {
|
|
197
|
+
id?: string;
|
|
198
|
+
date_created?: string;
|
|
199
|
+
items?: ItemResponse[];
|
|
200
|
+
};
|
|
201
|
+
totals?: {
|
|
202
|
+
amount?: number;
|
|
203
|
+
discount?: number;
|
|
204
|
+
currency?: string;
|
|
205
|
+
};
|
|
206
|
+
provider_data?: FPValidationData;
|
|
207
|
+
payment_request_id?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
172
210
|
export interface CreateVoucher {
|
|
173
211
|
code?: string;
|
|
174
212
|
discount?: {
|
|
@@ -190,6 +228,19 @@ export interface Voucher {
|
|
|
190
228
|
discount?: AppliedDiscount;
|
|
191
229
|
app?: string;
|
|
192
230
|
provider_data?: FPValidationData;
|
|
231
|
+
redeemables?: Redeemable[];
|
|
232
|
+
[index: string]: any;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface Redeemable {
|
|
236
|
+
status?: string;
|
|
237
|
+
// redeemable
|
|
238
|
+
id?: string;
|
|
239
|
+
object?: string;
|
|
240
|
+
result?: {
|
|
241
|
+
discount?: AppliedDiscount;
|
|
242
|
+
[index: string]: any;
|
|
243
|
+
};
|
|
193
244
|
[index: string]: any;
|
|
194
245
|
}
|
|
195
246
|
|
|
@@ -510,6 +561,16 @@ export interface PostPromoValidateVoucherRequest extends BaseRequest {
|
|
|
510
561
|
body: PostPromoValidateVoucherBody;
|
|
511
562
|
}
|
|
512
563
|
|
|
564
|
+
// POST /promo/validate/vouchers - Validate multiple promo vouchers
|
|
565
|
+
|
|
566
|
+
export type PostPromoValidateVouchersBody = PromoVouchersValidateRequest;
|
|
567
|
+
|
|
568
|
+
export type PostPromoValidateVouchersResponse = Voucher;
|
|
569
|
+
|
|
570
|
+
export interface PostPromoValidateVouchersRequest extends BaseRequest {
|
|
571
|
+
body: PostPromoValidateVouchersBody;
|
|
572
|
+
}
|
|
573
|
+
|
|
513
574
|
// POST /promo/redeem/voucher - Redeem a promo voucher
|
|
514
575
|
|
|
515
576
|
export type PostPromoRedeemVoucherBody = PromoRedeemRequest;
|
|
@@ -520,6 +581,18 @@ export interface PostPromoRedeemVoucherRequest extends BaseRequest {
|
|
|
520
581
|
body: PostPromoRedeemVoucherBody;
|
|
521
582
|
}
|
|
522
583
|
|
|
584
|
+
// POST /promo/redeem/vouchers - Redeem multiple promo vouchers
|
|
585
|
+
|
|
586
|
+
export type PostPromoRedeemVouchersBody = PromoRedeemVouchersRequest;
|
|
587
|
+
|
|
588
|
+
export interface PostPromoRedeemVouchersResponse {
|
|
589
|
+
redemptions?: Redemption[];
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export interface PostPromoRedeemVouchersRequest extends BaseRequest {
|
|
593
|
+
body: PostPromoRedeemVouchersBody;
|
|
594
|
+
}
|
|
595
|
+
|
|
523
596
|
// POST /promo/voucher - Create new voucher
|
|
524
597
|
|
|
525
598
|
export type PostPromoVoucherBody = CreateVoucher;
|
package/src/interface/search.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { RequestQuery, BaseRequest } from './util';
|
|
|
6
6
|
export interface MetaResultsDto {
|
|
7
7
|
limit: number;
|
|
8
8
|
page: number;
|
|
9
|
-
sortBy?:
|
|
10
|
-
sortOrder?:
|
|
9
|
+
sortBy?: string;
|
|
10
|
+
sortOrder?: string;
|
|
11
11
|
totalResults: number;
|
|
12
12
|
totalPages: number;
|
|
13
13
|
resultsCount: number;
|
|
@@ -84,6 +84,12 @@ export interface GetOrderPaginatedResult {
|
|
|
84
84
|
results: GetOrderDto[];
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
export interface UnauthorizedErrorDTO {
|
|
88
|
+
message: string;
|
|
89
|
+
code: number;
|
|
90
|
+
data: Record<string, any>;
|
|
91
|
+
}
|
|
92
|
+
|
|
87
93
|
export interface GetLocationDto {
|
|
88
94
|
source_id: string;
|
|
89
95
|
source_type: string;
|
package/src/interface/user.ts
CHANGED
|
@@ -322,6 +322,11 @@ export interface UserMeta {
|
|
|
322
322
|
[index: string]: any;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
+
export interface Pagination {
|
|
326
|
+
last_key?: string;
|
|
327
|
+
count?: number;
|
|
328
|
+
}
|
|
329
|
+
|
|
325
330
|
// GET /user/auth - Gets the JWT token for a user
|
|
326
331
|
|
|
327
332
|
export interface GetUserAuthQuery {
|
|
@@ -645,17 +650,24 @@ export interface GetUserRealmUsersPath {
|
|
|
645
650
|
}
|
|
646
651
|
|
|
647
652
|
export interface GetUserRealmUsersQuery {
|
|
648
|
-
// Max number of records to return. Defaults to 100
|
|
653
|
+
// Max number of records to return. Defaults to 100. Max 10,000.
|
|
649
654
|
max?: number;
|
|
650
655
|
// Last modified date greater than this parameter
|
|
651
656
|
lastmodified_start?: string;
|
|
652
657
|
// Use ACL permission system
|
|
653
658
|
acl?: boolean;
|
|
659
|
+
// If true, the response will include pagination metadata
|
|
660
|
+
paginate?: boolean;
|
|
661
|
+
// The last key from the previous response for pagination
|
|
662
|
+
last_key?: string;
|
|
654
663
|
// Graphql query string
|
|
655
664
|
_query?: string;
|
|
656
665
|
}
|
|
657
666
|
|
|
658
|
-
export
|
|
667
|
+
export interface GetUserRealmUsersResponse {
|
|
668
|
+
users?: User[];
|
|
669
|
+
meta?: Pagination;
|
|
670
|
+
}
|
|
659
671
|
|
|
660
672
|
export interface GetUserRealmUsersRequest
|
|
661
673
|
extends BaseRequest,
|