@ttt-productions/ttt-core 0.2.13 → 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.
Files changed (75) hide show
  1. package/dist/constants/chat.d.ts +12 -0
  2. package/dist/constants/chat.d.ts.map +1 -0
  3. package/dist/constants/chat.js +12 -0
  4. package/dist/constants/chat.js.map +1 -0
  5. package/dist/constants/index.d.ts +1 -0
  6. package/dist/constants/index.d.ts.map +1 -1
  7. package/dist/constants/index.js +1 -0
  8. package/dist/constants/index.js.map +1 -1
  9. package/dist/schemas/admin.d.ts +44 -0
  10. package/dist/schemas/admin.d.ts.map +1 -0
  11. package/dist/schemas/admin.js +24 -0
  12. package/dist/schemas/admin.js.map +1 -0
  13. package/dist/schemas/atoms.d.ts +24 -0
  14. package/dist/schemas/atoms.d.ts.map +1 -0
  15. package/dist/schemas/atoms.js +29 -0
  16. package/dist/schemas/atoms.js.map +1 -0
  17. package/dist/schemas/chat.d.ts +294 -0
  18. package/dist/schemas/chat.d.ts.map +1 -0
  19. package/dist/schemas/chat.js +75 -0
  20. package/dist/schemas/chat.js.map +1 -0
  21. package/dist/schemas/index.d.ts +16 -0
  22. package/dist/schemas/index.d.ts.map +1 -0
  23. package/dist/schemas/index.js +16 -0
  24. package/dist/schemas/index.js.map +1 -0
  25. package/dist/schemas/jobs.d.ts +57 -0
  26. package/dist/schemas/jobs.d.ts.map +1 -0
  27. package/dist/schemas/jobs.js +23 -0
  28. package/dist/schemas/jobs.js.map +1 -0
  29. package/dist/schemas/library.d.ts +240 -0
  30. package/dist/schemas/library.d.ts.map +1 -0
  31. package/dist/schemas/library.js +88 -0
  32. package/dist/schemas/library.js.map +1 -0
  33. package/dist/schemas/opportunities.d.ts +10 -0
  34. package/dist/schemas/opportunities.d.ts.map +1 -0
  35. package/dist/schemas/opportunities.js +6 -0
  36. package/dist/schemas/opportunities.js.map +1 -0
  37. package/dist/schemas/payments.d.ts +13 -0
  38. package/dist/schemas/payments.d.ts.map +1 -0
  39. package/dist/schemas/payments.js +6 -0
  40. package/dist/schemas/payments.js.map +1 -0
  41. package/dist/schemas/project-management.d.ts +195 -0
  42. package/dist/schemas/project-management.d.ts.map +1 -0
  43. package/dist/schemas/project-management.js +65 -0
  44. package/dist/schemas/project-management.js.map +1 -0
  45. package/dist/schemas/share-operation.d.ts +376 -0
  46. package/dist/schemas/share-operation.d.ts.map +1 -0
  47. package/dist/schemas/share-operation.js +61 -0
  48. package/dist/schemas/share-operation.js.map +1 -0
  49. package/dist/schemas/skills.d.ts +24 -0
  50. package/dist/schemas/skills.d.ts.map +1 -0
  51. package/dist/schemas/skills.js +11 -0
  52. package/dist/schemas/skills.js.map +1 -0
  53. package/dist/schemas/social.d.ts +18 -0
  54. package/dist/schemas/social.d.ts.map +1 -0
  55. package/dist/schemas/social.js +8 -0
  56. package/dist/schemas/social.js.map +1 -0
  57. package/dist/schemas/system-message-actions.d.ts +38 -0
  58. package/dist/schemas/system-message-actions.d.ts.map +1 -0
  59. package/dist/schemas/system-message-actions.js +17 -0
  60. package/dist/schemas/system-message-actions.js.map +1 -0
  61. package/dist/schemas/users.d.ts +60 -0
  62. package/dist/schemas/users.d.ts.map +1 -0
  63. package/dist/schemas/users.js +25 -0
  64. package/dist/schemas/users.js.map +1 -0
  65. package/dist/schemas/utility.d.ts +45 -0
  66. package/dist/schemas/utility.d.ts.map +1 -0
  67. package/dist/schemas/utility.js +20 -0
  68. package/dist/schemas/utility.js.map +1 -0
  69. package/dist/schemas/voting.d.ts +26 -0
  70. package/dist/schemas/voting.d.ts.map +1 -0
  71. package/dist/schemas/voting.js +11 -0
  72. package/dist/schemas/voting.js.map +1 -0
  73. package/dist/types/project.d.ts +1 -11
  74. package/dist/types/project.d.ts.map +1 -1
  75. package/package.json +7 -2
