@ttt-productions/ttt-core 0.2.14 → 0.2.15
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/constants/chat.d.ts +12 -0
- package/dist/constants/chat.d.ts.map +1 -0
- package/dist/constants/chat.js +12 -0
- package/dist/constants/chat.js.map +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +1 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/schemas/admin.d.ts +44 -0
- package/dist/schemas/admin.d.ts.map +1 -0
- package/dist/schemas/admin.js +24 -0
- package/dist/schemas/admin.js.map +1 -0
- package/dist/schemas/chat.d.ts +294 -0
- package/dist/schemas/chat.d.ts.map +1 -0
- package/dist/schemas/chat.js +75 -0
- package/dist/schemas/chat.js.map +1 -0
- package/dist/schemas/index.d.ts +13 -0
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +13 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/jobs.d.ts +57 -0
- package/dist/schemas/jobs.d.ts.map +1 -0
- package/dist/schemas/jobs.js +23 -0
- package/dist/schemas/jobs.js.map +1 -0
- package/dist/schemas/library.d.ts +240 -0
- package/dist/schemas/library.d.ts.map +1 -0
- package/dist/schemas/library.js +88 -0
- package/dist/schemas/library.js.map +1 -0
- package/dist/schemas/opportunities.d.ts +10 -0
- package/dist/schemas/opportunities.d.ts.map +1 -0
- package/dist/schemas/opportunities.js +6 -0
- package/dist/schemas/opportunities.js.map +1 -0
- package/dist/schemas/payments.d.ts +13 -0
- package/dist/schemas/payments.d.ts.map +1 -0
- package/dist/schemas/payments.js +6 -0
- package/dist/schemas/payments.js.map +1 -0
- package/dist/schemas/project-management.d.ts +195 -0
- package/dist/schemas/project-management.d.ts.map +1 -0
- package/dist/schemas/project-management.js +65 -0
- package/dist/schemas/project-management.js.map +1 -0
- package/dist/schemas/skills.d.ts +24 -0
- package/dist/schemas/skills.d.ts.map +1 -0
- package/dist/schemas/skills.js +11 -0
- package/dist/schemas/skills.js.map +1 -0
- package/dist/schemas/social.d.ts +18 -0
- package/dist/schemas/social.d.ts.map +1 -0
- package/dist/schemas/social.js +8 -0
- package/dist/schemas/social.js.map +1 -0
- package/dist/schemas/system-message-actions.d.ts +38 -0
- package/dist/schemas/system-message-actions.d.ts.map +1 -0
- package/dist/schemas/system-message-actions.js +17 -0
- package/dist/schemas/system-message-actions.js.map +1 -0
- package/dist/schemas/users.d.ts +60 -0
- package/dist/schemas/users.d.ts.map +1 -0
- package/dist/schemas/users.js +25 -0
- package/dist/schemas/users.js.map +1 -0
- package/dist/schemas/utility.d.ts +45 -0
- package/dist/schemas/utility.d.ts.map +1 -0
- package/dist/schemas/utility.js +20 -0
- package/dist/schemas/utility.js.map +1 -0
- package/dist/schemas/voting.d.ts +26 -0
- package/dist/schemas/voting.d.ts.map +1 -0
- package/dist/schemas/voting.js +11 -0
- package/dist/schemas/voting.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat-related constants shared between ttt-core (schemas) and chat-core (UI/runtime).
|
|
3
|
+
*
|
|
4
|
+
* These live here so ttt-core's schemas/chat.ts and schemas/system-message-actions.ts
|
|
5
|
+
* can use them without depending on chat-core (which would create a circular package
|
|
6
|
+
* dependency — chat-core already depends on ttt-core).
|
|
7
|
+
*
|
|
8
|
+
* chat-core re-exports these constants from its public surface so existing chat-core
|
|
9
|
+
* consumers see no change.
|
|
10
|
+
*/
|
|
11
|
+
export declare const MAX_CHAT_MESSAGE_LENGTH = 4000;
|
|
12
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/constants/chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,OAAO,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Chat-related constants shared between ttt-core (schemas) and chat-core (UI/runtime).
|
|
3
|
+
*
|
|
4
|
+
* These live here so ttt-core's schemas/chat.ts and schemas/system-message-actions.ts
|
|
5
|
+
* can use them without depending on chat-core (which would create a circular package
|
|
6
|
+
* dependency — chat-core already depends on ttt-core).
|
|
7
|
+
*
|
|
8
|
+
* chat-core re-exports these constants from its public surface so existing chat-core
|
|
9
|
+
* consumers see no change.
|
|
10
|
+
*/
|
|
11
|
+
export const MAX_CHAT_MESSAGE_LENGTH = 4000;
|
|
12
|
+
//# sourceMappingURL=chat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/constants/chat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
package/dist/constants/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AdminTaskType } from '../types/admin.js';
|
|
3
|
+
export declare const CheckoutNextImportantTaskInputSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
4
|
+
export type CheckoutNextImportantTaskInput = z.infer<typeof CheckoutNextImportantTaskInputSchema>;
|
|
5
|
+
export declare const GetContentViolationInputSchema: z.ZodObject<{
|
|
6
|
+
violationId: z.ZodString;
|
|
7
|
+
}, "strict", z.ZodTypeAny, {
|
|
8
|
+
violationId: string;
|
|
9
|
+
}, {
|
|
10
|
+
violationId: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type GetContentViolationInput = z.infer<typeof GetContentViolationInputSchema>;
|
|
13
|
+
export declare const MarkWorkLaterInputSchema: z.ZodObject<{
|
|
14
|
+
taskId: z.ZodString;
|
|
15
|
+
taskType: z.ZodEnum<[AdminTaskType, ...AdminTaskType[]]>;
|
|
16
|
+
extendHours: z.ZodUnion<[z.ZodLiteral<24>, z.ZodLiteral<48>]>;
|
|
17
|
+
}, "strict", z.ZodTypeAny, {
|
|
18
|
+
taskId: string;
|
|
19
|
+
taskType: AdminTaskType;
|
|
20
|
+
extendHours: 24 | 48;
|
|
21
|
+
}, {
|
|
22
|
+
taskId: string;
|
|
23
|
+
taskType: AdminTaskType;
|
|
24
|
+
extendHours: 24 | 48;
|
|
25
|
+
}>;
|
|
26
|
+
export type MarkWorkLaterInput = z.infer<typeof MarkWorkLaterInputSchema>;
|
|
27
|
+
export declare const ReviewContentAppealInputSchema: z.ZodObject<{
|
|
28
|
+
violationId: z.ZodString;
|
|
29
|
+
taskId: z.ZodString;
|
|
30
|
+
decision: z.ZodEnum<["approved", "denied"]>;
|
|
31
|
+
adminNotes: z.ZodString;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
violationId: string;
|
|
34
|
+
taskId: string;
|
|
35
|
+
decision: "approved" | "denied";
|
|
36
|
+
adminNotes: string;
|
|
37
|
+
}, {
|
|
38
|
+
violationId: string;
|
|
39
|
+
taskId: string;
|
|
40
|
+
decision: "approved" | "denied";
|
|
41
|
+
adminNotes: string;
|
|
42
|
+
}>;
|
|
43
|
+
export type ReviewContentAppealInput = z.infer<typeof ReviewContentAppealInputSchema>;
|
|
44
|
+
//# sourceMappingURL=admin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AASvD,eAAO,MAAM,oCAAoC,iDAAwB,CAAC;AAC1E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAElG,eAAO,MAAM,8BAA8B;;;;;;EAEhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAI1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;EAKhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { violationIdSchema, taskIdSchema } from './atoms.js';
|
|
3
|
+
const ADMIN_TASK_TYPES = [
|
|
4
|
+
'systemMessage',
|
|
5
|
+
'libraryReview',
|
|
6
|
+
'userReport',
|
|
7
|
+
'content-appeal',
|
|
8
|
+
];
|
|
9
|
+
export const CheckoutNextImportantTaskInputSchema = z.object({}).strict();
|
|
10
|
+
export const GetContentViolationInputSchema = z.object({
|
|
11
|
+
violationId: violationIdSchema,
|
|
12
|
+
}).strict();
|
|
13
|
+
export const MarkWorkLaterInputSchema = z.object({
|
|
14
|
+
taskId: taskIdSchema,
|
|
15
|
+
taskType: z.enum(ADMIN_TASK_TYPES),
|
|
16
|
+
extendHours: z.union([z.literal(24), z.literal(48)]),
|
|
17
|
+
}).strict();
|
|
18
|
+
export const ReviewContentAppealInputSchema = z.object({
|
|
19
|
+
violationId: violationIdSchema,
|
|
20
|
+
taskId: taskIdSchema,
|
|
21
|
+
decision: z.enum(['approved', 'denied']),
|
|
22
|
+
adminNotes: z.string().max(2000),
|
|
23
|
+
}).strict();
|
|
24
|
+
//# sourceMappingURL=admin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin.js","sourceRoot":"","sources":["../../src/schemas/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG7D,MAAM,gBAAgB,GAAwC;IAC5D,eAAe;IACf,eAAe;IACf,YAAY;IACZ,gBAAgB;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAG1E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,WAAW,EAAE,iBAAiB;CAC/B,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;IAClC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;CACrD,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,WAAW,EAAE,iBAAiB;IAC9B,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;CACjC,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ArchiveChatChannelInputSchema: z.ZodObject<{
|
|
3
|
+
projectId: z.ZodString;
|
|
4
|
+
channelId: z.ZodString;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
projectId: string;
|
|
7
|
+
channelId: string;
|
|
8
|
+
}, {
|
|
9
|
+
projectId: string;
|
|
10
|
+
channelId: string;
|
|
11
|
+
}>;
|
|
12
|
+
export type ArchiveChatChannelInput = z.infer<typeof ArchiveChatChannelInputSchema>;
|
|
13
|
+
export declare const CreateChatChannelInputSchema: z.ZodObject<{
|
|
14
|
+
projectId: z.ZodString;
|
|
15
|
+
channelName: z.ZodString;
|
|
16
|
+
description: z.ZodOptional<z.ZodString>;
|
|
17
|
+
requiredRoles: z.ZodArray<z.ZodString, "many">;
|
|
18
|
+
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
19
|
+
}, "strict", z.ZodTypeAny, {
|
|
20
|
+
projectId: string;
|
|
21
|
+
channelName: string;
|
|
22
|
+
requiredRoles: string[];
|
|
23
|
+
allowedUserIds: string[];
|
|
24
|
+
description?: string | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
projectId: string;
|
|
27
|
+
channelName: string;
|
|
28
|
+
requiredRoles: string[];
|
|
29
|
+
allowedUserIds: string[];
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
}>;
|
|
32
|
+
export type CreateChatChannelInput = z.infer<typeof CreateChatChannelInputSchema>;
|
|
33
|
+
export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"threadKind", [z.ZodObject<{
|
|
34
|
+
threadKind: z.ZodLiteral<"projectChannel">;
|
|
35
|
+
projectId: z.ZodString;
|
|
36
|
+
channelId: z.ZodString;
|
|
37
|
+
text: z.ZodString;
|
|
38
|
+
replyTo: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
messageId: z.ZodString;
|
|
40
|
+
senderId: z.ZodString;
|
|
41
|
+
messagePreview: z.ZodString;
|
|
42
|
+
}, "strict", z.ZodTypeAny, {
|
|
43
|
+
messageId: string;
|
|
44
|
+
senderId: string;
|
|
45
|
+
messagePreview: string;
|
|
46
|
+
}, {
|
|
47
|
+
messageId: string;
|
|
48
|
+
senderId: string;
|
|
49
|
+
messagePreview: string;
|
|
50
|
+
}>>;
|
|
51
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
id: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
type: z.ZodEnum<["image", "video", "audio", "text"]>;
|
|
55
|
+
size: z.ZodNumber;
|
|
56
|
+
url: z.ZodString;
|
|
57
|
+
storagePath: z.ZodString;
|
|
58
|
+
}, "strict", z.ZodTypeAny, {
|
|
59
|
+
type: "video" | "image" | "audio" | "text";
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
size: number;
|
|
63
|
+
url: string;
|
|
64
|
+
storagePath: string;
|
|
65
|
+
}, {
|
|
66
|
+
type: "video" | "image" | "audio" | "text";
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
size: number;
|
|
70
|
+
url: string;
|
|
71
|
+
storagePath: string;
|
|
72
|
+
}>>;
|
|
73
|
+
}, "strict", z.ZodTypeAny, {
|
|
74
|
+
projectId: string;
|
|
75
|
+
text: string;
|
|
76
|
+
channelId: string;
|
|
77
|
+
threadKind: "projectChannel";
|
|
78
|
+
replyTo?: {
|
|
79
|
+
messageId: string;
|
|
80
|
+
senderId: string;
|
|
81
|
+
messagePreview: string;
|
|
82
|
+
} | undefined;
|
|
83
|
+
attachment?: {
|
|
84
|
+
type: "video" | "image" | "audio" | "text";
|
|
85
|
+
id: string;
|
|
86
|
+
name: string;
|
|
87
|
+
size: number;
|
|
88
|
+
url: string;
|
|
89
|
+
storagePath: string;
|
|
90
|
+
} | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
projectId: string;
|
|
93
|
+
text: string;
|
|
94
|
+
channelId: string;
|
|
95
|
+
threadKind: "projectChannel";
|
|
96
|
+
replyTo?: {
|
|
97
|
+
messageId: string;
|
|
98
|
+
senderId: string;
|
|
99
|
+
messagePreview: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
attachment?: {
|
|
102
|
+
type: "video" | "image" | "audio" | "text";
|
|
103
|
+
id: string;
|
|
104
|
+
name: string;
|
|
105
|
+
size: number;
|
|
106
|
+
url: string;
|
|
107
|
+
storagePath: string;
|
|
108
|
+
} | undefined;
|
|
109
|
+
}>, z.ZodObject<{
|
|
110
|
+
threadKind: z.ZodLiteral<"projectInvite">;
|
|
111
|
+
inviteId: z.ZodString;
|
|
112
|
+
text: z.ZodString;
|
|
113
|
+
replyTo: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
messageId: z.ZodString;
|
|
115
|
+
senderId: z.ZodString;
|
|
116
|
+
messagePreview: z.ZodString;
|
|
117
|
+
}, "strict", z.ZodTypeAny, {
|
|
118
|
+
messageId: string;
|
|
119
|
+
senderId: string;
|
|
120
|
+
messagePreview: string;
|
|
121
|
+
}, {
|
|
122
|
+
messageId: string;
|
|
123
|
+
senderId: string;
|
|
124
|
+
messagePreview: string;
|
|
125
|
+
}>>;
|
|
126
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
id: z.ZodString;
|
|
128
|
+
name: z.ZodString;
|
|
129
|
+
type: z.ZodEnum<["image", "video", "audio", "text"]>;
|
|
130
|
+
size: z.ZodNumber;
|
|
131
|
+
url: z.ZodString;
|
|
132
|
+
storagePath: z.ZodString;
|
|
133
|
+
}, "strict", z.ZodTypeAny, {
|
|
134
|
+
type: "video" | "image" | "audio" | "text";
|
|
135
|
+
id: string;
|
|
136
|
+
name: string;
|
|
137
|
+
size: number;
|
|
138
|
+
url: string;
|
|
139
|
+
storagePath: string;
|
|
140
|
+
}, {
|
|
141
|
+
type: "video" | "image" | "audio" | "text";
|
|
142
|
+
id: string;
|
|
143
|
+
name: string;
|
|
144
|
+
size: number;
|
|
145
|
+
url: string;
|
|
146
|
+
storagePath: string;
|
|
147
|
+
}>>;
|
|
148
|
+
}, "strict", z.ZodTypeAny, {
|
|
149
|
+
text: string;
|
|
150
|
+
threadKind: "projectInvite";
|
|
151
|
+
inviteId: string;
|
|
152
|
+
replyTo?: {
|
|
153
|
+
messageId: string;
|
|
154
|
+
senderId: string;
|
|
155
|
+
messagePreview: string;
|
|
156
|
+
} | undefined;
|
|
157
|
+
attachment?: {
|
|
158
|
+
type: "video" | "image" | "audio" | "text";
|
|
159
|
+
id: string;
|
|
160
|
+
name: string;
|
|
161
|
+
size: number;
|
|
162
|
+
url: string;
|
|
163
|
+
storagePath: string;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
text: string;
|
|
167
|
+
threadKind: "projectInvite";
|
|
168
|
+
inviteId: string;
|
|
169
|
+
replyTo?: {
|
|
170
|
+
messageId: string;
|
|
171
|
+
senderId: string;
|
|
172
|
+
messagePreview: string;
|
|
173
|
+
} | undefined;
|
|
174
|
+
attachment?: {
|
|
175
|
+
type: "video" | "image" | "audio" | "text";
|
|
176
|
+
id: string;
|
|
177
|
+
name: string;
|
|
178
|
+
size: number;
|
|
179
|
+
url: string;
|
|
180
|
+
storagePath: string;
|
|
181
|
+
} | undefined;
|
|
182
|
+
}>, z.ZodObject<{
|
|
183
|
+
threadKind: z.ZodLiteral<"adminSupport">;
|
|
184
|
+
adminMessageId: z.ZodString;
|
|
185
|
+
isUserReply: z.ZodBoolean;
|
|
186
|
+
text: z.ZodString;
|
|
187
|
+
replyTo: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
messageId: z.ZodString;
|
|
189
|
+
senderId: z.ZodString;
|
|
190
|
+
messagePreview: z.ZodString;
|
|
191
|
+
}, "strict", z.ZodTypeAny, {
|
|
192
|
+
messageId: string;
|
|
193
|
+
senderId: string;
|
|
194
|
+
messagePreview: string;
|
|
195
|
+
}, {
|
|
196
|
+
messageId: string;
|
|
197
|
+
senderId: string;
|
|
198
|
+
messagePreview: string;
|
|
199
|
+
}>>;
|
|
200
|
+
attachment: z.ZodOptional<z.ZodObject<{
|
|
201
|
+
id: z.ZodString;
|
|
202
|
+
name: z.ZodString;
|
|
203
|
+
type: z.ZodEnum<["image", "video", "audio", "text"]>;
|
|
204
|
+
size: z.ZodNumber;
|
|
205
|
+
url: z.ZodString;
|
|
206
|
+
storagePath: z.ZodString;
|
|
207
|
+
}, "strict", z.ZodTypeAny, {
|
|
208
|
+
type: "video" | "image" | "audio" | "text";
|
|
209
|
+
id: string;
|
|
210
|
+
name: string;
|
|
211
|
+
size: number;
|
|
212
|
+
url: string;
|
|
213
|
+
storagePath: string;
|
|
214
|
+
}, {
|
|
215
|
+
type: "video" | "image" | "audio" | "text";
|
|
216
|
+
id: string;
|
|
217
|
+
name: string;
|
|
218
|
+
size: number;
|
|
219
|
+
url: string;
|
|
220
|
+
storagePath: string;
|
|
221
|
+
}>>;
|
|
222
|
+
}, "strict", z.ZodTypeAny, {
|
|
223
|
+
text: string;
|
|
224
|
+
threadKind: "adminSupport";
|
|
225
|
+
adminMessageId: string;
|
|
226
|
+
isUserReply: boolean;
|
|
227
|
+
replyTo?: {
|
|
228
|
+
messageId: string;
|
|
229
|
+
senderId: string;
|
|
230
|
+
messagePreview: string;
|
|
231
|
+
} | undefined;
|
|
232
|
+
attachment?: {
|
|
233
|
+
type: "video" | "image" | "audio" | "text";
|
|
234
|
+
id: string;
|
|
235
|
+
name: string;
|
|
236
|
+
size: number;
|
|
237
|
+
url: string;
|
|
238
|
+
storagePath: string;
|
|
239
|
+
} | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
text: string;
|
|
242
|
+
threadKind: "adminSupport";
|
|
243
|
+
adminMessageId: string;
|
|
244
|
+
isUserReply: boolean;
|
|
245
|
+
replyTo?: {
|
|
246
|
+
messageId: string;
|
|
247
|
+
senderId: string;
|
|
248
|
+
messagePreview: string;
|
|
249
|
+
} | undefined;
|
|
250
|
+
attachment?: {
|
|
251
|
+
type: "video" | "image" | "audio" | "text";
|
|
252
|
+
id: string;
|
|
253
|
+
name: string;
|
|
254
|
+
size: number;
|
|
255
|
+
url: string;
|
|
256
|
+
storagePath: string;
|
|
257
|
+
} | undefined;
|
|
258
|
+
}>]>;
|
|
259
|
+
export type SendChatMessageInput = z.infer<typeof SendChatMessageInputSchema>;
|
|
260
|
+
export declare const StartAdminSupportThreadInputSchema: z.ZodObject<{
|
|
261
|
+
subject: z.ZodString;
|
|
262
|
+
initialMessage: z.ZodString;
|
|
263
|
+
}, "strict", z.ZodTypeAny, {
|
|
264
|
+
subject: string;
|
|
265
|
+
initialMessage: string;
|
|
266
|
+
}, {
|
|
267
|
+
subject: string;
|
|
268
|
+
initialMessage: string;
|
|
269
|
+
}>;
|
|
270
|
+
export type StartAdminSupportThreadInput = z.infer<typeof StartAdminSupportThreadInputSchema>;
|
|
271
|
+
export declare const UpdateChatChannelInputSchema: z.ZodObject<{
|
|
272
|
+
projectId: z.ZodString;
|
|
273
|
+
channelId: z.ZodString;
|
|
274
|
+
channelName: z.ZodOptional<z.ZodString>;
|
|
275
|
+
description: z.ZodOptional<z.ZodString>;
|
|
276
|
+
requiredRoles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
277
|
+
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
278
|
+
}, "strict", z.ZodTypeAny, {
|
|
279
|
+
projectId: string;
|
|
280
|
+
channelId: string;
|
|
281
|
+
channelName?: string | undefined;
|
|
282
|
+
description?: string | undefined;
|
|
283
|
+
requiredRoles?: string[] | undefined;
|
|
284
|
+
allowedUserIds?: string[] | undefined;
|
|
285
|
+
}, {
|
|
286
|
+
projectId: string;
|
|
287
|
+
channelId: string;
|
|
288
|
+
channelName?: string | undefined;
|
|
289
|
+
description?: string | undefined;
|
|
290
|
+
requiredRoles?: string[] | undefined;
|
|
291
|
+
allowedUserIds?: string[] | undefined;
|
|
292
|
+
}>;
|
|
293
|
+
export type UpdateChatChannelInput = z.infer<typeof UpdateChatChannelInputSchema>;
|
|
294
|
+
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/schemas/chat.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwBxB,eAAO,MAAM,6BAA6B;;;;;;;;;EAG/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,kCAAkC;;;;;;;;;EAGpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAO9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// ---------------------------------------------------------------------------
|
|
2
|
+
// TODO(chat-core): ReplyToSchema and ChatAttachmentSchema are parked here
|
|
3
|
+
// temporarily. They describe ChatMessage-shaped data and rightfully belong
|
|
4
|
+
// in @ttt-productions/chat-core, but chat-core does not yet have a Zod
|
|
5
|
+
// surface. Move them when chat-core grows one.
|
|
6
|
+
//
|
|
7
|
+
// See:
|
|
8
|
+
// - docs/design/architectural-preferences.md (Section 2)
|
|
9
|
+
// - the chat architecture review backlog
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
import { projectIdSchema, channelIdSchema, inviteIdSchema, messageIdSchema, } from './atoms.js';
|
|
13
|
+
import { MAX_CHAT_MESSAGE_LENGTH } from '../constants/chat.js';
|
|
14
|
+
const ReplyToSchema = z.object({
|
|
15
|
+
messageId: messageIdSchema,
|
|
16
|
+
senderId: z.string().min(1),
|
|
17
|
+
messagePreview: z.string(),
|
|
18
|
+
}).strict();
|
|
19
|
+
const ChatAttachmentSchema = z.object({
|
|
20
|
+
id: z.string().min(1),
|
|
21
|
+
name: z.string(),
|
|
22
|
+
type: z.enum(['image', 'video', 'audio', 'text']),
|
|
23
|
+
size: z.number(),
|
|
24
|
+
url: z.string(),
|
|
25
|
+
storagePath: z.string(),
|
|
26
|
+
}).strict();
|
|
27
|
+
export const ArchiveChatChannelInputSchema = z.object({
|
|
28
|
+
projectId: projectIdSchema,
|
|
29
|
+
channelId: channelIdSchema,
|
|
30
|
+
}).strict();
|
|
31
|
+
export const CreateChatChannelInputSchema = z.object({
|
|
32
|
+
projectId: projectIdSchema,
|
|
33
|
+
channelName: z.string().min(1).max(100),
|
|
34
|
+
description: z.string().max(500).optional(),
|
|
35
|
+
requiredRoles: z.array(z.string()),
|
|
36
|
+
allowedUserIds: z.array(z.string()),
|
|
37
|
+
}).strict();
|
|
38
|
+
export const SendChatMessageInputSchema = z.discriminatedUnion('threadKind', [
|
|
39
|
+
z.object({
|
|
40
|
+
threadKind: z.literal('projectChannel'),
|
|
41
|
+
projectId: projectIdSchema,
|
|
42
|
+
channelId: channelIdSchema,
|
|
43
|
+
text: z.string().max(MAX_CHAT_MESSAGE_LENGTH),
|
|
44
|
+
replyTo: ReplyToSchema.optional(),
|
|
45
|
+
attachment: ChatAttachmentSchema.optional(),
|
|
46
|
+
}).strict(),
|
|
47
|
+
z.object({
|
|
48
|
+
threadKind: z.literal('projectInvite'),
|
|
49
|
+
inviteId: inviteIdSchema,
|
|
50
|
+
text: z.string().max(MAX_CHAT_MESSAGE_LENGTH),
|
|
51
|
+
replyTo: ReplyToSchema.optional(),
|
|
52
|
+
attachment: ChatAttachmentSchema.optional(),
|
|
53
|
+
}).strict(),
|
|
54
|
+
z.object({
|
|
55
|
+
threadKind: z.literal('adminSupport'),
|
|
56
|
+
adminMessageId: messageIdSchema,
|
|
57
|
+
isUserReply: z.boolean(),
|
|
58
|
+
text: z.string().max(MAX_CHAT_MESSAGE_LENGTH),
|
|
59
|
+
replyTo: ReplyToSchema.optional(),
|
|
60
|
+
attachment: ChatAttachmentSchema.optional(),
|
|
61
|
+
}).strict(),
|
|
62
|
+
]);
|
|
63
|
+
export const StartAdminSupportThreadInputSchema = z.object({
|
|
64
|
+
subject: z.string().min(1).max(MAX_CHAT_MESSAGE_LENGTH),
|
|
65
|
+
initialMessage: z.string().min(1).max(MAX_CHAT_MESSAGE_LENGTH),
|
|
66
|
+
}).strict();
|
|
67
|
+
export const UpdateChatChannelInputSchema = z.object({
|
|
68
|
+
projectId: projectIdSchema,
|
|
69
|
+
channelId: channelIdSchema,
|
|
70
|
+
channelName: z.string().min(1).max(100).optional(),
|
|
71
|
+
description: z.string().max(500).optional(),
|
|
72
|
+
requiredRoles: z.array(z.string()).optional(),
|
|
73
|
+
allowedUserIds: z.array(z.string()).optional(),
|
|
74
|
+
}).strict();
|
|
75
|
+
//# sourceMappingURL=chat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/schemas/chat.ts"],"names":[],"mappings":"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"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
export * from './atoms.js';
|
|
2
2
|
export * from './share-operation.js';
|
|
3
|
+
export * from './admin.js';
|
|
4
|
+
export * from './chat.js';
|
|
5
|
+
export * from './jobs.js';
|
|
6
|
+
export * from './library.js';
|
|
7
|
+
export * from './opportunities.js';
|
|
8
|
+
export * from './payments.js';
|
|
9
|
+
export * from './project-management.js';
|
|
10
|
+
export * from './skills.js';
|
|
11
|
+
export * from './social.js';
|
|
12
|
+
export * from './system-message-actions.js';
|
|
13
|
+
export * from './users.js';
|
|
14
|
+
export * from './utility.js';
|
|
15
|
+
export * from './voting.js';
|
|
3
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
1
|
export * from './atoms.js';
|
|
2
2
|
export * from './share-operation.js';
|
|
3
|
+
export * from './admin.js';
|
|
4
|
+
export * from './chat.js';
|
|
5
|
+
export * from './jobs.js';
|
|
6
|
+
export * from './library.js';
|
|
7
|
+
export * from './opportunities.js';
|
|
8
|
+
export * from './payments.js';
|
|
9
|
+
export * from './project-management.js';
|
|
10
|
+
export * from './skills.js';
|
|
11
|
+
export * from './social.js';
|
|
12
|
+
export * from './system-message-actions.js';
|
|
13
|
+
export * from './users.js';
|
|
14
|
+
export * from './utility.js';
|
|
15
|
+
export * from './voting.js';
|
|
3
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AcceptJobApplicantInputSchema: z.ZodObject<{
|
|
3
|
+
jobId: z.ZodString;
|
|
4
|
+
replyId: z.ZodString;
|
|
5
|
+
sharesOffered: z.ZodNumber;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
sharesOffered: number;
|
|
8
|
+
jobId: string;
|
|
9
|
+
replyId: string;
|
|
10
|
+
}, {
|
|
11
|
+
sharesOffered: number;
|
|
12
|
+
jobId: string;
|
|
13
|
+
replyId: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type AcceptJobApplicantInput = z.infer<typeof AcceptJobApplicantInputSchema>;
|
|
16
|
+
export declare const CloseJobInputSchema: z.ZodObject<{
|
|
17
|
+
jobId: z.ZodString;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
jobId: string;
|
|
20
|
+
}, {
|
|
21
|
+
jobId: string;
|
|
22
|
+
}>;
|
|
23
|
+
export type CloseJobInput = z.infer<typeof CloseJobInputSchema>;
|
|
24
|
+
export declare const DeleteJobInputSchema: z.ZodObject<{
|
|
25
|
+
jobId: z.ZodString;
|
|
26
|
+
}, "strict", z.ZodTypeAny, {
|
|
27
|
+
jobId: string;
|
|
28
|
+
}, {
|
|
29
|
+
jobId: string;
|
|
30
|
+
}>;
|
|
31
|
+
export type DeleteJobInput = z.infer<typeof DeleteJobInputSchema>;
|
|
32
|
+
export declare const RejectJobApplicantInputSchema: z.ZodObject<{
|
|
33
|
+
jobId: z.ZodString;
|
|
34
|
+
replyId: z.ZodString;
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
|
+
jobId: string;
|
|
37
|
+
replyId: string;
|
|
38
|
+
}, {
|
|
39
|
+
jobId: string;
|
|
40
|
+
replyId: string;
|
|
41
|
+
}>;
|
|
42
|
+
export type RejectJobApplicantInput = z.infer<typeof RejectJobApplicantInputSchema>;
|
|
43
|
+
export declare const SetJobApplicantSavedInputSchema: z.ZodObject<{
|
|
44
|
+
jobId: z.ZodString;
|
|
45
|
+
replyId: z.ZodString;
|
|
46
|
+
saved: z.ZodBoolean;
|
|
47
|
+
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
jobId: string;
|
|
49
|
+
replyId: string;
|
|
50
|
+
saved: boolean;
|
|
51
|
+
}, {
|
|
52
|
+
jobId: string;
|
|
53
|
+
replyId: string;
|
|
54
|
+
saved: boolean;
|
|
55
|
+
}>;
|
|
56
|
+
export type SetJobApplicantSavedInput = z.infer<typeof SetJobApplicantSavedInputSchema>;
|
|
57
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/schemas/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;EAI/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,mBAAmB;;;;;;EAErB,CAAC;AACZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;EAEtB,CAAC;AACZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,6BAA6B;;;;;;;;;EAG/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;EAIjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { jobIdSchema, replyIdSchema } from './atoms.js';
|
|
3
|
+
export const AcceptJobApplicantInputSchema = z.object({
|
|
4
|
+
jobId: jobIdSchema,
|
|
5
|
+
replyId: replyIdSchema,
|
|
6
|
+
sharesOffered: z.number().int().min(1),
|
|
7
|
+
}).strict();
|
|
8
|
+
export const CloseJobInputSchema = z.object({
|
|
9
|
+
jobId: jobIdSchema,
|
|
10
|
+
}).strict();
|
|
11
|
+
export const DeleteJobInputSchema = z.object({
|
|
12
|
+
jobId: jobIdSchema,
|
|
13
|
+
}).strict();
|
|
14
|
+
export const RejectJobApplicantInputSchema = z.object({
|
|
15
|
+
jobId: jobIdSchema,
|
|
16
|
+
replyId: replyIdSchema,
|
|
17
|
+
}).strict();
|
|
18
|
+
export const SetJobApplicantSavedInputSchema = z.object({
|
|
19
|
+
jobId: jobIdSchema,
|
|
20
|
+
replyId: replyIdSchema,
|
|
21
|
+
saved: z.boolean(),
|
|
22
|
+
}).strict();
|
|
23
|
+
//# sourceMappingURL=jobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.js","sourceRoot":"","sources":["../../src/schemas/jobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAExD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,aAAa;IACtB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACvC,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,WAAW;CACnB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,KAAK,EAAE,WAAW;CACnB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,aAAa;CACvB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,KAAK,EAAE,WAAW;IAClB,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;CACnB,CAAC,CAAC,MAAM,EAAE,CAAC"}
|