@onecx/integration-interface 6.25.0 → 6.27.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/package.json +3 -3
- package/src/index.d.ts +2 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -1
- package/src/lib/gatherers/ai-context/v1/ai-context.gatherer.d.ts +22 -0
- package/src/lib/gatherers/ai-context/v1/ai-context.gatherer.js +28 -0
- package/src/lib/gatherers/ai-context/v1/ai-context.gatherer.js.map +1 -0
- package/src/lib/gatherers/ai-context/v1/ai-context.model.d.ts +11 -0
- package/src/lib/gatherers/ai-context/v1/ai-context.model.js +3 -0
- package/src/lib/gatherers/ai-context/v1/ai-context.model.js.map +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onecx/integration-interface",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.27.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"tslib": "^2.6.3",
|
|
11
11
|
"rxjs": "^7.8.1",
|
|
12
|
-
"@onecx/accelerator": "^6.
|
|
13
|
-
"@onecx/nx-migration-utils": "^6.
|
|
12
|
+
"@onecx/accelerator": "^6.27.0",
|
|
13
|
+
"@onecx/nx-migration-utils": "^6.27.0",
|
|
14
14
|
"@nx/devkit": "^20.3.0",
|
|
15
15
|
"@phenomnomnominal/tsquery": "^6",
|
|
16
16
|
"typescript": "^5.5.4"
|
package/src/index.d.ts
CHANGED
|
@@ -41,3 +41,5 @@ export * from './lib/services/icon.service';
|
|
|
41
41
|
export * from './lib/topics/notification/v1/notification.model';
|
|
42
42
|
export * from './lib/topics/notification/v1/notification.topic';
|
|
43
43
|
export * from './lib/services/notification.service';
|
|
44
|
+
export * from './lib/gatherers/ai-context/v1/ai-context.model';
|
|
45
|
+
export * from './lib/gatherers/ai-context/v1/ai-context.gatherer';
|
package/src/index.js
CHANGED
|
@@ -44,4 +44,6 @@ tslib_1.__exportStar(require("./lib/services/icon.service"), exports);
|
|
|
44
44
|
tslib_1.__exportStar(require("./lib/topics/notification/v1/notification.model"), exports);
|
|
45
45
|
tslib_1.__exportStar(require("./lib/topics/notification/v1/notification.topic"), exports);
|
|
46
46
|
tslib_1.__exportStar(require("./lib/services/notification.service"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./lib/gatherers/ai-context/v1/ai-context.model"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./lib/gatherers/ai-context/v1/ai-context.gatherer"), exports);
|
|
47
49
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/integration-interface/src/index.ts"],"names":[],"mappings":";;;AAAA,wFAA6D;AAC7D,qFAA0D;AAC1D,0FAA+D;AAC/D,uFAA4D;AAE5D,0FAA+D;AAE/D,8FAAmE;AAEnE,4FAAiE;AACjE,oFAAyD;AACzD,6FAAkE;AAElE,0FAA+D;AAC/D,0FAA+D;AAE/D,4FAAiE;AAEjE,oGAAyE;AACzE,0GAA+E;AAC/E,4FAAiE;AACjE,wFAA6D;AAC7D,2FAAgE;AAEhE,iGAAsE;AAEtE,gFAAqD;AACrD,gFAAqD;AAErD,mGAAwE;AACxE,yGAA8E;AAC9E,uFAA4D;AAC5D,oGAAyE;AAEzE,wFAA6D;AAE7D,gGAAqE;AACrE,gGAAqE;AAErE,8EAAmD;AACnD,kFAAuD;AACvD,sFAA2D;AAC3D,yFAA8D;AAE9D,kGAAuE;AACvE,kGAAuE;AAEvE,sFAA2D;AAE3D,+FAAoE;AACpE,+FAAoE;AACpE,kFAAuD;AAEvD,2EAAgD;AAChD,2EAAgD;AAChD,sEAA2C;AAE3C,0FAA+D;AAC/D,0FAA+D;AAC/D,8EAAmD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/integration-interface/src/index.ts"],"names":[],"mappings":";;;AAAA,wFAA6D;AAC7D,qFAA0D;AAC1D,0FAA+D;AAC/D,uFAA4D;AAE5D,0FAA+D;AAE/D,8FAAmE;AAEnE,4FAAiE;AACjE,oFAAyD;AACzD,6FAAkE;AAElE,0FAA+D;AAC/D,0FAA+D;AAE/D,4FAAiE;AAEjE,oGAAyE;AACzE,0GAA+E;AAC/E,4FAAiE;AACjE,wFAA6D;AAC7D,2FAAgE;AAEhE,iGAAsE;AAEtE,gFAAqD;AACrD,gFAAqD;AAErD,mGAAwE;AACxE,yGAA8E;AAC9E,uFAA4D;AAC5D,oGAAyE;AAEzE,wFAA6D;AAE7D,gGAAqE;AACrE,gGAAqE;AAErE,8EAAmD;AACnD,kFAAuD;AACvD,sFAA2D;AAC3D,yFAA8D;AAE9D,kGAAuE;AACvE,kGAAuE;AAEvE,sFAA2D;AAE3D,+FAAoE;AACpE,+FAAoE;AACpE,kFAAuD;AAEvD,2EAAgD;AAChD,2EAAgD;AAChD,sEAA2C;AAE3C,0FAA+D;AAC/D,0FAA+D;AAC/D,8EAAmD;AACnD,yFAA8D;AAC9D,4FAAiE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Gatherer } from "@onecx/accelerator";
|
|
2
|
+
import type { AiContextRequest, AiContextResponse } from "./ai-context.model";
|
|
3
|
+
/**
|
|
4
|
+
* This class can be used to provide a context for AI-specific features.
|
|
5
|
+
* It allows gathering information about all applications, products, and contexts in which the AI is being used.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
*
|
|
10
|
+
* // add a gatherer to the constructor of the page component that should provide AI context information
|
|
11
|
+
* // in ngOnDestroy, call the gatherer.destroy() method to clean up resources
|
|
12
|
+
*
|
|
13
|
+
* const aiContextGatherer = new AiContextGatherer(async (request) => {
|
|
14
|
+
* // decide if your app whats to contribute to the AI context or not
|
|
15
|
+
* // if you do not want to contribute, return null
|
|
16
|
+
* // if you want to contribute, return an AiContextResponse object
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class AiContextGatherer extends Gatherer<AiContextRequest, AiContextResponse | null> {
|
|
21
|
+
constructor(callback: (request: AiContextRequest) => Promise<AiContextResponse | null>);
|
|
22
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiContextGatherer = void 0;
|
|
4
|
+
const accelerator_1 = require("@onecx/accelerator");
|
|
5
|
+
/**
|
|
6
|
+
* This class can be used to provide a context for AI-specific features.
|
|
7
|
+
* It allows gathering information about all applications, products, and contexts in which the AI is being used.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
*
|
|
12
|
+
* // add a gatherer to the constructor of the page component that should provide AI context information
|
|
13
|
+
* // in ngOnDestroy, call the gatherer.destroy() method to clean up resources
|
|
14
|
+
*
|
|
15
|
+
* const aiContextGatherer = new AiContextGatherer(async (request) => {
|
|
16
|
+
* // decide if your app whats to contribute to the AI context or not
|
|
17
|
+
* // if you do not want to contribute, return null
|
|
18
|
+
* // if you want to contribute, return an AiContextResponse object
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
class AiContextGatherer extends accelerator_1.Gatherer {
|
|
23
|
+
constructor(callback) {
|
|
24
|
+
super("aiContext", 1, callback);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.AiContextGatherer = AiContextGatherer;
|
|
28
|
+
//# sourceMappingURL=ai-context.gatherer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-context.gatherer.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/gatherers/ai-context/v1/ai-context.gatherer.ts"],"names":[],"mappings":";;;AAAA,oDAA6C;AAI7C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAa,iBAAkB,SAAQ,sBAAoD;IAEvF,YAAY,QAA0E;QAClF,KAAK,CAAC,WAAW,EAAE,CAAC,EAAE,QAAQ,CAAC,CAAA;IACnC,CAAC;CACJ;AALD,8CAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ai-context.model.js","sourceRoot":"","sources":["../../../../../../../../libs/integration-interface/src/lib/gatherers/ai-context/v1/ai-context.model.ts"],"names":[],"mappings":""}
|