lancer-shared 1.2.330 → 1.2.332

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.
@@ -18,8 +18,8 @@ const ROOM_CRM_STATUS_ORDER = [
18
18
  const ROOM_CRM_STATUS_LABELS = {
19
19
  new: 'New',
20
20
  follow_up: 'Follow Up',
21
- qualified: 'Qualified',
22
- won: 'Won',
21
+ qualified: 'In Conversation',
22
+ won: 'Active Contract',
23
23
  archived: 'Archived',
24
24
  };
25
25
  const DEFAULT_ROOM_CRM_STATUS = 'new';
@@ -76,6 +76,20 @@ const normalizeRoomCrmStatuses = (statuses) => {
76
76
  .map((status) => normalizeListStatus(status))
77
77
  .filter((status) => status !== null)));
78
78
  };
79
+ const ROOM_CRM_ARCHIVED_REASON_ORDER = [
80
+ 'completed',
81
+ 'not_fit',
82
+ 'lost',
83
+ 'no_response',
84
+ 'other',
85
+ ];
86
+ const ROOM_CRM_ARCHIVED_REASON_LABELS = {
87
+ completed: 'Completed',
88
+ not_fit: 'Not fit',
89
+ lost: 'Lost',
90
+ no_response: 'No response',
91
+ other: 'Other',
92
+ };
79
93
 
80
94
  const defaultQuestions = [
81
95
  {
@@ -8885,6 +8899,13 @@ const roomCrmStatusEnum = z.enum([
8885
8899
  'won',
8886
8900
  'archived',
8887
8901
  ]);
8902
+ const roomCrmArchivedReasonEnum = z.enum([
8903
+ 'completed',
8904
+ 'not_fit',
8905
+ 'lost',
8906
+ 'no_response',
8907
+ 'other',
8908
+ ]);
8888
8909
  const roomJobClientHistorySchema = z.object({
8889
8910
  jobUrl: z.string().nullable(),
8890
8911
  title: z.string().nullable(),
@@ -8926,6 +8947,7 @@ const roomSchema = z.object({
8926
8947
  roomNote: roomNoteSchema.optional(),
8927
8948
  crmStatus: roomCrmStatusEnum.optional(),
8928
8949
  crmStatusUpdatedAt: z.number().optional(),
8950
+ crmArchivedReason: roomCrmArchivedReasonEnum.optional().nullable(),
8929
8951
  jobClientHistory: roomJobClientHistorySchema.optional(),
8930
8952
  });
8931
8953
  const roomsMetadataSchema = z.object({
@@ -8974,6 +8996,7 @@ const updateRoomNotesRequestBodySchema = z.object({
8974
8996
  });
8975
8997
  const updateRoomCrmStatusRequestBodySchema = z.object({
8976
8998
  status: roomCrmStatusEnum,
8999
+ archivedReason: roomCrmArchivedReasonEnum.optional(),
8977
9000
  });
8978
9001
  const sendMessageRequestSchema = z.object({
8979
9002
  message: z.string(),
@@ -24667,6 +24690,8 @@ exports.ProposalGenerationFailedException = ProposalGenerationFailedException;
24667
24690
  exports.ProposalSubmitFailedException = ProposalSubmitFailedException;
24668
24691
  exports.PuppeteerConnectionErrorException = PuppeteerConnectionErrorException;
24669
24692
  exports.QuestionPairNotMatchingException = QuestionPairNotMatchingException;
24693
+ exports.ROOM_CRM_ARCHIVED_REASON_LABELS = ROOM_CRM_ARCHIVED_REASON_LABELS;
24694
+ exports.ROOM_CRM_ARCHIVED_REASON_ORDER = ROOM_CRM_ARCHIVED_REASON_ORDER;
24670
24695
  exports.ROOM_CRM_KANBAN_STATUS_ORDER = ROOM_CRM_KANBAN_STATUS_ORDER;
24671
24696
  exports.ROOM_CRM_STATUS_BY_ID = ROOM_CRM_STATUS_BY_ID;
24672
24697
  exports.ROOM_CRM_STATUS_IDS = ROOM_CRM_STATUS_IDS;
@@ -24995,6 +25020,7 @@ exports.regionSchema = regionSchema;
24995
25020
  exports.registerSchema = registerSchema;
24996
25021
  exports.requiredEarningsEnum = requiredEarningsEnum;
24997
25022
  exports.requiredJSSEnum = requiredJSSEnum;
25023
+ exports.roomCrmArchivedReasonEnum = roomCrmArchivedReasonEnum;
24998
25024
  exports.roomCrmStatusEnum = roomCrmStatusEnum;
24999
25025
  exports.roomJobClientHistorySchema = roomJobClientHistorySchema;
25000
25026
  exports.roomMessageSchema = roomMessageSchema;