@myrjfa/state 1.0.6 → 1.0.7

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.
@@ -0,0 +1,476 @@
1
+ import { z } from "zod";
2
+ export declare const InternshipOpportunitySchema: z.ZodObject<{
3
+ slug: z.ZodString;
4
+ title: z.ZodString;
5
+ skills: z.ZodArray<z.ZodString, "many">;
6
+ description: z.ZodString;
7
+ images: z.ZodArray<z.ZodString, "many">;
8
+ categoryId: z.ZodOptional<z.ZodString>;
9
+ city: z.ZodString;
10
+ state: z.ZodString;
11
+ country: z.ZodString;
12
+ address: z.ZodOptional<z.ZodString>;
13
+ workMode: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
14
+ bondPlan: z.ZodOptional<z.ZodObject<{
15
+ enabled: z.ZodBoolean;
16
+ durationMonths: z.ZodOptional<z.ZodNumber>;
17
+ hostFee: z.ZodOptional<z.ZodNumber>;
18
+ securityDeposit: z.ZodOptional<z.ZodNumber>;
19
+ commissionRate: z.ZodDefault<z.ZodNumber>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ enabled: boolean;
22
+ commissionRate: number;
23
+ durationMonths?: number | undefined;
24
+ hostFee?: number | undefined;
25
+ securityDeposit?: number | undefined;
26
+ }, {
27
+ enabled: boolean;
28
+ durationMonths?: number | undefined;
29
+ hostFee?: number | undefined;
30
+ securityDeposit?: number | undefined;
31
+ commissionRate?: number | undefined;
32
+ }>>;
33
+ availableFrom: z.ZodDate;
34
+ minDuration: z.ZodNumber;
35
+ maxDuration: z.ZodNumber;
36
+ urgent: z.ZodBoolean;
37
+ peopleRequired: z.ZodNumber;
38
+ facilities: z.ZodArray<z.ZodString, "many">;
39
+ responsibilities: z.ZodArray<z.ZodString, "many">;
40
+ questions: z.ZodArray<z.ZodObject<{
41
+ question: z.ZodString;
42
+ answer: z.ZodString;
43
+ }, "strict", z.ZodTypeAny, {
44
+ question: string;
45
+ answer: string;
46
+ }, {
47
+ question: string;
48
+ answer: string;
49
+ }>, "many">;
50
+ applicationCount: z.ZodNumber;
51
+ views: z.ZodNumber;
52
+ shares: z.ZodNumber;
53
+ rating: z.ZodNumber;
54
+ ratingCount: z.ZodNumber;
55
+ reviewCount: z.ZodNumber;
56
+ hostingType: z.ZodOptional<z.ZodString>;
57
+ hostId: z.ZodLazy<z.ZodObject<{
58
+ username: z.ZodString;
59
+ firstName: z.ZodString;
60
+ lastName: z.ZodString;
61
+ email: z.ZodString;
62
+ password: z.ZodString;
63
+ phoneNumber: z.ZodString;
64
+ countryCode: z.ZodString;
65
+ country: z.ZodString;
66
+ location: z.ZodOptional<z.ZodString>;
67
+ pinCode: z.ZodOptional<z.ZodString>;
68
+ dob: z.ZodOptional<z.ZodDate>;
69
+ gender: z.ZodEnum<["male", "female", "other"]>;
70
+ profilePic: z.ZodOptional<z.ZodString>;
71
+ rating: z.ZodNumber;
72
+ ratingCount: z.ZodNumber;
73
+ reviewCount: z.ZodNumber;
74
+ blogsCount: z.ZodOptional<z.ZodNumber>;
75
+ joinedDate: z.ZodDate;
76
+ isActive: z.ZodBoolean;
77
+ lastActive: z.ZodDate;
78
+ userBio: z.ZodOptional<z.ZodString>;
79
+ userIdCard: z.ZodOptional<z.ZodString>;
80
+ watchHistory: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
81
+ accessToken: z.ZodOptional<z.ZodString>;
82
+ refreshToken: z.ZodOptional<z.ZodString>;
83
+ verifiedEmail: z.ZodBoolean;
84
+ verifiedMobile: z.ZodBoolean;
85
+ verifiedIdCard: z.ZodOptional<z.ZodBoolean>;
86
+ role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
87
+ socialLinks: z.ZodOptional<z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodString>>;
88
+ userResume: z.ZodOptional<z.ZodString>;
89
+ skills: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ skill: z.ZodString;
91
+ skillExpertise: z.ZodNumber;
92
+ }, "strip", z.ZodTypeAny, {
93
+ skill: string;
94
+ skillExpertise: number;
95
+ }, {
96
+ skill: string;
97
+ skillExpertise: number;
98
+ }>, "many">>;
99
+ wishlist: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
+ favBlogs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ favPackages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
102
+ id: z.ZodOptional<z.ZodString>;
103
+ selfie: z.ZodOptional<z.ZodString>;
104
+ selfieAction: z.ZodOptional<z.ZodString>;
105
+ jobCount: z.ZodOptional<z.ZodNumber>;
106
+ travelPackageCount: z.ZodOptional<z.ZodNumber>;
107
+ gstNumber: z.ZodOptional<z.ZodString>;
108
+ panCard: z.ZodOptional<z.ZodString>;
109
+ verifiedBusiness: z.ZodOptional<z.ZodEnum<["true", "false", "inProgress"]>>;
110
+ }, "strict", z.ZodTypeAny, {
111
+ username: string;
112
+ firstName: string;
113
+ lastName: string;
114
+ email: string;
115
+ password: string;
116
+ phoneNumber: string;
117
+ countryCode: string;
118
+ country: string;
119
+ gender: "male" | "female" | "other";
120
+ rating: number;
121
+ ratingCount: number;
122
+ reviewCount: number;
123
+ joinedDate: Date;
124
+ isActive: boolean;
125
+ lastActive: Date;
126
+ verifiedEmail: boolean;
127
+ verifiedMobile: boolean;
128
+ role: "host" | "user" | "admin" | "hr" | "sales";
129
+ location?: string | undefined;
130
+ pinCode?: string | undefined;
131
+ dob?: Date | undefined;
132
+ profilePic?: string | undefined;
133
+ blogsCount?: number | undefined;
134
+ userBio?: string | undefined;
135
+ userIdCard?: string | undefined;
136
+ watchHistory?: string[] | undefined;
137
+ accessToken?: string | undefined;
138
+ refreshToken?: string | undefined;
139
+ verifiedIdCard?: boolean | undefined;
140
+ socialLinks?: Record<string, string> | undefined;
141
+ userResume?: string | undefined;
142
+ skills?: {
143
+ skill: string;
144
+ skillExpertise: number;
145
+ }[] | undefined;
146
+ wishlist?: string[] | undefined;
147
+ favBlogs?: string[] | undefined;
148
+ favPackages?: string[] | undefined;
149
+ id?: string | undefined;
150
+ selfie?: string | undefined;
151
+ selfieAction?: string | undefined;
152
+ jobCount?: number | undefined;
153
+ travelPackageCount?: number | undefined;
154
+ gstNumber?: string | undefined;
155
+ panCard?: string | undefined;
156
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
157
+ }, {
158
+ username: string;
159
+ firstName: string;
160
+ lastName: string;
161
+ email: string;
162
+ password: string;
163
+ phoneNumber: string;
164
+ countryCode: string;
165
+ country: string;
166
+ gender: "male" | "female" | "other";
167
+ rating: number;
168
+ ratingCount: number;
169
+ reviewCount: number;
170
+ joinedDate: Date;
171
+ isActive: boolean;
172
+ lastActive: Date;
173
+ verifiedEmail: boolean;
174
+ verifiedMobile: boolean;
175
+ role: "host" | "user" | "admin" | "hr" | "sales";
176
+ location?: string | undefined;
177
+ pinCode?: string | undefined;
178
+ dob?: Date | undefined;
179
+ profilePic?: string | undefined;
180
+ blogsCount?: number | undefined;
181
+ userBio?: string | undefined;
182
+ userIdCard?: string | undefined;
183
+ watchHistory?: string[] | undefined;
184
+ accessToken?: string | undefined;
185
+ refreshToken?: string | undefined;
186
+ verifiedIdCard?: boolean | undefined;
187
+ socialLinks?: Record<string, string> | undefined;
188
+ userResume?: string | undefined;
189
+ skills?: {
190
+ skill: string;
191
+ skillExpertise: number;
192
+ }[] | undefined;
193
+ wishlist?: string[] | undefined;
194
+ favBlogs?: string[] | undefined;
195
+ favPackages?: string[] | undefined;
196
+ id?: string | undefined;
197
+ selfie?: string | undefined;
198
+ selfieAction?: string | undefined;
199
+ jobCount?: number | undefined;
200
+ travelPackageCount?: number | undefined;
201
+ gstNumber?: string | undefined;
202
+ panCard?: string | undefined;
203
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
204
+ }>>;
205
+ applicationObservers: z.ZodOptional<z.ZodArray<z.ZodObject<{
206
+ username: z.ZodString;
207
+ role: z.ZodEnum<["host", "user", "admin", "hr", "sales"]>;
208
+ countryCode: z.ZodString;
209
+ phoneNumber: z.ZodString;
210
+ email: z.ZodString;
211
+ }, "strip", z.ZodTypeAny, {
212
+ username: string;
213
+ email: string;
214
+ phoneNumber: string;
215
+ countryCode: string;
216
+ role: "host" | "user" | "admin" | "hr" | "sales";
217
+ }, {
218
+ username: string;
219
+ email: string;
220
+ phoneNumber: string;
221
+ countryCode: string;
222
+ role: "host" | "user" | "admin" | "hr" | "sales";
223
+ }>, "many">>;
224
+ status: z.ZodEnum<["draft", "archived", "pending", "open", "closed", "denied", "deleted"]>;
225
+ adminApproval: z.ZodBoolean;
226
+ createdAt: z.ZodOptional<z.ZodDate>;
227
+ updatedAt: z.ZodOptional<z.ZodDate>;
228
+ } & {
229
+ opportunityType: z.ZodLiteral<"internship">;
230
+ compensation: z.ZodObject<{
231
+ type: z.ZodEnum<[string, ...string[]]>;
232
+ amount: z.ZodOptional<z.ZodNumber>;
233
+ currency: z.ZodEnum<[string, ...string[]]>;
234
+ frequency: z.ZodOptional<z.ZodEnum<[string, ...string[]]>>;
235
+ }, "strip", z.ZodTypeAny, {
236
+ type: string;
237
+ currency: string;
238
+ amount?: number | undefined;
239
+ frequency?: string | undefined;
240
+ }, {
241
+ type: string;
242
+ currency: string;
243
+ amount?: number | undefined;
244
+ frequency?: string | undefined;
245
+ }>;
246
+ platformFees: z.ZodObject<{
247
+ commissionPercent: z.ZodNumber;
248
+ commissionAmount: z.ZodNumber;
249
+ payoutToHost: z.ZodNumber;
250
+ }, "strip", z.ZodTypeAny, {
251
+ commissionPercent: number;
252
+ commissionAmount: number;
253
+ payoutToHost: number;
254
+ }, {
255
+ commissionPercent: number;
256
+ commissionAmount: number;
257
+ payoutToHost: number;
258
+ }>;
259
+ }, "strict", z.ZodTypeAny, {
260
+ country: string;
261
+ status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
262
+ rating: number;
263
+ ratingCount: number;
264
+ reviewCount: number;
265
+ skills: string[];
266
+ title: string;
267
+ description: string;
268
+ slug: string;
269
+ opportunityType: "internship";
270
+ images: string[];
271
+ city: string;
272
+ state: string;
273
+ compensation: {
274
+ type: string;
275
+ currency: string;
276
+ amount?: number | undefined;
277
+ frequency?: string | undefined;
278
+ };
279
+ availableFrom: Date;
280
+ minDuration: number;
281
+ maxDuration: number;
282
+ urgent: boolean;
283
+ peopleRequired: number;
284
+ facilities: string[];
285
+ responsibilities: string[];
286
+ questions: {
287
+ question: string;
288
+ answer: string;
289
+ }[];
290
+ applicationCount: number;
291
+ views: number;
292
+ shares: number;
293
+ hostId: {
294
+ username: string;
295
+ firstName: string;
296
+ lastName: string;
297
+ email: string;
298
+ password: string;
299
+ phoneNumber: string;
300
+ countryCode: string;
301
+ country: string;
302
+ gender: "male" | "female" | "other";
303
+ rating: number;
304
+ ratingCount: number;
305
+ reviewCount: number;
306
+ joinedDate: Date;
307
+ isActive: boolean;
308
+ lastActive: Date;
309
+ verifiedEmail: boolean;
310
+ verifiedMobile: boolean;
311
+ role: "host" | "user" | "admin" | "hr" | "sales";
312
+ location?: string | undefined;
313
+ pinCode?: string | undefined;
314
+ dob?: Date | undefined;
315
+ profilePic?: string | undefined;
316
+ blogsCount?: number | undefined;
317
+ userBio?: string | undefined;
318
+ userIdCard?: string | undefined;
319
+ watchHistory?: string[] | undefined;
320
+ accessToken?: string | undefined;
321
+ refreshToken?: string | undefined;
322
+ verifiedIdCard?: boolean | undefined;
323
+ socialLinks?: Record<string, string> | undefined;
324
+ userResume?: string | undefined;
325
+ skills?: {
326
+ skill: string;
327
+ skillExpertise: number;
328
+ }[] | undefined;
329
+ wishlist?: string[] | undefined;
330
+ favBlogs?: string[] | undefined;
331
+ favPackages?: string[] | undefined;
332
+ id?: string | undefined;
333
+ selfie?: string | undefined;
334
+ selfieAction?: string | undefined;
335
+ jobCount?: number | undefined;
336
+ travelPackageCount?: number | undefined;
337
+ gstNumber?: string | undefined;
338
+ panCard?: string | undefined;
339
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
340
+ };
341
+ adminApproval: boolean;
342
+ platformFees: {
343
+ commissionPercent: number;
344
+ commissionAmount: number;
345
+ payoutToHost: number;
346
+ };
347
+ createdAt?: Date | undefined;
348
+ updatedAt?: Date | undefined;
349
+ categoryId?: string | undefined;
350
+ address?: string | undefined;
351
+ workMode?: string | undefined;
352
+ bondPlan?: {
353
+ enabled: boolean;
354
+ commissionRate: number;
355
+ durationMonths?: number | undefined;
356
+ hostFee?: number | undefined;
357
+ securityDeposit?: number | undefined;
358
+ } | undefined;
359
+ hostingType?: string | undefined;
360
+ applicationObservers?: {
361
+ username: string;
362
+ email: string;
363
+ phoneNumber: string;
364
+ countryCode: string;
365
+ role: "host" | "user" | "admin" | "hr" | "sales";
366
+ }[] | undefined;
367
+ }, {
368
+ country: string;
369
+ status: "draft" | "archived" | "pending" | "denied" | "open" | "closed" | "deleted";
370
+ rating: number;
371
+ ratingCount: number;
372
+ reviewCount: number;
373
+ skills: string[];
374
+ title: string;
375
+ description: string;
376
+ slug: string;
377
+ opportunityType: "internship";
378
+ images: string[];
379
+ city: string;
380
+ state: string;
381
+ compensation: {
382
+ type: string;
383
+ currency: string;
384
+ amount?: number | undefined;
385
+ frequency?: string | undefined;
386
+ };
387
+ availableFrom: Date;
388
+ minDuration: number;
389
+ maxDuration: number;
390
+ urgent: boolean;
391
+ peopleRequired: number;
392
+ facilities: string[];
393
+ responsibilities: string[];
394
+ questions: {
395
+ question: string;
396
+ answer: string;
397
+ }[];
398
+ applicationCount: number;
399
+ views: number;
400
+ shares: number;
401
+ hostId: {
402
+ username: string;
403
+ firstName: string;
404
+ lastName: string;
405
+ email: string;
406
+ password: string;
407
+ phoneNumber: string;
408
+ countryCode: string;
409
+ country: string;
410
+ gender: "male" | "female" | "other";
411
+ rating: number;
412
+ ratingCount: number;
413
+ reviewCount: number;
414
+ joinedDate: Date;
415
+ isActive: boolean;
416
+ lastActive: Date;
417
+ verifiedEmail: boolean;
418
+ verifiedMobile: boolean;
419
+ role: "host" | "user" | "admin" | "hr" | "sales";
420
+ location?: string | undefined;
421
+ pinCode?: string | undefined;
422
+ dob?: Date | undefined;
423
+ profilePic?: string | undefined;
424
+ blogsCount?: number | undefined;
425
+ userBio?: string | undefined;
426
+ userIdCard?: string | undefined;
427
+ watchHistory?: string[] | undefined;
428
+ accessToken?: string | undefined;
429
+ refreshToken?: string | undefined;
430
+ verifiedIdCard?: boolean | undefined;
431
+ socialLinks?: Record<string, string> | undefined;
432
+ userResume?: string | undefined;
433
+ skills?: {
434
+ skill: string;
435
+ skillExpertise: number;
436
+ }[] | undefined;
437
+ wishlist?: string[] | undefined;
438
+ favBlogs?: string[] | undefined;
439
+ favPackages?: string[] | undefined;
440
+ id?: string | undefined;
441
+ selfie?: string | undefined;
442
+ selfieAction?: string | undefined;
443
+ jobCount?: number | undefined;
444
+ travelPackageCount?: number | undefined;
445
+ gstNumber?: string | undefined;
446
+ panCard?: string | undefined;
447
+ verifiedBusiness?: "true" | "false" | "inProgress" | undefined;
448
+ };
449
+ adminApproval: boolean;
450
+ platformFees: {
451
+ commissionPercent: number;
452
+ commissionAmount: number;
453
+ payoutToHost: number;
454
+ };
455
+ createdAt?: Date | undefined;
456
+ updatedAt?: Date | undefined;
457
+ categoryId?: string | undefined;
458
+ address?: string | undefined;
459
+ workMode?: string | undefined;
460
+ bondPlan?: {
461
+ enabled: boolean;
462
+ durationMonths?: number | undefined;
463
+ hostFee?: number | undefined;
464
+ securityDeposit?: number | undefined;
465
+ commissionRate?: number | undefined;
466
+ } | undefined;
467
+ hostingType?: string | undefined;
468
+ applicationObservers?: {
469
+ username: string;
470
+ email: string;
471
+ phoneNumber: string;
472
+ countryCode: string;
473
+ role: "host" | "user" | "admin" | "hr" | "sales";
474
+ }[] | undefined;
475
+ }>;
476
+ //# sourceMappingURL=internship.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internship.d.ts","sourceRoot":"","sources":["../../../../src/lib/models/opportunities/internship.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { CompensationSchema, OpportunitySchema, PlatformFeeSchema } from "./opportunity";
2
+ import { z } from "zod";
3
+ export const InternshipOpportunitySchema = OpportunitySchema.extend({
4
+ opportunityType: z.literal("internship"),
5
+ compensation: CompensationSchema,
6
+ platformFees: PlatformFeeSchema,
7
+ });