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.
- package/dist/bundle.cjs.js +32 -31
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +32 -32
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/chat.d.ts +5 -5
- package/dist/constants/routes.d.ts +1 -0
- package/dist/schemas/alert/index.d.ts +12 -0
- package/dist/schemas/chat/index.d.ts +12 -12
- package/dist/schemas/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -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
|
-
'
|
|
12
|
+
'new',
|
|
13
|
+
'qualified',
|
|
13
14
|
'follow_up',
|
|
14
|
-
'
|
|
15
|
-
'
|
|
16
|
-
'closed',
|
|
15
|
+
'won',
|
|
16
|
+
'archived',
|
|
17
17
|
];
|
|
18
18
|
const ROOM_CRM_STATUS_LABELS = {
|
|
19
|
-
|
|
20
|
-
interested: 'Interested',
|
|
19
|
+
new: 'New',
|
|
21
20
|
follow_up: 'Follow Up',
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
qualified: 'Qualified',
|
|
22
|
+
won: 'Won',
|
|
23
|
+
archived: 'Archived',
|
|
24
24
|
};
|
|
25
|
-
const DEFAULT_ROOM_CRM_STATUS = '
|
|
25
|
+
const DEFAULT_ROOM_CRM_STATUS = 'new';
|
|
26
26
|
const ROOM_CRM_STATUS_IDS = {
|
|
27
|
-
|
|
27
|
+
new: 1,
|
|
28
28
|
follow_up: 2,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
qualified: 3,
|
|
30
|
+
won: 4,
|
|
31
|
+
archived: 5,
|
|
32
32
|
};
|
|
33
33
|
const ROOM_CRM_STATUS_BY_ID = {
|
|
34
|
-
1: '
|
|
34
|
+
1: 'new',
|
|
35
35
|
2: 'follow_up',
|
|
36
|
-
3: '
|
|
37
|
-
4: '
|
|
38
|
-
5: '
|
|
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
|
-
'
|
|
42
|
+
'new',
|
|
43
|
+
'qualified',
|
|
43
44
|
'follow_up',
|
|
44
|
-
'
|
|
45
|
-
'
|
|
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
|
-
'
|
|
8844
|
-
'interested',
|
|
8842
|
+
'new',
|
|
8845
8843
|
'follow_up',
|
|
8846
|
-
'
|
|
8847
|
-
'
|
|
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;
|