@colabo-knalledge/i-core-services 1.0.0 → 1.1.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 +22 -0
- package/dist/cjs/index.js +24 -7
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/index.js +23 -7
- package/dist/esm/index.js.map +2 -2
- package/dist/types/lib/cf.service.isomorphic.d.ts +3 -3
- package/dist/types/lib/colabo-api-core.service.d.ts +6 -2
- package/dist/types/lib/kContainer-service.d.ts +1 -1
- package/dist/types/lib/kEdge-service-extended.d.ts +1 -1
- 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 +36 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { VOIsomorphic, ServerData } from "@colabo-knalledge/i-core";
|
|
3
|
-
import { UtilsNotificationService } from "@colabo-headless/i-core
|
|
3
|
+
import { UtilsNotificationService } from "@colabo-headless/i-core";
|
|
4
4
|
interface IConstructor<T> {
|
|
5
5
|
new (...args: unknown[]): T;
|
|
6
6
|
factory(obj: unknown): VOIsomorphic;
|
|
@@ -11,7 +11,7 @@ export declare const HTTP_OPTIONS_CONST_JSON: {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
export declare class CFServiceIsomorphic {
|
|
14
|
-
protected utilsNotificationService?: UtilsNotificationService;
|
|
14
|
+
protected utilsNotificationService?: UtilsNotificationService | undefined;
|
|
15
15
|
static serverAP: string;
|
|
16
16
|
/**
|
|
17
17
|
* processes array of VOs received from server to a local/fronted version
|
|
@@ -19,7 +19,7 @@ export declare class CFServiceIsomorphic {
|
|
|
19
19
|
* @param typeT
|
|
20
20
|
*/
|
|
21
21
|
static processVOs<T extends VOIsomorphic>(vofS: ServerData, typeT: IConstructor<T>): Array<T>;
|
|
22
|
-
constructor(utilsNotificationService?: UtilsNotificationService);
|
|
22
|
+
constructor(utilsNotificationService?: UtilsNotificationService | undefined);
|
|
23
23
|
/**
|
|
24
24
|
* extracts VO from the server response `ServerData` and sets it up
|
|
25
25
|
* @param sd - data received from server
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { AxiosStatic } from "axios";
|
|
2
2
|
export declare const removeSecurityPrefix: (data: string) => string;
|
|
3
|
+
interface IAxiosImplementation {
|
|
4
|
+
colaboApiInterceptorId: number;
|
|
5
|
+
colaboApiInterceptorNamespace: string;
|
|
6
|
+
}
|
|
3
7
|
export declare class ColaboApiCoreService {
|
|
4
|
-
static
|
|
5
|
-
static colaboApiInterceptorNamespace: string;
|
|
8
|
+
static interceptorsForAxios: Map<AxiosStatic, IAxiosImplementation>;
|
|
6
9
|
static initialize(namespace: string, specificAxios?: AxiosStatic): number;
|
|
7
10
|
static destroy(namespace: string, specificAxios?: AxiosStatic): void;
|
|
8
11
|
}
|
|
12
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementServiceIsomorphic } from "./element.service.isomorphic";
|
|
2
2
|
import { IKEdge, KNodeFrontend, IKContainer, IKContainerWContent } from "@colabo-knalledge/i-core";
|
|
3
|
-
import { UtilsNotificationService } from "@colabo-headless/i-core
|
|
3
|
+
import { UtilsNotificationService } from "@colabo-headless/i-core";
|
|
4
4
|
import { CFServiceIsomorphic } from "./cf.service.isomorphic";
|
|
5
5
|
import { HttpClient } from "@colabo-headless/i-core";
|
|
6
6
|
interface IConstructor<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from "@colabo-headless/i-core";
|
|
2
|
-
import { UtilsNotificationService } from "@colabo-headless/i-core
|
|
2
|
+
import { UtilsNotificationService } from "@colabo-headless/i-core";
|
|
3
3
|
import { KEdgeFrontend as KEdge } from "@colabo-knalledge/i-core";
|
|
4
4
|
import { KnalledgeEdgeService } from "./kEdge-service";
|
|
5
5
|
export declare class KnalledgeEdgeServiceExtended extends KnalledgeEdgeService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from "@colabo-headless/i-core";
|
|
2
|
-
import { UtilsNotificationService } from "@colabo-headless/i-core
|
|
2
|
+
import { UtilsNotificationService } from "@colabo-headless/i-core";
|
|
3
3
|
import { IApiRequest, IKEdge } from "@colabo-knalledge/i-core";
|
|
4
4
|
import { CFServiceIsomorphic } from "./cf.service.isomorphic";
|
|
5
5
|
export declare class KnalledgeEdgeService extends CFServiceIsomorphic {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from "@colabo-headless/i-core";
|
|
2
2
|
import { KNodeFrontend } from "@colabo-knalledge/i-core";
|
|
3
3
|
import { ColaboKnAllEdgeNodeService } from "./kNode-service";
|
|
4
|
-
import { UtilsNotificationService } from "@colabo-headless/i-core
|
|
4
|
+
import { UtilsNotificationService } from "@colabo-headless/i-core";
|
|
5
5
|
export declare class ColaboKnAllEdgeNodeServiceExtended extends ColaboKnAllEdgeNodeService {
|
|
6
6
|
private knalledgeMapQueue;
|
|
7
7
|
private knAllEdgeRealTimeService;
|
|
@@ -3,7 +3,7 @@ import { HttpClient } from "@colabo-headless/i-core";
|
|
|
3
3
|
import { KNodeFrontend, IApiRequest } from "@colabo-knalledge/i-core";
|
|
4
4
|
import { CFServiceIsomorphic } from "./cf.service.isomorphic";
|
|
5
5
|
import { IEntity, ElementServiceIsomorphic } from "./element.service.isomorphic";
|
|
6
|
-
import { UtilsNotificationService } from "@colabo-headless/i-core
|
|
6
|
+
import { UtilsNotificationService } from "@colabo-headless/i-core";
|
|
7
7
|
import { IKNode } from "@colabo-knalledge/i-core";
|
|
8
8
|
export declare class ColaboKnAllEdgeNodeService extends CFServiceIsomorphic implements ElementServiceIsomorphic {
|
|
9
9
|
protected http: HttpClient;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colabo-knalledge/i-core-services",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Core isomorphic code for the KnAllEdge module - services",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -13,12 +13,26 @@
|
|
|
13
13
|
"url": "https://github.com/Cha-OS/colabo"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "
|
|
16
|
+
"build": "yarn clean && yarn build:esbuild",
|
|
17
17
|
"build:rollup": "rollup -c",
|
|
18
18
|
"build:esbuild": "node esbuild.mjs",
|
|
19
19
|
"test": "mocha --watch --watch-extensions ts --reporter mocha-clearscreen-reporter -r ts-node/register -r tsconfig-paths/register tests/*.test.ts",
|
|
20
20
|
"test_single": "mocha --watch --watch-extensions ts --reporter mocha-clearscreen-reporter -r ts-node/register -r tsconfig-paths/register",
|
|
21
|
-
"test_single_no_clear": "mocha --watch --watch-extensions ts -r ts-node/register -r tsconfig-paths/register"
|
|
21
|
+
"test_single_no_clear": "mocha --watch --watch-extensions ts -r ts-node/register -r tsconfig-paths/register",
|
|
22
|
+
"clean": "rm -rf dist",
|
|
23
|
+
"echo_name": "echo 'Paths: '; echo \"LERNA_ROOT_PATH: $LERNA_ROOT_PATH\"; echo \"LERNA_EXEC_PATH: $LERNA_EXEC_PATH\"; echo \"LERNA_PACKAGE_NAME: $LERNA_PACKAGE_NAME\"",
|
|
24
|
+
"install_deps": "yarn install",
|
|
25
|
+
"update_ver_deps": "tsx scripts/update-dependencies-versions.ts --package $LERNA_PACKAGE_NAME",
|
|
26
|
+
"deploy": "yarn install",
|
|
27
|
+
"_build": "yarn clean && yarn build:esbuild",
|
|
28
|
+
"package_build": "yarn clean && yarn build:esbuild",
|
|
29
|
+
"package_check": "tsx $COLABO_FOLDER/scripts/check-package.ts --configPath=\"$COLABO_FOLDER/scripts/config\"",
|
|
30
|
+
"package_pre_publish": "tsx $COLABO_FOLDER/scripts/pre-publish/single.ts",
|
|
31
|
+
"package_semantic_release": "npx --no-install semantic-release --branches=\"main,master,next,beta,alpha,2024.11.10-NUI-Chat, 2025.01.25-workspace-publishing-global\" --no-ci --debug -e semantic-release-monorepo",
|
|
32
|
+
"package_post_publish": "tsx $COLABO_FOLDER/scripts/post-publish/single.ts",
|
|
33
|
+
"package_publish": "echo \"Publishing the package: ${npm_package_name}\"",
|
|
34
|
+
"package_update_dependencies_versions": "tsx $COLABO_FOLDER/scripts/update-dependencies-versions/single.ts",
|
|
35
|
+
"package_install": "yarn install"
|
|
22
36
|
},
|
|
23
37
|
"main": "dist/cjs/index.js",
|
|
24
38
|
"peerDependencies": {
|
|
@@ -34,32 +48,40 @@
|
|
|
34
48
|
"esm": "^3.2.25",
|
|
35
49
|
"mocha-clearscreen-reporter": "^1.0.1",
|
|
36
50
|
"rxjs": "7.8.1",
|
|
37
|
-
"@colabo-knalledge/i-core": "1.
|
|
38
|
-
"@colabo-headless/i-core": "npm:@colabo-headless/
|
|
39
|
-
"@colabo-utils/i-config": "1.
|
|
40
|
-
"@colabo-utils/i-notifications": "1.0
|
|
51
|
+
"@colabo-knalledge/i-core": "1.1.0",
|
|
52
|
+
"@colabo-headless/i-core": "npm:@colabo-headless/i-core-backend@1.1.0",
|
|
53
|
+
"@colabo-utils/i-config": "1.1.0",
|
|
54
|
+
"@colabo-utils/i-notifications": "1.1.0"
|
|
41
55
|
},
|
|
42
56
|
"module": "dist/esm/index.js",
|
|
43
57
|
"exports": {
|
|
44
58
|
".": {
|
|
45
|
-
"types": "./dist/index.d.ts",
|
|
59
|
+
"types": "./dist/types/index.d.ts",
|
|
46
60
|
"import": "./dist/esm/index.js",
|
|
47
61
|
"require": "./dist/cjs/index.js"
|
|
48
62
|
},
|
|
49
63
|
"./package.json": "./package.json"
|
|
50
64
|
},
|
|
51
|
-
"types": "dist/index.d.ts",
|
|
52
|
-
"typings": "dist/index.d.ts",
|
|
65
|
+
"types": "dist/types/index.d.ts",
|
|
66
|
+
"typings": "dist/types/index.d.ts",
|
|
53
67
|
"files": [
|
|
54
68
|
"dist",
|
|
55
69
|
"README.md",
|
|
56
70
|
"LICENSE",
|
|
57
71
|
"CHANGELOG.md"
|
|
58
72
|
],
|
|
73
|
+
"nx": {
|
|
74
|
+
"implicitDependencies": [
|
|
75
|
+
"@colabo-knalledge/i-core",
|
|
76
|
+
"@colabo-headless/i-core-backend",
|
|
77
|
+
"@colabo-utils/i-config",
|
|
78
|
+
"@colabo-utils/i-notifications"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
59
81
|
"liveDependencies": {
|
|
60
|
-
"@colabo-knalledge/i-core": "1.
|
|
61
|
-
"@colabo-headless/i-core": "npm:@colabo-headless/
|
|
62
|
-
"@colabo-utils/i-config": "1.
|
|
63
|
-
"@colabo-utils/i-notifications": "1.0
|
|
82
|
+
"@colabo-knalledge/i-core": "1.1.0",
|
|
83
|
+
"@colabo-headless/i-core": "npm:@colabo-headless/i-core-backend@1.1.0",
|
|
84
|
+
"@colabo-utils/i-config": "1.1.0",
|
|
85
|
+
"@colabo-utils/i-notifications": "1.1.0"
|
|
64
86
|
}
|
|
65
87
|
}
|