@colabo-knalledge/i-core-services 1.6.0 → 1.8.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.
- package/CHANGELOG.md +32 -0
- package/dist/cjs/index.js +29 -11
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +29 -11
- package/dist/esm/index.js.map +2 -2
- package/dist/types/lib/kContainer-service.d.ts +3 -3
- package/dist/types/lib/kEdge-service.d.ts +1 -1
- package/dist/types/lib/kNode-service-extended.d.ts +1 -1
- package/dist/types/lib/kNode-service.d.ts +1 -1
- package/package.json +11 -14
|
@@ -38,7 +38,7 @@ export declare class ColaboKnAllEdgeContainerService extends CFServiceIsomorphic
|
|
|
38
38
|
* @description adds kNodes in a kContainer
|
|
39
39
|
* @returns edges created between the container and entities added to the container
|
|
40
40
|
*/
|
|
41
|
-
updateAddNodes(containerId: string, containedIds: string[], edgeDataContent?: Record<string, unknown
|
|
41
|
+
updateAddNodes(containerId: string, containedIds: string[], edgeDataContent?: Record<string, unknown>, mapId?: string): Promise<IKEdge[]>;
|
|
42
42
|
/**
|
|
43
43
|
* removes kNodes from a kContainer
|
|
44
44
|
*
|
|
@@ -52,8 +52,8 @@ export declare class ColaboKnAllEdgeContainerService extends CFServiceIsomorphic
|
|
|
52
52
|
* @param id The id of the kContainer which kNodes we want to retrieve
|
|
53
53
|
* @description retrieves kNodes in a kContainer
|
|
54
54
|
*/
|
|
55
|
-
getInContainer(id: string, fields?: string): Promise<KNodeFrontend[]>;
|
|
56
|
-
getVOs(type?: string, upperLayerType?: any, fields?: string): Promise<IKContainer[]>;
|
|
55
|
+
getInContainer(id: string, fields?: string, fetchFn?: (url: string) => Promise<unknown[]>): Promise<KNodeFrontend[]>;
|
|
56
|
+
getVOs(type?: string, upperLayerType?: any, fields?: string, fetchFn?: (url: string) => Promise<unknown[]>): Promise<IKContainer[]>;
|
|
57
57
|
/**
|
|
58
58
|
* Extracts upper-layer entity from kContainer and sets it up
|
|
59
59
|
* @param kContainer - kContainer holding the upper-layer entity
|
|
@@ -8,7 +8,7 @@ export declare class KnalledgeEdgeService extends CFServiceIsomorphic {
|
|
|
8
8
|
protected defaultAction: string;
|
|
9
9
|
constructor(http: HttpClient, //@Inject('ENV') private ENV
|
|
10
10
|
utilsNotificationService: UtilsNotificationService);
|
|
11
|
-
getVosWithColaboApi(request: IApiRequest): Promise<IKEdge[]>;
|
|
11
|
+
getVosWithColaboApi(request: IApiRequest, fetchFn?: (url: string) => Promise<unknown[]>): Promise<IKEdge[]>;
|
|
12
12
|
/** creates a new Element (VO) */
|
|
13
13
|
createWithPromise(kEdge: IKEdge, callback?: Function): Promise<IKEdge[]>;
|
|
14
14
|
/** creates a new Element (VO) */
|
|
@@ -9,7 +9,7 @@ export declare class ColaboKnAllEdgeNodeServiceExtended extends ColaboKnAllEdgeN
|
|
|
9
9
|
static UPDATE_NODE_NAME_FINAL: string;
|
|
10
10
|
static UPDATE_NODE_NAME: string;
|
|
11
11
|
constructor(http: HttpClient, utilsNotificationService: UtilsNotificationService);
|
|
12
|
-
queryByIds(ids: string[], fields?: string, callback?: Function): Promise<KNodeFrontend[]>;
|
|
12
|
+
queryByIds(ids: string[], fields?: string, callback?: Function, fetchFn?: (url: string) => Promise<unknown[]>): Promise<KNodeFrontend[]>;
|
|
13
13
|
/**
|
|
14
14
|
* BREAKING CHANGE: removed as the code is old, sending raw request to backend instead of `IApiRequest`. The right version is available in the `ColaboKnAllEdgeNodeService` class with the same name
|
|
15
15
|
* Creates the provided node on the server and returns its server-updated appearance
|
|
@@ -33,7 +33,7 @@ export declare class ColaboKnAllEdgeNodeService extends CFServiceIsomorphic impl
|
|
|
33
33
|
* @throws `ColaboError (REQUEST_BAD | DATA_MISSING | DATA_INCORRECT_FORMAT)`
|
|
34
34
|
*/
|
|
35
35
|
getById(id: string, fields?: string): Promise<KNodeFrontend>;
|
|
36
|
-
getVosWithColaboApi(request: IApiRequest): Promise<IKNode[]>;
|
|
36
|
+
getVosWithColaboApi(request: IApiRequest, fetchFn?: (url: string) => Promise<unknown[]>): Promise<IKNode[]>;
|
|
37
37
|
updateSingleWithColaboApi(request: IApiRequest): Promise<IKNode>;
|
|
38
38
|
updateWithColaboApi(request: IApiRequest): Promise<IKNode[]>;
|
|
39
39
|
createSingle(kNode: IKNode): Promise<IKNode>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colabo-knalledge/i-core-services",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Core isomorphic code for the KnAllEdge module - services",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -32,13 +32,10 @@
|
|
|
32
32
|
"package_post_publish": "tsx $COLABO_FOLDER/scripts/post-publish/single.ts",
|
|
33
33
|
"package_publish": "echo \"${npm_package_name}:package_publish ----- Publishing the package ----\"",
|
|
34
34
|
"package_update_dependencies_versions": "tsx $COLABO_FOLDER/scripts/update-dependencies-versions/single.ts",
|
|
35
|
-
"package_install": "yarn install",
|
|
35
|
+
"package_install": "yarn install --mutex file:/tmp/yarn-colabo.lock",
|
|
36
36
|
"package_rm_install_lock": "rm -f yarn.lock"
|
|
37
37
|
},
|
|
38
38
|
"main": "dist/cjs/index.js",
|
|
39
|
-
"peerDependencies": {
|
|
40
|
-
"rxjs": "^7.8.1"
|
|
41
|
-
},
|
|
42
39
|
"peerDependenciesLocal": {},
|
|
43
40
|
"devDependencies": {
|
|
44
41
|
"@types/chai-subset": "^1.3.3",
|
|
@@ -48,11 +45,11 @@
|
|
|
48
45
|
"axios-observable": "^2.1.0",
|
|
49
46
|
"esm": "^3.2.25",
|
|
50
47
|
"mocha-clearscreen-reporter": "^1.0.1",
|
|
51
|
-
"rxjs": "7.8.
|
|
52
|
-
"@colabo-knalledge/i-core": "1.4.
|
|
53
|
-
"@colabo-headless/i-core": "npm:@colabo-headless/f-core-frontend-vanilla@1.4.
|
|
54
|
-
"@colabo-utils/i-config": "1.6.
|
|
55
|
-
"@colabo-utils/i-notifications": "1.3.
|
|
48
|
+
"rxjs": "^7.8.2",
|
|
49
|
+
"@colabo-knalledge/i-core": "1.4.1",
|
|
50
|
+
"@colabo-headless/i-core": "npm:@colabo-headless/f-core-frontend-vanilla@1.4.6",
|
|
51
|
+
"@colabo-utils/i-config": "1.6.1",
|
|
52
|
+
"@colabo-utils/i-notifications": "1.3.4"
|
|
56
53
|
},
|
|
57
54
|
"module": "dist/esm/index.js",
|
|
58
55
|
"exports": {
|
|
@@ -80,10 +77,10 @@
|
|
|
80
77
|
]
|
|
81
78
|
},
|
|
82
79
|
"liveDependencies": {
|
|
83
|
-
"@colabo-knalledge/i-core": "1.4.
|
|
84
|
-
"@colabo-headless/i-core": "npm:@colabo-headless/f-core-frontend-vanilla@1.4.
|
|
85
|
-
"@colabo-utils/i-config": "1.6.
|
|
86
|
-
"@colabo-utils/i-notifications": "1.3.
|
|
80
|
+
"@colabo-knalledge/i-core": "1.4.1",
|
|
81
|
+
"@colabo-headless/i-core": "npm:@colabo-headless/f-core-frontend-vanilla@1.4.6",
|
|
82
|
+
"@colabo-utils/i-config": "1.6.1",
|
|
83
|
+
"@colabo-utils/i-notifications": "1.3.4"
|
|
87
84
|
},
|
|
88
85
|
"build": {
|
|
89
86
|
"format": [
|