lancer-shared 1.2.50 → 1.2.52
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,6 +6534,7 @@ 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`,
|
|
6537
6538
|
LEADS: {
|
|
6538
6539
|
BASE: (organizationId, campaignId) => `organizations/${organizationId}/campaigns/${campaignId}/leads`,
|
|
6539
6540
|
BY_ID: (organizationId, campaignId, leadId) => `organizations/${organizationId}/campaigns/${campaignId}/leads/${leadId}`,
|
|
@@ -12799,10 +12800,10 @@ const bidConfigSchema = z.object({
|
|
|
12799
12800
|
specialisedProfile: z.string().nullable(),
|
|
12800
12801
|
});
|
|
12801
12802
|
const campaignStatusSchema = z.union([
|
|
12802
|
-
z.literal(
|
|
12803
|
-
z.literal(
|
|
12804
|
-
z.literal(
|
|
12805
|
-
z.literal(
|
|
12803
|
+
z.literal("active"),
|
|
12804
|
+
z.literal("draft"),
|
|
12805
|
+
z.literal("paused"),
|
|
12806
|
+
z.literal("error"),
|
|
12806
12807
|
]);
|
|
12807
12808
|
const campaignSchema = z.object({
|
|
12808
12809
|
id: z.string(),
|
|
@@ -12826,6 +12827,15 @@ const campaignSchema = z.object({
|
|
|
12826
12827
|
bidConfig: bidConfigSchema.nullable(),
|
|
12827
12828
|
coverLetterTemplateId: z.string().nullable(),
|
|
12828
12829
|
});
|
|
12830
|
+
const upworkAccountConnectStatusSchema = z.union([
|
|
12831
|
+
z.literal("processing"),
|
|
12832
|
+
z.literal("connected"),
|
|
12833
|
+
z.literal("failed"),
|
|
12834
|
+
]);
|
|
12835
|
+
const upworkAccountConnectSchema = z.object({
|
|
12836
|
+
status: upworkAccountConnectStatusSchema.nullable(),
|
|
12837
|
+
error: z.string().nullable(),
|
|
12838
|
+
});
|
|
12829
12839
|
const createCampaignSchema = campaignSchema.omit({
|
|
12830
12840
|
id: true,
|
|
12831
12841
|
createdAt: true,
|
|
@@ -13047,6 +13057,7 @@ const planStripeMetadataSchema = objectType({
|
|
|
13047
13057
|
const planFeatureSchema = objectType({
|
|
13048
13058
|
id: stringType(),
|
|
13049
13059
|
description: stringType(),
|
|
13060
|
+
tooltipContent: stringType().nullable(),
|
|
13050
13061
|
});
|
|
13051
13062
|
const planSchema = objectType({
|
|
13052
13063
|
id: stringType().regex(/^prod_[a-zA-Z0-9]+$/),
|
|
@@ -13846,6 +13857,8 @@ exports.updateCampaignAnalyticsSchema = updateCampaignAnalyticsSchema;
|
|
|
13846
13857
|
exports.updateCampaignSchema = updateCampaignSchema;
|
|
13847
13858
|
exports.updateLeadStatusSchema = updateLeadStatusSchema;
|
|
13848
13859
|
exports.updateScraperAccountSchema = updateScraperAccountSchema;
|
|
13860
|
+
exports.upworkAccountConnectSchema = upworkAccountConnectSchema;
|
|
13861
|
+
exports.upworkAccountConnectStatusSchema = upworkAccountConnectStatusSchema;
|
|
13849
13862
|
exports.upworkJobSchema = upworkJobSchema;
|
|
13850
13863
|
exports.upworkProfileSchema = upworkProfileSchema;
|
|
13851
13864
|
exports.usageEventMetadataSchema = usageEventMetadataSchema;
|
|
@@ -121,6 +121,7 @@ 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;
|
|
124
125
|
readonly LEADS: {
|
|
125
126
|
readonly BASE: (organizationId: string, campaignId: string) => string;
|
|
126
127
|
readonly BY_ID: (organizationId: string, campaignId: string, leadId: string) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { infer, z } from
|
|
2
|
-
import { JobFilters } from
|
|
3
|
-
import { CoverLetterTemplate } from
|
|
4
|
-
import { CampaignExpenses } from
|
|
5
|
-
import { CampaignWebhook } from
|
|
1
|
+
import { infer, z } from "zod";
|
|
2
|
+
import { JobFilters } from "../job";
|
|
3
|
+
import { CoverLetterTemplate } from "../organization";
|
|
4
|
+
import { CampaignExpenses } from "./campaign-expenses";
|
|
5
|
+
import { CampaignWebhook } from "./campaign-webhooks";
|
|
6
6
|
export declare const bidConfigSchema: z.ZodObject<{
|
|
7
7
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
8
8
|
bidderId: z.ZodNullable<z.ZodString>;
|
|
@@ -485,6 +485,19 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
485
485
|
maximumBoost?: number | null | undefined;
|
|
486
486
|
boostingThreshold?: number | null | undefined;
|
|
487
487
|
}>;
|
|
488
|
+
export declare const upworkAccountConnectStatusSchema: z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">]>;
|
|
489
|
+
export declare const upworkAccountConnectSchema: z.ZodObject<{
|
|
490
|
+
status: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">]>>;
|
|
491
|
+
error: z.ZodNullable<z.ZodString>;
|
|
492
|
+
}, "strip", z.ZodTypeAny, {
|
|
493
|
+
status: "processing" | "connected" | "failed" | null;
|
|
494
|
+
error: string | null;
|
|
495
|
+
}, {
|
|
496
|
+
status: "processing" | "connected" | "failed" | null;
|
|
497
|
+
error: string | null;
|
|
498
|
+
}>;
|
|
499
|
+
export type UpworkAccountConnectStatus = z.infer<typeof upworkAccountConnectStatusSchema>;
|
|
500
|
+
export type UpworkAccountConnect = z.infer<typeof upworkAccountConnectSchema>;
|
|
488
501
|
export declare const createCampaignSchema: z.ZodObject<Omit<{
|
|
489
502
|
id: z.ZodString;
|
|
490
503
|
name: z.ZodString;
|
|
@@ -35,12 +35,15 @@ export declare const planStripeMetadataSchema: import("zod").ZodObject<{
|
|
|
35
35
|
export declare const planFeatureSchema: import("zod").ZodObject<{
|
|
36
36
|
id: import("zod").ZodString;
|
|
37
37
|
description: import("zod").ZodString;
|
|
38
|
+
tooltipContent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
38
39
|
}, "strip", import("zod").ZodTypeAny, {
|
|
39
40
|
id: string;
|
|
40
41
|
description: string;
|
|
42
|
+
tooltipContent: string | null;
|
|
41
43
|
}, {
|
|
42
44
|
id: string;
|
|
43
45
|
description: string;
|
|
46
|
+
tooltipContent: string | null;
|
|
44
47
|
}>;
|
|
45
48
|
export declare const planSchema: import("zod").ZodObject<{
|
|
46
49
|
id: import("zod").ZodString;
|
|
@@ -85,12 +88,15 @@ export declare const planSchema: import("zod").ZodObject<{
|
|
|
85
88
|
features: import("zod").ZodArray<import("zod").ZodObject<{
|
|
86
89
|
id: import("zod").ZodString;
|
|
87
90
|
description: import("zod").ZodString;
|
|
91
|
+
tooltipContent: import("zod").ZodNullable<import("zod").ZodString>;
|
|
88
92
|
}, "strip", import("zod").ZodTypeAny, {
|
|
89
93
|
id: string;
|
|
90
94
|
description: string;
|
|
95
|
+
tooltipContent: string | null;
|
|
91
96
|
}, {
|
|
92
97
|
id: string;
|
|
93
98
|
description: string;
|
|
99
|
+
tooltipContent: string | null;
|
|
94
100
|
}>, "many">;
|
|
95
101
|
sortOrder: import("zod").ZodNumber;
|
|
96
102
|
isActive: import("zod").ZodBoolean;
|
|
@@ -115,6 +121,7 @@ export declare const planSchema: import("zod").ZodObject<{
|
|
|
115
121
|
features: {
|
|
116
122
|
id: string;
|
|
117
123
|
description: string;
|
|
124
|
+
tooltipContent: string | null;
|
|
118
125
|
}[];
|
|
119
126
|
sortOrder: number;
|
|
120
127
|
isActive: boolean;
|
|
@@ -139,6 +146,7 @@ export declare const planSchema: import("zod").ZodObject<{
|
|
|
139
146
|
features: {
|
|
140
147
|
id: string;
|
|
141
148
|
description: string;
|
|
149
|
+
tooltipContent: string | null;
|
|
142
150
|
}[];
|
|
143
151
|
sortOrder: number;
|
|
144
152
|
isActive: boolean;
|