lancer-shared 1.2.130 → 1.2.131
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
|
@@ -6555,6 +6555,7 @@ const ROUTES = {
|
|
|
6555
6555
|
BY_ID: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}`,
|
|
6556
6556
|
AVAILABLE_LANCER_PROVIDED_BIDDER_ACCOUNT: (id) => `organizations/${id}/bidder-accounts/available-lancer-provided`,
|
|
6557
6557
|
ACCEPT_UPWORK_INVITATION: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/accept-upwork-invitation`,
|
|
6558
|
+
CONNECTION: (id) => `organizations/${id}/bidder-account-connection/status`,
|
|
6558
6559
|
},
|
|
6559
6560
|
LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
|
|
6560
6561
|
UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
|
|
@@ -12504,6 +12505,7 @@ const bidderAccountSchema = z.object({
|
|
|
12504
12505
|
provider: bidderAccountProvider,
|
|
12505
12506
|
email: z.string().email(),
|
|
12506
12507
|
password: z.string(),
|
|
12508
|
+
isConnecting: z.boolean().nullable(),
|
|
12507
12509
|
securityQuestionAnswer: z.string().nullable(),
|
|
12508
12510
|
assignedOrganizations: z.array(z.string()),
|
|
12509
12511
|
googleOauthTokens: z.any().nullable(),
|
|
@@ -13238,10 +13240,10 @@ const bidConfigSchema = z.object({
|
|
|
13238
13240
|
specialisedProfile: z.string().nullable(),
|
|
13239
13241
|
});
|
|
13240
13242
|
const campaignStatusSchema = z.union([
|
|
13241
|
-
z.literal(
|
|
13242
|
-
z.literal(
|
|
13243
|
-
z.literal(
|
|
13244
|
-
z.literal(
|
|
13243
|
+
z.literal('active'),
|
|
13244
|
+
z.literal('draft'),
|
|
13245
|
+
z.literal('paused'),
|
|
13246
|
+
z.literal('error'),
|
|
13245
13247
|
]);
|
|
13246
13248
|
const campaignSchema = z.object({
|
|
13247
13249
|
id: z.string(),
|
|
@@ -13267,13 +13269,15 @@ const campaignSchema = z.object({
|
|
|
13267
13269
|
coverLetterTemplate: coverLetterTemplateSchema.nullable(),
|
|
13268
13270
|
});
|
|
13269
13271
|
const upworkAccountConnectStatusSchema = z.union([
|
|
13270
|
-
z.literal(
|
|
13271
|
-
z.literal(
|
|
13272
|
-
z.literal(
|
|
13272
|
+
z.literal('processing'),
|
|
13273
|
+
z.literal('connected'),
|
|
13274
|
+
z.literal('failed'),
|
|
13273
13275
|
]);
|
|
13274
13276
|
const upworkAccountConnectSchema = z.object({
|
|
13275
13277
|
status: upworkAccountConnectStatusSchema.nullable(),
|
|
13276
13278
|
error: z.string().nullable(),
|
|
13279
|
+
email: z.string().email().optional(),
|
|
13280
|
+
profilePhotoUrl: z.string().optional(),
|
|
13277
13281
|
});
|
|
13278
13282
|
const createCampaignSchema = campaignSchema.omit({
|
|
13279
13283
|
id: true,
|
|
@@ -136,6 +136,7 @@ export declare const ROUTES: {
|
|
|
136
136
|
readonly BY_ID: (id: string, bidderId: string) => string;
|
|
137
137
|
readonly AVAILABLE_LANCER_PROVIDED_BIDDER_ACCOUNT: (id: string) => string;
|
|
138
138
|
readonly ACCEPT_UPWORK_INVITATION: (id: string, bidderId: string) => string;
|
|
139
|
+
readonly CONNECTION: (id: string) => string;
|
|
139
140
|
};
|
|
140
141
|
readonly LEADS_BY_JOB_ID: (organizationId: string, jobId: string) => string;
|
|
141
142
|
readonly UPDATE_CAMPAIGN_PRIORITY: (organizationId: string) => string;
|
|
@@ -22,6 +22,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
22
22
|
provider: z.ZodEnum<["user-provided", "lancer-provided"]>;
|
|
23
23
|
email: z.ZodString;
|
|
24
24
|
password: z.ZodString;
|
|
25
|
+
isConnecting: z.ZodNullable<z.ZodBoolean>;
|
|
25
26
|
securityQuestionAnswer: z.ZodNullable<z.ZodString>;
|
|
26
27
|
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
27
28
|
googleOauthTokens: z.ZodNullable<z.ZodAny>;
|
|
@@ -57,6 +58,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
57
58
|
provider: "user-provided" | "lancer-provided";
|
|
58
59
|
email: string;
|
|
59
60
|
password: string;
|
|
61
|
+
isConnecting: boolean | null;
|
|
60
62
|
securityQuestionAnswer: string | null;
|
|
61
63
|
assignedOrganizations: string[];
|
|
62
64
|
lastUsed: number | null;
|
|
@@ -81,6 +83,7 @@ export declare const bidderAccountSchema: z.ZodObject<{
|
|
|
81
83
|
provider: "user-provided" | "lancer-provided";
|
|
82
84
|
email: string;
|
|
83
85
|
password: string;
|
|
86
|
+
isConnecting: boolean | null;
|
|
84
87
|
securityQuestionAnswer: string | null;
|
|
85
88
|
assignedOrganizations: string[];
|
|
86
89
|
lastUsed: number | null;
|
|
@@ -105,6 +108,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
105
108
|
provider: z.ZodEnum<["user-provided", "lancer-provided"]>;
|
|
106
109
|
email: z.ZodString;
|
|
107
110
|
password: z.ZodString;
|
|
111
|
+
isConnecting: z.ZodNullable<z.ZodBoolean>;
|
|
108
112
|
securityQuestionAnswer: z.ZodNullable<z.ZodString>;
|
|
109
113
|
assignedOrganizations: z.ZodArray<z.ZodString, "many">;
|
|
110
114
|
googleOauthTokens: z.ZodNullable<z.ZodAny>;
|
|
@@ -174,6 +178,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
174
178
|
provider: z.ZodOptional<z.ZodEnum<["user-provided", "lancer-provided"]>>;
|
|
175
179
|
email: z.ZodOptional<z.ZodString>;
|
|
176
180
|
password: z.ZodOptional<z.ZodString>;
|
|
181
|
+
isConnecting: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
177
182
|
securityQuestionAnswer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
183
|
assignedOrganizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
179
184
|
googleOauthTokens: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
@@ -207,6 +212,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
207
212
|
provider?: "user-provided" | "lancer-provided" | undefined;
|
|
208
213
|
email?: string | undefined;
|
|
209
214
|
password?: string | undefined;
|
|
215
|
+
isConnecting?: boolean | null | undefined;
|
|
210
216
|
securityQuestionAnswer?: string | null | undefined;
|
|
211
217
|
assignedOrganizations?: string[] | undefined;
|
|
212
218
|
googleOauthTokens?: any;
|
|
@@ -230,6 +236,7 @@ export declare const updateBidderAccountSchema: z.ZodObject<{
|
|
|
230
236
|
provider?: "user-provided" | "lancer-provided" | undefined;
|
|
231
237
|
email?: string | undefined;
|
|
232
238
|
password?: string | undefined;
|
|
239
|
+
isConnecting?: boolean | null | undefined;
|
|
233
240
|
securityQuestionAnswer?: string | null | undefined;
|
|
234
241
|
assignedOrganizations?: string[] | undefined;
|
|
235
242
|
googleOauthTokens?: any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { infer, z } from
|
|
2
|
-
import { JobFilters } from
|
|
3
|
-
import { CampaignExpenses } from
|
|
1
|
+
import { infer, z } from 'zod';
|
|
2
|
+
import { JobFilters } from '../job';
|
|
3
|
+
import { CampaignExpenses } from './campaign-expenses';
|
|
4
4
|
export declare const bidConfigSchema: z.ZodObject<{
|
|
5
5
|
agencyName: z.ZodNullable<z.ZodString>;
|
|
6
6
|
bidderId: z.ZodNullable<z.ZodString>;
|
|
@@ -481,12 +481,18 @@ export declare const upworkAccountConnectStatusSchema: z.ZodUnion<[z.ZodLiteral<
|
|
|
481
481
|
export declare const upworkAccountConnectSchema: z.ZodObject<{
|
|
482
482
|
status: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">]>>;
|
|
483
483
|
error: z.ZodNullable<z.ZodString>;
|
|
484
|
+
email: z.ZodOptional<z.ZodString>;
|
|
485
|
+
profilePhotoUrl: z.ZodOptional<z.ZodString>;
|
|
484
486
|
}, "strip", z.ZodTypeAny, {
|
|
485
487
|
status: "processing" | "connected" | "failed" | null;
|
|
486
488
|
error: string | null;
|
|
489
|
+
email?: string | undefined;
|
|
490
|
+
profilePhotoUrl?: string | undefined;
|
|
487
491
|
}, {
|
|
488
492
|
status: "processing" | "connected" | "failed" | null;
|
|
489
493
|
error: string | null;
|
|
494
|
+
email?: string | undefined;
|
|
495
|
+
profilePhotoUrl?: string | undefined;
|
|
490
496
|
}>;
|
|
491
497
|
export type UpworkAccountConnectStatus = z.infer<typeof upworkAccountConnectStatusSchema>;
|
|
492
498
|
export type UpworkAccountConnect = z.infer<typeof upworkAccountConnectSchema>;
|