@productminds/article-events 5.1.1 → 5.2.0-beta.1

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.
@@ -20,6 +20,7 @@ export declare const ExternalArticleEventSchema: Schema.Struct<{
20
20
  readonly type: "CATEGORY";
21
21
  readonly value: string;
22
22
  }[] | undefined;
23
+ readonly languageCode?: string | undefined;
23
24
  }, {
24
25
  readonly title?: string | undefined;
25
26
  readonly teaser?: string | undefined;
@@ -32,6 +33,7 @@ export declare const ExternalArticleEventSchema: Schema.Struct<{
32
33
  readonly type: "CATEGORY";
33
34
  readonly value: string;
34
35
  }[] | undefined;
36
+ readonly languageCode?: string | undefined;
35
37
  }, never>>;
36
38
  status: Schema.Literal<["NEW", "UPDATED"]>;
37
39
  source: Schema.Literal<["EXTERNAL"]>;
@@ -59,6 +61,7 @@ declare const _default: {
59
61
  readonly type: "CATEGORY";
60
62
  readonly value: string;
61
63
  }[] | undefined;
64
+ readonly languageCode?: string | undefined;
62
65
  };
63
66
  readonly status: "NEW" | "UPDATED";
64
67
  readonly source: "EXTERNAL";
@@ -85,6 +88,7 @@ declare const _default: {
85
88
  readonly type: "CATEGORY";
86
89
  readonly value: string;
87
90
  }[] | undefined;
91
+ readonly languageCode?: string | undefined;
88
92
  };
89
93
  readonly status: "NEW" | "UPDATED";
90
94
  readonly source: "EXTERNAL";
@@ -111,6 +115,7 @@ declare const _default: {
111
115
  readonly type: "CATEGORY";
112
116
  readonly value: string;
113
117
  }[] | undefined;
118
+ readonly languageCode?: string | undefined;
114
119
  };
115
120
  readonly status: "NEW" | "UPDATED";
116
121
  readonly source: "EXTERNAL";
@@ -136,6 +141,7 @@ declare const _default: {
136
141
  readonly type: "CATEGORY";
137
142
  readonly value: string;
138
143
  }[] | undefined;
144
+ readonly languageCode?: string | undefined;
139
145
  };
140
146
  readonly status: "NEW" | "UPDATED";
141
147
  readonly source: "EXTERNAL";
@@ -162,6 +168,7 @@ declare const _default: {
162
168
  readonly type: "CATEGORY";
163
169
  readonly value: string;
164
170
  }[] | undefined;
171
+ readonly languageCode?: string | undefined;
165
172
  };
166
173
  readonly status: "NEW" | "UPDATED";
167
174
  readonly source: "EXTERNAL";
@@ -187,6 +194,7 @@ declare const _default: {
187
194
  readonly type: "CATEGORY";
188
195
  readonly value: string;
189
196
  }[] | undefined;
197
+ readonly languageCode?: string | undefined;
190
198
  };
191
199
  readonly status: "NEW" | "UPDATED";
192
200
  readonly source: "EXTERNAL";
@@ -213,6 +221,7 @@ declare const _default: {
213
221
  readonly type: "CATEGORY";
214
222
  readonly value: string;
215
223
  }[] | undefined;
224
+ readonly languageCode?: string | undefined;
216
225
  };
217
226
  readonly status: "NEW" | "UPDATED";
218
227
  readonly source: "EXTERNAL";
@@ -239,6 +248,7 @@ declare const _default: {
239
248
  readonly type: "CATEGORY";
240
249
  readonly value: string;
241
250
  }[] | undefined;
251
+ readonly languageCode?: string | undefined;
242
252
  };
243
253
  readonly status: "NEW" | "UPDATED";
244
254
  readonly source: "EXTERNAL";
@@ -265,6 +275,7 @@ declare const _default: {
265
275
  readonly type: "CATEGORY";
266
276
  readonly value: string;
267
277
  }[] | undefined;
278
+ readonly languageCode?: string | undefined;
268
279
  };
269
280
  readonly status: "NEW" | "UPDATED";
