@ttt-productions/ttt-core 0.2.30 → 0.3.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.
Files changed (69) hide show
  1. package/dist/constants/retention.d.ts +0 -2
  2. package/dist/constants/retention.d.ts.map +1 -1
  3. package/dist/constants/retention.js +0 -2
  4. package/dist/constants/retention.js.map +1 -1
  5. package/dist/upload-variables/apply-to-job-variables.d.ts +20 -0
  6. package/dist/upload-variables/apply-to-job-variables.d.ts.map +1 -0
  7. package/dist/upload-variables/apply-to-job-variables.js +15 -0
  8. package/dist/upload-variables/apply-to-job-variables.js.map +1 -0
  9. package/dist/upload-variables/create-admin-opportunity-variables.d.ts +29 -0
  10. package/dist/upload-variables/create-admin-opportunity-variables.d.ts.map +1 -0
  11. package/dist/upload-variables/create-admin-opportunity-variables.js +16 -0
  12. package/dist/upload-variables/create-admin-opportunity-variables.js.map +1 -0
  13. package/dist/upload-variables/create-job-variables.d.ts +45 -0
  14. package/dist/upload-variables/create-job-variables.d.ts.map +1 -0
  15. package/dist/upload-variables/create-job-variables.js +18 -0
  16. package/dist/upload-variables/create-job-variables.js.map +1 -0
  17. package/dist/upload-variables/create-opportunity-reply-variables.d.ts +17 -0
  18. package/dist/upload-variables/create-opportunity-reply-variables.d.ts.map +1 -0
  19. package/dist/upload-variables/create-opportunity-reply-variables.js +12 -0
  20. package/dist/upload-variables/create-opportunity-reply-variables.js.map +1 -0
  21. package/dist/upload-variables/create-project-opportunity-variables.d.ts +29 -0
  22. package/dist/upload-variables/create-project-opportunity-variables.d.ts.map +1 -0
  23. package/dist/upload-variables/create-project-opportunity-variables.js +16 -0
  24. package/dist/upload-variables/create-project-opportunity-variables.js.map +1 -0
  25. package/dist/upload-variables/index.d.ts +16 -0
  26. package/dist/upload-variables/index.d.ts.map +1 -0
  27. package/dist/upload-variables/index.js +16 -0
  28. package/dist/upload-variables/index.js.map +1 -0
  29. package/dist/upload-variables/streetz-post-variables.d.ts +48 -0
  30. package/dist/upload-variables/streetz-post-variables.d.ts.map +1 -0
  31. package/dist/upload-variables/streetz-post-variables.js +17 -0
  32. package/dist/upload-variables/streetz-post-variables.js.map +1 -0
  33. package/dist/upload-variables/update-chapter-media-variables.d.ts +26 -0
  34. package/dist/upload-variables/update-chapter-media-variables.d.ts.map +1 -0
  35. package/dist/upload-variables/update-chapter-media-variables.js +15 -0
  36. package/dist/upload-variables/update-chapter-media-variables.js.map +1 -0
  37. package/dist/upload-variables/update-show-media-variables.d.ts +26 -0
  38. package/dist/upload-variables/update-show-media-variables.d.ts.map +1 -0
  39. package/dist/upload-variables/update-show-media-variables.js +15 -0
  40. package/dist/upload-variables/update-show-media-variables.js.map +1 -0
  41. package/dist/upload-variables/update-song-media-variables.d.ts +26 -0
  42. package/dist/upload-variables/update-song-media-variables.d.ts.map +1 -0
  43. package/dist/upload-variables/update-song-media-variables.js +15 -0
  44. package/dist/upload-variables/update-song-media-variables.js.map +1 -0
  45. package/dist/upload-variables/update-tale-cover-photo-variables.d.ts +23 -0
  46. package/dist/upload-variables/update-tale-cover-photo-variables.d.ts.map +1 -0
  47. package/dist/upload-variables/update-tale-cover-photo-variables.js +14 -0
  48. package/dist/upload-variables/update-tale-cover-photo-variables.js.map +1 -0
  49. package/dist/upload-variables/update-television-cover-photo-variables.d.ts +23 -0
  50. package/dist/upload-variables/update-television-cover-photo-variables.d.ts.map +1 -0
  51. package/dist/upload-variables/update-television-cover-photo-variables.js +14 -0
  52. package/dist/upload-variables/update-television-cover-photo-variables.js.map +1 -0
  53. package/dist/upload-variables/update-tune-cover-photo-variables.d.ts +23 -0
  54. package/dist/upload-variables/update-tune-cover-photo-variables.d.ts.map +1 -0
  55. package/dist/upload-variables/update-tune-cover-photo-variables.js +14 -0
  56. package/dist/upload-variables/update-tune-cover-photo-variables.js.map +1 -0
  57. package/dist/upload-variables/upload-profile-picture-variables.d.ts +14 -0
  58. package/dist/upload-variables/upload-profile-picture-variables.d.ts.map +1 -0
  59. package/dist/upload-variables/upload-profile-picture-variables.js +11 -0
  60. package/dist/upload-variables/upload-profile-picture-variables.js.map +1 -0
  61. package/dist/upload-variables/upload-project-file-variables.d.ts +21 -0
  62. package/dist/upload-variables/upload-project-file-variables.d.ts.map +1 -0
  63. package/dist/upload-variables/upload-project-file-variables.js +13 -0
  64. package/dist/upload-variables/upload-project-file-variables.js.map +1 -0
  65. package/dist/upload-variables/upload-skill-variables.d.ts +14 -0
  66. package/dist/upload-variables/upload-skill-variables.d.ts.map +1 -0
  67. package/dist/upload-variables/upload-skill-variables.js +11 -0
  68. package/dist/upload-variables/upload-skill-variables.js.map +1 -0
  69. package/package.json +5 -1
