@jpmorganchase/mosaic-types 0.1.0-beta.57 → 0.1.0-beta.59
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.
- package/dist/Source.d.ts +19 -6
- package/package.json +2 -2
package/dist/Source.d.ts
CHANGED
|
@@ -2,10 +2,23 @@ import type { Observable } from 'rxjs';
|
|
|
2
2
|
import type { Serialiser } from './Serialiser.js';
|
|
3
3
|
import type { Page } from './Page.js';
|
|
4
4
|
import { SourceSchedule } from './index.js';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
/**
|
|
6
|
+
* Provided by Mosaic to a Source
|
|
7
|
+
*/
|
|
8
|
+
export declare type SourceConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* The allowed page extensions Mosaic has been configured to use
|
|
11
|
+
*/
|
|
12
|
+
pageExtensions: string[];
|
|
13
|
+
/**
|
|
14
|
+
* The page serialiser compatible with the pageExtensions
|
|
15
|
+
*/
|
|
16
|
+
serialiser: Serialiser;
|
|
17
|
+
/**
|
|
18
|
+
* Scheduling configuration for the source
|
|
19
|
+
*/
|
|
20
|
+
schedule: SourceSchedule;
|
|
21
|
+
};
|
|
22
|
+
export declare type Source<TOptions = Record<string, unknown>, TPage extends Page = Page> = {
|
|
23
|
+
create(options: TOptions, helpers: SourceConfig): Observable<TPage[]>;
|
|
11
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpmorganchase/mosaic-types",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.59",
|
|
4
4
|
"description": "Mosaic BitBucket source for core file system",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"lint": "eslint --ignore-pattern \"**/__tests__/**\""
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@jpmorganchase/mosaic-schemas": "^0.1.0-beta.
|
|
31
|
+
"@jpmorganchase/mosaic-schemas": "^0.1.0-beta.59",
|
|
32
32
|
"memfs": "^3.4.12",
|
|
33
33
|
"rxjs": "^7.5.5",
|
|
34
34
|
"zod": "^3.22.3"
|