lancer-shared 1.2.328 → 1.2.329

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.
@@ -9,41 +9,41 @@ const ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE = new Set([
9
9
  'proposal',
10
10
  ]);
11
11
  const ROOM_CRM_STATUS_ORDER = [
12
- 'replied',
12
+ 'new',
13
+ 'qualified',
13
14
  'follow_up',
14
- 'interested',
15
- 'not_interested',
16
- 'closed',
15
+ 'won',
16
+ 'archived',
17
17
  ];
18
18
  const ROOM_CRM_STATUS_LABELS = {
19
- replied: 'Replied',
20
- interested: 'Interested',
19
+ new: 'New',
21
20
  follow_up: 'Follow Up',
22
- not_interested: 'Lost',
23
- closed: 'Won',
21
+ qualified: 'Qualified',
22
+ won: 'Won',
23
+ archived: 'Archived',
24
24
  };
25
- const DEFAULT_ROOM_CRM_STATUS = 'replied';
25
+ const DEFAULT_ROOM_CRM_STATUS = 'new';
26
26
  const ROOM_CRM_STATUS_IDS = {
27
- replied: 1,
27
+ new: 1,
28
28
  follow_up: 2,
29
- interested: 3,
30
- closed: 4,
31
- not_interested: 5,
29
+ qualified: 3,
30
+ won: 4,
31
+ archived: 5,
32
32
  };
33
33
  const ROOM_CRM_STATUS_BY_ID = {
34
- 1: 'replied',
34
+ 1: 'new',
35
35
  2: 'follow_up',
36
- 3: 'interested',
37
- 4: 'closed',
38
- 5: 'not_interested',
36
+ 3: 'qualified',
37
+ 4: 'won',
38
+ 5: 'archived',
39
39
  };
40
40
  // Explicit board order avoids scattered "exclude then append" logic in consumers.
41
41
  const ROOM_CRM_KANBAN_STATUS_ORDER = [
42
- 'replied',
42
+ 'new',
43
+ 'qualified',
43
44
  'follow_up',
44
- 'interested',
45
- 'closed',
46
- 'not_interested',
45
+ 'won',
46
+ 'archived',
47
47
  ];
48
48
  const isRoomCrmStatus = (status) => {
49
49
  return ROOM_CRM_STATUS_ORDER.includes(status);
@@ -53,9 +53,6 @@ const normalizeRoomCrmStatus = (status) => {
53
53
  return DEFAULT_ROOM_CRM_STATUS;
54
54
  }
55
55
  const normalizedStatus = status.trim().toLowerCase();
56
- if (normalizedStatus === 'archived') {
57
- return 'closed';
58
- }
59
56
  if (isRoomCrmStatus(normalizedStatus)) {
60
57
  return normalizedStatus;
61
58
  }
@@ -70,9 +67,6 @@ const normalizeRoomCrmStatuses = (statuses) => {
70
67
  if (!normalizedStatus) {
71
68
  return null;
72
69
  }
73
- if (normalizedStatus === 'archived') {
74
- return 'closed';
75
- }
76
70
  if (isRoomCrmStatus(normalizedStatus)) {
77
71
  return normalizedStatus;
78
72
  }
@@ -8845,11 +8839,11 @@ const roomNoteSchema = z.object({
8845
8839
  updatedAt: z.number(),
8846
8840
  });
8847
8841
  const roomCrmStatusEnum = z.enum([
8848
- 'replied',
8849
- 'interested',
8842
+ 'new',
8850
8843
  'follow_up',
8851
- 'not_interested',
8852
- 'closed',
8844
+ 'qualified',
8845
+ 'won',
8846
+ 'archived',
8853
8847
  ]);
8854
8848
  const roomJobClientHistorySchema = z.object({
8855
8849
  jobUrl: z.string().nullable(),