lancer-shared 1.2.321 → 1.2.323
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 +22 -5
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +21 -6
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/chat.d.ts +3 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/account/bidder-account.d.ts +10 -10
- package/dist/schemas/account/scraper-account.d.ts +10 -10
- package/dist/schemas/agent/index.d.ts +50 -50
- package/dist/schemas/bidder/bid.d.ts +352 -352
- package/dist/schemas/campaign/campaign-analytics.d.ts +78 -78
- package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
- package/dist/schemas/chat/index.d.ts +145 -66
- package/dist/schemas/dashboard/index.d.ts +18 -18
- package/dist/schemas/golden-dataset/sample.d.ts +4 -4
- package/dist/schemas/job/index.d.ts +32 -32
- package/dist/schemas/job/nuxt.d.ts +6 -6
- package/dist/schemas/lead/index.d.ts +165 -165
- package/dist/schemas/lead/lead-status.d.ts +2 -2
- package/dist/schemas/logger/feed/feed-job-enrich.d.ts +30 -30
- package/dist/schemas/logger/log-event.d.ts +20 -20
- package/dist/schemas/logger/scraper-events.d.ts +4 -4
- package/dist/schemas/organization/organization-leads.d.ts +2 -2
- package/dist/schemas/plan/index.d.ts +2 -2
- package/dist/schemas/proxy/proxy.d.ts +3 -3
- package/dist/schemas/scraper/scrape-payload.d.ts +44 -44
- package/dist/schemas/scraper/scrape-result.d.ts +28 -28
- package/dist/schemas/transaction/index.d.ts +2 -2
- package/dist/schemas/upwork-talent/index.d.ts +2 -2
- package/dist/schemas/usage/index.d.ts +2 -2
- package/dist/schemas/usage-event/index.d.ts +6 -6
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const ROOM_EXTENDED_TYPE_MAP = {
|
|
4
|
+
proposal: ['fl-proposal'],
|
|
5
|
+
dm: ['direct_message'],
|
|
6
|
+
invite: ['client-invitation', 'direct_hire_FL_profile'],
|
|
7
|
+
};
|
|
8
|
+
const ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE = new Set([
|
|
9
|
+
'proposal',
|
|
10
|
+
]);
|
|
11
|
+
|
|
3
12
|
const defaultQuestions = [
|
|
4
13
|
{
|
|
5
14
|
question: 'What is your company website URL?',
|
|
@@ -8751,6 +8760,11 @@ const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
|
8751
8760
|
bidderAccountId: z.string(),
|
|
8752
8761
|
});
|
|
8753
8762
|
|
|
8763
|
+
const roomNoteSchema = z.object({
|
|
8764
|
+
note: z.string().nullable(),
|
|
8765
|
+
createdAt: z.number(),
|
|
8766
|
+
updatedAt: z.number(),
|
|
8767
|
+
});
|
|
8754
8768
|
const roomSchema = z.object({
|
|
8755
8769
|
id: z.string(),
|
|
8756
8770
|
roomId: z.string(),
|
|
@@ -8782,6 +8796,9 @@ const roomSchema = z.object({
|
|
|
8782
8796
|
lastChecked: z.number().optional(),
|
|
8783
8797
|
hasNewMessages: z.boolean().optional(),
|
|
8784
8798
|
updatedAt: z.number().optional(),
|
|
8799
|
+
lastFetchedAt: z.number().optional(),
|
|
8800
|
+
roomTypeExtended: z.string().optional(),
|
|
8801
|
+
roomNote: roomNoteSchema.optional(),
|
|
8785
8802
|
});
|
|
8786
8803
|
const roomsMetadataSchema = z.object({
|
|
8787
8804
|
accountId: z.string(),
|
|
@@ -8797,6 +8814,8 @@ const roomMessageSchema = z
|
|
|
8797
8814
|
userName: z.string().optional(),
|
|
8798
8815
|
orgId: z.string().optional(),
|
|
8799
8816
|
senderName: z.string().optional(),
|
|
8817
|
+
attachmentUrl: z.string().optional(),
|
|
8818
|
+
startedPreparingDownloadAt: z.number().optional(),
|
|
8800
8819
|
})
|
|
8801
8820
|
.passthrough();
|
|
8802
8821
|
const getRoomsResponseSchema = z.object({
|
|
@@ -8822,11 +8841,6 @@ const createRoomTagRequestBodySchema = z.object({
|
|
|
8822
8841
|
const assignRoomTagsRequestBodySchema = z.object({
|
|
8823
8842
|
tagIds: z.array(z.string()),
|
|
8824
8843
|
});
|
|
8825
|
-
const roomNoteSchema = z.object({
|
|
8826
|
-
note: z.string().nullable(),
|
|
8827
|
-
createdAt: z.number(),
|
|
8828
|
-
updatedAt: z.number(),
|
|
8829
|
-
});
|
|
8830
8844
|
const updateRoomNotesRequestBodySchema = z.object({
|
|
8831
8845
|
note: z.string(),
|
|
8832
8846
|
});
|
|
@@ -15672,6 +15686,7 @@ const ROUTES = {
|
|
|
15672
15686
|
CONNECT_ACCOUNT: (organizationId, bidderAccountId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/chat/connect-account`,
|
|
15673
15687
|
ROOMS: (id, bidderAccountId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms`,
|
|
15674
15688
|
ROOM: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}`,
|
|
15689
|
+
REFRESH_ROOM: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/refresh`,
|
|
15675
15690
|
SEND_MESSAGE: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/send-message`,
|
|
15676
15691
|
REFRESH_ROOMS: (organizationId, bidderAccountId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/chat/refresh-rooms`,
|
|
15677
15692
|
CREATE_ZOOM_MEETING: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/create-zoom-meeting`,
|
|
@@ -24507,6 +24522,8 @@ exports.ProposalGenerationFailedException = ProposalGenerationFailedException;
|
|
|
24507
24522
|
exports.ProposalSubmitFailedException = ProposalSubmitFailedException;
|
|
24508
24523
|
exports.PuppeteerConnectionErrorException = PuppeteerConnectionErrorException;
|
|
24509
24524
|
exports.QuestionPairNotMatchingException = QuestionPairNotMatchingException;
|
|
24525
|
+
exports.ROOM_EXTENDED_TYPE_MAP = ROOM_EXTENDED_TYPE_MAP;
|
|
24526
|
+
exports.ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE = ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE;
|
|
24510
24527
|
exports.ROUTES = ROUTES;
|
|
24511
24528
|
exports.ScraperAccountProxyNotFoundException = ScraperAccountProxyNotFoundException;
|
|
24512
24529
|
exports.SearchFieldsSchema = SearchFieldsSchema;
|