lancer-shared 1.2.172 → 1.2.173
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/bundle.cjs.js
CHANGED
|
@@ -6541,9 +6541,10 @@ const ROUTES = {
|
|
|
6541
6541
|
BASE: (id) => `organizations/${id}/cover-letter`,
|
|
6542
6542
|
BY_ID: (id, coverLetterId) => `organizations/${id}/cover-letter/${coverLetterId}`,
|
|
6543
6543
|
},
|
|
6544
|
-
|
|
6545
|
-
BASE: (id) => `organizations/${id}/
|
|
6546
|
-
|
|
6544
|
+
PROFILES: {
|
|
6545
|
+
BASE: (id) => `organizations/${id}/profiles`,
|
|
6546
|
+
BY_ID: (id, profileId) => `organizations/${id}/profiles/${profileId}`,
|
|
6547
|
+
DUPLICATE: (id, profileId) => `organizations/${id}/profiles/${profileId}/duplicate`,
|
|
6547
6548
|
},
|
|
6548
6549
|
MEMBERS: {
|
|
6549
6550
|
BASE: (id) => `organizations/${id}/members`,
|
|
@@ -12977,7 +12978,8 @@ const caseStudySchema = objectType({
|
|
|
12977
12978
|
title: stringType(),
|
|
12978
12979
|
description: stringType(),
|
|
12979
12980
|
});
|
|
12980
|
-
z.object({
|
|
12981
|
+
const organizationProfileSchema = z.object({
|
|
12982
|
+
id: stringType(),
|
|
12981
12983
|
type: z.enum(['freelancer', 'agency']),
|
|
12982
12984
|
name: z.string(),
|
|
12983
12985
|
summary: z.string(),
|
|
@@ -12993,6 +12995,15 @@ z.object({
|
|
|
12993
12995
|
teamSize: z.number(),
|
|
12994
12996
|
}),
|
|
12995
12997
|
caseStudies: z.array(caseStudySchema),
|
|
12998
|
+
createdAt: numberType(),
|
|
12999
|
+
});
|
|
13000
|
+
const updateOrganizationProfileSchema = organizationProfileSchema
|
|
13001
|
+
.partial()
|
|
13002
|
+
.extend({
|
|
13003
|
+
id: stringType(),
|
|
13004
|
+
});
|
|
13005
|
+
const createOrganizationProfileSchema = organizationProfileSchema.pick({
|
|
13006
|
+
name: true,
|
|
12996
13007
|
});
|
|
12997
13008
|
const createOrganizationSchema = organizationSchema.pick({
|
|
12998
13009
|
name: true,
|
|
@@ -13089,6 +13100,7 @@ const campaignSchema = z.object({
|
|
|
13089
13100
|
coverLetterTemplateId: z.string().nullable(),
|
|
13090
13101
|
priority: z.number().nullable(),
|
|
13091
13102
|
coverLetterTemplate: coverLetterTemplateSchema.nullable(),
|
|
13103
|
+
organizationProfileId: z.string().nullable(),
|
|
13092
13104
|
});
|
|
13093
13105
|
const upworkAccountConnectStatusSchema = z.union([
|
|
13094
13106
|
z.literal('processing'),
|
|
@@ -23202,6 +23214,7 @@ exports.createBidderAccountSchema = createBidderAccountSchema;
|
|
|
23202
23214
|
exports.createCampaignSchema = createCampaignSchema;
|
|
23203
23215
|
exports.createChatbotSchema = createChatbotSchema;
|
|
23204
23216
|
exports.createCoverLetterTemplateSchema = createCoverLetterTemplateSchema;
|
|
23217
|
+
exports.createOrganizationProfileSchema = createOrganizationProfileSchema;
|
|
23205
23218
|
exports.createOrganizationSchema = createOrganizationSchema;
|
|
23206
23219
|
exports.createScraperAccountSchema = createScraperAccountSchema;
|
|
23207
23220
|
exports.dailyUsageSchema = dailyUsageSchema;
|
|
@@ -23313,6 +23326,7 @@ exports.openPageException = openPageException;
|
|
|
23313
23326
|
exports.organizationCampaignStatsSchema = organizationCampaignStatsSchema;
|
|
23314
23327
|
exports.organizationMemberRoleEnum = organizationMemberRoleEnum;
|
|
23315
23328
|
exports.organizationMemberSchema = organizationMemberSchema;
|
|
23329
|
+
exports.organizationProfileSchema = organizationProfileSchema;
|
|
23316
23330
|
exports.organizationSchema = organizationSchema;
|
|
23317
23331
|
exports.organizationSettingsSchema = organizationSettingsSchema;
|
|
23318
23332
|
exports.organizationTierEnum = organizationTierEnum;
|
|
@@ -23414,6 +23428,7 @@ exports.updateCampaignSchema = updateCampaignSchema;
|
|
|
23414
23428
|
exports.updateChatbotSchema = updateChatbotSchema;
|
|
23415
23429
|
exports.updateLeadStatusSchema = updateLeadStatusSchema;
|
|
23416
23430
|
exports.updateOrganizationLeadsStatusPayloadSchema = updateOrganizationLeadsStatusPayloadSchema;
|
|
23431
|
+
exports.updateOrganizationProfileSchema = updateOrganizationProfileSchema;
|
|
23417
23432
|
exports.updateScraperAccountSchema = updateScraperAccountSchema;
|
|
23418
23433
|
exports.updateSuitableLeadNotificationBodySchema = updateSuitableLeadNotificationBodySchema;
|
|
23419
23434
|
exports.updateSuitableLeadNotificationType = updateSuitableLeadNotificationType;
|
|
@@ -118,9 +118,10 @@ export declare const ROUTES: {
|
|
|
118
118
|
readonly BASE: (id: string) => string;
|
|
119
119
|
readonly BY_ID: (id: string, coverLetterId: string) => string;
|
|
120
120
|
};
|
|
121
|
-
readonly
|
|
121
|
+
readonly PROFILES: {
|
|
122
122
|
readonly BASE: (id: string) => string;
|
|
123
|
-
readonly
|
|
123
|
+
readonly BY_ID: (id: string, profileId: string) => string;
|
|
124
|
+
readonly DUPLICATE: (id: string, profileId: string) => string;
|
|
124
125
|
};
|
|
125
126
|
readonly MEMBERS: {
|
|
126
127
|
readonly BASE: (id: string) => string;
|
|
@@ -266,7 +266,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
266
266
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
267
267
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
268
268
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
269
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
269
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
270
270
|
expenses: z.ZodObject<{
|
|
271
271
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
272
272
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -319,6 +319,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
319
319
|
template: string;
|
|
320
320
|
instructions: string;
|
|
321
321
|
}>>;
|
|
322
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
322
323
|
}, "strip", z.ZodTypeAny, {
|
|
323
324
|
id: string;
|
|
324
325
|
name: string;
|
|
@@ -389,7 +390,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
389
390
|
sleepStartAtHour: number | null;
|
|
390
391
|
sleepEndAtHour: number | null;
|
|
391
392
|
sleepTimezone: string | null;
|
|
392
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
|
|
393
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won", number>> | null;
|
|
393
394
|
expenses: {
|
|
394
395
|
biddingAmount: number;
|
|
395
396
|
boostingAmount: number;
|
|
@@ -411,6 +412,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
411
412
|
template: string;
|
|
412
413
|
instructions: string;
|
|
413
414
|
} | null;
|
|
415
|
+
organizationProfileId: string | null;
|
|
414
416
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
415
417
|
}, {
|
|
416
418
|
id: string;
|
|
@@ -475,7 +477,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
475
477
|
biddingHourlyRatePercentage: number | null;
|
|
476
478
|
bidWithWarning: "bid" | "skip";
|
|
477
479
|
sleepTimezone: string | null;
|
|
478
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
|
|
480
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won", number>> | null;
|
|
479
481
|
expenses: {
|
|
480
482
|
biddingAmount?: number | undefined;
|
|
481
483
|
boostingAmount?: number | undefined;
|
|
@@ -497,6 +499,7 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
497
499
|
template: string;
|
|
498
500
|
instructions: string;
|
|
499
501
|
} | null;
|
|
502
|
+
organizationProfileId: string | null;
|
|
500
503
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
501
504
|
boostingEnabled?: boolean | null | undefined;
|
|
502
505
|
maximumBoost?: number | null | undefined;
|
|
@@ -771,7 +774,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
771
774
|
sleepStartAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
772
775
|
sleepEndAtHour: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
773
776
|
sleepTimezone: z.ZodNullable<z.ZodString>;
|
|
774
|
-
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
777
|
+
leadCounts: z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>;
|
|
775
778
|
expenses: z.ZodObject<{
|
|
776
779
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
777
780
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -824,6 +827,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
824
827
|
template: string;
|
|
825
828
|
instructions: string;
|
|
826
829
|
}>>;
|
|
830
|
+
organizationProfileId: z.ZodNullable<z.ZodString>;
|
|
827
831
|
}, "id" | "createdAt" | "updatedAt" | "bidConfig">, "strip", z.ZodTypeAny, {
|
|
828
832
|
name: string;
|
|
829
833
|
filters: {
|
|
@@ -891,7 +895,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
891
895
|
sleepStartAtHour: number | null;
|
|
892
896
|
sleepEndAtHour: number | null;
|
|
893
897
|
sleepTimezone: string | null;
|
|
894
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
|
|
898
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won", number>> | null;
|
|
895
899
|
expenses: {
|
|
896
900
|
biddingAmount: number;
|
|
897
901
|
boostingAmount: number;
|
|
@@ -907,6 +911,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
907
911
|
template: string;
|
|
908
912
|
instructions: string;
|
|
909
913
|
} | null;
|
|
914
|
+
organizationProfileId: string | null;
|
|
910
915
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
911
916
|
}, {
|
|
912
917
|
name: string;
|
|
@@ -968,7 +973,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
968
973
|
biddingHourlyRatePercentage: number | null;
|
|
969
974
|
bidWithWarning: "bid" | "skip";
|
|
970
975
|
sleepTimezone: string | null;
|
|
971
|
-
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null;
|
|
976
|
+
leadCounts: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won", number>> | null;
|
|
972
977
|
expenses: {
|
|
973
978
|
biddingAmount?: number | undefined;
|
|
974
979
|
boostingAmount?: number | undefined;
|
|
@@ -984,6 +989,7 @@ export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
|
984
989
|
template: string;
|
|
985
990
|
instructions: string;
|
|
986
991
|
} | null;
|
|
992
|
+
organizationProfileId: string | null;
|
|
987
993
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
988
994
|
boostingEnabled?: boolean | null | undefined;
|
|
989
995
|
maximumBoost?: number | null | undefined;
|
|
@@ -1238,7 +1244,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1238
1244
|
sleepStartAtHour: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1239
1245
|
sleepEndAtHour: z.ZodOptional<z.ZodDefault<z.ZodNullable<z.ZodNumber>>>;
|
|
1240
1246
|
sleepTimezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1241
|
-
leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "viewed", "replied", "won"]>, z.ZodNumber>>>;
|
|
1247
|
+
leadCounts: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodEnum<["leads", "contacted", "insufficientConnects", "doesNotMeetCriteria", "viewed", "replied", "won"]>, z.ZodNumber>>>;
|
|
1242
1248
|
expenses: z.ZodOptional<z.ZodObject<{
|
|
1243
1249
|
biddingAmount: z.ZodDefault<z.ZodNumber>;
|
|
1244
1250
|
boostingAmount: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1290,6 +1296,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1290
1296
|
template: string;
|
|
1291
1297
|
instructions: string;
|
|
1292
1298
|
}>>>;
|
|
1299
|
+
organizationProfileId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1293
1300
|
}, "strip", z.ZodTypeAny, {
|
|
1294
1301
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
1295
1302
|
id?: string | undefined;
|
|
@@ -1359,7 +1366,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1359
1366
|
sleepStartAtHour?: number | null | undefined;
|
|
1360
1367
|
sleepEndAtHour?: number | null | undefined;
|
|
1361
1368
|
sleepTimezone?: string | null | undefined;
|
|
1362
|
-
leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null | undefined;
|
|
1369
|
+
leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won", number>> | null | undefined;
|
|
1363
1370
|
expenses?: {
|
|
1364
1371
|
biddingAmount: number;
|
|
1365
1372
|
boostingAmount: number;
|
|
@@ -1381,6 +1388,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1381
1388
|
template: string;
|
|
1382
1389
|
instructions: string;
|
|
1383
1390
|
} | null | undefined;
|
|
1391
|
+
organizationProfileId?: string | null | undefined;
|
|
1384
1392
|
}, {
|
|
1385
1393
|
status?: "active" | "draft" | "paused" | "error" | undefined;
|
|
1386
1394
|
id?: string | undefined;
|
|
@@ -1450,7 +1458,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1450
1458
|
sleepStartAtHour?: number | null | undefined;
|
|
1451
1459
|
sleepEndAtHour?: number | null | undefined;
|
|
1452
1460
|
sleepTimezone?: string | null | undefined;
|
|
1453
|
-
leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "viewed" | "replied" | "won", number>> | null | undefined;
|
|
1461
|
+
leadCounts?: Partial<Record<"leads" | "contacted" | "insufficientConnects" | "doesNotMeetCriteria" | "viewed" | "replied" | "won", number>> | null | undefined;
|
|
1454
1462
|
expenses?: {
|
|
1455
1463
|
biddingAmount?: number | undefined;
|
|
1456
1464
|
boostingAmount?: number | undefined;
|
|
@@ -1472,6 +1480,7 @@ export declare const updateCampaignSchema: z.ZodObject<{
|
|
|
1472
1480
|
template: string;
|
|
1473
1481
|
instructions: string;
|
|
1474
1482
|
} | null | undefined;
|
|
1483
|
+
organizationProfileId?: string | null | undefined;
|
|
1475
1484
|
}>;
|
|
1476
1485
|
export type BiddingHourlyRateStrategy = z.infer<typeof biddingHourlyRateStrategyEnum>;
|
|
1477
1486
|
export interface Campaign extends z.infer<typeof campaignSchema> {
|
|
@@ -430,7 +430,8 @@ export declare const caseStudySchema: z.ZodObject<{
|
|
|
430
430
|
description: string;
|
|
431
431
|
}>;
|
|
432
432
|
export type CaseStudy = z.infer<typeof caseStudySchema>;
|
|
433
|
-
declare const organizationProfileSchema: z.ZodObject<{
|
|
433
|
+
export declare const organizationProfileSchema: z.ZodObject<{
|
|
434
|
+
id: z.ZodString;
|
|
434
435
|
type: z.ZodEnum<["freelancer", "agency"]>;
|
|
435
436
|
name: z.ZodString;
|
|
436
437
|
summary: z.ZodString;
|
|
@@ -466,9 +467,12 @@ declare const organizationProfileSchema: z.ZodObject<{
|
|
|
466
467
|
title: string;
|
|
467
468
|
description: string;
|
|
468
469
|
}>, "many">;
|
|
470
|
+
createdAt: z.ZodNumber;
|
|
469
471
|
}, "strip", z.ZodTypeAny, {
|
|
470
472
|
type: "agency" | "freelancer";
|
|
473
|
+
id: string;
|
|
471
474
|
name: string;
|
|
475
|
+
createdAt: number;
|
|
472
476
|
summary: string;
|
|
473
477
|
coreServices: string;
|
|
474
478
|
toolsSkillsTechnologies: string;
|
|
@@ -488,7 +492,9 @@ declare const organizationProfileSchema: z.ZodObject<{
|
|
|
488
492
|
}[];
|
|
489
493
|
}, {
|
|
490
494
|
type: "agency" | "freelancer";
|
|
495
|
+
id: string;
|
|
491
496
|
name: string;
|
|
497
|
+
createdAt: number;
|
|
492
498
|
summary: string;
|
|
493
499
|
coreServices: string;
|
|
494
500
|
toolsSkillsTechnologies: string;
|
|
@@ -507,7 +513,137 @@ declare const organizationProfileSchema: z.ZodObject<{
|
|
|
507
513
|
description: string;
|
|
508
514
|
}[];
|
|
509
515
|
}>;
|
|
516
|
+
export declare const updateOrganizationProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
517
|
+
id: z.ZodOptional<z.ZodString>;
|
|
518
|
+
type: z.ZodOptional<z.ZodEnum<["freelancer", "agency"]>>;
|
|
519
|
+
name: z.ZodOptional<z.ZodString>;
|
|
520
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
521
|
+
coreServices: z.ZodOptional<z.ZodString>;
|
|
522
|
+
toolsSkillsTechnologies: z.ZodOptional<z.ZodString>;
|
|
523
|
+
approach: z.ZodOptional<z.ZodString>;
|
|
524
|
+
icp: z.ZodOptional<z.ZodString>;
|
|
525
|
+
projectsTheyAvoid: z.ZodOptional<z.ZodString>;
|
|
526
|
+
spokenLanguages: z.ZodOptional<z.ZodString>;
|
|
527
|
+
agencyInfo: z.ZodOptional<z.ZodObject<{
|
|
528
|
+
location: z.ZodArray<z.ZodString, "many">;
|
|
529
|
+
website: z.ZodString;
|
|
530
|
+
teamSize: z.ZodNumber;
|
|
531
|
+
}, "strip", z.ZodTypeAny, {
|
|
532
|
+
location: string[];
|
|
533
|
+
website: string;
|
|
534
|
+
teamSize: number;
|
|
535
|
+
}, {
|
|
536
|
+
location: string[];
|
|
537
|
+
website: string;
|
|
538
|
+
teamSize: number;
|
|
539
|
+
}>>;
|
|
540
|
+
caseStudies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
541
|
+
id: z.ZodString;
|
|
542
|
+
title: z.ZodString;
|
|
543
|
+
description: z.ZodString;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
id: string;
|
|
546
|
+
title: string;
|
|
547
|
+
description: string;
|
|
548
|
+
}, {
|
|
549
|
+
id: string;
|
|
550
|
+
title: string;
|
|
551
|
+
description: string;
|
|
552
|
+
}>, "many">>;
|
|
553
|
+
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
554
|
+
}, {
|
|
555
|
+
id: z.ZodString;
|
|
556
|
+
}>, "strip", z.ZodTypeAny, {
|
|
557
|
+
id: string;
|
|
558
|
+
type?: "agency" | "freelancer" | undefined;
|
|
559
|
+
name?: string | undefined;
|
|
560
|
+
createdAt?: number | undefined;
|
|
561
|
+
summary?: string | undefined;
|
|
562
|
+
coreServices?: string | undefined;
|
|
563
|
+
toolsSkillsTechnologies?: string | undefined;
|
|
564
|
+
approach?: string | undefined;
|
|
565
|
+
icp?: string | undefined;
|
|
566
|
+
projectsTheyAvoid?: string | undefined;
|
|
567
|
+
spokenLanguages?: string | undefined;
|
|
568
|
+
agencyInfo?: {
|
|
569
|
+
location: string[];
|
|
570
|
+
website: string;
|
|
571
|
+
teamSize: number;
|
|
572
|
+
} | undefined;
|
|
573
|
+
caseStudies?: {
|
|
574
|
+
id: string;
|
|
575
|
+
title: string;
|
|
576
|
+
description: string;
|
|
577
|
+
}[] | undefined;
|
|
578
|
+
}, {
|
|
579
|
+
id: string;
|
|
580
|
+
type?: "agency" | "freelancer" | undefined;
|
|
581
|
+
name?: string | undefined;
|
|
582
|
+
createdAt?: number | undefined;
|
|
583
|
+
summary?: string | undefined;
|
|
584
|
+
coreServices?: string | undefined;
|
|
585
|
+
toolsSkillsTechnologies?: string | undefined;
|
|
586
|
+
approach?: string | undefined;
|
|
587
|
+
icp?: string | undefined;
|
|
588
|
+
projectsTheyAvoid?: string | undefined;
|
|
589
|
+
spokenLanguages?: string | undefined;
|
|
590
|
+
agencyInfo?: {
|
|
591
|
+
location: string[];
|
|
592
|
+
website: string;
|
|
593
|
+
teamSize: number;
|
|
594
|
+
} | undefined;
|
|
595
|
+
caseStudies?: {
|
|
596
|
+
id: string;
|
|
597
|
+
title: string;
|
|
598
|
+
description: string;
|
|
599
|
+
}[] | undefined;
|
|
600
|
+
}>;
|
|
601
|
+
export declare const createOrganizationProfileSchema: z.ZodObject<Pick<{
|
|
602
|
+
id: z.ZodString;
|
|
603
|
+
type: z.ZodEnum<["freelancer", "agency"]>;
|
|
604
|
+
name: z.ZodString;
|
|
605
|
+
summary: z.ZodString;
|
|
606
|
+
coreServices: z.ZodString;
|
|
607
|
+
toolsSkillsTechnologies: z.ZodString;
|
|
608
|
+
approach: z.ZodString;
|
|
609
|
+
icp: z.ZodString;
|
|
610
|
+
projectsTheyAvoid: z.ZodString;
|
|
611
|
+
spokenLanguages: z.ZodString;
|
|
612
|
+
agencyInfo: z.ZodObject<{
|
|
613
|
+
location: z.ZodArray<z.ZodString, "many">;
|
|
614
|
+
website: z.ZodString;
|
|
615
|
+
teamSize: z.ZodNumber;
|
|
616
|
+
}, "strip", z.ZodTypeAny, {
|
|
617
|
+
location: string[];
|
|
618
|
+
website: string;
|
|
619
|
+
teamSize: number;
|
|
620
|
+
}, {
|
|
621
|
+
location: string[];
|
|
622
|
+
website: string;
|
|
623
|
+
teamSize: number;
|
|
624
|
+
}>;
|
|
625
|
+
caseStudies: z.ZodArray<z.ZodObject<{
|
|
626
|
+
id: z.ZodString;
|
|
627
|
+
title: z.ZodString;
|
|
628
|
+
description: z.ZodString;
|
|
629
|
+
}, "strip", z.ZodTypeAny, {
|
|
630
|
+
id: string;
|
|
631
|
+
title: string;
|
|
632
|
+
description: string;
|
|
633
|
+
}, {
|
|
634
|
+
id: string;
|
|
635
|
+
title: string;
|
|
636
|
+
description: string;
|
|
637
|
+
}>, "many">;
|
|
638
|
+
createdAt: z.ZodNumber;
|
|
639
|
+
}, "name">, "strip", z.ZodTypeAny, {
|
|
640
|
+
name: string;
|
|
641
|
+
}, {
|
|
642
|
+
name: string;
|
|
643
|
+
}>;
|
|
510
644
|
export type OrganizationProfile = z.infer<typeof organizationProfileSchema>;
|
|
645
|
+
export type UpdateOrganizationProfile = z.infer<typeof updateOrganizationProfileSchema>;
|
|
646
|
+
export type CreateOrganizationProfile = z.infer<typeof createOrganizationProfileSchema>;
|
|
511
647
|
export declare const createOrganizationSchema: z.ZodObject<Pick<{
|
|
512
648
|
id: z.ZodString;
|
|
513
649
|
name: z.ZodString;
|
|
@@ -901,7 +1037,7 @@ export interface OneTimePayments extends z.infer<typeof oneTimePaymentsSchema> {
|
|
|
901
1037
|
export interface Organization extends infer<typeof organizationSchema> {
|
|
902
1038
|
coverLetterTemplates: CoverLetterTemplate[] | null;
|
|
903
1039
|
settings: OrganizationSettings | null;
|
|
904
|
-
|
|
1040
|
+
profiles: OrganizationProfile[] | null;
|
|
905
1041
|
onboarding: OnboardingProgress | null;
|
|
906
1042
|
oneTimePayments: OneTimePayments;
|
|
907
1043
|
}
|