@colabo-knalledge/i-core-services 1.6.0 → 1.7.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.
@@ -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.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Core isomorphic code for the KnAllEdge module - services",
5
5
  "private": false,
6
6
  "type": "module",
@@ -32,7 +32,7 @@
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",