@productminds/article-events 0.0.10 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  import { Schema } from '@effect/schema';
2
- export declare const InternalArticleEvent: Schema.Struct<{
2
+ export declare const InternalArticleEventSchema: Schema.Struct<{
3
3
  kind: Schema.Literal<["INTERNAL_ARTICLE_EVENT"]>;
4
4
  payload: Schema.Struct<{
5
- article: Schema.Struct<{
5
+ article: Schema.extend<Schema.Struct<{
6
6
  id: typeof Schema.UUID;
7
7
  title: typeof Schema.NonEmpty;
8
8
  teaser: typeof Schema.NonEmpty;
@@ -12,22 +12,18 @@ export declare const InternalArticleEvent: Schema.Struct<{
12
12
  retrievedAt: typeof Schema.Date;
13
13
  url: typeof Schema.NonEmpty;
14
14
  site: typeof Schema.NonEmpty;
15
+ authors: Schema.Array$<Schema.Struct<{
16
+ name: typeof Schema.NonEmpty;
17
+ }>>;
18
+ }>, Schema.Struct<{
15
19
  tags: Schema.Array$<Schema.Union<[Schema.Struct<{
16
20
  type: Schema.Literal<["CATEGORY"]>;
17
21
  value: typeof Schema.NonEmpty;
18
22
  }>, Schema.Struct<{
19
23
  type: Schema.Literal<["EXTERNAL_ARTICLE_REFERENCE"]>;
20
24
  id: typeof Schema.UUID;
21
- }>, Schema.Struct<{
22
- type: Schema.Literal<["ENTITY"]>;
23
- entityType: Schema.Literal<["PERSON"]>;
24
- value: typeof Schema.NonEmpty;
25
25
  }>]>>;
26
- authors: Schema.Array$<Schema.Struct<{
27
- name: typeof Schema.NonEmpty;
28
- }>>;
29
- meta: Schema.optional<typeof Schema.Unknown>;
30
- }>;
26
+ }>>;
31
27
  status: Schema.Literal<["NEW", "UPDATED"]>;
32
28
  source: Schema.Literal<["INTERNAL"]>;
33
29
  }>;
@@ -46,21 +42,17 @@ declare const _default: {
46
42
  readonly retrievedAt: Date;
47
43
  readonly url: string;
48
44
  readonly site: string;
45
+ readonly authors: readonly {
46
+ readonly name: string;
47
+ }[];
48
+ } & {
49
49
  readonly tags: readonly ({
50
50
  readonly type: "CATEGORY";
51
51
  readonly value: string;
52
52
  } | {
53
53
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
54
54
  readonly id: string;
55
- } | {
56
- readonly type: "ENTITY";
57
- readonly value: string;
58
- readonly entityType: "PERSON";
59
55
  })[];
60
- readonly authors: readonly {
61
- readonly name: string;
62
- }[];
63
- readonly meta?: unknown;
64
56
  };
65
57
  readonly status: "NEW" | "UPDATED";
66
58
  readonly source: "INTERNAL";
@@ -79,21 +71,17 @@ declare const _default: {
79
71
  readonly retrievedAt: Date;
80
72
  readonly url: string;
81
73
  readonly site: string;
74
+ readonly authors: readonly {
75
+ readonly name: string;
76
+ }[];
77
+ } & {
82
78
  readonly tags: readonly ({
83
79
  readonly type: "CATEGORY";
84
80
  readonly value: string;
85
81
  } | {
86
82
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
87
83
  readonly id: string;
88
- } | {
89
- readonly type: "ENTITY";
90
- readonly value: string;
91
- readonly entityType: "PERSON";
92
84
  })[];
93
- readonly authors: readonly {
94
- readonly name: string;
95
- }[];
96
- readonly meta?: unknown;
97
85
  };
98
86
  readonly status: "NEW" | "UPDATED";
99
87
  readonly source: "INTERNAL";
@@ -112,21 +100,17 @@ declare const _default: {
112
100
  readonly retrievedAt: Date;
113
101
  readonly url: string;
114
102
  readonly site: string;
103
+ readonly authors: readonly {
104
+ readonly name: string;
105
+ }[];
106
+ } & {
115
107
  readonly tags: readonly ({
116
108
  readonly type: "CATEGORY";
117
109
  readonly value: string;
118
110
  } | {
119
111
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
120
112
  readonly id: string;
121
- } | {
122
- readonly type: "ENTITY";
123
- readonly value: string;
124
- readonly entityType: "PERSON";
125
113
  })[];
126
- readonly authors: readonly {
127
- readonly name: string;
128
- }[];
129
- readonly meta?: unknown;
130
114
  };
131
115
  readonly status: "NEW" | "UPDATED";
132
116
  readonly source: "INTERNAL";
@@ -144,21 +128,17 @@ declare const _default: {
144
128
  readonly retrievedAt: string;
145
129
  readonly url: string;
146
130
  readonly site: string;
131
+ readonly authors: readonly {
132
+ readonly name: string;
133
+ }[];
134
+ } & {
147
135
  readonly tags: readonly ({
148
136
  readonly type: "CATEGORY";
149
137
  readonly value: string;
150
138
  } | {
151
139
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
152
140
  readonly id: string;
153
- } | {
154
- readonly type: "ENTITY";
155
- readonly value: string;
156
- readonly entityType: "PERSON";
157
141
  })[];
158
- readonly authors: readonly {
159
- readonly name: string;
160
- }[];
161
- readonly meta?: unknown;
162
142
  };
163
143
  readonly status: "NEW" | "UPDATED";
164
144
  readonly source: "INTERNAL";
@@ -177,21 +157,17 @@ declare const _default: {
177
157
  readonly retrievedAt: Date;
178
158
  readonly url: string;
179
159
  readonly site: string;
160
+ readonly authors: readonly {
161
+ readonly name: string;
162
+ }[];
163
+ } & {
180
164
  readonly tags: readonly ({
181
165
  readonly type: "CATEGORY";
182
166
  readonly value: string;
183
167
  } | {
184
168
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
185
169
  readonly id: string;
186
- } | {
187
- readonly type: "ENTITY";
188
- readonly value: string;
189
- readonly entityType: "PERSON";
190
170
  })[];
191
- readonly authors: readonly {
192
- readonly name: string;
193
- }[];
194
- readonly meta?: unknown;
195
171
  };
196
172
  readonly status: "NEW" | "UPDATED";
197
173
  readonly source: "INTERNAL";
@@ -209,21 +185,17 @@ declare const _default: {
209
185
  readonly retrievedAt: string;
210
186
  readonly url: string;
211
187
  readonly site: string;
188
+ readonly authors: readonly {
189
+ readonly name: string;
190
+ }[];
191
+ } & {
212
192
  readonly tags: readonly ({
213
193
  readonly type: "CATEGORY";
214
194
  readonly value: string;
215
195
  } | {
216
196
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
217
197
  readonly id: string;
218
- } | {
219
- readonly type: "ENTITY";
220
- readonly value: string;
221
- readonly entityType: "PERSON";
222
198
  })[];
223
- readonly authors: readonly {
224
- readonly name: string;
225
- }[];
226
- readonly meta?: unknown;
227
199
  };
228
200
  readonly status: "NEW" | "UPDATED";
229
201
  readonly source: "INTERNAL";
@@ -242,21 +214,17 @@ declare const _default: {
242
214
  readonly retrievedAt: Date;
243
215
  readonly url: string;
244
216
  readonly site: string;
217
+ readonly authors: readonly {
218
+ readonly name: string;
219
+ }[];
220
+ } & {
245
221
  readonly tags: readonly ({
246
222
  readonly type: "CATEGORY";
247
223
  readonly value: string;
248
224
  } | {
249
225
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
250
226
  readonly id: string;
251
- } | {
252
- readonly type: "ENTITY";
253
- readonly value: string;
254
- readonly entityType: "PERSON";
255
227
  })[];
256
- readonly authors: readonly {
257
- readonly name: string;
258
- }[];
259
- readonly meta?: unknown;
260
228
  };
261
229
  readonly status: "NEW" | "UPDATED";
262
230
  readonly source: "INTERNAL";
@@ -275,21 +243,17 @@ declare const _default: {
275
243
  readonly retrievedAt: Date;
276
244
  readonly url: string;
277
245
  readonly site: string;
246
+ readonly authors: readonly {
247
+ readonly name: string;
248
+ }[];
249
+ } & {
278
250
  readonly tags: readonly ({
279
251
  readonly type: "CATEGORY";
280
252
  readonly value: string;
281
253
  } | {
282
254
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
283
255
  readonly id: string;
284
- } | {
285
- readonly type: "ENTITY";
286
- readonly value: string;
287
- readonly entityType: "PERSON";
288
256
  })[];
289
- readonly authors: readonly {
290
- readonly name: string;
291
- }[];
292
- readonly meta?: unknown;
293
257
  };
294
258
  readonly status: "NEW" | "UPDATED";
295
259
  readonly source: "INTERNAL";
@@ -308,21 +272,17 @@ declare const _default: {
308
272
  readonly retrievedAt: Date;
309
273
  readonly url: string;
310
274
  readonly site: string;
275
+ readonly authors: readonly {
276
+ readonly name: string;
277
+ }[];
278
+ } & {
311
279
  readonly tags: readonly ({
312
280
  readonly type: "CATEGORY";
313
281
  readonly value: string;
314
282
  } | {
315
283
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
316
284
  readonly id: string;
317
- } | {
318
- readonly type: "ENTITY";
319
- readonly value: string;
320
- readonly entityType: "PERSON";
321
285
  })[];
322
- readonly authors: readonly {
323
- readonly name: string;
324
- }[];
325
- readonly meta?: unknown;
326
286
  };
327
287
  readonly status: "NEW" | "UPDATED";
328
288
  readonly source: "INTERNAL";
@@ -341,21 +301,17 @@ declare const _default: {
341
301
  readonly retrievedAt: Date;
342
302
  readonly url: string;
343
303
  readonly site: string;
304
+ readonly authors: readonly {
305
+ readonly name: string;
306
+ }[];
307
+ } & {
344
308
  readonly tags: readonly ({
345
309
  readonly type: "CATEGORY";
346
310
  readonly value: string;
347
311
  } | {
348
312
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
349
313
  readonly id: string;
350
- } | {
351
- readonly type: "ENTITY";
352
- readonly value: string;
353
- readonly entityType: "PERSON";
354
314
  })[];
355
- readonly authors: readonly {
356
- readonly name: string;
357
- }[];
358
- readonly meta?: unknown;
359
315
  };
360
316
  readonly status: "NEW" | "UPDATED";
361
317
  readonly source: "INTERNAL";
@@ -374,21 +330,17 @@ declare const _default: {
374
330
  readonly retrievedAt: Date;
375
331
  readonly url: string;
376
332
  readonly site: string;
333
+ readonly authors: readonly {
334
+ readonly name: string;
335
+ }[];
336
+ } & {
377
337
  readonly tags: readonly ({
378
338
  readonly type: "CATEGORY";
379
339
  readonly value: string;
380
340
  } | {
381
341
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
382
342
  readonly id: string;
383
- } | {
384
- readonly type: "ENTITY";
385
- readonly value: string;
386
- readonly entityType: "PERSON";
387
343
  })[];
388
- readonly authors: readonly {
389
- readonly name: string;
390
- }[];
391
- readonly meta?: unknown;
392
344
  };
393
345
  readonly status: "NEW" | "UPDATED";
394
346
  readonly source: "INTERNAL";
@@ -407,21 +359,17 @@ declare const _default: {
407
359
  readonly retrievedAt: Date;
408
360
  readonly url: string;
409
361
  readonly site: string;
362
+ readonly authors: readonly {
363
+ readonly name: string;
364
+ }[];
365
+ } & {
410
366
  readonly tags: readonly ({
411
367
  readonly type: "CATEGORY";
412
368
  readonly value: string;
413
369
  } | {
414
370
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
415
371
  readonly id: string;
416
- } | {
417
- readonly type: "ENTITY";
418
- readonly value: string;
419
- readonly entityType: "PERSON";
420
372
  })[];
421
- readonly authors: readonly {
422
- readonly name: string;
423
- }[];
424
- readonly meta?: unknown;
425
373
  };
426
374
  readonly status: "NEW" | "UPDATED";
427
375
  readonly source: "INTERNAL";
@@ -440,21 +388,17 @@ declare const _default: {
440
388
  readonly retrievedAt: Date;
441
389
  readonly url: string;
442
390
  readonly site: string;
391
+ readonly authors: readonly {
392
+ readonly name: string;
393
+ }[];
394
+ } & {
443
395
  readonly tags: readonly ({
444
396
  readonly type: "CATEGORY";
445
397
  readonly value: string;
446
398
  } | {
447
399
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
448
400
  readonly id: string;
449
- } | {
450
- readonly type: "ENTITY";
451
- readonly value: string;
452
- readonly entityType: "PERSON";
453
401
  })[];
454
- readonly authors: readonly {
455
- readonly name: string;
456
- }[];
457
- readonly meta?: unknown;
458
402
  };
459
403
  readonly status: "NEW" | "UPDATED";
460
404
  readonly source: "INTERNAL";
@@ -473,21 +417,17 @@ declare const _default: {
473
417
  readonly retrievedAt: Date;
474
418
  readonly url: string;
475
419
  readonly site: string;
420
+ readonly authors: readonly {
421
+ readonly name: string;
422
+ }[];
423
+ } & {
476
424
  readonly tags: readonly ({
477
425
  readonly type: "CATEGORY";
478
426
  readonly value: string;
479
427
  } | {
480
428
  readonly type: "EXTERNAL_ARTICLE_REFERENCE";
481
429
  readonly id: string;
482
- } | {
483
- readonly type: "ENTITY";
484
- readonly value: string;
485
- readonly entityType: "PERSON";
486
430
  })[];
487
- readonly authors: readonly {
488
- readonly name: string;
489
- }[];
490
- readonly meta?: unknown;
491
431
  };
492
432
  readonly status: "NEW" | "UPDATED";
493
433
  readonly source: "INTERNAL";
@@ -496,7 +436,7 @@ declare const _default: {
496
436
  Schema: Schema.Struct<{
497
437
  kind: Schema.Literal<["INTERNAL_ARTICLE_EVENT"]>;
498
438
  payload: Schema.Struct<{
499
- article: Schema.Struct<{
439
+ article: Schema.extend<Schema.Struct<{
500
440
  id: typeof Schema.UUID;
501
441
  title: typeof Schema.NonEmpty;
502
442
  teaser: typeof Schema.NonEmpty;
@@ -506,22 +446,18 @@ declare const _default: {
506
446
  retrievedAt: typeof Schema.Date;
507
447
  url: typeof Schema.NonEmpty;
508
448
  site: typeof Schema.NonEmpty;
449
+ authors: Schema.Array$<Schema.Struct<{
450
+ name: typeof Schema.NonEmpty;
451
+ }>>;
452
+ }>, Schema.Struct<{
509
453
  tags: Schema.Array$<Schema.Union<[Schema.Struct<{
510
454
  type: Schema.Literal<["CATEGORY"]>;
511
455
  value: typeof Schema.NonEmpty;
512
456
  }>, Schema.Struct<{
513
457
  type: Schema.Literal<["EXTERNAL_ARTICLE_REFERENCE"]>;
514
458
  id: typeof Schema.UUID;
515
- }>, Schema.Struct<{
516
- type: Schema.Literal<["ENTITY"]>;
517
- entityType: Schema.Literal<["PERSON"]>;
518
- value: typeof Schema.NonEmpty;
519
459
  }>]>>;
520
- authors: Schema.Array$<Schema.Struct<{
521
- name: typeof Schema.NonEmpty;
522
- }>>;
523
- meta: Schema.optional<typeof Schema.Unknown>;
524
- }>;
460
+ }>>;
525
461
  status: Schema.Literal<["NEW", "UPDATED"]>;
526
462
  source: Schema.Literal<["INTERNAL"]>;
527
463
  }>;
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InternalArticleEvent = void 0;
3
+ exports.InternalArticleEventSchema = void 0;
4
4
  const schema_1 = require("@effect/schema");
5
5
  const Article_1 = require("../types/Article");
6
- exports.InternalArticleEvent = schema_1.Schema.Struct({
6
+ const makeHelpers_1 = require("../utils/makeHelpers");
7
+ const InternalArticleSchema = schema_1.Schema.extend(Article_1.BaseArticleSchema, schema_1.Schema.Struct({
8
+ tags: schema_1.Schema.Array(schema_1.Schema.Union(Article_1.CategoryTagSchema, Article_1.ExternalArticleReferenceTagSchema)),
9
+ }));
10
+ exports.InternalArticleEventSchema = schema_1.Schema.Struct({
7
11
  kind: schema_1.Schema.Literal('INTERNAL_ARTICLE_EVENT'),
8
12
  payload: schema_1.Schema.Struct({
9
- article: Article_1.ArticleSchema,
13
+ article: InternalArticleSchema,
10
14
  status: schema_1.Schema.Literal('NEW', 'UPDATED'),
11
- source: schema_1.Schema.Literal('INTERNAL')
12
- })
15
+ source: schema_1.Schema.Literal('INTERNAL'),
16
+ }),
13
17
  });
14
- const makeHelpers_1 = require("../utils/makeHelpers");
15
- const helpers = (0, makeHelpers_1.makeHelpers)(exports.InternalArticleEvent);
16
- exports.default = Object.assign({ Schema: exports.InternalArticleEvent }, helpers);
18
+ const helpers = (0, makeHelpers_1.makeHelpers)(exports.InternalArticleEventSchema);
19
+ exports.default = Object.assign({ Schema: exports.InternalArticleEventSchema }, helpers);
@@ -0,0 +1,27 @@
1
+ import { Schema } from '@effect/schema';
2
+ export declare const DateTimeSchema: typeof Schema.Date;
3
+ export declare const CategoryTagSchema: Schema.Struct<{
4
+ type: Schema.Literal<["CATEGORY"]>;
5
+ value: typeof Schema.NonEmpty;
6
+ }>;
7
+ export declare const ExternalArticleReferenceTagSchema: Schema.Struct<{
8
+ type: Schema.Literal<["EXTERNAL_ARTICLE_REFERENCE"]>;
9
+ id: typeof Schema.UUID;
10
+ }>;
11
+ export declare const AuthorSchema: Schema.Struct<{
12
+ name: typeof Schema.NonEmpty;
13
+ }>;
14
+ export declare const BaseArticleSchema: Schema.Struct<{
15
+ id: typeof Schema.UUID;
16
+ title: typeof Schema.NonEmpty;
17
+ teaser: typeof Schema.NonEmpty;
18
+ content: typeof Schema.NonEmpty;
19
+ publishedAt: typeof Schema.Date;
20
+ updatedAt: typeof Schema.Date;
21
+ retrievedAt: typeof Schema.Date;
22
+ url: typeof Schema.NonEmpty;
23
+ site: typeof Schema.NonEmpty;
24
+ authors: Schema.Array$<Schema.Struct<{
25
+ name: typeof Schema.NonEmpty;
26
+ }>>;
27
+ }>;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseArticleSchema = exports.AuthorSchema = exports.ExternalArticleReferenceTagSchema = exports.CategoryTagSchema = exports.DateTimeSchema = void 0;
4
+ const schema_1 = require("@effect/schema");
5
+ exports.DateTimeSchema = schema_1.Schema.Date.annotations({
6
+ jsonSchema: { format: 'date-time' },
7
+ });
8
+ exports.CategoryTagSchema = schema_1.Schema.Struct({
9
+ type: schema_1.Schema.Literal('CATEGORY'),
10
+ value: schema_1.Schema.NonEmpty,
11
+ });
12
+ exports.ExternalArticleReferenceTagSchema = schema_1.Schema.Struct({
13
+ type: schema_1.Schema.Literal('EXTERNAL_ARTICLE_REFERENCE'),
14
+ id: schema_1.Schema.UUID,
15
+ });
16
+ exports.AuthorSchema = schema_1.Schema.Struct({
17
+ name: schema_1.Schema.NonEmpty,
18
+ });
19
+ exports.BaseArticleSchema = schema_1.Schema.Struct({
20
+ id: schema_1.Schema.UUID,
21
+ title: schema_1.Schema.NonEmpty,
22
+ teaser: schema_1.Schema.NonEmpty,
23
+ content: schema_1.Schema.NonEmpty,
24
+ publishedAt: exports.DateTimeSchema,
25
+ updatedAt: exports.DateTimeSchema,
26
+ retrievedAt: exports.DateTimeSchema,
27
+ url: schema_1.Schema.NonEmpty,
28
+ site: schema_1.Schema.NonEmpty,
29
+ authors: schema_1.Schema.Array(exports.AuthorSchema),
30
+ });
@@ -39,7 +39,7 @@ const makeHelpers = (schema) => {
39
39
  toString,
40
40
  toBuffer,
41
41
  toStringExn,
42
- toBufferExn
42
+ toBufferExn,
43
43
  };
44
44
  };
45
45
  exports.makeHelpers = makeHelpers;
package/package.json CHANGED
@@ -1,23 +1,20 @@
1
1
  {
2
2
  "name": "@productminds/article-events",
3
- "version": "0.0.10",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
3
+ "version": "1.0.0",
4
+ "description": "Article events",
5
+ "license": "ISC",
6
+ "main": "lib/article-events.js",
7
+ "typings": "lib/article-events.d.ts",
8
+ "directories": {
9
+ "lib": "lib"
10
+ },
11
+ "files": [
12
+ "lib"
13
+ ],
7
14
  "scripts": {
15
+ "cmd:generate_json_schema": "tsc && node ./lib/cmd/write-json-schema.js",
8
16
  "build": "tsc",
9
17
  "build:watch": "tsc --watch",
10
- "build_and_publish": "npm run build && npm publish",
11
- "test": "echo \"Error: no test specified\" && exit 1"
12
- },
13
- "keywords": [],
14
- "author": "mbirkegaard",
15
- "license": "ISC",
16
- "devDependencies": {
17
- "@types/node": "^20.14.11",
18
- "typescript": "^5.5.3"
19
- },
20
- "dependencies": {
21
- "@effect/schema": "^0.68.26"
18
+ "build_and_publish": "npm run build && npm publish"
22
19
  }
23
20
  }
package/dist/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * as ArticleEvent from './src/events/ArticleEvent';
2
- export * as ExternalArticleEvent from './src/events/ExternalArticleEvent';
3
- export * as InternalArticleEvent from './src/events/InternalArticleEvent';
package/dist/index.js DELETED
@@ -1,29 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.InternalArticleEvent = exports.ExternalArticleEvent = exports.ArticleEvent = void 0;
27
- exports.ArticleEvent = __importStar(require("./src/events/ArticleEvent"));
28
- exports.ExternalArticleEvent = __importStar(require("./src/events/ExternalArticleEvent"));
29
- exports.InternalArticleEvent = __importStar(require("./src/events/InternalArticleEvent"));