@@ -0,0 +1,195 @@
1
+ import { z } from 'zod';
2
+ export declare const CreateProjectInputSchema: z.ZodDiscriminatedUnion<"origin", [z.ZodObject<{
3
+ origin: z.ZodLiteral<"newUniverse">;
4
+ workingTitle: z.ZodString;
5
+ workingDescription: z.ZodString;
6
+ type: z.ZodEnum<["Tales", "Tunes", "Television"]>;
7
+ libraryType: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ libraryType: string;
10
+ type: "Tales" | "Tunes" | "Television";
11
+ origin: "newUniverse";
12
+ workingTitle: string;
13
+ workingDescription: string;
14
+ }, {
15
+ libraryType: string;
16
+ type: "Tales" | "Tunes" | "Television";
17
+ origin: "newUniverse";
18
+ workingTitle: string;
19
+ workingDescription: string;
20
+ }>, z.ZodObject<{
21
+ origin: z.ZodLiteral<"existingUniverse">;
22
+ universeId: z.ZodString;
23
+ workingTitle: z.ZodString;
24
+ workingDescription: z.ZodString;
25
+ type: z.ZodEnum<["Tales", "Tunes", "Television"]>;
26
+ libraryType: z.ZodString;
27
+ }, "strict", z.ZodTypeAny, {
28
+ libraryType: string;
29
+ type: "Tales" | "Tunes" | "Television";
30
+ origin: "existingUniverse";
31
+ workingTitle: string;
32
+ workingDescription: string;
33
+ universeId: string;
34
+ }, {
35
+ libraryType: string;
36
+ type: "Tales" | "Tunes" | "Television";
37
+ origin: "existingUniverse";
38
+ workingTitle: string;
39
+ workingDescription: string;
40
+ universeId: string;
41
+ }>, z.ZodObject<{
42
+ origin: z.ZodLiteral<"standalone">;
43
+ workingTitle: z.ZodString;
44
+ workingDescription: z.ZodString;
45
+ type: z.ZodEnum<["Tales", "Tunes", "Television"]>;
46
+ libraryType: z.ZodString;
47
+ }, "strict", z.ZodTypeAny, {
48
+ libraryType: string;
49
+ type: "Tales" | "Tunes" | "Television";
50
+ origin: "standalone";
51
+ workingTitle: string;
52
+ workingDescription: string;
53
+ }, {
54
+ libraryType: string;
55
+ type: "Tales" | "Tunes" | "Television";
56
+ origin: "standalone";
57
+ workingTitle: string;
58
+ workingDescription: string;
59
+ }>]>;
60
+ export type CreateProjectInput = z.infer<typeof CreateProjectInputSchema>;
61
+ export declare const DeleteProjectFileInputSchema: z.ZodObject<{
62
+ projectId: z.ZodString;
63
+ file: z.ZodObject<{
64
+ url: z.ZodString;
65
+ name: z.ZodOptional<z.ZodString>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ url: string;
68
+ name?: string | undefined;
69
+ }, {
70
+ url: string;
71
+ name?: string | undefined;
72
+ }>;
73
+ }, "strict", z.ZodTypeAny, {
74
+ projectId: string;
75
+ file: {
76
+ url: string;
77
+ name?: string | undefined;
78
+ };
79
+ }, {
80
+ projectId: string;
81
+ file: {
82
+ url: string;
83
+ name?: string | undefined;
84
+ };
85
+ }>;
86
+ export type DeleteProjectFileInput = z.infer<typeof DeleteProjectFileInputSchema>;
87
+ export declare const InviteUserToProjectInputSchema: z.ZodObject<{
88
+ projectId: z.ZodString;
89
+ inviteeUid: z.ZodString;
90
+ message: z.ZodString;
91
+ sharesOffered: z.ZodNumber;
92
+ source: z.ZodOptional<z.ZodObject<{
93
+ type: z.ZodLiteral<"skill">;
94
+ data: z.ZodObject<{
95
+ skillName: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ skillName: string;
98
+ }, {
99
+ skillName: string;
100
+ }>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "skill";
103
+ data: {
104
+ skillName: string;
105
+ };
106
+ }, {
107
+ type: "skill";
108
+ data: {
109
+ skillName: string;
110
+ };
111
+ }>>;
112
+ }, "strict", z.ZodTypeAny, {
113
+ message: string;
114
+ projectId: string;
115
+ sharesOffered: number;
116
+ inviteeUid: string;
117
+ source?: {
118
+ type: "skill";
119
+ data: {
120
+ skillName: string;
121
+ };
122
+ } | undefined;
123
+ }, {
124
+ message: string;
125
+ projectId: string;
126
+ sharesOffered: number;
127
+ inviteeUid: string;
128
+ source?: {
129
+ type: "skill";
130
+ data: {
131
+ skillName: string;
132
+ };
133
+ } | undefined;
134
+ }>;
135
+ export type InviteUserToProjectInput = z.infer<typeof InviteUserToProjectInputSchema>;
136
+ export declare const ListProjectInvitesInputSchema: z.ZodObject<{
137
+ projectId: z.ZodString;
138
+ statuses: z.ZodArray<z.ZodEnum<["pending", "accepted", "declined", "cancelled"]>, "many">;
139
+ }, "strict", z.ZodTypeAny, {
140
+ projectId: string;
141
+ statuses: ("pending" | "accepted" | "declined" | "cancelled")[];
142
+ }, {
143
+ projectId: string;
144
+ statuses: ("pending" | "accepted" | "declined" | "cancelled")[];
145
+ }>;
146
+ export type ListProjectInvitesInput = z.infer<typeof ListProjectInvitesInputSchema>;
147
+ export declare const UpdateProjectMemberProfessionsInputSchema: z.ZodObject<{
148
+ projectId: z.ZodString;
149
+ userId: z.ZodString;
150
+ profession: z.ZodEnum<[string, ...string[]]>;
151
+ action: z.ZodEnum<["add", "remove"]>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ projectId: string;
154
+ action: "add" | "remove";
155
+ userId: string;
156
+ profession: string;
157
+ }, {
158
+ projectId: string;
159
+ action: "add" | "remove";
160
+ userId: string;
161
+ profession: string;
162
+ }>;
163
+ export type UpdateProjectMemberProfessionsInput = z.infer<typeof UpdateProjectMemberProfessionsInputSchema>;
164
+ export declare const UpdateProjectMemberRoleInputSchema: z.ZodObject<{
165
+ projectId: z.ZodString;
166
+ userId: z.ZodString;
167
+ role: z.ZodEnum<[string, ...string[]]>;
168
+ action: z.ZodEnum<["add", "remove"]>;
169
+ }, "strict", z.ZodTypeAny, {
170
+ projectId: string;
171
+ action: "add" | "remove";
172
+ userId: string;
173
+ role: string;
174
+ }, {
175
+ projectId: string;
176
+ action: "add" | "remove";
177
+ userId: string;
178
+ role: string;
179
+ }>;
180
+ export type UpdateProjectMemberRoleInput = z.infer<typeof UpdateProjectMemberRoleInputSchema>;
181
+ export declare const UpdatePublicProjectDetailsInputSchema: z.ZodObject<{
182
+ projectId: z.ZodString;
183
+ workingTitle: z.ZodString;
184
+ workingDescription: z.ZodString;
185
+ }, "strict", z.ZodTypeAny, {
186
+ projectId: string;
187
+ workingTitle: string;
188
+ workingDescription: string;
189
+ }, {
190
+ projectId: string;
191
+ workingTitle: string;
192
+ workingDescription: string;
193
+ }>;
194
+ export type UpdatePublicProjectDetailsInput = z.infer<typeof UpdatePublicProjectDetailsInputSchema>;
195
+ //# sourceMappingURL=project-management.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-management.d.ts","sourceRoot":"","sources":["../../src/schemas/project-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAcnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AACZ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAShC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEtF,eAAO,MAAM,6BAA6B;;;;;;;;;EAG/B,CAAC;AACZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAIpF,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;EAK3C,CAAC;AACZ,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AAI5G,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;EAKpC,CAAC;AACZ,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,eAAO,MAAM,qCAAqC;;;;;;;;;;;;EAIvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { z } from 'zod';
2
+ import { projectIdSchema, userIdSchema, addRemoveActionSchema, projectTypeSchema } from './atoms.js';
3
+ import { PROFESSION_OPTIONS, USER_ROLE_OPTIONS_MAP } from '../constants/options.js';
4
+ const baseFields = {
5
+ workingTitle: z.string().min(1).max(200),
6
+ workingDescription: z.string().min(1).max(2000),
7
+ type: projectTypeSchema,
8
+ libraryType: z.string().min(1),
9
+ };
10
+ export const CreateProjectInputSchema = z.discriminatedUnion('origin', [
11
+ z.object({
12
+ ...baseFields,
13
+ origin: z.literal('newUniverse'),
14
+ }).strict(),
15
+ z.object({
16
+ ...baseFields,
17
+ origin: z.literal('existingUniverse'),
18
+ universeId: z.string().min(1),
19
+ }).strict(),
20
+ z.object({
21
+ ...baseFields,
22
+ origin: z.literal('standalone'),
23
+ }).strict(),
24
+ ]);
25
+ export const DeleteProjectFileInputSchema = z.object({
26
+ projectId: projectIdSchema,
27
+ file: z.object({
28
+ url: z.string().min(1),
29
+ name: z.string().optional(),
30
+ }),
31
+ }).strict();
32
+ export const InviteUserToProjectInputSchema = z.object({
33
+ projectId: projectIdSchema,
34
+ inviteeUid: userIdSchema,
35
+ message: z.string().min(1).max(2000),
36
+ sharesOffered: z.number().int().min(1),
37
+ source: z.object({
38
+ type: z.literal('skill'),
39
+ data: z.object({ skillName: z.string().min(1) }),
40
+ }).optional(),
41
+ }).strict();
42
+ export const ListProjectInvitesInputSchema = z.object({
43
+ projectId: projectIdSchema,
44
+ statuses: z.array(z.enum(['pending', 'accepted', 'declined', 'cancelled'])).min(1),
45
+ }).strict();
46
+ const PROFESSION_VALUES = [...PROFESSION_OPTIONS];
47
+ export const UpdateProjectMemberProfessionsInputSchema = z.object({
48
+ projectId: projectIdSchema,
49
+ userId: userIdSchema,
50
+ profession: z.enum(PROFESSION_VALUES),
51
+ action: addRemoveActionSchema,
52
+ }).strict();
53
+ const ROLE_VALUES = Object.keys(USER_ROLE_OPTIONS_MAP);
54
+ export const UpdateProjectMemberRoleInputSchema = z.object({
55
+ projectId: projectIdSchema,
56
+ userId: userIdSchema,
57
+ role: z.enum(ROLE_VALUES),
58
+ action: addRemoveActionSchema,
59
+ }).strict();
60
+ export const UpdatePublicProjectDetailsInputSchema = z.object({
61
+ projectId: projectIdSchema,
62
+ workingTitle: z.string().min(1).max(200),
63
+ workingDescription: z.string().min(1).max(2000),
64
+ }).strict();
65
+ //# sourceMappingURL=project-management.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-management.js","sourceRoot":"","sources":["../../src/schemas/project-management.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEpF,MAAM,UAAU,GAAG;IACjB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACxC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IAC/C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC/B,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IACrE,CAAC,CAAC,MAAM,CAAC;QACP,GAAG,UAAU;QACb,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;KACjC,CAAC,CAAC,MAAM,EAAE;IACX,CAAC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}
@@ -0,0 +1,376 @@
1
+ import { z } from 'zod';
2
+ export declare const ShareOperationSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3
+ type: z.ZodLiteral<"add-pending">;
4
+ amount: z.ZodOptional<z.ZodNumber>;
5
+ user: z.ZodOptional<z.ZodObject<{
6
+ uid: z.ZodString;
7
+ }, "strict", z.ZodTypeAny, {
8
+ uid: string;
9
+ }, {
10
+ uid: string;
11
+ }>>;
12
+ sourceId: z.ZodOptional<z.ZodString>;
13
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
14
+ }, "strict", z.ZodTypeAny, {
15
+ type: "add-pending";
16
+ amount?: number | undefined;
17
+ user?: {
18
+ uid: string;
19
+ } | undefined;
20
+ sourceId?: string | undefined;
21
+ sourceType?: "invite" | "job" | undefined;
22
+ }, {
23
+ type: "add-pending";
24
+ amount?: number | undefined;
25
+ user?: {
26
+ uid: string;
27
+ } | undefined;
28
+ sourceId?: string | undefined;
29
+ sourceType?: "invite" | "job" | undefined;
30
+ }>, z.ZodObject<{
31
+ type: z.ZodLiteral<"remove-pending">;
32
+ amount: z.ZodOptional<z.ZodNumber>;
33
+ user: z.ZodOptional<z.ZodObject<{
34
+ uid: z.ZodString;
35
+ }, "strict", z.ZodTypeAny, {
36
+ uid: string;
37
+ }, {
38
+ uid: string;
39
+ }>>;
40
+ sourceId: z.ZodOptional<z.ZodString>;
41
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
42
+ }, "strict", z.ZodTypeAny, {
43
+ type: "remove-pending";
44
+ amount?: number | undefined;
45
+ user?: {
46
+ uid: string;
47
+ } | undefined;
48
+ sourceId?: string | undefined;
49
+ sourceType?: "invite" | "job" | undefined;
50
+ }, {
51
+ type: "remove-pending";
52
+ amount?: number | undefined;
53
+ user?: {
54
+ uid: string;
55
+ } | undefined;
56
+ sourceId?: string | undefined;
57
+ sourceType?: "invite" | "job" | undefined;
58
+ }>, z.ZodObject<{
59
+ type: z.ZodLiteral<"add-active">;
60
+ amount: z.ZodOptional<z.ZodNumber>;
61
+ user: z.ZodOptional<z.ZodObject<{
62
+ uid: z.ZodString;
63
+ }, "strict", z.ZodTypeAny, {
64
+ uid: string;
65
+ }, {
66
+ uid: string;
67
+ }>>;
68
+ sourceId: z.ZodOptional<z.ZodString>;
69
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
70
+ }, "strict", z.ZodTypeAny, {
71
+ type: "add-active";
72
+ amount?: number | undefined;
73
+ user?: {
74
+ uid: string;
75
+ } | undefined;
76
+ sourceId?: string | undefined;
77
+ sourceType?: "invite" | "job" | undefined;
78
+ }, {
79
+ type: "add-active";
80
+ amount?: number | undefined;
81
+ user?: {
82
+ uid: string;
83
+ } | undefined;
84
+ sourceId?: string | undefined;
85
+ sourceType?: "invite" | "job" | undefined;
86
+ }>, z.ZodObject<{
87
+ type: z.ZodLiteral<"create-project">;
88
+ amount: z.ZodOptional<z.ZodNumber>;
89
+ user: z.ZodOptional<z.ZodObject<{
90
+ uid: z.ZodString;
91
+ }, "strict", z.ZodTypeAny, {
92
+ uid: string;
93
+ }, {
94
+ uid: string;
95
+ }>>;
96
+ sourceId: z.ZodOptional<z.ZodString>;
97
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
98
+ }, "strict", z.ZodTypeAny, {
99
+ type: "create-project";
100
+ amount?: number | undefined;
101
+ user?: {
102
+ uid: string;
103
+ } | undefined;
104
+ sourceId?: string | undefined;
105
+ sourceType?: "invite" | "job" | undefined;
106
+ }, {
107
+ type: "create-project";
108
+ amount?: number | undefined;
109
+ user?: {
110
+ uid: string;
111
+ } | undefined;
112
+ sourceId?: string | undefined;
113
+ sourceType?: "invite" | "job" | undefined;
114
+ }>, z.ZodObject<{
115
+ type: z.ZodLiteral<"convert-invite">;
116
+ amount: z.ZodOptional<z.ZodNumber>;
117
+ user: z.ZodOptional<z.ZodObject<{
118
+ uid: z.ZodString;
119
+ }, "strict", z.ZodTypeAny, {
120
+ uid: string;
121
+ }, {
122
+ uid: string;
123
+ }>>;
124
+ sourceId: z.ZodOptional<z.ZodString>;
125
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
126
+ }, "strict", z.ZodTypeAny, {
127
+ type: "convert-invite";
128
+ amount?: number | undefined;
129
+ user?: {
130
+ uid: string;
131
+ } | undefined;
132
+ sourceId?: string | undefined;
133
+ sourceType?: "invite" | "job" | undefined;
134
+ }, {
135
+ type: "convert-invite";
136
+ amount?: number | undefined;
137
+ user?: {
138
+ uid: string;
139
+ } | undefined;
140
+ sourceId?: string | undefined;
141
+ sourceType?: "invite" | "job" | undefined;
142
+ }>]>;
143
+ export type ShareOperation = z.infer<typeof ShareOperationSchema>;
144
+ export type ShareOperationType = ShareOperation['type'];
145
+ export declare const ManageProjectSharesInputSchema: z.ZodObject<{
146
+ projectId: z.ZodString;
147
+ operation: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
148
+ type: z.ZodLiteral<"add-pending">;
149
+ amount: z.ZodOptional<z.ZodNumber>;
150
+ user: z.ZodOptional<z.ZodObject<{
151
+ uid: z.ZodString;
152
+ }, "strict", z.ZodTypeAny, {
153
+ uid: string;
154
+ }, {
155
+ uid: string;
156
+ }>>;
157
+ sourceId: z.ZodOptional<z.ZodString>;
158
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
159
+ }, "strict", z.ZodTypeAny, {
160
+ type: "add-pending";
161
+ amount?: number | undefined;
162
+ user?: {
163
+ uid: string;
164
+ } | undefined;
165
+ sourceId?: string | undefined;
166
+ sourceType?: "invite" | "job" | undefined;
167
+ }, {
168
+ type: "add-pending";
169
+ amount?: number | undefined;
170
+ user?: {
171
+ uid: string;
172
+ } | undefined;
173
+ sourceId?: string | undefined;
174
+ sourceType?: "invite" | "job" | undefined;
175
+ }>, z.ZodObject<{
176
+ type: z.ZodLiteral<"remove-pending">;
177
+ amount: z.ZodOptional<z.ZodNumber>;
178
+ user: z.ZodOptional<z.ZodObject<{
179
+ uid: z.ZodString;
180
+ }, "strict", z.ZodTypeAny, {
181
+ uid: string;
182
+ }, {
183
+ uid: string;
184
+ }>>;
185
+ sourceId: z.ZodOptional<z.ZodString>;
186
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
187
+ }, "strict", z.ZodTypeAny, {
188
+ type: "remove-pending";
189
+ amount?: number | undefined;
190
+ user?: {
191
+ uid: string;
192
+ } | undefined;
193
+ sourceId?: string | undefined;
194
+ sourceType?: "invite" | "job" | undefined;
195
+ }, {
196
+ type: "remove-pending";
197
+ amount?: number | undefined;
198
+ user?: {
199
+ uid: string;
200
+ } | undefined;
201
+ sourceId?: string | undefined;
202
+ sourceType?: "invite" | "job" | undefined;
203
+ }>, z.ZodObject<{
204
+ type: z.ZodLiteral<"add-active">;
205
+ amount: z.ZodOptional<z.ZodNumber>;
206
+ user: z.ZodOptional<z.ZodObject<{
207
+ uid: z.ZodString;
208
+ }, "strict", z.ZodTypeAny, {
209
+ uid: string;
210
+ }, {
211
+ uid: string;
212
+ }>>;
213
+ sourceId: z.ZodOptional<z.ZodString>;
214
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
215
+ }, "strict", z.ZodTypeAny, {
216
+ type: "add-active";
217
+ amount?: number | undefined;
218
+ user?: {
219
+ uid: string;
220
+ } | undefined;
221
+ sourceId?: string | undefined;
222
+ sourceType?: "invite" | "job" | undefined;
223
+ }, {
224
+ type: "add-active";
225
+ amount?: number | undefined;
226
+ user?: {
227
+ uid: string;
228
+ } | undefined;
229
+ sourceId?: string | undefined;
230
+ sourceType?: "invite" | "job" | undefined;
231
+ }>, z.ZodObject<{
232
+ type: z.ZodLiteral<"create-project">;
233
+ amount: z.ZodOptional<z.ZodNumber>;
234
+ user: z.ZodOptional<z.ZodObject<{
235
+ uid: z.ZodString;
236
+ }, "strict", z.ZodTypeAny, {
237
+ uid: string;
238
+ }, {
239
+ uid: string;
240
+ }>>;
241
+ sourceId: z.ZodOptional<z.ZodString>;
242
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
243
+ }, "strict", z.ZodTypeAny, {
244
+ type: "create-project";
245
+ amount?: number | undefined;
246
+ user?: {
247
+ uid: string;
248
+ } | undefined;
249
+ sourceId?: string | undefined;
250
+ sourceType?: "invite" | "job" | undefined;
251
+ }, {
252
+ type: "create-project";
253
+ amount?: number | undefined;
254
+ user?: {
255
+ uid: string;
256
+ } | undefined;
257
+ sourceId?: string | undefined;
258
+ sourceType?: "invite" | "job" | undefined;
259
+ }>, z.ZodObject<{
260
+ type: z.ZodLiteral<"convert-invite">;
261
+ amount: z.ZodOptional<z.ZodNumber>;
262
+ user: z.ZodOptional<z.ZodObject<{
263
+ uid: z.ZodString;
264
+ }, "strict", z.ZodTypeAny, {
265
+ uid: string;
266
+ }, {
267
+ uid: string;
268
+ }>>;
269
+ sourceId: z.ZodOptional<z.ZodString>;
270
+ sourceType: z.ZodOptional<z.ZodEnum<["invite", "job"]>>;
271
+ }, "strict", z.ZodTypeAny, {
272
+ type: "convert-invite";
273
+ amount?: number | undefined;
274
+ user?: {
275
+ uid: string;
276
+ } | undefined;
277
+ sourceId?: string | undefined;
278
+ sourceType?: "invite" | "job" | undefined;
279
+ }, {
280
+ type: "convert-invite";
281
+ amount?: number | undefined;
282
+ user?: {
283
+ uid: string;
284
+ } | undefined;
285
+ sourceId?: string | undefined;
286
+ sourceType?: "invite" | "job" | undefined;
287
+ }>]>;
288
+ }, "strict", z.ZodTypeAny, {
289
+ projectId: string;
290
+ operation: {
291
+ type: "add-pending";
292
+ amount?: number | undefined;
293
+ user?: {
294
+ uid: string;
295
+ } | undefined;
296
+ sourceId?: string | undefined;
297
+ sourceType?: "invite" | "job" | undefined;
298
+ } | {
299
+ type: "remove-pending";
300
+ amount?: number | undefined;
301
+ user?: {
302
+ uid: string;
303
+ } | undefined;
304
+ sourceId?: string | undefined;
305
+ sourceType?: "invite" | "job" | undefined;
306
+ } | {
307
+ type: "add-active";
308
+ amount?: number | undefined;
309
+ user?: {
310
+ uid: string;
311
+ } | undefined;
312
+ sourceId?: string | undefined;
313
+ sourceType?: "invite" | "job" | undefined;
314
+ } | {
315
+ type: "create-project";
316
+ amount?: number | undefined;
317
+ user?: {
318
+ uid: string;
319
+ } | undefined;
320
+ sourceId?: string | undefined;
321
+ sourceType?: "invite" | "job" | undefined;
322
+ } | {
323
+ type: "convert-invite";
324
+ amount?: number | undefined;
325
+ user?: {
326
+ uid: string;
327
+ } | undefined;
328
+ sourceId?: string | undefined;
329
+ sourceType?: "invite" | "job" | undefined;
330
+ };
331
+ }, {
332
+ projectId: string;
333
+ operation: {
334
+ type: "add-pending";
335
+ amount?: number | undefined;
336
+ user?: {
337
+ uid: string;
338
+ } | undefined;
339
+ sourceId?: string | undefined;
340
+ sourceType?: "invite" | "job" | undefined;
341
+ } | {
342
+ type: "remove-pending";
343
+ amount?: number | undefined;
344
+ user?: {
345
+ uid: string;
346
+ } | undefined;
347
+ sourceId?: string | undefined;
348
+ sourceType?: "invite" | "job" | undefined;
349
+ } | {
350
+ type: "add-active";
351
+ amount?: number | undefined;
352
+ user?: {
353
+ uid: string;
354
+ } | undefined;
355
+ sourceId?: string | undefined;
356
+ sourceType?: "invite" | "job" | undefined;
357
+ } | {
358
+ type: "create-project";
359
+ amount?: number | undefined;
360
+ user?: {
361
+ uid: string;
362
+ } | undefined;
363
+ sourceId?: string | undefined;
364
+ sourceType?: "invite" | "job" | undefined;
365
+ } | {
366
+ type: "convert-invite";
367
+ amount?: number | undefined;
368
+ user?: {
369
+ uid: string;
370
+ } | undefined;
371
+ sourceId?: string | undefined;
372
+ sourceType?: "invite" | "job" | undefined;
373
+ };
374
+ }>;
375
+ export type ManageProjectSharesInput = z.infer<typeof ManageProjectSharesInputSchema>;
376
+ //# sourceMappingURL=share-operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share-operation.d.ts","sourceRoot":"","sources":["../../src/schemas/share-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyBxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAoC/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAGxD,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}