lancer-shared 1.2.320 → 1.2.322
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 -0
- 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/constants/routes.d.ts +1 -0
- package/dist/schemas/account/bidder-account.d.ts +7 -0
- package/dist/schemas/chat/index.d.ts +220 -0
- package/dist/schemas/lead/index.d.ts +10 -10
- package/dist/schemas/scraper/scrape-payload.d.ts +5 -0
- package/dist/schemas/upwork-talent/index.d.ts +2 -2
- package/package.json +4 -2
package/dist/bundle.cjs.js
CHANGED
|
@@ -6672,6 +6672,7 @@ const bidderAccountSchema = z.object({
|
|
|
6672
6672
|
roomsRefreshedAt: z.number().nullable(),
|
|
6673
6673
|
userId: z.string().nullable(),
|
|
6674
6674
|
connectingToChatStartedAt: z.number().nullable(),
|
|
6675
|
+
shouldRefetchAllRooms: z.boolean().nullable(),
|
|
6675
6676
|
});
|
|
6676
6677
|
const connectUpworkAccountSchema = z.object({
|
|
6677
6678
|
email: z.string().email(),
|
|
@@ -8751,6 +8752,7 @@ const syncProposalsStatusRequestPayloadSchema = z.object({
|
|
|
8751
8752
|
});
|
|
8752
8753
|
|
|
8753
8754
|
const roomSchema = z.object({
|
|
8755
|
+
id: z.string(),
|
|
8754
8756
|
roomId: z.string(),
|
|
8755
8757
|
roomName: z.string(),
|
|
8756
8758
|
topic: z.string(),
|
|
@@ -8780,6 +8782,7 @@ const roomSchema = z.object({
|
|
|
8780
8782
|
lastChecked: z.number().optional(),
|
|
8781
8783
|
hasNewMessages: z.boolean().optional(),
|
|
8782
8784
|
updatedAt: z.number().optional(),
|
|
8785
|
+
lastFetchedAt: z.number().optional(),
|
|
8783
8786
|
});
|
|
8784
8787
|
const roomsMetadataSchema = z.object({
|
|
8785
8788
|
accountId: z.string(),
|
|
@@ -8797,6 +8800,15 @@ const roomMessageSchema = z
|
|
|
8797
8800
|
senderName: z.string().optional(),
|
|
8798
8801
|
})
|
|
8799
8802
|
.passthrough();
|
|
8803
|
+
const getRoomsResponseSchema = z.object({
|
|
8804
|
+
data: z.array(roomSchema),
|
|
8805
|
+
pagination: z.object({
|
|
8806
|
+
hasMore: z.boolean(),
|
|
8807
|
+
nextCursor: z.string().nullable(),
|
|
8808
|
+
limit: z.number(),
|
|
8809
|
+
total: z.number(),
|
|
8810
|
+
}),
|
|
8811
|
+
});
|
|
8800
8812
|
const roomTagSchema = z.object({
|
|
8801
8813
|
id: z.string(),
|
|
8802
8814
|
name: z.string(),
|
|
@@ -15661,6 +15673,7 @@ const ROUTES = {
|
|
|
15661
15673
|
CONNECT_ACCOUNT: (organizationId, bidderAccountId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/chat/connect-account`,
|
|
15662
15674
|
ROOMS: (id, bidderAccountId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms`,
|
|
15663
15675
|
ROOM: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}`,
|
|
15676
|
+
REFRESH_ROOM: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/refresh`,
|
|
15664
15677
|
SEND_MESSAGE: (id, bidderAccountId, roomId) => `organizations/${id}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/send-message`,
|
|
15665
15678
|
REFRESH_ROOMS: (organizationId, bidderAccountId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/chat/refresh-rooms`,
|
|
15666
15679
|
CREATE_ZOOM_MEETING: (organizationId, bidderAccountId, roomId) => `organizations/${organizationId}/bidder-accounts/${bidderAccountId}/rooms/${roomId}/create-zoom-meeting`,
|
|
@@ -24670,6 +24683,7 @@ exports.getNextStatus = getNextStatus;
|
|
|
24670
24683
|
exports.getOrganizationLeadsRequestQuerySchema = getOrganizationLeadsRequestQuerySchema;
|
|
24671
24684
|
exports.getOrganizationLeadsStatusEnum = getOrganizationLeadsStatusEnum;
|
|
24672
24685
|
exports.getPreviousStatus = getPreviousStatus;
|
|
24686
|
+
exports.getRoomsResponseSchema = getRoomsResponseSchema;
|
|
24673
24687
|
exports.getRouteWithoutAdminPrefix = getRouteWithoutAdminPrefix;
|
|
24674
24688
|
exports.getSamplesRequestSchema = getSamplesRequestSchema;
|
|
24675
24689
|
exports.getTop10CategoriesByAvgHourlyBudgetResponseSchema = getTop10CategoriesByAvgHourlyBudgetResponseSchema;
|