@s-hirano-ist/s-core 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/articles/entities/article-entity.d.ts +30 -30
- package/dist/articles/entities/article-entity.d.ts.map +1 -1
- package/dist/books/entities/books-entity.d.ts +58 -34
- package/dist/books/entities/books-entity.d.ts.map +1 -1
- package/dist/books/entities/books-entity.js +17 -0
- package/dist/books/entities/books-entity.js.map +1 -1
- package/dist/books/repositories/books-command-repository.interface.d.ts +9 -0
- package/dist/books/repositories/books-command-repository.interface.d.ts.map +1 -1
- package/dist/books/repositories/books-query-repository.interface.d.ts +10 -0
- package/dist/books/repositories/books-query-repository.interface.d.ts.map +1 -1
- package/dist/common/entities/common-entity.d.ts +6 -6
- package/dist/common/entities/common-entity.d.ts.map +1 -1
- package/dist/images/entities/image-entity.d.ts +27 -27
- package/dist/images/entities/image-entity.d.ts.map +1 -1
- package/dist/notes/entities/note-entity.d.ts +13 -13
- package/dist/notes/entities/note-entity.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ import { UserId } from "../../common/entities/common-entity.js";
|
|
|
14
14
|
*
|
|
15
15
|
* @see {@link makeCategoryName} for factory function
|
|
16
16
|
*/
|
|
17
|
-
export declare const CategoryName: z.core.$ZodBranded<z.ZodString, "CategoryName">;
|
|
17
|
+
export declare const CategoryName: z.core.$ZodBranded<z.ZodString, "CategoryName", "out">;
|
|
18
18
|
/**
|
|
19
19
|
* Branded type for validated category names.
|
|
20
20
|
*/
|
|
@@ -45,7 +45,7 @@ export declare const makeCategoryName: (v: string) => CategoryName;
|
|
|
45
45
|
*
|
|
46
46
|
* @see {@link makeArticleTitle} for factory function
|
|
47
47
|
*/
|
|
48
|
-
export declare const ArticleTitle: z.core.$ZodBranded<z.ZodString, "ArticleTitle">;
|
|
48
|
+
export declare const ArticleTitle: z.core.$ZodBranded<z.ZodString, "ArticleTitle", "out">;
|
|
49
49
|
/**
|
|
50
50
|
* Branded type for validated article titles.
|
|
51
51
|
*/
|
|
@@ -78,7 +78,7 @@ export declare const makeArticleTitle: (v: string) => ArticleTitle;
|
|
|
78
78
|
*
|
|
79
79
|
* @see {@link makeQuote} for factory function
|
|
80
80
|
*/
|
|
81
|
-
export declare const Quote: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "Quote">;
|
|
81
|
+
export declare const Quote: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "Quote", "out">;
|
|
82
82
|
/**
|
|
83
83
|
* Branded type for validated quotes.
|
|
84
84
|
*/
|
|
@@ -111,7 +111,7 @@ export declare const makeQuote: (v: string | null | undefined) => Quote;
|
|
|
111
111
|
*
|
|
112
112
|
* @see {@link makeUrl} for factory function
|
|
113
113
|
*/
|
|
114
|
-
export declare const Url: z.core.$ZodBranded<z.ZodURL, "Url">;
|
|
114
|
+
export declare const Url: z.core.$ZodBranded<z.ZodURL, "Url", "out">;
|
|
115
115
|
/**
|
|
116
116
|
* Branded type for validated URLs.
|
|
117
117
|
*/
|
|
@@ -138,7 +138,7 @@ export declare const makeUrl: (v: string) => Url;
|
|
|
138
138
|
*
|
|
139
139
|
* @see {@link makeOgTitle} for factory function
|
|
140
140
|
*/
|
|
141
|
-
export declare const OgTitle: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgTitle">;
|
|
141
|
+
export declare const OgTitle: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgTitle", "out">;
|
|
142
142
|
/**
|
|
143
143
|
* Branded type for validated OG titles.
|
|
144
144
|
*/
|
|
@@ -159,7 +159,7 @@ export declare const makeOgTitle: (v: string | null | undefined) => OgTitle;
|
|
|
159
159
|
*
|
|
160
160
|
* @see {@link makeOgDescription} for factory function
|
|
161
161
|
*/
|
|
162
|
-
export declare const OgDescription: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgDescription">;
|
|
162
|
+
export declare const OgDescription: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgDescription", "out">;
|
|
163
163
|
/**
|
|
164
164
|
* Branded type for validated OG descriptions.
|
|
165
165
|
*/
|
|
@@ -180,7 +180,7 @@ export declare const makeOgDescription: (v: string | null | undefined) => OgDesc
|
|
|
180
180
|
*
|
|
181
181
|
* @see {@link makeOgImageUrl} for factory function
|
|
182
182
|
*/
|
|
183
|
-
export declare const OgImageUrl: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgImageUrl">;
|
|
183
|
+
export declare const OgImageUrl: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgImageUrl", "out">;
|
|
184
184
|
/**
|
|
185
185
|
* Branded type for validated OG image URLs.
|
|
186
186
|
*/
|
|
@@ -202,17 +202,17 @@ export declare const makeOgImageUrl: (v: string | null | undefined) => OgImageUr
|
|
|
202
202
|
* @see {@link ExportedArticle} for the published state
|
|
203
203
|
*/
|
|
204
204
|
export declare const UnexportedArticle: z.ZodObject<{
|
|
205
|
-
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id">;
|
|
206
|
-
userId: z.core.$ZodBranded<z.ZodString, "UserId">;
|
|
207
|
-
categoryName: z.core.$ZodBranded<z.ZodString, "CategoryName">;
|
|
208
|
-
categoryId: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id">;
|
|
209
|
-
title: z.core.$ZodBranded<z.ZodString, "ArticleTitle">;
|
|
210
|
-
quote: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "Quote">;
|
|
211
|
-
url: z.core.$ZodBranded<z.ZodURL, "Url">;
|
|
212
|
-
createdAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt">;
|
|
213
|
-
ogTitle: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgTitle">;
|
|
214
|
-
ogDescription: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgDescription">;
|
|
215
|
-
ogImageUrl: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgImageUrl">;
|
|
205
|
+
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id", "out">;
|
|
206
|
+
userId: z.core.$ZodBranded<z.ZodString, "UserId", "out">;
|
|
207
|
+
categoryName: z.core.$ZodBranded<z.ZodString, "CategoryName", "out">;
|
|
208
|
+
categoryId: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id", "out">;
|
|
209
|
+
title: z.core.$ZodBranded<z.ZodString, "ArticleTitle", "out">;
|
|
210
|
+
quote: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "Quote", "out">;
|
|
211
|
+
url: z.core.$ZodBranded<z.ZodURL, "Url", "out">;
|
|
212
|
+
createdAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt", "out">;
|
|
213
|
+
ogTitle: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgTitle", "out">;
|
|
214
|
+
ogDescription: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgDescription", "out">;
|
|
215
|
+
ogImageUrl: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgImageUrl", "out">;
|
|
216
216
|
status: z.ZodLiteral<"UNEXPORTED">;
|
|
217
217
|
}, z.core.$strip>;
|
|
218
218
|
/**
|
|
@@ -232,19 +232,19 @@ export type UnexportedArticle = Readonly<z.infer<typeof UnexportedArticle>>;
|
|
|
232
232
|
* @see {@link UnexportedArticle} for the initial state
|
|
233
233
|
*/
|
|
234
234
|
export declare const ExportedArticle: z.ZodObject<{
|
|
235
|
-
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id">;
|
|
236
|
-
userId: z.core.$ZodBranded<z.ZodString, "UserId">;
|
|
237
|
-
categoryName: z.core.$ZodBranded<z.ZodString, "CategoryName">;
|
|
238
|
-
categoryId: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id">;
|
|
239
|
-
title: z.core.$ZodBranded<z.ZodString, "ArticleTitle">;
|
|
240
|
-
quote: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "Quote">;
|
|
241
|
-
url: z.core.$ZodBranded<z.ZodURL, "Url">;
|
|
242
|
-
createdAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt">;
|
|
243
|
-
ogTitle: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgTitle">;
|
|
244
|
-
ogDescription: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgDescription">;
|
|
245
|
-
ogImageUrl: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgImageUrl">;
|
|
235
|
+
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id", "out">;
|
|
236
|
+
userId: z.core.$ZodBranded<z.ZodString, "UserId", "out">;
|
|
237
|
+
categoryName: z.core.$ZodBranded<z.ZodString, "CategoryName", "out">;
|
|
238
|
+
categoryId: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id", "out">;
|
|
239
|
+
title: z.core.$ZodBranded<z.ZodString, "ArticleTitle", "out">;
|
|
240
|
+
quote: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "Quote", "out">;
|
|
241
|
+
url: z.core.$ZodBranded<z.ZodURL, "Url", "out">;
|
|
242
|
+
createdAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt", "out">;
|
|
243
|
+
ogTitle: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgTitle", "out">;
|
|
244
|
+
ogDescription: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgDescription", "out">;
|
|
245
|
+
ogImageUrl: z.core.$ZodBranded<z.ZodOptional<z.ZodNullable<z.ZodString>>, "OgImageUrl", "out">;
|
|
246
246
|
status: z.ZodLiteral<"EXPORTED">;
|
|
247
|
-
exportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt">;
|
|
247
|
+
exportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt", "out">;
|
|
248
248
|
}, z.core.$strip>;
|
|
249
249
|
/**
|
|
250
250
|
* Type for an exported article entity.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"article-entity.d.ts","sourceRoot":"","sources":["../../../articles/entities/article-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAQN,MAAM,EACN,MAAM,wCAAwC,CAAC;AAKhD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"article-entity.d.ts","sourceRoot":"","sources":["../../../articles/entities/article-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAQN,MAAM,EACN,MAAM,wCAAwC,CAAC;AAKhD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY,wDAKA,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,KAAG,YACvB,CAAC;AAEvB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,wDAIA,CAAC;AAE1B;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,KAAG,YACvB,CAAC;AAEvB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,KAA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;GAQG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;iBAA4C,CAAC;AAE3E;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC;AAE5E;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;iBAAoC,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC;AAExE;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC;IACxC,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,YAAY,EAAE,YAAY,CAAC;IAC3B,wBAAwB;IACxB,KAAK,EAAE,YAAY,CAAC;IACpB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,sBAAsB;IACtB,GAAG,EAAE,GAAG,CAAC;CACT,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,aAAa;IACzB;;;;;;;OAOG;mBACY,iBAAiB,KAAG,iBAAiB;IAYpD;;;;;;;OAOG;sBACe,iBAAiB,KAAG,eAAe;CASrD,CAAC"}
|
|
@@ -15,7 +15,7 @@ import { UserId } from "../../common/entities/common-entity.js";
|
|
|
15
15
|
*
|
|
16
16
|
* @see {@link makeISBN} for factory function
|
|
17
17
|
*/
|
|
18
|
-
export declare const ISBN: z.core.$ZodBranded<z.ZodString, "ISBN">;
|
|
18
|
+
export declare const ISBN: z.core.$ZodBranded<z.ZodString, "ISBN", "out">;
|
|
19
19
|
/**
|
|
20
20
|
* Branded type for validated ISBN identifiers.
|
|
21
21
|
*/
|
|
@@ -46,7 +46,7 @@ export declare const makeISBN: (v: string) => ISBN;
|
|
|
46
46
|
*
|
|
47
47
|
* @see {@link makeBookTitle} for factory function
|
|
48
48
|
*/
|
|
49
|
-
export declare const BookTitle: z.core.$ZodBranded<z.ZodString, "BookTitle">;
|
|
49
|
+
export declare const BookTitle: z.core.$ZodBranded<z.ZodString, "BookTitle", "out">;
|
|
50
50
|
/**
|
|
51
51
|
* Branded type for validated book titles.
|
|
52
52
|
*/
|
|
@@ -73,7 +73,7 @@ export declare const makeBookTitle: (v: string) => BookTitle;
|
|
|
73
73
|
*
|
|
74
74
|
* @see {@link makeGoogleTitle} for factory function
|
|
75
75
|
*/
|
|
76
|
-
export declare const GoogleTitle: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleTitle">;
|
|
76
|
+
export declare const GoogleTitle: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleTitle", "out">;
|
|
77
77
|
/**
|
|
78
78
|
* Branded type for Google Books API titles.
|
|
79
79
|
*/
|
|
@@ -93,7 +93,7 @@ export declare const makeGoogleTitle: (v: string | null | undefined) => GoogleTi
|
|
|
93
93
|
*
|
|
94
94
|
* @see {@link makeGoogleSubTitle} for factory function
|
|
95
95
|
*/
|
|
96
|
-
export declare const GoogleSubtitle: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleSubTitle">;
|
|
96
|
+
export declare const GoogleSubtitle: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleSubTitle", "out">;
|
|
97
97
|
/**
|
|
98
98
|
* Branded type for Google Books API subtitles.
|
|
99
99
|
*/
|
|
@@ -114,7 +114,7 @@ export declare const makeGoogleSubTitle: (v: string | null | undefined) => Googl
|
|
|
114
114
|
*
|
|
115
115
|
* @see {@link makeGoogleAuthors} for factory function
|
|
116
116
|
*/
|
|
117
|
-
export declare const GoogleAuthors: z.core.$ZodBranded<z.ZodNullable<z.ZodArray<z.ZodString>>, "GoogleAuthors">;
|
|
117
|
+
export declare const GoogleAuthors: z.core.$ZodBranded<z.ZodNullable<z.ZodArray<z.ZodString>>, "GoogleAuthors", "out">;
|
|
118
118
|
/**
|
|
119
119
|
* Branded type for Google Books API authors.
|
|
120
120
|
*/
|
|
@@ -134,7 +134,7 @@ export declare const makeGoogleAuthors: (v: string[] | null | undefined) => Goog
|
|
|
134
134
|
*
|
|
135
135
|
* @see {@link makeGoogleDescription} for factory function
|
|
136
136
|
*/
|
|
137
|
-
export declare const GoogleDescription: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleDescription">;
|
|
137
|
+
export declare const GoogleDescription: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleDescription", "out">;
|
|
138
138
|
/**
|
|
139
139
|
* Branded type for Google Books API descriptions.
|
|
140
140
|
*/
|
|
@@ -154,7 +154,7 @@ export declare const makeGoogleDescription: (v: string | null | undefined) => Go
|
|
|
154
154
|
*
|
|
155
155
|
* @see {@link makeGoogleImgSrc} for factory function
|
|
156
156
|
*/
|
|
157
|
-
export declare const GoogleImgSrc: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleImgSrc">;
|
|
157
|
+
export declare const GoogleImgSrc: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleImgSrc", "out">;
|
|
158
158
|
/**
|
|
159
159
|
* Branded type for Google Books API image URLs.
|
|
160
160
|
*/
|
|
@@ -174,7 +174,7 @@ export declare const makeGoogleImgSrc: (v: string | null | undefined) => GoogleI
|
|
|
174
174
|
*
|
|
175
175
|
* @see {@link makeGoogleHref} for factory function
|
|
176
176
|
*/
|
|
177
|
-
export declare const GoogleHref: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleHref">;
|
|
177
|
+
export declare const GoogleHref: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleHref", "out">;
|
|
178
178
|
/**
|
|
179
179
|
* Branded type for Google Books API links.
|
|
180
180
|
*/
|
|
@@ -194,7 +194,7 @@ export declare const makeGoogleHref: (v: string | null | undefined) => GoogleHre
|
|
|
194
194
|
*
|
|
195
195
|
* @see {@link makeBookMarkdown} for factory function
|
|
196
196
|
*/
|
|
197
|
-
export declare const BookMarkdown: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "BookMarkdown">;
|
|
197
|
+
export declare const BookMarkdown: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "BookMarkdown", "out">;
|
|
198
198
|
/**
|
|
199
199
|
* Branded type for book markdown content.
|
|
200
200
|
*/
|
|
@@ -206,6 +206,26 @@ export type BookMarkdown = z.infer<typeof BookMarkdown>;
|
|
|
206
206
|
* @returns A branded BookMarkdown value
|
|
207
207
|
*/
|
|
208
208
|
export declare const makeBookMarkdown: (v: string | null) => BookMarkdown;
|
|
209
|
+
/**
|
|
210
|
+
* Zod schema for book image path.
|
|
211
|
+
*
|
|
212
|
+
* @remarks
|
|
213
|
+
* Optional path to user-uploaded book cover image stored in MinIO.
|
|
214
|
+
*
|
|
215
|
+
* @see {@link makeBookImagePath} for factory function
|
|
216
|
+
*/
|
|
217
|
+
export declare const BookImagePath: z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "BookImagePath", "out">;
|
|
218
|
+
/**
|
|
219
|
+
* Branded type for book image paths.
|
|
220
|
+
*/
|
|
221
|
+
export type BookImagePath = z.infer<typeof BookImagePath>;
|
|
222
|
+
/**
|
|
223
|
+
* Creates a validated BookImagePath from a string or null.
|
|
224
|
+
*
|
|
225
|
+
* @param v - The image path or null
|
|
226
|
+
* @returns A branded BookImagePath value
|
|
227
|
+
*/
|
|
228
|
+
export declare const makeBookImagePath: (v: string | null) => BookImagePath;
|
|
209
229
|
/**
|
|
210
230
|
* Zod schema for an unexported book.
|
|
211
231
|
*
|
|
@@ -216,18 +236,19 @@ export declare const makeBookMarkdown: (v: string | null) => BookMarkdown;
|
|
|
216
236
|
* @see {@link ExportedBook} for the published state
|
|
217
237
|
*/
|
|
218
238
|
export declare const UnexportedBook: z.ZodObject<{
|
|
219
|
-
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id">;
|
|
220
|
-
userId: z.core.$ZodBranded<z.ZodString, "UserId">;
|
|
221
|
-
ISBN: z.core.$ZodBranded<z.ZodString, "ISBN">;
|
|
222
|
-
title: z.core.$ZodBranded<z.ZodString, "BookTitle">;
|
|
223
|
-
googleTitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleTitle">>;
|
|
224
|
-
googleSubtitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleSubTitle">>;
|
|
225
|
-
googleAuthors: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodArray<z.ZodString>>, "GoogleAuthors">>;
|
|
226
|
-
googleDescription: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleDescription">>;
|
|
227
|
-
googleImgSrc: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleImgSrc">>;
|
|
228
|
-
googleHref: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleHref">>;
|
|
229
|
-
|
|
230
|
-
|
|
239
|
+
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id", "out">;
|
|
240
|
+
userId: z.core.$ZodBranded<z.ZodString, "UserId", "out">;
|
|
241
|
+
ISBN: z.core.$ZodBranded<z.ZodString, "ISBN", "out">;
|
|
242
|
+
title: z.core.$ZodBranded<z.ZodString, "BookTitle", "out">;
|
|
243
|
+
googleTitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleTitle", "out">>;
|
|
244
|
+
googleSubtitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleSubTitle", "out">>;
|
|
245
|
+
googleAuthors: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodArray<z.ZodString>>, "GoogleAuthors", "out">>;
|
|
246
|
+
googleDescription: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleDescription", "out">>;
|
|
247
|
+
googleImgSrc: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleImgSrc", "out">>;
|
|
248
|
+
googleHref: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleHref", "out">>;
|
|
249
|
+
imagePath: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "BookImagePath", "out">>;
|
|
250
|
+
markdown: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "BookMarkdown", "out">>;
|
|
251
|
+
createdAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt", "out">;
|
|
231
252
|
status: z.ZodLiteral<"UNEXPORTED">;
|
|
232
253
|
}, z.core.$strip>;
|
|
233
254
|
/**
|
|
@@ -247,20 +268,21 @@ export type UnexportedBook = Readonly<z.infer<typeof UnexportedBook>>;
|
|
|
247
268
|
* @see {@link UnexportedBook} for the initial state
|
|
248
269
|
*/
|
|
249
270
|
export declare const ExportedBook: z.ZodObject<{
|
|
250
|
-
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id">;
|
|
251
|
-
userId: z.core.$ZodBranded<z.ZodString, "UserId">;
|
|
252
|
-
ISBN: z.core.$ZodBranded<z.ZodString, "ISBN">;
|
|
253
|
-
title: z.core.$ZodBranded<z.ZodString, "BookTitle">;
|
|
254
|
-
googleTitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleTitle">>;
|
|
255
|
-
googleSubtitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleSubTitle">>;
|
|
256
|
-
googleAuthors: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodArray<z.ZodString>>, "GoogleAuthors">>;
|
|
257
|
-
googleDescription: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleDescription">>;
|
|
258
|
-
googleImgSrc: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleImgSrc">>;
|
|
259
|
-
googleHref: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleHref">>;
|
|
260
|
-
|
|
261
|
-
|
|
271
|
+
id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id", "out">;
|
|
272
|
+
userId: z.core.$ZodBranded<z.ZodString, "UserId", "out">;
|
|
273
|
+
ISBN: z.core.$ZodBranded<z.ZodString, "ISBN", "out">;
|
|
274
|
+
title: z.core.$ZodBranded<z.ZodString, "BookTitle", "out">;
|
|
275
|
+
googleTitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleTitle", "out">>;
|
|
276
|
+
googleSubtitle: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleSubTitle", "out">>;
|
|
277
|
+
googleAuthors: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodArray<z.ZodString>>, "GoogleAuthors", "out">>;
|
|
278
|
+
googleDescription: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleDescription", "out">>;
|
|
279
|
+
googleImgSrc: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleImgSrc", "out">>;
|
|
280
|
+
googleHref: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "GoogleHref", "out">>;
|
|
281
|
+
imagePath: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "BookImagePath", "out">>;
|
|
282
|
+
markdown: z.ZodOptional<z.core.$ZodBranded<z.ZodNullable<z.ZodString>, "BookMarkdown", "out">>;
|
|
283
|
+
createdAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt", "out">;
|
|
262
284
|
status: z.ZodLiteral<"EXPORTED">;
|
|
263
|
-
exportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt">;
|
|
285
|
+
exportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt", "out">;
|
|
264
286
|
}, z.core.$strip>;
|
|
265
287
|
/**
|
|
266
288
|
* Type for an exported book entity.
|
|
@@ -292,6 +314,8 @@ export type CreateBookArgs = Readonly<{
|
|
|
292
314
|
ISBN: ISBN;
|
|
293
315
|
/** The book title */
|
|
294
316
|
title: BookTitle;
|
|
317
|
+
/** Optional path to user-uploaded book cover image */
|
|
318
|
+
imagePath?: BookImagePath;
|
|
295
319
|
}>;
|
|
296
320
|
/**
|
|
297
321
|
* Factory object for Book domain entity operations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"books-entity.d.ts","sourceRoot":"","sources":["../../../books/entities/books-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAQN,MAAM,EACN,MAAM,wCAAwC,CAAC;AAKhD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"books-entity.d.ts","sourceRoot":"","sources":["../../../books/entities/books-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAQN,MAAM,EACN,MAAM,wCAAwC,CAAC;AAKhD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,IAAI,gDAKA,CAAC;AAElB;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAExC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,GAAI,GAAG,MAAM,KAAG,IAAqB,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,qDAIA,CAAC;AAEvB;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,GAAG,MAAM,KAAG,SAA+B,CAAC;AAE1E;;;;;;;;GAQG;AACH,eAAO,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AAE,MAAM,CAAC;IACf,iCAAiC;IACjC,IAAI,EAAE,IAAI,CAAC;IACX,qBAAqB;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,sDAAsD;IACtD,SAAS,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,UAAU;IACtB;;;;;;;OAOG;mBACY,cAAc,KAAG,cAAc;IAW9C;;;;;;;OAOG;mBACY,cAAc,KAAG,YAAY;CAS5C,CAAC"}
|
|
@@ -187,6 +187,22 @@ export const BookMarkdown = z.string().nullable().brand();
|
|
|
187
187
|
* @returns A branded BookMarkdown value
|
|
188
188
|
*/
|
|
189
189
|
export const makeBookMarkdown = (v) => BookMarkdown.parse(v);
|
|
190
|
+
/**
|
|
191
|
+
* Zod schema for book image path.
|
|
192
|
+
*
|
|
193
|
+
* @remarks
|
|
194
|
+
* Optional path to user-uploaded book cover image stored in MinIO.
|
|
195
|
+
*
|
|
196
|
+
* @see {@link makeBookImagePath} for factory function
|
|
197
|
+
*/
|
|
198
|
+
export const BookImagePath = z.string().nullable().brand();
|
|
199
|
+
/**
|
|
200
|
+
* Creates a validated BookImagePath from a string or null.
|
|
201
|
+
*
|
|
202
|
+
* @param v - The image path or null
|
|
203
|
+
* @returns A branded BookImagePath value
|
|
204
|
+
*/
|
|
205
|
+
export const makeBookImagePath = (v) => BookImagePath.parse(v);
|
|
190
206
|
// Entities
|
|
191
207
|
/**
|
|
192
208
|
* Base schema containing common book fields.
|
|
@@ -204,6 +220,7 @@ const Base = z.object({
|
|
|
204
220
|
googleDescription: GoogleDescription.optional(),
|
|
205
221
|
googleImgSrc: GoogleImgSrc.optional(),
|
|
206
222
|
googleHref: GoogleHref.optional(),
|
|
223
|
+
imagePath: BookImagePath.optional(),
|
|
207
224
|
markdown: BookMarkdown.optional(),
|
|
208
225
|
createdAt: CreatedAt,
|
|
209
226
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|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Q,EAAE;IAC/C,YAAY,EAAE,YAAY,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,UAAU,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE;IACnC,QAAQ,EAAE,YAAY,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,SAAS;CACpB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;AAUxE;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAqC9D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACzB;;;;;;;OAOG;IACH,MAAM,EAAE,CAAC,IAAoB,EAAkB,EAAE;QAChD,OAAO,6BAA6B,CAAC,GAAG,EAAE,CACzC,MAAM,CAAC,MAAM,CAAC;YACb,EAAE,EAAE,MAAM,EAAE;YACZ,MAAM,EAAE,YAAY;YACpB,SAAS,EAAE,aAAa,EAAE;YAC1B,GAAG,IAAI;SACP,CAAC,CACF,CAAC;IACH,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,EAAE,CAAC,IAAoB,EAAgB,EAAE;QAC9C,OAAO,6BAA6B,CAAC,GAAG,EAAE;YACzC,MAAM,cAAc,GAAG,kBAAkB,EAAE,CAAC;YAC5C,OAAO,MAAM,CAAC,MAAM,CAAC;gBACpB,GAAG,IAAI;gBACP,GAAG,cAAc;aACjB,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;CACD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Id, Status, UserId } from "../../common/entities/common-entity.js";
|
|
2
|
+
import type { Path } from "../../images/entities/image-entity.js";
|
|
2
3
|
import type { UnexportedBook } from "../entities/books-entity.js";
|
|
3
4
|
/**
|
|
4
5
|
* Command repository interface for the Book domain.
|
|
@@ -53,5 +54,13 @@ export type IBooksCommandRepository = {
|
|
|
53
54
|
* @returns Array of unexported book entities
|
|
54
55
|
*/
|
|
55
56
|
fetchBookFromGitHub(): Promise<UnexportedBook[]>;
|
|
57
|
+
/**
|
|
58
|
+
* Uploads a book cover image to MinIO storage.
|
|
59
|
+
*
|
|
60
|
+
* @param path - The storage path for the image
|
|
61
|
+
* @param buffer - The image buffer data
|
|
62
|
+
* @param isThumbnail - Whether this is a thumbnail or original image
|
|
63
|
+
*/
|
|
64
|
+
uploadImageToStorage(path: Path, buffer: Buffer, isThumbnail: boolean): Promise<void>;
|
|
56
65
|
};
|
|
57
66
|
//# sourceMappingURL=books-command-repository.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"books-command-repository.interface.d.ts","sourceRoot":"","sources":["../../../books/repositories/books-command-repository.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,EAAE,EACF,MAAM,EACN,MAAM,EACN,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElE;;;;;;;OAOG;IACH,mBAAmB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"books-command-repository.interface.d.ts","sourceRoot":"","sources":["../../../books/repositories/books-command-repository.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,EAAE,EACF,MAAM,EACN,MAAM,EACN,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uCAAuC,CAAC;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAElE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACrC;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElE;;;;;;;OAOG;IACH,mBAAmB,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,oBAAoB,CACnB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,OAAO,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC;CACjB,CAAC"}
|
|
@@ -40,6 +40,7 @@ export type IBooksQueryRepository = {
|
|
|
40
40
|
googleDescription: string | null;
|
|
41
41
|
googleImgSrc: string | null;
|
|
42
42
|
googleHref: string | null;
|
|
43
|
+
imagePath: string | null;
|
|
43
44
|
markdown: string | null;
|
|
44
45
|
rating: number | null;
|
|
45
46
|
tags: string[];
|
|
@@ -68,6 +69,7 @@ export type IBooksQueryRepository = {
|
|
|
68
69
|
googleDescription: string | null;
|
|
69
70
|
googleImgSrc: string | null;
|
|
70
71
|
googleHref: string | null;
|
|
72
|
+
imagePath: string | null;
|
|
71
73
|
markdown: string | null;
|
|
72
74
|
rating: number | null;
|
|
73
75
|
tags: string[];
|
|
@@ -103,5 +105,13 @@ export type IBooksQueryRepository = {
|
|
|
103
105
|
rating: number | null;
|
|
104
106
|
tags: string[];
|
|
105
107
|
}[]>;
|
|
108
|
+
/**
|
|
109
|
+
* Retrieves a book cover image from MinIO storage.
|
|
110
|
+
*
|
|
111
|
+
* @param path - The storage path for the image
|
|
112
|
+
* @param isThumbnail - Whether to retrieve the thumbnail or original image
|
|
113
|
+
* @returns A readable stream of the image data
|
|
114
|
+
*/
|
|
115
|
+
getImageFromStorage(path: string, isThumbnail: boolean): Promise<NodeJS.ReadableStream>;
|
|
106
116
|
};
|
|
107
117
|
//# sourceMappingURL=books-query-repository.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"books-query-repository.interface.d.ts","sourceRoot":"","sources":["../../../books/repositories/books-query-repository.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,qBAAqB,GAAG;IACnC;;;;;;OAMG;IACH,UAAU,CACT,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC;QACV,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,IAAI,EAAE,MAAM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AAG,IAAI,CAAC;QAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,IAAI,EAAE,MAAM,EAAE,CAAC;KACf,EAAE,CACH,CAAC;
|
|
1
|
+
{"version":3,"file":"books-query-repository.interface.d.ts","sourceRoot":"","sources":["../../../books/repositories/books-query-repository.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,qBAAqB,GAAG;IACnC;;;;;;OAMG;IACH,UAAU,CACT,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC;QACV,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;QAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,IAAI,EAAE,MAAM,EAAE,CAA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,CAAC;QACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;QAC3B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;QAC9B,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;QACxB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,IAAI,EAAE,MAAM,EAAE,CAAC;KACf,EAAE,CACH,CAAC;IAEF;;;;;;OAMG;IACH,mBAAmB,CAClB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,OAAO,GAClB,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;CAClC,CAAC"}
|
|
@@ -14,7 +14,7 @@ import { z } from "zod";
|
|
|
14
14
|
*
|
|
15
15
|
* @see {@link makeId} for factory function
|
|
16
16
|
*/
|
|
17
|
-
export declare const Id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id">;
|
|
17
|
+
export declare const Id: z.core.$ZodBranded<z.ZodDefault<z.ZodUUID>, "Id", "out">;
|
|
18
18
|
/**
|
|
19
19
|
* Branded type for validated UUIDv7 identifiers.
|
|
20
20
|
*
|
|
@@ -51,7 +51,7 @@ export declare const makeId: (id?: string) => Id;
|
|
|
51
51
|
*
|
|
52
52
|
* @see {@link makeUserId} for factory function
|
|
53
53
|
*/
|
|
54
|
-
export declare const UserId: z.core.$ZodBranded<z.ZodString, "UserId">;
|
|
54
|
+
export declare const UserId: z.core.$ZodBranded<z.ZodString, "UserId", "out">;
|
|
55
55
|
/**
|
|
56
56
|
* Branded type for validated user identifiers.
|
|
57
57
|
*
|
|
@@ -87,7 +87,7 @@ export declare const makeUserId: (v: string) => UserId;
|
|
|
87
87
|
*
|
|
88
88
|
* @see {@link makeCreatedAt} for factory function
|
|
89
89
|
*/
|
|
90
|
-
export declare const CreatedAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt">;
|
|
90
|
+
export declare const CreatedAt: z.core.$ZodBranded<z.ZodDate, "CreatedAt", "out">;
|
|
91
91
|
/**
|
|
92
92
|
* Branded type for validated creation timestamps.
|
|
93
93
|
*/
|
|
@@ -120,7 +120,7 @@ export declare const makeCreatedAt: (createdAt?: Date) => CreatedAt;
|
|
|
120
120
|
*
|
|
121
121
|
* @see {@link makeUpdatedAt} for factory function
|
|
122
122
|
*/
|
|
123
|
-
export declare const UpdatedAt: z.core.$ZodBranded<z.ZodDate, "UpdatedAt">;
|
|
123
|
+
export declare const UpdatedAt: z.core.$ZodBranded<z.ZodDate, "UpdatedAt", "out">;
|
|
124
124
|
/**
|
|
125
125
|
* Branded type for validated update timestamps.
|
|
126
126
|
*/
|
|
@@ -197,7 +197,7 @@ export type LastUpdatedStatus = z.infer<typeof LastUpdatedStatus>;
|
|
|
197
197
|
*
|
|
198
198
|
* @see {@link makeExportedAt} for factory function
|
|
199
199
|
*/
|
|
200
|
-
export declare const ExportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt">;
|
|
200
|
+
export declare const ExportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt", "out">;
|
|
201
201
|
/**
|
|
202
202
|
* Branded type for validated export timestamps.
|
|
203
203
|
*/
|
|
@@ -236,7 +236,7 @@ export declare const makeExportedAt: (exportedAt?: Date) => ExportedAt;
|
|
|
236
236
|
*/
|
|
237
237
|
export declare const ExportedStatus: z.ZodObject<{
|
|
238
238
|
status: z.ZodLiteral<"EXPORTED">;
|
|
239
|
-
exportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt">;
|
|
239
|
+
exportedAt: z.core.$ZodBranded<z.ZodDate, "ExportedAt", "out">;
|
|
240
240
|
}, z.core.$strip>;
|
|
241
241
|
/**
|
|
242
242
|
* Type for the EXPORTED status with timestamp.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-entity.d.ts","sourceRoot":"","sources":["../../../common/entities/common-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE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