@myrjfa/state 2.3.1 → 2.3.3
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/lib/actions/actions.d.ts +6 -6
- package/dist/lib/actions/auth.d.ts +23 -19
- package/dist/lib/actions/auth.d.ts.map +1 -1
- package/dist/lib/actions/auth.js +24 -5
- package/dist/lib/actions/chat.d.ts +20 -14
- package/dist/lib/actions/chat.d.ts.map +1 -1
- package/dist/lib/actions/chat.js +2 -2
- package/dist/lib/actions/fetcher.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.js +15 -8
- package/dist/lib/actions.d.ts +12 -12
- package/dist/lib/actions.d.ts.map +1 -1
- package/dist/lib/actions.js +3 -1
- package/dist/lib/authSessionManager.d.ts.map +1 -1
- package/dist/lib/authSessionManager.js +77 -13
- package/dist/lib/authSessionPolicy.d.ts +34 -0
- package/dist/lib/authSessionPolicy.d.ts.map +1 -1
- package/dist/lib/authSessionPolicy.js +52 -0
- package/dist/lib/context/ChatContext.d.ts.map +1 -1
- package/dist/lib/context/ChatContext.js +12 -6
- package/dist/lib/models/authorization.d.ts +4 -3
- package/dist/lib/models/authorization.d.ts.map +1 -1
- package/dist/lib/models/authorization.js +10 -4
- package/dist/lib/models/blog.d.ts +4 -4
- package/dist/lib/models/chat.d.ts +10 -2
- package/dist/lib/models/chat.d.ts.map +1 -1
- package/dist/lib/models/chat.js +8 -0
- package/dist/lib/models/discount.d.ts +52 -52
- package/dist/lib/models/notifications.d.ts +2 -2
- package/dist/lib/models/opportunities/freelance.d.ts +34 -34
- package/dist/lib/models/opportunities/internship.d.ts +34 -34
- package/dist/lib/models/opportunities/job.d.ts +34 -34
- package/dist/lib/models/opportunities/opportunity.d.ts +34 -34
- package/dist/lib/models/opportunities/volunteerJob.d.ts +34 -34
- package/dist/lib/models/package.d.ts +16 -16
- package/dist/lib/models/portfolio.d.ts +2 -2
- package/dist/lib/models/pricing.d.ts +12 -12
- package/dist/lib/models/review.d.ts +2 -2
- package/dist/lib/models/stay.d.ts +18 -18
- package/dist/lib/models/travelPackage.d.ts +36 -36
- package/dist/lib/models/user.d.ts +12 -12
- package/dist/lib/userAtom.d.ts +126 -25
- package/dist/lib/userAtom.d.ts.map +1 -1
- package/dist/lib/userAtom.js +79 -45
- package/package.json +1 -1
- package/dist/lib/actions/adminDashboard.d.ts +0 -4
- package/dist/lib/actions/adminDashboard.d.ts.map +0 -1
- package/dist/lib/actions/adminDashboard.js +0 -29
- package/dist/lib/actions/adventure.d.ts +0 -104
- package/dist/lib/actions/adventure.d.ts.map +0 -1
- package/dist/lib/actions/adventure.js +0 -203
- package/dist/lib/actions/application.d.ts +0 -35
- package/dist/lib/actions/application.d.ts.map +0 -1
- package/dist/lib/actions/application.js +0 -573
- package/dist/lib/actions/blog.d.ts +0 -61
- package/dist/lib/actions/blog.d.ts.map +0 -1
- package/dist/lib/actions/blog.js +0 -762
- package/dist/lib/actions/brand.d.ts +0 -83
- package/dist/lib/actions/brand.d.ts.map +0 -1
- package/dist/lib/actions/brand.js +0 -28
- package/dist/lib/actions/companion.d.ts +0 -174
- package/dist/lib/actions/companion.d.ts.map +0 -1
- package/dist/lib/actions/companion.js +0 -276
- package/dist/lib/actions/event.d.ts +0 -178
- package/dist/lib/actions/event.d.ts.map +0 -1
- package/dist/lib/actions/event.js +0 -214
- package/dist/lib/actions/guide.d.ts +0 -55
- package/dist/lib/actions/guide.d.ts.map +0 -1
- package/dist/lib/actions/guide.js +0 -128
- package/dist/lib/actions/hostDashboard.d.ts +0 -122
- package/dist/lib/actions/hostDashboard.d.ts.map +0 -1
- package/dist/lib/actions/hostDashboard.js +0 -329
- package/dist/lib/actions/location.d.ts +0 -141
- package/dist/lib/actions/location.d.ts.map +0 -1
- package/dist/lib/actions/location.js +0 -113
- package/dist/lib/actions/notifications.d.ts +0 -91
- package/dist/lib/actions/notifications.d.ts.map +0 -1
- package/dist/lib/actions/notifications.js +0 -83
- package/dist/lib/actions/opportunity.d.ts +0 -44
- package/dist/lib/actions/opportunity.d.ts.map +0 -1
- package/dist/lib/actions/opportunity.js +0 -318
- package/dist/lib/actions/package.d.ts +0 -85
- package/dist/lib/actions/package.d.ts.map +0 -1
- package/dist/lib/actions/package.js +0 -167
- package/dist/lib/actions/place.d.ts +0 -191
- package/dist/lib/actions/place.d.ts.map +0 -1
- package/dist/lib/actions/place.js +0 -57
- package/dist/lib/actions/portfolio.d.ts +0 -65
- package/dist/lib/actions/portfolio.d.ts.map +0 -1
- package/dist/lib/actions/portfolio.js +0 -62
- package/dist/lib/actions/property.d.ts +0 -17
- package/dist/lib/actions/property.d.ts.map +0 -1
- package/dist/lib/actions/property.js +0 -16
- package/dist/lib/actions/rental.d.ts +0 -87
- package/dist/lib/actions/rental.d.ts.map +0 -1
- package/dist/lib/actions/rental.js +0 -205
- package/dist/lib/actions/review.d.ts +0 -8
- package/dist/lib/actions/review.d.ts.map +0 -1
- package/dist/lib/actions/review.js +0 -102
- package/dist/lib/actions/room.d.ts +0 -39
- package/dist/lib/actions/room.d.ts.map +0 -1
- package/dist/lib/actions/room.js +0 -74
- package/dist/lib/actions/stay.d.ts +0 -97
- package/dist/lib/actions/stay.d.ts.map +0 -1
- package/dist/lib/actions/stay.js +0 -138
- package/dist/lib/actions/travelPackage.d.ts +0 -104
- package/dist/lib/actions/travelPackage.d.ts.map +0 -1
- package/dist/lib/actions/travelPackage.js +0 -487
- package/dist/lib/data/adventureDummyData.d.ts +0 -3
- package/dist/lib/data/adventureDummyData.d.ts.map +0 -1
- package/dist/lib/data/adventureDummyData.js +0 -138
- package/dist/lib/data/adventureFormPage.d.ts +0 -28
- package/dist/lib/data/adventureFormPage.d.ts.map +0 -1
- package/dist/lib/data/adventureFormPage.js +0 -58
- package/dist/lib/data/companionDummyData.d.ts +0 -99
- package/dist/lib/data/companionDummyData.d.ts.map +0 -1
- package/dist/lib/data/companionDummyData.js +0 -203
- package/dist/lib/data/destinations.d.ts +0 -14
- package/dist/lib/data/destinations.d.ts.map +0 -1
- package/dist/lib/data/destinations.js +0 -203
- package/dist/lib/data/eventFormPage.d.ts +0 -38
- package/dist/lib/data/eventFormPage.d.ts.map +0 -1
- package/dist/lib/data/eventFormPage.js +0 -56
- package/dist/lib/data/eventsDummyData.d.ts +0 -54
- package/dist/lib/data/eventsDummyData.d.ts.map +0 -1
- package/dist/lib/data/eventsDummyData.js +0 -586
- package/dist/lib/data/guideDummyData.d.ts +0 -3
- package/dist/lib/data/guideDummyData.d.ts.map +0 -1
- package/dist/lib/data/guideDummyData.js +0 -66
- package/dist/lib/data/opportunityFormData.d.ts +0 -13
- package/dist/lib/data/opportunityFormData.d.ts.map +0 -1
- package/dist/lib/data/opportunityFormData.js +0 -62
- package/dist/lib/data/opportunityFormPage.d.ts +0 -12
- package/dist/lib/data/opportunityFormPage.d.ts.map +0 -1
- package/dist/lib/data/opportunityFormPage.js +0 -33
- package/dist/lib/data/packageDummyData.d.ts +0 -3
- package/dist/lib/data/packageDummyData.d.ts.map +0 -1
- package/dist/lib/data/packageDummyData.js +0 -56
- package/dist/lib/data/rentalDummyData.d.ts +0 -3
- package/dist/lib/data/rentalDummyData.d.ts.map +0 -1
- package/dist/lib/data/rentalDummyData.js +0 -382
- package/dist/lib/data/rentalFormPage.d.ts +0 -11
- package/dist/lib/data/rentalFormPage.d.ts.map +0 -1
- package/dist/lib/data/rentalFormPage.js +0 -86
- package/dist/lib/data/staysDummyData.d.ts +0 -72
- package/dist/lib/data/staysDummyData.d.ts.map +0 -1
- package/dist/lib/data/staysDummyData.js +0 -694
- package/dist/lib/data/storeDummyData.d.ts +0 -33
- package/dist/lib/data/storeDummyData.d.ts.map +0 -1
- package/dist/lib/data/storeDummyData.js +0 -336
- package/dist/lib/data/travelPackageFormData.d.ts +0 -19
- package/dist/lib/data/travelPackageFormData.d.ts.map +0 -1
- package/dist/lib/data/travelPackageFormData.js +0 -51
- package/dist/lib/data/travelPackageFormPage.d.ts +0 -22
- package/dist/lib/data/travelPackageFormPage.d.ts.map +0 -1
- package/dist/lib/data/travelPackageFormPage.js +0 -40
- package/dist/lib/data/vehicleData.d.ts +0 -2
- package/dist/lib/data/vehicleData.d.ts.map +0 -1
- package/dist/lib/data/vehicleData.js +0 -187
- package/dist/lib/data/vehicleModels.d.ts +0 -2
- package/dist/lib/data/vehicleModels.d.ts.map +0 -1
- package/dist/lib/data/vehicleModels.js +0 -128
- package/dist/lib/hooks/usePersistentDraftState.d.ts +0 -20
- package/dist/lib/hooks/usePersistentDraftState.d.ts.map +0 -1
- package/dist/lib/hooks/usePersistentDraftState.js +0 -47
- package/dist/lib/models/forms.d.ts +0 -384
- package/dist/lib/models/forms.d.ts.map +0 -1
- package/dist/lib/models/forms.js +0 -121
- package/dist/lib/pricingActions.d.ts +0 -13
- package/dist/lib/pricingActions.d.ts.map +0 -1
- package/dist/lib/pricingActions.js +0 -16
- package/dist/lib/utils/entitySubmission.d.ts +0 -21
- package/dist/lib/utils/entitySubmission.d.ts.map +0 -1
- package/dist/lib/utils/entitySubmission.js +0 -10
- package/dist/lib/utils/imageUpload.d.ts +0 -4
- package/dist/lib/utils/imageUpload.d.ts.map +0 -1
- package/dist/lib/utils/imageUpload.js +0 -36
- package/dist/lib/utils/tileConverters.d.ts +0 -8
- package/dist/lib/utils/tileConverters.d.ts.map +0 -1
- package/dist/lib/utils/tileConverters.js +0 -59
|
@@ -197,13 +197,13 @@ export declare const DiscountStrategySchema: z.ZodObject<{
|
|
|
197
197
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
198
198
|
compatibleGroups: z.ZodDefault<z.ZodArray<z.ZodEnum<["automatic", "coupon", "payment", "partner", "recovery"]>, "many">>;
|
|
199
199
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
-
group: "
|
|
200
|
+
group: "payment" | "coupon" | "partner" | "automatic" | "recovery";
|
|
201
201
|
priority: number;
|
|
202
|
-
compatibleGroups: ("
|
|
202
|
+
compatibleGroups: ("payment" | "coupon" | "partner" | "automatic" | "recovery")[];
|
|
203
203
|
}, {
|
|
204
|
-
group?: "
|
|
204
|
+
group?: "payment" | "coupon" | "partner" | "automatic" | "recovery" | undefined;
|
|
205
205
|
priority?: number | undefined;
|
|
206
|
-
compatibleGroups?: ("
|
|
206
|
+
compatibleGroups?: ("payment" | "coupon" | "partner" | "automatic" | "recovery")[] | undefined;
|
|
207
207
|
}>>;
|
|
208
208
|
usageLimits: z.ZodDefault<z.ZodObject<{
|
|
209
209
|
total: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -222,13 +222,13 @@ export declare const DiscountStrategySchema: z.ZodObject<{
|
|
|
222
222
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
223
223
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
|
-
status: "draft" | "
|
|
225
|
+
status: "draft" | "archived" | "rejected" | "suggested" | "active" | "paused" | "expired";
|
|
226
226
|
name: string;
|
|
227
227
|
description: string;
|
|
228
|
-
strategyType: "duration" | "
|
|
228
|
+
strategyType: "duration" | "group" | "early_booking" | "last_minute" | "scheduled" | "recurring" | "quantity" | "coupon" | "first_booking" | "checkout_recovery" | "payment_offer" | "partner";
|
|
229
229
|
origin: "host" | "staff_suggestion" | "staff_campaign";
|
|
230
230
|
targetScope: "host" | "platform" | "listing" | "subtarget";
|
|
231
|
-
featureTypes: ("
|
|
231
|
+
featureTypes: ("package" | "rental" | "adventure" | "guide" | "stay" | "event" | "store")[];
|
|
232
232
|
targetIds: string[];
|
|
233
233
|
pricingStrategyIds: string[];
|
|
234
234
|
percentage: number;
|
|
@@ -262,9 +262,9 @@ export declare const DiscountStrategySchema: z.ZodObject<{
|
|
|
262
262
|
checkoutDelayMinutes?: number | null | undefined;
|
|
263
263
|
};
|
|
264
264
|
stacking: {
|
|
265
|
-
group: "
|
|
265
|
+
group: "payment" | "coupon" | "partner" | "automatic" | "recovery";
|
|
266
266
|
priority: number;
|
|
267
|
-
compatibleGroups: ("
|
|
267
|
+
compatibleGroups: ("payment" | "coupon" | "partner" | "automatic" | "recovery")[];
|
|
268
268
|
};
|
|
269
269
|
usageLimits: {
|
|
270
270
|
total?: number | null | undefined;
|
|
@@ -272,20 +272,20 @@ export declare const DiscountStrategySchema: z.ZodObject<{
|
|
|
272
272
|
};
|
|
273
273
|
redemptionCount: number;
|
|
274
274
|
_id?: string | undefined;
|
|
275
|
-
|
|
275
|
+
createdAt?: string | undefined;
|
|
276
|
+
updatedAt?: string | undefined;
|
|
276
277
|
hostId?: string | {
|
|
277
278
|
_id: string;
|
|
278
279
|
} | null | undefined;
|
|
280
|
+
sourceStrategyId?: string | null | undefined;
|
|
279
281
|
targetId?: string | null | undefined;
|
|
280
282
|
subTargetId?: string | null | undefined;
|
|
281
283
|
couponCode?: string | undefined;
|
|
282
284
|
couponPreview?: string | undefined;
|
|
283
285
|
razorpayOfferId?: string | undefined;
|
|
284
|
-
createdAt?: string | undefined;
|
|
285
|
-
updatedAt?: string | undefined;
|
|
286
286
|
}, {
|
|
287
287
|
name: string;
|
|
288
|
-
strategyType: "duration" | "
|
|
288
|
+
strategyType: "duration" | "group" | "early_booking" | "last_minute" | "scheduled" | "recurring" | "quantity" | "coupon" | "first_booking" | "checkout_recovery" | "payment_offer" | "partner";
|
|
289
289
|
origin: "host" | "staff_suggestion" | "staff_campaign";
|
|
290
290
|
percentage: number;
|
|
291
291
|
funding: {
|
|
@@ -293,15 +293,17 @@ export declare const DiscountStrategySchema: z.ZodObject<{
|
|
|
293
293
|
platformPercentagePoints?: number | undefined;
|
|
294
294
|
partnerPercentagePoints?: number | undefined;
|
|
295
295
|
};
|
|
296
|
-
status?: "draft" | "suggested" | "active" | "paused" | "rejected" | "expired" | "archived" | undefined;
|
|
297
296
|
_id?: string | undefined;
|
|
297
|
+
status?: "draft" | "archived" | "rejected" | "suggested" | "active" | "paused" | "expired" | undefined;
|
|
298
298
|
description?: string | undefined;
|
|
299
|
-
|
|
299
|
+
createdAt?: string | undefined;
|
|
300
|
+
updatedAt?: string | undefined;
|
|
300
301
|
hostId?: string | {
|
|
301
302
|
_id: string;
|
|
302
303
|
} | null | undefined;
|
|
304
|
+
sourceStrategyId?: string | null | undefined;
|
|
303
305
|
targetScope?: "host" | "platform" | "listing" | "subtarget" | undefined;
|
|
304
|
-
featureTypes?: ("
|
|
306
|
+
featureTypes?: ("package" | "rental" | "adventure" | "guide" | "stay" | "event" | "store")[] | undefined;
|
|
305
307
|
targetId?: string | null | undefined;
|
|
306
308
|
targetIds?: string[] | undefined;
|
|
307
309
|
subTargetId?: string | null | undefined;
|
|
@@ -331,9 +333,9 @@ export declare const DiscountStrategySchema: z.ZodObject<{
|
|
|
331
333
|
partnerProgramIds?: string[] | undefined;
|
|
332
334
|
} | undefined;
|
|
333
335
|
stacking?: {
|
|
334
|
-
group?: "
|
|
336
|
+
group?: "payment" | "coupon" | "partner" | "automatic" | "recovery" | undefined;
|
|
335
337
|
priority?: number | undefined;
|
|
336
|
-
compatibleGroups?: ("
|
|
338
|
+
compatibleGroups?: ("payment" | "coupon" | "partner" | "automatic" | "recovery")[] | undefined;
|
|
337
339
|
} | undefined;
|
|
338
340
|
usageLimits?: {
|
|
339
341
|
total?: number | null | undefined;
|
|
@@ -343,8 +345,6 @@ export declare const DiscountStrategySchema: z.ZodObject<{
|
|
|
343
345
|
couponCode?: string | undefined;
|
|
344
346
|
couponPreview?: string | undefined;
|
|
345
347
|
razorpayOfferId?: string | undefined;
|
|
346
|
-
createdAt?: string | undefined;
|
|
347
|
-
updatedAt?: string | undefined;
|
|
348
348
|
}>;
|
|
349
349
|
export declare const DiscountQuoteRequestSchema: z.ZodObject<{
|
|
350
350
|
featureType: z.ZodEnum<["stay", "rental", "adventure", "event", "package", "guide", "store"]>;
|
|
@@ -363,32 +363,32 @@ export declare const DiscountQuoteRequestSchema: z.ZodObject<{
|
|
|
363
363
|
couponCode: z.ZodOptional<z.ZodString>;
|
|
364
364
|
checkoutStartedAt: z.ZodOptional<z.ZodString>;
|
|
365
365
|
}, "strip", z.ZodTypeAny, {
|
|
366
|
+
featureType: "package" | "rental" | "adventure" | "guide" | "stay" | "event" | "store";
|
|
366
367
|
targetId: string;
|
|
367
|
-
|
|
368
|
+
startDate?: string | undefined;
|
|
369
|
+
endDate?: string | undefined;
|
|
368
370
|
quantity?: number | undefined;
|
|
369
371
|
subTargetId?: string | undefined;
|
|
370
372
|
couponCode?: string | undefined;
|
|
371
373
|
pricingStrategyId?: string | undefined;
|
|
372
374
|
selectedPricingIndex?: number | undefined;
|
|
373
375
|
participants?: number | undefined;
|
|
374
|
-
startDate?: string | undefined;
|
|
375
|
-
endDate?: string | undefined;
|
|
376
376
|
startTime?: string | undefined;
|
|
377
377
|
pickupTime?: string | undefined;
|
|
378
378
|
orderType?: "rental" | "purchase" | undefined;
|
|
379
379
|
activityTotal?: number | undefined;
|
|
380
380
|
checkoutStartedAt?: string | undefined;
|
|
381
381
|
}, {
|
|
382
|
+
featureType: "package" | "rental" | "adventure" | "guide" | "stay" | "event" | "store";
|
|
382
383
|
targetId: string;
|
|
383
|
-
|
|
384
|
+
startDate?: string | undefined;
|
|
385
|
+
endDate?: string | undefined;
|
|
384
386
|
quantity?: number | undefined;
|
|
385
387
|
subTargetId?: string | undefined;
|
|
386
388
|
couponCode?: string | undefined;
|
|
387
389
|
pricingStrategyId?: string | undefined;
|
|
388
390
|
selectedPricingIndex?: number | undefined;
|
|
389
391
|
participants?: number | undefined;
|
|
390
|
-
startDate?: string | undefined;
|
|
391
|
-
endDate?: string | undefined;
|
|
392
392
|
startTime?: string | undefined;
|
|
393
393
|
pickupTime?: string | undefined;
|
|
394
394
|
orderType?: "rental" | "purchase" | undefined;
|
|
@@ -405,12 +405,12 @@ export declare const DiscountQuoteSchema: z.ZodObject<{
|
|
|
405
405
|
platform: z.ZodNumber;
|
|
406
406
|
partner: z.ZodNumber;
|
|
407
407
|
}, "strip", z.ZodTypeAny, {
|
|
408
|
-
partner: number;
|
|
409
408
|
host: number;
|
|
409
|
+
partner: number;
|
|
410
410
|
platform: number;
|
|
411
411
|
}, {
|
|
412
|
-
partner: number;
|
|
413
412
|
host: number;
|
|
413
|
+
partner: number;
|
|
414
414
|
platform: number;
|
|
415
415
|
}>;
|
|
416
416
|
totalBeforeDiscount: z.ZodNumber;
|
|
@@ -428,12 +428,12 @@ export declare const DiscountQuoteSchema: z.ZodObject<{
|
|
|
428
428
|
platform: z.ZodNumber;
|
|
429
429
|
partner: z.ZodNumber;
|
|
430
430
|
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
partner: number;
|
|
432
431
|
host: number;
|
|
432
|
+
partner: number;
|
|
433
433
|
platform: number;
|
|
434
434
|
}, {
|
|
435
|
-
partner: number;
|
|
436
435
|
host: number;
|
|
436
|
+
partner: number;
|
|
437
437
|
platform: number;
|
|
438
438
|
}>;
|
|
439
439
|
stackingGroup: z.ZodEnum<["automatic", "coupon", "payment", "partner", "recovery"]>;
|
|
@@ -456,16 +456,16 @@ export declare const DiscountQuoteSchema: z.ZodObject<{
|
|
|
456
456
|
}>>;
|
|
457
457
|
}, "strip", z.ZodTypeAny, {
|
|
458
458
|
name: string;
|
|
459
|
-
|
|
459
|
+
amount: number;
|
|
460
|
+
strategyType: "duration" | "group" | "early_booking" | "last_minute" | "scheduled" | "recurring" | "quantity" | "coupon" | "first_booking" | "checkout_recovery" | "payment_offer" | "partner";
|
|
460
461
|
percentage: number;
|
|
461
462
|
funding: {
|
|
462
|
-
partner: number;
|
|
463
463
|
host: number;
|
|
464
|
+
partner: number;
|
|
464
465
|
platform: number;
|
|
465
466
|
};
|
|
466
467
|
strategyId: string;
|
|
467
|
-
|
|
468
|
-
stackingGroup: "coupon" | "partner" | "automatic" | "payment" | "recovery";
|
|
468
|
+
stackingGroup: "payment" | "coupon" | "partner" | "automatic" | "recovery";
|
|
469
469
|
description?: string | undefined;
|
|
470
470
|
razorpayOfferId?: string | undefined;
|
|
471
471
|
paymentEligibility?: {
|
|
@@ -476,16 +476,16 @@ export declare const DiscountQuoteSchema: z.ZodObject<{
|
|
|
476
476
|
} | undefined;
|
|
477
477
|
}, {
|
|
478
478
|
name: string;
|
|
479
|
-
|
|
479
|
+
amount: number;
|
|
480
|
+
strategyType: "duration" | "group" | "early_booking" | "last_minute" | "scheduled" | "recurring" | "quantity" | "coupon" | "first_booking" | "checkout_recovery" | "payment_offer" | "partner";
|
|
480
481
|
percentage: number;
|
|
481
482
|
funding: {
|
|
482
|
-
partner: number;
|
|
483
483
|
host: number;
|
|
484
|
+
partner: number;
|
|
484
485
|
platform: number;
|
|
485
486
|
};
|
|
486
487
|
strategyId: string;
|
|
487
|
-
|
|
488
|
-
stackingGroup: "coupon" | "partner" | "automatic" | "payment" | "recovery";
|
|
488
|
+
stackingGroup: "payment" | "coupon" | "partner" | "automatic" | "recovery";
|
|
489
489
|
description?: string | undefined;
|
|
490
490
|
razorpayOfferId?: string | undefined;
|
|
491
491
|
paymentEligibility?: {
|
|
@@ -510,35 +510,35 @@ export declare const DiscountQuoteSchema: z.ZodObject<{
|
|
|
510
510
|
}>, "many">;
|
|
511
511
|
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
512
512
|
}, "strip", z.ZodTypeAny, {
|
|
513
|
+
createdAt: string | Date;
|
|
514
|
+
currency: string;
|
|
513
515
|
rejected: {
|
|
514
516
|
name: string;
|
|
515
517
|
reason: string;
|
|
516
518
|
strategyId?: string | undefined;
|
|
517
519
|
}[];
|
|
518
520
|
funding: {
|
|
519
|
-
partner: number;
|
|
520
521
|
host: number;
|
|
522
|
+
partner: number;
|
|
521
523
|
platform: number;
|
|
522
524
|
};
|
|
523
|
-
createdAt: string | Date;
|
|
524
525
|
quoteId: string;
|
|
525
|
-
currency: string;
|
|
526
526
|
combinedPercentage: number;
|
|
527
527
|
totalDiscount: number;
|
|
528
528
|
totalBeforeDiscount: number;
|
|
529
529
|
totalAfterDiscount: number;
|
|
530
530
|
selected: {
|
|
531
531
|
name: string;
|
|
532
|
-
|
|
532
|
+
amount: number;
|
|
533
|
+
strategyType: "duration" | "group" | "early_booking" | "last_minute" | "scheduled" | "recurring" | "quantity" | "coupon" | "first_booking" | "checkout_recovery" | "payment_offer" | "partner";
|
|
533
534
|
percentage: number;
|
|
534
535
|
funding: {
|
|
535
|
-
partner: number;
|
|
536
536
|
host: number;
|
|
537
|
+
partner: number;
|
|
537
538
|
platform: number;
|
|
538
539
|
};
|
|
539
540
|
strategyId: string;
|
|
540
|
-
|
|
541
|
-
stackingGroup: "coupon" | "partner" | "automatic" | "payment" | "recovery";
|
|
541
|
+
stackingGroup: "payment" | "coupon" | "partner" | "automatic" | "recovery";
|
|
542
542
|
description?: string | undefined;
|
|
543
543
|
razorpayOfferId?: string | undefined;
|
|
544
544
|
paymentEligibility?: {
|
|
@@ -550,35 +550,35 @@ export declare const DiscountQuoteSchema: z.ZodObject<{
|
|
|
550
550
|
}[];
|
|
551
551
|
grantId?: string | null | undefined;
|
|
552
552
|
}, {
|
|
553
|
+
createdAt: string | Date;
|
|
554
|
+
currency: string;
|
|
553
555
|
rejected: {
|
|
554
556
|
name: string;
|
|
555
557
|
reason: string;
|
|
556
558
|
strategyId?: string | undefined;
|
|
557
559
|
}[];
|
|
558
560
|
funding: {
|
|
559
|
-
partner: number;
|
|
560
561
|
host: number;
|
|
562
|
+
partner: number;
|
|
561
563
|
platform: number;
|
|
562
564
|
};
|
|
563
|
-
createdAt: string | Date;
|
|
564
565
|
quoteId: string;
|
|
565
|
-
currency: string;
|
|
566
566
|
combinedPercentage: number;
|
|
567
567
|
totalDiscount: number;
|
|
568
568
|
totalBeforeDiscount: number;
|
|
569
569
|
totalAfterDiscount: number;
|
|
570
570
|
selected: {
|
|
571
571
|
name: string;
|
|
572
|
-
|
|
572
|
+
amount: number;
|
|
573
|
+
strategyType: "duration" | "group" | "early_booking" | "last_minute" | "scheduled" | "recurring" | "quantity" | "coupon" | "first_booking" | "checkout_recovery" | "payment_offer" | "partner";
|
|
573
574
|
percentage: number;
|
|
574
575
|
funding: {
|
|
575
|
-
partner: number;
|
|
576
576
|
host: number;
|
|
577
|
+
partner: number;
|
|
577
578
|
platform: number;
|
|
578
579
|
};
|
|
579
580
|
strategyId: string;
|
|
580
|
-
|
|
581
|
-
stackingGroup: "coupon" | "partner" | "automatic" | "payment" | "recovery";
|
|
581
|
+
stackingGroup: "payment" | "coupon" | "partner" | "automatic" | "recovery";
|
|
582
582
|
description?: string | undefined;
|
|
583
583
|
razorpayOfferId?: string | undefined;
|
|
584
584
|
paymentEligibility?: {
|
|
@@ -49,8 +49,8 @@ export declare const NotifSchema: z.ZodObject<{
|
|
|
49
49
|
referenceType?: string | undefined;
|
|
50
50
|
}>>;
|
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
message: string;
|
|
53
52
|
_id: string;
|
|
53
|
+
message: string;
|
|
54
54
|
read: boolean;
|
|
55
55
|
type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
|
|
56
56
|
userId?: string | undefined;
|
|
@@ -72,8 +72,8 @@ export declare const NotifSchema: z.ZodObject<{
|
|
|
72
72
|
referenceType?: string | undefined;
|
|
73
73
|
} | undefined;
|
|
74
74
|
}, {
|
|
75
|
-
message: string;
|
|
76
75
|
_id: string;
|
|
76
|
+
message: string;
|
|
77
77
|
read: boolean;
|
|
78
78
|
type?: "new_message" | "milestone_completed" | "expense_added" | "group_invite" | "mention" | "application_received" | "application_status" | "application_shortlisted" | "id_verification_request" | "id_verified" | "id_rejected" | "package_enquiry" | "package_approval" | "package_denial" | "package_rating" | "package_review" | "opportunity_assigned" | "opportunity_approval" | "opportunity_denial" | "opportunity_rating" | "opportunity_review" | "blog_like" | "blog_comment" | "blog_posted" | "blog_approval" | "blog_denial" | "booking_confirmed" | "system" | "general" | undefined;
|
|
79
79
|
userId?: string | undefined;
|
|
@@ -153,11 +153,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
153
153
|
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
154
154
|
}, "strict", z.ZodTypeAny, {
|
|
155
155
|
username: string;
|
|
156
|
+
email: string;
|
|
156
157
|
firstName: string;
|
|
157
158
|
lastName: string;
|
|
158
|
-
email: string;
|
|
159
|
-
password: string;
|
|
160
159
|
phoneNumber: string;
|
|
160
|
+
password: string;
|
|
161
161
|
countryCode: string;
|
|
162
162
|
country: string;
|
|
163
163
|
gender: "male" | "female" | "other";
|
|
@@ -170,6 +170,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
170
170
|
verifiedEmail: boolean;
|
|
171
171
|
verifiedMobile: boolean;
|
|
172
172
|
role: string;
|
|
173
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
174
|
+
legacyRole?: string | undefined;
|
|
175
|
+
staffProfileId?: string | null | undefined;
|
|
176
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
173
177
|
_id?: string | undefined;
|
|
174
178
|
location?: string | undefined;
|
|
175
179
|
pinCode?: string | undefined;
|
|
@@ -183,10 +187,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
183
187
|
refreshToken?: string | undefined;
|
|
184
188
|
verifiedIdCard?: boolean | undefined;
|
|
185
189
|
permissions?: string[] | undefined;
|
|
186
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
187
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
188
|
-
legacyRole?: string | undefined;
|
|
189
|
-
staffProfileId?: string | null | undefined;
|
|
190
190
|
baseUserId?: string | null | undefined;
|
|
191
191
|
baseHostId?: string | null | undefined;
|
|
192
192
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -223,11 +223,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
223
223
|
businessVerificationDenialReason?: string | undefined;
|
|
224
224
|
}, {
|
|
225
225
|
username: string;
|
|
226
|
+
email: string;
|
|
226
227
|
firstName: string;
|
|
227
228
|
lastName: string;
|
|
228
|
-
email: string;
|
|
229
|
-
password: string;
|
|
230
229
|
phoneNumber: string;
|
|
230
|
+
password: string;
|
|
231
231
|
countryCode: string;
|
|
232
232
|
country: string;
|
|
233
233
|
gender: "male" | "female" | "other";
|
|
@@ -240,6 +240,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
240
240
|
verifiedEmail: boolean;
|
|
241
241
|
verifiedMobile: boolean;
|
|
242
242
|
role: string;
|
|
243
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
244
|
+
legacyRole?: string | undefined;
|
|
245
|
+
staffProfileId?: string | null | undefined;
|
|
246
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
243
247
|
_id?: string | undefined;
|
|
244
248
|
location?: string | undefined;
|
|
245
249
|
pinCode?: string | undefined;
|
|
@@ -253,10 +257,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
253
257
|
refreshToken?: string | undefined;
|
|
254
258
|
verifiedIdCard?: boolean | undefined;
|
|
255
259
|
permissions?: string[] | undefined;
|
|
256
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
257
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
258
|
-
legacyRole?: string | undefined;
|
|
259
|
-
staffProfileId?: string | null | undefined;
|
|
260
260
|
baseUserId?: string | null | undefined;
|
|
261
261
|
baseHostId?: string | null | undefined;
|
|
262
262
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -368,12 +368,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
368
368
|
skills: string[];
|
|
369
369
|
city: string;
|
|
370
370
|
state: string;
|
|
371
|
-
shares: number;
|
|
372
371
|
title: string;
|
|
373
372
|
description: string;
|
|
373
|
+
images: string[];
|
|
374
374
|
slug: string;
|
|
375
375
|
opportunityType: "freelance";
|
|
376
|
-
images: string[];
|
|
377
376
|
compensation: {
|
|
378
377
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
379
378
|
currency: string;
|
|
@@ -393,15 +392,16 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
393
392
|
}[];
|
|
394
393
|
applicationCount: number;
|
|
395
394
|
views: number;
|
|
395
|
+
shares: number;
|
|
396
396
|
requiredMembershipTier: "none" | "plus" | "premium";
|
|
397
|
-
membershipRequirementStatus: "
|
|
397
|
+
membershipRequirementStatus: "approved" | "pending" | "none" | "rejected";
|
|
398
398
|
hostId: {
|
|
399
399
|
username: string;
|
|
400
|
+
email: string;
|
|
400
401
|
firstName: string;
|
|
401
402
|
lastName: string;
|
|
402
|
-
email: string;
|
|
403
|
-
password: string;
|
|
404
403
|
phoneNumber: string;
|
|
404
|
+
password: string;
|
|
405
405
|
countryCode: string;
|
|
406
406
|
country: string;
|
|
407
407
|
gender: "male" | "female" | "other";
|
|
@@ -414,6 +414,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
414
414
|
verifiedEmail: boolean;
|
|
415
415
|
verifiedMobile: boolean;
|
|
416
416
|
role: string;
|
|
417
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
418
|
+
legacyRole?: string | undefined;
|
|
419
|
+
staffProfileId?: string | null | undefined;
|
|
420
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
417
421
|
_id?: string | undefined;
|
|
418
422
|
location?: string | undefined;
|
|
419
423
|
pinCode?: string | undefined;
|
|
@@ -427,10 +431,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
427
431
|
refreshToken?: string | undefined;
|
|
428
432
|
verifiedIdCard?: boolean | undefined;
|
|
429
433
|
permissions?: string[] | undefined;
|
|
430
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
431
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
432
|
-
legacyRole?: string | undefined;
|
|
433
|
-
staffProfileId?: string | null | undefined;
|
|
434
434
|
baseUserId?: string | null | undefined;
|
|
435
435
|
baseHostId?: string | null | undefined;
|
|
436
436
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -478,6 +478,8 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
478
478
|
ipOwnership?: "host" | "shared" | "freelancer" | undefined;
|
|
479
479
|
};
|
|
480
480
|
address?: string | undefined;
|
|
481
|
+
createdAt?: Date | undefined;
|
|
482
|
+
updatedAt?: Date | undefined;
|
|
481
483
|
categoryId?: string | undefined;
|
|
482
484
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
483
485
|
bondPlan?: {
|
|
@@ -496,8 +498,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
496
498
|
countryCode: string;
|
|
497
499
|
role: string;
|
|
498
500
|
}[] | undefined;
|
|
499
|
-
createdAt?: Date | undefined;
|
|
500
|
-
updatedAt?: Date | undefined;
|
|
501
501
|
}, {
|
|
502
502
|
country: string;
|
|
503
503
|
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
@@ -507,12 +507,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
507
507
|
skills: string[];
|
|
508
508
|
city: string;
|
|
509
509
|
state: string;
|
|
510
|
-
shares: number;
|
|
511
510
|
title: string;
|
|
512
511
|
description: string;
|
|
512
|
+
images: string[];
|
|
513
513
|
slug: string;
|
|
514
514
|
opportunityType: "freelance";
|
|
515
|
-
images: string[];
|
|
516
515
|
compensation: {
|
|
517
516
|
type: "free" | "stipend" | "salary" | "project-based";
|
|
518
517
|
currency: string;
|
|
@@ -532,13 +531,14 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
532
531
|
}[];
|
|
533
532
|
applicationCount: number;
|
|
534
533
|
views: number;
|
|
534
|
+
shares: number;
|
|
535
535
|
hostId: {
|
|
536
536
|
username: string;
|
|
537
|
+
email: string;
|
|
537
538
|
firstName: string;
|
|
538
539
|
lastName: string;
|
|
539
|
-
email: string;
|
|
540
|
-
password: string;
|
|
541
540
|
phoneNumber: string;
|
|
541
|
+
password: string;
|
|
542
542
|
countryCode: string;
|
|
543
543
|
country: string;
|
|
544
544
|
gender: "male" | "female" | "other";
|
|
@@ -551,6 +551,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
551
551
|
verifiedEmail: boolean;
|
|
552
552
|
verifiedMobile: boolean;
|
|
553
553
|
role: string;
|
|
554
|
+
baseAccountType?: "user" | "host" | undefined;
|
|
555
|
+
legacyRole?: string | undefined;
|
|
556
|
+
staffProfileId?: string | null | undefined;
|
|
557
|
+
accountType?: "user" | "host" | "staff" | undefined;
|
|
554
558
|
_id?: string | undefined;
|
|
555
559
|
location?: string | undefined;
|
|
556
560
|
pinCode?: string | undefined;
|
|
@@ -564,10 +568,6 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
564
568
|
refreshToken?: string | undefined;
|
|
565
569
|
verifiedIdCard?: boolean | undefined;
|
|
566
570
|
permissions?: string[] | undefined;
|
|
567
|
-
accountType?: "user" | "host" | "staff" | undefined;
|
|
568
|
-
baseAccountType?: "user" | "host" | undefined;
|
|
569
|
-
legacyRole?: string | undefined;
|
|
570
|
-
staffProfileId?: string | null | undefined;
|
|
571
571
|
baseUserId?: string | null | undefined;
|
|
572
572
|
baseHostId?: string | null | undefined;
|
|
573
573
|
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
@@ -615,6 +615,8 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
615
615
|
ipOwnership?: "host" | "shared" | "freelancer" | undefined;
|
|
616
616
|
};
|
|
617
617
|
address?: string | undefined;
|
|
618
|
+
createdAt?: Date | undefined;
|
|
619
|
+
updatedAt?: Date | undefined;
|
|
618
620
|
categoryId?: string | undefined;
|
|
619
621
|
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
620
622
|
bondPlan?: {
|
|
@@ -627,7 +629,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
627
629
|
pendingApplicationCount?: number | undefined;
|
|
628
630
|
hostingType?: string | undefined;
|
|
629
631
|
requiredMembershipTier?: "none" | "plus" | "premium" | undefined;
|
|
630
|
-
membershipRequirementStatus?: "
|
|
632
|
+
membershipRequirementStatus?: "approved" | "pending" | "none" | "rejected" | undefined;
|
|
631
633
|
applicationObservers?: {
|
|
632
634
|
username: string;
|
|
633
635
|
email: string;
|
|
@@ -635,7 +637,5 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
635
637
|
countryCode: string;
|
|
636
638
|
role: string;
|
|
637
639
|
}[] | undefined;
|
|
638
|
-
createdAt?: Date | undefined;
|
|
639
|
-
updatedAt?: Date | undefined;
|
|
640
640
|
}>;
|
|
641
641
|
//# sourceMappingURL=freelance.d.ts.map
|