@techzunction/sdk 0.6.6 → 0.8.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/dist/index.cjs +33 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +340 -41
- package/dist/index.d.ts +340 -41
- package/dist/index.js +33 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,89 @@
|
|
|
1
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
2
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
3
|
+
[key: string]: JsonValue;
|
|
4
|
+
};
|
|
5
|
+
type JsonObject = {
|
|
6
|
+
[key: string]: JsonValue;
|
|
7
|
+
};
|
|
8
|
+
/** Nutrition info per 100g or per serving */
|
|
9
|
+
interface NutritionData {
|
|
10
|
+
calories?: number;
|
|
11
|
+
protein?: number;
|
|
12
|
+
carbs?: number;
|
|
13
|
+
fat?: number;
|
|
14
|
+
fiber?: number;
|
|
15
|
+
sugar?: number;
|
|
16
|
+
sodium?: number;
|
|
17
|
+
servingSize?: string;
|
|
18
|
+
[key: string]: string | number | undefined;
|
|
19
|
+
}
|
|
20
|
+
/** Tax configuration for a catalog item */
|
|
21
|
+
interface TaxConfig {
|
|
22
|
+
taxRate?: number;
|
|
23
|
+
taxType?: 'percentage' | 'fixed';
|
|
24
|
+
hsnCode?: string;
|
|
25
|
+
gstRate?: number;
|
|
26
|
+
cessRate?: number;
|
|
27
|
+
inclusiveOfTax?: boolean;
|
|
28
|
+
[key: string]: string | number | boolean | undefined;
|
|
29
|
+
}
|
|
30
|
+
/** Movie credits with cast/crew arrays */
|
|
31
|
+
interface MovieCredits {
|
|
32
|
+
cast: Array<{
|
|
33
|
+
name: string;
|
|
34
|
+
character?: string;
|
|
35
|
+
photoUrl?: string | null;
|
|
36
|
+
}>;
|
|
37
|
+
crew: Array<{
|
|
38
|
+
name: string;
|
|
39
|
+
role: string;
|
|
40
|
+
photoUrl?: string | null;
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
/** Loyalty/Promotion rule config */
|
|
44
|
+
interface RuleConfig {
|
|
45
|
+
type?: string;
|
|
46
|
+
value?: number;
|
|
47
|
+
minOrder?: number;
|
|
48
|
+
maxDiscount?: number;
|
|
49
|
+
applicableItems?: string[];
|
|
50
|
+
[key: string]: string | number | boolean | string[] | undefined;
|
|
51
|
+
}
|
|
52
|
+
/** Plan features map */
|
|
53
|
+
interface PlanFeatures {
|
|
54
|
+
maxProducts?: number;
|
|
55
|
+
maxUsers?: number;
|
|
56
|
+
maxLocations?: number;
|
|
57
|
+
customDomain?: boolean;
|
|
58
|
+
analytics?: boolean;
|
|
59
|
+
apiAccess?: boolean;
|
|
60
|
+
prioritySupport?: boolean;
|
|
61
|
+
[key: string]: string | number | boolean | undefined;
|
|
62
|
+
}
|
|
63
|
+
/** Meal plan item schedule */
|
|
64
|
+
interface MealPlanItem {
|
|
65
|
+
day: number;
|
|
66
|
+
meal: string;
|
|
67
|
+
itemId?: string;
|
|
68
|
+
itemName?: string;
|
|
69
|
+
}
|
|
70
|
+
/** Notification action data */
|
|
71
|
+
interface NotificationData {
|
|
72
|
+
actionUrl?: string;
|
|
73
|
+
orderId?: string;
|
|
74
|
+
bookingId?: string;
|
|
75
|
+
type?: string;
|
|
76
|
+
[key: string]: string | undefined;
|
|
77
|
+
}
|
|
78
|
+
/** Size variation for catalog items */
|
|
79
|
+
interface CatalogSizeVariation {
|
|
80
|
+
id: string;
|
|
81
|
+
name: string;
|
|
82
|
+
groupName: string;
|
|
83
|
+
price: number;
|
|
84
|
+
inStock: boolean;
|
|
85
|
+
sortOrder: number;
|
|
86
|
+
}
|
|
1
87
|
interface TZConfig {
|
|
2
88
|
/** Backend base URL (e.g. https://api.techzunction.com) */
|
|
3
89
|
baseUrl: string;
|
|
@@ -19,34 +105,35 @@ interface TokenStore {
|
|
|
19
105
|
}
|
|
20
106
|
interface ApiError extends Error {
|
|
21
107
|
status: number;
|
|
22
|
-
data?:
|
|
108
|
+
data?: JsonValue;
|
|
23
109
|
}
|
|
24
110
|
interface AuthTokens {
|
|
25
111
|
accessToken: string;
|
|
26
112
|
refreshToken: string;
|
|
27
113
|
}
|
|
114
|
+
/** EndUser as returned by all auth flows (register, login, verifyOtp, completeSignup, socialLogin) */
|
|
28
115
|
interface EndUser {
|
|
29
116
|
id: string;
|
|
30
117
|
name: string | null;
|
|
31
118
|
email: string | null;
|
|
32
119
|
phone: string | null;
|
|
33
120
|
orgId: string;
|
|
34
|
-
}
|
|
35
|
-
interface EndUserProfile {
|
|
36
|
-
id: string;
|
|
37
|
-
name: string | null;
|
|
38
|
-
email: string | null;
|
|
39
|
-
phone: string | null;
|
|
40
|
-
avatarUrl: string | null;
|
|
41
121
|
isPhoneVerified: boolean;
|
|
42
122
|
isEmailVerified: boolean;
|
|
123
|
+
onboardingStep: number;
|
|
124
|
+
avatarUrl: string | null;
|
|
43
125
|
referralCode: string | null;
|
|
126
|
+
}
|
|
127
|
+
/** EndUser profile as returned by GET /storefront/auth/profile (includes createdAt) */
|
|
128
|
+
interface EndUserProfile extends EndUser {
|
|
44
129
|
createdAt: string;
|
|
45
130
|
}
|
|
46
131
|
interface AuthResponse {
|
|
47
132
|
accessToken: string;
|
|
48
133
|
refreshToken: string;
|
|
49
134
|
user: EndUser;
|
|
135
|
+
/** Only present on login — the org's configured primary login identifier */
|
|
136
|
+
primaryLoginId?: string;
|
|
50
137
|
}
|
|
51
138
|
/** Backend AuthUserDto — roles is string[] (role IDs) */
|
|
52
139
|
interface StaffUser {
|
|
@@ -70,11 +157,55 @@ interface PaginationParams {
|
|
|
70
157
|
}
|
|
71
158
|
interface PaginatedResponse<T> {
|
|
72
159
|
data: T[];
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
160
|
+
pagination: {
|
|
161
|
+
page: number;
|
|
162
|
+
limit: number;
|
|
163
|
+
total: number;
|
|
164
|
+
totalPages: number;
|
|
165
|
+
hasNextPage: boolean;
|
|
166
|
+
hasPrevPage: boolean;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
interface ApiResponseEnvelope<T> {
|
|
170
|
+
success: true;
|
|
171
|
+
data: T;
|
|
172
|
+
message: string | null;
|
|
173
|
+
meta: {
|
|
174
|
+
timestamp: string;
|
|
175
|
+
requestId: string;
|
|
176
|
+
} | null;
|
|
177
|
+
}
|
|
178
|
+
interface ApiPaginatedEnvelope<T> {
|
|
179
|
+
success: true;
|
|
180
|
+
data: T[];
|
|
181
|
+
pagination: {
|
|
182
|
+
page: number;
|
|
183
|
+
limit: number;
|
|
184
|
+
total: number;
|
|
185
|
+
totalPages: number;
|
|
186
|
+
hasNextPage: boolean;
|
|
187
|
+
hasPrevPage: boolean;
|
|
188
|
+
};
|
|
189
|
+
message: string | null;
|
|
190
|
+
meta: {
|
|
191
|
+
timestamp: string;
|
|
192
|
+
requestId: string;
|
|
193
|
+
} | null;
|
|
77
194
|
}
|
|
195
|
+
interface ApiErrorEnvelope {
|
|
196
|
+
success: false;
|
|
197
|
+
error: {
|
|
198
|
+
code: string;
|
|
199
|
+
message: string;
|
|
200
|
+
details: string[] | JsonObject | null;
|
|
201
|
+
};
|
|
202
|
+
meta: {
|
|
203
|
+
timestamp: string;
|
|
204
|
+
requestId: string;
|
|
205
|
+
} | null;
|
|
206
|
+
}
|
|
207
|
+
type ApiResult<T> = ApiResponseEnvelope<T> | ApiErrorEnvelope;
|
|
208
|
+
type ApiPaginatedResult<T> = ApiPaginatedEnvelope<T> | ApiErrorEnvelope;
|
|
78
209
|
interface CatalogCategory {
|
|
79
210
|
id: string;
|
|
80
211
|
name: string;
|
|
@@ -91,7 +222,7 @@ interface CatalogItemVariant {
|
|
|
91
222
|
price: number;
|
|
92
223
|
description: string | null;
|
|
93
224
|
imageUrl: string | null;
|
|
94
|
-
nutritionData:
|
|
225
|
+
nutritionData: NutritionData | null;
|
|
95
226
|
isActive: boolean;
|
|
96
227
|
}
|
|
97
228
|
interface CatalogOptionGroup {
|
|
@@ -123,8 +254,9 @@ interface CatalogItem {
|
|
|
123
254
|
sortOrder: number;
|
|
124
255
|
allergens: string[];
|
|
125
256
|
tags: string[];
|
|
126
|
-
taxConfig:
|
|
127
|
-
metadata:
|
|
257
|
+
taxConfig: TaxConfig | null;
|
|
258
|
+
metadata: JsonObject | null;
|
|
259
|
+
sizeVariations: CatalogSizeVariation[];
|
|
128
260
|
variants: CatalogItemVariant[];
|
|
129
261
|
optionGroups: CatalogOptionGroup[];
|
|
130
262
|
}
|
|
@@ -154,21 +286,51 @@ type PaymentMethod = 'online' | 'cod' | 'wallet';
|
|
|
154
286
|
type OrderStatus = 'pending' | 'confirmed' | 'preparing' | 'ready' | 'out_for_delivery' | 'delivered' | 'picked_up' | 'completed' | 'cancelled' | 'refunded';
|
|
155
287
|
interface OrderItem {
|
|
156
288
|
id: string;
|
|
157
|
-
|
|
158
|
-
|
|
289
|
+
itemId: string;
|
|
290
|
+
itemName: string;
|
|
291
|
+
variantType: string;
|
|
292
|
+
sizeVariationId: string | null;
|
|
293
|
+
sizeVariationName: string | null;
|
|
159
294
|
quantity: number;
|
|
160
295
|
unitPrice: number;
|
|
161
296
|
totalPrice: number;
|
|
297
|
+
taxAmount: number;
|
|
298
|
+
metadata: JsonObject | null;
|
|
299
|
+
options: {
|
|
300
|
+
id: string;
|
|
301
|
+
optionId: string;
|
|
302
|
+
optionName: string;
|
|
303
|
+
quantity: number;
|
|
304
|
+
unitPrice: number;
|
|
305
|
+
}[];
|
|
162
306
|
}
|
|
163
307
|
interface Order {
|
|
164
308
|
id: string;
|
|
165
309
|
orderNumber: string;
|
|
166
|
-
|
|
167
|
-
|
|
310
|
+
endUserId: string;
|
|
311
|
+
addressId: string | null;
|
|
312
|
+
locationId: string | null;
|
|
313
|
+
variantType: string;
|
|
314
|
+
status: string;
|
|
315
|
+
orderType: string;
|
|
316
|
+
paymentMethod: string | null;
|
|
317
|
+
customerName: string;
|
|
318
|
+
customerPhone: string;
|
|
319
|
+
customerEmail: string | null;
|
|
168
320
|
subtotal: number;
|
|
321
|
+
taxAmount: number;
|
|
322
|
+
discountAmount: number;
|
|
169
323
|
deliveryFee: number;
|
|
170
|
-
|
|
171
|
-
|
|
324
|
+
packingCharges: number;
|
|
325
|
+
serviceCharge: number;
|
|
326
|
+
totalAmount: number;
|
|
327
|
+
couponCode: string | null;
|
|
328
|
+
loyaltyEarned: number;
|
|
329
|
+
loyaltyRedeemed: number;
|
|
330
|
+
tokenNumber: number | null;
|
|
331
|
+
specialInstructions: string | null;
|
|
332
|
+
scheduledAt: string | null;
|
|
333
|
+
channel: string;
|
|
172
334
|
items: OrderItem[];
|
|
173
335
|
createdAt: string;
|
|
174
336
|
updatedAt: string;
|
|
@@ -201,7 +363,7 @@ interface StoreLocation {
|
|
|
201
363
|
isActive: boolean;
|
|
202
364
|
isPrimary: boolean;
|
|
203
365
|
timezone: string | null;
|
|
204
|
-
metadata:
|
|
366
|
+
metadata: JsonObject | null;
|
|
205
367
|
hours: LocationHours[];
|
|
206
368
|
}
|
|
207
369
|
interface LocationHours {
|
|
@@ -247,7 +409,7 @@ interface LoyaltyReward {
|
|
|
247
409
|
description: string | null;
|
|
248
410
|
pointsCost: number;
|
|
249
411
|
type: string;
|
|
250
|
-
config:
|
|
412
|
+
config: RuleConfig | null;
|
|
251
413
|
imageUrl: string | null;
|
|
252
414
|
isActive: boolean;
|
|
253
415
|
}
|
|
@@ -261,8 +423,12 @@ interface LoyaltyRedemption {
|
|
|
261
423
|
}
|
|
262
424
|
interface CouponValidation {
|
|
263
425
|
valid: boolean;
|
|
426
|
+
code: string;
|
|
427
|
+
name: string;
|
|
264
428
|
discountType: string;
|
|
265
429
|
discountValue: number;
|
|
430
|
+
maxDiscount: number | null;
|
|
431
|
+
calculatedDiscount: number;
|
|
266
432
|
message: string;
|
|
267
433
|
}
|
|
268
434
|
interface Promotion {
|
|
@@ -271,7 +437,7 @@ interface Promotion {
|
|
|
271
437
|
description: string | null;
|
|
272
438
|
imageUrl: string | null;
|
|
273
439
|
type: string;
|
|
274
|
-
config:
|
|
440
|
+
config: RuleConfig | null;
|
|
275
441
|
priority: number;
|
|
276
442
|
isActive: boolean;
|
|
277
443
|
startsAt: string | null;
|
|
@@ -342,16 +508,26 @@ interface ContentPost {
|
|
|
342
508
|
id: string;
|
|
343
509
|
title: string;
|
|
344
510
|
slug: string;
|
|
511
|
+
h1: string | null;
|
|
345
512
|
body: string;
|
|
346
513
|
excerpt: string | null;
|
|
347
514
|
imageUrl: string | null;
|
|
515
|
+
featuredImage: string | null;
|
|
516
|
+
ogImage: string | null;
|
|
348
517
|
category: string | null;
|
|
349
518
|
tags: string[];
|
|
350
519
|
status: string;
|
|
520
|
+
author: string | null;
|
|
351
521
|
authorId: string | null;
|
|
352
|
-
|
|
522
|
+
metaDescription: string | null;
|
|
523
|
+
keywords: string[];
|
|
524
|
+
canonical: string | null;
|
|
525
|
+
datePublished: string | null;
|
|
526
|
+
dateModified: string | null;
|
|
527
|
+
metadata: JsonObject | null;
|
|
353
528
|
publishedAt: string | null;
|
|
354
529
|
createdAt: string;
|
|
530
|
+
updatedAt: string;
|
|
355
531
|
}
|
|
356
532
|
interface Address {
|
|
357
533
|
id: string;
|
|
@@ -372,7 +548,7 @@ interface Notification {
|
|
|
372
548
|
body: string;
|
|
373
549
|
type: string;
|
|
374
550
|
isRead: boolean;
|
|
375
|
-
data:
|
|
551
|
+
data: NotificationData | null;
|
|
376
552
|
createdAt: string;
|
|
377
553
|
}
|
|
378
554
|
interface PropertyType {
|
|
@@ -391,18 +567,30 @@ interface PropertyType {
|
|
|
391
567
|
icon: string | null;
|
|
392
568
|
}>;
|
|
393
569
|
status: string;
|
|
394
|
-
metadata:
|
|
570
|
+
metadata: JsonObject | null;
|
|
395
571
|
}
|
|
396
572
|
interface PropertyBooking {
|
|
397
573
|
id: string;
|
|
398
|
-
|
|
574
|
+
bookingReference: string;
|
|
399
575
|
propertyTypeId: string;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
576
|
+
checkInDate: string;
|
|
577
|
+
checkOutDate: string;
|
|
578
|
+
nights: number;
|
|
579
|
+
guestCount: number;
|
|
580
|
+
guestName: string;
|
|
581
|
+
guestPhone: string;
|
|
582
|
+
guestEmail: string | null;
|
|
583
|
+
baseAmount: number;
|
|
584
|
+
taxAmount: number;
|
|
585
|
+
discountAmount: number;
|
|
586
|
+
extraGuestCharge: number;
|
|
404
587
|
totalAmount: number;
|
|
588
|
+
status: string;
|
|
589
|
+
paymentStatus: string;
|
|
590
|
+
couponCode: string | null;
|
|
591
|
+
specialRequests: string | null;
|
|
405
592
|
createdAt: string;
|
|
593
|
+
updatedAt: string;
|
|
406
594
|
}
|
|
407
595
|
interface PropertyAvailability {
|
|
408
596
|
date: string;
|
|
@@ -441,7 +629,7 @@ interface MovieDetail extends Movie {
|
|
|
441
629
|
buyPriceInr: number | null;
|
|
442
630
|
rentalHours: number | null;
|
|
443
631
|
rentalMaxPlays: number | null;
|
|
444
|
-
credits:
|
|
632
|
+
credits: MovieCredits | null;
|
|
445
633
|
}
|
|
446
634
|
interface TmdbMovie {
|
|
447
635
|
id: number;
|
|
@@ -640,7 +828,7 @@ interface StorefrontConfig {
|
|
|
640
828
|
otpLength: number;
|
|
641
829
|
socialProviders: string[];
|
|
642
830
|
};
|
|
643
|
-
[key: string]:
|
|
831
|
+
[key: string]: JsonValue;
|
|
644
832
|
}
|
|
645
833
|
interface StudentPassStatus {
|
|
646
834
|
id: string;
|
|
@@ -690,7 +878,7 @@ interface MealPlan {
|
|
|
690
878
|
description: string | null;
|
|
691
879
|
price: number;
|
|
692
880
|
durationDays: number;
|
|
693
|
-
items:
|
|
881
|
+
items: MealPlanItem[] | null;
|
|
694
882
|
isActive: boolean;
|
|
695
883
|
subscriptionsCount: number;
|
|
696
884
|
createdAt: string;
|
|
@@ -805,7 +993,7 @@ interface AuditLog {
|
|
|
805
993
|
resource: string;
|
|
806
994
|
resourceId: string;
|
|
807
995
|
userId: string;
|
|
808
|
-
details:
|
|
996
|
+
details: JsonObject | null;
|
|
809
997
|
createdAt: string;
|
|
810
998
|
}
|
|
811
999
|
interface ApiKey {
|
|
@@ -838,7 +1026,7 @@ interface PlatformPlan {
|
|
|
838
1026
|
name: string;
|
|
839
1027
|
price: number;
|
|
840
1028
|
interval: string;
|
|
841
|
-
features:
|
|
1029
|
+
features: PlanFeatures;
|
|
842
1030
|
isActive: boolean;
|
|
843
1031
|
}
|
|
844
1032
|
interface AdminDashboardStats {
|
|
@@ -1322,7 +1510,7 @@ interface AdminLocationDetail extends AdminLocation {
|
|
|
1322
1510
|
}
|
|
1323
1511
|
interface AdminSetting {
|
|
1324
1512
|
key: string;
|
|
1325
|
-
value:
|
|
1513
|
+
value: string | number | boolean;
|
|
1326
1514
|
type: string;
|
|
1327
1515
|
label: string;
|
|
1328
1516
|
description: string | null;
|
|
@@ -1452,7 +1640,7 @@ interface AdminStudentDiscount {
|
|
|
1452
1640
|
totalUses: number;
|
|
1453
1641
|
totalDiscountGiven: number;
|
|
1454
1642
|
createdAt: string;
|
|
1455
|
-
[key: string]:
|
|
1643
|
+
[key: string]: JsonValue;
|
|
1456
1644
|
}
|
|
1457
1645
|
interface AdminInstitution {
|
|
1458
1646
|
id: string;
|
|
@@ -1552,6 +1740,26 @@ interface AdminSyncLog {
|
|
|
1552
1740
|
duration: number | null;
|
|
1553
1741
|
createdAt: string;
|
|
1554
1742
|
}
|
|
1743
|
+
type OrgStatus = 'active' | 'suspended' | 'trial' | 'cancelled';
|
|
1744
|
+
type SuperAdminRole = 'super_admin' | 'support' | 'finance';
|
|
1745
|
+
type UserStatus = 'active' | 'invited' | 'suspended' | 'blocked';
|
|
1746
|
+
type EndUserStatus = 'active' | 'unsubscribed' | 'blocked';
|
|
1747
|
+
type SegmentType = 'static' | 'dynamic';
|
|
1748
|
+
type ApiKeyEnv = 'live' | 'test';
|
|
1749
|
+
type OauthProvider = 'google' | 'github';
|
|
1750
|
+
type OtpType = 'login' | 'phone_verify' | 'email_verify' | 'password_reset';
|
|
1751
|
+
type NotificationType = 'in_app' | 'email' | 'sms' | 'push' | 'whatsapp' | 'webhook';
|
|
1752
|
+
type NotificationStatus = 'pending' | 'sent' | 'delivered' | 'failed' | 'read';
|
|
1753
|
+
type TemplateChannel = 'email' | 'sms' | 'push' | 'whatsapp';
|
|
1754
|
+
type CampaignChannel = 'email' | 'sms' | 'push' | 'whatsapp' | 'multi';
|
|
1755
|
+
type CampaignStatus = 'draft' | 'scheduled' | 'running' | 'paused' | 'completed' | 'failed';
|
|
1756
|
+
type PaymentProviderType = 'razorpay' | 'stripe';
|
|
1757
|
+
type ProductType = 'one_time' | 'subscription';
|
|
1758
|
+
type SubscriptionStatus = 'created' | 'active' | 'paused' | 'cancelled' | 'expired' | 'halted';
|
|
1759
|
+
type PaymentStatus = 'captured' | 'failed' | 'refunded' | 'partially_refunded';
|
|
1760
|
+
type RefundStatus = 'pending' | 'processed' | 'failed';
|
|
1761
|
+
type InvoiceType = 'subscription' | 'usage' | 'manual';
|
|
1762
|
+
type InvoiceStatus = 'draft' | 'sent' | 'paid' | 'overdue' | 'cancelled';
|
|
1555
1763
|
|
|
1556
1764
|
interface RawResponse<T> {
|
|
1557
1765
|
data: T;
|
|
@@ -1930,6 +2138,97 @@ interface ListEarningsQuery extends PaginatedQuery {
|
|
|
1930
2138
|
interface GoogleDriveCallbackDto {
|
|
1931
2139
|
code: string;
|
|
1932
2140
|
}
|
|
2141
|
+
interface SubmitKycDto {
|
|
2142
|
+
documentType: 'aadhaar' | 'pan' | 'passport' | 'voter_id' | 'driving_license';
|
|
2143
|
+
documentNumber: string;
|
|
2144
|
+
documentUrl?: string;
|
|
2145
|
+
selfieUrl?: string;
|
|
2146
|
+
}
|
|
2147
|
+
interface UpdateAccountNicknameDto {
|
|
2148
|
+
nickname: string;
|
|
2149
|
+
}
|
|
2150
|
+
interface SetAutoSweepDto {
|
|
2151
|
+
enabled: boolean;
|
|
2152
|
+
threshold?: number;
|
|
2153
|
+
}
|
|
2154
|
+
interface GetStatementQuery extends PaginatedQuery {
|
|
2155
|
+
startDate?: string;
|
|
2156
|
+
endDate?: string;
|
|
2157
|
+
}
|
|
2158
|
+
interface CreateFixedDepositDto {
|
|
2159
|
+
accountId: string;
|
|
2160
|
+
principalAmount: number;
|
|
2161
|
+
tenureDays: number;
|
|
2162
|
+
autoRenew?: boolean;
|
|
2163
|
+
}
|
|
2164
|
+
interface InitiateTransferDto {
|
|
2165
|
+
senderAccountId: string;
|
|
2166
|
+
beneficiaryAccount: string;
|
|
2167
|
+
beneficiaryIfsc: string;
|
|
2168
|
+
beneficiaryName: string;
|
|
2169
|
+
amount: number;
|
|
2170
|
+
mode: 'neft' | 'rtgs' | 'imps' | 'upi' | 'swift' | 'internal';
|
|
2171
|
+
description?: string;
|
|
2172
|
+
upiId?: string;
|
|
2173
|
+
}
|
|
2174
|
+
interface AddBeneficiaryDto {
|
|
2175
|
+
name: string;
|
|
2176
|
+
accountNumber: string;
|
|
2177
|
+
ifscCode: string;
|
|
2178
|
+
bankName?: string;
|
|
2179
|
+
upiId?: string;
|
|
2180
|
+
nickname?: string;
|
|
2181
|
+
transferLimit?: number;
|
|
2182
|
+
}
|
|
2183
|
+
interface CreateScheduledTransferDto {
|
|
2184
|
+
senderAccountId: string;
|
|
2185
|
+
beneficiaryName: string;
|
|
2186
|
+
beneficiaryAccount: string;
|
|
2187
|
+
beneficiaryIfsc: string;
|
|
2188
|
+
amount: number;
|
|
2189
|
+
mode: 'neft' | 'rtgs' | 'imps' | 'upi' | 'swift' | 'internal';
|
|
2190
|
+
frequency: 'once' | 'daily' | 'weekly' | 'monthly';
|
|
2191
|
+
description?: string;
|
|
2192
|
+
nextExecutionAt: string;
|
|
2193
|
+
endsAt?: string;
|
|
2194
|
+
}
|
|
2195
|
+
interface PayBillDto {
|
|
2196
|
+
accountId: string;
|
|
2197
|
+
billerCategory: string;
|
|
2198
|
+
billerName: string;
|
|
2199
|
+
billerId?: string;
|
|
2200
|
+
consumerNumber: string;
|
|
2201
|
+
amount: number;
|
|
2202
|
+
}
|
|
2203
|
+
interface ListBillPaymentsQuery extends PaginatedQuery {
|
|
2204
|
+
category?: string;
|
|
2205
|
+
}
|
|
2206
|
+
interface GenerateVirtualCardDto {
|
|
2207
|
+
cardType: 'debit' | 'credit';
|
|
2208
|
+
accountId?: string;
|
|
2209
|
+
nameOnCard: string;
|
|
2210
|
+
cardNetwork?: string;
|
|
2211
|
+
}
|
|
2212
|
+
interface UpdateCardLimitsDto {
|
|
2213
|
+
dailyLimit?: number;
|
|
2214
|
+
atmWithdrawalLimit?: number;
|
|
2215
|
+
}
|
|
2216
|
+
interface ToggleInternationalDto {
|
|
2217
|
+
enabled: boolean;
|
|
2218
|
+
from?: string;
|
|
2219
|
+
until?: string;
|
|
2220
|
+
}
|
|
2221
|
+
interface ToggleCardFeatureDto {
|
|
2222
|
+
enabled: boolean;
|
|
2223
|
+
}
|
|
2224
|
+
interface SetBudgetDto {
|
|
2225
|
+
category: string;
|
|
2226
|
+
monthlyLimit: number;
|
|
2227
|
+
alertAt?: number;
|
|
2228
|
+
}
|
|
2229
|
+
interface GetAnomalyAlertsQuery extends PaginatedQuery {
|
|
2230
|
+
unreadOnly?: boolean;
|
|
2231
|
+
}
|
|
1933
2232
|
|
|
1934
2233
|
interface StaffRegisterDto {
|
|
1935
2234
|
name: string;
|
|
@@ -2379,7 +2678,7 @@ declare class TZClient {
|
|
|
2379
2678
|
readonly orgKey: string | undefined;
|
|
2380
2679
|
private readonly store;
|
|
2381
2680
|
private readonly keys;
|
|
2382
|
-
private readonly onAuthExpired
|
|
2681
|
+
private readonly onAuthExpired;
|
|
2383
2682
|
private enduserRefreshPromise;
|
|
2384
2683
|
private staffRefreshPromise;
|
|
2385
2684
|
constructor(config: TZConfig);
|
|
@@ -4134,4 +4433,4 @@ declare function createTZ(options?: TZInitOptions): {
|
|
|
4134
4433
|
}>;
|
|
4135
4434
|
};
|
|
4136
4435
|
|
|
4137
|
-
export { type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminAbandonedCart, type AdminAbandonedCartsQuery, type AdminAffiliate, type AdminBlogPost, type AdminBroadcast, type AdminCancelBookingDto, type AdminCoupon, type AdminCustomer, type AdminCustomerDetail, type AdminDashboardData, type AdminDashboardQuery, type AdminDashboardStats, type AdminDeliveryAgent, type AdminDeliveryZone, type AdminFinanceQuery, type AdminFulfillResult, type AdminGiftCard, type AdminGiftCardTransaction, type AdminHelpArticle, type AdminInstitution, type AdminInvoice, type AdminListOrdersQuery, type AdminLocation, type AdminLocationDetail, type AdminLoyaltyAccount, type AdminLoyaltyData, type AdminMealSubscription, type AdminMenuItem, type AdminOrder, type AdminOrderDetail, type AdminOrganization, type AdminPayout, type AdminPopupSettings, type AdminPromotion, type AdminRedemption, type AdminReservation, type AdminReservationSlot, type AdminReservationTable, type AdminReview, type AdminScheduledOrder, type AdminScheduledOrdersQuery, type AdminSetting, type AdminSettlement, type AdminStudentDiscount, type AdminStudentPass, type AdminStudentPassDetail, type AdminStudentPassStats, type AdminSyncLog, type AdminTaxSummary, type AdminTicket, type AdminTicketDetail, type AdminTicketMessage, type AdminWaitlistEntry, type AdminWaitlistGroup, type ApiError, type ApiKey, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateBroadcastDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateDeliveryAgentDto, type CreateDeliveryZoneDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReservationSlotDto, type CreateReservationTableDto, type CreateReviewDto, type CreateRoleDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserTagsDto, type EndUserVerifyOtpDto, type FulfillRewardDto, type GetCatalogItemsQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type Institution, type InviteStaffUserDto, type JoinWatchRoomDto, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealSubscription, type Movie, type MovieDetail, type Notification, type Order, type OrderItem, type OrderStatus, type OrderType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PaymentMethod, type PaymentOrder, type PaymentVerification, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SuperAdminLoginDto, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TmdbMovie, type TmdbMovieDetail, type TokenStore, type TopUpWalletDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateDeliveryAgentDto, type UpdateDeliveryZoneDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePopupSettingsDto, type UpdatePurchaseOrderDto, type UpdateReservationSlotDto, type UpdateReservationStatusDto, type UpdateReservationTableDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|
|
4436
|
+
export { type AddBeneficiaryDto, type AddCartItemDto, type AddSegmentMembersDto, type Address, type AdjustLoyaltyPointsDto, type AdminAbandonedCart, type AdminAbandonedCartsQuery, type AdminAffiliate, type AdminBlogPost, type AdminBroadcast, type AdminCancelBookingDto, type AdminCoupon, type AdminCustomer, type AdminCustomerDetail, type AdminDashboardData, type AdminDashboardQuery, type AdminDashboardStats, type AdminDeliveryAgent, type AdminDeliveryZone, type AdminFinanceQuery, type AdminFulfillResult, type AdminGiftCard, type AdminGiftCardTransaction, type AdminHelpArticle, type AdminInstitution, type AdminInvoice, type AdminListOrdersQuery, type AdminLocation, type AdminLocationDetail, type AdminLoyaltyAccount, type AdminLoyaltyData, type AdminMealSubscription, type AdminMenuItem, type AdminOrder, type AdminOrderDetail, type AdminOrganization, type AdminPayout, type AdminPopupSettings, type AdminPromotion, type AdminRedemption, type AdminReservation, type AdminReservationSlot, type AdminReservationTable, type AdminReview, type AdminScheduledOrder, type AdminScheduledOrdersQuery, type AdminSetting, type AdminSettlement, type AdminStudentDiscount, type AdminStudentPass, type AdminStudentPassDetail, type AdminStudentPassStats, type AdminSyncLog, type AdminTaxSummary, type AdminTicket, type AdminTicketDetail, type AdminTicketMessage, type AdminWaitlistEntry, type AdminWaitlistGroup, type ApiError, type ApiErrorEnvelope, type ApiKey, type ApiKeyEnv, type ApiPaginatedEnvelope, type ApiPaginatedResult, type ApiResponseEnvelope, type ApiResult, type ApplyStudentPassDto, type AssignPropertyUnitsDto, type AssignStaffRolesDto, type AuditLog, type AuthResponse, type AuthScope, type AuthTokens, type BulkReviewStudentPassesDto, type BulkUpdateSettingsDto, type BulkUpsertEndUsersDto, type CalculateDeliveryDto, type CampaignChannel, type CampaignStatus, type CancelPropertyBookingDto, type Cart, type CartItemOption, type CartLineItem, type CatalogCategory, type CatalogItem, type CatalogItemVariant, type CatalogOption, type CatalogOptionGroup, type CatalogSizeVariation, type ChangeEndUserPasswordDto, type CheckPropertyAvailabilityQuery, type CheckReservationAvailabilityQuery, type CompleteSignupDto, type ConnectedSource, type ContactMessage, type ContentPost, type CouponValidation, type CreateAddressDto, type CreateApiKeyDto, type CreateBroadcastDto, type CreateCatalogCategoryDto, type CreateCatalogOptionDto, type CreateCatalogOptionGroupDto, type CreateCatalogVariantDto, type CreateDeliveryAgentDto, type CreateDeliveryZoneDto, type CreateFixedDepositDto, type CreateHelpArticleDto, type CreateIngredientDto, type CreateInstitutionDto, type CreateMealPlanDto, type CreateOrderDto, type CreatePaymentOrderDto, type CreatePropertyAmenityDto, type CreatePropertyBookingDto, type CreatePropertyPaymentOrderDto, type CreatePurchaseOrderDto, type CreateReservationDto, type CreateReservationSlotDto, type CreateReservationTableDto, type CreateReviewDto, type CreateRoleDto, type CreateScheduledTransferDto, type CreateStudentDiscountDto, type CreateSuperAdminDto, type CreateSupplierDto, type CreateSupportTicketDto, type CreateWasteLogDto, type CreateWatchRoomDto, type DeliveryCalculation, type DeliveryTracking, type DiscountPreview, type EarningsSummary, type EndUser, type EndUserProfile, type EndUserRequestResetDto, type EndUserResetPasswordDto, type EndUserSendOtpDto, type EndUserStatus, type EndUserTagsDto, type EndUserVerifyOtpDto, type FulfillRewardDto, type GenerateVirtualCardDto, type GetAnomalyAlertsQuery, type GetCatalogItemsQuery, type GetStatementQuery, type GiftCard, type GoogleDriveCallbackDto, type GoogleDriveConnectUrl, type HelpArticle, type HostEarning, type Ingredient, type InitiateTransferDto, type Institution, type InviteStaffUserDto, type InvoiceStatus, type InvoiceType, type JoinWatchRoomDto, type JsonObject, type JsonPrimitive, type JsonValue, type ListBillPaymentsQuery, type ListCatalogItemsQuery, type ListContentQuery, type ListEarningsQuery, type ListEndUsersQuery, type ListMoviesQuery, type ListOrdersQuery, type ListOrganizationsQuery, type ListReviewsQuery, type ListStaffUsersQuery, type ListStudentPassesQuery, type ListSuperAdminsQuery, type ListWatchRoomsQuery, type LocationHours, type LoginEndUserDto, type LoyaltyAccount, type LoyaltyRedemption, type LoyaltyReward, type LoyaltyTransaction, type MealPlan, type MealPlanItem, type MealSubscription, type Movie, type MovieCredits, type MovieDetail, type Notification, type NotificationData, type NotificationStatus, type NotificationType, type NutritionData, type OauthProvider, type Order, type OrderItem, type OrderStatus, type OrderType, type OrgStatus, type OtpType, type PaginatedQuery, type PaginatedResponse, type PaginationParams, type PayBillDto, type PaymentMethod, type PaymentOrder, type PaymentProviderType, type PaymentStatus, type PaymentVerification, type PlanFeatures, type PlatformPlan, type PreviewStudentDiscountDto, type PreviewTemplateDto, type ProductType, type Promotion, type PropertyAvailability, type PropertyBooking, type PropertyPriceResolution, type PropertyType, type PurchaseGiftCardDto, type PurchaseOrder, type PurchaseOrderItem, type QueryMealSubscriptionsParams, type QueryPurchaseOrdersParams, type RawResponse, type RedeemGiftCardDto, type RedeemLoyaltyRewardDto, type ReferralInfo, type ReferralValidation, type RefundStatus, type RegisterEndUserDto, type ReorderDto, type ReplySupportTicketDto, type ReportOrderIssueDto, type RequestMagicLinkDto, type Reservation, type ReservationSlot, type ResolvePropertyPriceDto, type Review, type ReviewStudentPassDto, type Role, type RuleConfig, type ScheduleCampaignDto, ScopedClient, type SearchQuery, type SearchStatusQuery, type SegmentType, type SetAutoSweepDto, type SetBudgetDto, type SetLocationHoursDto, type SetPropertyTypeAmenitiesDto, type SetSettingDto, type StaffAuthResponse, type StaffChangePasswordDto, type StaffLoginDto, type StaffRegisterDto, type StaffRequestPasswordResetDto, type StaffResetPasswordDto, type StaffSendOtpDto, type StaffUser, type StaffVerifyOtpDto, type StartSignupDto, type StartWatchSessionDto, type StatusQuery, type StockAlert, type StoreLocation, type StorefrontConfig, type StudentDiscount, type StudentPassStatus, type SubmitContactDto, type SubmitKycDto, type SubscribeBillingPlanDto, type SubscribeMealPlanDto, type SubscribeNewsletterDto, type SubscriptionStatus, type SuperAdminLoginDto, type SuperAdminRole, type SuperAdminStats, type SuperAdmin as SuperAdminUser, type Supplier, type SupportReply, type SupportTicket, type SwitchWatchRoomModeDto, TZ, TZClient, type TZConfig, type TZInitOptions, TZPaginatedQuery, TZQuery, type TaxConfig, type TemplateChannel, type TmdbMovie, type TmdbMovieDetail, type ToggleCardFeatureDto, type ToggleInternationalDto, type TokenStore, type TopUpWalletDto, type UpdateAccountNicknameDto, type UpdateAddressDto, type UpdateApiKeyDto, type UpdateCardLimitsDto, type UpdateCartItemDto, type UpdateCatalogCategoryDto, type UpdateCatalogOptionDto, type UpdateCatalogOptionGroupDto, type UpdateCatalogVariantDto, type UpdateDeliveryAgentDto, type UpdateDeliveryZoneDto, type UpdateEndUserProfileDto, type UpdateHelpArticleDto, type UpdateHousekeepingDto, type UpdateIngredientDto, type UpdateInstitutionDto, type UpdateMealPlanDto, type UpdateMovieProgressDto, type UpdateOrderStatusDto, type UpdateOrgDto, type UpdatePopupSettingsDto, type UpdatePurchaseOrderDto, type UpdateReservationSlotDto, type UpdateReservationStatusDto, type UpdateReservationTableDto, type UpdateReviewStatusDto, type UpdateRoleDto, type UpdateStaffUserDto, type UpdateStudentDiscountDto, type UpdateSupplierDto, type UpdateSupportTicketDto, type UploadResult, type UserStatus, type ValidateCouponDto, type ValidateReferralDto, type VerifyMagicLinkQuery, type VerifyPaymentDto, type VerifySignupOtpDto, type WalletBalance, type WalletPack, type WalletTransaction, type WasteLog, type WatchRoom, type WatchRoomJoinResponse, type WatchRoomMessage, type WatchRoomPlaybackState, type WatchRoomPrivacy, type WatchRoomStatus, type WatchRoomVibe, type WatchRoomViewer, type WatchRoomViewerMode, type WatchSessionHistoryItem, type WatchSessionResponse, type WatchSessionStatus, type WatchSessionStatusType, type WatchSessionSummary, createTZ };
|