270
281
  readonly source: "EXTERNAL";
@@ -291,6 +302,7 @@ declare const _default: {
291
302
  readonly type: "CATEGORY";
292
303
  readonly value: string;
293
304
  }[] | undefined;
305
+ readonly languageCode?: string | undefined;
294
306
  };
295
307
  readonly status: "NEW" | "UPDATED";
296
308
  readonly source: "EXTERNAL";
@@ -317,6 +329,7 @@ declare const _default: {
317
329
  readonly type: "CATEGORY";
318
330
  readonly value: string;
319
331
  }[] | undefined;
332
+ readonly languageCode?: string | undefined;
320
333
  };
321
334
  readonly status: "NEW" | "UPDATED";
322
335
  readonly source: "EXTERNAL";
@@ -343,6 +356,7 @@ declare const _default: {
343
356
  readonly type: "CATEGORY";
344
357
  readonly value: string;
345
358
  }[] | undefined;
359
+ readonly languageCode?: string | undefined;
346
360
  };
347
361
  readonly status: "NEW" | "UPDATED";
348
362
  readonly source: "EXTERNAL";
@@ -369,6 +383,7 @@ declare const _default: {
369
383
  readonly type: "CATEGORY";
370
384
  readonly value: string;
371
385
  }[] | undefined;
386
+ readonly languageCode?: string | undefined;
372
387
  };
373
388
  readonly status: "NEW" | "UPDATED";
374
389
  readonly source: "EXTERNAL";
@@ -395,6 +410,7 @@ declare const _default: {
395
410
  readonly type: "CATEGORY";
396
411
  readonly value: string;
397
412
  }[] | undefined;
413
+ readonly languageCode?: string | undefined;
398
414
  };
399
415
  readonly status: "NEW" | "UPDATED";
400
416
  readonly source: "EXTERNAL";
@@ -421,6 +437,7 @@ declare const _default: {
421
437
  readonly type: "CATEGORY";
422
438
  readonly value: string;
423
439
  }[] | undefined;
440
+ readonly languageCode?: string | undefined;
424
441
  }, {
425
442
  readonly title?: string | undefined;
426
443
  readonly teaser?: string | undefined;
@@ -433,6 +450,7 @@ declare const _default: {
433
450
  readonly type: "CATEGORY";
434
451
  readonly value: string;
435
452
  }[] | undefined;
453
+ readonly languageCode?: string | undefined;
436
454
  }, never>>;
437
455
  status: Schema.Literal<["NEW", "UPDATED"]>;
438
456
  source: Schema.Literal<["EXTERNAL"]>;
@@ -7,7 +7,7 @@ const makeHelpers_1 = require("../utils/makeHelpers");
7
7
  const ExternalArticleSchema = schema_1.Schema.extend(schema_1.Schema.Struct({
8
8
  id: schema_1.Schema.NonEmptyString,
9
9
  url: schema_1.Schema.NonEmptyString,
10
- site: schema_1.Schema.NonEmptyString, // legacy name, it is actually feed name
10
+ site: schema_1.Schema.NonEmptyString,
11
11
  content: schema_1.Schema.NonEmptyString,
12
12
  retrievedAt: Article_1.DateTimeSchema,
13
13
  }), schema_1.Schema.partial(schema_1.Schema.Struct({
@@ -19,6 +19,7 @@ const ExternalArticleSchema = schema_1.Schema.extend(schema_1.Schema.Struct({
19
19
  name: schema_1.Schema.NonEmptyString,
20
20
  })),
21
21
  tags: schema_1.Schema.Array(Article_1.CategoryTagSchema),
22
+ languageCode: schema_1.Schema.NonEmptyString,
22
23
  })));
23
24
  exports.ExternalArticleEventSchema = schema_1.Schema.Struct({
24
25
  kind: schema_1.Schema.Literal('EXTERNAL_ARTICLE_EVENT'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@productminds/article-events",
3
- "version": "5.1.1",
3
+ "version": "5.2.0-beta.1",
4
4
  "description": "Article events",
5
5
  "license": "ISC",
6
6
  "main": "lib/article-events.js",