lancer-shared 1.2.129 → 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
|
@@ -6429,6 +6429,9 @@ const ROUTES = {
|
|
|
6429
6429
|
PROMPTS: {
|
|
6430
6430
|
BASE: 'system/prompts',
|
|
6431
6431
|
},
|
|
6432
|
+
UPWORK_INVITATIONS: {
|
|
6433
|
+
OAUTH_TOKENS: 'system/upwork-invitations-oauth',
|
|
6434
|
+
},
|
|
6432
6435
|
},
|
|
6433
6436
|
EVENTS: {
|
|
6434
6437
|
BASE: 'events',
|
|
@@ -6510,6 +6513,9 @@ const ROUTES = {
|
|
|
6510
6513
|
TEST_SUITABILITY: 'admin/agent/test-suitability',
|
|
6511
6514
|
TEST_PROPOSAL: 'admin/agent/test-proposal',
|
|
6512
6515
|
},
|
|
6516
|
+
UPWORK_INVITATIONS_CONFIG: {
|
|
6517
|
+
BASE: 'admin/upwork-invitation-bucket-account',
|
|
6518
|
+
},
|
|
6513
6519
|
},
|
|
6514
6520
|
BID: {
|
|
6515
6521
|
BASE: 'bid',
|
|
@@ -6549,6 +6555,7 @@ const ROUTES = {
|
|
|
6549
6555
|
BY_ID: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}`,
|
|
6550
6556
|
AVAILABLE_LANCER_PROVIDED_BIDDER_ACCOUNT: (id) => `organizations/${id}/bidder-accounts/available-lancer-provided`,
|
|
6551
6557
|
ACCEPT_UPWORK_INVITATION: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/accept-upwork-invitation`,
|
|
6558
|
+
CONNECTION: (id) => `organizations/${id}/bidder-account-connection/status`,
|
|
6552
6559
|
},
|
|
6553
6560
|
LEADS_BY_JOB_ID: (organizationId, jobId) => `organizations/${organizationId}/leads/${jobId}`,
|
|
6554
6561
|
UPDATE_CAMPAIGN_PRIORITY: (organizationId) => `organizations/${organizationId}/update-campaign-priority`,
|
|
@@ -12498,6 +12505,7 @@ const bidderAccountSchema = z.object({
|
|
|
12498
12505
|
provider: bidderAccountProvider,
|
|
12499
12506
|
email: z.string().email(),
|
|
12500
12507
|
password: z.string(),
|
|
12508
|
+
isConnecting: z.boolean().nullable(),
|
|
12501
12509
|
securityQuestionAnswer: z.string().nullable(),
|
|
12502
12510
|
assignedOrganizations: z.array(z.string()),
|
|
12503
12511
|
googleOauthTokens: z.any().nullable(),
|
|
@@ -13232,10 +13240,10 @@ const bidConfigSchema = z.object({
|
|
|
13232
13240
|
specialisedProfile: z.string().nullable(),
|
|
13233
13241
|
});
|
|
13234
13242
|
const campaignStatusSchema = z.union([
|
|
13235
|
-
z.literal(
|
|
13236
|
-
z.literal(
|
|
13237
|
-
z.literal(
|
|
13238
|
-
z.literal(
|
|
13243
|
+
z.literal('active'),
|
|
13244
|
+
z.literal('draft'),
|
|
13245
|
+
z.literal('paused'),
|
|
13246
|
+
z.literal('error'),
|
|
13239
13247
|
]);
|
|
13240
13248
|
const campaignSchema = z.object({
|
|
13241
13249
|
id: z.string(),
|
|
@@ -13261,13 +13269,15 @@ const campaignSchema = z.object({
|
|
|
13261
13269
|
coverLetterTemplate: coverLetterTemplateSchema.nullable(),
|
|
13262
13270
|
});
|
|
13263
13271
|
const upworkAccountConnectStatusSchema = z.union([
|
|
13264
|
-
z.literal(
|
|
13265
|
-
z.literal(
|
|
13266
|
-
z.literal(
|
|
13272
|
+
z.literal('processing'),
|
|
13273
|
+
z.literal('connected'),
|
|
13274
|
+
z.literal('failed'),
|
|
13267
13275
|
]);
|
|
13268
13276
|
const upworkAccountConnectSchema = z.object({
|
|
13269
13277
|
status: upworkAccountConnectStatusSchema.nullable(),
|
|
13270
13278
|
error: z.string().nullable(),
|
|
13279
|
+
email: z.string().email().optional(),
|
|
13280
|
+
profilePhotoUrl: z.string().optional(),
|
|
13271
13281
|
});
|
|
13272
13282
|
const createCampaignSchema = campaignSchema.omit({
|
|
13273
13283
|
id: true,
|
|
@@ -10,6 +10,9 @@ export declare const ROUTES: {
|
|
|
10
10
|
readonly PROMPTS: {
|
|
11
11
|
readonly BASE: "system/prompts";
|
|
12
12
|
};
|
|
13
|
+
readonly UPWORK_INVITATIONS: {
|
|
14
|
+
readonly OAUTH_TOKENS: "system/upwork-invitations-oauth";
|
|
15
|
+
};
|
|
13
16
|
};
|
|
14
17
|
readonly EVENTS: {
|
|
15
18
|
readonly BASE: "events";
|
|
@@ -91,6 +94,9 @@ export declare const ROUTES: {
|
|
|
91
94
|
readonly TEST_SUITABILITY: "admin/agent/test-suitability";
|
|
92
95
|
readonly TEST_PROPOSAL: "admin/agent/test-proposal";
|
|
93
96
|
};
|
|
97
|
+
readonly UPWORK_INVITATIONS_CONFIG: {
|
|
98
|
+
readonly BASE: "admin/upwork-invitation-bucket-account";
|
|
99
|
+
};
|
|
94
100
|
};
|
|
95
101
|
readonly BID: {
|
|
96
102
|
readonly BASE: "bid";
|
|
@@ -130,6 +136,7 @@ export declare const ROUTES: {
|
|
|
130
136
|
readonly BY_ID: (id: string, bidderId: string) => string;
|
|
131
137
|
readonly AVAILABLE_LANCER_PROVIDED_BIDDER_ACCOUNT: (id: string) => string;
|
|
132
138
|
readonly ACCEPT_UPWORK_INVITATION: (id: string, bidderId: string) => string;
|
|
139
|
+
readonly CONNECTION: (id: string) => string;
|
|
133
140
|
};
|
|
134
141
|
readonly LEADS_BY_JOB_ID: (organizationId: string, jobId: string) => string;
|
|
135
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>;
|