@productminds/article-events 1.0.1 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,21 +4,21 @@ export declare const ExternalArticleEventSchema: Schema.Struct<{
|
|
4
4
|
payload: Schema.Struct<{
|
5
5
|
article: Schema.extend<Schema.Struct<{
|
6
6
|
id: typeof Schema.UUID;
|
7
|
-
title: typeof Schema.
|
8
|
-
teaser: typeof Schema.
|
9
|
-
content: typeof Schema.
|
10
|
-
publishedAt: typeof Schema.
|
11
|
-
updatedAt: typeof Schema.
|
12
|
-
retrievedAt: typeof Schema.
|
13
|
-
url: typeof Schema.
|
14
|
-
site: typeof Schema.
|
7
|
+
title: typeof Schema.NonEmptyString;
|
8
|
+
teaser: typeof Schema.NonEmptyString;
|
9
|
+
content: typeof Schema.NonEmptyString;
|
10
|
+
publishedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
11
|
+
updatedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
12
|
+
retrievedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
13
|
+
url: typeof Schema.NonEmptyString;
|
14
|
+
site: typeof Schema.NonEmptyString;
|
15
15
|
authors: Schema.Array$<Schema.Struct<{
|
16
|
-
name: typeof Schema.
|
16
|
+
name: typeof Schema.NonEmptyString;
|
17
17
|
}>>;
|
18
18
|
}>, Schema.Struct<{
|
19
19
|
tags: Schema.Array$<Schema.Struct<{
|
20
20
|
type: Schema.Literal<["CATEGORY"]>;
|
21
|
-
value: typeof Schema.
|
21
|
+
value: typeof Schema.NonEmptyString;
|
22
22
|
}>>;
|
23
23
|
}>>;
|
24
24
|
status: Schema.Literal<["NEW", "UPDATED"]>;
|
@@ -34,9 +34,9 @@ declare const _default: {
|
|
34
34
|
readonly title: string;
|
35
35
|
readonly teaser: string;
|
36
36
|
readonly content: string;
|
37
|
-
readonly publishedAt:
|
38
|
-
readonly updatedAt:
|
39
|
-
readonly retrievedAt:
|
37
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
38
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
39
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
40
40
|
readonly url: string;
|
41
41
|
readonly site: string;
|
42
42
|
readonly authors: readonly {
|
@@ -60,9 +60,9 @@ declare const _default: {
|
|
60
60
|
readonly title: string;
|
61
61
|
readonly teaser: string;
|
62
62
|
readonly content: string;
|
63
|
-
readonly publishedAt:
|
64
|
-
readonly updatedAt:
|
65
|
-
readonly retrievedAt:
|
63
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
64
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
65
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
66
66
|
readonly url: string;
|
67
67
|
readonly site: string;
|
68
68
|
readonly authors: readonly {
|
@@ -86,9 +86,9 @@ declare const _default: {
|
|
86
86
|
readonly title: string;
|
87
87
|
readonly teaser: string;
|
88
88
|
readonly content: string;
|
89
|
-
readonly publishedAt:
|
90
|
-
readonly updatedAt:
|
91
|
-
readonly retrievedAt:
|
89
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
90
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
91
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
92
92
|
readonly url: string;
|
93
93
|
readonly site: string;
|
94
94
|
readonly authors: readonly {
|
@@ -137,9 +137,9 @@ declare const _default: {
|
|
137
137
|
readonly title: string;
|
138
138
|
readonly teaser: string;
|
139
139
|
readonly content: string;
|
140
|
-
readonly publishedAt:
|
141
|
-
readonly updatedAt:
|
142
|
-
readonly retrievedAt:
|
140
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
141
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
142
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
143
143
|
readonly url: string;
|
144
144
|
readonly site: string;
|
145
145
|
readonly authors: readonly {
|
@@ -188,9 +188,9 @@ declare const _default: {
|
|
188
188
|
readonly title: string;
|
189
189
|
readonly teaser: string;
|
190
190
|
readonly content: string;
|
191
|
-
readonly publishedAt:
|
192
|
-
readonly updatedAt:
|
193
|
-
readonly retrievedAt:
|
191
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
192
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
193
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
194
194
|
readonly url: string;
|
195
195
|
readonly site: string;
|
196
196
|
readonly authors: readonly {
|
@@ -214,9 +214,9 @@ declare const _default: {
|
|
214
214
|
readonly title: string;
|
215
215
|
readonly teaser: string;
|
216
216
|
readonly content: string;
|
217
|
-
readonly publishedAt:
|
218
|
-
readonly updatedAt:
|
219
|
-
readonly retrievedAt:
|
217
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
218
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
219
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
220
220
|
readonly url: string;
|
221
221
|
readonly site: string;
|
222
222
|
readonly authors: readonly {
|
@@ -240,9 +240,9 @@ declare const _default: {
|
|
240
240
|
readonly title: string;
|
241
241
|
readonly teaser: string;
|
242
242
|
readonly content: string;
|
243
|
-
readonly publishedAt:
|
244
|
-
readonly updatedAt:
|
245
|
-
readonly retrievedAt:
|
243
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
244
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
245
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
246
246
|
readonly url: string;
|
247
247
|
readonly site: string;
|
248
248
|
readonly authors: readonly {
|
@@ -266,9 +266,9 @@ declare const _default: {
|
|
266
266
|
readonly title: string;
|
267
267
|
readonly teaser: string;
|
268
268
|
readonly content: string;
|
269
|
-
readonly publishedAt:
|
270
|
-
readonly updatedAt:
|
271
|
-
readonly retrievedAt:
|
269
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
270
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
271
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
272
272
|
readonly url: string;
|
273
273
|
readonly site: string;
|
274
274
|
readonly authors: readonly {
|
@@ -292,9 +292,9 @@ declare const _default: {
|
|
292
292
|
readonly title: string;
|
293
293
|
readonly teaser: string;
|
294
294
|
readonly content: string;
|
295
|
-
readonly publishedAt:
|
296
|
-
readonly updatedAt:
|
297
|
-
readonly retrievedAt:
|
295
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
296
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
297
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
298
298
|
readonly url: string;
|
299
299
|
readonly site: string;
|
300
300
|
readonly authors: readonly {
|
@@ -318,9 +318,9 @@ declare const _default: {
|
|
318
318
|
readonly title: string;
|
319
319
|
readonly teaser: string;
|
320
320
|
readonly content: string;
|
321
|
-
readonly publishedAt:
|
322
|
-
readonly updatedAt:
|
323
|
-
readonly retrievedAt:
|
321
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
322
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
323
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
324
324
|
readonly url: string;
|
325
325
|
readonly site: string;
|
326
326
|
readonly authors: readonly {
|
@@ -344,9 +344,9 @@ declare const _default: {
|
|
344
344
|
readonly title: string;
|
345
345
|
readonly teaser: string;
|
346
346
|
readonly content: string;
|
347
|
-
readonly publishedAt:
|
348
|
-
readonly updatedAt:
|
349
|
-
readonly retrievedAt:
|
347
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
348
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
349
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
350
350
|
readonly url: string;
|
351
351
|
readonly site: string;
|
352
352
|
readonly authors: readonly {
|
@@ -370,9 +370,9 @@ declare const _default: {
|
|
370
370
|
readonly title: string;
|
371
371
|
readonly teaser: string;
|
372
372
|
readonly content: string;
|
373
|
-
readonly publishedAt:
|
374
|
-
readonly updatedAt:
|
375
|
-
readonly retrievedAt:
|
373
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
374
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
375
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
376
376
|
readonly url: string;
|
377
377
|
readonly site: string;
|
378
378
|
readonly authors: readonly {
|
@@ -393,21 +393,21 @@ declare const _default: {
|
|
393
393
|
payload: Schema.Struct<{
|
394
394
|
article: Schema.extend<Schema.Struct<{
|
395
395
|
id: typeof Schema.UUID;
|
396
|
-
title: typeof Schema.
|
397
|
-
teaser: typeof Schema.
|
398
|
-
content: typeof Schema.
|
399
|
-
publishedAt: typeof Schema.
|
400
|
-
updatedAt: typeof Schema.
|
401
|
-
retrievedAt: typeof Schema.
|
402
|
-
url: typeof Schema.
|
403
|
-
site: typeof Schema.
|
396
|
+
title: typeof Schema.NonEmptyString;
|
397
|
+
teaser: typeof Schema.NonEmptyString;
|
398
|
+
content: typeof Schema.NonEmptyString;
|
399
|
+
publishedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
400
|
+
updatedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
401
|
+
retrievedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
402
|
+
url: typeof Schema.NonEmptyString;
|
403
|
+
site: typeof Schema.NonEmptyString;
|
404
404
|
authors: Schema.Array$<Schema.Struct<{
|
405
|
-
name: typeof Schema.
|
405
|
+
name: typeof Schema.NonEmptyString;
|
406
406
|
}>>;
|
407
407
|
}>, Schema.Struct<{
|
408
408
|
tags: Schema.Array$<Schema.Struct<{
|
409
409
|
type: Schema.Literal<["CATEGORY"]>;
|
410
|
-
value: typeof Schema.
|
410
|
+
value: typeof Schema.NonEmptyString;
|
411
411
|
}>>;
|
412
412
|
}>>;
|
413
413
|
status: Schema.Literal<["NEW", "UPDATED"]>;
|
@@ -4,21 +4,21 @@ export declare const InternalArticleEventSchema: Schema.Struct<{
|
|
4
4
|
payload: Schema.Struct<{
|
5
5
|
article: Schema.extend<Schema.Struct<{
|
6
6
|
id: typeof Schema.UUID;
|
7
|
-
title: typeof Schema.
|
8
|
-
teaser: typeof Schema.
|
9
|
-
content: typeof Schema.
|
10
|
-
publishedAt: typeof Schema.
|
11
|
-
updatedAt: typeof Schema.
|
12
|
-
retrievedAt: typeof Schema.
|
13
|
-
url: typeof Schema.
|
14
|
-
site: typeof Schema.
|
7
|
+
title: typeof Schema.NonEmptyString;
|
8
|
+
teaser: typeof Schema.NonEmptyString;
|
9
|
+
content: typeof Schema.NonEmptyString;
|
10
|
+
publishedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
11
|
+
updatedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
12
|
+
retrievedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
13
|
+
url: typeof Schema.NonEmptyString;
|
14
|
+
site: typeof Schema.NonEmptyString;
|
15
15
|
authors: Schema.Array$<Schema.Struct<{
|
16
|
-
name: typeof Schema.
|
16
|
+
name: typeof Schema.NonEmptyString;
|
17
17
|
}>>;
|
18
18
|
}>, Schema.Struct<{
|
19
19
|
tags: Schema.Array$<Schema.Union<[Schema.Struct<{
|
20
20
|
type: Schema.Literal<["CATEGORY"]>;
|
21
|
-
value: typeof Schema.
|
21
|
+
value: typeof Schema.NonEmptyString;
|
22
22
|
}>, Schema.Struct<{
|
23
23
|
type: Schema.Literal<["EXTERNAL_ARTICLE_REFERENCE"]>;
|
24
24
|
id: typeof Schema.UUID;
|
@@ -41,9 +41,9 @@ declare const _default: {
|
|
41
41
|
readonly title: string;
|
42
42
|
readonly teaser: string;
|
43
43
|
readonly content: string;
|
44
|
-
readonly publishedAt:
|
45
|
-
readonly updatedAt:
|
46
|
-
readonly retrievedAt:
|
44
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
45
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
46
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
47
47
|
readonly url: string;
|
48
48
|
readonly site: string;
|
49
49
|
readonly authors: readonly {
|
@@ -74,9 +74,9 @@ declare const _default: {
|
|
74
74
|
readonly title: string;
|
75
75
|
readonly teaser: string;
|
76
76
|
readonly content: string;
|
77
|
-
readonly publishedAt:
|
78
|
-
readonly updatedAt:
|
79
|
-
readonly retrievedAt:
|
77
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
78
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
79
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
80
80
|
readonly url: string;
|
81
81
|
readonly site: string;
|
82
82
|
readonly authors: readonly {
|
@@ -107,9 +107,9 @@ declare const _default: {
|
|
107
107
|
readonly title: string;
|
108
108
|
readonly teaser: string;
|
109
109
|
readonly content: string;
|
110
|
-
readonly publishedAt:
|
111
|
-
readonly updatedAt:
|
112
|
-
readonly retrievedAt:
|
110
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
111
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
112
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
113
113
|
readonly url: string;
|
114
114
|
readonly site: string;
|
115
115
|
readonly authors: readonly {
|
@@ -172,9 +172,9 @@ declare const _default: {
|
|
172
172
|
readonly title: string;
|
173
173
|
readonly teaser: string;
|
174
174
|
readonly content: string;
|
175
|
-
readonly publishedAt:
|
176
|
-
readonly updatedAt:
|
177
|
-
readonly retrievedAt:
|
175
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
176
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
177
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
178
178
|
readonly url: string;
|
179
179
|
readonly site: string;
|
180
180
|
readonly authors: readonly {
|
@@ -237,9 +237,9 @@ declare const _default: {
|
|
237
237
|
readonly title: string;
|
238
238
|
readonly teaser: string;
|
239
239
|
readonly content: string;
|
240
|
-
readonly publishedAt:
|
241
|
-
readonly updatedAt:
|
242
|
-
readonly retrievedAt:
|
240
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
241
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
242
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
243
243
|
readonly url: string;
|
244
244
|
readonly site: string;
|
245
245
|
readonly authors: readonly {
|
@@ -270,9 +270,9 @@ declare const _default: {
|
|
270
270
|
readonly title: string;
|
271
271
|
readonly teaser: string;
|
272
272
|
readonly content: string;
|
273
|
-
readonly publishedAt:
|
274
|
-
readonly updatedAt:
|
275
|
-
readonly retrievedAt:
|
273
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
274
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
275
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
276
276
|
readonly url: string;
|
277
277
|
readonly site: string;
|
278
278
|
readonly authors: readonly {
|
@@ -303,9 +303,9 @@ declare const _default: {
|
|
303
303
|
readonly title: string;
|
304
304
|
readonly teaser: string;
|
305
305
|
readonly content: string;
|
306
|
-
readonly publishedAt:
|
307
|
-
readonly updatedAt:
|
308
|
-
readonly retrievedAt:
|
306
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
307
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
308
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
309
309
|
readonly url: string;
|
310
310
|
readonly site: string;
|
311
311
|
readonly authors: readonly {
|
@@ -336,9 +336,9 @@ declare const _default: {
|
|
336
336
|
readonly title: string;
|
337
337
|
readonly teaser: string;
|
338
338
|
readonly content: string;
|
339
|
-
readonly publishedAt:
|
340
|
-
readonly updatedAt:
|
341
|
-
readonly retrievedAt:
|
339
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
340
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
341
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
342
342
|
readonly url: string;
|
343
343
|
readonly site: string;
|
344
344
|
readonly authors: readonly {
|
@@ -369,9 +369,9 @@ declare const _default: {
|
|
369
369
|
readonly title: string;
|
370
370
|
readonly teaser: string;
|
371
371
|
readonly content: string;
|
372
|
-
readonly publishedAt:
|
373
|
-
readonly updatedAt:
|
374
|
-
readonly retrievedAt:
|
372
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
373
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
374
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
375
375
|
readonly url: string;
|
376
376
|
readonly site: string;
|
377
377
|
readonly authors: readonly {
|
@@ -402,9 +402,9 @@ declare const _default: {
|
|
402
402
|
readonly title: string;
|
403
403
|
readonly teaser: string;
|
404
404
|
readonly content: string;
|
405
|
-
readonly publishedAt:
|
406
|
-
readonly updatedAt:
|
407
|
-
readonly retrievedAt:
|
405
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
406
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
407
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
408
408
|
readonly url: string;
|
409
409
|
readonly site: string;
|
410
410
|
readonly authors: readonly {
|
@@ -435,9 +435,9 @@ declare const _default: {
|
|
435
435
|
readonly title: string;
|
436
436
|
readonly teaser: string;
|
437
437
|
readonly content: string;
|
438
|
-
readonly publishedAt:
|
439
|
-
readonly updatedAt:
|
440
|
-
readonly retrievedAt:
|
438
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
439
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
440
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
441
441
|
readonly url: string;
|
442
442
|
readonly site: string;
|
443
443
|
readonly authors: readonly {
|
@@ -468,9 +468,9 @@ declare const _default: {
|
|
468
468
|
readonly title: string;
|
469
469
|
readonly teaser: string;
|
470
470
|
readonly content: string;
|
471
|
-
readonly publishedAt:
|
472
|
-
readonly updatedAt:
|
473
|
-
readonly retrievedAt:
|
471
|
+
readonly publishedAt: import("effect/DateTime").Utc;
|
472
|
+
readonly updatedAt: import("effect/DateTime").Utc;
|
473
|
+
readonly retrievedAt: import("effect/DateTime").Utc;
|
474
474
|
readonly url: string;
|
475
475
|
readonly site: string;
|
476
476
|
readonly authors: readonly {
|
@@ -498,21 +498,21 @@ declare const _default: {
|
|
498
498
|
payload: Schema.Struct<{
|
499
499
|
article: Schema.extend<Schema.Struct<{
|
500
500
|
id: typeof Schema.UUID;
|
501
|
-
title: typeof Schema.
|
502
|
-
teaser: typeof Schema.
|
503
|
-
content: typeof Schema.
|
504
|
-
publishedAt: typeof Schema.
|
505
|
-
updatedAt: typeof Schema.
|
506
|
-
retrievedAt: typeof Schema.
|
507
|
-
url: typeof Schema.
|
508
|
-
site: typeof Schema.
|
501
|
+
title: typeof Schema.NonEmptyString;
|
502
|
+
teaser: typeof Schema.NonEmptyString;
|
503
|
+
content: typeof Schema.NonEmptyString;
|
504
|
+
publishedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
505
|
+
updatedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
506
|
+
retrievedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
507
|
+
url: typeof Schema.NonEmptyString;
|
508
|
+
site: typeof Schema.NonEmptyString;
|
509
509
|
authors: Schema.Array$<Schema.Struct<{
|
510
|
-
name: typeof Schema.
|
510
|
+
name: typeof Schema.NonEmptyString;
|
511
511
|
}>>;
|
512
512
|
}>, Schema.Struct<{
|
513
513
|
tags: Schema.Array$<Schema.Union<[Schema.Struct<{
|
514
514
|
type: Schema.Literal<["CATEGORY"]>;
|
515
|
-
value: typeof Schema.
|
515
|
+
value: typeof Schema.NonEmptyString;
|
516
516
|
}>, Schema.Struct<{
|
517
517
|
type: Schema.Literal<["EXTERNAL_ARTICLE_REFERENCE"]>;
|
518
518
|
id: typeof Schema.UUID;
|
package/lib/types/Article.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Schema } from '@effect/schema';
|
2
|
-
export declare const DateTimeSchema: typeof Schema.
|
2
|
+
export declare const DateTimeSchema: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
3
3
|
export declare const CategoryTagSchema: Schema.Struct<{
|
4
4
|
type: Schema.Literal<["CATEGORY"]>;
|
5
|
-
value: typeof Schema.
|
5
|
+
value: typeof Schema.NonEmptyString;
|
6
6
|
}>;
|
7
7
|
export declare const ExternalArticleReferenceTagSchema: Schema.Struct<{
|
8
8
|
type: Schema.Literal<["EXTERNAL_ARTICLE_REFERENCE"]>;
|
@@ -14,19 +14,19 @@ export declare const DrupalExternalIDTag: Schema.Struct<{
|
|
14
14
|
extSource: typeof Schema.String;
|
15
15
|
}>;
|
16
16
|
export declare const AuthorSchema: Schema.Struct<{
|
17
|
-
name: typeof Schema.
|
17
|
+
name: typeof Schema.NonEmptyString;
|
18
18
|
}>;
|
19
19
|
export declare const BaseArticleSchema: Schema.Struct<{
|
20
20
|
id: typeof Schema.UUID;
|
21
|
-
title: typeof Schema.
|
22
|
-
teaser: typeof Schema.
|
23
|
-
content: typeof Schema.
|
24
|
-
publishedAt: typeof Schema.
|
25
|
-
updatedAt: typeof Schema.
|
26
|
-
retrievedAt: typeof Schema.
|
27
|
-
url: typeof Schema.
|
28
|
-
site: typeof Schema.
|
21
|
+
title: typeof Schema.NonEmptyString;
|
22
|
+
teaser: typeof Schema.NonEmptyString;
|
23
|
+
content: typeof Schema.NonEmptyString;
|
24
|
+
publishedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
25
|
+
updatedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
26
|
+
retrievedAt: Schema.transformOrFail<typeof Schema.String, typeof Schema.DateTimeUtcFromSelf, never>;
|
27
|
+
url: typeof Schema.NonEmptyString;
|
28
|
+
site: typeof Schema.NonEmptyString;
|
29
29
|
authors: Schema.Array$<Schema.Struct<{
|
30
|
-
name: typeof Schema.
|
30
|
+
name: typeof Schema.NonEmptyString;
|
31
31
|
}>>;
|
32
32
|
}>;
|
package/lib/types/Article.js
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BaseArticleSchema = exports.AuthorSchema = exports.DrupalExternalIDTag = exports.ExternalArticleReferenceTagSchema = exports.CategoryTagSchema = exports.DateTimeSchema = void 0;
|
4
4
|
const schema_1 = require("@effect/schema");
|
5
|
-
exports.DateTimeSchema = schema_1.Schema.
|
5
|
+
exports.DateTimeSchema = schema_1.Schema.DateTimeUtc.annotations({
|
6
6
|
jsonSchema: { type: 'string', format: 'date-time' },
|
7
7
|
});
|
8
8
|
exports.CategoryTagSchema = schema_1.Schema.Struct({
|
9
9
|
type: schema_1.Schema.Literal('CATEGORY'),
|
10
|
-
value: schema_1.Schema.
|
10
|
+
value: schema_1.Schema.NonEmptyString,
|
11
11
|
});
|
12
12
|
exports.ExternalArticleReferenceTagSchema = schema_1.Schema.Struct({
|
13
13
|
type: schema_1.Schema.Literal('EXTERNAL_ARTICLE_REFERENCE'),
|
@@ -21,17 +21,17 @@ exports.DrupalExternalIDTag = schema_1.Schema.Struct({
|
|
21
21
|
description: 'A special case tag for tracking where a Drupal article was created from',
|
22
22
|
});
|
23
23
|
exports.AuthorSchema = schema_1.Schema.Struct({
|
24
|
-
name: schema_1.Schema.
|
24
|
+
name: schema_1.Schema.NonEmptyString,
|
25
25
|
});
|
26
26
|
exports.BaseArticleSchema = schema_1.Schema.Struct({
|
27
27
|
id: schema_1.Schema.UUID,
|
28
|
-
title: schema_1.Schema.
|
29
|
-
teaser: schema_1.Schema.
|
30
|
-
content: schema_1.Schema.
|
28
|
+
title: schema_1.Schema.NonEmptyString,
|
29
|
+
teaser: schema_1.Schema.NonEmptyString,
|
30
|
+
content: schema_1.Schema.NonEmptyString,
|
31
31
|
publishedAt: exports.DateTimeSchema,
|
32
32
|
updatedAt: exports.DateTimeSchema,
|
33
33
|
retrievedAt: exports.DateTimeSchema,
|
34
|
-
url: schema_1.Schema.
|
35
|
-
site: schema_1.Schema.
|
34
|
+
url: schema_1.Schema.NonEmptyString,
|
35
|
+
site: schema_1.Schema.NonEmptyString,
|
36
36
|
authors: schema_1.Schema.Array(exports.AuthorSchema),
|
37
37
|
});
|