@productminds/article-events 1.0.1 → 2.0.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.
@@ -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:
|
11
|
-
updatedAt:
|
12
|
-
retrievedAt:
|
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.refine<Date, Schema.Schema<Date, string, never>>;
|
11
|
+
updatedAt: Schema.refine<Date, Schema.Schema<Date, string, never>>;
|
12
|
+
retrievedAt: Schema.refine<Date, Schema.Schema<Date, string, 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"]>;
|
@@ -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:
|
400
|
-
updatedAt:
|
401
|
-
retrievedAt:
|
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.refine<Date, Schema.Schema<Date, string, never>>;
|
400
|
+
updatedAt: Schema.refine<Date, Schema.Schema<Date, string, never>>;
|
401
|
+
retrievedAt: Schema.refine<Date, Schema.Schema<Date, string, 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:
|
11
|
-
updatedAt:
|
12
|
-
retrievedAt:
|
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.refine<Date, Schema.Schema<Date, string, never>>;
|
11
|
+
updatedAt: Schema.refine<Date, Schema.Schema<Date, string, never>>;
|
12
|
+
retrievedAt: Schema.refine<Date, Schema.Schema<Date, string, 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;
|
@@ -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:
|
505
|
-
updatedAt:
|
506
|
-
retrievedAt:
|
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.refine<Date, Schema.Schema<Date, string, never>>;
|
505
|
+
updatedAt: Schema.refine<Date, Schema.Schema<Date, string, never>>;
|
506
|
+
retrievedAt: Schema.refine<Date, Schema.Schema<Date, string, 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:
|
2
|
+
export declare const DateTimeSchema: Schema.refine<Date, Schema.Schema<Date, string, 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:
|
25
|
-
updatedAt:
|
26
|
-
retrievedAt:
|
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.refine<Date, Schema.Schema<Date, string, never>>;
|
25
|
+
updatedAt: Schema.refine<Date, Schema.Schema<Date, string, never>>;
|
26
|
+
retrievedAt: Schema.refine<Date, Schema.Schema<Date, string, 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
@@ -7,7 +7,7 @@ exports.DateTimeSchema = schema_1.Schema.Date.annotations({
|
|
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
|
});
|