lancer-shared 1.2.346 → 1.2.348
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 +1810 -1775
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +1799 -1769
- package/dist/bundle.esm.js.map +1 -1
- package/dist/constants/chat.d.ts +12 -18
- package/dist/constants/routes.d.ts +20 -10
- package/dist/schemas/chat/index.d.ts +651 -21
- package/package.json +1 -1
package/dist/constants/chat.d.ts
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import { RoomCrmArchivedReason, RoomCrmStatus
|
|
1
|
+
import { PipelineColumn, RoomCrmArchivedReason, RoomCrmStatus } from '../schemas/chat';
|
|
2
|
+
import { RoomType } from '../schemas/chat';
|
|
2
3
|
export declare const ROOM_EXTENDED_TYPE_MAP: Record<RoomType, readonly string[]>;
|
|
3
4
|
export declare const ROOM_TYPES_MATCHING_EMPTY_EXTENDED_TYPE: Set<RoomType>;
|
|
4
|
-
export declare const
|
|
5
|
-
export
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly qualified: 3;
|
|
11
|
-
readonly won: 4;
|
|
12
|
-
readonly archived: 5;
|
|
13
|
-
};
|
|
14
|
-
export type RoomCrmStatusId = (typeof ROOM_CRM_STATUS_IDS)[RoomCrmStatus];
|
|
15
|
-
export declare const ROOM_CRM_STATUS_BY_ID: Record<RoomCrmStatusId, RoomCrmStatus>;
|
|
16
|
-
export declare const ROOM_CRM_KANBAN_STATUS_ORDER: readonly RoomCrmStatus[];
|
|
17
|
-
export declare const isRoomCrmStatus: (status: string) => status is "new" | "qualified" | "won" | "archived" | "follow_up";
|
|
18
|
-
export declare const normalizeRoomCrmStatus: (status?: string | null) => RoomCrmStatus;
|
|
19
|
-
export declare const normalizeRoomCrmStatuses: (statuses?: string[]) => RoomCrmStatus[];
|
|
5
|
+
export declare const PIPELINE_COLUMN_COLORS: readonly ["blue", "emerald", "amber", "violet", "slate", "rose", "cyan", "orange", "indigo", "pink"];
|
|
6
|
+
export type PipelineColumnColor = (typeof PIPELINE_COLUMN_COLORS)[number];
|
|
7
|
+
export declare const DEFAULT_PIPELINE_COLUMNS: PipelineColumn[];
|
|
8
|
+
export declare const DEFAULT_PIPELINE_COLUMN_ID = "new";
|
|
9
|
+
export declare const DEFAULT_ROOM_CRM_STATUS = "new";
|
|
10
|
+
export declare const PIPELINE_DEAL_VALUE_EXCLUDED_COLUMN_IDS: readonly string[];
|
|
20
11
|
export declare const ROOM_CRM_ARCHIVED_REASON_ORDER: readonly RoomCrmArchivedReason[];
|
|
21
|
-
export declare
|
|
12
|
+
export declare function normalizeRoomCrmStatus(status: string | undefined | null): RoomCrmStatus;
|
|
13
|
+
export declare const PIPELINE_LIST_SORT_FIELDS: readonly ["recentTimestamp", "dealValue", "totalSpent", "memberSince", "hireRate", "rating", "avgRate"];
|
|
14
|
+
export type PipelineListSortField = (typeof PIPELINE_LIST_SORT_FIELDS)[number];
|
|
15
|
+
export declare function normalizeRoomCrmStatuses(statuses: string[] | undefined | null): RoomCrmStatus[];
|
|
@@ -22,6 +22,7 @@ export declare const ROUTES: {
|
|
|
22
22
|
readonly JOBS: {
|
|
23
23
|
readonly BASE: "jobs";
|
|
24
24
|
readonly BY_ID: (id: string) => string;
|
|
25
|
+
readonly BY_UID: (uid: string) => string;
|
|
25
26
|
readonly UPDATE_ACTIVITY: "jobs/update-activity";
|
|
26
27
|
readonly IMPORT: "jobs/import";
|
|
27
28
|
readonly FILTER_OPTIONS: "jobs/filter-options";
|
|
@@ -115,7 +116,18 @@ export declare const ROUTES: {
|
|
|
115
116
|
readonly TEST_SUITABILITY: "admin/agent/test-suitability";
|
|
116
117
|
readonly TEST_PROPOSAL: "admin/agent/test-proposal";
|
|
117
118
|
};
|
|
119
|
+
readonly UPWORK_INVITATIONS_CONFIG: {
|
|
120
|
+
readonly BASE: "admin/upwork-invitation-bucket-account";
|
|
121
|
+
};
|
|
122
|
+
readonly BIDDER_INSTANCES: {
|
|
123
|
+
readonly BASE: "admin/bidder-instances";
|
|
124
|
+
readonly BY_ID: (id: string) => string;
|
|
125
|
+
readonly ASSIGN_ACCOUNTS: (id: string) => string;
|
|
126
|
+
readonly UNASSIGN_ACCOUNTS: (id: string) => string;
|
|
127
|
+
readonly SET_DEFAULT: (id: string) => string;
|
|
128
|
+
};
|
|
118
129
|
readonly BILLING: {
|
|
130
|
+
readonly BASE: "admin/billing";
|
|
119
131
|
readonly PLANS: {
|
|
120
132
|
readonly BASE: "admin/billing/plans";
|
|
121
133
|
readonly BY_ID: (id: string) => string;
|
|
@@ -129,16 +141,6 @@ export declare const ROUTES: {
|
|
|
129
141
|
readonly BY_ID: (id: string) => string;
|
|
130
142
|
};
|
|
131
143
|
};
|
|
132
|
-
readonly UPWORK_INVITATIONS_CONFIG: {
|
|
133
|
-
readonly BASE: "admin/upwork-invitation-bucket-account";
|
|
134
|
-
};
|
|
135
|
-
readonly BIDDER_INSTANCES: {
|
|
136
|
-
readonly BASE: "admin/bidder-instances";
|
|
137
|
-
readonly BY_ID: (id: string) => string;
|
|
138
|
-
readonly ASSIGN_ACCOUNTS: (id: string) => string;
|
|
139
|
-
readonly UNASSIGN_ACCOUNTS: (id: string) => string;
|
|
140
|
-
readonly SET_DEFAULT: (id: string) => string;
|
|
141
|
-
};
|
|
142
144
|
};
|
|
143
145
|
readonly BID: {
|
|
144
146
|
readonly BASE: "bid";
|
|
@@ -202,9 +204,13 @@ export declare const ROUTES: {
|
|
|
202
204
|
readonly ROOM_TAG: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
203
205
|
readonly ROOM_NOTES: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
204
206
|
readonly ROOM_CRM_STATUS: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
207
|
+
readonly ROOM_DEAL_VALUE: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
208
|
+
readonly ROOM_TASKS: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
209
|
+
readonly ROOM_TASK_BY_ID: (organizationId: string, bidderAccountId: string, roomId: string, taskId: string) => string;
|
|
205
210
|
readonly CONNECT_ACCOUNT: (organizationId: string, bidderAccountId: string) => string;
|
|
206
211
|
readonly ROOMS: (id: string, bidderAccountId: string) => string;
|
|
207
212
|
readonly ROOM: (id: string, bidderAccountId: string, roomId: string) => string;
|
|
213
|
+
readonly ROOM_METADATA: (id: string, bidderAccountId: string, roomId: string) => string;
|
|
208
214
|
readonly REFRESH_ROOM: (id: string, bidderAccountId: string, roomId: string) => string;
|
|
209
215
|
readonly SEND_MESSAGE: (id: string, bidderAccountId: string, roomId: string) => string;
|
|
210
216
|
readonly REFRESH_ROOMS: (organizationId: string, bidderAccountId: string) => string;
|
|
@@ -216,6 +222,7 @@ export declare const ROUTES: {
|
|
|
216
222
|
readonly GET_FREE_SLOTS: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
217
223
|
readonly BOOK_SLOT: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
218
224
|
readonly ATTACHMENT_REDIRECT: (organizationId: string, bidderAccountId: string, roomId: string) => string;
|
|
225
|
+
readonly PIPELINE_LIST_ROOMS: (organizationId: string) => string;
|
|
219
226
|
};
|
|
220
227
|
};
|
|
221
228
|
readonly LEADS_BY_JOB_ID: (organizationId: string, jobId: string) => string;
|
|
@@ -294,6 +301,9 @@ export declare const ROUTES: {
|
|
|
294
301
|
readonly BASE: (id: string) => string;
|
|
295
302
|
readonly BY_ID: (organizationId: string, userId: string) => string;
|
|
296
303
|
};
|
|
304
|
+
readonly ALL_TASKS: (organizationId: string) => string;
|
|
305
|
+
readonly PIPELINE_TOTALS: (organizationId: string) => string;
|
|
306
|
+
readonly PIPELINE_COLUMNS: (organizationId: string) => string;
|
|
297
307
|
readonly INVOICE_PREVIEW: (id: string) => string;
|
|
298
308
|
};
|
|
299
309
|
readonly TRANSACTIONS: {
|