@semantha/product-sdk 11.4.0 → 11.6.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/dist/document-chat/api/index.d.mts +138 -0
- package/dist/document-chat/api/index.d.ts +138 -0
- package/dist/document-chat/api/index.js +2 -0
- package/dist/document-chat/api/index.js.map +1 -0
- package/dist/document-chat/api/index.mjs +2 -0
- package/dist/document-chat/api/index.mjs.map +1 -0
- package/dist/document-chat/model/index.d.mts +40 -0
- package/dist/document-chat/model/index.d.ts +40 -0
- package/dist/document-chat/model/index.js +2 -0
- package/dist/document-chat/model/index.js.map +1 -0
- package/dist/document-chat/model/index.mjs +2 -0
- package/dist/document-chat/model/index.mjs.map +1 -0
- package/dist/file-box/index.js +1 -1
- package/dist/file-box/index.mjs +1 -1
- package/dist/requirements/model/index.d.mts +18 -2
- package/dist/requirements/model/index.d.ts +18 -2
- package/dist/requirements/model/index.js +1 -1
- package/dist/requirements/model/index.js.map +1 -1
- package/dist/requirements/model/index.mjs +1 -1
- package/dist/requirements/model/index.mjs.map +1 -1
- package/package.json +15 -12
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { DocumentChatRequest, DocumentChatResponse } from '../model/index.mjs';
|
|
2
|
+
import { RestClient } from '../../rest/index.mjs';
|
|
3
|
+
import 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @author semantha
|
|
7
|
+
*
|
|
8
|
+
* Class to access resource "/api/documentchat/domains/{domainname}/documents/{sourcedocid}"
|
|
9
|
+
* This is a generated file do not change manually!
|
|
10
|
+
*/
|
|
11
|
+
declare class DocumentEndpoint {
|
|
12
|
+
private readonly restClient;
|
|
13
|
+
private readonly parentEndpoint;
|
|
14
|
+
private readonly sourcedocid;
|
|
15
|
+
private readonly ENDPOINT;
|
|
16
|
+
constructor(restClient: RestClient, parentEndpoint: string, sourcedocid: string);
|
|
17
|
+
/**
|
|
18
|
+
* @param body DocumentChatRequest? -
|
|
19
|
+
*/
|
|
20
|
+
post(body?: DocumentChatRequest): Promise<DocumentChatResponse>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @author semantha
|
|
25
|
+
*
|
|
26
|
+
* Class to access resource "/api/documentchat/domains/{domainname}/documents"
|
|
27
|
+
* This is a generated file do not change manually!
|
|
28
|
+
*/
|
|
29
|
+
declare class DocumentsEndpoint {
|
|
30
|
+
private readonly restClient;
|
|
31
|
+
private readonly parentEndpoint;
|
|
32
|
+
private readonly ENDPOINT;
|
|
33
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @author semantha
|
|
38
|
+
*
|
|
39
|
+
* Class to access resource "/api/documentchat/domains/{domainname}"
|
|
40
|
+
* This is a generated file do not change manually!
|
|
41
|
+
*/
|
|
42
|
+
declare class DomainEndpoint {
|
|
43
|
+
private readonly restClient;
|
|
44
|
+
private readonly parentEndpoint;
|
|
45
|
+
private readonly domainname;
|
|
46
|
+
private readonly ENDPOINT;
|
|
47
|
+
constructor(restClient: RestClient, parentEndpoint: string, domainname: string);
|
|
48
|
+
documents(): DocumentsEndpoint;
|
|
49
|
+
documents(sourcedocid: string): DocumentEndpoint;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @author semantha
|
|
54
|
+
*
|
|
55
|
+
* Class to access resource "/api/documentchat/domains"
|
|
56
|
+
* This is a generated file do not change manually!
|
|
57
|
+
*/
|
|
58
|
+
declare class DomainsEndpoint {
|
|
59
|
+
private readonly restClient;
|
|
60
|
+
private readonly parentEndpoint;
|
|
61
|
+
private readonly ENDPOINT;
|
|
62
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @author semantha
|
|
67
|
+
*
|
|
68
|
+
* Class to access resource "/api/documentchat"
|
|
69
|
+
* This is a generated file do not change manually!
|
|
70
|
+
*/
|
|
71
|
+
declare class DocumentchatEndpoint {
|
|
72
|
+
private readonly restClient;
|
|
73
|
+
private readonly parentEndpoint;
|
|
74
|
+
private readonly ENDPOINT;
|
|
75
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
76
|
+
domains(): DomainsEndpoint;
|
|
77
|
+
domains(domainname: string): DomainEndpoint;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Entry point to the DocumentChat API.
|
|
82
|
+
*
|
|
83
|
+
* @author semantha
|
|
84
|
+
* Calls the /documentchat, endpoints.
|
|
85
|
+
*
|
|
86
|
+
* Note:
|
|
87
|
+
* The constructor is not meant to be invoked directly
|
|
88
|
+
* use `loginXXX()` with your credentials instead.
|
|
89
|
+
*
|
|
90
|
+
* this is a generated class do not change manually!
|
|
91
|
+
*/
|
|
92
|
+
declare class DocumentChatAPI {
|
|
93
|
+
private readonly restClient;
|
|
94
|
+
private readonly parentEndpoint;
|
|
95
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
96
|
+
/**
|
|
97
|
+
* Access to the DocumentChat API
|
|
98
|
+
*
|
|
99
|
+
* @param serverUrl: string - URL to the DocumentChat server.
|
|
100
|
+
* @param apiKey: string - A valid bearer token for accessing the given url.
|
|
101
|
+
*
|
|
102
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
103
|
+
*/
|
|
104
|
+
static loginWithApiKey(serverUrl: string, apiKey: string): DocumentChatAPI;
|
|
105
|
+
/**
|
|
106
|
+
* Access to the DocumentChat API, when there is a auth proxy in place to handle the addition of the Authorization header
|
|
107
|
+
*
|
|
108
|
+
* @param serverUrl: string - URL to the DocumentChat server.
|
|
109
|
+
*
|
|
110
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
111
|
+
*/
|
|
112
|
+
static loginWithAuthProxy(serverUrl: string): DocumentChatAPI;
|
|
113
|
+
/**
|
|
114
|
+
* Access to the DocumentChat API
|
|
115
|
+
*
|
|
116
|
+
* @param serverUrl: string - URL to the DocumentChat server.
|
|
117
|
+
* @param clientId: string - OAuth2 client id.
|
|
118
|
+
* @param clientSecret: string - OAuth2 client secret.
|
|
119
|
+
* @param tokenUrl: string OAuth2 url to get a valid access token
|
|
120
|
+
*
|
|
121
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
122
|
+
*/
|
|
123
|
+
static loginWithCredentials(serverUrl: string, clientId: string, clientSecret: string, tokenUrl: string): DocumentChatAPI;
|
|
124
|
+
/**
|
|
125
|
+
* Access to the DocumentChat API
|
|
126
|
+
*
|
|
127
|
+
* @param credentialsFilePath: string - Path to a properties file providing client credentials.
|
|
128
|
+
*
|
|
129
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
130
|
+
*/
|
|
131
|
+
static loginWithCredentialsFile(credentialsFilePath: string): DocumentChatAPI;
|
|
132
|
+
private static parseServerUrl;
|
|
133
|
+
private static getValueOfInPropertiesFile;
|
|
134
|
+
endpoint(): string;
|
|
135
|
+
documentchat(): DocumentchatEndpoint;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export { DocumentChatAPI, DocumentEndpoint, DocumentchatEndpoint, DocumentsEndpoint, DomainEndpoint, DomainsEndpoint };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { DocumentChatRequest, DocumentChatResponse } from '../model/index.js';
|
|
2
|
+
import { RestClient } from '../../rest/index.js';
|
|
3
|
+
import 'axios';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @author semantha
|
|
7
|
+
*
|
|
8
|
+
* Class to access resource "/api/documentchat/domains/{domainname}/documents/{sourcedocid}"
|
|
9
|
+
* This is a generated file do not change manually!
|
|
10
|
+
*/
|
|
11
|
+
declare class DocumentEndpoint {
|
|
12
|
+
private readonly restClient;
|
|
13
|
+
private readonly parentEndpoint;
|
|
14
|
+
private readonly sourcedocid;
|
|
15
|
+
private readonly ENDPOINT;
|
|
16
|
+
constructor(restClient: RestClient, parentEndpoint: string, sourcedocid: string);
|
|
17
|
+
/**
|
|
18
|
+
* @param body DocumentChatRequest? -
|
|
19
|
+
*/
|
|
20
|
+
post(body?: DocumentChatRequest): Promise<DocumentChatResponse>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @author semantha
|
|
25
|
+
*
|
|
26
|
+
* Class to access resource "/api/documentchat/domains/{domainname}/documents"
|
|
27
|
+
* This is a generated file do not change manually!
|
|
28
|
+
*/
|
|
29
|
+
declare class DocumentsEndpoint {
|
|
30
|
+
private readonly restClient;
|
|
31
|
+
private readonly parentEndpoint;
|
|
32
|
+
private readonly ENDPOINT;
|
|
33
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @author semantha
|
|
38
|
+
*
|
|
39
|
+
* Class to access resource "/api/documentchat/domains/{domainname}"
|
|
40
|
+
* This is a generated file do not change manually!
|
|
41
|
+
*/
|
|
42
|
+
declare class DomainEndpoint {
|
|
43
|
+
private readonly restClient;
|
|
44
|
+
private readonly parentEndpoint;
|
|
45
|
+
private readonly domainname;
|
|
46
|
+
private readonly ENDPOINT;
|
|
47
|
+
constructor(restClient: RestClient, parentEndpoint: string, domainname: string);
|
|
48
|
+
documents(): DocumentsEndpoint;
|
|
49
|
+
documents(sourcedocid: string): DocumentEndpoint;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @author semantha
|
|
54
|
+
*
|
|
55
|
+
* Class to access resource "/api/documentchat/domains"
|
|
56
|
+
* This is a generated file do not change manually!
|
|
57
|
+
*/
|
|
58
|
+
declare class DomainsEndpoint {
|
|
59
|
+
private readonly restClient;
|
|
60
|
+
private readonly parentEndpoint;
|
|
61
|
+
private readonly ENDPOINT;
|
|
62
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @author semantha
|
|
67
|
+
*
|
|
68
|
+
* Class to access resource "/api/documentchat"
|
|
69
|
+
* This is a generated file do not change manually!
|
|
70
|
+
*/
|
|
71
|
+
declare class DocumentchatEndpoint {
|
|
72
|
+
private readonly restClient;
|
|
73
|
+
private readonly parentEndpoint;
|
|
74
|
+
private readonly ENDPOINT;
|
|
75
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
76
|
+
domains(): DomainsEndpoint;
|
|
77
|
+
domains(domainname: string): DomainEndpoint;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Entry point to the DocumentChat API.
|
|
82
|
+
*
|
|
83
|
+
* @author semantha
|
|
84
|
+
* Calls the /documentchat, endpoints.
|
|
85
|
+
*
|
|
86
|
+
* Note:
|
|
87
|
+
* The constructor is not meant to be invoked directly
|
|
88
|
+
* use `loginXXX()` with your credentials instead.
|
|
89
|
+
*
|
|
90
|
+
* this is a generated class do not change manually!
|
|
91
|
+
*/
|
|
92
|
+
declare class DocumentChatAPI {
|
|
93
|
+
private readonly restClient;
|
|
94
|
+
private readonly parentEndpoint;
|
|
95
|
+
constructor(restClient: RestClient, parentEndpoint: string);
|
|
96
|
+
/**
|
|
97
|
+
* Access to the DocumentChat API
|
|
98
|
+
*
|
|
99
|
+
* @param serverUrl: string - URL to the DocumentChat server.
|
|
100
|
+
* @param apiKey: string - A valid bearer token for accessing the given url.
|
|
101
|
+
*
|
|
102
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
103
|
+
*/
|
|
104
|
+
static loginWithApiKey(serverUrl: string, apiKey: string): DocumentChatAPI;
|
|
105
|
+
/**
|
|
106
|
+
* Access to the DocumentChat API, when there is a auth proxy in place to handle the addition of the Authorization header
|
|
107
|
+
*
|
|
108
|
+
* @param serverUrl: string - URL to the DocumentChat server.
|
|
109
|
+
*
|
|
110
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
111
|
+
*/
|
|
112
|
+
static loginWithAuthProxy(serverUrl: string): DocumentChatAPI;
|
|
113
|
+
/**
|
|
114
|
+
* Access to the DocumentChat API
|
|
115
|
+
*
|
|
116
|
+
* @param serverUrl: string - URL to the DocumentChat server.
|
|
117
|
+
* @param clientId: string - OAuth2 client id.
|
|
118
|
+
* @param clientSecret: string - OAuth2 client secret.
|
|
119
|
+
* @param tokenUrl: string OAuth2 url to get a valid access token
|
|
120
|
+
*
|
|
121
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
122
|
+
*/
|
|
123
|
+
static loginWithCredentials(serverUrl: string, clientId: string, clientSecret: string, tokenUrl: string): DocumentChatAPI;
|
|
124
|
+
/**
|
|
125
|
+
* Access to the DocumentChat API
|
|
126
|
+
*
|
|
127
|
+
* @param credentialsFilePath: string - Path to a properties file providing client credentials.
|
|
128
|
+
*
|
|
129
|
+
* @return DocumentChatAPI: Entry point to the DocumentChat API.
|
|
130
|
+
*/
|
|
131
|
+
static loginWithCredentialsFile(credentialsFilePath: string): DocumentChatAPI;
|
|
132
|
+
private static parseServerUrl;
|
|
133
|
+
private static getValueOfInPropertiesFile;
|
|
134
|
+
endpoint(): string;
|
|
135
|
+
documentchat(): DocumentchatEndpoint;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export { DocumentChatAPI, DocumentEndpoint, DocumentchatEndpoint, DocumentsEndpoint, DomainEndpoint, DomainsEndpoint };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkMUWVKP6I_js=require('../../chunk-MUWVKP6I.js'),h=require('fs');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var h__namespace=/*#__PURE__*/_interopNamespace(h);var o=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.sourcedocid=n;this.ENDPOINT=this.parentEndpoint+`/documents/${this.sourcedocid}`;}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/documents";}ENDPOINT};var p=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.domainname=n;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;documents(t){return t!=null?new o(this.restClient,this.ENDPOINT,t):new s(this.restClient,this.ENDPOINT)}};var a=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/documentchat";}ENDPOINT;domains(t){return t!=null?new p(this.restClient,this.ENDPOINT,t):new a(this.restClient,this.ENDPOINT)}};var c="/api",u=class r{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new r(new chunkMUWVKP6I_js.c(this.parseServerUrl(t),e),c)}static loginWithAuthProxy(t){if(!t)throw new Error("You need to supply a server url to login.");return new r(new chunkMUWVKP6I_js.c(this.parseServerUrl(t)),c)}static loginWithCredentials(t,e,n,d){return t=this.parseServerUrl(t),new r(new chunkMUWVKP6I_js.c(t,void 0,e,n,d),c)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let n=h__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(m=>m.length!==0).map(m=>m.split("=")),d=this.getValueOfInPropertiesFile("serverUrl",n),f=this.getValueOfInPropertiesFile("clientId",n),g=this.getValueOfInPropertiesFile("clientSecret",n),E=this.getValueOfInPropertiesFile("tokenUrl",n);return r.loginWithCredentials(d,f,g,E)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let n of e)if(n[0]===t)return n[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}documentchat(){return new l(this.restClient,this.endpoint())}};exports.DocumentChatAPI=u;exports.DocumentEndpoint=o;exports.DocumentchatEndpoint=l;exports.DocumentsEndpoint=s;exports.DomainEndpoint=p;exports.DomainsEndpoint=a;//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/document-chat/api/document.ts","../../../semantha-product-sdk/document-chat/api/documents.ts","../../../semantha-product-sdk/document-chat/api/domain.ts","../../../semantha-product-sdk/document-chat/api/domains.ts","../../../semantha-product-sdk/document-chat/api/documentchat.ts","../../../semantha-product-sdk/document-chat/api/documentChatAPI.ts"],"names":["DocumentEndpoint","restClient","parentEndpoint","sourcedocid","body","DocumentsEndpoint","DomainEndpoint","domainname","DomainsEndpoint","DocumentchatEndpoint","PARENT_ENDPOINT","DocumentChatAPI","_DocumentChatAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","h","line","searchKey"],"mappings":"2bAWO,IAAMA,CAAAA,CAAN,KAAuB,CAG5B,WAAA,CACmBC,EACAC,CAAAA,CACAC,CAAAA,CACjB,CAHiB,IAAA,CAAA,UAAA,CAAAF,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,EACA,IAAA,CAAA,WAAA,CAAAC,CAAAA,CAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,cAAmB,IAAA,CAAK,WAAW,CAAA,EAC3E,CARiB,QAAA,CAajB,MAAM,KACJC,CAAAA,CAC+B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A,CAA2B,CACtF,QAAWE,CAAAA,IAAQF,CAAAA,CACjB,GAAIE,CAAAA,CAAK,CAAC,CAAA,GAAMC,EACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,OAAA,CAAQ,KAAA,CAAO,GAAG,CAAA,CAGrC,MAAM,KAAA,CAAM,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,YAAA,EAAqC,CACnC,OAAO,IAAId,CAAAA,CAAqB,IAAA,CAAK,WAAY,IAAA,CAAK,QAAA,EAAU,CAClE,CAEF","file":"index.js","sourcesContent":["import { DocumentChatRequest } from '../model';\nimport { DocumentChatResponse } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains/{domainname}/documents/{sourcedocid}\"\n * This is a generated file do not change manually!\n */\nexport class DocumentEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly sourcedocid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documents\" + `/${this.sourcedocid}`;\n }\n\n /**\n * @param body DocumentChatRequest? - \n */\n async post(\n body?: DocumentChatRequest,\n ): Promise<DocumentChatResponse> {\n return (\n await this.restClient.post<DocumentChatResponse>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains/{domainname}/documents\"\n * This is a generated file do not change manually!\n */\nexport class DocumentsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documents\";\n }\n}\n","import { DocumentEndpoint } from './document';\nimport { DocumentsEndpoint } from './documents';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n documents(): DocumentsEndpoint;\n documents(sourcedocid: string): DocumentEndpoint\n \n documents(sourcedocid?: string): DocumentEndpoint | DocumentsEndpoint {\n if(sourcedocid !== undefined && sourcedocid !== null) {\n\t return new DocumentEndpoint(this.restClient, this.ENDPOINT, sourcedocid);\n } else {\n\t return new DocumentsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat\"\n * This is a generated file do not change manually!\n */\nexport class DocumentchatEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentchat\";\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { DocumentchatEndpoint } from './documentchat';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the DocumentChat API.\n *\n * @author semantha\n * Calls the /documentchat, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class DocumentChatAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the DocumentChat API\n *\n * @param serverUrl: string - URL to the DocumentChat server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): DocumentChatAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new DocumentChatAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the DocumentChat API, when there is a auth proxy in place to handle the addition of the Authorization header\n *\n * @param serverUrl: string - URL to the DocumentChat server.\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): DocumentChatAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new DocumentChatAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the DocumentChat API\n *\n * @param serverUrl: string - URL to the DocumentChat server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): DocumentChatAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new DocumentChatAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the DocumentChat API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : DocumentChatAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return DocumentChatAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n documentchat(): DocumentchatEndpoint {\n return new DocumentchatEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {c as c$1}from'../../chunk-5PB4IBX4.mjs';import*as h from'fs';var o=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.sourcedocid=n;this.ENDPOINT=this.parentEndpoint+`/documents/${this.sourcedocid}`;}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/documents";}ENDPOINT};var p=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.domainname=n;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;documents(t){return t!=null?new o(this.restClient,this.ENDPOINT,t):new s(this.restClient,this.ENDPOINT)}};var a=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/documentchat";}ENDPOINT;domains(t){return t!=null?new p(this.restClient,this.ENDPOINT,t):new a(this.restClient,this.ENDPOINT)}};var c="/api",u=class r{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new r(new c$1(this.parseServerUrl(t),e),c)}static loginWithAuthProxy(t){if(!t)throw new Error("You need to supply a server url to login.");return new r(new c$1(this.parseServerUrl(t)),c)}static loginWithCredentials(t,e,n,d){return t=this.parseServerUrl(t),new r(new c$1(t,void 0,e,n,d),c)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let n=h.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(m=>m.length!==0).map(m=>m.split("=")),d=this.getValueOfInPropertiesFile("serverUrl",n),f=this.getValueOfInPropertiesFile("clientId",n),g=this.getValueOfInPropertiesFile("clientSecret",n),E=this.getValueOfInPropertiesFile("tokenUrl",n);return r.loginWithCredentials(d,f,g,E)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let n of e)if(n[0]===t)return n[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}documentchat(){return new l(this.restClient,this.endpoint())}};export{u as DocumentChatAPI,o as DocumentEndpoint,l as DocumentchatEndpoint,s as DocumentsEndpoint,p as DomainEndpoint,a as DomainsEndpoint};//# sourceMappingURL=index.mjs.map
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/document-chat/api/document.ts","../../../semantha-product-sdk/document-chat/api/documents.ts","../../../semantha-product-sdk/document-chat/api/domain.ts","../../../semantha-product-sdk/document-chat/api/domains.ts","../../../semantha-product-sdk/document-chat/api/documentchat.ts","../../../semantha-product-sdk/document-chat/api/documentChatAPI.ts"],"names":["DocumentEndpoint","restClient","parentEndpoint","sourcedocid","body","DocumentsEndpoint","DomainEndpoint","domainname","DomainsEndpoint","DocumentchatEndpoint","PARENT_ENDPOINT","DocumentChatAPI","_DocumentChatAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEAWO,IAAMA,CAAAA,CAAN,KAAuB,CAG5B,WAAA,CACmBC,EACAC,CAAAA,CACAC,CAAAA,CACjB,CAHiB,IAAA,CAAA,UAAA,CAAAF,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,EACA,IAAA,CAAA,WAAA,CAAAC,CAAAA,CAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,cAAmB,IAAA,CAAK,WAAW,CAAA,EAC3E,CARiB,QAAA,CAajB,MAAM,KACJC,CAAAA,CAC+B,CAC/B,QACE,MAAM,IAAA,CAAK,WAAW,IAAA,CACpB,IAAA,CAA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,CAAK,CAAC,CAAA,GAAMC,EACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,OAAA,CAAQ,KAAA,CAAO,GAAG,CAAA,CAGrC,MAAM,KAAA,CAAM,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,YAAA,EAAqC,CACnC,OAAO,IAAIb,CAAAA,CAAqB,IAAA,CAAK,WAAY,IAAA,CAAK,QAAA,EAAU,CAClE,CAEF","file":"index.mjs","sourcesContent":["import { DocumentChatRequest } from '../model';\nimport { DocumentChatResponse } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains/{domainname}/documents/{sourcedocid}\"\n * This is a generated file do not change manually!\n */\nexport class DocumentEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly sourcedocid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documents\" + `/${this.sourcedocid}`;\n }\n\n /**\n * @param body DocumentChatRequest? - \n */\n async post(\n body?: DocumentChatRequest,\n ): Promise<DocumentChatResponse> {\n return (\n await this.restClient.post<DocumentChatResponse>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains/{domainname}/documents\"\n * This is a generated file do not change manually!\n */\nexport class DocumentsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documents\";\n }\n}\n","import { DocumentEndpoint } from './document';\nimport { DocumentsEndpoint } from './documents';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n documents(): DocumentsEndpoint;\n documents(sourcedocid: string): DocumentEndpoint\n \n documents(sourcedocid?: string): DocumentEndpoint | DocumentsEndpoint {\n if(sourcedocid !== undefined && sourcedocid !== null) {\n\t return new DocumentEndpoint(this.restClient, this.ENDPOINT, sourcedocid);\n } else {\n\t return new DocumentsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/documentchat\"\n * This is a generated file do not change manually!\n */\nexport class DocumentchatEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentchat\";\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { DocumentchatEndpoint } from './documentchat';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the DocumentChat API.\n *\n * @author semantha\n * Calls the /documentchat, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class DocumentChatAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the DocumentChat API\n *\n * @param serverUrl: string - URL to the DocumentChat server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): DocumentChatAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new DocumentChatAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the DocumentChat API, when there is a auth proxy in place to handle the addition of the Authorization header\n *\n * @param serverUrl: string - URL to the DocumentChat server.\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): DocumentChatAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new DocumentChatAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the DocumentChat API\n *\n * @param serverUrl: string - URL to the DocumentChat server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): DocumentChatAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new DocumentChatAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the DocumentChat API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return DocumentChatAPI: Entry point to the DocumentChat API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : DocumentChatAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return DocumentChatAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n documentchat(): DocumentchatEndpoint {\n return new DocumentchatEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author semantha
|
|
3
|
+
*
|
|
4
|
+
* This is a generated file do not change manually!
|
|
5
|
+
*/
|
|
6
|
+
interface Message {
|
|
7
|
+
role?: MessageRoleEnum;
|
|
8
|
+
content?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @author semantha
|
|
13
|
+
*
|
|
14
|
+
* This is a generated file do not change manually!
|
|
15
|
+
*/
|
|
16
|
+
interface DocumentChatRequest {
|
|
17
|
+
messages: Message[];
|
|
18
|
+
conversationId?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @author semantha
|
|
23
|
+
*
|
|
24
|
+
* This is a generated file do not change manually!
|
|
25
|
+
*/
|
|
26
|
+
interface DocumentChatResponse {
|
|
27
|
+
messages: Message[];
|
|
28
|
+
conversationId?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @author semantha
|
|
33
|
+
*
|
|
34
|
+
* This is a generated file do not change manually!
|
|
35
|
+
*/
|
|
36
|
+
declare const MessageRoleEnumValues: readonly ["USER", "ASSISTANT", "SYSTEM"];
|
|
37
|
+
type MessageRoleEnum = (typeof MessageRoleEnumValues)[number];
|
|
38
|
+
declare function isMessageRoleEnumValue(value: any): value is MessageRoleEnum;
|
|
39
|
+
|
|
40
|
+
export { type DocumentChatRequest, type DocumentChatResponse, type Message, type MessageRoleEnum, MessageRoleEnumValues, isMessageRoleEnumValue };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author semantha
|
|
3
|
+
*
|
|
4
|
+
* This is a generated file do not change manually!
|
|
5
|
+
*/
|
|
6
|
+
interface Message {
|
|
7
|
+
role?: MessageRoleEnum;
|
|
8
|
+
content?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @author semantha
|
|
13
|
+
*
|
|
14
|
+
* This is a generated file do not change manually!
|
|
15
|
+
*/
|
|
16
|
+
interface DocumentChatRequest {
|
|
17
|
+
messages: Message[];
|
|
18
|
+
conversationId?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @author semantha
|
|
23
|
+
*
|
|
24
|
+
* This is a generated file do not change manually!
|
|
25
|
+
*/
|
|
26
|
+
interface DocumentChatResponse {
|
|
27
|
+
messages: Message[];
|
|
28
|
+
conversationId?: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* @author semantha
|
|
33
|
+
*
|
|
34
|
+
* This is a generated file do not change manually!
|
|
35
|
+
*/
|
|
36
|
+
declare const MessageRoleEnumValues: readonly ["USER", "ASSISTANT", "SYSTEM"];
|
|
37
|
+
type MessageRoleEnum = (typeof MessageRoleEnumValues)[number];
|
|
38
|
+
declare function isMessageRoleEnumValue(value: any): value is MessageRoleEnum;
|
|
39
|
+
|
|
40
|
+
export { type DocumentChatRequest, type DocumentChatResponse, type Message, type MessageRoleEnum, MessageRoleEnumValues, isMessageRoleEnumValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/document-chat/model/messageRoleEnum.ts"],"names":["MessageRoleEnumValues","isMessageRoleEnumValue","value"],"mappings":"aAKO,IAAMA,CAAAA,CAAwB,CACnC,MAAA,CACA,WAAA,CACA,QACF,EAGO,SAASC,CAAAA,CAAuBC,CAAAA,CAAsC,CAC3E,OAAOF,CAAAA,CAAsB,QAAA,CAASE,CAAK,CAC7C","file":"index.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const MessageRoleEnumValues = [\n 'USER',\n 'ASSISTANT',\n 'SYSTEM'\n] as const;\nexport type MessageRoleEnum = (typeof MessageRoleEnumValues)[number];\n\nexport function isMessageRoleEnumValue(value: any): value is MessageRoleEnum {\n return MessageRoleEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/document-chat/model/messageRoleEnum.ts"],"names":["MessageRoleEnumValues","isMessageRoleEnumValue","value"],"mappings":"AAKO,IAAMA,CAAAA,CAAwB,CACnC,MAAA,CACA,WAAA,CACA,QACF,EAGO,SAASC,CAAAA,CAAuBC,CAAAA,CAAsC,CAC3E,OAAOF,CAAAA,CAAsB,QAAA,CAASE,CAAK,CAC7C","file":"index.mjs","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const MessageRoleEnumValues = [\n 'USER',\n 'ASSISTANT',\n 'SYSTEM'\n] as const;\nexport type MessageRoleEnum = (typeof MessageRoleEnumValues)[number];\n\nexport function isMessageRoleEnumValue(value: any): value is MessageRoleEnum {\n return MessageRoleEnumValues.includes(value);\n}\n\n"]}
|
package/dist/file-box/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkB3MSOEJM_js=require('../chunk-B3MSOEJM.js')
|
|
1
|
+
'use strict';var chunkB3MSOEJM_js=require('../chunk-B3MSOEJM.js');require('../chunk-MUWVKP6I.js');var chunkZSFNB534_js=require('../chunk-ZSFNB534.js');Object.defineProperty(exports,"BoxEndpoint",{enumerable:true,get:function(){return chunkB3MSOEJM_js.a}});Object.defineProperty(exports,"BoxesEndpoint",{enumerable:true,get:function(){return chunkB3MSOEJM_js.b}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkB3MSOEJM_js.c}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkB3MSOEJM_js.d}});Object.defineProperty(exports,"FileBoxAPI",{enumerable:true,get:function(){return chunkB3MSOEJM_js.f}});Object.defineProperty(exports,"FileboxEndpoint",{enumerable:true,get:function(){return chunkB3MSOEJM_js.e}});Object.defineProperty(exports,"FileTypeEnumValues",{enumerable:true,get:function(){return chunkZSFNB534_js.a}});Object.defineProperty(exports,"isFileTypeEnumValue",{enumerable:true,get:function(){return chunkZSFNB534_js.b}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/file-box/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as BoxEndpoint,b as BoxesEndpoint,c as DomainEndpoint,d as DomainsEndpoint,f as FileBoxAPI,e as FileboxEndpoint}from'../chunk-YB4SU52R.mjs';export{a as FileTypeEnumValues,b as isFileTypeEnumValue}from'../chunk-DURTIKAP.mjs'
|
|
1
|
+
export{a as BoxEndpoint,b as BoxesEndpoint,c as DomainEndpoint,d as DomainsEndpoint,f as FileBoxAPI,e as FileboxEndpoint}from'../chunk-YB4SU52R.mjs';import'../chunk-5PB4IBX4.mjs';export{a as FileTypeEnumValues,b as isFileTypeEnumValue}from'../chunk-DURTIKAP.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -359,6 +359,21 @@ interface AnalysesReport {
|
|
|
359
359
|
statsSummary?: AnalysisStats;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
/**
|
|
363
|
+
* @author semantha
|
|
364
|
+
*
|
|
365
|
+
* This is a generated file do not change manually!
|
|
366
|
+
*/
|
|
367
|
+
interface PromptResultStats {
|
|
368
|
+
countSuccess?: number;
|
|
369
|
+
countAnswered?: number;
|
|
370
|
+
countNoAnswer?: number;
|
|
371
|
+
countError?: number;
|
|
372
|
+
countErrorUpdateAttribute?: number;
|
|
373
|
+
countErrorCreateWorkItem?: number;
|
|
374
|
+
countErrorLinkCreatedWorkItem?: number;
|
|
375
|
+
}
|
|
376
|
+
|
|
362
377
|
/**
|
|
363
378
|
* @author semantha
|
|
364
379
|
*
|
|
@@ -383,6 +398,7 @@ interface Analysis {
|
|
|
383
398
|
source?: AnalysisSourceEnum;
|
|
384
399
|
type?: AnalysisTypeEnum;
|
|
385
400
|
stats?: AnalysisStats;
|
|
401
|
+
promptResultStats?: PromptResultStats;
|
|
386
402
|
}
|
|
387
403
|
|
|
388
404
|
/**
|
|
@@ -736,7 +752,7 @@ interface FormDataContentDisposition {
|
|
|
736
752
|
*
|
|
737
753
|
* This is a generated file do not change manually!
|
|
738
754
|
*/
|
|
739
|
-
declare const ModeEnumValues: readonly ["fingerprint", "keyword", "document", "document_fingerprint", "fingerprint_keyword", "auto"];
|
|
755
|
+
declare const ModeEnumValues: readonly ["fingerprint", "keyword", "document", "document_fingerprint", "fingerprint_keyword", "auto", "fingerprint_exact", "document_fingerprint_exact"];
|
|
740
756
|
type ModeEnum = (typeof ModeEnumValues)[number];
|
|
741
757
|
declare function isModeEnumValue(value: any): value is ModeEnum;
|
|
742
758
|
|
|
@@ -769,4 +785,4 @@ interface PromptResultResponseContainer {
|
|
|
769
785
|
data?: PromptResult[];
|
|
770
786
|
}
|
|
771
787
|
|
|
772
|
-
export { type AiTaskArguments, type AiTaskInput, type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type ClassificationStats, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type ParagraphPreview, type PromptResult, type PromptResultResponseContainer, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
788
|
+
export { type AiTaskArguments, type AiTaskInput, type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type ClassificationStats, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type ParagraphPreview, type PromptResult, type PromptResultResponseContainer, type PromptResultStats, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
@@ -359,6 +359,21 @@ interface AnalysesReport {
|
|
|
359
359
|
statsSummary?: AnalysisStats;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
/**
|
|
363
|
+
* @author semantha
|
|
364
|
+
*
|
|
365
|
+
* This is a generated file do not change manually!
|
|
366
|
+
*/
|
|
367
|
+
interface PromptResultStats {
|
|
368
|
+
countSuccess?: number;
|
|
369
|
+
countAnswered?: number;
|
|
370
|
+
countNoAnswer?: number;
|
|
371
|
+
countError?: number;
|
|
372
|
+
countErrorUpdateAttribute?: number;
|
|
373
|
+
countErrorCreateWorkItem?: number;
|
|
374
|
+
countErrorLinkCreatedWorkItem?: number;
|
|
375
|
+
}
|
|
376
|
+
|
|
362
377
|
/**
|
|
363
378
|
* @author semantha
|
|
364
379
|
*
|
|
@@ -383,6 +398,7 @@ interface Analysis {
|
|
|
383
398
|
source?: AnalysisSourceEnum;
|
|
384
399
|
type?: AnalysisTypeEnum;
|
|
385
400
|
stats?: AnalysisStats;
|
|
401
|
+
promptResultStats?: PromptResultStats;
|
|
386
402
|
}
|
|
387
403
|
|
|
388
404
|
/**
|
|
@@ -736,7 +752,7 @@ interface FormDataContentDisposition {
|
|
|
736
752
|
*
|
|
737
753
|
* This is a generated file do not change manually!
|
|
738
754
|
*/
|
|
739
|
-
declare const ModeEnumValues: readonly ["fingerprint", "keyword", "document", "document_fingerprint", "fingerprint_keyword", "auto"];
|
|
755
|
+
declare const ModeEnumValues: readonly ["fingerprint", "keyword", "document", "document_fingerprint", "fingerprint_keyword", "auto", "fingerprint_exact", "document_fingerprint_exact"];
|
|
740
756
|
type ModeEnum = (typeof ModeEnumValues)[number];
|
|
741
757
|
declare function isModeEnumValue(value: any): value is ModeEnum;
|
|
742
758
|
|
|
@@ -769,4 +785,4 @@ interface PromptResultResponseContainer {
|
|
|
769
785
|
data?: PromptResult[];
|
|
770
786
|
}
|
|
771
787
|
|
|
772
|
-
export { type AiTaskArguments, type AiTaskInput, type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type ClassificationStats, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type ParagraphPreview, type PromptResult, type PromptResultResponseContainer, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
788
|
+
export { type AiTaskArguments, type AiTaskInput, type AnalysesReport, type Analysis, type AnalysisCreation, type AnalysisInput, type AnalysisReport, type AnalysisReportTypeEnum, AnalysisReportTypeEnumValues, type AnalysisResult, type AnalysisResultComment, type AnalysisResultOverview, type AnalysisResultsResponseContainer, type AnalysisResultsStats, type AnalysisResultsStatsResponseContainer, type AnalysisSourceEnum, AnalysisSourceEnumValues, type AnalysisStats, type AnalysisStatusEnum, AnalysisStatusEnumValues, type AnalysisTypeEnum, AnalysisTypeEnumValues, type AnnotationCell, type AnnotationPage, type Attachment, type Attribute, type Char, type ClassificationStats, type Distance, type Document, type DocumentNamedEntity, type DocumentTable, type Entity, type Evaluation, type EvaluationOverview, type ExcelTemplateColumnConfig, type ExcelTemplateColumnConfigHeaderTypeEnum, ExcelTemplateColumnConfigHeaderTypeEnumValues, type ExcelTemplateDetails, type ExtendedReference, type Features, type FormDataContentDisposition, type FormatInformation, type Link, type MetaInfoPage, type ModeEnum, ModeEnumValues, type Page, type PageContent, type Paragraph, type ParagraphPreview, type PromptResult, type PromptResultResponseContainer, type PromptResultStats, type Rect, type Reference, type ResponseMetaInfo, type Row, type Sentence, type StatusStats, type TableCell, isAnalysisReportTypeEnumValue, isAnalysisSourceEnumValue, isAnalysisStatusEnumValue, isAnalysisTypeEnumValue, isExcelTemplateColumnConfigHeaderTypeEnumValue, isModeEnumValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED","NOT_EXECUTED"];function a(e){return t.includes(e)}var n=["SIMILARITY","PROMPT"];function E(e){return n.includes(e)}var p=["DEFAULT_COLUMN","PLACEHOLDER_COLUMN","EDITABLE_PLACEHOLDER_COLUMN"];function y(e){return p.includes(e)}var m=["fingerprint","keyword","document","document_fingerprint","fingerprint_keyword","auto"];function
|
|
1
|
+
'use strict';var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED","NOT_EXECUTED"];function a(e){return t.includes(e)}var n=["SIMILARITY","PROMPT"];function E(e){return n.includes(e)}var p=["DEFAULT_COLUMN","PLACEHOLDER_COLUMN","EDITABLE_PLACEHOLDER_COLUMN"];function y(e){return p.includes(e)}var m=["fingerprint","keyword","document","document_fingerprint","fingerprint_keyword","auto","fingerprint_exact","document_fingerprint_exact"];function T(e){return m.includes(e)}exports.AnalysisReportTypeEnumValues=o;exports.AnalysisSourceEnumValues=r;exports.AnalysisStatusEnumValues=t;exports.AnalysisTypeEnumValues=n;exports.ExcelTemplateColumnConfigHeaderTypeEnumValues=p;exports.ModeEnumValues=m;exports.isAnalysisReportTypeEnumValue=u;exports.isAnalysisSourceEnumValue=x;exports.isAnalysisStatusEnumValue=a;exports.isAnalysisTypeEnumValue=E;exports.isExcelTemplateColumnConfigHeaderTypeEnumValue=y;exports.isModeEnumValue=T;//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"aAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"aAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA0BF,EAAyC,CACjF,OAAOC,CAAAA,CAAyB,QAAA,CAASD,CAAK,CAChD,CCVO,IAAMG,CAAAA,CAA2B,CACtC,cAAA,CACA,QAAA,CACA,aAAA,CACA,WACA,kBAAA,CACA,OAAA,CACA,SAAA,CACA,WAAA,CACA,OAAA,CACA,gBAAA,CACA,cACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAAA,CAAyC,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CCjBO,IAAMK,CAAAA,CAAyB,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAAA,CAAuC,CAC7E,OAAOK,CAAAA,CAAuB,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,CAAAA,CAAgD,CAC3D,gBAAA,CACA,oBAAA,CACA,6BACF,EAGO,SAASC,CAAAA,CAA+CR,EAA8D,CAC3H,OAAOO,CAAAA,CAA8C,QAAA,CAASP,CAAK,CACrE,CCTO,IAAMS,CAAAA,CAAiB,CAC5B,aAAA,CACA,SAAA,CACA,UAAA,CACA,sBAAA,CACA,sBACA,MAAA,CACA,mBAAA,CACA,4BACF,EAGO,SAASC,CAAAA,CAAgBV,CAAAA,CAA+B,CAC7D,OAAOS,CAAAA,CAAe,QAAA,CAAST,CAAK,CACtC","file":"index.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED',\n 'NOT_EXECUTED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto',\n 'fingerprint_exact',\n 'document_fingerprint_exact'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED","NOT_EXECUTED"];function a(e){return t.includes(e)}var n=["SIMILARITY","PROMPT"];function E(e){return n.includes(e)}var p=["DEFAULT_COLUMN","PLACEHOLDER_COLUMN","EDITABLE_PLACEHOLDER_COLUMN"];function y(e){return p.includes(e)}var m=["fingerprint","keyword","document","document_fingerprint","fingerprint_keyword","auto"];function
|
|
1
|
+
var o=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function u(e){return o.includes(e)}var r=["EXCEL","PDF","POLARION","STRUCTURE_NAVIGATOR"];function x(e){return r.includes(e)}var t=["INITIALIZING","QUEUED","IN_PROGRESS","FINISHED","UPDATING_RESULTS","ERROR","UNKNOWN","CANCELLED","EMPTY","LIMIT_EXCEEDED","NOT_EXECUTED"];function a(e){return t.includes(e)}var n=["SIMILARITY","PROMPT"];function E(e){return n.includes(e)}var p=["DEFAULT_COLUMN","PLACEHOLDER_COLUMN","EDITABLE_PLACEHOLDER_COLUMN"];function y(e){return p.includes(e)}var m=["fingerprint","keyword","document","document_fingerprint","fingerprint_keyword","auto","fingerprint_exact","document_fingerprint_exact"];function T(e){return m.includes(e)}export{o as AnalysisReportTypeEnumValues,r as AnalysisSourceEnumValues,t as AnalysisStatusEnumValues,n as AnalysisTypeEnumValues,p as ExcelTemplateColumnConfigHeaderTypeEnumValues,m as ModeEnumValues,u as isAnalysisReportTypeEnumValue,x as isAnalysisSourceEnumValue,a as isAnalysisStatusEnumValue,E as isAnalysisTypeEnumValue,y as isExcelTemplateColumnConfigHeaderTypeEnumValue,T as isModeEnumValue};//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"AAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"AAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA0BF,EAAyC,CACjF,OAAOC,CAAAA,CAAyB,QAAA,CAASD,CAAK,CAChD,CCVO,IAAMG,CAAAA,CAA2B,CACtC,cAAA,CACA,QAAA,CACA,aAAA,CACA,WACA,kBAAA,CACA,OAAA,CACA,SAAA,CACA,WAAA,CACA,OAAA,CACA,gBAAA,CACA,cACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAAA,CAAyC,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CCjBO,IAAMK,CAAAA,CAAyB,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAAA,CAAuC,CAC7E,OAAOK,CAAAA,CAAuB,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,CAAAA,CAAgD,CAC3D,gBAAA,CACA,oBAAA,CACA,6BACF,EAGO,SAASC,CAAAA,CAA+CR,EAA8D,CAC3H,OAAOO,CAAAA,CAA8C,QAAA,CAASP,CAAK,CACrE,CCTO,IAAMS,CAAAA,CAAiB,CAC5B,aAAA,CACA,SAAA,CACA,UAAA,CACA,sBAAA,CACA,sBACA,MAAA,CACA,mBAAA,CACA,4BACF,EAGO,SAASC,CAAAA,CAAgBV,CAAAA,CAA+B,CAC7D,OAAOS,CAAAA,CAAe,QAAA,CAAST,CAAK,CACtC","file":"index.mjs","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED',\n 'NOT_EXECUTED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto',\n 'fingerprint_exact',\n 'document_fingerprint_exact'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantha/product-sdk",
|
|
3
3
|
"description": "SDK for semantha products",
|
|
4
|
-
"version": "11.
|
|
5
|
-
"packageManager": "pnpm@
|
|
4
|
+
"version": "11.6.0",
|
|
5
|
+
"packageManager": "pnpm@11.6.0+sha512.9a36518224080c6fe5165afdcfe79bfa118c29be703f3f462b1e32efe1e98e47e8750b148e08286250aad4113cc7993ca413c4e2cd447752708c2ee5751bc95f",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=24"
|
|
8
|
+
},
|
|
6
9
|
"files": [
|
|
7
10
|
"./dist"
|
|
8
11
|
],
|
|
@@ -23,18 +26,18 @@
|
|
|
23
26
|
"license": "Apache-2.0",
|
|
24
27
|
"homepage": "https://aleph-alpha.com",
|
|
25
28
|
"devDependencies": {
|
|
26
|
-
"@types/jest": "
|
|
27
|
-
"@types/node": "
|
|
28
|
-
"eslint": "
|
|
29
|
-
"jest": "
|
|
30
|
-
"prettier": "3.
|
|
31
|
-
"ts-jest": "
|
|
32
|
-
"tsup": "
|
|
33
|
-
"typescript": "
|
|
34
|
-
"typescript-eslint": "
|
|
29
|
+
"@types/jest": "30.0.0",
|
|
30
|
+
"@types/node": "24.13.2",
|
|
31
|
+
"eslint": "10.6.0",
|
|
32
|
+
"jest": "30.4.2",
|
|
33
|
+
"prettier": "3.9.4",
|
|
34
|
+
"ts-jest": "29.4.11",
|
|
35
|
+
"tsup": "8.5.1",
|
|
36
|
+
"typescript": "5.9.3",
|
|
37
|
+
"typescript-eslint": "8.60.1"
|
|
35
38
|
},
|
|
36
39
|
"dependencies": {
|
|
37
|
-
"axios": "^1.
|
|
40
|
+
"axios": "^1.18.1"
|
|
38
41
|
},
|
|
39
42
|
"browser": {
|
|
40
43
|
"fs": false
|