lancer-shared 1.2.329 → 1.2.331

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.
@@ -1,4 +1,4 @@
1
- import { RoomCrmStatus, RoomType } from '../schemas/chat';
1
+ import { RoomCrmArchivedReason, RoomCrmStatus, RoomType } from '../schemas/chat';
2
2
  export declare const ROOM_EXTENDED_TYPE_MAP: Record<RoomType, readonly string[]>;
3
3
  export declare const ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE: Set<RoomType>;
4
4
  export declare const ROOM_CRM_STATUS_ORDER: readonly RoomCrmStatus[];
@@ -17,3 +17,5 @@ export declare const ROOM_CRM_KANBAN_STATUS_ORDER: readonly RoomCrmStatus[];
17
17
  export declare const isRoomCrmStatus: (status: string) => status is "new" | "qualified" | "won" | "archived" | "follow_up";
18
18
  export declare const normalizeRoomCrmStatus: (status?: string | null) => RoomCrmStatus;
19
19
  export declare const normalizeRoomCrmStatuses: (statuses?: string[]) => RoomCrmStatus[];
20
+ export declare const ROOM_CRM_ARCHIVED_REASON_ORDER: readonly RoomCrmArchivedReason[];
21
+ export declare const ROOM_CRM_ARCHIVED_REASON_LABELS: Record<RoomCrmArchivedReason, string>;
@@ -6,6 +6,7 @@ export declare const SearchFieldsSchema: z.ZodObject<{
6
6
  exactPhrase: z.ZodDefault<z.ZodString>;
7
7
  titleSearch: z.ZodDefault<z.ZodString>;
8
8
  titleAny: z.ZodDefault<z.ZodString>;
9
+ titleNoneAny: z.ZodDefault<z.ZodString>;
9
10
  skillsSearch: z.ZodDefault<z.ZodString>;
10
11
  }, "strip", z.ZodTypeAny, {
11
12
  allWords: string;
@@ -14,6 +15,7 @@ export declare const SearchFieldsSchema: z.ZodObject<{
14
15
  exactPhrase: string;
15
16
  titleSearch: string;
16
17
  titleAny: string;
18
+ titleNoneAny: string;
17
19
  skillsSearch: string;
18
20
  }, {
19
21
  allWords?: string | undefined;
@@ -22,6 +24,7 @@ export declare const SearchFieldsSchema: z.ZodObject<{
22
24
  exactPhrase?: string | undefined;
23
25
  titleSearch?: string | undefined;
24
26
  titleAny?: string | undefined;
27
+ titleNoneAny?: string | undefined;
25
28
  skillsSearch?: string | undefined;
26
29
  }>;
27
30
  export type SearchFields = z.infer<typeof SearchFieldsSchema>;
@@ -15,6 +15,8 @@ export declare const roomNoteSchema: z.ZodObject<{
15
15
  export type RoomNote = z.infer<typeof roomNoteSchema>;
16
16
  export declare const roomCrmStatusEnum: z.ZodEnum<["new", "follow_up", "qualified", "won", "archived"]>;
17
17
  export type RoomCrmStatus = z.infer<typeof roomCrmStatusEnum>;
18
+ export declare const roomCrmArchivedReasonEnum: z.ZodEnum<["completed", "not_fit", "lost", "no_response", "other"]>;
19
+ export type RoomCrmArchivedReason = z.infer<typeof roomCrmArchivedReasonEnum>;
18
20
  export declare const roomJobClientHistorySchema: z.ZodObject<{
19
21
  jobUrl: z.ZodNullable<z.ZodString>;
20
22
  title: z.ZodNullable<z.ZodString>;
@@ -198,6 +200,7 @@ export declare const roomSchema: z.ZodObject<{
198
200
  }>>;
199
201
  crmStatus: z.ZodOptional<z.ZodEnum<["new", "follow_up", "qualified", "won", "archived"]>>;
200
202
  crmStatusUpdatedAt: z.ZodOptional<z.ZodNumber>;
203
+ crmArchivedReason: z.ZodNullable<z.ZodOptional<z.ZodEnum<["completed", "not_fit", "lost", "no_response", "other"]>>>;
201
204
  jobClientHistory: z.ZodOptional<z.ZodObject<{
202
205
  jobUrl: z.ZodNullable<z.ZodString>;
203
206
  title: z.ZodNullable<z.ZodString>;
@@ -344,6 +347,7 @@ export declare const roomSchema: z.ZodObject<{
344
347
  } | undefined;
345
348
  crmStatus?: "new" | "qualified" | "won" | "archived" | "follow_up" | undefined;
346
349
  crmStatusUpdatedAt?: number | undefined;
350
+ crmArchivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | null | undefined;
347
351
  jobClientHistory?: {
348
352
  title: string | null;
349
353
  jobUrl: string | null;
@@ -406,6 +410,7 @@ export declare const roomSchema: z.ZodObject<{
406
410
  } | undefined;
407
411
  crmStatus?: "new" | "qualified" | "won" | "archived" | "follow_up" | undefined;
408
412
  crmStatusUpdatedAt?: number | undefined;
413
+ crmArchivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | null | undefined;
409
414
  jobClientHistory?: {
410
415
  title: string | null;
411
416
  jobUrl: string | null;
@@ -553,6 +558,7 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
553
558
  }>>;
554
559
  crmStatus: z.ZodOptional<z.ZodEnum<["new", "follow_up", "qualified", "won", "archived"]>>;
555
560
  crmStatusUpdatedAt: z.ZodOptional<z.ZodNumber>;
561
+ crmArchivedReason: z.ZodNullable<z.ZodOptional<z.ZodEnum<["completed", "not_fit", "lost", "no_response", "other"]>>>;
556
562
  jobClientHistory: z.ZodOptional<z.ZodObject<{
557
563
  jobUrl: z.ZodNullable<z.ZodString>;
558
564
  title: z.ZodNullable<z.ZodString>;
@@ -699,6 +705,7 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
699
705
  } | undefined;
700
706
  crmStatus?: "new" | "qualified" | "won" | "archived" | "follow_up" | undefined;
701
707
  crmStatusUpdatedAt?: number | undefined;
708
+ crmArchivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | null | undefined;
702
709
  jobClientHistory?: {
703
710
  title: string | null;
704
711
  jobUrl: string | null;
@@ -761,6 +768,7 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
761
768
  } | undefined;
762
769
  crmStatus?: "new" | "qualified" | "won" | "archived" | "follow_up" | undefined;
763
770
  crmStatusUpdatedAt?: number | undefined;
771
+ crmArchivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | null | undefined;
764
772
  jobClientHistory?: {
765
773
  title: string | null;
766
774
  jobUrl: string | null;
@@ -841,6 +849,7 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
841
849
  } | undefined;
842
850
  crmStatus?: "new" | "qualified" | "won" | "archived" | "follow_up" | undefined;
843
851
  crmStatusUpdatedAt?: number | undefined;
852
+ crmArchivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | null | undefined;
844
853
  jobClientHistory?: {
845
854
  title: string | null;
846
855
  jobUrl: string | null;
@@ -911,6 +920,7 @@ export declare const getRoomsResponseSchema: z.ZodObject<{
911
920
  } | undefined;
912
921
  crmStatus?: "new" | "qualified" | "won" | "archived" | "follow_up" | undefined;
913
922
  crmStatusUpdatedAt?: number | undefined;
923
+ crmArchivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | null | undefined;
914
924
  jobClientHistory?: {
915
925
  title: string | null;
916
926
  jobUrl: string | null;
@@ -993,10 +1003,13 @@ export declare const updateRoomNotesRequestBodySchema: z.ZodObject<{
993
1003
  export type UpdateRoomNotesRequestBody = z.infer<typeof updateRoomNotesRequestBodySchema>;
994
1004
  export declare const updateRoomCrmStatusRequestBodySchema: z.ZodObject<{
995
1005
  status: z.ZodEnum<["new", "follow_up", "qualified", "won", "archived"]>;
1006
+ archivedReason: z.ZodOptional<z.ZodEnum<["completed", "not_fit", "lost", "no_response", "other"]>>;
996
1007
  }, "strip", z.ZodTypeAny, {
997
1008
  status: "new" | "qualified" | "won" | "archived" | "follow_up";
1009
+ archivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | undefined;
998
1010
  }, {
999
1011
  status: "new" | "qualified" | "won" | "archived" | "follow_up";
1012
+ archivedReason?: "completed" | "other" | "not_fit" | "lost" | "no_response" | undefined;
1000
1013
  }>;
1001
1014
  export type UpdateRoomCrmStatusRequestBody = z.infer<typeof updateRoomCrmStatusRequestBodySchema>;
1002
1015
  export declare const sendMessageRequestSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lancer-shared",
3
- "version": "1.2.329",
3
+ "version": "1.2.331",
4
4
  "description": "This package contains shared stuff.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "dist/bundle.cjs.js",