@_henriquewilson/gabirubi-domain 1.0.13 → 1.0.14

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.
@@ -1,6 +1,26 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ declare const PublishOnDate: z.ZodObject<z.objectUtil.extendShape<{
4
+ id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5
+ order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6
+ createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
7
+ updateAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
8
+ }, {
9
+ publishOnDate: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
10
+ }>, "strip", z.ZodTypeAny, {
11
+ id?: string | null | undefined;
12
+ order?: number | null | undefined;
13
+ createAt?: FirebaseFirestore.Timestamp | undefined;
14
+ updateAt?: FirebaseFirestore.Timestamp | undefined;
15
+ publishOnDate?: FirebaseFirestore.Timestamp | undefined;
16
+ }, {
17
+ id?: string | null | undefined;
18
+ order?: number | null | undefined;
19
+ createAt?: unknown;
20
+ updateAt?: unknown;
21
+ publishOnDate?: unknown;
22
+ }>;
23
+ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4
24
  id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5
25
  order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6
26
  createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
@@ -29,6 +49,13 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
29
49
  createAt?: unknown;
30
50
  updateAt?: unknown;
31
51
  }>, "many">>>;
52
+ }>>, z.objectUtil.extendShape<{
53
+ id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
54
+ order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
55
+ createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
56
+ updateAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
57
+ }, {
58
+ publishOnDate: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
32
59
  }>>, "strip", z.ZodTypeAny, {
33
60
  title: string;
34
61
  id?: string | null | undefined;
@@ -41,6 +68,7 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
41
68
  createAt?: FirebaseFirestore.Timestamp | undefined;
42
69
  updateAt?: FirebaseFirestore.Timestamp | undefined;
43
70
  }[] | undefined;
71
+ publishOnDate?: FirebaseFirestore.Timestamp | undefined;
44
72
  }, {
45
73
  title: string;
46
74
  id?: string | null | undefined;
@@ -53,9 +81,10 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
53
81
  createAt?: unknown;
54
82
  updateAt?: unknown;
55
83
  }[] | undefined;
84
+ publishOnDate?: unknown;
56
85
  }>;
57
86
  declare const JourneyContentTypeSchema: z.ZodEnum<["video", "file", "audio", "text"]>;
58
- declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
87
+ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
59
88
  id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
60
89
  order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
61
90
  createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
@@ -65,7 +94,14 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
65
94
  description: z.ZodOptional<z.ZodString>;
66
95
  contentType: z.ZodEnum<["video", "file", "audio", "text"]>;
67
96
  content: z.ZodString;
68
- }>, "strip", z.ZodTypeAny, {
97
+ }>, z.objectUtil.extendShape<{
98
+ id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
99
+ order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
100
+ createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
101
+ updateAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
102
+ }, {
103
+ publishOnDate: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
104
+ }>>, "strip", z.ZodTypeAny, {
69
105
  title: string;
70
106
  contentType: "video" | "file" | "audio" | "text";
71
107
  content: string;
@@ -73,6 +109,7 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
73
109
  order?: number | null | undefined;
74
110
  createAt?: FirebaseFirestore.Timestamp | undefined;
75
111
  updateAt?: FirebaseFirestore.Timestamp | undefined;
112
+ publishOnDate?: FirebaseFirestore.Timestamp | undefined;
76
113
  description?: string | undefined;
77
114
  }, {
78
115
  title: string;
@@ -82,10 +119,11 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
82
119
  order?: number | null | undefined;
83
120
  createAt?: unknown;
84
121
  updateAt?: unknown;
122
+ publishOnDate?: unknown;
85
123
  description?: string | undefined;
86
124
  }>;
87
125
  type Module = z.infer<typeof ModuleSchema>;
88
126
  type Activity = z.infer<typeof ActivitySchema>;
89
127
  type JourneyContentType = z.infer<typeof JourneyContentTypeSchema>;
90
128
 
91
- export { Activity, ActivitySchema, JourneyContentType, JourneyContentTypeSchema, Module, ModuleSchema };
129
+ export { Activity, ActivitySchema, JourneyContentType, JourneyContentTypeSchema, Module, ModuleSchema, PublishOnDate };
@@ -1,6 +1,26 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
3
+ declare const PublishOnDate: z.ZodObject<z.objectUtil.extendShape<{
4
+ id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5
+ order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6
+ createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
7
+ updateAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
8
+ }, {
9
+ publishOnDate: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
10
+ }>, "strip", z.ZodTypeAny, {
11
+ id?: string | null | undefined;
12
+ order?: number | null | undefined;
13
+ createAt?: FirebaseFirestore.Timestamp | undefined;
14
+ updateAt?: FirebaseFirestore.Timestamp | undefined;
15
+ publishOnDate?: FirebaseFirestore.Timestamp | undefined;
16
+ }, {
17
+ id?: string | null | undefined;
18
+ order?: number | null | undefined;
19
+ createAt?: unknown;
20
+ updateAt?: unknown;
21
+ publishOnDate?: unknown;
22
+ }>;
23
+ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4
24
  id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
5
25
  order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
6
26
  createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
@@ -29,6 +49,13 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
29
49
  createAt?: unknown;
30
50
  updateAt?: unknown;
31
51
  }>, "many">>>;
