lancer-shared 1.2.154 → 1.2.155
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
|
},
|
|
@@ -12575,6 +12576,15 @@ const acceptUpworkInvitationResponseSchema = z.object({
|
|
|
12575
12576
|
photoUrl: z.string(),
|
|
12576
12577
|
contractors: z.array(bidderAccountAgencyContractorSchema),
|
|
12577
12578
|
});
|
|
12579
|
+
const reconnectBidderAccountRequestBodySchema = z.object({
|
|
12580
|
+
organizationId: z.string(),
|
|
12581
|
+
bidderAccountId: z.string(),
|
|
12582
|
+
});
|
|
12583
|
+
const reconnectBidderAccountResponseSchema = z.object({
|
|
12584
|
+
agencyName: z.string(),
|
|
12585
|
+
photoUrl: z.string(),
|
|
12586
|
+
contractors: z.array(bidderAccountAgencyContractorSchema),
|
|
12587
|
+
});
|
|
12578
12588
|
|
|
12579
12589
|
class BidderAccountAlreadyConnectedException extends Error {
|
|
12580
12590
|
code = 'BIDDER_ACCOUNT_ALREADY_CONNECTED';
|
|
@@ -13003,6 +13013,9 @@ const upworkAccountConnectStatusSchema = z.union([
|
|
|
13003
13013
|
z.literal('processing'),
|
|
13004
13014
|
z.literal('connected'),
|
|
13005
13015
|
z.literal('failed'),
|
|
13016
|
+
z.literal('reconnecting'),
|
|
13017
|
+
z.literal('reconnected'),
|
|
13018
|
+
z.literal('reconnect_failed'),
|
|
13006
13019
|
]);
|
|
13007
13020
|
const upworkAccountConnectSchema = z.object({
|
|
13008
13021
|
status: upworkAccountConnectStatusSchema.nullable(),
|
|
@@ -14990,6 +15003,8 @@ exports.puppeteerConnectionErrorException = puppeteerConnectionErrorException;
|
|
|
14990
15003
|
exports.questionAnswerPairSchema = questionAnswerPairSchema;
|
|
14991
15004
|
exports.questionPairNotMatchingException = questionPairNotMatchingException;
|
|
14992
15005
|
exports.questionRulesSchema = questionRulesSchema;
|
|
15006
|
+
exports.reconnectBidderAccountRequestBodySchema = reconnectBidderAccountRequestBodySchema;
|
|
15007
|
+
exports.reconnectBidderAccountResponseSchema = reconnectBidderAccountResponseSchema;
|
|
14993
15008
|
exports.refreshRotatingProxiesRequestBodySchema = refreshRotatingProxiesRequestBodySchema;
|
|
14994
15009
|
exports.regionEnum = regionEnum;
|
|
14995
15010
|
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
|
};
|
|
@@ -527,6 +527,44 @@ export declare const acceptUpworkInvitationResponseSchema: z.ZodObject<{
|
|
|
527
527
|
agencyName: string;
|
|
528
528
|
photoUrl: string;
|
|
529
529
|
}>;
|
|
530
|
+
export declare const reconnectBidderAccountRequestBodySchema: z.ZodObject<{
|
|
531
|
+
organizationId: z.ZodString;
|
|
532
|
+
bidderAccountId: z.ZodString;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
organizationId: string;
|
|
535
|
+
bidderAccountId: string;
|
|
536
|
+
}, {
|
|
537
|
+
organizationId: string;
|
|
538
|
+
bidderAccountId: string;
|
|
539
|
+
}>;
|
|
540
|
+
export declare const reconnectBidderAccountResponseSchema: z.ZodObject<{
|
|
541
|
+
agencyName: z.ZodString;
|
|
542
|
+
photoUrl: z.ZodString;
|
|
543
|
+
contractors: z.ZodArray<z.ZodObject<{
|
|
544
|
+
name: z.ZodString;
|
|
545
|
+
specializedProfiles: z.ZodArray<z.ZodString, "many">;
|
|
546
|
+
}, "strip", z.ZodTypeAny, {
|
|
547
|
+
name: string;
|
|
548
|
+
specializedProfiles: string[];
|
|
549
|
+
}, {
|
|
550
|
+
name: string;
|
|
551
|
+
specializedProfiles: string[];
|
|
552
|
+
}>, "many">;
|
|
553
|
+
}, "strip", z.ZodTypeAny, {
|
|
554
|
+
contractors: {
|
|
555
|
+
name: string;
|
|
556
|
+
specializedProfiles: string[];
|
|
557
|
+
}[];
|
|
558
|
+
agencyName: string;
|
|
559
|
+
photoUrl: string;
|
|
560
|
+
}, {
|
|
561
|
+
contractors: {
|
|
562
|
+
name: string;
|
|
563
|
+
specializedProfiles: string[];
|
|
564
|
+
}[];
|
|
565
|
+
agencyName: string;
|
|
566
|
+
photoUrl: string;
|
|
567
|
+
}>;
|
|
530
568
|
export interface BidderAccount extends z.infer<typeof bidderAccountSchema> {
|
|
531
569
|
proxy?: Proxy;
|
|
532
570
|
}
|
|
@@ -539,3 +577,5 @@ export type BidderAccountAgency = z.infer<typeof bidderAccountAgencySchema>;
|
|
|
539
577
|
export type BidderAccountAgencyContractor = z.infer<typeof bidderAccountAgencyContractorSchema>;
|
|
540
578
|
export type AcceptUpworkInvitation = z.infer<typeof acceptUpworkInvitationSchema>;
|
|
541
579
|
export type AcceptUpworkInvitationResponse = z.infer<typeof acceptUpworkInvitationResponseSchema>;
|
|
580
|
+
export type ReconnectBidderAccountRequestBody = z.infer<typeof reconnectBidderAccountRequestBodySchema>;
|
|
581
|
+
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;
|