@_henriquewilson/gabirubi-domain 1.5.1 → 1.5.2

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.
@@ -226,8 +226,8 @@ declare const IuguInvoiceSchema: z.ZodObject<{
226
226
  }, "strip", z.ZodTypeAny, {
227
227
  id: string;
228
228
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
229
- discount?: string | null | undefined;
230
229
  email?: string | null | undefined;
230
+ discount?: string | null | undefined;
231
231
  paid?: string | null | undefined;
232
232
  due_date?: string | null | undefined;
233
233
  currency?: string | null | undefined;
@@ -378,8 +378,8 @@ declare const IuguInvoiceSchema: z.ZodObject<{
378
378
  }, {
379
379
  id: string;
380
380
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
381
- discount?: string | null | undefined;
382
381
  email?: string | null | undefined;
382
+ discount?: string | null | undefined;
383
383
  paid?: string | null | undefined;
384
384
  due_date?: string | null | undefined;
385
385
  currency?: string | null | undefined;
@@ -226,8 +226,8 @@ declare const IuguInvoiceSchema: z.ZodObject<{
226
226
  }, "strip", z.ZodTypeAny, {
227
227
  id: string;
228
228
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
229
- discount?: string | null | undefined;
230
229
  email?: string | null | undefined;
230
+ discount?: string | null | undefined;
231
231
  paid?: string | null | undefined;
232
232
  due_date?: string | null | undefined;
233
233
  currency?: string | null | undefined;
@@ -378,8 +378,8 @@ declare const IuguInvoiceSchema: z.ZodObject<{
378
378
  }, {
379
379
  id: string;
380
380
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
381
- discount?: string | null | undefined;
382
381
  email?: string | null | undefined;
382
+ discount?: string | null | undefined;
383
383
  paid?: string | null | undefined;
384
384
  due_date?: string | null | undefined;
385
385
  currency?: string | null | undefined;
@@ -61,8 +61,8 @@ declare const PlanCouponSchema: z.ZodObject<{
61
61
  isPercent: boolean;
62
62
  createdAt?: Timestamp | null | undefined;
63
63
  updatedAt?: Timestamp | null | undefined;
64
- label?: string | undefined;
65
64
  description?: string | undefined;
65
+ label?: string | undefined;
66
66
  journeys?: (string | number)[] | undefined;
67
67
  journeyActiveFrom?: Timestamp | undefined;
68
68
  maxUsage?: number | undefined;
@@ -72,8 +72,8 @@ declare const PlanCouponSchema: z.ZodObject<{
72
72
  discount: number;
73
73
  createdAt?: unknown;
74
74
  updatedAt?: unknown;
75
- label?: string | undefined;
76
75
  description?: string | undefined;
76
+ label?: string | undefined;
77
77
  isPercent?: boolean | undefined;
78
78
  journeys?: (string | number)[] | undefined;
79
79
  journeyActiveFrom?: Timestamp | undefined;
@@ -112,8 +112,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
112
112
  isPercent: boolean;
113
113
  createdAt?: Timestamp | null | undefined;
114
114
  updatedAt?: Timestamp | null | undefined;
115
- label?: string | undefined;
116
115
  description?: string | undefined;
116
+ label?: string | undefined;
117
117
  journeys?: (string | number)[] | undefined;
118
118
  journeyActiveFrom?: Timestamp | undefined;
119
119
  maxUsage?: number | undefined;
@@ -123,8 +123,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
123
123
  discount: number;
124
124
  createdAt?: unknown;
125
125
  updatedAt?: unknown;
126
- label?: string | undefined;
127
126
  description?: string | undefined;
127
+ label?: string | undefined;
128
128
  isPercent?: boolean | undefined;
129
129
  journeys?: (string | number)[] | undefined;
130
130
  journeyActiveFrom?: Timestamp | undefined;
@@ -133,8 +133,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
133
133
  }>, "many">>;
134
134
  }>, "strip", z.ZodTypeAny, {
135
135
  id: string | number;
136
- title: string;
137
136
  enabled: boolean;
137
+ title: string;
138
138
  price: number;
139
139
  stripePrice: string;
140
140
  pixDiscount: number;
@@ -150,8 +150,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
150
150
  isPercent: boolean;
151
151
  createdAt?: Timestamp | null | undefined;
152
152
  updatedAt?: Timestamp | null | undefined;
153
- label?: string | undefined;
154
153
  description?: string | undefined;
154
+ label?: string | undefined;
155
155
  journeys?: (string | number)[] | undefined;
156
156
  journeyActiveFrom?: Timestamp | undefined;
157
157
  maxUsage?: number | undefined;
@@ -167,16 +167,16 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
167
167
  createdAt?: unknown;
168
168
  updatedAt?: unknown;
169
169
  order?: number | null | undefined;
170
- description?: string | undefined;
171
170
  enabled?: boolean | undefined;
171
+ description?: string | undefined;
172
172
  period?: "month" | "biannual" | "year" | undefined;
173
173
  coupons?: {
174
174
  code: string;
175
175
  discount: number;
176
176
  createdAt?: unknown;
177
177
  updatedAt?: unknown;
178
- label?: string | undefined;
179
178
  description?: string | undefined;
179
+ label?: string | undefined;
180
180
  isPercent?: boolean | undefined;
181
181
  journeys?: (string | number)[] | undefined;
182
182
  journeyActiveFrom?: Timestamp | undefined;
@@ -608,8 +608,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
608
608
  isPercent: boolean;
609
609
  createdAt?: Timestamp | null | undefined;
610
610
  updatedAt?: Timestamp | null | undefined;
611
- label?: string | undefined;
612
611
  description?: string | undefined;
612
+ label?: string | undefined;
613
613
  journeys?: (string | number)[] | undefined;
614
614
  journeyActiveFrom?: Timestamp | undefined;
615
615
  maxUsage?: number | undefined;
@@ -619,8 +619,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
619
619
  discount: number;
620
620
  createdAt?: unknown;
621
621
  updatedAt?: unknown;
622
- label?: string | undefined;
623
622
  description?: string | undefined;
623
+ label?: string | undefined;
624
624
  isPercent?: boolean | undefined;
625
625
  journeys?: (string | number)[] | undefined;
626
626
  journeyActiveFrom?: Timestamp | undefined;
@@ -629,8 +629,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
629
629
  }>, "many">>;
630
630
  }>, "strip", z.ZodTypeAny, {
631
631
  id: string | number;
632
- title: string;
633
632
  enabled: boolean;
633
+ title: string;
634
634
  price: number;
635
635
  stripePrice: string;
636
636
  pixDiscount: number;
@@ -646,8 +646,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
646
646
  isPercent: boolean;
647
647
  createdAt?: Timestamp | null | undefined;
648
648
  updatedAt?: Timestamp | null | undefined;
649
- label?: string | undefined;
650
649
  description?: string | undefined;
650
+ label?: string | undefined;
651
651
  journeys?: (string | number)[] | undefined;
652
652
  journeyActiveFrom?: Timestamp | undefined;
653
653
  maxUsage?: number | undefined;
@@ -663,16 +663,16 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
663
663
  createdAt?: unknown;
664
664
  updatedAt?: unknown;
665
665
  order?: number | null | undefined;
666
- description?: string | undefined;
667
666
  enabled?: boolean | undefined;
667
+ description?: string | undefined;
668
668
  period?: "month" | "biannual" | "year" | undefined;
669
669
  coupons?: {
670
670
  code: string;
671
671
  discount: number;
672
672
  createdAt?: unknown;
673
673
  updatedAt?: unknown;
674
- label?: string | undefined;
675
674
  description?: string | undefined;
675
+ label?: string | undefined;
676
676
  isPercent?: boolean | undefined;
677
677
  journeys?: (string | number)[] | undefined;
678
678
  journeyActiveFrom?: Timestamp | undefined;
@@ -699,9 +699,9 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
699
699
  createdAt?: Timestamp | null | undefined;
700
700
  updatedAt?: Timestamp | null | undefined;
701
701
  order?: number | null | undefined;
702
+ description?: string | undefined;
702
703
  publishOnDate?: Timestamp | null | undefined;
703
704
  unpublishOnDate?: Timestamp | null | undefined;
704
- description?: string | undefined;
705
705
  lastNewsDate?: Timestamp | null | undefined;
706
706
  thumbnail?: string | undefined;
707
707
  thumbnails?: {
@@ -789,8 +789,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
789
789
  stripeProductId?: string | undefined;
790
790
  plans?: {
791
791
  id: string | number;
792
- title: string;
793
792
  enabled: boolean;
793
+ title: string;
794
794
  price: number;
795
795
  stripePrice: string;
796
796
  pixDiscount: number;
@@ -806,8 +806,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
806
806
  isPercent: boolean;
807
807
  createdAt?: Timestamp | null | undefined;
808
808
  updatedAt?: Timestamp | null | undefined;
809
- label?: string | undefined;
810
809
  description?: string | undefined;
810
+ label?: string | undefined;
811
811
  journeys?: (string | number)[] | undefined;
812
812
  journeyActiveFrom?: Timestamp | undefined;
813
813
  maxUsage?: number | undefined;
@@ -821,10 +821,10 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
821
821
  createdAt?: unknown;
822
822
  updatedAt?: unknown;
823
823
  order?: number | null | undefined;
824
+ description?: string | undefined;
824
825
  publishOnDate?: unknown;
825
826
  unpublishOnDate?: unknown;
826
827
  published?: boolean | undefined;
827
- description?: string | undefined;
828
828
  lastNewsDate?: unknown;
829
829
  thumbnail?: string | undefined;
830
830
  thumbnails?: {
@@ -920,16 +920,16 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
920
920
  createdAt?: unknown;
921
921
  updatedAt?: unknown;
922
922
  order?: number | null | undefined;
923
- description?: string | undefined;
924
923
  enabled?: boolean | undefined;
924
+ description?: string | undefined;
925
925
  period?: "month" | "biannual" | "year" | undefined;
926
926
  coupons?: {
927
927
  code: string;
928
928
  discount: number;
929
929
  createdAt?: unknown;
930
930
  updatedAt?: unknown;
931
- label?: string | undefined;
932
931
  description?: string | undefined;
932
+ label?: string | undefined;
933
933
  isPercent?: boolean | undefined;
934
934
  journeys?: (string | number)[] | undefined;
935
935
  journeyActiveFrom?: Timestamp | undefined;
@@ -1136,9 +1136,15 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1136
1136
  createdAt?: Timestamp | null | undefined;
1137
1137
  updatedAt?: Timestamp | null | undefined;
1138
1138
  order?: number | null | undefined;
1139
+ previous?: {
1140
+ id: string | number;
1141
+ createdAt?: Timestamp | null | undefined;
1142
+ updatedAt?: Timestamp | null | undefined;
1143
+ order?: number | null | undefined;
1144
+ }[] | undefined;
1145
+ description?: string | undefined;
1139
1146
  publishOnDate?: Timestamp | null | undefined;
1140
1147
  unpublishOnDate?: Timestamp | null | undefined;
1141
- description?: string | undefined;
1142
1148
  thumbnails?: {
1143
1149
  original: string;
1144
1150
  small?: {
@@ -1174,22 +1180,22 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1174
1180
  } | undefined;
1175
1181
  rss?: string | undefined;
1176
1182
  allowedJourneys?: string[] | undefined;
1177
- previous?: {
1178
- id: string | number;
1179
- createdAt?: Timestamp | null | undefined;
1180
- updatedAt?: Timestamp | null | undefined;
1181
- order?: number | null | undefined;
1182
- }[] | undefined;
1183
1183
  }, {
1184
1184
  title: string;
1185
1185
  id?: unknown;
1186
1186
  createdAt?: unknown;
1187
1187
  updatedAt?: unknown;
1188
1188
  order?: number | null | undefined;
1189
+ previous?: {
1190
+ id?: unknown;
1191
+ createdAt?: unknown;
1192
+ updatedAt?: unknown;
1193
+ order?: number | null | undefined;
1194
+ }[] | undefined;
1195
+ description?: string | undefined;
1189
1196
  publishOnDate?: unknown;
1190
1197
  unpublishOnDate?: unknown;
1191
1198
  published?: boolean | undefined;
1192
- description?: string | undefined;
1193
1199
  thumbnails?: {
1194
1200
  original: string;
1195
1201
  small?: {
@@ -1227,12 +1233,6 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1227
1233
  isPrivate?: boolean | undefined;
1228
1234
  rss?: string | undefined;
1229
1235
  allowedJourneys?: string[] | undefined;
1230
- previous?: {
1231
- id?: unknown;
1232
- createdAt?: unknown;
1233
- updatedAt?: unknown;
1234
- order?: number | null | undefined;
1235
- }[] | undefined;
1236
1236
  }>;
1237
1237
  declare const JourneyContentTypeSchema: z.ZodEnum<["video", "document", "audio", "text", "soundcloud", "youtube", "form", "live", "file"]>;
1238
1238
  declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -1424,9 +1424,9 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
1424
1424
  createdAt?: Timestamp | null | undefined;
1425
1425
  updatedAt?: Timestamp | null | undefined;
1426
1426
  order?: number | null | undefined;
1427
+ description?: string | undefined;
1427
1428
  publishOnDate?: Timestamp | null | undefined;
1428
1429
  unpublishOnDate?: Timestamp | null | undefined;
1429
- description?: string | undefined;
1430
1430
  thumbnails?: {
1431
1431
  original: string;
1432
1432
  small?: {
@@ -1474,10 +1474,10 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
1474
1474
  createdAt?: unknown;
1475
1475
  updatedAt?: unknown;
1476
1476
  order?: number | null | undefined;
1477
+ description?: string | undefined;
1477
1478
  publishOnDate?: unknown;
1478
1479
  unpublishOnDate?: unknown;
1479
1480
  published?: boolean | undefined;
1480
- description?: string | undefined;
1481
1481
  thumbnails?: {
1482
1482
  original: string;
1483
1483
  small?: {
@@ -1901,9 +1901,9 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
1901
1901
  createdAt?: Timestamp | null | undefined;
1902
1902
  updatedAt?: Timestamp | null | undefined;
1903
1903
  order?: number | null | undefined;
1904
+ description?: string | undefined;
1904
1905
  publishOnDate?: Timestamp | null | undefined;
1905
1906
  unpublishOnDate?: Timestamp | null | undefined;
1906
- description?: string | undefined;
1907
1907
  thumbnails?: {
1908
1908
  original: string;
1909
1909
  small?: {
@@ -1951,10 +1951,10 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
1951
1951
  createdAt?: unknown;
1952
1952
  updatedAt?: unknown;
1953
1953
  order?: number | null | undefined;
1954
+ description?: string | undefined;
1954
1955
  publishOnDate?: unknown;
1955
1956
  unpublishOnDate?: unknown;
1956
1957
  published?: boolean | undefined;
1957
- description?: string | undefined;
1958
1958
  thumbnails?: {
1959
1959
  original: string;
1960
1960
  small?: {
@@ -2014,9 +2014,9 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2014
2014
  createdAt?: Timestamp | null | undefined;
2015
2015
  updatedAt?: Timestamp | null | undefined;
2016
2016
  order?: number | null | undefined;
2017
+ description?: string | undefined;
2017
2018
  publishOnDate?: Timestamp | null | undefined;
2018
2019
  unpublishOnDate?: Timestamp | null | undefined;
2019
- description?: string | undefined;
2020
2020
  thumbnails?: {
2021
2021
  original: string;
2022
2022
  small?: {
@@ -2060,9 +2060,15 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2060
2060
  createdAt?: Timestamp | null | undefined;
2061
2061
  updatedAt?: Timestamp | null | undefined;
2062
2062
  order?: number | null | undefined;
2063
+ previous?: {
2064
+ id: string | number;
2065
+ createdAt?: Timestamp | null | undefined;
2066
+ updatedAt?: Timestamp | null | undefined;
2067
+ order?: number | null | undefined;
2068
+ }[] | undefined;
2069
+ description?: string | undefined;
2063
2070
  publishOnDate?: Timestamp | null | undefined;
2064
2071
  unpublishOnDate?: Timestamp | null | undefined;
2065
- description?: string | undefined;
2066
2072
  thumbnails?: {
2067
2073
  original: string;
2068
2074
  small?: {
@@ -2098,12 +2104,6 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2098
2104
  } | undefined;
2099
2105
  rss?: string | undefined;
2100
2106
  allowedJourneys?: string[] | undefined;
2101
- previous?: {
2102
- id: string | number;
2103
- createdAt?: Timestamp | null | undefined;
2104
- updatedAt?: Timestamp | null | undefined;
2105
- order?: number | null | undefined;
2106
- }[] | undefined;
2107
2107
  }, {
2108
2108
  title: string;
2109
2109
  activities: {
@@ -2114,10 +2114,10 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2114
2114
  createdAt?: unknown;
2115
2115
  updatedAt?: unknown;
2116
2116
  order?: number | null | undefined;
2117
+ description?: string | undefined;
2117
2118
  publishOnDate?: unknown;
2118
2119
  unpublishOnDate?: unknown;
2119
2120
  published?: boolean | undefined;
2120
- description?: string | undefined;
2121
2121
  thumbnails?: {
2122
2122
  original: string;
2123
2123
  small?: {
@@ -2164,10 +2164,16 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2164
2164
  createdAt?: unknown;
2165
2165
  updatedAt?: unknown;
2166
2166
  order?: number | null | undefined;
2167
+ previous?: {
2168
+ id?: unknown;
2169
+ createdAt?: unknown;
2170
+ updatedAt?: unknown;
2171
+ order?: number | null | undefined;
2172
+ }[] | undefined;
2173
+ description?: string | undefined;
2167
2174
  publishOnDate?: unknown;
2168
2175
  unpublishOnDate?: unknown;
2169
2176
  published?: boolean | undefined;
2170
- description?: string | undefined;
2171
2177
  thumbnails?: {
2172
2178
  original: string;
2173
2179
  small?: {
@@ -2205,12 +2211,6 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2205
2211
  isPrivate?: boolean | undefined;
2206
2212
  rss?: string | undefined;
2207
2213
  allowedJourneys?: string[] | undefined;
2208
- previous?: {
2209
- id?: unknown;
2210
- createdAt?: unknown;
2211
- updatedAt?: unknown;
2212
- order?: number | null | undefined;
2213
- }[] | undefined;
2214
2214
  }>;
2215
2215
  type ModuleWithActivities = z.infer<typeof ModuleWithActivities>;
2216
2216
  type Activity = z.infer<typeof ActivitySchema>;
@@ -61,8 +61,8 @@ declare const PlanCouponSchema: z.ZodObject<{
61
61
  isPercent: boolean;
62
62
  createdAt?: Timestamp | null | undefined;
63
63
  updatedAt?: Timestamp | null | undefined;
64
- label?: string | undefined;
65
64
  description?: string | undefined;
65
+ label?: string | undefined;
66
66
  journeys?: (string | number)[] | undefined;
67
67
  journeyActiveFrom?: Timestamp | undefined;
68
68
  maxUsage?: number | undefined;
@@ -72,8 +72,8 @@ declare const PlanCouponSchema: z.ZodObject<{
72
72
  discount: number;
73
73
  createdAt?: unknown;
74
74
  updatedAt?: unknown;
75
- label?: string | undefined;
76
75
  description?: string | undefined;
76
+ label?: string | undefined;
77
77
  isPercent?: boolean | undefined;
78
78
  journeys?: (string | number)[] | undefined;
79
79
  journeyActiveFrom?: Timestamp | undefined;
@@ -112,8 +112,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
112
112
  isPercent: boolean;
113
113
  createdAt?: Timestamp | null | undefined;
114
114
  updatedAt?: Timestamp | null | undefined;
115
- label?: string | undefined;
116
115
  description?: string | undefined;
116
+ label?: string | undefined;
117
117
  journeys?: (string | number)[] | undefined;
118
118
  journeyActiveFrom?: Timestamp | undefined;
119
119
  maxUsage?: number | undefined;
@@ -123,8 +123,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
123
123
  discount: number;
124
124
  createdAt?: unknown;
125
125
  updatedAt?: unknown;
126
- label?: string | undefined;
127
126
  description?: string | undefined;
127
+ label?: string | undefined;
128
128
  isPercent?: boolean | undefined;
129
129
  journeys?: (string | number)[] | undefined;
130
130
  journeyActiveFrom?: Timestamp | undefined;
@@ -133,8 +133,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
133
133
  }>, "many">>;
134
134
  }>, "strip", z.ZodTypeAny, {
135
135
  id: string | number;
136
- title: string;
137
136
  enabled: boolean;
137
+ title: string;
138
138
  price: number;
139
139
  stripePrice: string;
140
140
  pixDiscount: number;
@@ -150,8 +150,8 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
150
150
  isPercent: boolean;
151
151
  createdAt?: Timestamp | null | undefined;
152
152
  updatedAt?: Timestamp | null | undefined;
153
- label?: string | undefined;
154
153
  description?: string | undefined;
154
+ label?: string | undefined;
155
155
  journeys?: (string | number)[] | undefined;
156
156
  journeyActiveFrom?: Timestamp | undefined;
157
157
  maxUsage?: number | undefined;
@@ -167,16 +167,16 @@ declare const PlanSchema: z.ZodObject<z.objectUtil.extendShape<{
167
167
  createdAt?: unknown;
168
168
  updatedAt?: unknown;
169
169
  order?: number | null | undefined;
170
- description?: string | undefined;
171
170
  enabled?: boolean | undefined;
171
+ description?: string | undefined;
172
172
  period?: "month" | "biannual" | "year" | undefined;
173
173
  coupons?: {
174
174
  code: string;
175
175
  discount: number;
176
176
  createdAt?: unknown;
177
177
  updatedAt?: unknown;
178
- label?: string | undefined;
179
178
  description?: string | undefined;
179
+ label?: string | undefined;
180
180
  isPercent?: boolean | undefined;
181
181
  journeys?: (string | number)[] | undefined;
182
182
  journeyActiveFrom?: Timestamp | undefined;
@@ -608,8 +608,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
608
608
  isPercent: boolean;
609
609
  createdAt?: Timestamp | null | undefined;
610
610
  updatedAt?: Timestamp | null | undefined;
611
- label?: string | undefined;
612
611
  description?: string | undefined;
612
+ label?: string | undefined;
613
613
  journeys?: (string | number)[] | undefined;
614
614
  journeyActiveFrom?: Timestamp | undefined;
615
615
  maxUsage?: number | undefined;
@@ -619,8 +619,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
619
619
  discount: number;
620
620
  createdAt?: unknown;
621
621
  updatedAt?: unknown;
622
- label?: string | undefined;
623
622
  description?: string | undefined;
623
+ label?: string | undefined;
624
624
  isPercent?: boolean | undefined;
625
625
  journeys?: (string | number)[] | undefined;
626
626
  journeyActiveFrom?: Timestamp | undefined;
@@ -629,8 +629,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
629
629
  }>, "many">>;
630
630
  }>, "strip", z.ZodTypeAny, {
631
631
  id: string | number;
632
- title: string;
633
632
  enabled: boolean;
633
+ title: string;
634
634
  price: number;
635
635
  stripePrice: string;
636
636
  pixDiscount: number;
@@ -646,8 +646,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
646
646
  isPercent: boolean;
647
647
  createdAt?: Timestamp | null | undefined;
648
648
  updatedAt?: Timestamp | null | undefined;
649
- label?: string | undefined;
650
649
  description?: string | undefined;
650
+ label?: string | undefined;
651
651
  journeys?: (string | number)[] | undefined;
652
652
  journeyActiveFrom?: Timestamp | undefined;
653
653
  maxUsage?: number | undefined;
@@ -663,16 +663,16 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
663
663
  createdAt?: unknown;
664
664
  updatedAt?: unknown;
665
665
  order?: number | null | undefined;
666
- description?: string | undefined;
667
666
  enabled?: boolean | undefined;
667
+ description?: string | undefined;
668
668
  period?: "month" | "biannual" | "year" | undefined;
669
669
  coupons?: {
670
670
  code: string;
671
671
  discount: number;
672
672
  createdAt?: unknown;
673
673
  updatedAt?: unknown;
674
- label?: string | undefined;
675
674
  description?: string | undefined;
675
+ label?: string | undefined;
676
676
  isPercent?: boolean | undefined;
677
677
  journeys?: (string | number)[] | undefined;
678
678
  journeyActiveFrom?: Timestamp | undefined;
@@ -699,9 +699,9 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
699
699
  createdAt?: Timestamp | null | undefined;
700
700
  updatedAt?: Timestamp | null | undefined;
701
701
  order?: number | null | undefined;
702
+ description?: string | undefined;
702
703
  publishOnDate?: Timestamp | null | undefined;
703
704
  unpublishOnDate?: Timestamp | null | undefined;
704
- description?: string | undefined;
705
705
  lastNewsDate?: Timestamp | null | undefined;
706
706
  thumbnail?: string | undefined;
707
707
  thumbnails?: {
@@ -789,8 +789,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
789
789
  stripeProductId?: string | undefined;
790
790
  plans?: {
791
791
  id: string | number;
792
- title: string;
793
792
  enabled: boolean;
793
+ title: string;
794
794
  price: number;
795
795
  stripePrice: string;
796
796
  pixDiscount: number;
@@ -806,8 +806,8 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
806
806
  isPercent: boolean;
807
807
  createdAt?: Timestamp | null | undefined;
808
808
  updatedAt?: Timestamp | null | undefined;
809
- label?: string | undefined;
810
809
  description?: string | undefined;
810
+ label?: string | undefined;
811
811
  journeys?: (string | number)[] | undefined;
812
812
  journeyActiveFrom?: Timestamp | undefined;
813
813
  maxUsage?: number | undefined;
@@ -821,10 +821,10 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
821
821
  createdAt?: unknown;
822
822
  updatedAt?: unknown;
823
823
  order?: number | null | undefined;
824
+ description?: string | undefined;
824
825
  publishOnDate?: unknown;
825
826
  unpublishOnDate?: unknown;
826
827
  published?: boolean | undefined;
827
- description?: string | undefined;
828
828
  lastNewsDate?: unknown;
829
829
  thumbnail?: string | undefined;
830
830
  thumbnails?: {
@@ -920,16 +920,16 @@ declare const JourneySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.e
920
920
  createdAt?: unknown;
921
921
  updatedAt?: unknown;
922
922
  order?: number | null | undefined;
923
- description?: string | undefined;
924
923
  enabled?: boolean | undefined;
924
+ description?: string | undefined;
925
925
  period?: "month" | "biannual" | "year" | undefined;
926
926
  coupons?: {
927
927
  code: string;
928
928
  discount: number;
929
929
  createdAt?: unknown;
930
930
  updatedAt?: unknown;
931
- label?: string | undefined;
932
931
  description?: string | undefined;
932
+ label?: string | undefined;
933
933
  isPercent?: boolean | undefined;
934
934
  journeys?: (string | number)[] | undefined;
935
935
  journeyActiveFrom?: Timestamp | undefined;
@@ -1136,9 +1136,15 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1136
1136
  createdAt?: Timestamp | null | undefined;
1137
1137
  updatedAt?: Timestamp | null | undefined;
1138
1138
  order?: number | null | undefined;
1139
+ previous?: {
1140
+ id: string | number;
1141
+ createdAt?: Timestamp | null | undefined;
1142
+ updatedAt?: Timestamp | null | undefined;
1143
+ order?: number | null | undefined;
1144
+ }[] | undefined;
1145
+ description?: string | undefined;
1139
1146
  publishOnDate?: Timestamp | null | undefined;
1140
1147
  unpublishOnDate?: Timestamp | null | undefined;
1141
- description?: string | undefined;
1142
1148
  thumbnails?: {
1143
1149
  original: string;
1144
1150
  small?: {
@@ -1174,22 +1180,22 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1174
1180
  } | undefined;
1175
1181
  rss?: string | undefined;
1176
1182
  allowedJourneys?: string[] | undefined;
1177
- previous?: {
1178
- id: string | number;
1179
- createdAt?: Timestamp | null | undefined;
1180
- updatedAt?: Timestamp | null | undefined;
1181
- order?: number | null | undefined;
1182
- }[] | undefined;
1183
1183
  }, {
1184
1184
  title: string;
1185
1185
  id?: unknown;
1186
1186
  createdAt?: unknown;
1187
1187
  updatedAt?: unknown;
1188
1188
  order?: number | null | undefined;
1189
+ previous?: {
1190
+ id?: unknown;
1191
+ createdAt?: unknown;
1192
+ updatedAt?: unknown;
1193
+ order?: number | null | undefined;
1194
+ }[] | undefined;
1195
+ description?: string | undefined;
1189
1196
  publishOnDate?: unknown;
1190
1197
  unpublishOnDate?: unknown;
1191
1198
  published?: boolean | undefined;
1192
- description?: string | undefined;
1193
1199
  thumbnails?: {
1194
1200
  original: string;
1195
1201
  small?: {
@@ -1227,12 +1233,6 @@ declare const ModuleSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.ex
1227
1233
  isPrivate?: boolean | undefined;
1228
1234
  rss?: string | undefined;
1229
1235
  allowedJourneys?: string[] | undefined;
1230
- previous?: {
1231
- id?: unknown;
1232
- createdAt?: unknown;
1233
- updatedAt?: unknown;
1234
- order?: number | null | undefined;
1235
- }[] | undefined;
1236
1236
  }>;
1237
1237
  declare const JourneyContentTypeSchema: z.ZodEnum<["video", "document", "audio", "text", "soundcloud", "youtube", "form", "live", "file"]>;
1238
1238
  declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
@@ -1424,9 +1424,9 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
1424
1424
  createdAt?: Timestamp | null | undefined;
1425
1425
  updatedAt?: Timestamp | null | undefined;
1426
1426
  order?: number | null | undefined;
1427
+ description?: string | undefined;
1427
1428
  publishOnDate?: Timestamp | null | undefined;
1428
1429
  unpublishOnDate?: Timestamp | null | undefined;
1429
- description?: string | undefined;
1430
1430
  thumbnails?: {
1431
1431
  original: string;
1432
1432
  small?: {
@@ -1474,10 +1474,10 @@ declare const ActivitySchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.
1474
1474
  createdAt?: unknown;
1475
1475
  updatedAt?: unknown;
1476
1476
  order?: number | null | undefined;
1477
+ description?: string | undefined;
1477
1478
  publishOnDate?: unknown;
1478
1479
  unpublishOnDate?: unknown;
1479
1480
  published?: boolean | undefined;
1480
- description?: string | undefined;
1481
1481
  thumbnails?: {
1482
1482
  original: string;
1483
1483
  small?: {
@@ -1901,9 +1901,9 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
1901
1901
  createdAt?: Timestamp | null | undefined;
1902
1902
  updatedAt?: Timestamp | null | undefined;
1903
1903
  order?: number | null | undefined;
1904
+ description?: string | undefined;
1904
1905
  publishOnDate?: Timestamp | null | undefined;
1905
1906
  unpublishOnDate?: Timestamp | null | undefined;
1906
- description?: string | undefined;
1907
1907
  thumbnails?: {
1908
1908
  original: string;
1909
1909
  small?: {
@@ -1951,10 +1951,10 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
1951
1951
  createdAt?: unknown;
1952
1952
  updatedAt?: unknown;
1953
1953
  order?: number | null | undefined;
1954
+ description?: string | undefined;
1954
1955
  publishOnDate?: unknown;
1955
1956
  unpublishOnDate?: unknown;
1956
1957
  published?: boolean | undefined;
1957
- description?: string | undefined;
1958
1958
  thumbnails?: {
1959
1959
  original: string;
1960
1960
  small?: {
@@ -2014,9 +2014,9 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2014
2014
  createdAt?: Timestamp | null | undefined;
2015
2015
  updatedAt?: Timestamp | null | undefined;
2016
2016
  order?: number | null | undefined;
2017
+ description?: string | undefined;
2017
2018
  publishOnDate?: Timestamp | null | undefined;
2018
2019
  unpublishOnDate?: Timestamp | null | undefined;
2019
- description?: string | undefined;
2020
2020
  thumbnails?: {
2021
2021
  original: string;
2022
2022
  small?: {
@@ -2060,9 +2060,15 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2060
2060
  createdAt?: Timestamp | null | undefined;
2061
2061
  updatedAt?: Timestamp | null | undefined;
2062
2062
  order?: number | null | undefined;
2063
+ previous?: {
2064
+ id: string | number;
2065
+ createdAt?: Timestamp | null | undefined;
2066
+ updatedAt?: Timestamp | null | undefined;
2067
+ order?: number | null | undefined;
2068
+ }[] | undefined;
2069
+ description?: string | undefined;
2063
2070
  publishOnDate?: Timestamp | null | undefined;
2064
2071
  unpublishOnDate?: Timestamp | null | undefined;
2065
- description?: string | undefined;
2066
2072
  thumbnails?: {
2067
2073
  original: string;
2068
2074
  small?: {
@@ -2098,12 +2104,6 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2098
2104
  } | undefined;
2099
2105
  rss?: string | undefined;
2100
2106
  allowedJourneys?: string[] | undefined;
2101
- previous?: {
2102
- id: string | number;
2103
- createdAt?: Timestamp | null | undefined;
2104
- updatedAt?: Timestamp | null | undefined;
2105
- order?: number | null | undefined;
2106
- }[] | undefined;
2107
2107
  }, {
2108
2108
  title: string;
2109
2109
  activities: {
@@ -2114,10 +2114,10 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2114
2114
  createdAt?: unknown;
2115
2115
  updatedAt?: unknown;
2116
2116
  order?: number | null | undefined;
2117
+ description?: string | undefined;
2117
2118
  publishOnDate?: unknown;
2118
2119
  unpublishOnDate?: unknown;
2119
2120
  published?: boolean | undefined;
2120
- description?: string | undefined;
2121
2121
  thumbnails?: {
2122
2122
  original: string;
2123
2123
  small?: {
@@ -2164,10 +2164,16 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2164
2164
  createdAt?: unknown;
2165
2165
  updatedAt?: unknown;
2166
2166
  order?: number | null | undefined;
2167
+ previous?: {
2168
+ id?: unknown;
2169
+ createdAt?: unknown;
2170
+ updatedAt?: unknown;
2171
+ order?: number | null | undefined;
2172
+ }[] | undefined;
2173
+ description?: string | undefined;
2167
2174
  publishOnDate?: unknown;
2168
2175
  unpublishOnDate?: unknown;
2169
2176
  published?: boolean | undefined;
2170
- description?: string | undefined;
2171
2177
  thumbnails?: {
2172
2178
  original: string;
2173
2179
  small?: {
@@ -2205,12 +2211,6 @@ declare const ModuleWithActivities: z.ZodObject<z.objectUtil.extendShape<z.objec
2205
2211
  isPrivate?: boolean | undefined;
2206
2212
  rss?: string | undefined;
2207
2213
  allowedJourneys?: string[] | undefined;
2208
- previous?: {
2209
- id?: unknown;
2210
- createdAt?: unknown;
2211
- updatedAt?: unknown;
2212
- order?: number | null | undefined;
2213
- }[] | undefined;
2214
2214
  }>;
2215
2215
  type ModuleWithActivities = z.infer<typeof ModuleWithActivities>;
2216
2216
  type Activity = z.infer<typeof ActivitySchema>;
@@ -250,8 +250,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
250
250
  }, "strip", z.ZodTypeAny, {
251
251
  id: string;
252
252
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
253
- discount?: string | null | undefined;
254
253
  email?: string | null | undefined;
254
+ discount?: string | null | undefined;
255
255
  paid?: string | null | undefined;
256
256
  due_date?: string | null | undefined;
257
257
  currency?: string | null | undefined;
@@ -402,8 +402,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
402
402
  }, {
403
403
  id: string;
404
404
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
405
- discount?: string | null | undefined;
406
405
  email?: string | null | undefined;
406
+ discount?: string | null | undefined;
407
407
  paid?: string | null | undefined;
408
408
  due_date?: string | null | undefined;
409
409
  currency?: string | null | undefined;
@@ -777,8 +777,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
777
777
  }, "strip", z.ZodTypeAny, {
778
778
  id: string;
779
779
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
780
- discount?: string | null | undefined;
781
780
  email?: string | null | undefined;
781
+ discount?: string | null | undefined;
782
782
  paid?: string | null | undefined;
783
783
  due_date?: string | null | undefined;
784
784
  currency?: string | null | undefined;
@@ -929,8 +929,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
929
929
  }, {
930
930
  id: string;
931
931
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
932
- discount?: string | null | undefined;
933
932
  email?: string | null | undefined;
933
+ discount?: string | null | undefined;
934
934
  paid?: string | null | undefined;
935
935
  due_date?: string | null | undefined;
936
936
  currency?: string | null | undefined;
@@ -1304,8 +1304,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1304
1304
  }, "strip", z.ZodTypeAny, {
1305
1305
  id: string;
1306
1306
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1307
- discount?: string | null | undefined;
1308
1307
  email?: string | null | undefined;
1308
+ discount?: string | null | undefined;
1309
1309
  paid?: string | null | undefined;
1310
1310
  due_date?: string | null | undefined;
1311
1311
  currency?: string | null | undefined;
@@ -1456,8 +1456,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1456
1456
  }, {
1457
1457
  id: string;
1458
1458
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1459
- discount?: string | null | undefined;
1460
1459
  email?: string | null | undefined;
1460
+ discount?: string | null | undefined;
1461
1461
  paid?: string | null | undefined;
1462
1462
  due_date?: string | null | undefined;
1463
1463
  currency?: string | null | undefined;
@@ -1642,10 +1642,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1642
1642
  createdAt?: Timestamp | null | undefined;
1643
1643
  updatedAt?: Timestamp | null | undefined;
1644
1644
  order?: number | null | undefined;
1645
- enabled?: boolean | undefined;
1646
- lastNewsDate?: Timestamp | null | undefined;
1647
1645
  email?: string | undefined;
1648
1646
  name?: string | undefined;
1647
+ enabled?: boolean | undefined;
1648
+ lastNewsDate?: Timestamp | null | undefined;
1649
1649
  password?: string | undefined;
1650
1650
  phone?: string | undefined;
1651
1651
  userHash?: string | null | undefined;
@@ -1663,10 +1663,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1663
1663
  createdAt?: unknown;
1664
1664
  updatedAt?: unknown;
1665
1665
  order?: number | null | undefined;
1666
- enabled?: boolean | undefined;
1667
- lastNewsDate?: unknown;
1668
1666
  email?: string | undefined;
1669
1667
  name?: string | undefined;
1668
+ enabled?: boolean | undefined;
1669
+ lastNewsDate?: unknown;
1670
1670
  password?: string | undefined;
1671
1671
  phone?: string | undefined;
1672
1672
  userHash?: string | null | undefined;
@@ -1695,16 +1695,15 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1695
1695
  }>, "strip", z.ZodTypeAny, {
1696
1696
  status: "ACTIVE" | "INACTIVE" | "CANCELED" | "EXPIRED" | "PENDING" | "INVITED";
1697
1697
  id: string | number;
1698
- autoRenew: boolean;
1699
1698
  user: {
1700
1699
  id?: string | number | undefined;
1701
1700
  createdAt?: Timestamp | null | undefined;
1702
1701
  updatedAt?: Timestamp | null | undefined;
1703
1702
  order?: number | null | undefined;
1704
- enabled?: boolean | undefined;
1705
- lastNewsDate?: Timestamp | null | undefined;
1706
1703
  email?: string | undefined;
1707
1704
  name?: string | undefined;
1705
+ enabled?: boolean | undefined;
1706
+ lastNewsDate?: Timestamp | null | undefined;
1708
1707
  password?: string | undefined;
1709
1708
  phone?: string | undefined;
1710
1709
  userHash?: string | null | undefined;
@@ -1718,11 +1717,12 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1718
1717
  defaultPaymentMethod?: string | null | undefined;
1719
1718
  storeOrdersCount?: number | undefined;
1720
1719
  };
1720
+ autoRenew: boolean;
1721
1721
  invoices: {
1722
1722
  id: string;
1723
1723
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1724
- discount?: string | null | undefined;
1725
1724
  email?: string | null | undefined;
1725
+ discount?: string | null | undefined;
1726
1726
  paid?: string | null | undefined;
1727
1727
  due_date?: string | null | undefined;
1728
1728
  currency?: string | null | undefined;
@@ -1874,8 +1874,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1874
1874
  lastInvoice: {
1875
1875
  id: string;
1876
1876
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1877
- discount?: string | null | undefined;
1878
1877
  email?: string | null | undefined;
1878
+ discount?: string | null | undefined;
1879
1879
  paid?: string | null | undefined;
1880
1880
  due_date?: string | null | undefined;
1881
1881
  currency?: string | null | undefined;
@@ -2034,8 +2034,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2034
2034
  invoice?: {
2035
2035
  id: string;
2036
2036
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2037
- discount?: string | null | undefined;
2038
2037
  email?: string | null | undefined;
2038
+ discount?: string | null | undefined;
2039
2039
  paid?: string | null | undefined;
2040
2040
  due_date?: string | null | undefined;
2041
2041
  currency?: string | null | undefined;
@@ -2199,10 +2199,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2199
2199
  createdAt?: unknown;
2200
2200
  updatedAt?: unknown;
2201
2201
  order?: number | null | undefined;
2202
- enabled?: boolean | undefined;
2203
- lastNewsDate?: unknown;
2204
2202
  email?: string | undefined;
2205
2203
  name?: string | undefined;
2204
+ enabled?: boolean | undefined;
2205
+ lastNewsDate?: unknown;
2206
2206
  password?: string | undefined;
2207
2207
  phone?: string | undefined;
2208
2208
  userHash?: string | null | undefined;
@@ -2219,8 +2219,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2219
2219
  lastInvoice: {
2220
2220
  id: string;
2221
2221
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2222
- discount?: string | null | undefined;
2223
2222
  email?: string | null | undefined;
2223
+ discount?: string | null | undefined;
2224
2224
  paid?: string | null | undefined;
2225
2225
  due_date?: string | null | undefined;
2226
2226
  currency?: string | null | undefined;
@@ -2381,8 +2381,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2381
2381
  invoice?: {
2382
2382
  id: string;
2383
2383
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2384
- discount?: string | null | undefined;
2385
2384
  email?: string | null | undefined;
2385
+ discount?: string | null | undefined;
2386
2386
  paid?: string | null | undefined;
2387
2387
  due_date?: string | null | undefined;
2388
2388
  currency?: string | null | undefined;
@@ -2534,8 +2534,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2534
2534
  invoices?: {
2535
2535
  id: string;
2536
2536
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2537
- discount?: string | null | undefined;
2538
2537
  email?: string | null | undefined;
2538
+ discount?: string | null | undefined;
2539
2539
  paid?: string | null | undefined;
2540
2540
  due_date?: string | null | undefined;
2541
2541
  currency?: string | null | undefined;
@@ -250,8 +250,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
250
250
  }, "strip", z.ZodTypeAny, {
251
251
  id: string;
252
252
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
253
- discount?: string | null | undefined;
254
253
  email?: string | null | undefined;
254
+ discount?: string | null | undefined;
255
255
  paid?: string | null | undefined;
256
256
  due_date?: string | null | undefined;
257
257
  currency?: string | null | undefined;
@@ -402,8 +402,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
402
402
  }, {
403
403
  id: string;
404
404
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
405
- discount?: string | null | undefined;
406
405
  email?: string | null | undefined;
406
+ discount?: string | null | undefined;
407
407
  paid?: string | null | undefined;
408
408
  due_date?: string | null | undefined;
409
409
  currency?: string | null | undefined;
@@ -777,8 +777,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
777
777
  }, "strip", z.ZodTypeAny, {
778
778
  id: string;
779
779
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
780
- discount?: string | null | undefined;
781
780
  email?: string | null | undefined;
781
+ discount?: string | null | undefined;
782
782
  paid?: string | null | undefined;
783
783
  due_date?: string | null | undefined;
784
784
  currency?: string | null | undefined;
@@ -929,8 +929,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
929
929
  }, {
930
930
  id: string;
931
931
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
932
- discount?: string | null | undefined;
933
932
  email?: string | null | undefined;
933
+ discount?: string | null | undefined;
934
934
  paid?: string | null | undefined;
935
935
  due_date?: string | null | undefined;
936
936
  currency?: string | null | undefined;
@@ -1304,8 +1304,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1304
1304
  }, "strip", z.ZodTypeAny, {
1305
1305
  id: string;
1306
1306
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1307
- discount?: string | null | undefined;
1308
1307
  email?: string | null | undefined;
1308
+ discount?: string | null | undefined;
1309
1309
  paid?: string | null | undefined;
1310
1310
  due_date?: string | null | undefined;
1311
1311
  currency?: string | null | undefined;
@@ -1456,8 +1456,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1456
1456
  }, {
1457
1457
  id: string;
1458
1458
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1459
- discount?: string | null | undefined;
1460
1459
  email?: string | null | undefined;
1460
+ discount?: string | null | undefined;
1461
1461
  paid?: string | null | undefined;
1462
1462
  due_date?: string | null | undefined;
1463
1463
  currency?: string | null | undefined;
@@ -1642,10 +1642,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1642
1642
  createdAt?: Timestamp | null | undefined;
1643
1643
  updatedAt?: Timestamp | null | undefined;
1644
1644
  order?: number | null | undefined;
1645
- enabled?: boolean | undefined;
1646
- lastNewsDate?: Timestamp | null | undefined;
1647
1645
  email?: string | undefined;
1648
1646
  name?: string | undefined;
1647
+ enabled?: boolean | undefined;
1648
+ lastNewsDate?: Timestamp | null | undefined;
1649
1649
  password?: string | undefined;
1650
1650
  phone?: string | undefined;
1651
1651
  userHash?: string | null | undefined;
@@ -1663,10 +1663,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1663
1663
  createdAt?: unknown;
1664
1664
  updatedAt?: unknown;
1665
1665
  order?: number | null | undefined;
1666
- enabled?: boolean | undefined;
1667
- lastNewsDate?: unknown;
1668
1666
  email?: string | undefined;
1669
1667
  name?: string | undefined;
1668
+ enabled?: boolean | undefined;
1669
+ lastNewsDate?: unknown;
1670
1670
  password?: string | undefined;
1671
1671
  phone?: string | undefined;
1672
1672
  userHash?: string | null | undefined;
@@ -1695,16 +1695,15 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1695
1695
  }>, "strip", z.ZodTypeAny, {
1696
1696
  status: "ACTIVE" | "INACTIVE" | "CANCELED" | "EXPIRED" | "PENDING" | "INVITED";
1697
1697
  id: string | number;
1698
- autoRenew: boolean;
1699
1698
  user: {
1700
1699
  id?: string | number | undefined;
1701
1700
  createdAt?: Timestamp | null | undefined;
1702
1701
  updatedAt?: Timestamp | null | undefined;
1703
1702
  order?: number | null | undefined;
1704
- enabled?: boolean | undefined;
1705
- lastNewsDate?: Timestamp | null | undefined;
1706
1703
  email?: string | undefined;
1707
1704
  name?: string | undefined;
1705
+ enabled?: boolean | undefined;
1706
+ lastNewsDate?: Timestamp | null | undefined;
1708
1707
  password?: string | undefined;
1709
1708
  phone?: string | undefined;
1710
1709
  userHash?: string | null | undefined;
@@ -1718,11 +1717,12 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1718
1717
  defaultPaymentMethod?: string | null | undefined;
1719
1718
  storeOrdersCount?: number | undefined;
1720
1719
  };
1720
+ autoRenew: boolean;
1721
1721
  invoices: {
1722
1722
  id: string;
1723
1723
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1724
- discount?: string | null | undefined;
1725
1724
  email?: string | null | undefined;
1725
+ discount?: string | null | undefined;
1726
1726
  paid?: string | null | undefined;
1727
1727
  due_date?: string | null | undefined;
1728
1728
  currency?: string | null | undefined;
@@ -1874,8 +1874,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
1874
1874
  lastInvoice: {
1875
1875
  id: string;
1876
1876
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
1877
- discount?: string | null | undefined;
1878
1877
  email?: string | null | undefined;
1878
+ discount?: string | null | undefined;
1879
1879
  paid?: string | null | undefined;
1880
1880
  due_date?: string | null | undefined;
1881
1881
  currency?: string | null | undefined;
@@ -2034,8 +2034,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2034
2034
  invoice?: {
2035
2035
  id: string;
2036
2036
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2037
- discount?: string | null | undefined;
2038
2037
  email?: string | null | undefined;
2038
+ discount?: string | null | undefined;
2039
2039
  paid?: string | null | undefined;
2040
2040
  due_date?: string | null | undefined;
2041
2041
  currency?: string | null | undefined;
@@ -2199,10 +2199,10 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2199
2199
  createdAt?: unknown;
2200
2200
  updatedAt?: unknown;
2201
2201
  order?: number | null | undefined;
2202
- enabled?: boolean | undefined;
2203
- lastNewsDate?: unknown;
2204
2202
  email?: string | undefined;
2205
2203
  name?: string | undefined;
2204
+ enabled?: boolean | undefined;
2205
+ lastNewsDate?: unknown;
2206
2206
  password?: string | undefined;
2207
2207
  phone?: string | undefined;
2208
2208
  userHash?: string | null | undefined;
@@ -2219,8 +2219,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2219
2219
  lastInvoice: {
2220
2220
  id: string;
2221
2221
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2222
- discount?: string | null | undefined;
2223
2222
  email?: string | null | undefined;
2223
+ discount?: string | null | undefined;
2224
2224
  paid?: string | null | undefined;
2225
2225
  due_date?: string | null | undefined;
2226
2226
  currency?: string | null | undefined;
@@ -2381,8 +2381,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2381
2381
  invoice?: {
2382
2382
  id: string;
2383
2383
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2384
- discount?: string | null | undefined;
2385
2384
  email?: string | null | undefined;
2385
+ discount?: string | null | undefined;
2386
2386
  paid?: string | null | undefined;
2387
2387
  due_date?: string | null | undefined;
2388
2388
  currency?: string | null | undefined;
@@ -2534,8 +2534,8 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
2534
2534
  invoices?: {
2535
2535
  id: string;
2536
2536
  status?: "pending" | "paid" | "canceled" | "in_analysis" | "draft" | "partially_paid" | "refunded" | "expired" | "in_protest" | "chargeback" | "externally_paid" | "invited" | null | undefined;
2537
- discount?: string | null | undefined;
2538
2537
  email?: string | null | undefined;
2538
+ discount?: string | null | undefined;
2539
2539
  paid?: string | null | undefined;
2540
2540
  due_date?: string | null | undefined;
2541
2541
  currency?: string | null | undefined;
@@ -32,9 +32,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
32
32
  createdAt?: Timestamp | null | undefined;
33
33
  updatedAt?: Timestamp | null | undefined;
34
34
  order?: number | null | undefined;
35
+ name?: string | undefined;
35
36
  enabled?: boolean | undefined;
36
37
  lastNewsDate?: Timestamp | null | undefined;
37
- name?: string | undefined;
38
38
  password?: string | undefined;
39
39
  phone?: string | undefined;
40
40
  userHash?: string | null | undefined;
@@ -53,9 +53,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
53
53
  createdAt?: unknown;
54
54
  updatedAt?: unknown;
55
55
  order?: number | null | undefined;
56
+ name?: string | undefined;
56
57
  enabled?: boolean | undefined;
57
58
  lastNewsDate?: unknown;
58
- name?: string | undefined;
59
59
  password?: string | undefined;
60
60
  phone?: string | undefined;
61
61
  userHash?: string | null | undefined;
@@ -32,9 +32,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
32
32
  createdAt?: Timestamp | null | undefined;
33
33
  updatedAt?: Timestamp | null | undefined;
34
34
  order?: number | null | undefined;
35
+ name?: string | undefined;
35
36
  enabled?: boolean | undefined;
36
37
  lastNewsDate?: Timestamp | null | undefined;
37
- name?: string | undefined;
38
38
  password?: string | undefined;
39
39
  phone?: string | undefined;
40
40
  userHash?: string | null | undefined;
@@ -53,9 +53,9 @@ declare const UserSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.exte
53
53
  createdAt?: unknown;
54
54
  updatedAt?: unknown;
55
55
  order?: number | null | undefined;
56
+ name?: string | undefined;
56
57
  enabled?: boolean | undefined;
57
58
  lastNewsDate?: unknown;
58
- name?: string | undefined;
59
59
  password?: string | undefined;
60
60
  phone?: string | undefined;
61
61
  userHash?: string | null | undefined;
@@ -10,4 +10,4 @@ declare class FirestoreRawService {
10
10
  }
11
11
  declare const forceTimestamp: (data: any) => any;
12
12
 
13
- export { FirestoreRawService, forceTimestamp };
13
+ export { FirestoreRawService, type TimestampLike, forceTimestamp };
@@ -10,4 +10,4 @@ declare class FirestoreRawService {
10
10
  }
11
11
  declare const forceTimestamp: (data: any) => any;
12
12
 
13
- export { FirestoreRawService, forceTimestamp };
13
+ export { FirestoreRawService, type TimestampLike, forceTimestamp };
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/util/firestore.util.js","../../src/util/firestore.util.ts"],"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","firestore_util_exports","FirestoreRawService","forceTimestamp","module","exports","configure","TimestampClass","data","Error","toDate","d","fromDate","Math","floor","getTime","seconds","nanoseconds","e"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;AACA,IAAIA,YAAYC,OAAOC,cAAc;AACrC,IAAIC,mBAAmBF,OAAOG,wBAAwB;AACtD,IAAIC,oBAAoBJ,OAAOK,mBAAmB;AAClD,IAAIC,eAAeN,OAAOO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,SAACC,QAAQC;IACtB,IAAK,IAAIC,QAAQD,IACfZ,UAAUW,QAAQE,MAAM;QAAEC,KAAKF,GAAG,CAACC,KAAK;QAAEE,YAAY;IAAK;AAC/D;AACA,IAAIC,cAAc,SAACC,IAAIC,MAAMC,QAAQC;IACnC,IAAIF,QAAQ,OAAOA,SAAS,YAAY,OAAOA,SAAS,YAAY;YAC7D,kCAAA,2BAAA;;;gBAAA,IAAIG,MAAJ;gBACH,IAAI,CAACd,aAAae,IAAI,CAACL,IAAII,QAAQA,QAAQF,QACzCnB,UAAUiB,IAAII,KAAK;oBAAEP,KAAK;+BAAMI,IAAI,CAACG,IAAI;;oBAAEN,YAAY,CAAEK,CAAAA,OAAOjB,iBAAiBe,MAAMG,IAAG,KAAMD,KAAKL,UAAU;gBAAC;;YAFpH,QAAK,YAAWV,kBAAkBa,0BAA7B,SAAA,6BAAA,QAAA,yBAAA;;YAAA;YAAA;;;qBAAA,6BAAA;oBAAA;;;oBAAA;0BAAA;;;;IAGP;IACA,OAAOD;AACT;AACA,IAAIM,eAAe,SAACC;WAAQR,YAAYhB,UAAU,CAAC,GAAG,cAAc;QAAEyB,OAAO;IAAK,IAAID;;AAEtF,6BAA6B;ACnB7B,IAAAE,yBAAA,CAAA;AAAAhB,SAAAgB,wBAAA;IAAAC,qBAAA;eAAAA;;IAAAC,gBAAA;eAAAA;;AAAA;AAAAC,OAAAC,OAAA,GAAAP,aAAAG;AAMO,IAAMC,oCAAN;aAAMA;;;;;YAGGI,KAAAA;mBAAd,SAAcA,UAAUC,cAAA;gBACtB,IAAA,CAAKA,cAAA,GAAiBA;YACxB;;;YAEcJ,KAAAA;mBAAd,SAAcA,eAAeK,IAAA;gBAC3B,IAAI,CAACA,MAAM,OAAO;gBAElB,IAAI,CAAC,IAAA,CAAKD,cAAA,EAAgB;oBACxB,MAAM,IAAIE,MAAM;gBAClB;gBAEA,IAAI;oBACF,IAAID,KAAKE,MAAA,IAAU,OAAOF,KAAKE,MAAA,KAAW,YAAY;wBACpD,IAAMC,IAAIH,KAAKE,MAAA;wBACf,OAAO,IAAA,CAAKH,cAAA,CAAeK,QAAA,GACvB,IAAA,CAAKL,cAAA,CAAeK,QAAA,CAASD,KAC7B,IAAI,IAAA,CAAKJ,cAAA,CACTM,KAAKC,KAAA,CAAMH,EAAEI,OAAA,KAAY,MACxBJ,EAAEI,OAAA,KAAY,MAAQ;oBAE7B;oBAEA,OAAO,IAAI,IAAA,CAAKR,cAAA,CAAeC,KAAKQ,OAAA,EAASR,KAAKS,WAAW;gBAC/D,EAAA,OAASC,GAAG;oBACV,IAAI;wBACF,OAAO,IAAI,IAAA,CAAKX,cAAA,CAAeC,KAAKQ,OAAA,EAASR,KAAKS,WAAW;oBAC/D,EAAA,OAASC,IAAG;wBACV,OAAO;oBACT;gBACF;YACF;;;;;AAjCWhB,oBACIK,cAAA,GAAsB;AAmChC,IAAMJ,iBAAiB,SAACK;WAC7BN,oBAAoBC,cAAA,CAAeK;;ADYrC,6DAA6D;AAC7D,KAAMJ,CAAAA,OAAOC,OAAO,GAAG;IACrBH,qBAAAA;IACAC,gBAAAA;AACF,CAAA","sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/util/firestore.util.ts\nvar firestore_util_exports = {};\n__export(firestore_util_exports, {\n FirestoreRawService: () => FirestoreRawService,\n forceTimestamp: () => forceTimestamp\n});\nmodule.exports = __toCommonJS(firestore_util_exports);\nvar FirestoreRawService = class {\n static configure(TimestampClass) {\n this.TimestampClass = TimestampClass;\n }\n static forceTimestamp(data) {\n if (!data) return null;\n if (!this.TimestampClass) {\n throw new Error(\"FirestoreRawService has not been configured. Call configure() first\");\n }\n try {\n if (data.toDate && typeof data.toDate === \"function\") {\n const d = data.toDate();\n return this.TimestampClass.fromDate ? this.TimestampClass.fromDate(d) : new this.TimestampClass(\n Math.floor(d.getTime() / 1e3),\n d.getTime() % 1e3 * 1e6\n );\n }\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e2) {\n return null;\n }\n }\n }\n};\nFirestoreRawService.TimestampClass = null;\nvar forceTimestamp = (data) => FirestoreRawService.forceTimestamp(data);\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n FirestoreRawService,\n forceTimestamp\n});\n","interface TimestampLike {\n seconds: number;\n nanoseconds: number;\n toDate?: () => Date;\n}\n\nexport class FirestoreRawService {\n private static TimestampClass: any = null;\n\n public static configure(TimestampClass: any) {\n this.TimestampClass = TimestampClass;\n }\n\n public static forceTimestamp(data?: TimestampLike | null) {\n if (!data) return null;\n\n if (!this.TimestampClass) {\n throw new Error('FirestoreRawService has not been configured. Call configure() first');\n }\n\n try {\n if (data.toDate && typeof data.toDate === 'function') {\n const d = data.toDate();\n return this.TimestampClass.fromDate\n ? this.TimestampClass.fromDate(d)\n : new this.TimestampClass(\n Math.floor(d.getTime() / 1000),\n (d.getTime() % 1000) * 1000000\n );\n }\n\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n return null;\n }\n }\n }\n}\n\nexport const forceTimestamp = (data: any) =>\n FirestoreRawService.forceTimestamp(data);\n"]}
1
+ {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/util/firestore.util.js","../../src/util/firestore.util.ts"],"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","firestore_util_exports","FirestoreRawService","forceTimestamp","module","exports","configure","TimestampClass","data","Error","toDate","d","fromDate","Math","floor","getTime","seconds","nanoseconds","e"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;AACA,IAAIA,YAAYC,OAAOC,cAAc;AACrC,IAAIC,mBAAmBF,OAAOG,wBAAwB;AACtD,IAAIC,oBAAoBJ,OAAOK,mBAAmB;AAClD,IAAIC,eAAeN,OAAOO,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,SAACC,QAAQC;IACtB,IAAK,IAAIC,QAAQD,IACfZ,UAAUW,QAAQE,MAAM;QAAEC,KAAKF,GAAG,CAACC,KAAK;QAAEE,YAAY;IAAK;AAC/D;AACA,IAAIC,cAAc,SAACC,IAAIC,MAAMC,QAAQC;IACnC,IAAIF,QAAQ,OAAOA,SAAS,YAAY,OAAOA,SAAS,YAAY;YAC7D,kCAAA,2BAAA;;;gBAAA,IAAIG,MAAJ;gBACH,IAAI,CAACd,aAAae,IAAI,CAACL,IAAII,QAAQA,QAAQF,QACzCnB,UAAUiB,IAAII,KAAK;oBAAEP,KAAK;+BAAMI,IAAI,CAACG,IAAI;;oBAAEN,YAAY,CAAEK,CAAAA,OAAOjB,iBAAiBe,MAAMG,IAAG,KAAMD,KAAKL,UAAU;gBAAC;;YAFpH,QAAK,YAAWV,kBAAkBa,0BAA7B,SAAA,6BAAA,QAAA,yBAAA;;YAAA;YAAA;;;qBAAA,6BAAA;oBAAA;;;oBAAA;0BAAA;;;;IAGP;IACA,OAAOD;AACT;AACA,IAAIM,eAAe,SAACC;WAAQR,YAAYhB,UAAU,CAAC,GAAG,cAAc;QAAEyB,OAAO;IAAK,IAAID;;AAEtF,6BAA6B;ACnB7B,IAAAE,yBAAA,CAAA;AAAAhB,SAAAgB,wBAAA;IAAAC,qBAAA;eAAAA;;IAAAC,gBAAA;eAAAA;;AAAA;AAAAC,OAAAC,OAAA,GAAAP,aAAAG;AAMO,IAAMC,oCAAN;aAAMA;;;;;YAGGI,KAAAA;mBAAd,SAAcA,UAAUC,cAAA;gBACtB,IAAA,CAAKA,cAAA,GAAiBA;YACxB;;;YAEcJ,KAAAA;mBAAd,SAAcA,eAAeK,IAAA;gBAC3B,IAAI,CAACA,MAAM,OAAO;gBAElB,IAAI,CAAC,IAAA,CAAKD,cAAA,EAAgB;oBACxB,MAAM,IAAIE,MAAM;gBAClB;gBAEA,IAAI;oBACF,IAAID,KAAKE,MAAA,IAAU,OAAOF,KAAKE,MAAA,KAAW,YAAY;wBACpD,IAAMC,IAAIH,KAAKE,MAAA;wBACf,OAAO,IAAA,CAAKH,cAAA,CAAeK,QAAA,GACvB,IAAA,CAAKL,cAAA,CAAeK,QAAA,CAASD,KAC7B,IAAI,IAAA,CAAKJ,cAAA,CACTM,KAAKC,KAAA,CAAMH,EAAEI,OAAA,KAAY,MACxBJ,EAAEI,OAAA,KAAY,MAAQ;oBAE7B;oBAEA,OAAO,IAAI,IAAA,CAAKR,cAAA,CAAeC,KAAKQ,OAAA,EAASR,KAAKS,WAAW;gBAC/D,EAAA,OAASC,GAAG;oBACV,IAAI;wBACF,OAAO,IAAI,IAAA,CAAKX,cAAA,CAAeC,KAAKQ,OAAA,EAASR,KAAKS,WAAW;oBAC/D,EAAA,OAASC,IAAG;wBACV,OAAO;oBACT;gBACF;YACF;;;;;AAjCWhB,oBACIK,cAAA,GAAsB;AAmChC,IAAMJ,iBAAiB,SAACK;WAC7BN,oBAAoBC,cAAA,CAAeK;;ADYrC,6DAA6D;AAC7D,KAAMJ,CAAAA,OAAOC,OAAO,GAAG;IACrBH,qBAAAA;IACAC,gBAAAA;AACF,CAAA","sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/util/firestore.util.ts\nvar firestore_util_exports = {};\n__export(firestore_util_exports, {\n FirestoreRawService: () => FirestoreRawService,\n forceTimestamp: () => forceTimestamp\n});\nmodule.exports = __toCommonJS(firestore_util_exports);\nvar FirestoreRawService = class {\n static configure(TimestampClass) {\n this.TimestampClass = TimestampClass;\n }\n static forceTimestamp(data) {\n if (!data) return null;\n if (!this.TimestampClass) {\n throw new Error(\"FirestoreRawService has not been configured. Call configure() first\");\n }\n try {\n if (data.toDate && typeof data.toDate === \"function\") {\n const d = data.toDate();\n return this.TimestampClass.fromDate ? this.TimestampClass.fromDate(d) : new this.TimestampClass(\n Math.floor(d.getTime() / 1e3),\n d.getTime() % 1e3 * 1e6\n );\n }\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e2) {\n return null;\n }\n }\n }\n};\nFirestoreRawService.TimestampClass = null;\nvar forceTimestamp = (data) => FirestoreRawService.forceTimestamp(data);\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n FirestoreRawService,\n forceTimestamp\n});\n","export interface TimestampLike {\n seconds: number;\n nanoseconds: number;\n toDate?: () => Date;\n}\n\nexport class FirestoreRawService {\n private static TimestampClass: any = null;\n\n public static configure(TimestampClass: any) {\n this.TimestampClass = TimestampClass;\n }\n\n public static forceTimestamp(data?: TimestampLike | null) {\n if (!data) return null;\n\n if (!this.TimestampClass) {\n throw new Error('FirestoreRawService has not been configured. Call configure() first');\n }\n\n try {\n if (data.toDate && typeof data.toDate === 'function') {\n const d = data.toDate();\n return this.TimestampClass.fromDate\n ? this.TimestampClass.fromDate(d)\n : new this.TimestampClass(\n Math.floor(d.getTime() / 1000),\n (d.getTime() % 1000) * 1000000\n );\n }\n\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n return null;\n }\n }\n }\n}\n\nexport const forceTimestamp = (data: any) =>\n FirestoreRawService.forceTimestamp(data);\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/util/firestore.util.mjs","../../src/util/firestore.util.ts"],"names":["FirestoreRawService","configure","TimestampClass","forceTimestamp","data","Error","toDate","d","fromDate","Math","floor","getTime","seconds","nanoseconds","e"],"mappings":"AAAA,6BAA6B;;;;;;;;;;;;;;;;;;;;ACMtB,IAAMA,oCAAN;;aAAMA;;;;;YAGGC,KAAAA;mBAAd,SAAcA,UAAUC,cAAA;gBACtB,IAAA,CAAKA,cAAA,GAAiBA;YACxB;;;YAEcC,KAAAA;mBAAd,SAAcA,eAAeC,IAAA;gBAC3B,IAAI,CAACA,MAAM,OAAO;gBAElB,IAAI,CAAC,IAAA,CAAKF,cAAA,EAAgB;oBACxB,MAAM,IAAIG,MAAM;gBAClB;gBAEA,IAAI;oBACF,IAAID,KAAKE,MAAA,IAAU,OAAOF,KAAKE,MAAA,KAAW,YAAY;wBACpD,IAAMC,IAAIH,KAAKE,MAAA;wBACf,OAAO,IAAA,CAAKJ,cAAA,CAAeM,QAAA,GACvB,IAAA,CAAKN,cAAA,CAAeM,QAAA,CAASD,KAC7B,IAAI,IAAA,CAAKL,cAAA,CACTO,KAAKC,KAAA,CAAMH,EAAEI,OAAA,KAAY,MACxBJ,EAAEI,OAAA,KAAY,MAAQ;oBAE7B;oBAEA,OAAO,IAAI,IAAA,CAAKT,cAAA,CAAeE,KAAKQ,OAAA,EAASR,KAAKS,WAAW;gBAC/D,EAAA,OAASC,GAAG;oBACV,IAAI;wBACF,OAAO,IAAI,IAAA,CAAKZ,cAAA,CAAeE,KAAKQ,OAAA,EAASR,KAAKS,WAAW;oBAC/D,EAAA,OAASC,IAAG;wBACV,OAAO;oBACT;gBACF;YACF;;;;;AAjCWd,oBACIE,cAAA,GAAsB;AAmChC,IAAMC,iBAAiB,SAACC;WAC7BJ,oBAAoBG,cAAA,CAAeC;;ADbrC,SACEJ,mBAAmB,EACnBG,cAAc,GACd","sourcesContent":["// src/util/firestore.util.ts\nvar FirestoreRawService = class {\n static configure(TimestampClass) {\n this.TimestampClass = TimestampClass;\n }\n static forceTimestamp(data) {\n if (!data) return null;\n if (!this.TimestampClass) {\n throw new Error(\"FirestoreRawService has not been configured. Call configure() first\");\n }\n try {\n if (data.toDate && typeof data.toDate === \"function\") {\n const d = data.toDate();\n return this.TimestampClass.fromDate ? this.TimestampClass.fromDate(d) : new this.TimestampClass(\n Math.floor(d.getTime() / 1e3),\n d.getTime() % 1e3 * 1e6\n );\n }\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e2) {\n return null;\n }\n }\n }\n};\nFirestoreRawService.TimestampClass = null;\nvar forceTimestamp = (data) => FirestoreRawService.forceTimestamp(data);\nexport {\n FirestoreRawService,\n forceTimestamp\n};\n","interface TimestampLike {\n seconds: number;\n nanoseconds: number;\n toDate?: () => Date;\n}\n\nexport class FirestoreRawService {\n private static TimestampClass: any = null;\n\n public static configure(TimestampClass: any) {\n this.TimestampClass = TimestampClass;\n }\n\n public static forceTimestamp(data?: TimestampLike | null) {\n if (!data) return null;\n\n if (!this.TimestampClass) {\n throw new Error('FirestoreRawService has not been configured. Call configure() first');\n }\n\n try {\n if (data.toDate && typeof data.toDate === 'function') {\n const d = data.toDate();\n return this.TimestampClass.fromDate\n ? this.TimestampClass.fromDate(d)\n : new this.TimestampClass(\n Math.floor(d.getTime() / 1000),\n (d.getTime() % 1000) * 1000000\n );\n }\n\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n return null;\n }\n }\n }\n}\n\nexport const forceTimestamp = (data: any) =>\n FirestoreRawService.forceTimestamp(data);\n"]}
1
+ {"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/util/firestore.util.mjs","../../src/util/firestore.util.ts"],"names":["FirestoreRawService","configure","TimestampClass","forceTimestamp","data","Error","toDate","d","fromDate","Math","floor","getTime","seconds","nanoseconds","e"],"mappings":"AAAA,6BAA6B;;;;;;;;;;;;;;;;;;;;ACMtB,IAAMA,oCAAN;;aAAMA;;;;;YAGGC,KAAAA;mBAAd,SAAcA,UAAUC,cAAA;gBACtB,IAAA,CAAKA,cAAA,GAAiBA;YACxB;;;YAEcC,KAAAA;mBAAd,SAAcA,eAAeC,IAAA;gBAC3B,IAAI,CAACA,MAAM,OAAO;gBAElB,IAAI,CAAC,IAAA,CAAKF,cAAA,EAAgB;oBACxB,MAAM,IAAIG,MAAM;gBAClB;gBAEA,IAAI;oBACF,IAAID,KAAKE,MAAA,IAAU,OAAOF,KAAKE,MAAA,KAAW,YAAY;wBACpD,IAAMC,IAAIH,KAAKE,MAAA;wBACf,OAAO,IAAA,CAAKJ,cAAA,CAAeM,QAAA,GACvB,IAAA,CAAKN,cAAA,CAAeM,QAAA,CAASD,KAC7B,IAAI,IAAA,CAAKL,cAAA,CACTO,KAAKC,KAAA,CAAMH,EAAEI,OAAA,KAAY,MACxBJ,EAAEI,OAAA,KAAY,MAAQ;oBAE7B;oBAEA,OAAO,IAAI,IAAA,CAAKT,cAAA,CAAeE,KAAKQ,OAAA,EAASR,KAAKS,WAAW;gBAC/D,EAAA,OAASC,GAAG;oBACV,IAAI;wBACF,OAAO,IAAI,IAAA,CAAKZ,cAAA,CAAeE,KAAKQ,OAAA,EAASR,KAAKS,WAAW;oBAC/D,EAAA,OAASC,IAAG;wBACV,OAAO;oBACT;gBACF;YACF;;;;;AAjCWd,oBACIE,cAAA,GAAsB;AAmChC,IAAMC,iBAAiB,SAACC;WAC7BJ,oBAAoBG,cAAA,CAAeC;;ADbrC,SACEJ,mBAAmB,EACnBG,cAAc,GACd","sourcesContent":["// src/util/firestore.util.ts\nvar FirestoreRawService = class {\n static configure(TimestampClass) {\n this.TimestampClass = TimestampClass;\n }\n static forceTimestamp(data) {\n if (!data) return null;\n if (!this.TimestampClass) {\n throw new Error(\"FirestoreRawService has not been configured. Call configure() first\");\n }\n try {\n if (data.toDate && typeof data.toDate === \"function\") {\n const d = data.toDate();\n return this.TimestampClass.fromDate ? this.TimestampClass.fromDate(d) : new this.TimestampClass(\n Math.floor(d.getTime() / 1e3),\n d.getTime() % 1e3 * 1e6\n );\n }\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e2) {\n return null;\n }\n }\n }\n};\nFirestoreRawService.TimestampClass = null;\nvar forceTimestamp = (data) => FirestoreRawService.forceTimestamp(data);\nexport {\n FirestoreRawService,\n forceTimestamp\n};\n","export interface TimestampLike {\n seconds: number;\n nanoseconds: number;\n toDate?: () => Date;\n}\n\nexport class FirestoreRawService {\n private static TimestampClass: any = null;\n\n public static configure(TimestampClass: any) {\n this.TimestampClass = TimestampClass;\n }\n\n public static forceTimestamp(data?: TimestampLike | null) {\n if (!data) return null;\n\n if (!this.TimestampClass) {\n throw new Error('FirestoreRawService has not been configured. Call configure() first');\n }\n\n try {\n if (data.toDate && typeof data.toDate === 'function') {\n const d = data.toDate();\n return this.TimestampClass.fromDate\n ? this.TimestampClass.fromDate(d)\n : new this.TimestampClass(\n Math.floor(d.getTime() / 1000),\n (d.getTime() % 1000) * 1000000\n );\n }\n\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n try {\n return new this.TimestampClass(data.seconds, data.nanoseconds);\n } catch (e) {\n return null;\n }\n }\n }\n}\n\nexport const forceTimestamp = (data: any) =>\n FirestoreRawService.forceTimestamp(data);\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_henriquewilson/gabirubi-domain",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "gabirubi domain",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",