lancer-shared 1.2.327 → 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
  }
@@ -7165,6 +7159,11 @@ const agentTaskResponseSchema = z.object({
7165
7159
  completionTokens: z.number(),
7166
7160
  });
7167
7161
 
7162
+ const sendDiscordMessageRequestBodySchema = z.object({
7163
+ title: z.string(),
7164
+ content: z.string(),
7165
+ });
7166
+
7168
7167
  const usageEventTypeEnum = z.enum([
7169
7168
  'suitabilityComplete',
7170
7169
  'proposalComplete',
@@ -8840,11 +8839,11 @@ const roomNoteSchema = z.object({
8840
8839
  updatedAt: z.number(),
8841
8840
  });
8842
8841
  const roomCrmStatusEnum = z.enum([
8843
- 'replied',
8844
- 'interested',
8842
+ 'new',
8845
8843
  'follow_up',
8846
- 'not_interested',
8847
- 'closed',
8844
+ 'qualified',
8845
+ 'won',
8846
+ 'archived',
8848
8847
  ]);
8849
8848
  const roomJobClientHistorySchema = z.object({
8850
8849
  jobUrl: z.string().nullable(),
@@ -15708,6 +15707,7 @@ const ROUTES = {
15708
15707
  ALERTS: {
15709
15708
  BASE: 'admin/alerts',
15710
15709
  SEND_ALERT: 'admin/alerts/send',
15710
+ SEND_DISCORD_MESSAGE: 'admin/alerts/discord',
15711
15711
  },
15712
15712
  GOLDEN_DATASET: {
15713
15713
  BASE: 'admin/golden-dataset',
@@ -24983,6 +24983,7 @@ exports.selectAgencyException = selectAgencyException;
24983
24983
  exports.selectContractorException = selectContractorException;
24984
24984
  exports.selectorNotFoundError = selectorNotFoundError;
24985
24985
  exports.sendAlertPayloadSchema = sendAlertPayloadSchema;
24986
+ exports.sendDiscordMessageRequestBodySchema = sendDiscordMessageRequestBodySchema;
24986
24987
  exports.sendMessageRequestSchema = sendMessageRequestSchema;
24987
24988
  exports.sendNotificationRequestSchema = sendNotificationRequestSchema;
24988
24989
  exports.specialisedProfileSchema = specialisedProfileSchema;