@myrjfa/state 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +18 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -18
- package/dist/lib/actions/actions.d.ts +189 -170
- package/dist/lib/actions/actions.d.ts.map +1 -1
- package/dist/lib/actions/actions.js +347 -307
- package/dist/lib/actions/auth.d.ts +12 -2
- package/dist/lib/actions/auth.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.d.ts +0 -3
- package/dist/lib/actions/fetcher.d.ts.map +1 -1
- package/dist/lib/actions/fetcher.js +122 -84
- package/dist/lib/actions/{severActions.d.ts → serverActions.d.ts} +1 -1
- package/dist/lib/actions/serverActions.d.ts.map +1 -0
- package/dist/lib/actions/{severActions.js → serverActions.js} +3 -0
- package/dist/lib/authSessionManager.d.ts.map +1 -1
- package/dist/lib/authSessionManager.js +41 -34
- package/dist/lib/context/ChatContext.d.ts +1 -1
- package/dist/lib/context/ChatContext.d.ts.map +1 -1
- package/dist/lib/context/ChatContext.js +338 -338
- package/dist/lib/models/blog.d.ts +3 -2
- package/dist/lib/models/blog.d.ts.map +1 -1
- package/dist/lib/models/{notfications.d.ts → notifications.d.ts} +94 -94
- package/dist/lib/models/notifications.d.ts.map +1 -0
- package/dist/lib/models/opportunities/freelance.d.ts +48 -20
- package/dist/lib/models/opportunities/freelance.d.ts.map +1 -1
- package/dist/lib/models/opportunities/internship.d.ts +48 -20
- package/dist/lib/models/opportunities/internship.d.ts.map +1 -1
- package/dist/lib/models/opportunities/job.d.ts +58 -30
- package/dist/lib/models/opportunities/job.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.d.ts +61 -33
- package/dist/lib/models/opportunities/opportunity.d.ts.map +1 -1
- package/dist/lib/models/opportunities/opportunity.js +1 -0
- package/dist/lib/models/opportunities/volunteerJob.d.ts +48 -20
- package/dist/lib/models/opportunities/volunteerJob.d.ts.map +1 -1
- package/dist/lib/models/portfolio.d.ts +42 -42
- package/dist/lib/models/props.d.ts +21 -4
- package/dist/lib/models/props.d.ts.map +1 -1
- package/dist/lib/models/tile.d.ts +28 -28
- package/dist/lib/models/user.d.ts +19 -4
- package/dist/lib/models/user.d.ts.map +1 -1
- package/dist/lib/models/user.js +5 -0
- package/dist/lib/userAtom.d.ts +218 -198
- package/dist/lib/userAtom.d.ts.map +1 -1
- package/dist/lib/userAtom.js +129 -127
- package/dist/lib/utils.js +4 -4
- package/package.json +3 -1
- package/dist/lib/actions/property.d.ts +0 -77
- package/dist/lib/actions/property.d.ts.map +0 -1
- package/dist/lib/actions/property.js +0 -133
- package/dist/lib/actions/severActions.d.ts.map +0 -1
- package/dist/lib/actions.d.ts +0 -141
- package/dist/lib/actions.d.ts.map +0 -1
- package/dist/lib/actions.js +0 -307
- package/dist/lib/auth.d.ts +0 -150
- package/dist/lib/auth.d.ts.map +0 -1
- package/dist/lib/auth.js +0 -125
- package/dist/lib/fetcher.d.ts +0 -9
- package/dist/lib/fetcher.d.ts.map +0 -1
- package/dist/lib/fetcher.js +0 -84
- package/dist/lib/models/notfications.d.ts.map +0 -1
- package/dist/lib/models/property.d.ts +0 -79
- package/dist/lib/models/property.d.ts.map +0 -1
- package/dist/lib/models/property.js +0 -134
- package/dist/lib/models/volunteerJob.d.ts +0 -398
- package/dist/lib/models/volunteerJob.d.ts.map +0 -1
- package/dist/lib/models/volunteerJob.js +0 -152
- package/dist/lib/severActions.d.ts +0 -3
- package/dist/lib/severActions.d.ts.map +0 -1
- package/dist/lib/severActions.js +0 -19
- package/dist/lib/socket.d.ts +0 -7
- package/dist/lib/socket.d.ts.map +0 -1
- package/dist/lib/socket.js +0 -22
- /package/dist/lib/models/{notfications.js → notifications.js} +0 -0
|
@@ -19,7 +19,7 @@ export declare const BlogSchema: z.ZodObject<{
|
|
|
19
19
|
authorImage: z.ZodString;
|
|
20
20
|
authorRole: z.ZodEnum<["host", "admin", "user"]>;
|
|
21
21
|
}, "strict", z.ZodTypeAny, {
|
|
22
|
-
status: "
|
|
22
|
+
status: "pending" | "draft" | "posted" | "archived" | "denied";
|
|
23
23
|
title: string;
|
|
24
24
|
createdAt: Date;
|
|
25
25
|
updatedAt: Date;
|
|
@@ -36,7 +36,7 @@ export declare const BlogSchema: z.ZodObject<{
|
|
|
36
36
|
authorRole: "host" | "user" | "admin";
|
|
37
37
|
hashtags?: string | undefined;
|
|
38
38
|
}, {
|
|
39
|
-
status: "
|
|
39
|
+
status: "pending" | "draft" | "posted" | "archived" | "denied";
|
|
40
40
|
title: string;
|
|
41
41
|
createdAt: Date;
|
|
42
42
|
updatedAt: Date;
|
|
@@ -58,6 +58,7 @@ export type BlogMetaData = {
|
|
|
58
58
|
image: string;
|
|
59
59
|
title: string;
|
|
60
60
|
overview: string;
|
|
61
|
+
hashtags: string;
|
|
61
62
|
};
|
|
62
63
|
export declare const hashTagOptions: {
|
|
63
64
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog.d.ts","sourceRoot":"","sources":["../../../src/lib/models/blog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,iEAA+D,CAAC;AAC7F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBZ,CAAC;AAEZ,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc;;GAyB1B,CAAA"}
|
|
1
|
+
{"version":3,"file":"blog.d.ts","sourceRoot":"","sources":["../../../src/lib/models/blog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB,iEAA+D,CAAC;AAC7F,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBZ,CAAC;AAEZ,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,cAAc;;GAyB1B,CAAA"}
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const NotifSchema: z.ZodObject<{
|
|
3
|
-
_id: z.ZodString;
|
|
4
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
5
|
-
message: z.ZodString;
|
|
6
|
-
timestamp: z.ZodAny;
|
|
7
|
-
read: z.ZodBoolean;
|
|
8
|
-
link: z.ZodOptional<z.ZodString>;
|
|
9
|
-
type: z.ZodOptional<z.ZodEnum<["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", "system", "general"]>>;
|
|
10
|
-
category: z.ZodOptional<z.ZodEnum<["chat", "application", "opportunity", "package", "blog", "account", "system", "general"]>>;
|
|
11
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
12
|
-
conversationId: z.ZodOptional<z.ZodString>;
|
|
13
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
14
|
-
senderId: z.ZodOptional<z.ZodString>;
|
|
15
|
-
senderName: z.ZodOptional<z.ZodString>;
|
|
16
|
-
conversationName: z.ZodOptional<z.ZodString>;
|
|
17
|
-
milestoneId: z.ZodOptional<z.ZodString>;
|
|
18
|
-
expenseId: z.ZodOptional<z.ZodString>;
|
|
19
|
-
referenceId: z.ZodOptional<z.ZodString>;
|
|
20
|
-
referenceType: z.ZodOptional<z.ZodString>;
|
|
21
|
-
status: z.ZodOptional<z.ZodString>;
|
|
22
|
-
title: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
status?: string | undefined;
|
|
25
|
-
title?: string | undefined;
|
|
26
|
-
conversationId?: string | undefined;
|
|
27
|
-
messageId?: string | undefined;
|
|
28
|
-
senderId?: string | undefined;
|
|
29
|
-
senderName?: string | undefined;
|
|
30
|
-
conversationName?: string | undefined;
|
|
31
|
-
milestoneId?: string | undefined;
|
|
32
|
-
expenseId?: string | undefined;
|
|
33
|
-
referenceId?: string | undefined;
|
|
34
|
-
referenceType?: string | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
status?: string | undefined;
|
|
37
|
-
title?: string | undefined;
|
|
38
|
-
conversationId?: string | undefined;
|
|
39
|
-
messageId?: string | undefined;
|
|
40
|
-
senderId?: string | undefined;
|
|
41
|
-
senderName?: string | undefined;
|
|
42
|
-
conversationName?: string | undefined;
|
|
43
|
-
milestoneId?: string | undefined;
|
|
44
|
-
expenseId?: string | undefined;
|
|
45
|
-
referenceId?: string | undefined;
|
|
46
|
-
referenceType?: string | undefined;
|
|
47
|
-
}>>;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
message: string;
|
|
50
|
-
_id: string;
|
|
51
|
-
read: boolean;
|
|
52
|
-
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" | "system" | "general" | undefined;
|
|
53
|
-
userId?: string | undefined;
|
|
54
|
-
timestamp?: any;
|
|
55
|
-
link?: string | undefined;
|
|
56
|
-
category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
|
|
57
|
-
metadata?: {
|
|
58
|
-
status?: string | undefined;
|
|
59
|
-
title?: string | undefined;
|
|
60
|
-
conversationId?: string | undefined;
|
|
61
|
-
messageId?: string | undefined;
|
|
62
|
-
senderId?: string | undefined;
|
|
63
|
-
senderName?: string | undefined;
|
|
64
|
-
conversationName?: string | undefined;
|
|
65
|
-
milestoneId?: string | undefined;
|
|
66
|
-
expenseId?: string | undefined;
|
|
67
|
-
referenceId?: string | undefined;
|
|
68
|
-
referenceType?: string | undefined;
|
|
69
|
-
} | undefined;
|
|
70
|
-
}, {
|
|
71
|
-
message: string;
|
|
72
|
-
_id: string;
|
|
73
|
-
read: boolean;
|
|
74
|
-
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" | "system" | "general" | undefined;
|
|
75
|
-
userId?: string | undefined;
|
|
76
|
-
timestamp?: any;
|
|
77
|
-
link?: string | undefined;
|
|
78
|
-
category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
|
|
79
|
-
metadata?: {
|
|
80
|
-
status?: string | undefined;
|
|
81
|
-
title?: string | undefined;
|
|
82
|
-
conversationId?: string | undefined;
|
|
83
|
-
messageId?: string | undefined;
|
|
84
|
-
senderId?: string | undefined;
|
|
85
|
-
senderName?: string | undefined;
|
|
86
|
-
conversationName?: string | undefined;
|
|
87
|
-
milestoneId?: string | undefined;
|
|
88
|
-
expenseId?: string | undefined;
|
|
89
|
-
referenceId?: string | undefined;
|
|
90
|
-
referenceType?: string | undefined;
|
|
91
|
-
} | undefined;
|
|
92
|
-
}>;
|
|
93
|
-
export type Notif = z.infer<typeof NotifSchema>;
|
|
94
|
-
//# sourceMappingURL=
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const NotifSchema: z.ZodObject<{
|
|
3
|
+
_id: z.ZodString;
|
|
4
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
message: z.ZodString;
|
|
6
|
+
timestamp: z.ZodAny;
|
|
7
|
+
read: z.ZodBoolean;
|
|
8
|
+
link: z.ZodOptional<z.ZodString>;
|
|
9
|
+
type: z.ZodOptional<z.ZodEnum<["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", "system", "general"]>>;
|
|
10
|
+
category: z.ZodOptional<z.ZodEnum<["chat", "application", "opportunity", "package", "blog", "account", "system", "general"]>>;
|
|
11
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
conversationId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
senderId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
senderName: z.ZodOptional<z.ZodString>;
|
|
16
|
+
conversationName: z.ZodOptional<z.ZodString>;
|
|
17
|
+
milestoneId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
expenseId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
referenceId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
referenceType: z.ZodOptional<z.ZodString>;
|
|
21
|
+
status: z.ZodOptional<z.ZodString>;
|
|
22
|
+
title: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
status?: string | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
conversationId?: string | undefined;
|
|
27
|
+
messageId?: string | undefined;
|
|
28
|
+
senderId?: string | undefined;
|
|
29
|
+
senderName?: string | undefined;
|
|
30
|
+
conversationName?: string | undefined;
|
|
31
|
+
milestoneId?: string | undefined;
|
|
32
|
+
expenseId?: string | undefined;
|
|
33
|
+
referenceId?: string | undefined;
|
|
34
|
+
referenceType?: string | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
status?: string | undefined;
|
|
37
|
+
title?: string | undefined;
|
|
38
|
+
conversationId?: string | undefined;
|
|
39
|
+
messageId?: string | undefined;
|
|
40
|
+
senderId?: string | undefined;
|
|
41
|
+
senderName?: string | undefined;
|
|
42
|
+
conversationName?: string | undefined;
|
|
43
|
+
milestoneId?: string | undefined;
|
|
44
|
+
expenseId?: string | undefined;
|
|
45
|
+
referenceId?: string | undefined;
|
|
46
|
+
referenceType?: string | undefined;
|
|
47
|
+
}>>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
message: string;
|
|
50
|
+
_id: string;
|
|
51
|
+
read: boolean;
|
|
52
|
+
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" | "system" | "general" | undefined;
|
|
53
|
+
userId?: string | undefined;
|
|
54
|
+
timestamp?: any;
|
|
55
|
+
link?: string | undefined;
|
|
56
|
+
category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
|
|
57
|
+
metadata?: {
|
|
58
|
+
status?: string | undefined;
|
|
59
|
+
title?: string | undefined;
|
|
60
|
+
conversationId?: string | undefined;
|
|
61
|
+
messageId?: string | undefined;
|
|
62
|
+
senderId?: string | undefined;
|
|
63
|
+
senderName?: string | undefined;
|
|
64
|
+
conversationName?: string | undefined;
|
|
65
|
+
milestoneId?: string | undefined;
|
|
66
|
+
expenseId?: string | undefined;
|
|
67
|
+
referenceId?: string | undefined;
|
|
68
|
+
referenceType?: string | undefined;
|
|
69
|
+
} | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
message: string;
|
|
72
|
+
_id: string;
|
|
73
|
+
read: boolean;
|
|
74
|
+
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" | "system" | "general" | undefined;
|
|
75
|
+
userId?: string | undefined;
|
|
76
|
+
timestamp?: any;
|
|
77
|
+
link?: string | undefined;
|
|
78
|
+
category?: "system" | "general" | "chat" | "application" | "opportunity" | "package" | "blog" | "account" | undefined;
|
|
79
|
+
metadata?: {
|
|
80
|
+
status?: string | undefined;
|
|
81
|
+
title?: string | undefined;
|
|
82
|
+
conversationId?: string | undefined;
|
|
83
|
+
messageId?: string | undefined;
|
|
84
|
+
senderId?: string | undefined;
|
|
85
|
+
senderName?: string | undefined;
|
|
86
|
+
conversationName?: string | undefined;
|
|
87
|
+
milestoneId?: string | undefined;
|
|
88
|
+
expenseId?: string | undefined;
|
|
89
|
+
referenceId?: string | undefined;
|
|
90
|
+
referenceType?: string | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
}>;
|
|
93
|
+
export type Notif = z.infer<typeof NotifSchema>;
|
|
94
|
+
//# sourceMappingURL=notifications.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../../src/lib/models/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DtB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
10
10
|
state: z.ZodString;
|
|
11
11
|
country: z.ZodString;
|
|
12
12
|
address: z.ZodOptional<z.ZodString>;
|
|
13
|
-
workMode: z.ZodOptional<z.ZodEnum<[
|
|
13
|
+
workMode: z.ZodOptional<z.ZodEnum<["onsite" | "remote" | "hybrid", ...("onsite" | "remote" | "hybrid")[]]>>;
|
|
14
14
|
bondPlan: z.ZodOptional<z.ZodObject<{
|
|
15
15
|
enabled: z.ZodBoolean;
|
|
16
16
|
durationMonths: z.ZodOptional<z.ZodNumber>;
|
|
@@ -48,6 +48,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
48
48
|
answer: string;
|
|
49
49
|
}>, "many">;
|
|
50
50
|
applicationCount: z.ZodNumber;
|
|
51
|
+
pendingApplicationCount: z.ZodOptional<z.ZodNumber>;
|
|
51
52
|
views: z.ZodNumber;
|
|
52
53
|
shares: z.ZodNumber;
|
|
53
54
|
rating: z.ZodNumber;
|
|
@@ -84,7 +85,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
84
85
|
verifiedMobile: z.ZodBoolean;
|
|
85
86
|
verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
|
|
86
87
|
role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
|
|
87
|
-
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[
|
|
88
|
+
socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<["instagram", "linkedin", "youtube", "googleBusiness"]>, z.ZodString>>;
|
|
88
89
|
userResume: z.ZodOptional<z.ZodString>;
|
|
89
90
|
skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
91
|
skill: z.ZodString;
|
|
@@ -107,6 +108,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
107
108
|
gstNumber: z.ZodOptional<z.ZodString>;
|
|
108
109
|
panCard: z.ZodOptional<z.ZodString>;
|
|
109
110
|
verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
|
|
111
|
+
businessDocument: z.ZodOptional<z.ZodString>;
|
|
112
|
+
businessIdType: z.ZodOptional<z.ZodEnum<["PAN", "GST", "Udyam", "PersonalPAN"]>>;
|
|
113
|
+
businessIdNumber: z.ZodOptional<z.ZodString>;
|
|
114
|
+
businessApiVerificationStatus: z.ZodOptional<z.ZodEnum<["pending", "verified", "failed"]>>;
|
|
115
|
+
businessVerificationDenialReason: z.ZodOptional<z.ZodString>;
|
|
110
116
|
}, "strict", z.ZodTypeAny, {
|
|
111
117
|
username: string;
|
|
112
118
|
firstName: string;
|
|
@@ -137,7 +143,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
137
143
|
accessToken?: string | undefined;
|
|
138
144
|
refreshToken?: string | undefined;
|
|
139
145
|
verifiedIdCard?: boolean | undefined;
|
|
140
|
-
socialLinks?: Record<
|
|
146
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
141
147
|
userResume?: string | undefined;
|
|
142
148
|
skills?: {
|
|
143
149
|
skill: string;
|
|
@@ -154,6 +160,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
154
160
|
gstNumber?: string | undefined;
|
|
155
161
|
panCard?: string | undefined;
|
|
156
162
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
163
|
+
businessDocument?: string | undefined;
|
|
164
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
165
|
+
businessIdNumber?: string | undefined;
|
|
166
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
167
|
+
businessVerificationDenialReason?: string | undefined;
|
|
157
168
|
}, {
|
|
158
169
|
username: string;
|
|
159
170
|
firstName: string;
|
|
@@ -184,7 +195,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
184
195
|
accessToken?: string | undefined;
|
|
185
196
|
refreshToken?: string | undefined;
|
|
186
197
|
verifiedIdCard?: boolean | undefined;
|
|
187
|
-
socialLinks?: Record<
|
|
198
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
188
199
|
userResume?: string | undefined;
|
|
189
200
|
skills?: {
|
|
190
201
|
skill: string;
|
|
@@ -201,6 +212,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
201
212
|
gstNumber?: string | undefined;
|
|
202
213
|
panCard?: string | undefined;
|
|
203
214
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
215
|
+
businessDocument?: string | undefined;
|
|
216
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
217
|
+
businessIdNumber?: string | undefined;
|
|
218
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
219
|
+
businessVerificationDenialReason?: string | undefined;
|
|
204
220
|
}>>;
|
|
205
221
|
applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
206
222
|
username: z.ZodString;
|
|
@@ -228,20 +244,20 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
228
244
|
} & {
|
|
229
245
|
opportunityType: z.ZodLiteral<"freelance">;
|
|
230
246
|
compensation: z.ZodObject<{
|
|
231
|
-
type: z.ZodEnum<[
|
|
247
|
+
type: z.ZodEnum<["free" | "stipend" | "salary" | "project-based", ...("free" | "stipend" | "salary" | "project-based")[]]>;
|
|
232
248
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
233
249
|
currency: z.ZodEnum<[string, ...string[]]>;
|
|
234
|
-
frequency: z.ZodOptional<z.ZodEnum<[
|
|
250
|
+
frequency: z.ZodOptional<z.ZodEnum<["daily" | "weekly" | "monthly" | "yearly" | "one-time", ...("daily" | "weekly" | "monthly" | "yearly" | "one-time")[]]>>;
|
|
235
251
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
type:
|
|
252
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
237
253
|
currency: string;
|
|
238
254
|
amount?: number | undefined;
|
|
239
|
-
frequency?:
|
|
255
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
240
256
|
}, {
|
|
241
|
-
type:
|
|
257
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
242
258
|
currency: string;
|
|
243
259
|
amount?: number | undefined;
|
|
244
|
-
frequency?:
|
|
260
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
245
261
|
}>;
|
|
246
262
|
platformFees: z.ZodObject<{
|
|
247
263
|
commissionPercent: z.ZodNumber;
|
|
@@ -271,7 +287,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
271
287
|
}>;
|
|
272
288
|
}, "strict", z.ZodTypeAny, {
|
|
273
289
|
country: string;
|
|
274
|
-
status: "
|
|
290
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
275
291
|
rating: number;
|
|
276
292
|
ratingCount: number;
|
|
277
293
|
reviewCount: number;
|
|
@@ -284,10 +300,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
284
300
|
city: string;
|
|
285
301
|
state: string;
|
|
286
302
|
compensation: {
|
|
287
|
-
type:
|
|
303
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
288
304
|
currency: string;
|
|
289
305
|
amount?: number | undefined;
|
|
290
|
-
frequency?:
|
|
306
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
291
307
|
};
|
|
292
308
|
availableFrom: Date;
|
|
293
309
|
minDuration: number;
|
|
@@ -333,7 +349,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
333
349
|
accessToken?: string | undefined;
|
|
334
350
|
refreshToken?: string | undefined;
|
|
335
351
|
verifiedIdCard?: boolean | undefined;
|
|
336
|
-
socialLinks?: Record<
|
|
352
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
337
353
|
userResume?: string | undefined;
|
|
338
354
|
skills?: {
|
|
339
355
|
skill: string;
|
|
@@ -350,6 +366,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
350
366
|
gstNumber?: string | undefined;
|
|
351
367
|
panCard?: string | undefined;
|
|
352
368
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
369
|
+
businessDocument?: string | undefined;
|
|
370
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
371
|
+
businessIdNumber?: string | undefined;
|
|
372
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
373
|
+
businessVerificationDenialReason?: string | undefined;
|
|
353
374
|
};
|
|
354
375
|
adminApproval: boolean;
|
|
355
376
|
platformFees: {
|
|
@@ -366,7 +387,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
366
387
|
updatedAt?: Date | undefined;
|
|
367
388
|
categoryId?: string | undefined;
|
|
368
389
|
address?: string | undefined;
|
|
369
|
-
workMode?:
|
|
390
|
+
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
370
391
|
bondPlan?: {
|
|
371
392
|
enabled: boolean;
|
|
372
393
|
commissionRate: number;
|
|
@@ -374,6 +395,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
374
395
|
hostFee?: number | undefined;
|
|
375
396
|
securityDeposit?: number | undefined;
|
|
376
397
|
} | undefined;
|
|
398
|
+
pendingApplicationCount?: number | undefined;
|
|
377
399
|
hostingType?: string | undefined;
|
|
378
400
|
applicationObservers?: {
|
|
379
401
|
username: string;
|
|
@@ -384,7 +406,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
384
406
|
}[] | undefined;
|
|
385
407
|
}, {
|
|
386
408
|
country: string;
|
|
387
|
-
status: "
|
|
409
|
+
status: "pending" | "draft" | "archived" | "denied" | "open" | "closed" | "deleted";
|
|
388
410
|
rating: number;
|
|
389
411
|
ratingCount: number;
|
|
390
412
|
reviewCount: number;
|
|
@@ -397,10 +419,10 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
397
419
|
city: string;
|
|
398
420
|
state: string;
|
|
399
421
|
compensation: {
|
|
400
|
-
type:
|
|
422
|
+
type: "free" | "stipend" | "salary" | "project-based";
|
|
401
423
|
currency: string;
|
|
402
424
|
amount?: number | undefined;
|
|
403
|
-
frequency?:
|
|
425
|
+
frequency?: "daily" | "weekly" | "monthly" | "yearly" | "one-time" | undefined;
|
|
404
426
|
};
|
|
405
427
|
availableFrom: Date;
|
|
406
428
|
minDuration: number;
|
|
@@ -446,7 +468,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
446
468
|
accessToken?: string | undefined;
|
|
447
469
|
refreshToken?: string | undefined;
|
|
448
470
|
verifiedIdCard?: boolean | undefined;
|
|
449
|
-
socialLinks?: Record<
|
|
471
|
+
socialLinks?: Partial<Record<"instagram" | "linkedin" | "youtube" | "googleBusiness", string>> | undefined;
|
|
450
472
|
userResume?: string | undefined;
|
|
451
473
|
skills?: {
|
|
452
474
|
skill: string;
|
|
@@ -463,6 +485,11 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
463
485
|
gstNumber?: string | undefined;
|
|
464
486
|
panCard?: string | undefined;
|
|
465
487
|
verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
|
|
488
|
+
businessDocument?: string | undefined;
|
|
489
|
+
businessIdType?: "PAN" | "GST" | "Udyam" | "PersonalPAN" | undefined;
|
|
490
|
+
businessIdNumber?: string | undefined;
|
|
491
|
+
businessApiVerificationStatus?: "pending" | "verified" | "failed" | undefined;
|
|
492
|
+
businessVerificationDenialReason?: string | undefined;
|
|
466
493
|
};
|
|
467
494
|
adminApproval: boolean;
|
|
468
495
|
platformFees: {
|
|
@@ -479,7 +506,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
479
506
|
updatedAt?: Date | undefined;
|
|
480
507
|
categoryId?: string | undefined;
|
|
481
508
|
address?: string | undefined;
|
|
482
|
-
workMode?:
|
|
509
|
+
workMode?: "onsite" | "remote" | "hybrid" | undefined;
|
|
483
510
|
bondPlan?: {
|
|
484
511
|
enabled: boolean;
|
|
485
512
|
durationMonths?: number | undefined;
|
|
@@ -487,6 +514,7 @@ export declare const FreelanceOpportunitySchema: z.ZodObject<{
|
|
|
487
514
|
securityDeposit?: number | undefined;
|
|
488
515
|
commissionRate?: number | undefined;
|
|
489
516
|
} | undefined;
|
|
517
|
+
pendingApplicationCount?: number | undefined;
|
|
490
518
|
hostingType?: string | undefined;
|
|
491
519
|
applicationObservers?: {
|
|
492
520
|
username: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"freelance.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/freelance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"freelance.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/freelance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUrC,CAAC"}
|