lancer-shared 1.2.256 → 1.2.258
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 +14 -1
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +14 -1
- package/dist/bundle.esm.js.map +1 -1
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +11 -11
- package/dist/schemas/golden-dataset/sample.d.ts +3 -3
- package/dist/schemas/lead/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -6811,6 +6811,7 @@ const getCampaignLeadsRequestQuerySchema = z.object({
|
|
|
6811
6811
|
cursor: z.string().optional(),
|
|
6812
6812
|
limit: z.number().default(20).optional(),
|
|
6813
6813
|
status: getCampaignLeadsStatusEnum.optional(),
|
|
6814
|
+
campaignId: z.string().optional(),
|
|
6814
6815
|
});
|
|
6815
6816
|
const getCampaignLeadsResponseSchema = z.object({
|
|
6816
6817
|
data: z.array(leadSchema),
|
|
@@ -7366,6 +7367,10 @@ const campaignNotificationType = z.enum([
|
|
|
7366
7367
|
'accountDisconnected',
|
|
7367
7368
|
'biddingWarning',
|
|
7368
7369
|
'boostAboveMaxConnects',
|
|
7370
|
+
'jobNoLongerAvailable',
|
|
7371
|
+
'privateJob',
|
|
7372
|
+
'jobAlreadyBiddedOn',
|
|
7373
|
+
'biddingFailed',
|
|
7369
7374
|
]);
|
|
7370
7375
|
const chatbotChannelSchema = z.object({
|
|
7371
7376
|
id: z.string(),
|
|
@@ -7422,6 +7427,10 @@ const CAMPAIGN_NOTIFICATION_TYPES = {
|
|
|
7422
7427
|
accountDisconnected: 'Account Disconnected',
|
|
7423
7428
|
biddingWarning: 'Bidding Warning',
|
|
7424
7429
|
boostAboveMaxConnects: 'Boost Above Max Connects',
|
|
7430
|
+
jobNoLongerAvailable: 'Job No Longer Available',
|
|
7431
|
+
privateJob: 'Private Job',
|
|
7432
|
+
jobAlreadyBiddedOn: 'Job Already Bidded On',
|
|
7433
|
+
biddingFailed: 'Bidding Failed',
|
|
7425
7434
|
};
|
|
7426
7435
|
const CAMPAIGN_NOTIFICATION_SETTINGS = {
|
|
7427
7436
|
suitableLead: 'When Lancer determines a job is suitable for your company',
|
|
@@ -7432,6 +7441,10 @@ const CAMPAIGN_NOTIFICATION_SETTINGS = {
|
|
|
7432
7441
|
accountDisconnected: 'When there is an issue with your Upwork Bidder account',
|
|
7433
7442
|
biddingWarning: 'When there is a bidding warning',
|
|
7434
7443
|
boostAboveMaxConnects: 'When there is a boost above max connects',
|
|
7444
|
+
jobNoLongerAvailable: 'When a job is no longer available',
|
|
7445
|
+
privateJob: 'When a job is private',
|
|
7446
|
+
jobAlreadyBiddedOn: 'When a job is already bidded on',
|
|
7447
|
+
biddingFailed: 'When a bidding fails',
|
|
7435
7448
|
};
|
|
7436
7449
|
|
|
7437
7450
|
const campaignCountByStatusSchema = z.object({
|
|
@@ -8450,7 +8463,7 @@ const createSampleSchema = z.object({
|
|
|
8450
8463
|
});
|
|
8451
8464
|
const getSamplesRequestSchema = z.object({
|
|
8452
8465
|
organizationId: z.string(),
|
|
8453
|
-
campaignId: z.string(),
|
|
8466
|
+
campaignId: z.string().optional(),
|
|
8454
8467
|
leadIds: z.array(z.string()),
|
|
8455
8468
|
});
|
|
8456
8469
|
const updateSampleSchema = z.object({
|