@@ -14,8 +14,6 @@ export declare const ORPHAN_UPLOAD_TTL_HOURS = 24;
14
14
  export declare const ORPHAN_UPLOAD_DELETE_CAP = 500;
15
15
  /** Page size for listing orphan uploads. */
16
16
  export declare const ORPHAN_UPLOAD_LIST_PAGE_SIZE = 1000;
17
- /** After this idle duration, an in-flight upload toast is considered stale. */
18
- export declare const STALE_TOAST_THRESHOLD_MS: number;
19
17
  /** Maximum lookback window for the in-flight upload listener (24 hours). */
20
18
  export declare const LISTENER_WINDOW_MS: number;
21
19
  /** Stale time for the publicUsers query cache (30 minutes). */
@@ -1 +1 @@
1
- {"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAIA,gEAAgE;AAChE,eAAO,MAAM,sBAAsB,QAAiB,CAAC;AAIrD,4FAA4F;AAC5F,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAI1C,oFAAoF;AACpF,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD,6EAA6E;AAC7E,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAIpD,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,+CAA+C;AAC/C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,4CAA4C;AAC5C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAIjD,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,QAAgB,CAAC;AAEtD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,QAAsB,CAAC;AAItD,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B,QAAiB,CAAC;AAEzD,wDAAwD;AACxD,eAAO,MAAM,uBAAuB,QAAiB,CAAC"}
1
+ {"version":3,"file":"retention.d.ts","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAIA,gEAAgE;AAChE,eAAO,MAAM,sBAAsB,QAAiB,CAAC;AAIrD,4FAA4F;AAC5F,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,uEAAuE;AACvE,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAI1C,oFAAoF;AACpF,eAAO,MAAM,gCAAgC,IAAI,CAAC;AAElD,6EAA6E;AAC7E,eAAO,MAAM,gCAAgC,MAAM,CAAC;AAIpD,uFAAuF;AACvF,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAE1C,+CAA+C;AAC/C,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAE5C,4CAA4C;AAC5C,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAIjD,4EAA4E;AAC5E,eAAO,MAAM,kBAAkB,QAAsB,CAAC;AAItD,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B,QAAiB,CAAC;AAEzD,wDAAwD;AACxD,eAAO,MAAM,uBAAuB,QAAiB,CAAC"}
@@ -20,8 +20,6 @@ export const ORPHAN_UPLOAD_DELETE_CAP = 500;
20
20
  /** Page size for listing orphan uploads. */
21
21
  export const ORPHAN_UPLOAD_LIST_PAGE_SIZE = 1000;
22
22
  // --- Frontend in-flight upload listeners ---
23
- /** After this idle duration, an in-flight upload toast is considered stale. */
24
- export const STALE_TOAST_THRESHOLD_MS = 5 * 60 * 1000;
25
23
  /** Maximum lookback window for the in-flight upload listener (24 hours). */
26
24
  export const LISTENER_WINDOW_MS = 24 * 60 * 60 * 1000;
27
25
  // --- Public users React Query cache ---
