@_henriquewilson/gabirubi-domain 1.3.19 → 1.3.20
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/model/journey.d.mts +16 -16
- package/dist/model/journey.d.ts +16 -16
- package/dist/model/storage/file.d.mts +5 -1
- package/dist/model/storage/file.d.ts +5 -1
- package/dist/model/storage/file.js +11 -0
- package/dist/model/storage/file.js.map +1 -1
- package/dist/model/storage/file.mjs +8 -1
- package/dist/model/storage/file.mjs.map +1 -1
- package/dist/model/subscription.model.d.mts +8 -8
- package/dist/model/subscription.model.d.ts +8 -8
- package/dist/model/user.model.d.mts +4 -4
- package/dist/model/user.model.d.ts +4 -4
- package/package.json +1 -1
package/dist/model/journey.d.mts
CHANGED
|
@@ -473,32 +473,32 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
473
473
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
474
474
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
475
475
|
order?: number | null | undefined;
|
|
476
|
-
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
477
|
-
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
478
|
-
isExclusive?: boolean | null | undefined;
|
|
479
476
|
previous?: {
|
|
480
477
|
id: string | number;
|
|
481
478
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
482
479
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
483
480
|
order?: number | null | undefined;
|
|
484
481
|
}[] | undefined;
|
|
482
|
+
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
483
|
+
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
484
|
+
isExclusive?: boolean | null | undefined;
|
|
485
485
|
}, {
|
|
486
486
|
title: string;
|
|
487
487
|
id?: unknown;
|
|
488
488
|
createdAt?: unknown;
|
|
489
489
|
updatedAt?: unknown;
|
|
490
490
|
order?: number | null | undefined;
|
|
491
|
-
publishOnDate?: unknown;
|
|
492
|
-
unpublishOnDate?: unknown;
|
|
493
|
-
published?: boolean | undefined;
|
|
494
|
-
isPrivate?: boolean | undefined;
|
|
495
|
-
isExclusive?: boolean | null | undefined;
|
|
496
491
|
previous?: {
|
|
497
492
|
id?: unknown;
|
|
498
493
|
createdAt?: unknown;
|
|
499
494
|
updatedAt?: unknown;
|
|
500
495
|
order?: number | null | undefined;
|
|
501
496
|
}[] | undefined;
|
|
497
|
+
publishOnDate?: unknown;
|
|
498
|
+
unpublishOnDate?: unknown;
|
|
499
|
+
published?: boolean | undefined;
|
|
500
|
+
isPrivate?: boolean | undefined;
|
|
501
|
+
isExclusive?: boolean | null | undefined;
|
|
502
502
|
}>;
|
|
503
503
|
declare const JourneyContentTypeSchema: z.ZodEnum<["video", "file", "audio", "text", "soundcloud", "youtube", "form", "live"]>;
|
|
504
504
|
declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -707,15 +707,15 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
707
707
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
708
708
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
709
709
|
order?: number | null | undefined;
|
|
710
|
-
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
711
|
-
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
712
|
-
isExclusive?: boolean | null | undefined;
|
|
713
710
|
previous?: {
|
|
714
711
|
id: string | number;
|
|
715
712
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
716
713
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
717
714
|
order?: number | null | undefined;
|
|
718
715
|
}[] | undefined;
|
|
716
|
+
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
717
|
+
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
718
|
+
isExclusive?: boolean | null | undefined;
|
|
719
719
|
}, {
|
|
720
720
|
title: string;
|
|
721
721
|
activities: {
|
|
@@ -741,17 +741,17 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
741
741
|
createdAt?: unknown;
|
|
742
742
|
updatedAt?: unknown;
|
|
743
743
|
order?: number | null | undefined;
|
|
744
|
-
publishOnDate?: unknown;
|
|
745
|
-
unpublishOnDate?: unknown;
|
|
746
|
-
published?: boolean | undefined;
|
|
747
|
-
isPrivate?: boolean | undefined;
|
|
748
|
-
isExclusive?: boolean | null | undefined;
|
|
749
744
|
previous?: {
|
|
750
745
|
id?: unknown;
|
|
751
746
|
createdAt?: unknown;
|
|
752
747
|
updatedAt?: unknown;
|
|
753
748
|
order?: number | null | undefined;
|
|
754
749
|
}[] | undefined;
|
|
750
|
+
publishOnDate?: unknown;
|
|
751
|
+
unpublishOnDate?: unknown;
|
|
752
|
+
published?: boolean | undefined;
|
|
753
|
+
isPrivate?: boolean | undefined;
|
|
754
|
+
isExclusive?: boolean | null | undefined;
|
|
755
755
|
}>;
|
|
756
756
|
type ModuleWithActivities = z.infer<typeof ModuleWithActivities>;
|
|
757
757
|
type Activity = z.infer<typeof ActivitySchema>;
|
package/dist/model/journey.d.ts
CHANGED
|
@@ -473,32 +473,32 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
|
|
|
473
473
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
474
474
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
475
475
|
order?: number | null | undefined;
|
|
476
|
-
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
477
|
-
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
478
|
-
isExclusive?: boolean | null | undefined;
|
|
479
476
|
previous?: {
|
|
480
477
|
id: string | number;
|
|
481
478
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
482
479
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
483
480
|
order?: number | null | undefined;
|
|
484
481
|
}[] | undefined;
|
|
482
|
+
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
483
|
+
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
484
|
+
isExclusive?: boolean | null | undefined;
|
|
485
485
|
}, {
|
|
486
486
|
title: string;
|
|
487
487
|
id?: unknown;
|
|
488
488
|
createdAt?: unknown;
|
|
489
489
|
updatedAt?: unknown;
|
|
490
490
|
order?: number | null | undefined;
|
|
491
|
-
publishOnDate?: unknown;
|
|
492
|
-
unpublishOnDate?: unknown;
|
|
493
|
-
published?: boolean | undefined;
|
|
494
|
-
isPrivate?: boolean | undefined;
|
|
495
|
-
isExclusive?: boolean | null | undefined;
|
|
496
491
|
previous?: {
|
|
497
492
|
id?: unknown;
|
|
498
493
|
createdAt?: unknown;
|
|
499
494
|
updatedAt?: unknown;
|
|
500
495
|
order?: number | null | undefined;
|
|
501
496
|
}[] | undefined;
|
|
497
|
+
publishOnDate?: unknown;
|
|
498
|
+
unpublishOnDate?: unknown;
|
|
499
|
+
published?: boolean | undefined;
|
|
500
|
+
isPrivate?: boolean | undefined;
|
|
501
|
+
isExclusive?: boolean | null | undefined;
|
|
502
502
|
}>;
|
|
503
503
|
declare const JourneyContentTypeSchema: z.ZodEnum<["video", "file", "audio", "text", "soundcloud", "youtube", "form", "live"]>;
|
|
504
504
|
declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -707,15 +707,15 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
707
707
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
708
708
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
709
709
|
order?: number | null | undefined;
|
|
710
|
-
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
711
|
-
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
712
|
-
isExclusive?: boolean | null | undefined;
|
|
713
710
|
previous?: {
|
|
714
711
|
id: string | number;
|
|
715
712
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
716
713
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
717
714
|
order?: number | null | undefined;
|
|
718
715
|
}[] | undefined;
|
|
716
|
+
publishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
717
|
+
unpublishOnDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
718
|
+
isExclusive?: boolean | null | undefined;
|
|
719
719
|
}, {
|
|
720
720
|
title: string;
|
|
721
721
|
activities: {
|
|
@@ -741,17 +741,17 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
|
|
|
741
741
|
createdAt?: unknown;
|
|
742
742
|
updatedAt?: unknown;
|
|
743
743
|
order?: number | null | undefined;
|
|
744
|
-
publishOnDate?: unknown;
|
|
745
|
-
unpublishOnDate?: unknown;
|
|
746
|
-
published?: boolean | undefined;
|
|
747
|
-
isPrivate?: boolean | undefined;
|
|
748
|
-
isExclusive?: boolean | null | undefined;
|
|
749
744
|
previous?: {
|
|
750
745
|
id?: unknown;
|
|
751
746
|
createdAt?: unknown;
|
|
752
747
|
updatedAt?: unknown;
|
|
753
748
|
order?: number | null | undefined;
|
|
754
749
|
}[] | undefined;
|
|
750
|
+
publishOnDate?: unknown;
|
|
751
|
+
unpublishOnDate?: unknown;
|
|
752
|
+
published?: boolean | undefined;
|
|
753
|
+
isPrivate?: boolean | undefined;
|
|
754
|
+
isExclusive?: boolean | null | undefined;
|
|
755
755
|
}>;
|
|
756
756
|
type ModuleWithActivities = z.infer<typeof ModuleWithActivities>;
|
|
757
757
|
type Activity = z.infer<typeof ActivitySchema>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const FileKindSchema: z.ZodEnum<["image", "video", "audio", "document"]>;
|
|
3
4
|
declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
5
|
id: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, unknown>;
|
|
5
6
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>>>;
|
|
@@ -9,6 +10,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9
10
|
category: z.ZodOptional<z.ZodString>;
|
|
10
11
|
description: z.ZodOptional<z.ZodString>;
|
|
11
12
|
name: z.ZodString;
|
|
13
|
+
kind: z.ZodEnum<["image", "video", "audio", "document"]>;
|
|
12
14
|
url: z.ZodString;
|
|
13
15
|
path: z.ZodString;
|
|
14
16
|
encodedPath: z.ZodString;
|
|
@@ -17,6 +19,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17
19
|
path: string;
|
|
18
20
|
id: string | number;
|
|
19
21
|
name: string;
|
|
22
|
+
kind: "image" | "video" | "audio" | "document";
|
|
20
23
|
url: string;
|
|
21
24
|
encodedPath: string;
|
|
22
25
|
token: string;
|
|
@@ -28,6 +31,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
28
31
|
}, {
|
|
29
32
|
path: string;
|
|
30
33
|
name: string;
|
|
34
|
+
kind: "image" | "video" | "audio" | "document";
|
|
31
35
|
url: string;
|
|
32
36
|
encodedPath: string;
|
|
33
37
|
token: string;
|
|
@@ -40,4 +44,4 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
40
44
|
}>;
|
|
41
45
|
type File = z.infer<typeof FileSchema>;
|
|
42
46
|
|
|
43
|
-
export { type File, FileSchema };
|
|
47
|
+
export { type File, FileKindSchema, FileSchema };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const FileKindSchema: z.ZodEnum<["image", "video", "audio", "document"]>;
|
|
3
4
|
declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
4
5
|
id: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, unknown>;
|
|
5
6
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>>>;
|
|
@@ -9,6 +10,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9
10
|
category: z.ZodOptional<z.ZodString>;
|
|
10
11
|
description: z.ZodOptional<z.ZodString>;
|
|
11
12
|
name: z.ZodString;
|
|
13
|
+
kind: z.ZodEnum<["image", "video", "audio", "document"]>;
|
|
12
14
|
url: z.ZodString;
|
|
13
15
|
path: z.ZodString;
|
|
14
16
|
encodedPath: z.ZodString;
|
|
@@ -17,6 +19,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
17
19
|
path: string;
|
|
18
20
|
id: string | number;
|
|
19
21
|
name: string;
|
|
22
|
+
kind: "image" | "video" | "audio" | "document";
|
|
20
23
|
url: string;
|
|
21
24
|
encodedPath: string;
|
|
22
25
|
token: string;
|
|
@@ -28,6 +31,7 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
28
31
|
}, {
|
|
29
32
|
path: string;
|
|
30
33
|
name: string;
|
|
34
|
+
kind: "image" | "video" | "audio" | "document";
|
|
31
35
|
url: string;
|
|
32
36
|
encodedPath: string;
|
|
33
37
|
token: string;
|
|
@@ -40,4 +44,4 @@ declare const FileSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
40
44
|
}>;
|
|
41
45
|
type File = z.infer<typeof FileSchema>;
|
|
42
46
|
|
|
43
|
-
export { type File, FileSchema };
|
|
47
|
+
export { type File, FileKindSchema, FileSchema };
|
|
@@ -60,6 +60,9 @@ var __toCommonJS = function(mod) {
|
|
|
60
60
|
// src/model/storage/file.ts
|
|
61
61
|
var file_exports = {};
|
|
62
62
|
__export(file_exports, {
|
|
63
|
+
FileKindSchema: function() {
|
|
64
|
+
return FileKindSchema;
|
|
65
|
+
},
|
|
63
66
|
FileSchema: function() {
|
|
64
67
|
return FileSchema;
|
|
65
68
|
}
|
|
@@ -104,10 +107,17 @@ var EnabledSchema = import_zod2.z.object({
|
|
|
104
107
|
});
|
|
105
108
|
// src/model/storage/file.ts
|
|
106
109
|
var import_zod3 = require("zod");
|
|
110
|
+
var FileKindSchema = import_zod3.z.enum([
|
|
111
|
+
"image",
|
|
112
|
+
"video",
|
|
113
|
+
"audio",
|
|
114
|
+
"document"
|
|
115
|
+
]);
|
|
107
116
|
var FileSchema = ModelSchema.extend({
|
|
108
117
|
category: import_zod3.z.string().optional(),
|
|
109
118
|
description: import_zod3.z.string().optional(),
|
|
110
119
|
name: import_zod3.z.string(),
|
|
120
|
+
kind: FileKindSchema,
|
|
111
121
|
url: import_zod3.z.string(),
|
|
112
122
|
path: import_zod3.z.string(),
|
|
113
123
|
encodedPath: import_zod3.z.string(),
|
|
@@ -115,6 +125,7 @@ var FileSchema = ModelSchema.extend({
|
|
|
115
125
|
});
|
|
116
126
|
// Annotate the CommonJS export names for ESM import in node:
|
|
117
127
|
0 && (module.exports = {
|
|
128
|
+
FileKindSchema: FileKindSchema,
|
|
118
129
|
FileSchema: FileSchema
|
|
119
130
|
});
|
|
120
131
|
//# sourceMappingURL=file.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/storage/file.js","../../../src/model/storage/file.ts","../../../src/model.ts","../../../src/model/shared.ts"],"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","file_exports","FileSchema","module","exports","import_zod","require","import_firestore","TimestampOrNow","z","preprocess","arg","Timestamp","now","custom","nullish","optional","import_cuid","generateFirestoreId","cuid","IdModelSchema","import_zod2","union","string","number","IdModelProcess","val","ModelSchema","object","id","createdAt","updatedAt","order","coerce","PreviousSchema","extend","previous","lazy","array","EnabledSchema","enabled","boolean","
|
|
1
|
+
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/storage/file.js","../../../src/model/storage/file.ts","../../../src/model.ts","../../../src/model/shared.ts"],"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","file_exports","FileKindSchema","FileSchema","module","exports","import_zod","require","import_firestore","TimestampOrNow","z","preprocess","arg","Timestamp","now","custom","nullish","optional","import_cuid","generateFirestoreId","cuid","IdModelSchema","import_zod2","union","string","number","IdModelProcess","val","ModelSchema","object","id","createdAt","updatedAt","order","coerce","PreviousSchema","extend","previous","lazy","array","EnabledSchema","enabled","boolean","import_zod3","enum","category","description","kind","url","path","encodedPath","token"],"mappings":"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","sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/model/storage/file.ts\nvar file_exports = {};\n__export(file_exports, {\n FileKindSchema: () => FileKindSchema,\n FileSchema: () => FileSchema\n});\nmodule.exports = __toCommonJS(file_exports);\n\n// src/model.ts\nvar import_zod2 = require(\"zod\");\n\n// src/model/shared.ts\nvar import_firestore = require(\"@google-cloud/firestore\");\nvar import_zod = require(\"zod\");\nvar TimestampOrNow = import_zod.z.preprocess(\n (arg) => arg === void 0 ? import_firestore.Timestamp.now() : arg,\n import_zod.z.custom()\n).nullish().optional();\n\n// src/model.ts\nvar import_cuid = __toESM(require(\"cuid\"));\nvar generateFirestoreId = () => {\n return (0, import_cuid.default)();\n};\nvar IdModelSchema = import_zod2.z.union([import_zod2.z.string(), import_zod2.z.number()]);\nvar IdModelProcess = import_zod2.z.preprocess((val) => {\n if (val === void 0 || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\nvar ModelSchema = import_zod2.z.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: import_zod2.z.coerce.number().nullish().optional()\n});\nvar PreviousSchema = ModelSchema.extend({\n previous: import_zod2.z.lazy(() => ModelSchema.array().optional())\n});\nvar EnabledSchema = import_zod2.z.object({\n enabled: import_zod2.z.boolean().optional()\n});\n\n// src/model/storage/file.ts\nvar import_zod3 = require(\"zod\");\nvar FileKindSchema = import_zod3.z.enum([\"image\", \"video\", \"audio\", \"document\"]);\nvar FileSchema = ModelSchema.extend({\n category: import_zod3.z.string().optional(),\n description: import_zod3.z.string().optional(),\n name: import_zod3.z.string(),\n kind: FileKindSchema,\n url: import_zod3.z.string(),\n path: import_zod3.z.string(),\n encodedPath: import_zod3.z.string(),\n token: import_zod3.z.string()\n});\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n FileKindSchema,\n FileSchema\n});\n","import {ModelSchema} from \"../../model\";\nimport {z} from \"zod\";\n\nexport const FileKindSchema = z.enum(['image', 'video', 'audio', 'document'])\n\nexport const FileSchema = ModelSchema.extend({\n category: z.string().optional(),\n description: z.string().optional(),\n name: z.string(),\n kind: FileKindSchema,\n url: z.string(),\n path: z.string(),\n encodedPath: z.string(),\n token: z.string(),\n})\n\nexport type File = z.infer<typeof FileSchema>\n\n\n","import {z} from \"zod\";\nimport {TimestampOrNow} from \"./model/shared\";\nimport cuid from 'cuid';\n\nexport const generateFirestoreId = () => {\n return cuid();\n}\n\nexport const IdModelSchema = z.union([z.string(), z.number()])\n\nconst IdModelProcess = z.preprocess((val) => {\n if (val === undefined || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\n\nexport const ModelSchema = z.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: z.coerce.number().nullish().optional()\n});\n\nexport const PreviousSchema = ModelSchema.extend({\n previous: z.lazy(() => ModelSchema.array().optional())\n})\n\nexport const EnabledSchema = z.object({\n enabled: z.boolean().optional()\n})\n\nexport type IdModel = z.infer<typeof IdModelSchema>;\nexport type Model = z.infer<typeof ModelSchema>;\nexport type Previous = z.infer<typeof PreviousSchema>;\nexport type Enabled = z.infer<typeof EnabledSchema>;\nexport type PartialWithId<T extends Model> = Partial<T> & {\n id: NonNullable<T['id']>\n}\n\n\n","import { Timestamp } from '@google-cloud/firestore';\nimport {z} from \"zod\";\n\nexport const TimestampOrNow = z\n .preprocess(\n (arg) => (arg === undefined ? Timestamp.now() : arg),\n z.custom<Timestamp>(),\n )\n .nullish().optional();\n"]}
|
|
@@ -37,14 +37,21 @@ var EnabledSchema = z2.object({
|
|
|
37
37
|
});
|
|
38
38
|
// src/model/storage/file.ts
|
|
39
39
|
import { z as z3 } from "zod";
|
|
40
|
+
var FileKindSchema = z3.enum([
|
|
41
|
+
"image",
|
|
42
|
+
"video",
|
|
43
|
+
"audio",
|
|
44
|
+
"document"
|
|
45
|
+
]);
|
|
40
46
|
var FileSchema = ModelSchema.extend({
|
|
41
47
|
category: z3.string().optional(),
|
|
42
48
|
description: z3.string().optional(),
|
|
43
49
|
name: z3.string(),
|
|
50
|
+
kind: FileKindSchema,
|
|
44
51
|
url: z3.string(),
|
|
45
52
|
path: z3.string(),
|
|
46
53
|
encodedPath: z3.string(),
|
|
47
54
|
token: z3.string()
|
|
48
55
|
});
|
|
49
|
-
export { FileSchema };
|
|
56
|
+
export { FileKindSchema, FileSchema };
|
|
50
57
|
//# sourceMappingURL=file.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/storage/file.mjs","../../../src/model.ts","../../../src/model/shared.ts","../../../src/model/storage/file.ts"],"names":["z","Timestamp","TimestampOrNow","preprocess","arg","now","custom","nullish","optional","cuid","generateFirestoreId","IdModelSchema","union","string","number","IdModelProcess","val","ModelSchema","object","id","createdAt","updatedAt","order","coerce","PreviousSchema","extend","previous","lazy","array","EnabledSchema","enabled","boolean","FileSchema","category","description","name","url","path","encodedPath","token"],"mappings":"AAAA,eAAe;ACAf,SAAQA,KAAAA,EAAAA,QAAQ,MAAA;ADGhB,sBAAsB;AEHtB,SAASC,SAAA,QAAiB,0BAAA;AAC1B,SAAQD,CAAA,QAAQ,MAAA;AAET,IAAME,iBAAiBF,EAC3BG,UAAA,CACC,SAACC;WAASA,QAAQ,KAAA,IAAYH,UAAUI,GAAA,KAAQD;GAChDJ,EAAEM,MAAA,IAEHC,OAAA,GAAUC,QAAA;AFGb,eAAe;ACTf,OAAOC,UAAU,OAAA;AAEV,IAAMC,sBAAsB;IACjC,OAAOD;AACT;AAEO,IAAME,gBAAgBX,GAAEY,KAAA,CAAM;IAACZ,GAAEa,MAAA;IAAUb,GAAEc,MAAA;CAAS;AAE7D,IAAMC,iBAAiBf,GAAEG,UAAA,CAAW,SAACa;IACnC,IAAIA,QAAQ,KAAA,KAAaA,QAAQ,MAAM;QACrC,OAAON;IACT;IACA,OAAOM;AACT,GAAGL;AAEI,IAAMM,cAAcjB,GAAEkB,MAAA,CAAO;IAClCC,IAAIJ;IACJK,WAAWlB;IACXmB,WAAWnB;IACXoB,OAAOtB,GAAEuB,MAAA,CAAOT,MAAA,GAASP,OAAA,GAAUC,QAAA;AACrC;AAEO,IAAMgB,iBAAiBP,YAAYQ,MAAA,CAAO;IAC/CC,UAAU1B,GAAE2B,IAAA,CAAK;eAAMV,YAAYW,KAAA,GAAQpB,QAAA;;AAC7C;AAEO,IAAMqB,gBAAgB7B,GAAEkB,MAAA,CAAO;IACpCY,SAAS9B,GAAE+B,OAAA,GAAUvB,QAAA;AACvB;ADMA,4BAA4B;AGnC5B,SAAQR,KAAAA,EAAAA,QAAQ,MAAA;AAET,IAAMgC,
|
|
1
|
+
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/storage/file.mjs","../../../src/model.ts","../../../src/model/shared.ts","../../../src/model/storage/file.ts"],"names":["z","Timestamp","TimestampOrNow","preprocess","arg","now","custom","nullish","optional","cuid","generateFirestoreId","IdModelSchema","union","string","number","IdModelProcess","val","ModelSchema","object","id","createdAt","updatedAt","order","coerce","PreviousSchema","extend","previous","lazy","array","EnabledSchema","enabled","boolean","FileKindSchema","enum","FileSchema","category","description","name","kind","url","path","encodedPath","token"],"mappings":"AAAA,eAAe;ACAf,SAAQA,KAAAA,EAAAA,QAAQ,MAAA;ADGhB,sBAAsB;AEHtB,SAASC,SAAA,QAAiB,0BAAA;AAC1B,SAAQD,CAAA,QAAQ,MAAA;AAET,IAAME,iBAAiBF,EAC3BG,UAAA,CACC,SAACC;WAASA,QAAQ,KAAA,IAAYH,UAAUI,GAAA,KAAQD;GAChDJ,EAAEM,MAAA,IAEHC,OAAA,GAAUC,QAAA;AFGb,eAAe;ACTf,OAAOC,UAAU,OAAA;AAEV,IAAMC,sBAAsB;IACjC,OAAOD;AACT;AAEO,IAAME,gBAAgBX,GAAEY,KAAA,CAAM;IAACZ,GAAEa,MAAA;IAAUb,GAAEc,MAAA;CAAS;AAE7D,IAAMC,iBAAiBf,GAAEG,UAAA,CAAW,SAACa;IACnC,IAAIA,QAAQ,KAAA,KAAaA,QAAQ,MAAM;QACrC,OAAON;IACT;IACA,OAAOM;AACT,GAAGL;AAEI,IAAMM,cAAcjB,GAAEkB,MAAA,CAAO;IAClCC,IAAIJ;IACJK,WAAWlB;IACXmB,WAAWnB;IACXoB,OAAOtB,GAAEuB,MAAA,CAAOT,MAAA,GAASP,OAAA,GAAUC,QAAA;AACrC;AAEO,IAAMgB,iBAAiBP,YAAYQ,MAAA,CAAO;IAC/CC,UAAU1B,GAAE2B,IAAA,CAAK;eAAMV,YAAYW,KAAA,GAAQpB,QAAA;;AAC7C;AAEO,IAAMqB,gBAAgB7B,GAAEkB,MAAA,CAAO;IACpCY,SAAS9B,GAAE+B,OAAA,GAAUvB,QAAA;AACvB;ADMA,4BAA4B;AGnC5B,SAAQR,KAAAA,EAAAA,QAAQ,MAAA;AAET,IAAMgC,iBAAiBhC,GAAEiC,IAAA,CAAK;IAAC;IAAS;IAAS;IAAS;CAAW;AAErE,IAAMC,aAAajB,YAAYQ,MAAA,CAAO;IAC3CU,UAAUnC,GAAEa,MAAA,GAASL,QAAA;IACrB4B,aAAapC,GAAEa,MAAA,GAASL,QAAA;IACxB6B,MAAMrC,GAAEa,MAAA;IACRyB,MAAMN;IACNO,KAAKvC,GAAEa,MAAA;IACP2B,MAAMxC,GAAEa,MAAA;IACR4B,aAAazC,GAAEa,MAAA;IACf6B,OAAO1C,GAAEa,MAAA;AACX;AHmCA,SACEmB,cAAc,EACdE,UAAU,GACV","sourcesContent":["// src/model.ts\nimport { z as z2 } from \"zod\";\n\n// src/model/shared.ts\nimport { Timestamp } from \"@google-cloud/firestore\";\nimport { z } from \"zod\";\nvar TimestampOrNow = z.preprocess(\n (arg) => arg === void 0 ? Timestamp.now() : arg,\n z.custom()\n).nullish().optional();\n\n// src/model.ts\nimport cuid from \"cuid\";\nvar generateFirestoreId = () => {\n return cuid();\n};\nvar IdModelSchema = z2.union([z2.string(), z2.number()]);\nvar IdModelProcess = z2.preprocess((val) => {\n if (val === void 0 || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\nvar ModelSchema = z2.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: z2.coerce.number().nullish().optional()\n});\nvar PreviousSchema = ModelSchema.extend({\n previous: z2.lazy(() => ModelSchema.array().optional())\n});\nvar EnabledSchema = z2.object({\n enabled: z2.boolean().optional()\n});\n\n// src/model/storage/file.ts\nimport { z as z3 } from \"zod\";\nvar FileKindSchema = z3.enum([\"image\", \"video\", \"audio\", \"document\"]);\nvar FileSchema = ModelSchema.extend({\n category: z3.string().optional(),\n description: z3.string().optional(),\n name: z3.string(),\n kind: FileKindSchema,\n url: z3.string(),\n path: z3.string(),\n encodedPath: z3.string(),\n token: z3.string()\n});\nexport {\n FileKindSchema,\n FileSchema\n};\n","import {z} from \"zod\";\nimport {TimestampOrNow} from \"./model/shared\";\nimport cuid from 'cuid';\n\nexport const generateFirestoreId = () => {\n return cuid();\n}\n\nexport const IdModelSchema = z.union([z.string(), z.number()])\n\nconst IdModelProcess = z.preprocess((val) => {\n if (val === undefined || val === null) {\n return generateFirestoreId();\n }\n return val;\n}, IdModelSchema);\n\nexport const ModelSchema = z.object({\n id: IdModelProcess,\n createdAt: TimestampOrNow,\n updatedAt: TimestampOrNow,\n order: z.coerce.number().nullish().optional()\n});\n\nexport const PreviousSchema = ModelSchema.extend({\n previous: z.lazy(() => ModelSchema.array().optional())\n})\n\nexport const EnabledSchema = z.object({\n enabled: z.boolean().optional()\n})\n\nexport type IdModel = z.infer<typeof IdModelSchema>;\nexport type Model = z.infer<typeof ModelSchema>;\nexport type Previous = z.infer<typeof PreviousSchema>;\nexport type Enabled = z.infer<typeof EnabledSchema>;\nexport type PartialWithId<T extends Model> = Partial<T> & {\n id: NonNullable<T['id']>\n}\n\n\n","import { Timestamp } from '@google-cloud/firestore';\nimport {z} from \"zod\";\n\nexport const TimestampOrNow = z\n .preprocess(\n (arg) => (arg === undefined ? Timestamp.now() : arg),\n z.custom<Timestamp>(),\n )\n .nullish().optional();\n","import {ModelSchema} from \"../../model\";\nimport {z} from \"zod\";\n\nexport const FileKindSchema = z.enum(['image', 'video', 'audio', 'document'])\n\nexport const FileSchema = ModelSchema.extend({\n category: z.string().optional(),\n description: z.string().optional(),\n name: z.string(),\n kind: FileKindSchema,\n url: z.string(),\n path: z.string(),\n encodedPath: z.string(),\n token: z.string(),\n})\n\nexport type File = z.infer<typeof FileSchema>\n\n\n"]}
|
|
@@ -557,10 +557,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
557
557
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
558
558
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
559
559
|
order?: number | null | undefined;
|
|
560
|
-
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
561
|
-
enabled?: boolean | undefined;
|
|
562
560
|
email?: string | undefined;
|
|
563
561
|
name?: string | undefined;
|
|
562
|
+
enabled?: boolean | undefined;
|
|
563
|
+
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
564
564
|
password?: string | undefined;
|
|
565
565
|
phone?: string | undefined;
|
|
566
566
|
userHash?: string | null | undefined;
|
|
@@ -576,10 +576,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
576
576
|
createdAt?: unknown;
|
|
577
577
|
updatedAt?: unknown;
|
|
578
578
|
order?: number | null | undefined;
|
|
579
|
-
lastNewsDate?: unknown;
|
|
580
|
-
enabled?: boolean | undefined;
|
|
581
579
|
email?: string | undefined;
|
|
582
580
|
name?: string | undefined;
|
|
581
|
+
enabled?: boolean | undefined;
|
|
582
|
+
lastNewsDate?: unknown;
|
|
583
583
|
password?: string | undefined;
|
|
584
584
|
phone?: string | undefined;
|
|
585
585
|
userHash?: string | null | undefined;
|
|
@@ -603,10 +603,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
603
603
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
604
604
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
605
605
|
order?: number | null | undefined;
|
|
606
|
-
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
607
|
-
enabled?: boolean | undefined;
|
|
608
606
|
email?: string | undefined;
|
|
609
607
|
name?: string | undefined;
|
|
608
|
+
enabled?: boolean | undefined;
|
|
609
|
+
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
610
610
|
password?: string | undefined;
|
|
611
611
|
phone?: string | undefined;
|
|
612
612
|
userHash?: string | null | undefined;
|
|
@@ -785,10 +785,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
785
785
|
createdAt?: unknown;
|
|
786
786
|
updatedAt?: unknown;
|
|
787
787
|
order?: number | null | undefined;
|
|
788
|
-
lastNewsDate?: unknown;
|
|
789
|
-
enabled?: boolean | undefined;
|
|
790
788
|
email?: string | undefined;
|
|
791
789
|
name?: string | undefined;
|
|
790
|
+
enabled?: boolean | undefined;
|
|
791
|
+
lastNewsDate?: unknown;
|
|
792
792
|
password?: string | undefined;
|
|
793
793
|
phone?: string | undefined;
|
|
794
794
|
userHash?: string | null | undefined;
|
|
@@ -557,10 +557,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
557
557
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
558
558
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
559
559
|
order?: number | null | undefined;
|
|
560
|
-
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
561
|
-
enabled?: boolean | undefined;
|
|
562
560
|
email?: string | undefined;
|
|
563
561
|
name?: string | undefined;
|
|
562
|
+
enabled?: boolean | undefined;
|
|
563
|
+
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
564
564
|
password?: string | undefined;
|
|
565
565
|
phone?: string | undefined;
|
|
566
566
|
userHash?: string | null | undefined;
|
|
@@ -576,10 +576,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
576
576
|
createdAt?: unknown;
|
|
577
577
|
updatedAt?: unknown;
|
|
578
578
|
order?: number | null | undefined;
|
|
579
|
-
lastNewsDate?: unknown;
|
|
580
|
-
enabled?: boolean | undefined;
|
|
581
579
|
email?: string | undefined;
|
|
582
580
|
name?: string | undefined;
|
|
581
|
+
enabled?: boolean | undefined;
|
|
582
|
+
lastNewsDate?: unknown;
|
|
583
583
|
password?: string | undefined;
|
|
584
584
|
phone?: string | undefined;
|
|
585
585
|
userHash?: string | null | undefined;
|
|
@@ -603,10 +603,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
603
603
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
604
604
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
605
605
|
order?: number | null | undefined;
|
|
606
|
-
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
607
|
-
enabled?: boolean | undefined;
|
|
608
606
|
email?: string | undefined;
|
|
609
607
|
name?: string | undefined;
|
|
608
|
+
enabled?: boolean | undefined;
|
|
609
|
+
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
610
610
|
password?: string | undefined;
|
|
611
611
|
phone?: string | undefined;
|
|
612
612
|
userHash?: string | null | undefined;
|
|
@@ -785,10 +785,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
785
785
|
createdAt?: unknown;
|
|
786
786
|
updatedAt?: unknown;
|
|
787
787
|
order?: number | null | undefined;
|
|
788
|
-
lastNewsDate?: unknown;
|
|
789
|
-
enabled?: boolean | undefined;
|
|
790
788
|
email?: string | undefined;
|
|
791
789
|
name?: string | undefined;
|
|
790
|
+
enabled?: boolean | undefined;
|
|
791
|
+
lastNewsDate?: unknown;
|
|
792
792
|
password?: string | undefined;
|
|
793
793
|
phone?: string | undefined;
|
|
794
794
|
userHash?: string | null | undefined;
|
|
@@ -29,9 +29,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
29
29
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
30
30
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
31
31
|
order?: number | null | undefined;
|
|
32
|
-
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
33
|
-
enabled?: boolean | undefined;
|
|
34
32
|
name?: string | undefined;
|
|
33
|
+
enabled?: boolean | undefined;
|
|
34
|
+
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
35
35
|
password?: string | undefined;
|
|
36
36
|
phone?: string | undefined;
|
|
37
37
|
userHash?: string | null | undefined;
|
|
@@ -48,9 +48,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
48
48
|
createdAt?: unknown;
|
|
49
49
|
updatedAt?: unknown;
|
|
50
50
|
order?: number | null | undefined;
|
|
51
|
-
lastNewsDate?: unknown;
|
|
52
|
-
enabled?: boolean | undefined;
|
|
53
51
|
name?: string | undefined;
|
|
52
|
+
enabled?: boolean | undefined;
|
|
53
|
+
lastNewsDate?: unknown;
|
|
54
54
|
password?: string | undefined;
|
|
55
55
|
phone?: string | undefined;
|
|
56
56
|
userHash?: string | null | undefined;
|
|
@@ -29,9 +29,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
29
29
|
createdAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
30
30
|
updatedAt?: FirebaseFirestore.Timestamp | null | undefined;
|
|
31
31
|
order?: number | null | undefined;
|
|
32
|
-
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
33
|
-
enabled?: boolean | undefined;
|
|
34
32
|
name?: string | undefined;
|
|
33
|
+
enabled?: boolean | undefined;
|
|
34
|
+
lastNewsDate?: FirebaseFirestore.Timestamp | null | undefined;
|
|
35
35
|
password?: string | undefined;
|
|
36
36
|
phone?: string | undefined;
|
|
37
37
|
userHash?: string | null | undefined;
|
|
@@ -48,9 +48,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
|
|
|
48
48
|
createdAt?: unknown;
|
|
49
49
|
updatedAt?: unknown;
|
|
50
50
|
order?: number | null | undefined;
|
|
51
|
-
lastNewsDate?: unknown;
|
|
52
|
-
enabled?: boolean | undefined;
|
|
53
51
|
name?: string | undefined;
|
|
52
|
+
enabled?: boolean | undefined;
|
|
53
|
+
lastNewsDate?: unknown;
|
|
54
54
|
password?: string | undefined;
|
|
55
55
|
phone?: string | undefined;
|
|
56
56
|
userHash?: string | null | undefined;
|