@_henriquewilson/gabirubi-domain 1.5.4 → 1.5.5
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/iugu/iugu-charge.d.mts +2 -2
- package/dist/model/iugu/iugu-charge.d.ts +2 -2
- package/dist/model/iugu/iugu-client.d.mts +12 -12
- package/dist/model/iugu/iugu-client.d.ts +12 -12
- package/dist/model/podcast.d.mts +4 -4
- package/dist/model/podcast.d.ts +4 -4
- package/dist/model/purchase.d.mts +8 -0
- package/dist/model/purchase.d.ts +8 -0
- package/dist/model/purchase.js +1 -0
- package/dist/model/purchase.js.map +1 -1
- package/dist/model/purchase.mjs +1 -0
- package/dist/model/purchase.mjs.map +1 -1
- package/dist/model/subscription.model.d.mts +4 -4
- package/dist/model/subscription.model.d.ts +4 -4
- package/dist/model/user.model.d.mts +2 -2
- package/dist/model/user.model.d.ts +2 -2
- package/package.json +1 -1
|
@@ -27,9 +27,9 @@ declare const IuguChargeSchema: z.ZodObject<{
|
|
|
27
27
|
pdf: string;
|
|
28
28
|
invoice_id: string;
|
|
29
29
|
LR: string;
|
|
30
|
+
reversible?: string | null | undefined;
|
|
30
31
|
brand?: string | null | undefined;
|
|
31
32
|
bin?: string | null | undefined;
|
|
32
|
-
reversible?: string | null | undefined;
|
|
33
33
|
last4?: string | null | undefined;
|
|
34
34
|
issuer?: string | null | undefined;
|
|
35
35
|
identification?: string | null | undefined;
|
|
@@ -44,9 +44,9 @@ declare const IuguChargeSchema: z.ZodObject<{
|
|
|
44
44
|
pdf: string;
|
|
45
45
|
invoice_id: string;
|
|
46
46
|
LR: string;
|
|
47
|
+
reversible?: string | null | undefined;
|
|
47
48
|
brand?: string | null | undefined;
|
|
48
49
|
bin?: string | null | undefined;
|
|
49
|
-
reversible?: string | null | undefined;
|
|
50
50
|
last4?: string | null | undefined;
|
|
51
51
|
issuer?: string | null | undefined;
|
|
52
52
|
identification?: string | null | undefined;
|
|
@@ -27,9 +27,9 @@ declare const IuguChargeSchema: z.ZodObject<{
|
|
|
27
27
|
pdf: string;
|
|
28
28
|
invoice_id: string;
|
|
29
29
|
LR: string;
|
|
30
|
+
reversible?: string | null | undefined;
|
|
30
31
|
brand?: string | null | undefined;
|
|
31
32
|
bin?: string | null | undefined;
|
|
32
|
-
reversible?: string | null | undefined;
|
|
33
33
|
last4?: string | null | undefined;
|
|
34
34
|
issuer?: string | null | undefined;
|
|
35
35
|
identification?: string | null | undefined;
|
|
@@ -44,9 +44,9 @@ declare const IuguChargeSchema: z.ZodObject<{
|
|
|
44
44
|
pdf: string;
|
|
45
45
|
invoice_id: string;
|
|
46
46
|
LR: string;
|
|
47
|
+
reversible?: string | null | undefined;
|
|
47
48
|
brand?: string | null | undefined;
|
|
48
49
|
bin?: string | null | undefined;
|
|
49
|
-
reversible?: string | null | undefined;
|
|
50
50
|
last4?: string | null | undefined;
|
|
51
51
|
issuer?: string | null | undefined;
|
|
52
52
|
identification?: string | null | undefined;
|
|
@@ -12,9 +12,9 @@ declare const dataSchema: z.ZodObject<{
|
|
|
12
12
|
masked_number: z.ZodString;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
brand: string;
|
|
15
|
+
bin: string;
|
|
15
16
|
holder_name: string;
|
|
16
17
|
display_number: string;
|
|
17
|
-
bin: string;
|
|
18
18
|
year: number;
|
|
19
19
|
month: number;
|
|
20
20
|
last_digits: string;
|
|
@@ -22,9 +22,9 @@ declare const dataSchema: z.ZodObject<{
|
|
|
22
22
|
masked_number: string;
|
|
23
23
|
}, {
|
|
24
24
|
brand: string;
|
|
25
|
+
bin: string;
|
|
25
26
|
holder_name: string;
|
|
26
27
|
display_number: string;
|
|
27
|
-
bin: string;
|
|
28
28
|
year: number;
|
|
29
29
|
month: number;
|
|
30
30
|
last_digits: string;
|
|
@@ -47,9 +47,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
47
47
|
masked_number: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
49
|
brand: string;
|
|
50
|
+
bin: string;
|
|
50
51
|
holder_name: string;
|
|
51
52
|
display_number: string;
|
|
52
|
-
bin: string;
|
|
53
53
|
year: number;
|
|
54
54
|
month: number;
|
|
55
55
|
last_digits: string;
|
|
@@ -57,9 +57,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
57
57
|
masked_number: string;
|
|
58
58
|
}, {
|
|
59
59
|
brand: string;
|
|
60
|
+
bin: string;
|
|
60
61
|
holder_name: string;
|
|
61
62
|
display_number: string;
|
|
62
|
-
bin: string;
|
|
63
63
|
year: number;
|
|
64
64
|
month: number;
|
|
65
65
|
last_digits: string;
|
|
@@ -72,9 +72,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
72
72
|
item_type: string;
|
|
73
73
|
data: {
|
|
74
74
|
brand: string;
|
|
75
|
+
bin: string;
|
|
75
76
|
holder_name: string;
|
|
76
77
|
display_number: string;
|
|
77
|
-
bin: string;
|
|
78
78
|
year: number;
|
|
79
79
|
month: number;
|
|
80
80
|
last_digits: string;
|
|
@@ -87,9 +87,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
87
87
|
item_type: string;
|
|
88
88
|
data: {
|
|
89
89
|
brand: string;
|
|
90
|
+
bin: string;
|
|
90
91
|
holder_name: string;
|
|
91
92
|
display_number: string;
|
|
92
|
-
bin: string;
|
|
93
93
|
year: number;
|
|
94
94
|
month: number;
|
|
95
95
|
last_digits: string;
|
|
@@ -139,9 +139,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
139
139
|
masked_number: z.ZodString;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
brand: string;
|
|
142
|
+
bin: string;
|
|
142
143
|
holder_name: string;
|
|
143
144
|
display_number: string;
|
|
144
|
-
bin: string;
|
|
145
145
|
year: number;
|
|
146
146
|
month: number;
|
|
147
147
|
last_digits: string;
|
|
@@ -149,9 +149,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
149
149
|
masked_number: string;
|
|
150
150
|
}, {
|
|
151
151
|
brand: string;
|
|
152
|
+
bin: string;
|
|
152
153
|
holder_name: string;
|
|
153
154
|
display_number: string;
|
|
154
|
-
bin: string;
|
|
155
155
|
year: number;
|
|
156
156
|
month: number;
|
|
157
157
|
last_digits: string;
|
|
@@ -164,9 +164,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
164
164
|
item_type: string;
|
|
165
165
|
data: {
|
|
166
166
|
brand: string;
|
|
167
|
+
bin: string;
|
|
167
168
|
holder_name: string;
|
|
168
169
|
display_number: string;
|
|
169
|
-
bin: string;
|
|
170
170
|
year: number;
|
|
171
171
|
month: number;
|
|
172
172
|
last_digits: string;
|
|
@@ -179,9 +179,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
179
179
|
item_type: string;
|
|
180
180
|
data: {
|
|
181
181
|
brand: string;
|
|
182
|
+
bin: string;
|
|
182
183
|
holder_name: string;
|
|
183
184
|
display_number: string;
|
|
184
|
-
bin: string;
|
|
185
185
|
year: number;
|
|
186
186
|
month: number;
|
|
187
187
|
last_digits: string;
|
|
@@ -216,9 +216,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
216
216
|
item_type: string;
|
|
217
217
|
data: {
|
|
218
218
|
brand: string;
|
|
219
|
+
bin: string;
|
|
219
220
|
holder_name: string;
|
|
220
221
|
display_number: string;
|
|
221
|
-
bin: string;
|
|
222
222
|
year: number;
|
|
223
223
|
month: number;
|
|
224
224
|
last_digits: string;
|
|
@@ -253,9 +253,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
253
253
|
item_type: string;
|
|
254
254
|
data: {
|
|
255
255
|
brand: string;
|
|
256
|
+
bin: string;
|
|
256
257
|
holder_name: string;
|
|
257
258
|
display_number: string;
|
|
258
|
-
bin: string;
|
|
259
259
|
year: number;
|
|
260
260
|
month: number;
|
|
261
261
|
last_digits: string;
|
|
@@ -12,9 +12,9 @@ declare const dataSchema: z.ZodObject<{
|
|
|
12
12
|
masked_number: z.ZodString;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
brand: string;
|
|
15
|
+
bin: string;
|
|
15
16
|
holder_name: string;
|
|
16
17
|
display_number: string;
|
|
17
|
-
bin: string;
|
|
18
18
|
year: number;
|
|
19
19
|
month: number;
|
|
20
20
|
last_digits: string;
|
|
@@ -22,9 +22,9 @@ declare const dataSchema: z.ZodObject<{
|
|
|
22
22
|
masked_number: string;
|
|
23
23
|
}, {
|
|
24
24
|
brand: string;
|
|
25
|
+
bin: string;
|
|
25
26
|
holder_name: string;
|
|
26
27
|
display_number: string;
|
|
27
|
-
bin: string;
|
|
28
28
|
year: number;
|
|
29
29
|
month: number;
|
|
30
30
|
last_digits: string;
|
|
@@ -47,9 +47,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
47
47
|
masked_number: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
49
|
brand: string;
|
|
50
|
+
bin: string;
|
|
50
51
|
holder_name: string;
|
|
51
52
|
display_number: string;
|
|
52
|
-
bin: string;
|
|
53
53
|
year: number;
|
|
54
54
|
month: number;
|
|
55
55
|
last_digits: string;
|
|
@@ -57,9 +57,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
57
57
|
masked_number: string;
|
|
58
58
|
}, {
|
|
59
59
|
brand: string;
|
|
60
|
+
bin: string;
|
|
60
61
|
holder_name: string;
|
|
61
62
|
display_number: string;
|
|
62
|
-
bin: string;
|
|
63
63
|
year: number;
|
|
64
64
|
month: number;
|
|
65
65
|
last_digits: string;
|
|
@@ -72,9 +72,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
72
72
|
item_type: string;
|
|
73
73
|
data: {
|
|
74
74
|
brand: string;
|
|
75
|
+
bin: string;
|
|
75
76
|
holder_name: string;
|
|
76
77
|
display_number: string;
|
|
77
|
-
bin: string;
|
|
78
78
|
year: number;
|
|
79
79
|
month: number;
|
|
80
80
|
last_digits: string;
|
|
@@ -87,9 +87,9 @@ declare const PaymentMethodSchema: z.ZodObject<{
|
|
|
87
87
|
item_type: string;
|
|
88
88
|
data: {
|
|
89
89
|
brand: string;
|
|
90
|
+
bin: string;
|
|
90
91
|
holder_name: string;
|
|
91
92
|
display_number: string;
|
|
92
|
-
bin: string;
|
|
93
93
|
year: number;
|
|
94
94
|
month: number;
|
|
95
95
|
last_digits: string;
|
|
@@ -139,9 +139,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
139
139
|
masked_number: z.ZodString;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
brand: string;
|
|
142
|
+
bin: string;
|
|
142
143
|
holder_name: string;
|
|
143
144
|
display_number: string;
|
|
144
|
-
bin: string;
|
|
145
145
|
year: number;
|
|
146
146
|
month: number;
|
|
147
147
|
last_digits: string;
|
|
@@ -149,9 +149,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
149
149
|
masked_number: string;
|
|
150
150
|
}, {
|
|
151
151
|
brand: string;
|
|
152
|
+
bin: string;
|
|
152
153
|
holder_name: string;
|
|
153
154
|
display_number: string;
|
|
154
|
-
bin: string;
|
|
155
155
|
year: number;
|
|
156
156
|
month: number;
|
|
157
157
|
last_digits: string;
|
|
@@ -164,9 +164,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
164
164
|
item_type: string;
|
|
165
165
|
data: {
|
|
166
166
|
brand: string;
|
|
167
|
+
bin: string;
|
|
167
168
|
holder_name: string;
|
|
168
169
|
display_number: string;
|
|
169
|
-
bin: string;
|
|
170
170
|
year: number;
|
|
171
171
|
month: number;
|
|
172
172
|
last_digits: string;
|
|
@@ -179,9 +179,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
179
179
|
item_type: string;
|
|
180
180
|
data: {
|
|
181
181
|
brand: string;
|
|
182
|
+
bin: string;
|
|
182
183
|
holder_name: string;
|
|
183
184
|
display_number: string;
|
|
184
|
-
bin: string;
|
|
185
185
|
year: number;
|
|
186
186
|
month: number;
|
|
187
187
|
last_digits: string;
|
|
@@ -216,9 +216,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
216
216
|
item_type: string;
|
|
217
217
|
data: {
|
|
218
218
|
brand: string;
|
|
219
|
+
bin: string;
|
|
219
220
|
holder_name: string;
|
|
220
221
|
display_number: string;
|
|
221
|
-
bin: string;
|
|
222
222
|
year: number;
|
|
223
223
|
month: number;
|
|
224
224
|
last_digits: string;
|
|
@@ -253,9 +253,9 @@ declare const IuguClientSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
253
253
|
item_type: string;
|
|
254
254
|
data: {
|
|
255
255
|
brand: string;
|
|
256
|
+
bin: string;
|
|
256
257
|
holder_name: string;
|
|
257
258
|
display_number: string;
|
|
258
|
-
bin: string;
|
|
259
259
|
year: number;
|
|
260
260
|
month: number;
|
|
261
261
|
last_digits: string;
|
package/dist/model/podcast.d.mts
CHANGED
|
@@ -124,12 +124,12 @@ declare const RSSPodcastSchema: z.ZodObject<{
|
|
|
124
124
|
length: z.ZodString;
|
|
125
125
|
type: z.ZodString;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
length: string;
|
|
128
127
|
type: string;
|
|
128
|
+
length: string;
|
|
129
129
|
url: string;
|
|
130
130
|
}, {
|
|
131
|
-
length: string;
|
|
132
131
|
type: string;
|
|
132
|
+
length: string;
|
|
133
133
|
url: string;
|
|
134
134
|
}>;
|
|
135
135
|
"dc:creator": z.ZodString;
|
|
@@ -163,8 +163,8 @@ declare const RSSPodcastSchema: z.ZodObject<{
|
|
|
163
163
|
creator: string;
|
|
164
164
|
pubDate: string;
|
|
165
165
|
enclosure: {
|
|
166
|
-
length: string;
|
|
167
166
|
type: string;
|
|
167
|
+
length: string;
|
|
168
168
|
url: string;
|
|
169
169
|
};
|
|
170
170
|
"dc:creator": string;
|
|
@@ -185,8 +185,8 @@ declare const RSSPodcastSchema: z.ZodObject<{
|
|
|
185
185
|
creator: string;
|
|
186
186
|
pubDate: string;
|
|
187
187
|
enclosure: {
|
|
188
|
-
length: string;
|
|
189
188
|
type: string;
|
|
189
|
+
length: string;
|
|
190
190
|
url: string;
|
|
191
191
|
};
|
|
192
192
|
"dc:creator": string;
|
package/dist/model/podcast.d.ts
CHANGED
|
@@ -124,12 +124,12 @@ declare const RSSPodcastSchema: z.ZodObject<{
|
|
|
124
124
|
length: z.ZodString;
|
|
125
125
|
type: z.ZodString;
|
|
126
126
|
}, "strip", z.ZodTypeAny, {
|
|
127
|
-
length: string;
|
|
128
127
|
type: string;
|
|
128
|
+
length: string;
|
|
129
129
|
url: string;
|
|
130
130
|
}, {
|
|
131
|
-
length: string;
|
|
132
131
|
type: string;
|
|
132
|
+
length: string;
|
|
133
133
|
url: string;
|
|
134
134
|
}>;
|
|
135
135
|
"dc:creator": z.ZodString;
|
|
@@ -163,8 +163,8 @@ declare const RSSPodcastSchema: z.ZodObject<{
|
|
|
163
163
|
creator: string;
|
|
164
164
|
pubDate: string;
|
|
165
165
|
enclosure: {
|
|
166
|
-
length: string;
|
|
167
166
|
type: string;
|
|
167
|
+
length: string;
|
|
168
168
|
url: string;
|
|
169
169
|
};
|
|
170
170
|
"dc:creator": string;
|
|
@@ -185,8 +185,8 @@ declare const RSSPodcastSchema: z.ZodObject<{
|
|
|
185
185
|
creator: string;
|
|
186
186
|
pubDate: string;
|
|
187
187
|
enclosure: {
|
|
188
|
-
length: string;
|
|
189
188
|
type: string;
|
|
189
|
+
length: string;
|
|
190
190
|
url: string;
|
|
191
191
|
};
|
|
192
192
|
"dc:creator": string;
|
|
@@ -9,6 +9,7 @@ declare const ActivityProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9
9
|
}, {
|
|
10
10
|
completionPercentage: z.ZodNumber;
|
|
11
11
|
startsWith: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
isFavorite: z.ZodOptional<z.ZodBoolean>;
|
|
12
13
|
lastChange: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
13
14
|
}>, "strip", z.ZodTypeAny, {
|
|
14
15
|
id: string | number;
|
|
@@ -18,6 +19,7 @@ declare const ActivityProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18
19
|
updatedAt?: Timestamp | null | undefined;
|
|
19
20
|
order?: number | null | undefined;
|
|
20
21
|
startsWith?: number | undefined;
|
|
22
|
+
isFavorite?: boolean | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
lastChange: Timestamp;
|
|
23
25
|
completionPercentage: number;
|
|
@@ -26,6 +28,7 @@ declare const ActivityProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
26
28
|
updatedAt?: unknown;
|
|
27
29
|
order?: number | null | undefined;
|
|
28
30
|
startsWith?: number | undefined;
|
|
31
|
+
isFavorite?: boolean | undefined;
|
|
29
32
|
}>;
|
|
30
33
|
declare const ModuleProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
31
34
|
id: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, unknown>;
|
|
@@ -63,6 +66,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
63
66
|
}, {
|
|
64
67
|
completionPercentage: z.ZodNumber;
|
|
65
68
|
startsWith: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
isFavorite: z.ZodOptional<z.ZodBoolean>;
|
|
66
70
|
lastChange: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
67
71
|
}>, "strip", z.ZodTypeAny, {
|
|
68
72
|
id: string | number;
|
|
@@ -72,6 +76,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
72
76
|
updatedAt?: Timestamp | null | undefined;
|
|
73
77
|
order?: number | null | undefined;
|
|
74
78
|
startsWith?: number | undefined;
|
|
79
|
+
isFavorite?: boolean | undefined;
|
|
75
80
|
}, {
|
|
76
81
|
lastChange: Timestamp;
|
|
77
82
|
completionPercentage: number;
|
|
@@ -80,6 +85,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
80
85
|
updatedAt?: unknown;
|
|
81
86
|
order?: number | null | undefined;
|
|
82
87
|
startsWith?: number | undefined;
|
|
88
|
+
isFavorite?: boolean | undefined;
|
|
83
89
|
}>, "many">;
|
|
84
90
|
}>, "strip", z.ZodTypeAny, {
|
|
85
91
|
id: string | number;
|
|
@@ -91,6 +97,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
91
97
|
updatedAt?: Timestamp | null | undefined;
|
|
92
98
|
order?: number | null | undefined;
|
|
93
99
|
startsWith?: number | undefined;
|
|
100
|
+
isFavorite?: boolean | undefined;
|
|
94
101
|
}[];
|
|
95
102
|
completionCounter: number;
|
|
96
103
|
createdAt?: Timestamp | null | undefined;
|
|
@@ -105,6 +112,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
105
112
|
updatedAt?: unknown;
|
|
106
113
|
order?: number | null | undefined;
|
|
107
114
|
startsWith?: number | undefined;
|
|
115
|
+
isFavorite?: boolean | undefined;
|
|
108
116
|
}[];
|
|
109
117
|
completionCounter: number;
|
|
110
118
|
id?: unknown;
|
package/dist/model/purchase.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare const ActivityProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
9
9
|
}, {
|
|
10
10
|
completionPercentage: z.ZodNumber;
|
|
11
11
|
startsWith: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
isFavorite: z.ZodOptional<z.ZodBoolean>;
|
|
12
13
|
lastChange: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
13
14
|
}>, "strip", z.ZodTypeAny, {
|
|
14
15
|
id: string | number;
|
|
@@ -18,6 +19,7 @@ declare const ActivityProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18
19
|
updatedAt?: Timestamp | null | undefined;
|
|
19
20
|
order?: number | null | undefined;
|
|
20
21
|
startsWith?: number | undefined;
|
|
22
|
+
isFavorite?: boolean | undefined;
|
|
21
23
|
}, {
|
|
22
24
|
lastChange: Timestamp;
|
|
23
25
|
completionPercentage: number;
|
|
@@ -26,6 +28,7 @@ declare const ActivityProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
26
28
|
updatedAt?: unknown;
|
|
27
29
|
order?: number | null | undefined;
|
|
28
30
|
startsWith?: number | undefined;
|
|
31
|
+
isFavorite?: boolean | undefined;
|
|
29
32
|
}>;
|
|
30
33
|
declare const ModuleProgressSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
31
34
|
id: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, unknown>;
|
|
@@ -63,6 +66,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
63
66
|
}, {
|
|
64
67
|
completionPercentage: z.ZodNumber;
|
|
65
68
|
startsWith: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
isFavorite: z.ZodOptional<z.ZodBoolean>;
|
|
66
70
|
lastChange: z.ZodType<Timestamp, z.ZodTypeDef, Timestamp>;
|
|
67
71
|
}>, "strip", z.ZodTypeAny, {
|
|
68
72
|
id: string | number;
|
|
@@ -72,6 +76,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
72
76
|
updatedAt?: Timestamp | null | undefined;
|
|
73
77
|
order?: number | null | undefined;
|
|
74
78
|
startsWith?: number | undefined;
|
|
79
|
+
isFavorite?: boolean | undefined;
|
|
75
80
|
}, {
|
|
76
81
|
lastChange: Timestamp;
|
|
77
82
|
completionPercentage: number;
|
|
@@ -80,6 +85,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
80
85
|
updatedAt?: unknown;
|
|
81
86
|
order?: number | null | undefined;
|
|
82
87
|
startsWith?: number | undefined;
|
|
88
|
+
isFavorite?: boolean | undefined;
|
|
83
89
|
}>, "many">;
|
|
84
90
|
}>, "strip", z.ZodTypeAny, {
|
|
85
91
|
id: string | number;
|
|
@@ -91,6 +97,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
91
97
|
updatedAt?: Timestamp | null | undefined;
|
|
92
98
|
order?: number | null | undefined;
|
|
93
99
|
startsWith?: number | undefined;
|
|
100
|
+
isFavorite?: boolean | undefined;
|
|
94
101
|
}[];
|
|
95
102
|
completionCounter: number;
|
|
96
103
|
createdAt?: Timestamp | null | undefined;
|
|
@@ -105,6 +112,7 @@ declare const ModuleProgressWithActivitiesSchema: z.ZodObject<z.objectUtil.exten
|
|
|
105
112
|
updatedAt?: unknown;
|
|
106
113
|
order?: number | null | undefined;
|
|
107
114
|
startsWith?: number | undefined;
|
|
115
|
+
isFavorite?: boolean | undefined;
|
|
108
116
|
}[];
|
|
109
117
|
completionCounter: number;
|
|
110
118
|
id?: unknown;
|
package/dist/model/purchase.js
CHANGED
|
@@ -120,6 +120,7 @@ var import_zod3 = require("zod");
|
|
|
120
120
|
var ActivityProgressSchema = ModelSchema.extend({
|
|
121
121
|
completionPercentage: import_zod3.z.coerce.number(),
|
|
122
122
|
startsWith: import_zod3.z.coerce.number().optional(),
|
|
123
|
+
isFavorite: import_zod3.z.boolean().optional(),
|
|
123
124
|
lastChange: import_zod3.z.custom()
|
|
124
125
|
});
|
|
125
126
|
var ModuleProgressSchema = ModelSchema.extend({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/purchase.js","../../src/model/purchase.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","purchase_exports","ActivityProgressSchema","ModuleProgressSchema","ModuleProgressWithActivitiesSchema","PurchaseSchema","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","DocumentHistorySchema","description","completionPercentage","import_zod3","startsWith","lastChange","completionCounter","activities","nextActivityId","nextModuleId","modulesAllowed"],"mappings":"AAAA;AACA,IAAIA,WAAWC,OAAOC,MAAM;AAC5B,IAAIC,YAAYF,OAAOG,cAAc;AACrC,IAAIC,mBAAmBJ,OAAOK,wBAAwB;AACtD,IAAIC,oBAAoBN,OAAOO,mBAAmB;AAClD,IAAIC,eAAeR,OAAOS,cAAc;AACxC,IAAIC,eAAeV,OAAOW,SAAS,CAACC,cAAc;AAClD,IAAIC,WAAW,SAACC,QAAQC;IACtB,IAAK,IAAIC,QAAQD,IACfb,UAAUY,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,QACzCpB,UAAUkB,IAAII,KAAK;oBAAEP,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BAAmBH,YAAApC,CAAA,CAAEwB,MAAA,CAAOT,MAAA;AAC9B;AAEO,IAAMvB,qCAAqCD,qBAAqBmC,MAAA,CAAO;IAC5Ec,YAAYlD,uBAAuBuC,KAAA;AACrC;AAEO,IAAMpC,iBAAiByB,YAAYQ,MAAA,CAAO;IAC/Ce,gBAAgBL,YAAApC,CAAA,CAAEc,MAAA,GAASP,QAAA;IAC3BmC,cAAcN,YAAApC,CAAA,CAAEc,MAAA,GAASP,QAAA;IACzBoC,gBAAgBP,YAAApC,CAAA,CAAEc,MAAA,GAASe,KAAA,GAAQtB,QAAA;AACrC;AD2EA,6DAA6D;AAC7D,KAAMb,CAAAA,OAAOC,OAAO,GAAG;IACrBL,wBAAAA;IACAC,sBAAAA;IACAC,oCAAAA;IACAC,gBAAAA;AACF,CAAA","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/purchase.ts\nvar purchase_exports = {};\n__export(purchase_exports, {\n ActivityProgressSchema: () => ActivityProgressSchema,\n ModuleProgressSchema: () => ModuleProgressSchema,\n ModuleProgressWithActivitiesSchema: () => ModuleProgressWithActivitiesSchema,\n PurchaseSchema: () => PurchaseSchema\n});\nmodule.exports = __toCommonJS(purchase_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});\nvar DocumentHistorySchema = import_zod2.z.object({\n createdAt: TimestampOrNow,\n description: import_zod2.z.string().optional()\n});\n\n// src/model/purchase.ts\nvar import_zod3 = require(\"zod\");\nvar ActivityProgressSchema = ModelSchema.extend({\n completionPercentage: import_zod3.z.coerce.number(),\n startsWith: import_zod3.z.coerce.number().optional(),\n lastChange: import_zod3.z.custom()\n});\nvar ModuleProgressSchema = ModelSchema.extend({\n completionCounter: import_zod3.z.coerce.number()\n});\nvar ModuleProgressWithActivitiesSchema = ModuleProgressSchema.extend({\n activities: ActivityProgressSchema.array()\n});\nvar PurchaseSchema = ModelSchema.extend({\n nextActivityId: import_zod3.z.string().optional(),\n nextModuleId: import_zod3.z.string().optional(),\n modulesAllowed: import_zod3.z.string().array().optional()\n});\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n ActivityProgressSchema,\n ModuleProgressSchema,\n ModuleProgressWithActivitiesSchema,\n PurchaseSchema\n});\n","import {ModelSchema} from \"../model\";\nimport {z} from \"zod\";\nimport {Timestamp} from \"@google-cloud/firestore\";\n\nexport const ActivityProgressSchema = ModelSchema.extend({\n completionPercentage: z.coerce.number(),\n startsWith: z.coerce.number().optional(),\n lastChange: z.custom<Timestamp>()\n})\n\nexport const ModuleProgressSchema = ModelSchema.extend({\n completionCounter: z.coerce.number()\n})\n\nexport const ModuleProgressWithActivitiesSchema = ModuleProgressSchema.extend({\n activities: ActivityProgressSchema.array()\n})\n\nexport const PurchaseSchema = ModelSchema.extend({\n nextActivityId: z.string().optional(),\n nextModuleId: z.string().optional(),\n modulesAllowed: z.string().array().optional()\n})\n\nexport type ActivityProgress = z.infer<typeof ActivityProgressSchema>\nexport type ModuleProgress = z.infer<typeof ModuleProgressSchema>\nexport type ModuleProgressWithActivities = z.infer<typeof ModuleProgressWithActivitiesSchema>\nexport type Purchase = z.infer<typeof PurchaseSchema>\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\nexport const 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 const DocumentHistorySchema = z.object({\n createdAt: TimestampOrNow,\n description: z.string().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"]}
|
|
1
|
+
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/purchase.js","../../src/model/purchase.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","purchase_exports","ActivityProgressSchema","ModuleProgressSchema","ModuleProgressWithActivitiesSchema","PurchaseSchema","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","DocumentHistorySchema","description","completionPercentage","import_zod3","startsWith","isFavorite","lastChange","completionCounter","activities","nextActivityId","nextModuleId","modulesAllowed"],"mappings":"AAAA;AACA,IAAIA,WAAWC,OAAOC,MAAM;AAC5B,IAAIC,YAAYF,OAAOG,cAAc;AACrC,IAAIC,mB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A,CAAO;IACpCY,SAASnB,YAAAZ,CAAA,CAAEgC,OAAA,GAAUzB,QAAA;AACvB;AAEO,IAAM0B,wBAAwBrB,YAAAZ,CAAA,CAAEmB,MAAA,CAAO;IAC5CE,WAAWtB;IACXmC,aAAatB,YAAAZ,CAAA,CAAEc,MAAA,GAASP,QAAA;AAC1B;AF4CA,wBAAwB;AC9ExB,IAAAX,cAAgBC,QAAA;AAGT,IAAMP,yBAAyB4B,YAAYQ,MAAA,CAAO;IACvDS,sBAAsBC,YAAApC,CAAA,CAAEwB,MAAA,CAAOT,MAAA;IAC/BsB,YAAYD,YAAApC,CAAA,CAAEwB,MAAA,CAAOT,MAAA,GAASR,QAAA;IAC9B+B,YAAYF,YAAApC,CAAA,CAAEgC,OAAA,GAAUzB,QAAA;IACxBgC,YAAYH,YAAApC,CAAA,CAAEK,MAAA;AAChB;AAEO,IAAMd,uBAAuB2B,YAAYQ,MAAA,CAAO;IACrDc,mBAAmBJ,YAAApC,CAAA,CAAEwB,MAAA,CAAOT,MAAA;AAC9B;AAEO,IAAMvB,qCAAqCD,qBAAqBmC,MAAA,CAAO;IAC5Ee,YAAYnD,uBAAuBuC,KAAA;AACrC;AAEO,IAAMpC,iBAAiByB,YAAYQ,MAAA,CAAO;IAC/CgB,gBAAgBN,YAAApC,CAAA,CAAEc,MAAA,GAASP,QAAA;IAC3BoC,cAAcP,YAAApC,CAAA,CAAEc,MAAA,GAASP,QAAA;IACzBqC,gBAAgBR,YAAApC,CAAA,CAAEc,MAAA,GAASe,KAAA,GAAQtB,QAAA;AACrC;AD2EA,6DAA6D;AAC7D,KAAMb,CAAAA,OAAOC,OAAO,GAAG;IACrBL,wBAAAA;IACAC,sBAAAA;IACAC,oCAAAA;IACAC,gBAAAA;AACF,CAAA","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/purchase.ts\nvar purchase_exports = {};\n__export(purchase_exports, {\n ActivityProgressSchema: () => ActivityProgressSchema,\n ModuleProgressSchema: () => ModuleProgressSchema,\n ModuleProgressWithActivitiesSchema: () => ModuleProgressWithActivitiesSchema,\n PurchaseSchema: () => PurchaseSchema\n});\nmodule.exports = __toCommonJS(purchase_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});\nvar DocumentHistorySchema = import_zod2.z.object({\n createdAt: TimestampOrNow,\n description: import_zod2.z.string().optional()\n});\n\n// src/model/purchase.ts\nvar import_zod3 = require(\"zod\");\nvar ActivityProgressSchema = ModelSchema.extend({\n completionPercentage: import_zod3.z.coerce.number(),\n startsWith: import_zod3.z.coerce.number().optional(),\n isFavorite: import_zod3.z.boolean().optional(),\n lastChange: import_zod3.z.custom()\n});\nvar ModuleProgressSchema = ModelSchema.extend({\n completionCounter: import_zod3.z.coerce.number()\n});\nvar ModuleProgressWithActivitiesSchema = ModuleProgressSchema.extend({\n activities: ActivityProgressSchema.array()\n});\nvar PurchaseSchema = ModelSchema.extend({\n nextActivityId: import_zod3.z.string().optional(),\n nextModuleId: import_zod3.z.string().optional(),\n modulesAllowed: import_zod3.z.string().array().optional()\n});\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n ActivityProgressSchema,\n ModuleProgressSchema,\n ModuleProgressWithActivitiesSchema,\n PurchaseSchema\n});\n","import {ModelSchema} from \"../model\";\nimport {z} from \"zod\";\nimport {Timestamp} from \"@google-cloud/firestore\";\n\nexport const ActivityProgressSchema = ModelSchema.extend({\n completionPercentage: z.coerce.number(),\n startsWith: z.coerce.number().optional(),\n isFavorite: z.boolean().optional(),\n lastChange: z.custom<Timestamp>()\n})\n\nexport const ModuleProgressSchema = ModelSchema.extend({\n completionCounter: z.coerce.number()\n})\n\nexport const ModuleProgressWithActivitiesSchema = ModuleProgressSchema.extend({\n activities: ActivityProgressSchema.array()\n})\n\nexport const PurchaseSchema = ModelSchema.extend({\n nextActivityId: z.string().optional(),\n nextModuleId: z.string().optional(),\n modulesAllowed: z.string().array().optional()\n})\n\nexport type ActivityProgress = z.infer<typeof ActivityProgressSchema>\nexport type ModuleProgress = z.infer<typeof ModuleProgressSchema>\nexport type ModuleProgressWithActivities = z.infer<typeof ModuleProgressWithActivitiesSchema>\nexport type Purchase = z.infer<typeof PurchaseSchema>\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\nexport const 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 const DocumentHistorySchema = z.object({\n createdAt: TimestampOrNow,\n description: z.string().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"]}
|
package/dist/model/purchase.mjs
CHANGED
|
@@ -44,6 +44,7 @@ import { z as z3 } from "zod";
|
|
|
44
44
|
var ActivityProgressSchema = ModelSchema.extend({
|
|
45
45
|
completionPercentage: z3.coerce.number(),
|
|
46
46
|
startsWith: z3.coerce.number().optional(),
|
|
47
|
+
isFavorite: z3.boolean().optional(),
|
|
47
48
|
lastChange: z3.custom()
|
|
48
49
|
});
|
|
49
50
|
var ModuleProgressSchema = ModelSchema.extend({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/purchase.mjs","../../src/model.ts","../../src/model/shared.ts","../../src/model/purchase.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","DocumentHistorySchema","description","ActivityProgressSchema","completionPercentage","startsWith","lastChange","ModuleProgressSchema","completionCounter","ModuleProgressWithActivitiesSchema","activities","PurchaseSchema","nextActivityId","nextModuleId","modulesAllowed"],"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;AAEtD,IAAMC,iBAAiBf,GAAEG,UAAA,CAAW,SAACa;IAC1C,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;AAEO,IAAMwB,wBAAwBhC,GAAEkB,MAAA,CAAO;IAC5CE,WAAWlB;IACX+B,aAAajC,GAAEa,MAAA,GAASL,QAAA;AAC1B;ADKA,wBAAwB;AGvCxB,SAAQR,KAAAA,EAAAA,QAAQ,MAAA;AAGT,IAAMkC,yBAAyBjB,YAAYQ,MAAA,CAAO;IACvDU,sBAAsBnC,GAAEuB,MAAA,CAAOT,MAAA;IAC/BsB,YAAYpC,GAAEuB,MAAA,CAAOT,MAAA,GAASN,QAAA;IAC9B6B,YAAYrC,GAAEM,MAAA;AAChB;AAEO,
|
|
1
|
+
{"version":3,"sources":["/Users/henriquewilson/Developer/Projects/gabirubi-domain/dist/model/purchase.mjs","../../src/model.ts","../../src/model/shared.ts","../../src/model/purchase.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","DocumentHistorySchema","description","ActivityProgressSchema","completionPercentage","startsWith","isFavorite","lastChange","ModuleProgressSchema","completionCounter","ModuleProgressWithActivitiesSchema","activities","PurchaseSchema","nextActivityId","nextModuleId","modulesAllowed"],"mappings":"AAAA,eAAe;ACAf,SAAQA,KAAAA,EAAAA,QAAQ,MAAA;ADGhB,sBAAsB;AEHtB,SAASC,SAAA,QAAiB,0BAA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8B,YAAYtC,GAAEM,MAAA;AAChB;AAEO,IAAMiC,uBAAuBtB,YAAYQ,MAAA,CAAO;IACrDe,mBAAmBxC,GAAEuB,MAAA,CAAOT,MAAA;AAC9B;AAEO,IAAM2B,qCAAqCF,qBAAqBd,MAAA,CAAO;IAC5EiB,YAAYR,uBAAuBN,KAAA;AACrC;AAEO,IAAMe,iBAAiB1B,YAAYQ,MAAA,CAAO;IAC/CmB,gBAAgB5C,GAAEa,MAAA,GAASL,QAAA;IAC3BqC,cAAc7C,GAAEa,MAAA,GAASL,QAAA;IACzBsC,gBAAgB9C,GAAEa,MAAA,GAASe,KAAA,GAAQpB,QAAA;AACrC;AHoCA,SACE0B,sBAAsB,EACtBK,oBAAoB,EACpBE,kCAAkC,EAClCE,cAAc,GACd","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});\nvar DocumentHistorySchema = z2.object({\n createdAt: TimestampOrNow,\n description: z2.string().optional()\n});\n\n// src/model/purchase.ts\nimport { z as z3 } from \"zod\";\nvar ActivityProgressSchema = ModelSchema.extend({\n completionPercentage: z3.coerce.number(),\n startsWith: z3.coerce.number().optional(),\n isFavorite: z3.boolean().optional(),\n lastChange: z3.custom()\n});\nvar ModuleProgressSchema = ModelSchema.extend({\n completionCounter: z3.coerce.number()\n});\nvar ModuleProgressWithActivitiesSchema = ModuleProgressSchema.extend({\n activities: ActivityProgressSchema.array()\n});\nvar PurchaseSchema = ModelSchema.extend({\n nextActivityId: z3.string().optional(),\n nextModuleId: z3.string().optional(),\n modulesAllowed: z3.string().array().optional()\n});\nexport {\n ActivityProgressSchema,\n ModuleProgressSchema,\n ModuleProgressWithActivitiesSchema,\n PurchaseSchema\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\nexport const 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 const DocumentHistorySchema = z.object({\n createdAt: TimestampOrNow,\n description: z.string().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\";\nimport {Timestamp} from \"@google-cloud/firestore\";\n\nexport const ActivityProgressSchema = ModelSchema.extend({\n completionPercentage: z.coerce.number(),\n startsWith: z.coerce.number().optional(),\n isFavorite: z.boolean().optional(),\n lastChange: z.custom<Timestamp>()\n})\n\nexport const ModuleProgressSchema = ModelSchema.extend({\n completionCounter: z.coerce.number()\n})\n\nexport const ModuleProgressWithActivitiesSchema = ModuleProgressSchema.extend({\n activities: ActivityProgressSchema.array()\n})\n\nexport const PurchaseSchema = ModelSchema.extend({\n nextActivityId: z.string().optional(),\n nextModuleId: z.string().optional(),\n modulesAllowed: z.string().array().optional()\n})\n\nexport type ActivityProgress = z.infer<typeof ActivityProgressSchema>\nexport type ModuleProgress = z.infer<typeof ModuleProgressSchema>\nexport type ModuleProgressWithActivities = z.infer<typeof ModuleProgressWithActivitiesSchema>\nexport type Purchase = z.infer<typeof PurchaseSchema>\n\n\n"]}
|
|
@@ -1642,9 +1642,9 @@ 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;
|
|
1645
1646
|
email?: string | undefined;
|
|
1646
1647
|
name?: string | undefined;
|
|
1647
|
-
enabled?: boolean | undefined;
|
|
1648
1648
|
lastNewsDate?: Timestamp | null | undefined;
|
|
1649
1649
|
password?: string | undefined;
|
|
1650
1650
|
phone?: string | undefined;
|
|
@@ -1663,9 +1663,9 @@ 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;
|
|
1666
1667
|
email?: string | undefined;
|
|
1667
1668
|
name?: string | undefined;
|
|
1668
|
-
enabled?: boolean | undefined;
|
|
1669
1669
|
lastNewsDate?: unknown;
|
|
1670
1670
|
password?: string | undefined;
|
|
1671
1671
|
phone?: string | undefined;
|
|
@@ -1700,9 +1700,9 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1700
1700
|
createdAt?: Timestamp | null | undefined;
|
|
1701
1701
|
updatedAt?: Timestamp | null | undefined;
|
|
1702
1702
|
order?: number | null | undefined;
|
|
1703
|
+
enabled?: boolean | undefined;
|
|
1703
1704
|
email?: string | undefined;
|
|
1704
1705
|
name?: string | undefined;
|
|
1705
|
-
enabled?: boolean | undefined;
|
|
1706
1706
|
lastNewsDate?: Timestamp | null | undefined;
|
|
1707
1707
|
password?: string | undefined;
|
|
1708
1708
|
phone?: string | undefined;
|
|
@@ -2199,9 +2199,9 @@ 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;
|
|
2202
2203
|
email?: string | undefined;
|
|
2203
2204
|
name?: string | undefined;
|
|
2204
|
-
enabled?: boolean | undefined;
|
|
2205
2205
|
lastNewsDate?: unknown;
|
|
2206
2206
|
password?: string | undefined;
|
|
2207
2207
|
phone?: string | undefined;
|
|
@@ -1642,9 +1642,9 @@ 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;
|
|
1645
1646
|
email?: string | undefined;
|
|
1646
1647
|
name?: string | undefined;
|
|
1647
|
-
enabled?: boolean | undefined;
|
|
1648
1648
|
lastNewsDate?: Timestamp | null | undefined;
|
|
1649
1649
|
password?: string | undefined;
|
|
1650
1650
|
phone?: string | undefined;
|
|
@@ -1663,9 +1663,9 @@ 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;
|
|
1666
1667
|
email?: string | undefined;
|
|
1667
1668
|
name?: string | undefined;
|
|
1668
|
-
enabled?: boolean | undefined;
|
|
1669
1669
|
lastNewsDate?: unknown;
|
|
1670
1670
|
password?: string | undefined;
|
|
1671
1671
|
phone?: string | undefined;
|
|
@@ -1700,9 +1700,9 @@ declare const SubscriptionSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
1700
1700
|
createdAt?: Timestamp | null | undefined;
|
|
1701
1701
|
updatedAt?: Timestamp | null | undefined;
|
|
1702
1702
|
order?: number | null | undefined;
|
|
1703
|
+
enabled?: boolean | undefined;
|
|
1703
1704
|
email?: string | undefined;
|
|
1704
1705
|
name?: string | undefined;
|
|
1705
|
-
enabled?: boolean | undefined;
|
|
1706
1706
|
lastNewsDate?: Timestamp | null | undefined;
|
|
1707
1707
|
password?: string | undefined;
|
|
1708
1708
|
phone?: string | undefined;
|
|
@@ -2199,9 +2199,9 @@ 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;
|
|
2202
2203
|
email?: string | undefined;
|
|
2203
2204
|
name?: string | undefined;
|
|
2204
|
-
enabled?: boolean | undefined;
|
|
2205
2205
|
lastNewsDate?: unknown;
|
|
2206
2206
|
password?: string | undefined;
|
|
2207
2207
|
phone?: string | undefined;
|
|
@@ -32,8 +32,8 @@ 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;
|
|
36
35
|
enabled?: boolean | undefined;
|
|
36
|
+
name?: string | undefined;
|
|
37
37
|
lastNewsDate?: Timestamp | null | undefined;
|
|
38
38
|
password?: string | undefined;
|
|
39
39
|
phone?: string | undefined;
|
|
@@ -53,8 +53,8 @@ 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;
|
|
57
56
|
enabled?: boolean | undefined;
|
|
57
|
+
name?: string | undefined;
|
|
58
58
|
lastNewsDate?: unknown;
|
|
59
59
|
password?: string | undefined;
|
|
60
60
|
phone?: string | undefined;
|
|
@@ -32,8 +32,8 @@ 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;
|
|
36
35
|
enabled?: boolean | undefined;
|
|
36
|
+
name?: string | undefined;
|
|
37
37
|
lastNewsDate?: Timestamp | null | undefined;
|
|
38
38
|
password?: string | undefined;
|
|
39
39
|
phone?: string | undefined;
|
|
@@ -53,8 +53,8 @@ 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;
|
|
57
56
|
enabled?: boolean | undefined;
|
|
57
|
+
name?: string | undefined;
|
|
58
58
|
lastNewsDate?: unknown;
|
|
59
59
|
password?: string | undefined;
|
|
60
60
|
phone?: string | undefined;
|