lancer-shared 1.2.322 → 1.2.324

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.
Files changed (33) hide show
  1. package/dist/bundle.cjs.js +26 -6
  2. package/dist/bundle.cjs.js.map +1 -1
  3. package/dist/bundle.esm.js +25 -7
  4. package/dist/bundle.esm.js.map +1 -1
  5. package/dist/constants/chat.d.ts +3 -0
  6. package/dist/constants/index.d.ts +1 -0
  7. package/dist/constants/routes.d.ts +1 -0
  8. package/dist/schemas/account/bidder-account.d.ts +10 -10
  9. package/dist/schemas/account/scraper-account.d.ts +10 -10
  10. package/dist/schemas/agent/index.d.ts +50 -50
  11. package/dist/schemas/bidder/bid.d.ts +352 -352
  12. package/dist/schemas/campaign/campaign-analytics.d.ts +78 -78
  13. package/dist/schemas/campaign/campaign-chat-bot.d.ts +4 -4
  14. package/dist/schemas/chat/index.d.ts +137 -66
  15. package/dist/schemas/dashboard/index.d.ts +18 -18
  16. package/dist/schemas/golden-dataset/sample.d.ts +4 -4
  17. package/dist/schemas/job/index.d.ts +32 -32
  18. package/dist/schemas/job/nuxt.d.ts +6 -6
  19. package/dist/schemas/lead/index.d.ts +165 -165
  20. package/dist/schemas/lead/lead-status.d.ts +2 -2
  21. package/dist/schemas/logger/feed/feed-job-enrich.d.ts +30 -30
  22. package/dist/schemas/logger/log-event.d.ts +20 -20
  23. package/dist/schemas/logger/scraper-events.d.ts +4 -4
  24. package/dist/schemas/organization/organization-leads.d.ts +2 -2
  25. package/dist/schemas/plan/index.d.ts +2 -2
  26. package/dist/schemas/proxy/proxy.d.ts +3 -3
  27. package/dist/schemas/scraper/scrape-payload.d.ts +44 -44
  28. package/dist/schemas/scraper/scrape-result.d.ts +28 -28
  29. package/dist/schemas/transaction/index.d.ts +2 -2
  30. package/dist/schemas/upwork-talent/index.d.ts +11 -3
  31. package/dist/schemas/usage/index.d.ts +2 -2
  32. package/dist/schemas/usage-event/index.d.ts +6 -6
  33. package/package.json +1 -1
@@ -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(),
@@ -8783,6 +8797,8 @@ const roomSchema = z.object({
8783
8797
  hasNewMessages: z.boolean().optional(),
8784
8798
  updatedAt: z.number().optional(),
8785
8799
  lastFetchedAt: z.number().optional(),
8800
+ roomTypeExtended: z.string().optional(),
8801
+ roomNote: roomNoteSchema.optional(),
8786
8802
  });
8787
8803
  const roomsMetadataSchema = z.object({
8788
8804
  accountId: z.string(),
@@ -8798,6 +8814,8 @@ const roomMessageSchema = z
8798
8814
  userName: z.string().optional(),
8799
8815
  orgId: z.string().optional(),
8800
8816
  senderName: z.string().optional(),
8817
+ attachmentUrl: z.string().optional(),
8818
+ startedPreparingDownloadAt: z.number().optional(),
8801
8819
  })
8802
8820
  .passthrough();
8803
8821
  const getRoomsResponseSchema = z.object({
@@ -8823,11 +8841,6 @@ const createRoomTagRequestBodySchema = z.object({
8823
8841
  const assignRoomTagsRequestBodySchema = z.object({
8824
8842
  tagIds: z.array(z.string()),
8825
8843
  });
8826
- const roomNoteSchema = z.object({
8827
- note: z.string().nullable(),
8828
- createdAt: z.number(),
8829
- updatedAt: z.number(),
8830
- });
8831
8844
  const updateRoomNotesRequestBodySchema = z.object({
8832
8845
  note: z.string(),
8833
8846
  });
@@ -9703,6 +9716,7 @@ const upworkTalentSchema = objectType({
9703
9716
  averageEarningsPerProjectWorldRank: numberType().nullable(),
9704
9717
  averageEarningsPerProjectCountryRank: numberType().nullable(),
9705
9718
  skillsWithRank: upworkTalentSkillWithRankSchema.array(),
9719
+ prevRecentEarnings: numberType().nullable(),
9706
9720
  });
9707
9721
  const upworkTalentSearchRequestSchema = objectType({
9708
9722
  page: numberType().nullable().optional(),
@@ -9711,7 +9725,10 @@ const upworkTalentSearchRequestSchema = objectType({
9711
9725
  sortOrder: z.enum(['asc', 'desc']).nullable().optional(),
9712
9726
  country: stringType().nullable().optional(),
9713
9727
  skill: stringType().nullable().optional(),
9714
- badge: z.enum(['top_rated_plus', 'top_rated', 'rising_talent']).nullable().optional(),
9728
+ badge: z
9729
+ .enum(['top_rated_plus', 'top_rated', 'rising_talent'])
9730
+ .nullable()
9731
+ .optional(),
9715
9732
  isVetted: booleanType().nullable().optional(),
9716
9733
  minEarnings: numberType().nullable().optional(),
9717
9734
  maxEarnings: numberType().nullable().optional(),
@@ -15846,6 +15863,7 @@ const ROUTES = {
15846
15863
  BY_ID: (id) => `upwork-talent/${id}`,
15847
15864
  COUNTRIES: 'upwork-talent/countries',
15848
15865
  SKILLS: 'upwork-talent/skills',
15866
+ BY_PROFILE_URL: 'upwork-talent/by-profile-url',
15849
15867
  },
15850
15868
  CHAT_ROOMS: {
15851
15869
  BASE: 'chat-rooms',
@@ -24509,6 +24527,8 @@ exports.ProposalGenerationFailedException = ProposalGenerationFailedException;
24509
24527
  exports.ProposalSubmitFailedException = ProposalSubmitFailedException;
24510
24528
  exports.PuppeteerConnectionErrorException = PuppeteerConnectionErrorException;
24511
24529
  exports.QuestionPairNotMatchingException = QuestionPairNotMatchingException;
24530
+ exports.ROOM_EXTENDED_TYPE_MAP = ROOM_EXTENDED_TYPE_MAP;
24531
+ exports.ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE = ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE;
24512
24532
  exports.ROUTES = ROUTES;
24513
24533
  exports.ScraperAccountProxyNotFoundException = ScraperAccountProxyNotFoundException;
24514
24534
  exports.SearchFieldsSchema = SearchFieldsSchema;