52
+ }>>, z.objectUtil.extendShape<{
53
+ id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
54
+ order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
55
+ createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
56
+ updateAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
57
+ }, {
58
+ publishOnDate: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
32
59
  }>>, "strip", z.ZodTypeAny, {
33
60
  title: string;
34
61
  id?: string | null | undefined;
@@ -41,6 +68,7 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
41
68
  createAt?: FirebaseFirestore.Timestamp | undefined;
42
69
  updateAt?: FirebaseFirestore.Timestamp | undefined;
43
70
  }[] | undefined;
71
+ publishOnDate?: FirebaseFirestore.Timestamp | undefined;
44
72
  }, {
45
73
  title: string;
46
74
  id?: string | null | undefined;
@@ -53,9 +81,10 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
53
81
  createAt?: unknown;
54
82
  updateAt?: unknown;
55
83
  }[] | undefined;
84
+ publishOnDate?: unknown;
56
85
  }>;
57
86
  declare const JourneyContentTypeSchema: z.ZodEnum<["video", "file", "audio", "text"]>;
58
- declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
87
+ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
59
88
  id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
60
89
  order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
61
90
  createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
@@ -65,7 +94,14 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
65
94
  description: z.ZodOptional<z.ZodString>;
66
95
  contentType: z.ZodEnum<["video", "file", "audio", "text"]>;
67
96
  content: z.ZodString;
68
- }>, "strip", z.ZodTypeAny, {
97
+ }>, z.objectUtil.extendShape<{
98
+ id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
99
+ order: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
100
+ createAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
101
+ updateAt: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
102
+ }, {
103
+ publishOnDate: z.ZodOptional<z.ZodEffects<z.ZodType<FirebaseFirestore.Timestamp, z.ZodTypeDef, FirebaseFirestore.Timestamp>, FirebaseFirestore.Timestamp, unknown>>;
104
+ }>>, "strip", z.ZodTypeAny, {
69
105
  title: string;
70
106
  contentType: "video" | "file" | "audio" | "text";
71
107
  content: string;
@@ -73,6 +109,7 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
73
109
  order?: number | null | undefined;
74
110
  createAt?: FirebaseFirestore.Timestamp | undefined;
75
111
  updateAt?: FirebaseFirestore.Timestamp | undefined;
112
+ publishOnDate?: FirebaseFirestore.Timestamp | undefined;
76
113
  description?: string | undefined;
77
114
  }, {
78
115
  title: string;
@@ -82,10 +119,11 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<{
82
119
  order?: number | null | undefined;
83
120
  createAt?: unknown;
84
121
  updateAt?: unknown;
122
+ publishOnDate?: unknown;
85
123
  description?: string | undefined;
86
124
  }>;
87
125
  type Module = z.infer<typeof ModuleSchema>;
88
126
  type Activity = z.infer<typeof ActivitySchema>;
89
127
  type JourneyContentType = z.infer<typeof JourneyContentTypeSchema>;
90
128
 
91
- export { Activity, ActivitySchema, JourneyContentType, JourneyContentTypeSchema, Module, ModuleSchema };
129
+ export { Activity, ActivitySchema, JourneyContentType, JourneyContentTypeSchema, Module, ModuleSchema, PublishOnDate };
@@ -186771,6 +186771,9 @@ __export(journey_exports, {
186771
186771
  },
186772
186772
  ModuleSchema: function() {
186773
186773
  return ModuleSchema;
186774
+ },
186775
+ PublishOnDate: function() {
186776
+ return PublishOnDate;
186774
186777
  }
186775
186778
  });
186776
186779
  module.exports = __toCommonJS(journey_exports);
@@ -186803,9 +186806,12 @@ var EnabledSchema = import_zod2.z.object({
186803
186806
  });
186804
186807
  // src/model/journey.ts
186805
186808
  var import_zod3 = require("zod");
186809
+ var PublishOnDate = ModelSchema.extend({
186810
+ publishOnDate: TimestampOrNow
186811
+ });
186806
186812
  var ModuleSchema = ModelSchema.extend({
186807
186813
  title: import_zod3.z.string()
186808
- }).merge(PreviousSchema);
186814
+ }).merge(PreviousSchema).merge(PublishOnDate);
186809
186815
  var JourneyContentTypeSchema = import_zod3.z.enum([
186810
186816
  "video",
186811
186817
  "file",
@@ -186817,12 +186823,13 @@ var ActivitySchema = ModelSchema.extend({
186817
186823
  description: import_zod3.z.string().optional(),
186818
186824
  contentType: JourneyContentTypeSchema,
186819
186825
  content: import_zod3.z.string()
186820
- });
186826
+ }).merge(PublishOnDate);
186821
186827
  // Annotate the CommonJS export names for ESM import in node:
186822
186828
  0 && (module.exports = {
186823
186829
  ActivitySchema: ActivitySchema,
186824
186830
  JourneyContentTypeSchema: JourneyContentTypeSchema,
186825
- ModuleSchema: ModuleSchema
186831
+ ModuleSchema: ModuleSchema,
186832
+ PublishOnDate: PublishOnDate
186826
186833
  }); /*! Bundled license information:
186827
186834
 
186828
186835
  safe-buffer/index.js: