lancer-shared 1.2.154 → 1.2.156
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
|
@@ -6556,6 +6556,7 @@ const ROUTES = {
|
|
|
6556
6556
|
BY_ID: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}`,
|
|
6557
6557
|
AVAILABLE_BIDDER_ACCOUNT: (id, region) => `organizations/${id}/bidder-accounts/available-bidder-account/${region}`,
|
|
6558
6558
|
ACCEPT_UPWORK_INVITATION: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/accept-upwork-invitation`,
|
|
6559
|
+
RECONNECT: (id, bidderId) => `organizations/${id}/bidder-accounts/${bidderId}/reconnect`,
|
|
6559
6560
|
CONNECTION: (id) => `organizations/${id}/bidder-account-connection/status`,
|
|
6560
6561
|
DISMISS_CONNECTION_ERROR: (id) => `organizations/${id}/bidder-account-connection/dismiss-connection-error`,
|
|
6561
6562
|
},
|
|
@@ -12545,6 +12546,8 @@ const createBidderAccountSchema = bidderAccountSchema
|
|
|
12545
12546
|
name: true,
|
|
12546
12547
|
agencies: true,
|
|
12547
12548
|
assignedOrganizations: true,
|
|
12549
|
+
multiLoginProfileId: true,
|
|
12550
|
+
proxyId: true,
|
|
12548
12551
|
region: true,
|
|
12549
12552
|
})
|
|
12550
12553
|
.extend({
|
|
@@ -12575,6 +12578,15 @@ const acceptUpworkInvitationResponseSchema = z.object({
|
|
|
12575
12578
|
photoUrl: z.string(),
|
|
12576
12579
|
contractors: z.array(bidderAccountAgencyContractorSchema),
|
|
12577
12580
|
});
|
|
12581
|
+
const reconnectBidderAccountRequestBodySchema = z.object({
|
|
12582
|
+
organizationId: z.string(),
|
|
12583
|
+
bidderAccountId: z.string(),
|
|
12584
|
+
});
|
|
12585
|
+
const reconnectBidderAccountResponseSchema = z.object({
|
|
12586
|
+
agencyName: z.string(),
|
|
12587
|
+
photoUrl: z.string(),
|
|
12588
|
+
contractors: z.array(bidderAccountAgencyContractorSchema),
|
|
12589
|
+
});
|
|
12578
12590
|
|
|
12579
12591
|
class BidderAccountAlreadyConnectedException extends Error {
|
|
12580
12592
|
code = 'BIDDER_ACCOUNT_ALREADY_CONNECTED';
|
|
@@ -13003,6 +13015,9 @@ const upworkAccountConnectStatusSchema = z.union([
|
|
|
13003
13015
|
z.literal('processing'),
|
|
13004
13016
|
z.literal('connected'),
|
|
13005
13017
|
z.literal('failed'),
|
|
13018
|
+
z.literal('reconnecting'),
|
|
13019
|
+
z.literal('reconnected'),
|
|
13020
|
+
z.literal('reconnect_failed'),
|
|
13006
13021
|
]);
|
|
13007
13022
|
const upworkAccountConnectSchema = z.object({
|
|
13008
13023
|
status: upworkAccountConnectStatusSchema.nullable(),
|
|
@@ -14990,6 +15005,8 @@ exports.puppeteerConnectionErrorException = puppeteerConnectionErrorException;
|
|
|
14990
15005
|
exports.questionAnswerPairSchema = questionAnswerPairSchema;
|
|
14991
15006
|
exports.questionPairNotMatchingException = questionPairNotMatchingException;
|
|
14992
15007
|
exports.questionRulesSchema = questionRulesSchema;
|
|
15008
|
+
exports.reconnectBidderAccountRequestBodySchema = reconnectBidderAccountRequestBodySchema;
|
|
15009
|
+
exports.reconnectBidderAccountResponseSchema = reconnectBidderAccountResponseSchema;
|
|
14993
15010
|
exports.refreshRotatingProxiesRequestBodySchema = refreshRotatingProxiesRequestBodySchema;
|
|
14994
15011
|
exports.regionEnum = regionEnum;
|
|
14995
15012
|
exports.regionMapping = regionMapping;
|
|
@@ -137,6 +137,7 @@ export declare const ROUTES: {
|
|
|
137
137
|
readonly BY_ID: (id: string, bidderId: string) => string;
|
|
138
138
|
readonly AVAILABLE_BIDDER_ACCOUNT: (id: string, region: string) => string;
|
|
139
139
|
readonly ACCEPT_UPWORK_INVITATION: (id: string, bidderId: string) => string;
|
|
140
|
+
readonly RECONNECT: (id: string, bidderId: string) => string;
|
|
140
141
|
readonly CONNECTION: (id: string) => string;
|
|
141
142
|
readonly DISMISS_CONNECTION_ERROR: (id: string) => string;
|
|
142
143
|
};
|
|
@@ -199,7 +199,7 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
199
199
|
updatedAt: z.ZodNumber;
|
|
200
200
|
region: z.ZodEnum<["all", "Worldwide", "UKOnly", "USOnly"]>;
|
|
201
201
|
isProtected: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
-
}, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "profilePhotoUrl" | "agencies" | "region">, {
|
|
202
|
+
}, "name" | "provider" | "email" | "password" | "securityQuestionAnswer" | "assignedOrganizations" | "multiLoginProfileId" | "proxyId" | "profilePhotoUrl" | "agencies" | "region">, {
|
|
203
203
|
proxyCountry: z.ZodNullable<z.ZodEnum<["US", "CA", "GB", "AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "NO", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SK", "SI", "SB", "SO", "ZA", "GS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"]>>;
|
|
204
204
|
}>, "strip", z.ZodTypeAny, {
|
|
205
205
|
name: string | null;
|
|
@@ -208,6 +208,8 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
208
208
|
password: string;
|
|
209
209
|
securityQuestionAnswer: string | null;
|
|
210
210
|
assignedOrganizations: string[];
|
|
211
|
+
multiLoginProfileId: string | null;
|
|
212
|
+
proxyId: string | null;
|
|
211
213
|
profilePhotoUrl: string | null;
|
|
212
214
|
agencies: {
|
|
213
215
|
name: string;
|
|
@@ -227,6 +229,8 @@ export declare const createBidderAccountSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
227
229
|
password: string;
|
|
228
230
|
securityQuestionAnswer: string | null;
|
|
229
231
|
assignedOrganizations: string[];
|
|
232
|
+
multiLoginProfileId: string | null;
|
|
233
|
+
proxyId: string | null;
|
|
230
234
|
profilePhotoUrl: string | null;
|
|
231
235
|
agencies: {
|
|
232
236
|
name: string;
|
|
@@ -527,6 +531,44 @@ export declare const acceptUpworkInvitationResponseSchema: z.ZodObject<{
|
|
|
527
531
|
agencyName: string;
|
|
528
532
|
photoUrl: string;
|
|
529
533
|
}>;
|
|
534
|
+
export declare const reconnectBidderAccountRequestBodySchema: z.ZodObject<{
|
|
535
|
+
organizationId: z.ZodString;
|
|
536
|
+
bidderAccountId: z.ZodString;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
organizationId: string;
|
|
539
|
+
bidderAccountId: string;
|
|
540
|
+
}, {
|
|
541
|
+
organizationId: string;
|
|
542
|
+
bidderAccountId: string;
|
|
543
|
+
}>;
|
|
544
|
+
export declare const reconnectBidderAccountResponseSchema: z.ZodObject<{
|
|
545
|
+
agencyName: z.ZodString;
|
|
546
|
+
photoUrl: z.ZodString;
|
|
547
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
548
|
+
name: z.ZodString;
|
|
549
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
550
|
+
}, "strip", z.ZodTypeAny, {
|
|
551
|
+
name: string;
|
|
552
|
+
specializedProfiles: string[];
|
|
553
|
+
}, {
|
|
554
|
+
name: string;
|
|
555
|
+
specializedProfiles: string[];
|
|
556
|
+
}>, "many">;
|
|
557
|
+
}, "strip", z.ZodTypeAny, {
|
|
558
|
+
contractors: {
|
|
559
|
+
name: string;
|
|
560
|
+
specializedProfiles: string[];
|
|
561
|
+
}[];
|
|
562
|
+
agencyName: string;
|
|
563
|
+
photoUrl: string;
|
|
564
|
+
}, {
|
|
565
|
+
contractors: {
|
|
566
|
+
name: string;
|
|
567
|
+
specializedProfiles: string[];
|
|
568
|
+
}[];
|
|
569
|
+
agencyName: string;
|
|
570
|
+
photoUrl: string;
|
|
571
|
+
}>;
|
|
530
572
|
export interface BidderAccount extends z.infer<typeof bidderAccountSchema> {
|
|
531
573
|
proxy?: Proxy;
|
|
532
574
|
}
|
|
@@ -539,3 +581,5 @@ export type BidderAccountAgency = z.infer<typeof bidderAccountAgencySchema>;
|
|
|
539
581
|
export type BidderAccountAgencyContractor = z.infer<typeof bidderAccountAgencyContractorSchema>;
|
|
540
582
|
export type AcceptUpworkInvitation = z.infer<typeof acceptUpworkInvitationSchema>;
|
|
541
583
|
export type AcceptUpworkInvitationResponse = z.infer<typeof acceptUpworkInvitationResponseSchema>;
|
|
584
|
+
export type ReconnectBidderAccountRequestBody = z.infer<typeof reconnectBidderAccountRequestBodySchema>;
|
|
585
|
+
export type ReconnectBidderAccountResponse = z.infer<typeof reconnectBidderAccountResponseSchema>;
|
|
@@ -494,19 +494,19 @@ export declare const campaignSchema: z.ZodObject<{
|
|
|
494
494
|
boostingThreshold?: number | null | undefined;
|
|
495
495
|
biddingDelayInMinutes?: number | undefined;
|
|
496
496
|
}>;
|
|
497
|
-
export declare const upworkAccountConnectStatusSchema: z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">]>;
|
|
497
|
+
export declare const upworkAccountConnectStatusSchema: z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">, z.ZodLiteral<"reconnecting">, z.ZodLiteral<"reconnected">, z.ZodLiteral<"reconnect_failed">]>;
|
|
498
498
|
export declare const upworkAccountConnectSchema: z.ZodObject<{
|
|
499
|
-
status: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">]>>;
|
|
499
|
+
status: z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"processing">, z.ZodLiteral<"connected">, z.ZodLiteral<"failed">, z.ZodLiteral<"reconnecting">, z.ZodLiteral<"reconnected">, z.ZodLiteral<"reconnect_failed">]>>;
|
|
500
500
|
error: z.ZodNullable<z.ZodString>;
|
|
501
501
|
email: z.ZodOptional<z.ZodString>;
|
|
502
502
|
profilePhotoUrl: z.ZodOptional<z.ZodString>;
|
|
503
503
|
}, "strip", z.ZodTypeAny, {
|
|
504
|
-
status: "processing" | "connected" | "failed" | null;
|
|
504
|
+
status: "processing" | "connected" | "failed" | "reconnecting" | "reconnected" | "reconnect_failed" | null;
|
|
505
505
|
error: string | null;
|
|
506
506
|
email?: string | undefined;
|
|
507
507
|
profilePhotoUrl?: string | undefined;
|
|
508
508
|
}, {
|
|
509
|
-
status: "processing" | "connected" | "failed" | null;
|
|
509
|
+
status: "processing" | "connected" | "failed" | "reconnecting" | "reconnected" | "reconnect_failed" | null;
|
|
510
510
|
error: string | null;
|
|
511
511
|
email?: string | undefined;
|
|
512
512
|
profilePhotoUrl?: string | undefined;
|