lancer-shared 1.2.52 → 1.2.54
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
|
@@ -6534,7 +6534,6 @@ const ROUTES = {
|
|
|
6534
6534
|
BIDDER_ACCOUNTS: {
|
|
6535
6535
|
BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/bidder-account`,
|
|
6536
6536
|
},
|
|
6537
|
-
UPWORK_ACCOUNT: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/upwork-account`,
|
|
6538
6537
|
LEADS: {
|
|
6539
6538
|
BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads`,
|
|
6540
6539
|
BY_ID: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/${leadId}`,
|
|
@@ -12282,6 +12281,19 @@ const subscriptionSchema = objectType({
|
|
|
12282
12281
|
usage: recordType(usageEventTypeEnum, numberType()),
|
|
12283
12282
|
});
|
|
12284
12283
|
|
|
12284
|
+
const coverLetterTemplateSchema = z.object({
|
|
12285
|
+
id: z.string(),
|
|
12286
|
+
name: z.string(),
|
|
12287
|
+
description: z.string().nullable(),
|
|
12288
|
+
template: z.string(),
|
|
12289
|
+
instructions: z.string(),
|
|
12290
|
+
});
|
|
12291
|
+
const createCoverLetterTemplateSchema = coverLetterTemplateSchema.pick({
|
|
12292
|
+
name: true,
|
|
12293
|
+
template: true,
|
|
12294
|
+
instructions: true,
|
|
12295
|
+
});
|
|
12296
|
+
|
|
12285
12297
|
const organizationMemberRoleEnum = z.enum(["admin", "member"]);
|
|
12286
12298
|
const organizationMemberSchema = objectType({
|
|
12287
12299
|
role: organizationMemberRoleEnum,
|
|
@@ -12297,19 +12309,6 @@ const onboardingProgressSchema = z.object({
|
|
|
12297
12309
|
startCampaign: z.boolean(),
|
|
12298
12310
|
});
|
|
12299
12311
|
|
|
12300
|
-
const coverLetterTemplateSchema = z.object({
|
|
12301
|
-
id: z.string(),
|
|
12302
|
-
name: z.string(),
|
|
12303
|
-
description: z.string().nullable(),
|
|
12304
|
-
template: z.string(),
|
|
12305
|
-
instructions: z.string(),
|
|
12306
|
-
});
|
|
12307
|
-
const createCoverLetterTemplateSchema = coverLetterTemplateSchema.pick({
|
|
12308
|
-
name: true,
|
|
12309
|
-
template: true,
|
|
12310
|
-
instructions: true,
|
|
12311
|
-
});
|
|
12312
|
-
|
|
12313
12312
|
const organizationTypeSchema = z.enum(["agency", "freelancer"]);
|
|
12314
12313
|
const organizationTierEnum = z.enum(["free", "premium"]);
|
|
12315
12314
|
const limitsSchema = objectType({
|
|
@@ -12389,6 +12388,7 @@ const subscribePayloadSchema = objectType({
|
|
|
12389
12388
|
planId: stringType().min(1, "Plan id is required."),
|
|
12390
12389
|
paymentMethodId: stringType().min(1, "Payment method is required."),
|
|
12391
12390
|
toltReferral: stringType().optional(),
|
|
12391
|
+
couponCode: stringType().nullish(),
|
|
12392
12392
|
});
|
|
12393
12393
|
|
|
12394
12394
|
const systemPromptSchema = objectType({
|
|
@@ -121,7 +121,6 @@ export declare const ROUTES: {
|
|
|
121
121
|
readonly BIDDER_ACCOUNTS: {
|
|
122
122
|
readonly BASE: (organizationId: string, campaignId: string) => string;
|
|
123
123
|
};
|
|
124
|
-
readonly UPWORK_ACCOUNT: (organizationId: string, campaignId: string) => string;
|
|
125
124
|
readonly LEADS: {
|
|
126
125
|
readonly BASE: (organizationId: string, campaignId: string) => string;
|
|
127
126
|
readonly BY_ID: (organizationId: string, campaignId: string, leadId: string) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { infer, z } from "zod";
|
|
2
|
-
import { OnboardingProgress } from "./onboarding";
|
|
3
2
|
import { CoverLetterTemplate } from "./cover-letter";
|
|
3
|
+
import { OnboardingProgress } from "./onboarding";
|
|
4
4
|
export declare const organizationTypeSchema: z.ZodEnum<["agency", "freelancer"]>;
|
|
5
5
|
export declare const organizationTierEnum: z.ZodEnum<["free", "premium"]>;
|
|
6
6
|
export declare const limitsSchema: z.ZodObject<{
|
|
@@ -639,14 +639,17 @@ export declare const subscribePayloadSchema: z.ZodObject<{
|
|
|
639
639
|
planId: z.ZodString;
|
|
640
640
|
paymentMethodId: z.ZodString;
|
|
641
641
|
toltReferral: z.ZodOptional<z.ZodString>;
|
|
642
|
+
couponCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
642
643
|
}, "strip", z.ZodTypeAny, {
|
|
643
644
|
planId: string;
|
|
644
645
|
paymentMethodId: string;
|
|
645
646
|
toltReferral?: string | undefined;
|
|
647
|
+
couponCode?: string | null | undefined;
|
|
646
648
|
}, {
|
|
647
649
|
planId: string;
|
|
648
650
|
paymentMethodId: string;
|
|
649
651
|
toltReferral?: string | undefined;
|
|
652
|
+
couponCode?: string | null | undefined;
|
|
650
653
|
}>;
|
|
651
654
|
export interface Organization extends infer<typeof organizationSchema> {
|
|
652
655
|
coverLetterTemplates: CoverLetterTemplate[] | null;
|
|
@@ -665,7 +668,7 @@ export interface OrganizationSettings extends infer<typeof organizationSettingsS
|
|
|
665
668
|
export type OrganizationType = z.infer<typeof organizationTypeSchema>;
|
|
666
669
|
export interface SubscribePayload extends z.infer<typeof subscribePayloadSchema> {
|
|
667
670
|
}
|
|
671
|
+
export * from "./cover-letter";
|
|
668
672
|
export * from "./member";
|
|
669
673
|
export * from "./onboarding";
|
|
670
674
|
export * from "./subscription";
|
|
671
|
-
export * from "./cover-letter";
|