@@ -1 +1 @@
1
- {"version":3,"file":"retention.js","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAAA,sDAAsD;AAEtD,oCAAoC;AAEpC,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC;AAErD,oBAAoB;AAEpB,4FAA4F;AAC5F,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC,uEAAuE;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,gCAAgC;AAEhC,oFAAoF;AACpF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC;AAElD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD,gCAAgC;AAEhC,uFAAuF;AACvF,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAE5C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD,8CAA8C;AAE9C,+EAA+E;AAC/E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAEtD,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEtD,yCAAyC;AAEzC,+DAA+D;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEzD,wDAAwD;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"retention.js","sourceRoot":"","sources":["../../src/constants/retention.ts"],"names":[],"mappings":"AAAA,sDAAsD;AAEtD,oCAAoC;AAEpC,gEAAgE;AAChE,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC;AAErD,oBAAoB;AAEpB,4FAA4F;AAC5F,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC,uEAAuE;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,gCAAgC;AAEhC,oFAAoF;AACpF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC;AAElD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAG,CAAC;AAEpD,gCAAgC;AAEhC,uFAAuF;AACvF,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,+CAA+C;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAE5C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD,8CAA8C;AAE9C,4EAA4E;AAC5E,MAAM,CAAC,MAAM,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEtD,yCAAyC;AAEzC,+DAA+D;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEzD,wDAAwD;AACxD,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const ApplyToJobVariablesSchema: z.ZodObject<{
4
+ jobId: z.ZodString;
5
+ coverLetterText: z.ZodString;
6
+ file: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>>>;
7
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
8
+ }, "strict", z.ZodTypeAny, {
9
+ jobId: string;
10
+ coverLetterText: string;
11
+ file?: Blob | File | null | undefined;
12
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
13
+ }, {
14
+ jobId: string;
15
+ coverLetterText: string;
16
+ file?: Blob | File | null | undefined;
17
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
18
+ }>;
19
+ export type ApplyToJobVariables = z.infer<typeof ApplyToJobVariablesSchema>;
20
+ //# sourceMappingURL=apply-to-job-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-to-job-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/apply-to-job-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAUpE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAK3B,CAAC;AACZ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import { jobIdSchema } from '../schemas/atoms.js';
3
+ import { MAX_JOB_DESCRIPTION_LENGTH } from '../constants/business.js';
4
+ const onProgressSchema = z
5
+ .function()
6
+ .args(z.custom())
7
+ .returns(z.void())
8
+ .optional();
9
+ export const ApplyToJobVariablesSchema = z.object({
10
+ jobId: jobIdSchema,
11
+ coverLetterText: z.string().min(1).max(MAX_JOB_DESCRIPTION_LENGTH),
12
+ file: z.instanceof(File).or(z.instanceof(Blob)).nullish(),
13
+ onProgress: onProgressSchema,
14
+ }).strict();
15
+ //# sourceMappingURL=apply-to-job-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apply-to-job-variables.js","sourceRoot":"","sources":["../../src/upload-variables/apply-to-job-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,KAAK,EAAE,WAAW;IAClB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,0BAA0B,CAAC;IAClE,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE;IACzD,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const CreateAdminOpportunityVariablesSchema: z.ZodObject<{
4
+ type: z.ZodEnum<["SystemInput", "SponsoredProjects"]>;
5
+ title: z.ZodString;
6
+ description: z.ZodString;
7
+ videoFile: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
8
+ openTill: z.ZodString;
9
+ projectAmountUSD: z.ZodOptional<z.ZodNumber>;
10
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ type: "SystemInput" | "SponsoredProjects";
13
+ openTill: string;
14
+ title: string;
15
+ description: string;
16
+ videoFile: Blob | File;
17
+ projectAmountUSD?: number | undefined;
18
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
19
+ }, {
20
+ type: "SystemInput" | "SponsoredProjects";
21
+ openTill: string;
22
+ title: string;
23
+ description: string;
24
+ videoFile: Blob | File;
25
+ projectAmountUSD?: number | undefined;
26
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
27
+ }>;
28
+ export type CreateAdminOpportunityVariables = z.infer<typeof CreateAdminOpportunityVariablesSchema>;
29
+ //# sourceMappingURL=create-admin-opportunity-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-admin-opportunity-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/create-admin-opportunity-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;EAQvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const CreateAdminOpportunityVariablesSchema = z.object({
8
+ type: z.enum(['SystemInput', 'SponsoredProjects']),
9
+ title: z.string().min(1),
10
+ description: z.string(),
11
+ videoFile: z.instanceof(File).or(z.instanceof(Blob)),
12
+ openTill: z.string().min(1),
13
+ projectAmountUSD: z.number().optional(),
14
+ onProgress: onProgressSchema,
15
+ }).strict();
16
+ //# sourceMappingURL=create-admin-opportunity-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-admin-opportunity-variables.js","sourceRoot":"","sources":["../../src/upload-variables/create-admin-opportunity-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACpD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const CreateJobVariablesSchema: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ jobData: z.ZodObject<{
6
+ title: z.ZodString;
7
+ description: z.ZodString;
8
+ requiredProfessions: z.ZodArray<z.ZodString, "many">;
9
+ sharesOffered: z.ZodNumber;
10
+ }, "strict", z.ZodTypeAny, {
11
+ sharesOffered: number;
12
+ title: string;
13
+ description: string;
14
+ requiredProfessions: string[];
15
+ }, {
16
+ sharesOffered: number;
17
+ title: string;
18
+ description: string;
19
+ requiredProfessions: string[];
20
+ }>;
21
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
22
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
23
+ }, "strict", z.ZodTypeAny, {
24
+ projectId: string;
25
+ file: Blob | File;
26
+ jobData: {
27
+ sharesOffered: number;
28
+ title: string;
29
+ description: string;
30
+ requiredProfessions: string[];
31
+ };
32
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
33
+ }, {
34
+ projectId: string;
35
+ file: Blob | File;
36
+ jobData: {
37
+ sharesOffered: number;
38
+ title: string;
39
+ description: string;
40
+ requiredProfessions: string[];
41
+ };
42
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
43
+ }>;
44
+ export type CreateJobVariables = z.infer<typeof CreateJobVariablesSchema>;
45
+ //# sourceMappingURL=create-job-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-job-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/create-job-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AACZ,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const CreateJobVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ jobData: z.object({
10
+ title: z.string().min(1),
11
+ description: z.string(),
12
+ requiredProfessions: z.array(z.string()),
13
+ sharesOffered: z.number(),
14
+ }).strict(),
15
+ file: z.instanceof(File).or(z.instanceof(Blob)),
16
+ onProgress: onProgressSchema,
17
+ }).strict();
18
+ //# sourceMappingURL=create-job-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-job-variables.js","sourceRoot":"","sources":["../../src/upload-variables/create-job-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC;QAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;QACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACxC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;KAC1B,CAAC,CAAC,MAAM,EAAE;IACX,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const CreateOpportunityReplyVariablesSchema: z.ZodObject<{
4
+ opportunityId: z.ZodString;
5
+ videoFile: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
6
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
7
+ }, "strict", z.ZodTypeAny, {
8
+ opportunityId: string;
9
+ videoFile: Blob | File;
10
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
11
+ }, {
12
+ opportunityId: string;
13
+ videoFile: Blob | File;
14
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
15
+ }>;
16
+ export type CreateOpportunityReplyVariables = z.infer<typeof CreateOpportunityReplyVariablesSchema>;
17
+ //# sourceMappingURL=create-opportunity-reply-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-opportunity-reply-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/create-opportunity-reply-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,qCAAqC;;;;;;;;;;;;EAIvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const CreateOpportunityReplyVariablesSchema = z.object({
8
+ opportunityId: z.string().min(1),
9
+ videoFile: z.instanceof(File).or(z.instanceof(Blob)),
10
+ onProgress: onProgressSchema,
11
+ }).strict();
12
+ //# sourceMappingURL=create-opportunity-reply-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-opportunity-reply-variables.js","sourceRoot":"","sources":["../../src/upload-variables/create-opportunity-reply-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACpD,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const CreateProjectOpportunityVariablesSchema: z.ZodObject<{
4
+ title: z.ZodString;
5
+ description: z.ZodString;
6
+ videoFile: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
7
+ openTill: z.ZodString;
8
+ projectId: z.ZodString;
9
+ sharesOffered: z.ZodOptional<z.ZodNumber>;
10
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ projectId: string;
13
+ openTill: string;
14
+ title: string;
15
+ description: string;
16
+ videoFile: Blob | File;
17
+ sharesOffered?: number | undefined;
18
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
19
+ }, {
20
+ projectId: string;
21
+ openTill: string;
22
+ title: string;
23
+ description: string;
24
+ videoFile: Blob | File;
25
+ sharesOffered?: number | undefined;
26
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
27
+ }>;
28
+ export type CreateProjectOpportunityVariables = z.infer<typeof CreateProjectOpportunityVariablesSchema>;
29
+ //# sourceMappingURL=create-project-opportunity-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-project-opportunity-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/create-project-opportunity-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;EAQzC,CAAC;AACZ,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const CreateProjectOpportunityVariablesSchema = z.object({
8
+ title: z.string().min(1),
9
+ description: z.string(),
10
+ videoFile: z.instanceof(File).or(z.instanceof(Blob)),
11
+ openTill: z.string().min(1),
12
+ projectId: z.string().min(1),
13
+ sharesOffered: z.number().optional(),
14
+ onProgress: onProgressSchema,
15
+ }).strict();
16
+ //# sourceMappingURL=create-project-opportunity-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-project-opportunity-variables.js","sourceRoot":"","sources":["../../src/upload-variables/create-project-opportunity-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,uCAAuC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACpD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,16 @@
1
+ export * from './streetz-post-variables.js';
2
+ export * from './create-job-variables.js';
3
+ export * from './apply-to-job-variables.js';
4
+ export * from './create-project-opportunity-variables.js';
5
+ export * from './create-admin-opportunity-variables.js';
6
+ export * from './create-opportunity-reply-variables.js';
7
+ export * from './upload-profile-picture-variables.js';
8
+ export * from './upload-skill-variables.js';
9
+ export * from './upload-project-file-variables.js';
10
+ export * from './update-tale-cover-photo-variables.js';
11
+ export * from './update-tune-cover-photo-variables.js';
12
+ export * from './update-television-cover-photo-variables.js';
13
+ export * from './update-show-media-variables.js';
14
+ export * from './update-chapter-media-variables.js';
15
+ export * from './update-song-media-variables.js';
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,16 @@
1
+ export * from './streetz-post-variables.js';
2
+ export * from './create-job-variables.js';
3
+ export * from './apply-to-job-variables.js';
4
+ export * from './create-project-opportunity-variables.js';
5
+ export * from './create-admin-opportunity-variables.js';
6
+ export * from './create-opportunity-reply-variables.js';
7
+ export * from './upload-profile-picture-variables.js';
8
+ export * from './upload-skill-variables.js';
9
+ export * from './upload-project-file-variables.js';
10
+ export * from './update-tale-cover-photo-variables.js';
11
+ export * from './update-tune-cover-photo-variables.js';
12
+ export * from './update-television-cover-photo-variables.js';
13
+ export * from './update-show-media-variables.js';
14
+ export * from './update-chapter-media-variables.js';
15
+ export * from './update-song-media-variables.js';
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const StreetzPostVariablesSchema: z.ZodObject<{
4
+ userId: z.ZodString;
5
+ content: z.ZodString;
6
+ mentions: z.ZodArray<z.ZodObject<{
7
+ placeholder: z.ZodString;
8
+ type: z.ZodEnum<["user", "project", "job", "opportunity"]>;
9
+ id: z.ZodString;
10
+ text: z.ZodString;
11
+ }, "strict", z.ZodTypeAny, {
12
+ type: "user" | "project" | "job" | "opportunity";
13
+ placeholder: string;
14
+ id: string;
15
+ text: string;
16
+ }, {
17
+ type: "user" | "project" | "job" | "opportunity";
18
+ placeholder: string;
19
+ id: string;
20
+ text: string;
21
+ }>, "many">;
22
+ mediaFile: z.ZodOptional<z.ZodNullable<z.ZodType<File, z.ZodTypeDef, File>>>;
23
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
24
+ }, "strict", z.ZodTypeAny, {
25
+ content: string;
26
+ userId: string;
27
+ mentions: {
28
+ type: "user" | "project" | "job" | "opportunity";
29
+ placeholder: string;
30
+ id: string;
31
+ text: string;
32
+ }[];
33
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
34
+ mediaFile?: File | null | undefined;
35
+ }, {
36
+ content: string;
37
+ userId: string;
38
+ mentions: {
39
+ type: "user" | "project" | "job" | "opportunity";
40
+ placeholder: string;
41
+ id: string;
42
+ text: string;
43
+ }[];
44
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
45
+ mediaFile?: File | null | undefined;
46
+ }>;
47
+ export type StreetzPostVariables = z.infer<typeof StreetzPostVariablesSchema>;
48
+ //# sourceMappingURL=streetz-post-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streetz-post-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/streetz-post-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAWpE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { MentionSchema } from '@ttt-productions/media-contracts';
3
+ import { userIdSchema } from '../schemas/atoms.js';
4
+ import { MAX_POST_LENGTH } from '../constants/business.js';
5
+ const onProgressSchema = z
6
+ .function()
7
+ .args(z.custom())
8
+ .returns(z.void())
9
+ .optional();
10
+ export const StreetzPostVariablesSchema = z.object({
11
+ userId: userIdSchema,
12
+ content: z.string().max(MAX_POST_LENGTH),
13
+ mentions: z.array(MentionSchema),
14
+ mediaFile: z.instanceof(File).nullish(),
15
+ onProgress: onProgressSchema,
16
+ }).strict();
17
+ //# sourceMappingURL=streetz-post-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streetz-post-variables.js","sourceRoot":"","sources":["../../src/upload-variables/streetz-post-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE;IACvC,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UpdateChapterMediaVariablesSchema: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ taleId: z.ZodString;
6
+ chapterId: z.ZodString;
7
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
8
+ mediaKey: z.ZodLiteral<"photoUrl">;
9
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ projectId: string;
12
+ taleId: string;
13
+ chapterId: string;
14
+ file: Blob | File;
15
+ mediaKey: "photoUrl";
16
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
17
+ }, {
18
+ projectId: string;
19
+ taleId: string;
20
+ chapterId: string;
21
+ file: Blob | File;
22
+ mediaKey: "photoUrl";
23
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
24
+ }>;
25
+ export type UpdateChapterMediaVariables = z.infer<typeof UpdateChapterMediaVariablesSchema>;
26
+ //# sourceMappingURL=update-chapter-media-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-chapter-media-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/update-chapter-media-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UpdateChapterMediaVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ taleId: z.string().min(1),
10
+ chapterId: z.string().min(1),
11
+ file: z.instanceof(File).or(z.instanceof(Blob)),
12
+ mediaKey: z.literal('photoUrl'),
13
+ onProgress: onProgressSchema,
14
+ }).strict();
15
+ //# sourceMappingURL=update-chapter-media-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-chapter-media-variables.js","sourceRoot":"","sources":["../../src/upload-variables/update-chapter-media-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC/B,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UpdateShowMediaVariablesSchema: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ televisionId: z.ZodString;
6
+ showId: z.ZodString;
7
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
8
+ mediaKey: z.ZodEnum<["photoUrl", "videoUrl"]>;
9
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ projectId: string;
12
+ televisionId: string;
13
+ showId: string;
14
+ file: Blob | File;
15
+ mediaKey: "videoUrl" | "photoUrl";
16
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
17
+ }, {
18
+ projectId: string;
19
+ televisionId: string;
20
+ showId: string;
21
+ file: Blob | File;
22
+ mediaKey: "videoUrl" | "photoUrl";
23
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
24
+ }>;
25
+ export type UpdateShowMediaVariables = z.infer<typeof UpdateShowMediaVariablesSchema>;
26
+ //# sourceMappingURL=update-show-media-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-show-media-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/update-show-media-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UpdateShowMediaVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ televisionId: z.string().min(1),
10
+ showId: z.string().min(1),
11
+ file: z.instanceof(File).or(z.instanceof(Blob)),
12
+ mediaKey: z.enum(['photoUrl', 'videoUrl']),
13
+ onProgress: onProgressSchema,
14
+ }).strict();
15
+ //# sourceMappingURL=update-show-media-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-show-media-variables.js","sourceRoot":"","sources":["../../src/upload-variables/update-show-media-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC1C,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UpdateSongMediaVariablesSchema: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ tuneId: z.ZodString;
6
+ songId: z.ZodString;
7
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
8
+ mediaKey: z.ZodEnum<["photoUrl", "fileUrl"]>;
9
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
10
+ }, "strict", z.ZodTypeAny, {
11
+ projectId: string;
12
+ tuneId: string;
13
+ songId: string;
14
+ file: Blob | File;
15
+ mediaKey: "photoUrl" | "fileUrl";
16
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
17
+ }, {
18
+ projectId: string;
19
+ tuneId: string;
20
+ songId: string;
21
+ file: Blob | File;
22
+ mediaKey: "photoUrl" | "fileUrl";
23
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
24
+ }>;
25
+ export type UpdateSongMediaVariables = z.infer<typeof UpdateSongMediaVariablesSchema>;
26
+ //# sourceMappingURL=update-song-media-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-song-media-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/update-song-media-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AACZ,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UpdateSongMediaVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ tuneId: z.string().min(1),
10
+ songId: z.string().min(1),
11
+ file: z.instanceof(File).or(z.instanceof(Blob)),
12
+ mediaKey: z.enum(['photoUrl', 'fileUrl']),
13
+ onProgress: onProgressSchema,
14
+ }).strict();
15
+ //# sourceMappingURL=update-song-media-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-song-media-variables.js","sourceRoot":"","sources":["../../src/upload-variables/update-song-media-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;IACzC,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UpdateTaleCoverPhotoVariablesSchema: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ taleId: z.ZodString;
6
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
7
+ coverType: z.ZodEnum<["square", "poster", "cinematic"]>;
8
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
9
+ }, "strict", z.ZodTypeAny, {
10
+ projectId: string;
11
+ taleId: string;
12
+ file: Blob | File;
13
+ coverType: "square" | "poster" | "cinematic";
14
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
15
+ }, {
16
+ projectId: string;
17
+ taleId: string;
18
+ file: Blob | File;
19
+ coverType: "square" | "poster" | "cinematic";
20
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
21
+ }>;
22
+ export type UpdateTaleCoverPhotoVariables = z.infer<typeof UpdateTaleCoverPhotoVariablesSchema>;
23
+ //# sourceMappingURL=update-tale-cover-photo-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-tale-cover-photo-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/update-tale-cover-photo-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UpdateTaleCoverPhotoVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ taleId: z.string().min(1),
10
+ file: z.instanceof(File).or(z.instanceof(Blob)),
11
+ coverType: z.enum(['square', 'poster', 'cinematic']),
12
+ onProgress: onProgressSchema,
13
+ }).strict();
14
+ //# sourceMappingURL=update-tale-cover-photo-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-tale-cover-photo-variables.js","sourceRoot":"","sources":["../../src/upload-variables/update-tale-cover-photo-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACpD,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UpdateTelevisionCoverPhotoVariablesSchema: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ televisionId: z.ZodString;
6
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
7
+ coverType: z.ZodEnum<["square", "poster", "cinematic"]>;
8
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
9
+ }, "strict", z.ZodTypeAny, {
10
+ projectId: string;
11
+ televisionId: string;
12
+ file: Blob | File;
13
+ coverType: "square" | "poster" | "cinematic";
14
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
15
+ }, {
16
+ projectId: string;
17
+ televisionId: string;
18
+ file: Blob | File;
19
+ coverType: "square" | "poster" | "cinematic";
20
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
21
+ }>;
22
+ export type UpdateTelevisionCoverPhotoVariables = z.infer<typeof UpdateTelevisionCoverPhotoVariablesSchema>;
23
+ //# sourceMappingURL=update-television-cover-photo-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-television-cover-photo-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/update-television-cover-photo-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;EAM3C,CAAC;AACZ,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UpdateTelevisionCoverPhotoVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ televisionId: z.string().min(1),
10
+ file: z.instanceof(File).or(z.instanceof(Blob)),
11
+ coverType: z.enum(['square', 'poster', 'cinematic']),
12
+ onProgress: onProgressSchema,
13
+ }).strict();
14
+ //# sourceMappingURL=update-television-cover-photo-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-television-cover-photo-variables.js","sourceRoot":"","sources":["../../src/upload-variables/update-television-cover-photo-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACpD,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UpdateTuneCoverPhotoVariablesSchema: z.ZodObject<{
4
+ projectId: z.ZodString;
5
+ tuneId: z.ZodString;
6
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
7
+ coverType: z.ZodEnum<["square", "poster", "cinematic"]>;
8
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
9
+ }, "strict", z.ZodTypeAny, {
10
+ projectId: string;
11
+ tuneId: string;
12
+ file: Blob | File;
13
+ coverType: "square" | "poster" | "cinematic";
14
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
15
+ }, {
16
+ projectId: string;
17
+ tuneId: string;
18
+ file: Blob | File;
19
+ coverType: "square" | "poster" | "cinematic";
20
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
21
+ }>;
22
+ export type UpdateTuneCoverPhotoVariables = z.infer<typeof UpdateTuneCoverPhotoVariablesSchema>;
23
+ //# sourceMappingURL=update-tune-cover-photo-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-tune-cover-photo-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/update-tune-cover-photo-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;EAMrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UpdateTuneCoverPhotoVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ tuneId: z.string().min(1),
10
+ file: z.instanceof(File).or(z.instanceof(Blob)),
11
+ coverType: z.enum(['square', 'poster', 'cinematic']),
12
+ onProgress: onProgressSchema,
13
+ }).strict();
14
+ //# sourceMappingURL=update-tune-cover-photo-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-tune-cover-photo-variables.js","sourceRoot":"","sources":["../../src/upload-variables/update-tune-cover-photo-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACpD,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UploadProfilePictureVariablesSchema: z.ZodObject<{
4
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
5
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ file: Blob | File;
8
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
9
+ }, {
10
+ file: Blob | File;
11
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
12
+ }>;
13
+ export type UploadProfilePictureVariables = z.infer<typeof UploadProfilePictureVariablesSchema>;
14
+ //# sourceMappingURL=upload-profile-picture-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-profile-picture-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/upload-profile-picture-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,mCAAmC;;;;;;;;;EAGrC,CAAC;AACZ,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UploadProfilePictureVariablesSchema = z.object({
8
+ file: z.instanceof(File).or(z.instanceof(Blob)),
9
+ onProgress: onProgressSchema,
10
+ }).strict();
11
+ //# sourceMappingURL=upload-profile-picture-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-profile-picture-variables.js","sourceRoot":"","sources":["../../src/upload-variables/upload-profile-picture-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ import type { ProjectFile } from '../types/project.js';
4
+ export declare const UploadProjectFileVariablesSchema: z.ZodObject<{
5
+ projectId: z.ZodString;
6
+ file: z.ZodType<File, z.ZodTypeDef, File>;
7
+ projectFiles: z.ZodArray<z.ZodType<ProjectFile, z.ZodTypeDef, ProjectFile>, "many">;
8
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
9
+ }, "strict", z.ZodTypeAny, {
10
+ projectId: string;
11
+ file: File;
12
+ projectFiles: ProjectFile[];
13
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
14
+ }, {
15
+ projectId: string;
16
+ file: File;
17
+ projectFiles: ProjectFile[];
18
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
19
+ }>;
20
+ export type UploadProjectFileVariables = z.infer<typeof UploadProjectFileVariablesSchema>;
21
+ //# sourceMappingURL=upload-project-file-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-project-file-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/upload-project-file-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAQvD,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAKlC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UploadProjectFileVariablesSchema = z.object({
8
+ projectId: z.string().min(1),
9
+ file: z.instanceof(File),
10
+ projectFiles: z.array(z.custom()),
11
+ onProgress: onProgressSchema,
12
+ }).strict();
13
+ //# sourceMappingURL=upload-project-file-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-project-file-variables.js","sourceRoot":"","sources":["../../src/upload-variables/upload-project-file-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;IACxB,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAe,CAAC;IAC9C,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { z } from 'zod';
2
+ import type { UploadState } from '@ttt-productions/media-contracts';
3
+ export declare const UploadSkillVariablesSchema: z.ZodObject<{
4
+ file: z.ZodUnion<[z.ZodType<File, z.ZodTypeDef, File>, z.ZodType<Blob, z.ZodTypeDef, Blob>]>;
5
+ onProgress: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodType<UploadState | null, z.ZodTypeDef, UploadState | null>], z.ZodUnknown>, z.ZodVoid>>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ file: Blob | File;
8
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
9
+ }, {
10
+ file: Blob | File;
11
+ onProgress?: ((args_0: UploadState | null, ...args: unknown[]) => void) | undefined;
12
+ }>;
13
+ export type UploadSkillVariables = z.infer<typeof UploadSkillVariablesSchema>;
14
+ //# sourceMappingURL=upload-skill-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-skill-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/upload-skill-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAQpE,eAAO,MAAM,0BAA0B;;;;;;;;;EAG5B,CAAC;AACZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ const onProgressSchema = z
3
+ .function()
4
+ .args(z.custom())
5
+ .returns(z.void())
6
+ .optional();
7
+ export const UploadSkillVariablesSchema = z.object({
8
+ file: z.instanceof(File).or(z.instanceof(Blob)),
9
+ onProgress: onProgressSchema,
10
+ }).strict();
11
+ //# sourceMappingURL=upload-skill-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-skill-variables.js","sourceRoot":"","sources":["../../src/upload-variables/upload-skill-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,gBAAgB,GAAG,CAAC;KACvB,QAAQ,EAAE;KACV,IAAI,CAAC,CAAC,CAAC,MAAM,EAAsB,CAAC;KACpC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;KACjB,QAAQ,EAAE,CAAC;AAEd,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/C,UAAU,EAAE,gBAAgB;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttt-productions/ttt-core",
3
- "version": "0.2.30",
3
+ "version": "0.3.0",
4
4
  "description": "Core types, Firestore path constants, and shared constants for TTT Productions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,6 +67,10 @@
67
67
  "./schemas": {
68
68
  "types": "./dist/schemas/index.d.ts",
69
69
  "default": "./dist/schemas/index.js"
70
+ },
71
+ "./upload-variables": {
72
+ "types": "./dist/upload-variables/index.d.ts",
73
+ "default": "./dist/upload-variables/index.js"
70
74
  }
71
75
  },
72
76
  "scripts": {