@ttt-productions/ttt-core 0.6.6 → 0.7.0
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/business.d.ts +57 -57
- package/dist/constants/business.d.ts.map +1 -1
- package/dist/constants/business.js +71 -71
- package/dist/constants/business.js.map +1 -1
- package/dist/constants/options.d.ts +22 -22
- package/dist/constants/options.d.ts.map +1 -1
- package/dist/constants/options.js +28 -28
- package/dist/constants/options.js.map +1 -1
- package/dist/constants/pagination.d.ts +18 -18
- package/dist/constants/pagination.d.ts.map +1 -1
- package/dist/constants/pagination.js +20 -20
- package/dist/constants/pagination.js.map +1 -1
- package/dist/constants/retention.d.ts +5 -5
- package/dist/constants/retention.d.ts.map +1 -1
- package/dist/constants/retention.js +6 -6
- package/dist/constants/retention.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/media/atoms.d.ts +9 -9
- package/dist/media/atoms.d.ts.map +1 -1
- package/dist/media/atoms.js +3 -3
- package/dist/media/atoms.js.map +1 -1
- package/dist/media/domain-events.d.ts +701 -701
- package/dist/media/domain-events.d.ts.map +1 -1
- package/dist/media/domain-events.js +145 -145
- package/dist/media/domain-events.js.map +1 -1
- package/dist/media/file-origin.d.ts +1 -1
- package/dist/media/file-origin.d.ts.map +1 -1
- package/dist/media/file-origin.js +16 -16
- package/dist/media/file-origin.js.map +1 -1
- package/dist/media/hall-library-target-fields.d.ts +13 -0
- package/dist/media/hall-library-target-fields.d.ts.map +1 -0
- package/dist/media/hall-library-target-fields.js +21 -0
- package/dist/media/hall-library-target-fields.js.map +1 -0
- package/dist/media/index.d.ts +2 -2
- package/dist/media/index.d.ts.map +1 -1
- package/dist/media/index.js +2 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/pending-media.d.ts +5774 -5774
- package/dist/media/start-upload.d.ts +3 -3
- package/dist/media/target-info.d.ts +150 -150
- package/dist/media/target-info.d.ts.map +1 -1
- package/dist/media/target-info.js +80 -80
- package/dist/media/target-info.js.map +1 -1
- package/dist/media/ttt-media-specs.js +16 -16
- package/dist/media/ttt-media-specs.js.map +1 -1
- package/dist/media/upload-tray-display.js +16 -16
- package/dist/media/upload-tray-display.js.map +1 -1
- package/dist/paths/collection-groups.d.ts +7 -7
- package/dist/paths/collection-groups.js +7 -7
- package/dist/paths/collection-groups.js.map +1 -1
- package/dist/paths/collection-refs.d.ts +14 -14
- package/dist/paths/collection-refs.d.ts.map +1 -1
- package/dist/paths/collection-refs.js +20 -20
- package/dist/paths/collection-refs.js.map +1 -1
- package/dist/paths/collections.d.ts +31 -31
- package/dist/paths/collections.d.ts.map +1 -1
- package/dist/paths/collections.js +34 -34
- package/dist/paths/collections.js.map +1 -1
- package/dist/paths/path-builders.d.ts +32 -32
- package/dist/paths/path-builders.d.ts.map +1 -1
- package/dist/paths/path-builders.js +43 -43
- package/dist/paths/path-builders.js.map +1 -1
- package/dist/permissions/guild-standing-assignment-policy.d.ts +17 -0
- package/dist/permissions/guild-standing-assignment-policy.d.ts.map +1 -0
- package/dist/permissions/guild-standing-assignment-policy.js +36 -0
- package/dist/permissions/guild-standing-assignment-policy.js.map +1 -0
- package/dist/permissions/index.d.ts +2 -2
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +2 -2
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/work-project-permissions.d.ts +284 -0
- package/dist/permissions/work-project-permissions.d.ts.map +1 -0
- package/dist/permissions/work-project-permissions.js +294 -0
- package/dist/permissions/work-project-permissions.js.map +1 -0
- package/dist/schemas/{system-message-actions.d.ts → admin-dispatch-actions.d.ts} +15 -15
- package/dist/schemas/admin-dispatch-actions.d.ts.map +1 -0
- package/dist/schemas/{system-message-actions.js → admin-dispatch-actions.js} +7 -7
- package/dist/schemas/admin-dispatch-actions.js.map +1 -0
- package/dist/schemas/admin.d.ts +7 -7
- package/dist/schemas/admin.js +4 -4
- package/dist/schemas/admin.js.map +1 -1
- package/dist/schemas/atoms.d.ts +13 -12
- package/dist/schemas/atoms.d.ts.map +1 -1
- package/dist/schemas/atoms.js +13 -12
- package/dist/schemas/atoms.js.map +1 -1
- package/dist/schemas/auditions.d.ts +10 -0
- package/dist/schemas/auditions.d.ts.map +1 -0
- package/dist/schemas/auditions.js +6 -0
- package/dist/schemas/auditions.js.map +1 -0
- package/dist/schemas/chat.d.ts +47 -47
- package/dist/schemas/chat.d.ts.map +1 -1
- package/dist/schemas/chat.js +18 -18
- package/dist/schemas/chat.js.map +1 -1
- package/dist/schemas/commissions.d.ts +56 -0
- package/dist/schemas/commissions.d.ts.map +1 -0
- package/dist/schemas/commissions.js +29 -0
- package/dist/schemas/commissions.js.map +1 -0
- package/dist/schemas/craft-skills.d.ts +24 -0
- package/dist/schemas/craft-skills.d.ts.map +1 -0
- package/dist/schemas/craft-skills.js +11 -0
- package/dist/schemas/craft-skills.js.map +1 -0
- package/dist/schemas/{library.d.ts → hall-library.d.ts} +78 -78
- package/dist/schemas/hall-library.d.ts.map +1 -0
- package/dist/schemas/hall-library.js +86 -0
- package/dist/schemas/hall-library.js.map +1 -0
- package/dist/schemas/index.d.ts +7 -7
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +7 -7
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/payments.js +2 -2
- package/dist/schemas/payments.js.map +1 -1
- package/dist/schemas/social.d.ts +16 -16
- package/dist/schemas/social.d.ts.map +1 -1
- package/dist/schemas/social.js +3 -3
- package/dist/schemas/social.js.map +1 -1
- package/dist/schemas/{share-operation.d.ts → stake-share-operation.d.ts} +25 -25
- package/dist/schemas/stake-share-operation.d.ts.map +1 -0
- package/dist/schemas/stake-share-operation.js +83 -0
- package/dist/schemas/stake-share-operation.js.map +1 -0
- package/dist/schemas/users.d.ts +4 -4
- package/dist/schemas/users.d.ts.map +1 -1
- package/dist/schemas/users.js +2 -2
- package/dist/schemas/users.js.map +1 -1
- package/dist/schemas/utility.d.ts +14 -14
- package/dist/schemas/utility.d.ts.map +1 -1
- package/dist/schemas/utility.js +5 -5
- package/dist/schemas/utility.js.map +1 -1
- package/dist/schemas/voting.d.ts +10 -10
- package/dist/schemas/voting.d.ts.map +1 -1
- package/dist/schemas/voting.js +4 -4
- package/dist/schemas/voting.js.map +1 -1
- package/dist/schemas/work-project-management.d.ts +454 -0
- package/dist/schemas/work-project-management.d.ts.map +1 -0
- package/dist/schemas/work-project-management.js +98 -0
- package/dist/schemas/work-project-management.js.map +1 -0
- package/dist/ttt-keys.d.ts +68 -0
- package/dist/ttt-keys.d.ts.map +1 -0
- package/dist/ttt-keys.js +24 -0
- package/dist/ttt-keys.js.map +1 -0
- package/dist/types/admin.d.ts +1 -1
- package/dist/types/admin.d.ts.map +1 -1
- package/dist/types/audit.d.ts +1 -1
- package/dist/types/audit.d.ts.map +1 -1
- package/dist/types/commissions.d.ts +84 -0
- package/dist/types/commissions.d.ts.map +1 -0
- package/dist/types/commissions.js +3 -0
- package/dist/types/commissions.js.map +1 -0
- package/dist/types/content.d.ts +37 -37
- package/dist/types/content.d.ts.map +1 -1
- package/dist/types/content.js +4 -4
- package/dist/types/content.js.map +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/messaging.d.ts +16 -16
- package/dist/types/messaging.d.ts.map +1 -1
- package/dist/types/messaging.js +1 -1
- package/dist/types/messaging.js.map +1 -1
- package/dist/types/publicUser.d.ts +1 -1
- package/dist/types/publicUser.d.ts.map +1 -1
- package/dist/types/social.d.ts +13 -13
- package/dist/types/social.d.ts.map +1 -1
- package/dist/types/user.d.ts +17 -17
- package/dist/types/user.d.ts.map +1 -1
- package/dist/types/work-project.d.ts +85 -0
- package/dist/types/work-project.d.ts.map +1 -0
- package/dist/types/work-project.js +2 -0
- package/dist/types/work-project.js.map +1 -0
- package/dist/upload-variables/{apply-to-job-variables.d.ts → apply-to-commission-variables.d.ts} +6 -6
- package/dist/upload-variables/apply-to-commission-variables.d.ts.map +1 -0
- package/dist/upload-variables/apply-to-commission-variables.js +16 -0
- package/dist/upload-variables/apply-to-commission-variables.js.map +1 -0
- package/dist/upload-variables/{create-admin-opportunity-variables.d.ts → create-admin-audition-variables.d.ts} +9 -9
- package/dist/upload-variables/create-admin-audition-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-admin-opportunity-variables.js → create-admin-audition-variables.js} +4 -4
- package/dist/upload-variables/create-admin-audition-variables.js.map +1 -0
- package/dist/upload-variables/{create-opportunity-reply-variables.d.ts → create-audition-entry-variables.d.ts} +6 -6
- package/dist/upload-variables/create-audition-entry-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-opportunity-reply-variables.js → create-audition-entry-variables.js} +3 -3
- package/dist/upload-variables/create-audition-entry-variables.js.map +1 -0
- package/dist/upload-variables/{create-job-variables.d.ts → create-commission-variables.d.ts} +19 -19
- package/dist/upload-variables/create-commission-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-job-variables.js → create-commission-variables.js} +6 -6
- package/dist/upload-variables/create-commission-variables.js.map +1 -0
- package/dist/upload-variables/{create-project-opportunity-variables.d.ts → create-work-project-audition-variables.d.ts} +9 -9
- package/dist/upload-variables/create-work-project-audition-variables.d.ts.map +1 -0
- package/dist/upload-variables/{create-project-opportunity-variables.js → create-work-project-audition-variables.js} +4 -4
- package/dist/upload-variables/create-work-project-audition-variables.js.map +1 -0
- package/dist/upload-variables/index.d.ts +10 -10
- package/dist/upload-variables/index.d.ts.map +1 -1
- package/dist/upload-variables/index.js +10 -10
- package/dist/upload-variables/index.js.map +1 -1
- package/dist/upload-variables/{streetz-post-variables.d.ts → square-streetz-post-variables.d.ts} +8 -8
- package/dist/upload-variables/square-streetz-post-variables.d.ts.map +1 -0
- package/dist/upload-variables/{streetz-post-variables.js → square-streetz-post-variables.js} +2 -2
- package/dist/upload-variables/square-streetz-post-variables.js.map +1 -0
- package/dist/upload-variables/update-chapter-media-variables.d.ts +3 -3
- package/dist/upload-variables/update-chapter-media-variables.js +1 -1
- package/dist/upload-variables/update-chapter-media-variables.js.map +1 -1
- package/dist/upload-variables/{update-show-media-variables.d.ts → update-episode-media-variables.d.ts} +9 -9
- package/dist/upload-variables/update-episode-media-variables.d.ts.map +1 -0
- package/dist/upload-variables/{update-show-media-variables.js → update-episode-media-variables.js} +4 -4
- package/dist/upload-variables/update-episode-media-variables.js.map +1 -0
- package/dist/upload-variables/update-tale-cover-photo-variables.d.ts +3 -3
- package/dist/upload-variables/update-tale-cover-photo-variables.js +1 -1
- package/dist/upload-variables/update-tale-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/update-television-cover-photo-variables.d.ts +3 -3
- package/dist/upload-variables/update-television-cover-photo-variables.js +1 -1
- package/dist/upload-variables/update-television-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/{update-song-media-variables.d.ts → update-track-media-variables.d.ts} +9 -9
- package/dist/upload-variables/update-track-media-variables.d.ts.map +1 -0
- package/dist/upload-variables/{update-song-media-variables.js → update-track-media-variables.js} +4 -4
- package/dist/upload-variables/update-track-media-variables.js.map +1 -0
- package/dist/upload-variables/update-tune-cover-photo-variables.d.ts +3 -3
- package/dist/upload-variables/update-tune-cover-photo-variables.js +1 -1
- package/dist/upload-variables/update-tune-cover-photo-variables.js.map +1 -1
- package/dist/upload-variables/{upload-skill-variables.d.ts → upload-craft-skill-variables.d.ts} +3 -3
- package/dist/upload-variables/upload-craft-skill-variables.d.ts.map +1 -0
- package/dist/upload-variables/{upload-skill-variables.js → upload-craft-skill-variables.js} +2 -2
- package/dist/upload-variables/upload-craft-skill-variables.js.map +1 -0
- package/dist/upload-variables/{upload-project-file-variables.d.ts → upload-work-asset-variables.d.ts} +10 -10
- package/dist/upload-variables/upload-work-asset-variables.d.ts.map +1 -0
- package/dist/upload-variables/{upload-project-file-variables.js → upload-work-asset-variables.js} +4 -4
- package/dist/upload-variables/upload-work-asset-variables.js.map +1 -0
- package/package.json +6 -1
- package/dist/media/library-target-fields.d.ts +0 -13
- package/dist/media/library-target-fields.d.ts.map +0 -1
- package/dist/media/library-target-fields.js +0 -21
- package/dist/media/library-target-fields.js.map +0 -1
- package/dist/permissions/project-permissions.d.ts +0 -264
- package/dist/permissions/project-permissions.d.ts.map +0 -1
- package/dist/permissions/project-permissions.js +0 -268
- package/dist/permissions/project-permissions.js.map +0 -1
- package/dist/permissions/role-assignment-policy.d.ts +0 -17
- package/dist/permissions/role-assignment-policy.d.ts.map +0 -1
- package/dist/permissions/role-assignment-policy.js +0 -32
- package/dist/permissions/role-assignment-policy.js.map +0 -1
- package/dist/schemas/jobs.d.ts +0 -56
- package/dist/schemas/jobs.d.ts.map +0 -1
- package/dist/schemas/jobs.js +0 -29
- package/dist/schemas/jobs.js.map +0 -1
- package/dist/schemas/library.d.ts.map +0 -1
- package/dist/schemas/library.js +0 -86
- package/dist/schemas/library.js.map +0 -1
- package/dist/schemas/opportunities.d.ts +0 -10
- package/dist/schemas/opportunities.d.ts.map +0 -1
- package/dist/schemas/opportunities.js +0 -6
- package/dist/schemas/opportunities.js.map +0 -1
- package/dist/schemas/project-management.d.ts +0 -454
- package/dist/schemas/project-management.d.ts.map +0 -1
- package/dist/schemas/project-management.js +0 -98
- package/dist/schemas/project-management.js.map +0 -1
- package/dist/schemas/share-operation.d.ts.map +0 -1
- package/dist/schemas/share-operation.js +0 -91
- package/dist/schemas/share-operation.js.map +0 -1
- package/dist/schemas/skills.d.ts +0 -24
- package/dist/schemas/skills.d.ts.map +0 -1
- package/dist/schemas/skills.js +0 -11
- package/dist/schemas/skills.js.map +0 -1
- package/dist/schemas/system-message-actions.d.ts.map +0 -1
- package/dist/schemas/system-message-actions.js.map +0 -1
- package/dist/types/jobs.d.ts +0 -84
- package/dist/types/jobs.d.ts.map +0 -1
- package/dist/types/jobs.js +0 -3
- package/dist/types/jobs.js.map +0 -1
- package/dist/types/project.d.ts +0 -85
- package/dist/types/project.d.ts.map +0 -1
- package/dist/types/project.js +0 -2
- package/dist/types/project.js.map +0 -1
- package/dist/upload-variables/apply-to-job-variables.d.ts.map +0 -1
- package/dist/upload-variables/apply-to-job-variables.js +0 -16
- package/dist/upload-variables/apply-to-job-variables.js.map +0 -1
- package/dist/upload-variables/create-admin-opportunity-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-admin-opportunity-variables.js.map +0 -1
- package/dist/upload-variables/create-job-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-job-variables.js.map +0 -1
- package/dist/upload-variables/create-opportunity-reply-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-opportunity-reply-variables.js.map +0 -1
- package/dist/upload-variables/create-project-opportunity-variables.d.ts.map +0 -1
- package/dist/upload-variables/create-project-opportunity-variables.js.map +0 -1
- package/dist/upload-variables/streetz-post-variables.d.ts.map +0 -1
- package/dist/upload-variables/streetz-post-variables.js.map +0 -1
- package/dist/upload-variables/update-show-media-variables.d.ts.map +0 -1
- package/dist/upload-variables/update-show-media-variables.js.map +0 -1
- package/dist/upload-variables/update-song-media-variables.d.ts.map +0 -1
- package/dist/upload-variables/update-song-media-variables.js.map +0 -1
- package/dist/upload-variables/upload-project-file-variables.d.ts.map +0 -1
- package/dist/upload-variables/upload-project-file-variables.js.map +0 -1
- package/dist/upload-variables/upload-skill-variables.d.ts.map +0 -1
- package/dist/upload-variables/upload-skill-variables.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditions.js","sourceRoot":"","sources":["../../src/schemas/auditions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAE9C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
package/dist/schemas/chat.d.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const ArchiveGuildChatChannelInputSchema: z.ZodObject<{
|
|
3
|
+
workProjectId: z.ZodString;
|
|
4
|
+
guildChatChannelId: z.ZodString;
|
|
5
5
|
}, "strict", z.ZodTypeAny, {
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
workProjectId: string;
|
|
7
|
+
guildChatChannelId: string;
|
|
8
8
|
}, {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
workProjectId: string;
|
|
10
|
+
guildChatChannelId: string;
|
|
11
11
|
}>;
|
|
12
|
-
export type
|
|
13
|
-
export declare const
|
|
14
|
-
|
|
12
|
+
export type ArchiveGuildChatChannelInput = z.infer<typeof ArchiveGuildChatChannelInputSchema>;
|
|
13
|
+
export declare const CreateGuildChatChannelInputSchema: z.ZodObject<{
|
|
14
|
+
workProjectId: z.ZodString;
|
|
15
15
|
channelName: z.ZodString;
|
|
16
16
|
description: z.ZodOptional<z.ZodString>;
|
|
17
|
-
|
|
17
|
+
requiredGuildStandings: z.ZodArray<z.ZodString, "many">;
|
|
18
18
|
allowedUserIds: z.ZodArray<z.ZodString, "many">;
|
|
19
19
|
}, "strict", z.ZodTypeAny, {
|
|
20
|
-
|
|
20
|
+
workProjectId: string;
|
|
21
21
|
channelName: string;
|
|
22
|
-
|
|
22
|
+
requiredGuildStandings: string[];
|
|
23
23
|
allowedUserIds: string[];
|
|
24
24
|
description?: string | undefined;
|
|
25
25
|
}, {
|
|
26
|
-
|
|
26
|
+
workProjectId: string;
|
|
27
27
|
channelName: string;
|
|
28
|
-
|
|
28
|
+
requiredGuildStandings: string[];
|
|
29
29
|
allowedUserIds: string[];
|
|
30
30
|
description?: string | undefined;
|
|
31
31
|
}>;
|
|
32
|
-
export type
|
|
33
|
-
export declare const
|
|
34
|
-
threadKind: z.ZodLiteral<"
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
export type CreateGuildChatChannelInput = z.infer<typeof CreateGuildChatChannelInputSchema>;
|
|
33
|
+
export declare const SendGuildChatMessageInputSchema: z.ZodDiscriminatedUnion<"threadKind", [z.ZodObject<{
|
|
34
|
+
threadKind: z.ZodLiteral<"guildChatChannel">;
|
|
35
|
+
workProjectId: z.ZodString;
|
|
36
|
+
guildChatChannelId: z.ZodString;
|
|
37
37
|
text: z.ZodString;
|
|
38
38
|
replyTo: z.ZodOptional<z.ZodObject<{
|
|
39
39
|
messageId: z.ZodString;
|
|
@@ -71,10 +71,10 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
71
71
|
storagePath: string;
|
|
72
72
|
}>>;
|
|
73
73
|
}, "strict", z.ZodTypeAny, {
|
|
74
|
-
|
|
74
|
+
workProjectId: string;
|
|
75
75
|
text: string;
|
|
76
|
-
threadKind: "
|
|
77
|
-
|
|
76
|
+
threadKind: "guildChatChannel";
|
|
77
|
+
guildChatChannelId: string;
|
|
78
78
|
replyTo?: {
|
|
79
79
|
messageId: string;
|
|
80
80
|
senderId: string;
|
|
@@ -89,10 +89,10 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
89
89
|
storagePath: string;
|
|
90
90
|
} | undefined;
|
|
91
91
|
}, {
|
|
92
|
-
|
|
92
|
+
workProjectId: string;
|
|
93
93
|
text: string;
|
|
94
|
-
threadKind: "
|
|
95
|
-
|
|
94
|
+
threadKind: "guildChatChannel";
|
|
95
|
+
guildChatChannelId: string;
|
|
96
96
|
replyTo?: {
|
|
97
97
|
messageId: string;
|
|
98
98
|
senderId: string;
|
|
@@ -107,8 +107,8 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
107
107
|
storagePath: string;
|
|
108
108
|
} | undefined;
|
|
109
109
|
}>, z.ZodObject<{
|
|
110
|
-
threadKind: z.ZodLiteral<"
|
|
111
|
-
|
|
110
|
+
threadKind: z.ZodLiteral<"guildInvite">;
|
|
111
|
+
guildInviteId: z.ZodString;
|
|
112
112
|
text: z.ZodString;
|
|
113
113
|
replyTo: z.ZodOptional<z.ZodObject<{
|
|
114
114
|
messageId: z.ZodString;
|
|
@@ -147,8 +147,8 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
147
147
|
}>>;
|
|
148
148
|
}, "strict", z.ZodTypeAny, {
|
|
149
149
|
text: string;
|
|
150
|
-
|
|
151
|
-
threadKind: "
|
|
150
|
+
guildInviteId: string;
|
|
151
|
+
threadKind: "guildInvite";
|
|
152
152
|
replyTo?: {
|
|
153
153
|
messageId: string;
|
|
154
154
|
senderId: string;
|
|
@@ -164,8 +164,8 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
164
164
|
} | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
text: string;
|
|
167
|
-
|
|
168
|
-
threadKind: "
|
|
167
|
+
guildInviteId: string;
|
|
168
|
+
threadKind: "guildInvite";
|
|
169
169
|
replyTo?: {
|
|
170
170
|
messageId: string;
|
|
171
171
|
senderId: string;
|
|
@@ -181,7 +181,7 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
181
181
|
} | undefined;
|
|
182
182
|
}>, z.ZodObject<{
|
|
183
183
|
threadKind: z.ZodLiteral<"adminSupport">;
|
|
184
|
-
|
|
184
|
+
adminDispatchId: z.ZodString;
|
|
185
185
|
isUserReply: z.ZodBoolean;
|
|
186
186
|
text: z.ZodString;
|
|
187
187
|
replyTo: z.ZodOptional<z.ZodObject<{
|
|
@@ -221,8 +221,8 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
221
221
|
}>>;
|
|
222
222
|
}, "strict", z.ZodTypeAny, {
|
|
223
223
|
text: string;
|
|
224
|
+
adminDispatchId: string;
|
|
224
225
|
threadKind: "adminSupport";
|
|
225
|
-
adminMessageId: string;
|
|
226
226
|
isUserReply: boolean;
|
|
227
227
|
replyTo?: {
|
|
228
228
|
messageId: string;
|
|
@@ -239,8 +239,8 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
239
239
|
} | undefined;
|
|
240
240
|
}, {
|
|
241
241
|
text: string;
|
|
242
|
+
adminDispatchId: string;
|
|
242
243
|
threadKind: "adminSupport";
|
|
243
|
-
adminMessageId: string;
|
|
244
244
|
isUserReply: boolean;
|
|
245
245
|
replyTo?: {
|
|
246
246
|
messageId: string;
|
|
@@ -256,7 +256,7 @@ export declare const SendChatMessageInputSchema: z.ZodDiscriminatedUnion<"thread
|
|
|
256
256
|
storagePath: string;
|
|
257
257
|
} | undefined;
|
|
258
258
|
}>]>;
|
|
259
|
-
export type
|
|
259
|
+
export type SendGuildChatMessageInput = z.infer<typeof SendGuildChatMessageInputSchema>;
|
|
260
260
|
export declare const StartAdminSupportThreadInputSchema: z.ZodObject<{
|
|
261
261
|
subject: z.ZodString;
|
|
262
262
|
initialMessage: z.ZodString;
|
|
@@ -268,27 +268,27 @@ export declare const StartAdminSupportThreadInputSchema: z.ZodObject<{
|
|
|
268
268
|
initialMessage: string;
|
|
269
269
|
}>;
|
|
270
270
|
export type StartAdminSupportThreadInput = z.infer<typeof StartAdminSupportThreadInputSchema>;
|
|
271
|
-
export declare const
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
export declare const UpdateGuildChatChannelInputSchema: z.ZodObject<{
|
|
272
|
+
workProjectId: z.ZodString;
|
|
273
|
+
guildChatChannelId: z.ZodString;
|
|
274
274
|
channelName: z.ZodOptional<z.ZodString>;
|
|
275
275
|
description: z.ZodOptional<z.ZodString>;
|
|
276
|
-
|
|
276
|
+
requiredGuildStandings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
277
277
|
allowedUserIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
278
278
|
}, "strict", z.ZodTypeAny, {
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
workProjectId: string;
|
|
280
|
+
guildChatChannelId: string;
|
|
281
281
|
description?: string | undefined;
|
|
282
282
|
channelName?: string | undefined;
|
|
283
|
-
|
|
283
|
+
requiredGuildStandings?: string[] | undefined;
|
|
284
284
|
allowedUserIds?: string[] | undefined;
|
|
285
285
|
}, {
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
workProjectId: string;
|
|
287
|
+
guildChatChannelId: string;
|
|
288
288
|
description?: string | undefined;
|
|
289
289
|
channelName?: string | undefined;
|
|
290
|
-
|
|
290
|
+
requiredGuildStandings?: string[] | undefined;
|
|
291
291
|
allowedUserIds?: string[] | undefined;
|
|
292
292
|
}>;
|
|
293
|
-
export type
|
|
293
|
+
export type UpdateGuildChatChannelInput = z.infer<typeof UpdateGuildChatChannelInputSchema>;
|
|
294
294
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/schemas/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/schemas/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,kCAAkC;;;;;;;;;EAGpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;EAMnC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwB1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,kCAAkC;;;;;;;;;EAGpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
|
package/dist/schemas/chat.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { workProjectIdSchema, guildChatChannelIdSchema, guildInviteIdSchema, adminDispatchIdSchema, } from './atoms.js';
|
|
3
3
|
import { MAX_CHAT_MESSAGE_LENGTH } from '../constants/chat.js';
|
|
4
4
|
import { ReplyToSchema, ChatAttachmentSchema, } from '@ttt-productions/chat-schemas';
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export const ArchiveGuildChatChannelInputSchema = z.object({
|
|
6
|
+
workProjectId: workProjectIdSchema,
|
|
7
|
+
guildChatChannelId: guildChatChannelIdSchema,
|
|
8
8
|
}).strict();
|
|
9
|
-
export const
|
|
10
|
-
|
|
9
|
+
export const CreateGuildChatChannelInputSchema = z.object({
|
|
10
|
+
workProjectId: workProjectIdSchema,
|
|
11
11
|
channelName: z.string().min(1).max(100),
|
|
12
12
|
description: z.string().max(500).optional(),
|
|
13
|
-
|
|
13
|
+
requiredGuildStandings: z.array(z.string()),
|
|
14
14
|
allowedUserIds: z.array(z.string()),
|
|
15
15
|
}).strict();
|
|
16
|
-
export const
|
|
16
|
+
export const SendGuildChatMessageInputSchema = z.discriminatedUnion('threadKind', [
|
|
17
17
|
z.object({
|
|
18
|
-
threadKind: z.literal('
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
threadKind: z.literal('guildChatChannel'),
|
|
19
|
+
workProjectId: workProjectIdSchema,
|
|
20
|
+
guildChatChannelId: guildChatChannelIdSchema,
|
|
21
21
|
text: z.string().max(MAX_CHAT_MESSAGE_LENGTH),
|
|
22
22
|
replyTo: ReplyToSchema.optional(),
|
|
23
23
|
attachment: ChatAttachmentSchema.optional(),
|
|
24
24
|
}).strict(),
|
|
25
25
|
z.object({
|
|
26
|
-
threadKind: z.literal('
|
|
27
|
-
|
|
26
|
+
threadKind: z.literal('guildInvite'),
|
|
27
|
+
guildInviteId: guildInviteIdSchema,
|
|
28
28
|
text: z.string().max(MAX_CHAT_MESSAGE_LENGTH),
|
|
29
29
|
replyTo: ReplyToSchema.optional(),
|
|
30
30
|
attachment: ChatAttachmentSchema.optional(),
|
|
31
31
|
}).strict(),
|
|
32
32
|
z.object({
|
|
33
33
|
threadKind: z.literal('adminSupport'),
|
|
34
|
-
|
|
34
|
+
adminDispatchId: adminDispatchIdSchema,
|
|
35
35
|
isUserReply: z.boolean(),
|
|
36
36
|
text: z.string().max(MAX_CHAT_MESSAGE_LENGTH),
|
|
37
37
|
replyTo: ReplyToSchema.optional(),
|
|
@@ -42,12 +42,12 @@ export const StartAdminSupportThreadInputSchema = z.object({
|
|
|
42
42
|
subject: z.string().min(1).max(MAX_CHAT_MESSAGE_LENGTH),
|
|
43
43
|
initialMessage: z.string().min(1).max(MAX_CHAT_MESSAGE_LENGTH),
|
|
44
44
|
}).strict();
|
|
45
|
-
export const
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
export const UpdateGuildChatChannelInputSchema = z.object({
|
|
46
|
+
workProjectId: workProjectIdSchema,
|
|
47
|
+
guildChatChannelId: guildChatChannelIdSchema,
|
|
48
48
|
channelName: z.string().min(1).max(100).optional(),
|
|
49
49
|
description: z.string().max(500).optional(),
|
|
50
|
-
|
|
50
|
+
requiredGuildStandings: z.array(z.string()).optional(),
|
|
51
51
|
allowedUserIds: z.array(z.string()).optional(),
|
|
52
52
|
}).strict();
|
|
53
53
|
//# sourceMappingURL=chat.js.map
|
package/dist/schemas/chat.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/schemas/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/schemas/chat.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CommissionProposalStatusSchema: z.ZodEnum<["open", "invited", "accepted", "rejected"]>;
|
|
3
|
+
export type CommissionProposalStatus = z.infer<typeof CommissionProposalStatusSchema>;
|
|
4
|
+
export declare const CloseCommissionInputSchema: z.ZodObject<{
|
|
5
|
+
commissionListingId: z.ZodString;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
commissionListingId: string;
|
|
8
|
+
}, {
|
|
9
|
+
commissionListingId: string;
|
|
10
|
+
}>;
|
|
11
|
+
export type CloseCommissionInput = z.infer<typeof CloseCommissionInputSchema>;
|
|
12
|
+
export declare const DeleteCommissionInputSchema: z.ZodObject<{
|
|
13
|
+
commissionListingId: z.ZodString;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
commissionListingId: string;
|
|
16
|
+
}, {
|
|
17
|
+
commissionListingId: string;
|
|
18
|
+
}>;
|
|
19
|
+
export type DeleteCommissionInput = z.infer<typeof DeleteCommissionInputSchema>;
|
|
20
|
+
export declare const RejectCommissionProposalInputSchema: z.ZodObject<{
|
|
21
|
+
commissionListingId: z.ZodString;
|
|
22
|
+
commissionProposalId: z.ZodString;
|
|
23
|
+
}, "strict", z.ZodTypeAny, {
|
|
24
|
+
commissionListingId: string;
|
|
25
|
+
commissionProposalId: string;
|
|
26
|
+
}, {
|
|
27
|
+
commissionListingId: string;
|
|
28
|
+
commissionProposalId: string;
|
|
29
|
+
}>;
|
|
30
|
+
export type RejectCommissionProposalInput = z.infer<typeof RejectCommissionProposalInputSchema>;
|
|
31
|
+
export declare const SetCommissionProposalSavedInputSchema: z.ZodObject<{
|
|
32
|
+
commissionListingId: z.ZodString;
|
|
33
|
+
commissionProposalId: z.ZodString;
|
|
34
|
+
saved: z.ZodBoolean;
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
|
+
commissionListingId: string;
|
|
37
|
+
commissionProposalId: string;
|
|
38
|
+
saved: boolean;
|
|
39
|
+
}, {
|
|
40
|
+
commissionListingId: string;
|
|
41
|
+
commissionProposalId: string;
|
|
42
|
+
saved: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
export type SetCommissionProposalSavedInput = z.infer<typeof SetCommissionProposalSavedInputSchema>;
|
|
45
|
+
export declare const CreateCommissionProposalTextInputSchema: z.ZodObject<{
|
|
46
|
+
commissionListingId: z.ZodString;
|
|
47
|
+
coverLetterText: z.ZodString;
|
|
48
|
+
}, "strict", z.ZodTypeAny, {
|
|
49
|
+
commissionListingId: string;
|
|
50
|
+
coverLetterText: string;
|
|
51
|
+
}, {
|
|
52
|
+
commissionListingId: string;
|
|
53
|
+
coverLetterText: string;
|
|
54
|
+
}>;
|
|
55
|
+
export type CreateCommissionProposalTextInput = z.infer<typeof CreateCommissionProposalTextInputSchema>;
|
|
56
|
+
//# sourceMappingURL=commissions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commissions.d.ts","sourceRoot":"","sources":["../../src/schemas/commissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B,wDAKzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,0BAA0B;;;;;;EAE5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;EAE7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,mCAAmC;;;;;;;;;EAGrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,eAAO,MAAM,qCAAqC;;;;;;;;;;;;EAIvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC;AAEpG,eAAO,MAAM,uCAAuC;;;;;;;;;EAGzC,CAAC;AACZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { commissionListingIdSchema, commissionProposalIdSchema } from './atoms.js';
|
|
3
|
+
import { MAX_COMMISSION_DESCRIPTION_LENGTH } from '../constants/business.js';
|
|
4
|
+
export const CommissionProposalStatusSchema = z.enum([
|
|
5
|
+
'open',
|
|
6
|
+
'invited',
|
|
7
|
+
'accepted',
|
|
8
|
+
'rejected',
|
|
9
|
+
]);
|
|
10
|
+
export const CloseCommissionInputSchema = z.object({
|
|
11
|
+
commissionListingId: commissionListingIdSchema,
|
|
12
|
+
}).strict();
|
|
13
|
+
export const DeleteCommissionInputSchema = z.object({
|
|
14
|
+
commissionListingId: commissionListingIdSchema,
|
|
15
|
+
}).strict();
|
|
16
|
+
export const RejectCommissionProposalInputSchema = z.object({
|
|
17
|
+
commissionListingId: commissionListingIdSchema,
|
|
18
|
+
commissionProposalId: commissionProposalIdSchema,
|
|
19
|
+
}).strict();
|
|
20
|
+
export const SetCommissionProposalSavedInputSchema = z.object({
|
|
21
|
+
commissionListingId: commissionListingIdSchema,
|
|
22
|
+
commissionProposalId: commissionProposalIdSchema,
|
|
23
|
+
saved: z.boolean(),
|
|
24
|
+
}).strict();
|
|
25
|
+
export const CreateCommissionProposalTextInputSchema = z.object({
|
|
26
|
+
commissionListingId: commissionListingIdSchema,
|
|
27
|
+
coverLetterText: z.string().min(1).max(MAX_COMMISSION_DESCRIPTION_LENGTH),
|
|
28
|
+
}).strict();
|
|
29
|
+
//# sourceMappingURL=commissions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commissions.js","sourceRoot":"","sources":["../../src/schemas/commissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC;AACnF,OAAO,EAAE,iCAAiC,EAAE,MAAM,0BAA0B,CAAC;AAE7E,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,IAAI,CAAC;IACnD,MAAM;IACN,SAAS;IACT,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,mBAAmB,EAAE,yBAAyB;CAC/C,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,mBAAmB,EAAE,yBAAyB;CAC/C,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,mBAAmB,EAAE,yBAAyB;IAC9C,oBAAoB,EAAE,0BAA0B;CACjD,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,mBAAmB,EAAE,yBAAyB;IAC9C,oBAAoB,EAAE,0BAA0B;IAChD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;CACnB,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,mBAAmB,EAAE,yBAAyB;IAC9C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,iCAAiC,CAAC;CAC1E,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const DeleteCraftSkillInputSchema: z.ZodObject<{
|
|
3
|
+
craftSkillId: z.ZodString;
|
|
4
|
+
}, "strict", z.ZodTypeAny, {
|
|
5
|
+
craftSkillId: string;
|
|
6
|
+
}, {
|
|
7
|
+
craftSkillId: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type DeleteCraftSkillInput = z.infer<typeof DeleteCraftSkillInputSchema>;
|
|
10
|
+
export declare const UpdateCraftSkillTagsInputSchema: z.ZodObject<{
|
|
11
|
+
craftSkillId: z.ZodString;
|
|
12
|
+
tag: z.ZodString;
|
|
13
|
+
action: z.ZodEnum<["add", "remove"]>;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
craftSkillId: string;
|
|
16
|
+
action: "add" | "remove";
|
|
17
|
+
tag: string;
|
|
18
|
+
}, {
|
|
19
|
+
craftSkillId: string;
|
|
20
|
+
action: "add" | "remove";
|
|
21
|
+
tag: string;
|
|
22
|
+
}>;
|
|
23
|
+
export type UpdateCraftSkillTagsInput = z.infer<typeof UpdateCraftSkillTagsInputSchema>;
|
|
24
|
+
//# sourceMappingURL=craft-skills.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"craft-skills.d.ts","sourceRoot":"","sources":["../../src/schemas/craft-skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,2BAA2B;;;;;;EAE7B,CAAC;AACZ,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;EAIjC,CAAC;AACZ,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { craftSkillIdSchema, addRemoveActionSchema } from './atoms.js';
|
|
3
|
+
export const DeleteCraftSkillInputSchema = z.object({
|
|
4
|
+
craftSkillId: craftSkillIdSchema,
|
|
5
|
+
}).strict();
|
|
6
|
+
export const UpdateCraftSkillTagsInputSchema = z.object({
|
|
7
|
+
craftSkillId: craftSkillIdSchema,
|
|
8
|
+
tag: z.string().min(1),
|
|
9
|
+
action: addRemoveActionSchema,
|
|
10
|
+
}).strict();
|
|
11
|
+
//# sourceMappingURL=craft-skills.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"craft-skills.js","sourceRoot":"","sources":["../../src/schemas/craft-skills.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAEvE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,YAAY,EAAE,kBAAkB;CACjC,CAAC,CAAC,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,YAAY,EAAE,kBAAkB;IAChC,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACtB,MAAM,EAAE,qBAAqB;CAC9B,CAAC,CAAC,MAAM,EAAE,CAAC"}
|