@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.NonEmpty;
8
- teaser: typeof Schema.NonEmpty;
9
- content: typeof Schema.NonEmpty;
10
- publishedAt: typeof Schema.Date;
11
- updatedAt: typeof Schema.Date;
12
- retrievedAt: typeof Schema.Date;
13
- url: typeof Schema.NonEmpty;
14
- site: typeof Schema.NonEmpty;
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.NonEmpty;
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.NonEmpty;
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.NonEmpty;
397
- teaser: typeof Schema.NonEmpty;
398
- content: typeof Schema.NonEmpty;
399
- publishedAt: typeof Schema.Date;
400
- updatedAt: typeof Schema.Date;
401
- retrievedAt: typeof Schema.Date;
402
- url: typeof Schema.NonEmpty;
403
- site: typeof Schema.NonEmpty;
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.NonEmpty;
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.NonEmpty;
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.NonEmpty;
8
- teaser: typeof Schema.NonEmpty;
9
- content: typeof Schema.NonEmpty;
10
- publishedAt: typeof Schema.Date;
11
- updatedAt: typeof Schema.Date;
12
- retrievedAt: typeof Schema.Date;
13
- url: typeof Schema.NonEmpty;
14
- site: typeof Schema.NonEmpty;
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.NonEmpty;
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.NonEmpty;
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.NonEmpty;
502
- teaser: typeof Schema.NonEmpty;
503
- content: typeof Schema.NonEmpty;
504
- publishedAt: typeof Schema.Date;
505
- updatedAt: typeof Schema.Date;
506
- retrievedAt: typeof Schema.Date;
507
- url: typeof Schema.NonEmpty;
508
- site: typeof Schema.NonEmpty;
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.NonEmpty;
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.NonEmpty;
515
+ value: typeof Schema.NonEmptyString;
516
516
  }>, Schema.Struct<{
517
517
  type: Schema.Literal<["EXTERNAL_ARTICLE_REFERENCE"]>;
518
518
  id: typeof Schema.UUID;
@@ -1,8 +1,8 @@
1
1
  import { Schema } from '@effect/schema';
2
- export declare const DateTimeSchema: typeof Schema.Date;
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.NonEmpty;
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.NonEmpty;
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.NonEmpty;
22
- teaser: typeof Schema.NonEmpty;
23
- content: typeof Schema.NonEmpty;
24
- publishedAt: typeof Schema.Date;
25
- updatedAt: typeof Schema.Date;
26
- retrievedAt: typeof Schema.Date;
27
- url: typeof Schema.NonEmpty;
28
- site: typeof Schema.NonEmpty;
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.NonEmpty;
30
+ name: typeof Schema.NonEmptyString;
31
31
  }>>;
32
32
  }>;
@@ -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.NonEmpty,
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.NonEmpty,
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.NonEmpty,
29
- teaser: schema_1.Schema.NonEmpty,
30
- content: schema_1.Schema.NonEmpty,
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.NonEmpty,
35
- site: schema_1.Schema.NonEmpty,
34
+ url: schema_1.Schema.NonEmptyString,
35
+ site: schema_1.Schema.NonEmptyString,
36
36
  authors: schema_1.Schema.Array(exports.AuthorSchema),
37
37
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@productminds/article-events",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "description": "Article events",
5
5
  "license": "ISC",
6
6
  "main": "lib/article-events.js",