@managesome/knotr-toolkit 0.1.1 → 0.8.5
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/backend/config.d.ts +43 -0
- package/dist/backend/config.d.ts.map +1 -0
- package/dist/backend/config.js +82 -0
- package/dist/backend/config.js.map +1 -0
- package/dist/backend/database.d.ts +28 -0
- package/dist/backend/database.d.ts.map +1 -0
- package/dist/backend/database.js +112 -0
- package/dist/backend/database.js.map +1 -0
- package/dist/backend/firebase.d.ts +68 -0
- package/dist/backend/firebase.d.ts.map +1 -0
- package/dist/backend/firebase.js +233 -0
- package/dist/backend/firebase.js.map +1 -0
- package/dist/backend/index.d.ts +8 -0
- package/dist/backend/index.d.ts.map +1 -0
- package/dist/backend/index.js +19 -0
- package/dist/backend/index.js.map +1 -0
- package/dist/backend/logger.d.ts +23 -0
- package/dist/backend/logger.d.ts.map +1 -0
- package/dist/backend/logger.js +107 -0
- package/dist/backend/logger.js.map +1 -0
- package/dist/backend/redis.d.ts +59 -0
- package/dist/backend/redis.d.ts.map +1 -0
- package/dist/backend/redis.js +169 -0
- package/dist/backend/redis.js.map +1 -0
- package/dist/backend/socket.d.ts +81 -0
- package/dist/backend/socket.d.ts.map +1 -0
- package/dist/backend/socket.js +132 -0
- package/dist/backend/socket.js.map +1 -0
- package/dist/backend/worker-queue.d.ts +40 -0
- package/dist/backend/worker-queue.d.ts.map +1 -0
- package/dist/backend/worker-queue.js +140 -0
- package/dist/backend/worker-queue.js.map +1 -0
- package/dist/client/api-client.d.ts +101 -0
- package/dist/client/api-client.d.ts.map +1 -0
- package/dist/client/api-client.js +261 -0
- package/dist/client/api-client.js.map +1 -0
- package/dist/client/api-error.d.ts +100 -0
- package/dist/client/api-error.d.ts.map +1 -0
- package/dist/client/api-error.js +111 -0
- package/dist/client/api-error.js.map +1 -0
- package/dist/client/endpoints.d.ts +510 -0
- package/dist/client/endpoints.d.ts.map +1 -0
- package/dist/client/endpoints.js +306 -0
- package/dist/client/endpoints.js.map +1 -0
- package/dist/client/index.d.ts +4 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/constants/index.d.ts +2 -1
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +2 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/socket.d.ts +165 -0
- package/dist/constants/socket.d.ts.map +1 -0
- package/dist/constants/socket.js +204 -0
- package/dist/constants/socket.js.map +1 -0
- package/dist/helpers/ApiError.d.ts +74 -0
- package/dist/helpers/ApiError.d.ts.map +1 -0
- package/dist/helpers/ApiError.js +105 -0
- package/dist/helpers/ApiError.js.map +1 -0
- package/dist/helpers/asyncHandler.d.ts +42 -0
- package/dist/helpers/asyncHandler.d.ts.map +1 -0
- package/dist/helpers/asyncHandler.js +47 -0
- package/dist/helpers/asyncHandler.js.map +1 -0
- package/dist/helpers/id-generator.d.ts +98 -0
- package/dist/helpers/id-generator.d.ts.map +1 -0
- package/dist/helpers/id-generator.js +128 -0
- package/dist/helpers/id-generator.js.map +1 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +8 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/response-timing.d.ts +91 -0
- package/dist/helpers/response-timing.d.ts.map +1 -0
- package/dist/helpers/response-timing.js +176 -0
- package/dist/helpers/response-timing.js.map +1 -0
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/dist/schemas/account.schema.d.ts +4500 -0
- package/dist/schemas/account.schema.d.ts.map +1 -0
- package/dist/schemas/account.schema.js +123 -0
- package/dist/schemas/account.schema.js.map +1 -0
- package/dist/schemas/chat.schema.d.ts +4796 -0
- package/dist/schemas/chat.schema.d.ts.map +1 -0
- package/dist/schemas/chat.schema.js +107 -0
- package/dist/schemas/chat.schema.js.map +1 -0
- package/dist/schemas/collaboration-request.schema.d.ts +3960 -0
- package/dist/schemas/collaboration-request.schema.d.ts.map +1 -0
- package/dist/schemas/collaboration-request.schema.js +92 -0
- package/dist/schemas/collaboration-request.schema.js.map +1 -0
- package/dist/schemas/company-review.schema.d.ts +3465 -0
- package/dist/schemas/company-review.schema.d.ts.map +1 -0
- package/dist/schemas/company-review.schema.js +73 -0
- package/dist/schemas/company-review.schema.js.map +1 -0
- package/dist/schemas/company.schema.d.ts +6152 -0
- package/dist/schemas/company.schema.d.ts.map +1 -0
- package/dist/schemas/company.schema.js +192 -0
- package/dist/schemas/company.schema.js.map +1 -0
- package/dist/schemas/contract.schema.d.ts +5286 -0
- package/dist/schemas/contract.schema.d.ts.map +1 -0
- package/dist/schemas/contract.schema.js +115 -0
- package/dist/schemas/contract.schema.js.map +1 -0
- package/dist/schemas/dispute-evidence.schema.d.ts +3788 -0
- package/dist/schemas/dispute-evidence.schema.d.ts.map +1 -0
- package/dist/schemas/dispute-evidence.schema.js +71 -0
- package/dist/schemas/dispute-evidence.schema.js.map +1 -0
- package/dist/schemas/dispute.schema.d.ts +4970 -0
- package/dist/schemas/dispute.schema.d.ts.map +1 -0
- package/dist/schemas/dispute.schema.js +152 -0
- package/dist/schemas/dispute.schema.js.map +1 -0
- package/dist/schemas/donation.schema.d.ts +3594 -0
- package/dist/schemas/donation.schema.d.ts.map +1 -0
- package/dist/schemas/donation.schema.js +95 -0
- package/dist/schemas/donation.schema.js.map +1 -0
- package/dist/schemas/escrow.schema.d.ts +4322 -0
- package/dist/schemas/escrow.schema.d.ts.map +1 -0
- package/dist/schemas/escrow.schema.js +93 -0
- package/dist/schemas/escrow.schema.js.map +1 -0
- package/dist/schemas/flag.schema.d.ts +4375 -0
- package/dist/schemas/flag.schema.d.ts.map +1 -0
- package/dist/schemas/flag.schema.js +133 -0
- package/dist/schemas/flag.schema.js.map +1 -0
- package/dist/schemas/index.d.ts +33 -0
- package/dist/schemas/index.d.ts.map +1 -0
- package/dist/schemas/index.js +39 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/interest.schema.d.ts +3804 -0
- package/dist/schemas/interest.schema.d.ts.map +1 -0
- package/dist/schemas/interest.schema.js +107 -0
- package/dist/schemas/interest.schema.js.map +1 -0
- package/dist/schemas/match.schema.d.ts +4013 -0
- package/dist/schemas/match.schema.d.ts.map +1 -0
- package/dist/schemas/match.schema.js +118 -0
- package/dist/schemas/match.schema.js.map +1 -0
- package/dist/schemas/message.schema.d.ts +4213 -0
- package/dist/schemas/message.schema.d.ts.map +1 -0
- package/dist/schemas/message.schema.js +134 -0
- package/dist/schemas/message.schema.js.map +1 -0
- package/dist/schemas/milestone.schema.d.ts +4310 -0
- package/dist/schemas/milestone.schema.d.ts.map +1 -0
- package/dist/schemas/milestone.schema.js +99 -0
- package/dist/schemas/milestone.schema.js.map +1 -0
- package/dist/schemas/notification.schema.d.ts +4641 -0
- package/dist/schemas/notification.schema.d.ts.map +1 -0
- package/dist/schemas/notification.schema.js +139 -0
- package/dist/schemas/notification.schema.js.map +1 -0
- package/dist/schemas/profile.schema.d.ts +9589 -0
- package/dist/schemas/profile.schema.d.ts.map +1 -0
- package/dist/schemas/profile.schema.js +360 -0
- package/dist/schemas/profile.schema.js.map +1 -0
- package/dist/schemas/profit-share-agreement.schema.d.ts +3789 -0
- package/dist/schemas/profit-share-agreement.schema.d.ts.map +1 -0
- package/dist/schemas/profit-share-agreement.schema.js +76 -0
- package/dist/schemas/profit-share-agreement.schema.js.map +1 -0
- package/dist/schemas/profit-share.schema.d.ts +4051 -0
- package/dist/schemas/profit-share.schema.d.ts.map +1 -0
- package/dist/schemas/profit-share.schema.js +96 -0
- package/dist/schemas/profit-share.schema.js.map +1 -0
- package/dist/schemas/promo-code.schema.d.ts +3924 -0
- package/dist/schemas/promo-code.schema.d.ts.map +1 -0
- package/dist/schemas/promo-code.schema.js +112 -0
- package/dist/schemas/promo-code.schema.js.map +1 -0
- package/dist/schemas/proposal.schema.d.ts +5182 -0
- package/dist/schemas/proposal.schema.d.ts.map +1 -0
- package/dist/schemas/proposal.schema.js +114 -0
- package/dist/schemas/proposal.schema.js.map +1 -0
- package/dist/schemas/purchase.schema.d.ts +3724 -0
- package/dist/schemas/purchase.schema.d.ts.map +1 -0
- package/dist/schemas/purchase.schema.js +89 -0
- package/dist/schemas/purchase.schema.js.map +1 -0
- package/dist/schemas/requirement-post.schema.d.ts +6315 -0
- package/dist/schemas/requirement-post.schema.d.ts.map +1 -0
- package/dist/schemas/requirement-post.schema.js +153 -0
- package/dist/schemas/requirement-post.schema.js.map +1 -0
- package/dist/schemas/review.schema.d.ts +4512 -0
- package/dist/schemas/review.schema.d.ts.map +1 -0
- package/dist/schemas/review.schema.js +121 -0
- package/dist/schemas/review.schema.js.map +1 -0
- package/dist/schemas/service-listing.schema.d.ts +5152 -0
- package/dist/schemas/service-listing.schema.d.ts.map +1 -0
- package/dist/schemas/service-listing.schema.js +137 -0
- package/dist/schemas/service-listing.schema.js.map +1 -0
- package/dist/schemas/subscription.schema.d.ts +3985 -0
- package/dist/schemas/subscription.schema.d.ts.map +1 -0
- package/dist/schemas/subscription.schema.js +94 -0
- package/dist/schemas/subscription.schema.js.map +1 -0
- package/dist/schemas/tmc-application.schema.d.ts +4357 -0
- package/dist/schemas/tmc-application.schema.d.ts.map +1 -0
- package/dist/schemas/tmc-application.schema.js +96 -0
- package/dist/schemas/tmc-application.schema.js.map +1 -0
- package/dist/schemas/tmc-membership.schema.d.ts +3985 -0
- package/dist/schemas/tmc-membership.schema.d.ts.map +1 -0
- package/dist/schemas/tmc-membership.schema.js +84 -0
- package/dist/schemas/tmc-membership.schema.js.map +1 -0
- package/dist/schemas/trust-badge.schema.d.ts +3919 -0
- package/dist/schemas/trust-badge.schema.d.ts.map +1 -0
- package/dist/schemas/trust-badge.schema.js +83 -0
- package/dist/schemas/trust-badge.schema.js.map +1 -0
- package/dist/schemas/verification.schema.d.ts +4606 -0
- package/dist/schemas/verification.schema.d.ts.map +1 -0
- package/dist/schemas/verification.schema.js +114 -0
- package/dist/schemas/verification.schema.js.map +1 -0
- package/dist/schemas/webhook-event.schema.d.ts +3534 -0
- package/dist/schemas/webhook-event.schema.d.ts.map +1 -0
- package/dist/schemas/webhook-event.schema.js +83 -0
- package/dist/schemas/webhook-event.schema.js.map +1 -0
- package/dist/types/account.d.ts +36 -7
- package/dist/types/account.d.ts.map +1 -1
- package/dist/types/account.js +3 -1
- package/dist/types/account.js.map +1 -1
- package/dist/types/admin.d.ts +20 -10
- package/dist/types/admin.d.ts.map +1 -1
- package/dist/types/admin.js +3 -1
- package/dist/types/admin.js.map +1 -1
- package/dist/types/api.d.ts +184 -109
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/api.js +2 -1
- package/dist/types/api.js.map +1 -1
- package/dist/types/chat.d.ts +38 -20
- package/dist/types/chat.d.ts.map +1 -1
- package/dist/types/chat.js +3 -1
- package/dist/types/chat.js.map +1 -1
- package/dist/types/common.d.ts +39 -12
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +4 -1
- package/dist/types/common.js.map +1 -1
- package/dist/types/company.d.ts +61 -44
- package/dist/types/company.d.ts.map +1 -1
- package/dist/types/company.js +3 -1
- package/dist/types/company.js.map +1 -1
- package/dist/types/flag.d.ts +19 -8
- package/dist/types/flag.d.ts.map +1 -1
- package/dist/types/flag.js +3 -1
- package/dist/types/flag.js.map +1 -1
- package/dist/types/forms.d.ts +334 -0
- package/dist/types/forms.d.ts.map +1 -0
- package/dist/types/forms.js +5 -0
- package/dist/types/forms.js.map +1 -0
- package/dist/types/index.d.ts +18 -13
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +18 -13
- package/dist/types/index.js.map +1 -1
- package/dist/types/marketplace.d.ts +174 -104
- package/dist/types/marketplace.d.ts.map +1 -1
- package/dist/types/marketplace.js +2 -0
- package/dist/types/marketplace.js.map +1 -1
- package/dist/types/match.d.ts +36 -19
- package/dist/types/match.d.ts.map +1 -1
- package/dist/types/match.js +3 -1
- package/dist/types/match.js.map +1 -1
- package/dist/types/navigation.d.ts +305 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/dist/types/navigation.js +18 -0
- package/dist/types/navigation.js.map +1 -0
- package/dist/types/notification.d.ts +92 -0
- package/dist/types/notification.d.ts.map +1 -0
- package/dist/types/notification.js +5 -0
- package/dist/types/notification.js.map +1 -0
- package/dist/types/payment.d.ts +70 -38
- package/dist/types/payment.d.ts.map +1 -1
- package/dist/types/payment.js +3 -1
- package/dist/types/payment.js.map +1 -1
- package/dist/types/policy.d.ts +174 -81
- package/dist/types/policy.d.ts.map +1 -1
- package/dist/types/policy.js.map +1 -1
- package/dist/types/profile.d.ts +48 -37
- package/dist/types/profile.d.ts.map +1 -1
- package/dist/types/profile.js +3 -1
- package/dist/types/profile.js.map +1 -1
- package/dist/types/socket.d.ts +431 -0
- package/dist/types/socket.d.ts.map +1 -0
- package/dist/types/socket.js +5 -0
- package/dist/types/socket.js.map +1 -0
- package/dist/types/verification.d.ts +18 -9
- package/dist/types/verification.d.ts.map +1 -1
- package/dist/types/verification.js +3 -1
- package/dist/types/verification.js.map +1 -1
- package/dist/types/worker.d.ts +452 -0
- package/dist/types/worker.d.ts.map +1 -0
- package/dist/types/worker.js +5 -0
- package/dist/types/worker.js.map +1 -0
- package/dist/validation/index.d.ts +5 -0
- package/dist/validation/index.d.ts.map +1 -0
- package/dist/validation/index.js +9 -0
- package/dist/validation/index.js.map +1 -0
- package/dist/validation/messages.d.ts +124 -0
- package/dist/validation/messages.d.ts.map +1 -0
- package/dist/validation/messages.js +160 -0
- package/dist/validation/messages.js.map +1 -0
- package/dist/validation/schemas.d.ts +1127 -0
- package/dist/validation/schemas.d.ts.map +1 -0
- package/dist/validation/schemas.js +376 -0
- package/dist/validation/schemas.js.map +1 -0
- package/dist/validation/validators.d.ts +229 -0
- package/dist/validation/validators.d.ts.map +1 -0
- package/dist/validation/validators.js +307 -0
- package/dist/validation/validators.js.map +1 -0
- package/package.json +37 -3
|
@@ -0,0 +1,1127 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Login request schema
|
|
4
|
+
*/
|
|
5
|
+
export declare const loginSchema: z.ZodObject<{
|
|
6
|
+
/** Firebase ID token */
|
|
7
|
+
idToken: z.ZodString;
|
|
8
|
+
/** Device info for push notifications */
|
|
9
|
+
device: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
platform: z.ZodEnum<["ios", "android", "web"]>;
|
|
11
|
+
version: z.ZodString;
|
|
12
|
+
pushToken: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
platform: "web" | "ios" | "android";
|
|
15
|
+
version: string;
|
|
16
|
+
pushToken?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
platform: "web" | "ios" | "android";
|
|
19
|
+
version: string;
|
|
20
|
+
pushToken?: string | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
idToken: string;
|
|
24
|
+
device?: {
|
|
25
|
+
platform: "web" | "ios" | "android";
|
|
26
|
+
version: string;
|
|
27
|
+
pushToken?: string | undefined;
|
|
28
|
+
} | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
idToken: string;
|
|
31
|
+
device?: {
|
|
32
|
+
platform: "web" | "ios" | "android";
|
|
33
|
+
version: string;
|
|
34
|
+
pushToken?: string | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
export type LoginInput = z.infer<typeof loginSchema>;
|
|
38
|
+
/**
|
|
39
|
+
* Register push token schema
|
|
40
|
+
*/
|
|
41
|
+
export declare const registerPushTokenSchema: z.ZodObject<{
|
|
42
|
+
token: z.ZodString;
|
|
43
|
+
platform: z.ZodEnum<["ios", "android", "web"]>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
platform: "web" | "ios" | "android";
|
|
46
|
+
token: string;
|
|
47
|
+
}, {
|
|
48
|
+
platform: "web" | "ios" | "android";
|
|
49
|
+
token: string;
|
|
50
|
+
}>;
|
|
51
|
+
export type RegisterPushTokenInput = z.infer<typeof registerPushTokenSchema>;
|
|
52
|
+
/**
|
|
53
|
+
* Create account schema
|
|
54
|
+
*/
|
|
55
|
+
export declare const createAccountSchema: z.ZodObject<{
|
|
56
|
+
email: z.ZodString;
|
|
57
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
relationshipToUser: z.ZodEnum<["self", "parent", "sibling", "relative", "friend", "matchmaker", "other"]>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
email: string;
|
|
62
|
+
name: string;
|
|
63
|
+
relationshipToUser: "other" | "parent" | "sibling" | "self" | "relative" | "friend" | "matchmaker";
|
|
64
|
+
phone?: string | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
email: string;
|
|
67
|
+
name: string;
|
|
68
|
+
relationshipToUser: "other" | "parent" | "sibling" | "self" | "relative" | "friend" | "matchmaker";
|
|
69
|
+
phone?: string | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type CreateAccountInput = z.infer<typeof createAccountSchema>;
|
|
72
|
+
/**
|
|
73
|
+
* Update account schema
|
|
74
|
+
*/
|
|
75
|
+
export declare const updateAccountSchema: z.ZodObject<{
|
|
76
|
+
name: z.ZodOptional<z.ZodString>;
|
|
77
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
78
|
+
language: z.ZodOptional<z.ZodEnum<["en", "ar", "ur"]>>;
|
|
79
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, "strip", z.ZodTypeAny, {
|
|
81
|
+
phone?: string | undefined;
|
|
82
|
+
language?: "en" | "ur" | "ar" | undefined;
|
|
83
|
+
name?: string | undefined;
|
|
84
|
+
timezone?: string | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
phone?: string | undefined;
|
|
87
|
+
language?: "en" | "ur" | "ar" | undefined;
|
|
88
|
+
name?: string | undefined;
|
|
89
|
+
timezone?: string | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
export type UpdateAccountInput = z.infer<typeof updateAccountSchema>;
|
|
92
|
+
/**
|
|
93
|
+
* Update account settings schema
|
|
94
|
+
*/
|
|
95
|
+
export declare const updateSettingsSchema: z.ZodObject<{
|
|
96
|
+
notifications: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
email: z.ZodOptional<z.ZodBoolean>;
|
|
98
|
+
push: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
sms: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
marketing: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
email?: boolean | undefined;
|
|
103
|
+
push?: boolean | undefined;
|
|
104
|
+
sms?: boolean | undefined;
|
|
105
|
+
marketing?: boolean | undefined;
|
|
106
|
+
}, {
|
|
107
|
+
email?: boolean | undefined;
|
|
108
|
+
push?: boolean | undefined;
|
|
109
|
+
sms?: boolean | undefined;
|
|
110
|
+
marketing?: boolean | undefined;
|
|
111
|
+
}>>;
|
|
112
|
+
privacy: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
showOnlineStatus: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
showLastSeen: z.ZodOptional<z.ZodBoolean>;
|
|
115
|
+
showReadReceipts: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
showOnlineStatus?: boolean | undefined;
|
|
118
|
+
showLastSeen?: boolean | undefined;
|
|
119
|
+
showReadReceipts?: boolean | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
showOnlineStatus?: boolean | undefined;
|
|
122
|
+
showLastSeen?: boolean | undefined;
|
|
123
|
+
showReadReceipts?: boolean | undefined;
|
|
124
|
+
}>>;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
notifications?: {
|
|
127
|
+
email?: boolean | undefined;
|
|
128
|
+
push?: boolean | undefined;
|
|
129
|
+
sms?: boolean | undefined;
|
|
130
|
+
marketing?: boolean | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
privacy?: {
|
|
133
|
+
showOnlineStatus?: boolean | undefined;
|
|
134
|
+
showLastSeen?: boolean | undefined;
|
|
135
|
+
showReadReceipts?: boolean | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
}, {
|
|
138
|
+
notifications?: {
|
|
139
|
+
email?: boolean | undefined;
|
|
140
|
+
push?: boolean | undefined;
|
|
141
|
+
sms?: boolean | undefined;
|
|
142
|
+
marketing?: boolean | undefined;
|
|
143
|
+
} | undefined;
|
|
144
|
+
privacy?: {
|
|
145
|
+
showOnlineStatus?: boolean | undefined;
|
|
146
|
+
showLastSeen?: boolean | undefined;
|
|
147
|
+
showReadReceipts?: boolean | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
}>;
|
|
150
|
+
export type UpdateSettingsInput = z.infer<typeof updateSettingsSchema>;
|
|
151
|
+
/**
|
|
152
|
+
* Create profile schema
|
|
153
|
+
*/
|
|
154
|
+
export declare const createProfileSchema: z.ZodObject<{
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
gender: z.ZodEnum<["male", "female"]>;
|
|
157
|
+
dateOfBirth: z.ZodString;
|
|
158
|
+
height: z.ZodNumber;
|
|
159
|
+
weight: z.ZodOptional<z.ZodNumber>;
|
|
160
|
+
maritalStatus: z.ZodEnum<["never_married", "divorced", "widowed", "annulled"]>;
|
|
161
|
+
hasChildren: z.ZodBoolean;
|
|
162
|
+
numberOfChildren: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
education: z.ZodEnum<["high_school", "some_college", "bachelors", "masters", "doctorate", "professional", "trade_school", "other"]>;
|
|
164
|
+
profession: z.ZodString;
|
|
165
|
+
location: z.ZodObject<{
|
|
166
|
+
country: z.ZodString;
|
|
167
|
+
state: z.ZodOptional<z.ZodString>;
|
|
168
|
+
city: z.ZodString;
|
|
169
|
+
coordinates: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
latitude: z.ZodNumber;
|
|
171
|
+
longitude: z.ZodNumber;
|
|
172
|
+
}, "strip", z.ZodTypeAny, {
|
|
173
|
+
latitude: number;
|
|
174
|
+
longitude: number;
|
|
175
|
+
}, {
|
|
176
|
+
latitude: number;
|
|
177
|
+
longitude: number;
|
|
178
|
+
}>>;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
country: string;
|
|
181
|
+
city: string;
|
|
182
|
+
state?: string | undefined;
|
|
183
|
+
coordinates?: {
|
|
184
|
+
latitude: number;
|
|
185
|
+
longitude: number;
|
|
186
|
+
} | undefined;
|
|
187
|
+
}, {
|
|
188
|
+
country: string;
|
|
189
|
+
city: string;
|
|
190
|
+
state?: string | undefined;
|
|
191
|
+
coordinates?: {
|
|
192
|
+
latitude: number;
|
|
193
|
+
longitude: number;
|
|
194
|
+
} | undefined;
|
|
195
|
+
}>;
|
|
196
|
+
willingToRelocate: z.ZodBoolean;
|
|
197
|
+
faithDetails: z.ZodObject<{
|
|
198
|
+
faith: z.ZodEnum<["muslim", "christian", "jewish", "hindu", "sikh", "buddhist", "other"]>;
|
|
199
|
+
sect: z.ZodOptional<z.ZodString>;
|
|
200
|
+
convertedTo: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
prayerFrequency: z.ZodOptional<z.ZodEnum<["always", "mostly", "sometimes", "rarely", "never"]>>;
|
|
202
|
+
dietaryPreferences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
205
|
+
sect?: string | undefined;
|
|
206
|
+
convertedTo?: boolean | undefined;
|
|
207
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
208
|
+
dietaryPreferences?: string[] | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
211
|
+
sect?: string | undefined;
|
|
212
|
+
convertedTo?: boolean | undefined;
|
|
213
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
214
|
+
dietaryPreferences?: string[] | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
about: z.ZodString;
|
|
217
|
+
expectations: z.ZodString;
|
|
218
|
+
partnerCriteria: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
ageRange: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
220
|
+
min: z.ZodNumber;
|
|
221
|
+
max: z.ZodNumber;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
min: number;
|
|
224
|
+
max: number;
|
|
225
|
+
}, {
|
|
226
|
+
min: number;
|
|
227
|
+
max: number;
|
|
228
|
+
}>, {
|
|
229
|
+
min: number;
|
|
230
|
+
max: number;
|
|
231
|
+
}, {
|
|
232
|
+
min: number;
|
|
233
|
+
max: number;
|
|
234
|
+
}>>;
|
|
235
|
+
heightRange: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
236
|
+
min: z.ZodNumber;
|
|
237
|
+
max: z.ZodNumber;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
min: number;
|
|
240
|
+
max: number;
|
|
241
|
+
}, {
|
|
242
|
+
min: number;
|
|
243
|
+
max: number;
|
|
244
|
+
}>, {
|
|
245
|
+
min: number;
|
|
246
|
+
max: number;
|
|
247
|
+
}, {
|
|
248
|
+
min: number;
|
|
249
|
+
max: number;
|
|
250
|
+
}>>;
|
|
251
|
+
education: z.ZodOptional<z.ZodArray<z.ZodEnum<["high_school", "some_college", "bachelors", "masters", "doctorate", "professional", "trade_school", "other"]>, "many">>;
|
|
252
|
+
maritalStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["never_married", "divorced", "widowed", "annulled"]>, "many">>;
|
|
253
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
254
|
+
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
256
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
257
|
+
ageRange?: {
|
|
258
|
+
min: number;
|
|
259
|
+
max: number;
|
|
260
|
+
} | undefined;
|
|
261
|
+
heightRange?: {
|
|
262
|
+
min: number;
|
|
263
|
+
max: number;
|
|
264
|
+
} | undefined;
|
|
265
|
+
locations?: string[] | undefined;
|
|
266
|
+
}, {
|
|
267
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
268
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
269
|
+
ageRange?: {
|
|
270
|
+
min: number;
|
|
271
|
+
max: number;
|
|
272
|
+
} | undefined;
|
|
273
|
+
heightRange?: {
|
|
274
|
+
min: number;
|
|
275
|
+
max: number;
|
|
276
|
+
} | undefined;
|
|
277
|
+
locations?: string[] | undefined;
|
|
278
|
+
}>>;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
education: "other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school";
|
|
281
|
+
gender: "male" | "female";
|
|
282
|
+
dateOfBirth: string;
|
|
283
|
+
maritalStatus: "never_married" | "divorced" | "widowed" | "annulled";
|
|
284
|
+
height: number;
|
|
285
|
+
location: {
|
|
286
|
+
country: string;
|
|
287
|
+
city: string;
|
|
288
|
+
state?: string | undefined;
|
|
289
|
+
coordinates?: {
|
|
290
|
+
latitude: number;
|
|
291
|
+
longitude: number;
|
|
292
|
+
} | undefined;
|
|
293
|
+
};
|
|
294
|
+
profession: string;
|
|
295
|
+
about: string;
|
|
296
|
+
name: string;
|
|
297
|
+
expectations: string;
|
|
298
|
+
hasChildren: boolean;
|
|
299
|
+
willingToRelocate: boolean;
|
|
300
|
+
faithDetails: {
|
|
301
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
302
|
+
sect?: string | undefined;
|
|
303
|
+
convertedTo?: boolean | undefined;
|
|
304
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
305
|
+
dietaryPreferences?: string[] | undefined;
|
|
306
|
+
};
|
|
307
|
+
weight?: number | undefined;
|
|
308
|
+
numberOfChildren?: number | undefined;
|
|
309
|
+
partnerCriteria?: {
|
|
310
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
311
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
312
|
+
ageRange?: {
|
|
313
|
+
min: number;
|
|
314
|
+
max: number;
|
|
315
|
+
} | undefined;
|
|
316
|
+
heightRange?: {
|
|
317
|
+
min: number;
|
|
318
|
+
max: number;
|
|
319
|
+
} | undefined;
|
|
320
|
+
locations?: string[] | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
education: "other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school";
|
|
324
|
+
gender: "male" | "female";
|
|
325
|
+
dateOfBirth: string;
|
|
326
|
+
maritalStatus: "never_married" | "divorced" | "widowed" | "annulled";
|
|
327
|
+
height: number;
|
|
328
|
+
location: {
|
|
329
|
+
country: string;
|
|
330
|
+
city: string;
|
|
331
|
+
state?: string | undefined;
|
|
332
|
+
coordinates?: {
|
|
333
|
+
latitude: number;
|
|
334
|
+
longitude: number;
|
|
335
|
+
} | undefined;
|
|
336
|
+
};
|
|
337
|
+
profession: string;
|
|
338
|
+
about: string;
|
|
339
|
+
name: string;
|
|
340
|
+
expectations: string;
|
|
341
|
+
hasChildren: boolean;
|
|
342
|
+
willingToRelocate: boolean;
|
|
343
|
+
faithDetails: {
|
|
344
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
345
|
+
sect?: string | undefined;
|
|
346
|
+
convertedTo?: boolean | undefined;
|
|
347
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
348
|
+
dietaryPreferences?: string[] | undefined;
|
|
349
|
+
};
|
|
350
|
+
weight?: number | undefined;
|
|
351
|
+
numberOfChildren?: number | undefined;
|
|
352
|
+
partnerCriteria?: {
|
|
353
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
354
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
355
|
+
ageRange?: {
|
|
356
|
+
min: number;
|
|
357
|
+
max: number;
|
|
358
|
+
} | undefined;
|
|
359
|
+
heightRange?: {
|
|
360
|
+
min: number;
|
|
361
|
+
max: number;
|
|
362
|
+
} | undefined;
|
|
363
|
+
locations?: string[] | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
}>;
|
|
366
|
+
export type CreateProfileInput = z.infer<typeof createProfileSchema>;
|
|
367
|
+
/**
|
|
368
|
+
* Update profile schema (all fields optional)
|
|
369
|
+
*/
|
|
370
|
+
export declare const updateProfileSchema: z.ZodObject<{
|
|
371
|
+
name: z.ZodOptional<z.ZodString>;
|
|
372
|
+
gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
|
|
373
|
+
dateOfBirth: z.ZodOptional<z.ZodString>;
|
|
374
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
375
|
+
weight: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
376
|
+
maritalStatus: z.ZodOptional<z.ZodEnum<["never_married", "divorced", "widowed", "annulled"]>>;
|
|
377
|
+
hasChildren: z.ZodOptional<z.ZodBoolean>;
|
|
378
|
+
numberOfChildren: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
379
|
+
education: z.ZodOptional<z.ZodEnum<["high_school", "some_college", "bachelors", "masters", "doctorate", "professional", "trade_school", "other"]>>;
|
|
380
|
+
profession: z.ZodOptional<z.ZodString>;
|
|
381
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
country: z.ZodString;
|
|
383
|
+
state: z.ZodOptional<z.ZodString>;
|
|
384
|
+
city: z.ZodString;
|
|
385
|
+
coordinates: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
latitude: z.ZodNumber;
|
|
387
|
+
longitude: z.ZodNumber;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
latitude: number;
|
|
390
|
+
longitude: number;
|
|
391
|
+
}, {
|
|
392
|
+
latitude: number;
|
|
393
|
+
longitude: number;
|
|
394
|
+
}>>;
|
|
395
|
+
}, "strip", z.ZodTypeAny, {
|
|
396
|
+
country: string;
|
|
397
|
+
city: string;
|
|
398
|
+
state?: string | undefined;
|
|
399
|
+
coordinates?: {
|
|
400
|
+
latitude: number;
|
|
401
|
+
longitude: number;
|
|
402
|
+
} | undefined;
|
|
403
|
+
}, {
|
|
404
|
+
country: string;
|
|
405
|
+
city: string;
|
|
406
|
+
state?: string | undefined;
|
|
407
|
+
coordinates?: {
|
|
408
|
+
latitude: number;
|
|
409
|
+
longitude: number;
|
|
410
|
+
} | undefined;
|
|
411
|
+
}>>;
|
|
412
|
+
willingToRelocate: z.ZodOptional<z.ZodBoolean>;
|
|
413
|
+
faithDetails: z.ZodOptional<z.ZodObject<{
|
|
414
|
+
faith: z.ZodEnum<["muslim", "christian", "jewish", "hindu", "sikh", "buddhist", "other"]>;
|
|
415
|
+
sect: z.ZodOptional<z.ZodString>;
|
|
416
|
+
convertedTo: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
prayerFrequency: z.ZodOptional<z.ZodEnum<["always", "mostly", "sometimes", "rarely", "never"]>>;
|
|
418
|
+
dietaryPreferences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
419
|
+
}, "strip", z.ZodTypeAny, {
|
|
420
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
421
|
+
sect?: string | undefined;
|
|
422
|
+
convertedTo?: boolean | undefined;
|
|
423
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
424
|
+
dietaryPreferences?: string[] | undefined;
|
|
425
|
+
}, {
|
|
426
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
427
|
+
sect?: string | undefined;
|
|
428
|
+
convertedTo?: boolean | undefined;
|
|
429
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
430
|
+
dietaryPreferences?: string[] | undefined;
|
|
431
|
+
}>>;
|
|
432
|
+
about: z.ZodOptional<z.ZodString>;
|
|
433
|
+
expectations: z.ZodOptional<z.ZodString>;
|
|
434
|
+
partnerCriteria: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
435
|
+
ageRange: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
436
|
+
min: z.ZodNumber;
|
|
437
|
+
max: z.ZodNumber;
|
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
|
439
|
+
min: number;
|
|
440
|
+
max: number;
|
|
441
|
+
}, {
|
|
442
|
+
min: number;
|
|
443
|
+
max: number;
|
|
444
|
+
}>, {
|
|
445
|
+
min: number;
|
|
446
|
+
max: number;
|
|
447
|
+
}, {
|
|
448
|
+
min: number;
|
|
449
|
+
max: number;
|
|
450
|
+
}>>;
|
|
451
|
+
heightRange: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
452
|
+
min: z.ZodNumber;
|
|
453
|
+
max: z.ZodNumber;
|
|
454
|
+
}, "strip", z.ZodTypeAny, {
|
|
455
|
+
min: number;
|
|
456
|
+
max: number;
|
|
457
|
+
}, {
|
|
458
|
+
min: number;
|
|
459
|
+
max: number;
|
|
460
|
+
}>, {
|
|
461
|
+
min: number;
|
|
462
|
+
max: number;
|
|
463
|
+
}, {
|
|
464
|
+
min: number;
|
|
465
|
+
max: number;
|
|
466
|
+
}>>;
|
|
467
|
+
education: z.ZodOptional<z.ZodArray<z.ZodEnum<["high_school", "some_college", "bachelors", "masters", "doctorate", "professional", "trade_school", "other"]>, "many">>;
|
|
468
|
+
maritalStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["never_married", "divorced", "widowed", "annulled"]>, "many">>;
|
|
469
|
+
locations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
470
|
+
}, "strip", z.ZodTypeAny, {
|
|
471
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
472
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
473
|
+
ageRange?: {
|
|
474
|
+
min: number;
|
|
475
|
+
max: number;
|
|
476
|
+
} | undefined;
|
|
477
|
+
heightRange?: {
|
|
478
|
+
min: number;
|
|
479
|
+
max: number;
|
|
480
|
+
} | undefined;
|
|
481
|
+
locations?: string[] | undefined;
|
|
482
|
+
}, {
|
|
483
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
484
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
485
|
+
ageRange?: {
|
|
486
|
+
min: number;
|
|
487
|
+
max: number;
|
|
488
|
+
} | undefined;
|
|
489
|
+
heightRange?: {
|
|
490
|
+
min: number;
|
|
491
|
+
max: number;
|
|
492
|
+
} | undefined;
|
|
493
|
+
locations?: string[] | undefined;
|
|
494
|
+
}>>>;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
education?: "other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school" | undefined;
|
|
497
|
+
gender?: "male" | "female" | undefined;
|
|
498
|
+
dateOfBirth?: string | undefined;
|
|
499
|
+
maritalStatus?: "never_married" | "divorced" | "widowed" | "annulled" | undefined;
|
|
500
|
+
height?: number | undefined;
|
|
501
|
+
weight?: number | undefined;
|
|
502
|
+
location?: {
|
|
503
|
+
country: string;
|
|
504
|
+
city: string;
|
|
505
|
+
state?: string | undefined;
|
|
506
|
+
coordinates?: {
|
|
507
|
+
latitude: number;
|
|
508
|
+
longitude: number;
|
|
509
|
+
} | undefined;
|
|
510
|
+
} | undefined;
|
|
511
|
+
profession?: string | undefined;
|
|
512
|
+
about?: string | undefined;
|
|
513
|
+
name?: string | undefined;
|
|
514
|
+
expectations?: string | undefined;
|
|
515
|
+
hasChildren?: boolean | undefined;
|
|
516
|
+
numberOfChildren?: number | undefined;
|
|
517
|
+
willingToRelocate?: boolean | undefined;
|
|
518
|
+
faithDetails?: {
|
|
519
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
520
|
+
sect?: string | undefined;
|
|
521
|
+
convertedTo?: boolean | undefined;
|
|
522
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
523
|
+
dietaryPreferences?: string[] | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
partnerCriteria?: {
|
|
526
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
527
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
528
|
+
ageRange?: {
|
|
529
|
+
min: number;
|
|
530
|
+
max: number;
|
|
531
|
+
} | undefined;
|
|
532
|
+
heightRange?: {
|
|
533
|
+
min: number;
|
|
534
|
+
max: number;
|
|
535
|
+
} | undefined;
|
|
536
|
+
locations?: string[] | undefined;
|
|
537
|
+
} | undefined;
|
|
538
|
+
}, {
|
|
539
|
+
education?: "other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school" | undefined;
|
|
540
|
+
gender?: "male" | "female" | undefined;
|
|
541
|
+
dateOfBirth?: string | undefined;
|
|
542
|
+
maritalStatus?: "never_married" | "divorced" | "widowed" | "annulled" | undefined;
|
|
543
|
+
height?: number | undefined;
|
|
544
|
+
weight?: number | undefined;
|
|
545
|
+
location?: {
|
|
546
|
+
country: string;
|
|
547
|
+
city: string;
|
|
548
|
+
state?: string | undefined;
|
|
549
|
+
coordinates?: {
|
|
550
|
+
latitude: number;
|
|
551
|
+
longitude: number;
|
|
552
|
+
} | undefined;
|
|
553
|
+
} | undefined;
|
|
554
|
+
profession?: string | undefined;
|
|
555
|
+
about?: string | undefined;
|
|
556
|
+
name?: string | undefined;
|
|
557
|
+
expectations?: string | undefined;
|
|
558
|
+
hasChildren?: boolean | undefined;
|
|
559
|
+
numberOfChildren?: number | undefined;
|
|
560
|
+
willingToRelocate?: boolean | undefined;
|
|
561
|
+
faithDetails?: {
|
|
562
|
+
faith: "other" | "muslim" | "christian" | "jewish" | "hindu" | "sikh" | "buddhist";
|
|
563
|
+
sect?: string | undefined;
|
|
564
|
+
convertedTo?: boolean | undefined;
|
|
565
|
+
prayerFrequency?: "always" | "mostly" | "sometimes" | "never" | "rarely" | undefined;
|
|
566
|
+
dietaryPreferences?: string[] | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
partnerCriteria?: {
|
|
569
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
570
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
571
|
+
ageRange?: {
|
|
572
|
+
min: number;
|
|
573
|
+
max: number;
|
|
574
|
+
} | undefined;
|
|
575
|
+
heightRange?: {
|
|
576
|
+
min: number;
|
|
577
|
+
max: number;
|
|
578
|
+
} | undefined;
|
|
579
|
+
locations?: string[] | undefined;
|
|
580
|
+
} | undefined;
|
|
581
|
+
}>;
|
|
582
|
+
export type UpdateProfileInput = z.infer<typeof updateProfileSchema>;
|
|
583
|
+
/**
|
|
584
|
+
* Profile search filters schema
|
|
585
|
+
*/
|
|
586
|
+
export declare const profileSearchSchema: z.ZodOptional<z.ZodObject<{
|
|
587
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
588
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
589
|
+
gender: z.ZodOptional<z.ZodEnum<["male", "female"]>>;
|
|
590
|
+
ageRange: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
591
|
+
min: z.ZodNumber;
|
|
592
|
+
max: z.ZodNumber;
|
|
593
|
+
}, "strip", z.ZodTypeAny, {
|
|
594
|
+
min: number;
|
|
595
|
+
max: number;
|
|
596
|
+
}, {
|
|
597
|
+
min: number;
|
|
598
|
+
max: number;
|
|
599
|
+
}>, {
|
|
600
|
+
min: number;
|
|
601
|
+
max: number;
|
|
602
|
+
}, {
|
|
603
|
+
min: number;
|
|
604
|
+
max: number;
|
|
605
|
+
}>>;
|
|
606
|
+
heightRange: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
607
|
+
min: z.ZodNumber;
|
|
608
|
+
max: z.ZodNumber;
|
|
609
|
+
}, "strip", z.ZodTypeAny, {
|
|
610
|
+
min: number;
|
|
611
|
+
max: number;
|
|
612
|
+
}, {
|
|
613
|
+
min: number;
|
|
614
|
+
max: number;
|
|
615
|
+
}>, {
|
|
616
|
+
min: number;
|
|
617
|
+
max: number;
|
|
618
|
+
}, {
|
|
619
|
+
min: number;
|
|
620
|
+
max: number;
|
|
621
|
+
}>>;
|
|
622
|
+
maritalStatus: z.ZodOptional<z.ZodArray<z.ZodEnum<["never_married", "divorced", "widowed", "annulled"]>, "many">>;
|
|
623
|
+
education: z.ZodOptional<z.ZodArray<z.ZodEnum<["high_school", "some_college", "bachelors", "masters", "doctorate", "professional", "trade_school", "other"]>, "many">>;
|
|
624
|
+
hasChildren: z.ZodOptional<z.ZodBoolean>;
|
|
625
|
+
countries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
626
|
+
cities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
627
|
+
maxDistance: z.ZodOptional<z.ZodNumber>;
|
|
628
|
+
faith: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
629
|
+
sect: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
630
|
+
verifiedOnly: z.ZodOptional<z.ZodBoolean>;
|
|
631
|
+
sortBy: z.ZodOptional<z.ZodEnum<["relevance", "lastActive", "newest", "compatibility"]>>;
|
|
632
|
+
}, "strip", z.ZodTypeAny, {
|
|
633
|
+
page: number;
|
|
634
|
+
limit: number;
|
|
635
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
636
|
+
gender?: "male" | "female" | undefined;
|
|
637
|
+
sect?: string[] | undefined;
|
|
638
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
639
|
+
faith?: string[] | undefined;
|
|
640
|
+
hasChildren?: boolean | undefined;
|
|
641
|
+
ageRange?: {
|
|
642
|
+
min: number;
|
|
643
|
+
max: number;
|
|
644
|
+
} | undefined;
|
|
645
|
+
heightRange?: {
|
|
646
|
+
min: number;
|
|
647
|
+
max: number;
|
|
648
|
+
} | undefined;
|
|
649
|
+
countries?: string[] | undefined;
|
|
650
|
+
cities?: string[] | undefined;
|
|
651
|
+
maxDistance?: number | undefined;
|
|
652
|
+
verifiedOnly?: boolean | undefined;
|
|
653
|
+
sortBy?: "relevance" | "lastActive" | "newest" | "compatibility" | undefined;
|
|
654
|
+
}, {
|
|
655
|
+
education?: ("other" | "high_school" | "bachelors" | "masters" | "doctorate" | "some_college" | "professional" | "trade_school")[] | undefined;
|
|
656
|
+
gender?: "male" | "female" | undefined;
|
|
657
|
+
sect?: string[] | undefined;
|
|
658
|
+
maritalStatus?: ("never_married" | "divorced" | "widowed" | "annulled")[] | undefined;
|
|
659
|
+
faith?: string[] | undefined;
|
|
660
|
+
page?: number | undefined;
|
|
661
|
+
limit?: number | undefined;
|
|
662
|
+
hasChildren?: boolean | undefined;
|
|
663
|
+
ageRange?: {
|
|
664
|
+
min: number;
|
|
665
|
+
max: number;
|
|
666
|
+
} | undefined;
|
|
667
|
+
heightRange?: {
|
|
668
|
+
min: number;
|
|
669
|
+
max: number;
|
|
670
|
+
} | undefined;
|
|
671
|
+
countries?: string[] | undefined;
|
|
672
|
+
cities?: string[] | undefined;
|
|
673
|
+
maxDistance?: number | undefined;
|
|
674
|
+
verifiedOnly?: boolean | undefined;
|
|
675
|
+
sortBy?: "relevance" | "lastActive" | "newest" | "compatibility" | undefined;
|
|
676
|
+
}>>;
|
|
677
|
+
export type ProfileSearchInput = z.infer<typeof profileSearchSchema>;
|
|
678
|
+
/**
|
|
679
|
+
* Photo reorder schema
|
|
680
|
+
*/
|
|
681
|
+
export declare const photoReorderSchema: z.ZodObject<{
|
|
682
|
+
photoIds: z.ZodArray<z.ZodString, "many">;
|
|
683
|
+
}, "strip", z.ZodTypeAny, {
|
|
684
|
+
photoIds: string[];
|
|
685
|
+
}, {
|
|
686
|
+
photoIds: string[];
|
|
687
|
+
}>;
|
|
688
|
+
export type PhotoReorderInput = z.infer<typeof photoReorderSchema>;
|
|
689
|
+
/**
|
|
690
|
+
* Send interest schema
|
|
691
|
+
*/
|
|
692
|
+
export declare const sendInterestSchema: z.ZodObject<{
|
|
693
|
+
targetProfileId: z.ZodString;
|
|
694
|
+
message: z.ZodString;
|
|
695
|
+
}, "strip", z.ZodTypeAny, {
|
|
696
|
+
message: string;
|
|
697
|
+
targetProfileId: string;
|
|
698
|
+
}, {
|
|
699
|
+
message: string;
|
|
700
|
+
targetProfileId: string;
|
|
701
|
+
}>;
|
|
702
|
+
export type SendInterestInput = z.infer<typeof sendInterestSchema>;
|
|
703
|
+
/**
|
|
704
|
+
* Respond to interest schema
|
|
705
|
+
*/
|
|
706
|
+
export declare const respondToInterestSchema: z.ZodObject<{
|
|
707
|
+
action: z.ZodEnum<["accept", "decline"]>;
|
|
708
|
+
message: z.ZodOptional<z.ZodString>;
|
|
709
|
+
}, "strip", z.ZodTypeAny, {
|
|
710
|
+
action: "accept" | "decline";
|
|
711
|
+
message?: string | undefined;
|
|
712
|
+
}, {
|
|
713
|
+
action: "accept" | "decline";
|
|
714
|
+
message?: string | undefined;
|
|
715
|
+
}>;
|
|
716
|
+
export type RespondToInterestInput = z.infer<typeof respondToInterestSchema>;
|
|
717
|
+
/**
|
|
718
|
+
* End match schema
|
|
719
|
+
*/
|
|
720
|
+
export declare const endMatchSchema: z.ZodObject<{
|
|
721
|
+
reason: z.ZodEnum<["not_compatible", "no_response", "found_someone", "taking_break", "inappropriate_behavior", "other"]>;
|
|
722
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
723
|
+
}, "strip", z.ZodTypeAny, {
|
|
724
|
+
reason: "other" | "not_compatible" | "no_response" | "found_someone" | "taking_break" | "inappropriate_behavior";
|
|
725
|
+
feedback?: string | undefined;
|
|
726
|
+
}, {
|
|
727
|
+
reason: "other" | "not_compatible" | "no_response" | "found_someone" | "taking_break" | "inappropriate_behavior";
|
|
728
|
+
feedback?: string | undefined;
|
|
729
|
+
}>;
|
|
730
|
+
export type EndMatchInput = z.infer<typeof endMatchSchema>;
|
|
731
|
+
/**
|
|
732
|
+
* Success story schema
|
|
733
|
+
*/
|
|
734
|
+
export declare const successStorySchema: z.ZodObject<{
|
|
735
|
+
publicizeStory: z.ZodBoolean;
|
|
736
|
+
story: z.ZodOptional<z.ZodString>;
|
|
737
|
+
consentToShare: z.ZodBoolean;
|
|
738
|
+
}, "strip", z.ZodTypeAny, {
|
|
739
|
+
publicizeStory: boolean;
|
|
740
|
+
consentToShare: boolean;
|
|
741
|
+
story?: string | undefined;
|
|
742
|
+
}, {
|
|
743
|
+
publicizeStory: boolean;
|
|
744
|
+
consentToShare: boolean;
|
|
745
|
+
story?: string | undefined;
|
|
746
|
+
}>;
|
|
747
|
+
export type SuccessStoryInput = z.infer<typeof successStorySchema>;
|
|
748
|
+
/**
|
|
749
|
+
* Send message schema
|
|
750
|
+
*/
|
|
751
|
+
export declare const sendMessageSchema: z.ZodObject<{
|
|
752
|
+
content: z.ZodString;
|
|
753
|
+
type: z.ZodDefault<z.ZodEnum<["text", "image"]>>;
|
|
754
|
+
}, "strip", z.ZodTypeAny, {
|
|
755
|
+
type: "text" | "image";
|
|
756
|
+
content: string;
|
|
757
|
+
}, {
|
|
758
|
+
content: string;
|
|
759
|
+
type?: "text" | "image" | undefined;
|
|
760
|
+
}>;
|
|
761
|
+
export type SendMessageInput = z.infer<typeof sendMessageSchema>;
|
|
762
|
+
/**
|
|
763
|
+
* Mark messages read schema
|
|
764
|
+
*/
|
|
765
|
+
export declare const markMessagesReadSchema: z.ZodObject<{
|
|
766
|
+
messageIds: z.ZodArray<z.ZodString, "many">;
|
|
767
|
+
}, "strip", z.ZodTypeAny, {
|
|
768
|
+
messageIds: string[];
|
|
769
|
+
}, {
|
|
770
|
+
messageIds: string[];
|
|
771
|
+
}>;
|
|
772
|
+
export type MarkMessagesReadInput = z.infer<typeof markMessagesReadSchema>;
|
|
773
|
+
/**
|
|
774
|
+
* Submit verification schema
|
|
775
|
+
*/
|
|
776
|
+
export declare const submitVerificationSchema: z.ZodObject<{
|
|
777
|
+
documentType: z.ZodEnum<["passport", "national_id", "drivers_license", "residence_permit", "other"]>;
|
|
778
|
+
documentNumber: z.ZodOptional<z.ZodString>;
|
|
779
|
+
expiryDate: z.ZodOptional<z.ZodString>;
|
|
780
|
+
}, "strip", z.ZodTypeAny, {
|
|
781
|
+
documentType: "national_id" | "passport" | "other" | "drivers_license" | "residence_permit";
|
|
782
|
+
documentNumber?: string | undefined;
|
|
783
|
+
expiryDate?: string | undefined;
|
|
784
|
+
}, {
|
|
785
|
+
documentType: "national_id" | "passport" | "other" | "drivers_license" | "residence_permit";
|
|
786
|
+
documentNumber?: string | undefined;
|
|
787
|
+
expiryDate?: string | undefined;
|
|
788
|
+
}>;
|
|
789
|
+
export type SubmitVerificationInput = z.infer<typeof submitVerificationSchema>;
|
|
790
|
+
/**
|
|
791
|
+
* Create subscription schema
|
|
792
|
+
*/
|
|
793
|
+
export declare const createSubscriptionSchema: z.ZodObject<{
|
|
794
|
+
planId: z.ZodString;
|
|
795
|
+
paymentMethod: z.ZodEnum<["stripe", "apple", "google"]>;
|
|
796
|
+
receiptData: z.ZodOptional<z.ZodString>;
|
|
797
|
+
promoCode: z.ZodOptional<z.ZodString>;
|
|
798
|
+
}, "strip", z.ZodTypeAny, {
|
|
799
|
+
paymentMethod: "stripe" | "apple" | "google";
|
|
800
|
+
planId: string;
|
|
801
|
+
promoCode?: string | undefined;
|
|
802
|
+
receiptData?: string | undefined;
|
|
803
|
+
}, {
|
|
804
|
+
paymentMethod: "stripe" | "apple" | "google";
|
|
805
|
+
planId: string;
|
|
806
|
+
promoCode?: string | undefined;
|
|
807
|
+
receiptData?: string | undefined;
|
|
808
|
+
}>;
|
|
809
|
+
export type CreateSubscriptionInput = z.infer<typeof createSubscriptionSchema>;
|
|
810
|
+
/**
|
|
811
|
+
* Apply promo code schema
|
|
812
|
+
*/
|
|
813
|
+
export declare const applyPromoCodeSchema: z.ZodObject<{
|
|
814
|
+
code: z.ZodString;
|
|
815
|
+
}, "strip", z.ZodTypeAny, {
|
|
816
|
+
code: string;
|
|
817
|
+
}, {
|
|
818
|
+
code: string;
|
|
819
|
+
}>;
|
|
820
|
+
export type ApplyPromoCodeInput = z.infer<typeof applyPromoCodeSchema>;
|
|
821
|
+
/**
|
|
822
|
+
* TMC application schema
|
|
823
|
+
*/
|
|
824
|
+
export declare const tmcApplicationSchema: z.ZodObject<{
|
|
825
|
+
companyName: z.ZodString;
|
|
826
|
+
companyType: z.ZodEnum<["individual", "agency", "family"]>;
|
|
827
|
+
description: z.ZodString;
|
|
828
|
+
website: z.ZodOptional<z.ZodString>;
|
|
829
|
+
phone: z.ZodString;
|
|
830
|
+
address: z.ZodObject<{
|
|
831
|
+
street: z.ZodString;
|
|
832
|
+
city: z.ZodString;
|
|
833
|
+
state: z.ZodOptional<z.ZodString>;
|
|
834
|
+
country: z.ZodString;
|
|
835
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
836
|
+
}, "strip", z.ZodTypeAny, {
|
|
837
|
+
country: string;
|
|
838
|
+
city: string;
|
|
839
|
+
street: string;
|
|
840
|
+
state?: string | undefined;
|
|
841
|
+
postalCode?: string | undefined;
|
|
842
|
+
}, {
|
|
843
|
+
country: string;
|
|
844
|
+
city: string;
|
|
845
|
+
street: string;
|
|
846
|
+
state?: string | undefined;
|
|
847
|
+
postalCode?: string | undefined;
|
|
848
|
+
}>;
|
|
849
|
+
experience: z.ZodString;
|
|
850
|
+
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
851
|
+
name: z.ZodString;
|
|
852
|
+
relationship: z.ZodString;
|
|
853
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
854
|
+
email: z.ZodOptional<z.ZodString>;
|
|
855
|
+
}, "strip", z.ZodTypeAny, {
|
|
856
|
+
name: string;
|
|
857
|
+
relationship: string;
|
|
858
|
+
email?: string | undefined;
|
|
859
|
+
phone?: string | undefined;
|
|
860
|
+
}, {
|
|
861
|
+
name: string;
|
|
862
|
+
relationship: string;
|
|
863
|
+
email?: string | undefined;
|
|
864
|
+
phone?: string | undefined;
|
|
865
|
+
}>, "many">>;
|
|
866
|
+
}, "strip", z.ZodTypeAny, {
|
|
867
|
+
phone: string;
|
|
868
|
+
description: string;
|
|
869
|
+
companyName: string;
|
|
870
|
+
companyType: "individual" | "family" | "agency";
|
|
871
|
+
address: {
|
|
872
|
+
country: string;
|
|
873
|
+
city: string;
|
|
874
|
+
street: string;
|
|
875
|
+
state?: string | undefined;
|
|
876
|
+
postalCode?: string | undefined;
|
|
877
|
+
};
|
|
878
|
+
experience: string;
|
|
879
|
+
website?: string | undefined;
|
|
880
|
+
references?: {
|
|
881
|
+
name: string;
|
|
882
|
+
relationship: string;
|
|
883
|
+
email?: string | undefined;
|
|
884
|
+
phone?: string | undefined;
|
|
885
|
+
}[] | undefined;
|
|
886
|
+
}, {
|
|
887
|
+
phone: string;
|
|
888
|
+
description: string;
|
|
889
|
+
companyName: string;
|
|
890
|
+
companyType: "individual" | "family" | "agency";
|
|
891
|
+
address: {
|
|
892
|
+
country: string;
|
|
893
|
+
city: string;
|
|
894
|
+
street: string;
|
|
895
|
+
state?: string | undefined;
|
|
896
|
+
postalCode?: string | undefined;
|
|
897
|
+
};
|
|
898
|
+
experience: string;
|
|
899
|
+
website?: string | undefined;
|
|
900
|
+
references?: {
|
|
901
|
+
name: string;
|
|
902
|
+
relationship: string;
|
|
903
|
+
email?: string | undefined;
|
|
904
|
+
phone?: string | undefined;
|
|
905
|
+
}[] | undefined;
|
|
906
|
+
}>;
|
|
907
|
+
export type TmcApplicationInput = z.infer<typeof tmcApplicationSchema>;
|
|
908
|
+
/**
|
|
909
|
+
* Invite team member schema
|
|
910
|
+
*/
|
|
911
|
+
export declare const inviteTeamMemberSchema: z.ZodObject<{
|
|
912
|
+
email: z.ZodString;
|
|
913
|
+
role: z.ZodEnum<["admin", "matchmaker", "assistant"]>;
|
|
914
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
915
|
+
}, "strip", z.ZodTypeAny, {
|
|
916
|
+
email: string;
|
|
917
|
+
role: "admin" | "matchmaker" | "assistant";
|
|
918
|
+
permissions?: string[] | undefined;
|
|
919
|
+
}, {
|
|
920
|
+
email: string;
|
|
921
|
+
role: "admin" | "matchmaker" | "assistant";
|
|
922
|
+
permissions?: string[] | undefined;
|
|
923
|
+
}>;
|
|
924
|
+
export type InviteTeamMemberInput = z.infer<typeof inviteTeamMemberSchema>;
|
|
925
|
+
/**
|
|
926
|
+
* Report content schema
|
|
927
|
+
*/
|
|
928
|
+
export declare const reportContentSchema: z.ZodObject<{
|
|
929
|
+
reason: z.ZodEnum<["fake_profile", "inappropriate_photos", "harassment", "spam", "offensive_content", "contact_outside_app", "suspicious_activity", "underage", "married_not_disclosed", "scam", "other"]>;
|
|
930
|
+
description: z.ZodString;
|
|
931
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
932
|
+
}, "strip", z.ZodTypeAny, {
|
|
933
|
+
description: string;
|
|
934
|
+
reason: "fake_profile" | "harassment" | "spam" | "underage" | "other" | "inappropriate_photos" | "offensive_content" | "contact_outside_app" | "suspicious_activity" | "married_not_disclosed" | "scam";
|
|
935
|
+
evidence?: string[] | undefined;
|
|
936
|
+
}, {
|
|
937
|
+
description: string;
|
|
938
|
+
reason: "fake_profile" | "harassment" | "spam" | "underage" | "other" | "inappropriate_photos" | "offensive_content" | "contact_outside_app" | "suspicious_activity" | "married_not_disclosed" | "scam";
|
|
939
|
+
evidence?: string[] | undefined;
|
|
940
|
+
}>;
|
|
941
|
+
export type ReportContentInput = z.infer<typeof reportContentSchema>;
|
|
942
|
+
/**
|
|
943
|
+
* Create listing schema
|
|
944
|
+
*/
|
|
945
|
+
export declare const createListingSchema: z.ZodObject<{
|
|
946
|
+
title: z.ZodString;
|
|
947
|
+
description: z.ZodString;
|
|
948
|
+
category: z.ZodEnum<["matchmaking", "consultation", "background_check", "photography", "event_planning", "other"]>;
|
|
949
|
+
pricing: z.ZodObject<{
|
|
950
|
+
model: z.ZodEnum<["fixed", "hourly", "package", "custom"]>;
|
|
951
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
952
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
953
|
+
}, "strip", z.ZodTypeAny, {
|
|
954
|
+
currency: string;
|
|
955
|
+
model: "fixed" | "custom" | "hourly" | "package";
|
|
956
|
+
amount?: number | undefined;
|
|
957
|
+
}, {
|
|
958
|
+
model: "fixed" | "custom" | "hourly" | "package";
|
|
959
|
+
currency?: string | undefined;
|
|
960
|
+
amount?: number | undefined;
|
|
961
|
+
}>;
|
|
962
|
+
packages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
963
|
+
name: z.ZodString;
|
|
964
|
+
description: z.ZodString;
|
|
965
|
+
price: z.ZodNumber;
|
|
966
|
+
features: z.ZodArray<z.ZodString, "many">;
|
|
967
|
+
}, "strip", z.ZodTypeAny, {
|
|
968
|
+
description: string;
|
|
969
|
+
features: string[];
|
|
970
|
+
name: string;
|
|
971
|
+
price: number;
|
|
972
|
+
}, {
|
|
973
|
+
description: string;
|
|
974
|
+
features: string[];
|
|
975
|
+
name: string;
|
|
976
|
+
price: number;
|
|
977
|
+
}>, "many">>;
|
|
978
|
+
}, "strip", z.ZodTypeAny, {
|
|
979
|
+
title: string;
|
|
980
|
+
description: string;
|
|
981
|
+
category: "other" | "matchmaking" | "photography" | "event_planning" | "consultation" | "background_check";
|
|
982
|
+
pricing: {
|
|
983
|
+
currency: string;
|
|
984
|
+
model: "fixed" | "custom" | "hourly" | "package";
|
|
985
|
+
amount?: number | undefined;
|
|
986
|
+
};
|
|
987
|
+
packages?: {
|
|
988
|
+
description: string;
|
|
989
|
+
features: string[];
|
|
990
|
+
name: string;
|
|
991
|
+
price: number;
|
|
992
|
+
}[] | undefined;
|
|
993
|
+
}, {
|
|
994
|
+
title: string;
|
|
995
|
+
description: string;
|
|
996
|
+
category: "other" | "matchmaking" | "photography" | "event_planning" | "consultation" | "background_check";
|
|
997
|
+
pricing: {
|
|
998
|
+
model: "fixed" | "custom" | "hourly" | "package";
|
|
999
|
+
currency?: string | undefined;
|
|
1000
|
+
amount?: number | undefined;
|
|
1001
|
+
};
|
|
1002
|
+
packages?: {
|
|
1003
|
+
description: string;
|
|
1004
|
+
features: string[];
|
|
1005
|
+
name: string;
|
|
1006
|
+
price: number;
|
|
1007
|
+
}[] | undefined;
|
|
1008
|
+
}>;
|
|
1009
|
+
export type CreateListingInput = z.infer<typeof createListingSchema>;
|
|
1010
|
+
/**
|
|
1011
|
+
* Create requirement schema
|
|
1012
|
+
*/
|
|
1013
|
+
export declare const createRequirementSchema: z.ZodObject<{
|
|
1014
|
+
title: z.ZodString;
|
|
1015
|
+
description: z.ZodString;
|
|
1016
|
+
category: z.ZodEnum<["matchmaking", "consultation", "background_check", "photography", "event_planning", "other"]>;
|
|
1017
|
+
budget: z.ZodObject<{
|
|
1018
|
+
min: z.ZodNumber;
|
|
1019
|
+
max: z.ZodNumber;
|
|
1020
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
1021
|
+
}, "strip", z.ZodTypeAny, {
|
|
1022
|
+
currency: string;
|
|
1023
|
+
min: number;
|
|
1024
|
+
max: number;
|
|
1025
|
+
}, {
|
|
1026
|
+
min: number;
|
|
1027
|
+
max: number;
|
|
1028
|
+
currency?: string | undefined;
|
|
1029
|
+
}>;
|
|
1030
|
+
timeline: z.ZodOptional<z.ZodString>;
|
|
1031
|
+
visibility: z.ZodDefault<z.ZodEnum<["public", "verified", "invited"]>>;
|
|
1032
|
+
}, "strip", z.ZodTypeAny, {
|
|
1033
|
+
title: string;
|
|
1034
|
+
description: string;
|
|
1035
|
+
category: "other" | "matchmaking" | "photography" | "event_planning" | "consultation" | "background_check";
|
|
1036
|
+
budget: {
|
|
1037
|
+
currency: string;
|
|
1038
|
+
min: number;
|
|
1039
|
+
max: number;
|
|
1040
|
+
};
|
|
1041
|
+
visibility: "verified" | "public" | "invited";
|
|
1042
|
+
timeline?: string | undefined;
|
|
1043
|
+
}, {
|
|
1044
|
+
title: string;
|
|
1045
|
+
description: string;
|
|
1046
|
+
category: "other" | "matchmaking" | "photography" | "event_planning" | "consultation" | "background_check";
|
|
1047
|
+
budget: {
|
|
1048
|
+
min: number;
|
|
1049
|
+
max: number;
|
|
1050
|
+
currency?: string | undefined;
|
|
1051
|
+
};
|
|
1052
|
+
timeline?: string | undefined;
|
|
1053
|
+
visibility?: "verified" | "public" | "invited" | undefined;
|
|
1054
|
+
}>;
|
|
1055
|
+
export type CreateRequirementInput = z.infer<typeof createRequirementSchema>;
|
|
1056
|
+
/**
|
|
1057
|
+
* Submit proposal schema
|
|
1058
|
+
*/
|
|
1059
|
+
export declare const submitProposalSchema: z.ZodObject<{
|
|
1060
|
+
requirementId: z.ZodString;
|
|
1061
|
+
coverLetter: z.ZodString;
|
|
1062
|
+
proposedPrice: z.ZodNumber;
|
|
1063
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
1064
|
+
timeline: z.ZodString;
|
|
1065
|
+
milestones: z.ZodArray<z.ZodObject<{
|
|
1066
|
+
title: z.ZodString;
|
|
1067
|
+
description: z.ZodString;
|
|
1068
|
+
amount: z.ZodNumber;
|
|
1069
|
+
durationDays: z.ZodNumber;
|
|
1070
|
+
}, "strip", z.ZodTypeAny, {
|
|
1071
|
+
title: string;
|
|
1072
|
+
description: string;
|
|
1073
|
+
amount: number;
|
|
1074
|
+
durationDays: number;
|
|
1075
|
+
}, {
|
|
1076
|
+
title: string;
|
|
1077
|
+
description: string;
|
|
1078
|
+
amount: number;
|
|
1079
|
+
durationDays: number;
|
|
1080
|
+
}>, "many">;
|
|
1081
|
+
}, "strip", z.ZodTypeAny, {
|
|
1082
|
+
currency: string;
|
|
1083
|
+
timeline: string;
|
|
1084
|
+
requirementId: string;
|
|
1085
|
+
coverLetter: string;
|
|
1086
|
+
proposedPrice: number;
|
|
1087
|
+
milestones: {
|
|
1088
|
+
title: string;
|
|
1089
|
+
description: string;
|
|
1090
|
+
amount: number;
|
|
1091
|
+
durationDays: number;
|
|
1092
|
+
}[];
|
|
1093
|
+
}, {
|
|
1094
|
+
timeline: string;
|
|
1095
|
+
requirementId: string;
|
|
1096
|
+
coverLetter: string;
|
|
1097
|
+
proposedPrice: number;
|
|
1098
|
+
milestones: {
|
|
1099
|
+
title: string;
|
|
1100
|
+
description: string;
|
|
1101
|
+
amount: number;
|
|
1102
|
+
durationDays: number;
|
|
1103
|
+
}[];
|
|
1104
|
+
currency?: string | undefined;
|
|
1105
|
+
}>;
|
|
1106
|
+
export type SubmitProposalInput = z.infer<typeof submitProposalSchema>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Open dispute schema
|
|
1109
|
+
*/
|
|
1110
|
+
export declare const openDisputeSchema: z.ZodObject<{
|
|
1111
|
+
reason: z.ZodEnum<["service_not_delivered", "quality_issues", "communication_problems", "scope_disagreement", "payment_issues", "other"]>;
|
|
1112
|
+
description: z.ZodString;
|
|
1113
|
+
desiredResolution: z.ZodEnum<["full_refund", "partial_refund", "service_completion", "mediation"]>;
|
|
1114
|
+
evidence: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1115
|
+
}, "strip", z.ZodTypeAny, {
|
|
1116
|
+
description: string;
|
|
1117
|
+
reason: "other" | "service_not_delivered" | "quality_issues" | "communication_problems" | "scope_disagreement" | "payment_issues";
|
|
1118
|
+
desiredResolution: "mediation" | "full_refund" | "partial_refund" | "service_completion";
|
|
1119
|
+
evidence?: string[] | undefined;
|
|
1120
|
+
}, {
|
|
1121
|
+
description: string;
|
|
1122
|
+
reason: "other" | "service_not_delivered" | "quality_issues" | "communication_problems" | "scope_disagreement" | "payment_issues";
|
|
1123
|
+
desiredResolution: "mediation" | "full_refund" | "partial_refund" | "service_completion";
|
|
1124
|
+
evidence?: string[] | undefined;
|
|
1125
|
+
}>;
|
|
1126
|
+
export type OpenDisputeInput = z.infer<typeof openDisputeSchema>;
|
|
1127
|
+
//# sourceMappingURL=schemas.d.ts.map
|