@semantha/product-sdk 11.6.0 → 11.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.
- package/dist/chunk-2DHIHJB5.js +2 -0
- package/dist/chunk-2DHIHJB5.js.map +1 -0
- package/dist/{chunk-FRZZWIQF.mjs → chunk-45JLFIMJ.mjs} +2 -2
- package/dist/{chunk-FRZZWIQF.mjs.map → chunk-45JLFIMJ.mjs.map} +1 -1
- package/dist/{chunk-YB4SU52R.mjs → chunk-FUYAWPCE.mjs} +2 -2
- package/dist/{chunk-YB4SU52R.mjs.map → chunk-FUYAWPCE.mjs.map} +1 -1
- package/dist/{chunk-3FXI4XXG.js → chunk-HQUUS6GC.js} +2 -2
- package/dist/chunk-HQUUS6GC.js.map +1 -0
- package/dist/chunk-HYOHQM5J.mjs +2 -0
- package/dist/chunk-HYOHQM5J.mjs.map +1 -0
- package/dist/{chunk-B3MSOEJM.js → chunk-OGW7UVWP.js} +2 -2
- package/dist/{chunk-B3MSOEJM.js.map → chunk-OGW7UVWP.js.map} +1 -1
- package/dist/{chunk-UTBTTDZX.js → chunk-TYQ3NAQE.js} +2 -2
- package/dist/{chunk-UTBTTDZX.js.map → chunk-TYQ3NAQE.js.map} +1 -1
- package/dist/{chunk-CIAODZK3.mjs → chunk-ZCQJ5ZKX.mjs} +2 -2
- package/dist/chunk-ZCQJ5ZKX.mjs.map +1 -0
- package/dist/document-chat/api/index.js +1 -1
- package/dist/document-chat/api/index.mjs +1 -1
- package/dist/file-box/api/index.js +1 -1
- package/dist/file-box/api/index.mjs +1 -1
- package/dist/file-box/index.js +1 -1
- package/dist/file-box/index.mjs +1 -1
- package/dist/requirements/api/index.js +1 -1
- package/dist/requirements/api/index.js.map +1 -1
- package/dist/requirements/api/index.mjs +1 -1
- package/dist/requirements/api/index.mjs.map +1 -1
- package/dist/rest/index.d.mts +1 -0
- package/dist/rest/index.d.ts +1 -0
- package/dist/rest/index.js +1 -1
- package/dist/rest/index.mjs +1 -1
- package/dist/structure-navigator/api/index.js +1 -1
- package/dist/structure-navigator/api/index.mjs +1 -1
- package/dist/structure-navigator/index.js +1 -1
- package/dist/structure-navigator/index.mjs +1 -1
- package/dist/table-extractor/api/index.js +1 -1
- package/dist/table-extractor/api/index.js.map +1 -1
- package/dist/table-extractor/api/index.mjs +1 -1
- package/dist/table-extractor/api/index.mjs.map +1 -1
- package/dist/tracking/api/index.js +1 -1
- package/dist/tracking/api/index.mjs +1 -1
- package/dist/tracking/index.js +1 -1
- package/dist/tracking/index.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-3FXI4XXG.js.map +0 -1
- package/dist/chunk-5PB4IBX4.mjs +0 -2
- package/dist/chunk-5PB4IBX4.mjs.map +0 -1
- package/dist/chunk-CIAODZK3.mjs.map +0 -1
- package/dist/chunk-MUWVKP6I.js +0 -2
- package/dist/chunk-MUWVKP6I.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {c as c$1}from'./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import {c as c$1}from'./chunk-HYOHQM5J.mjs';import*as P from'fs';var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/binary";}ENDPOINT;async getAsXlsx(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),null,"blob")).toFile()}async getAsDocx(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/vnd.openxmlformats-officedocument.wordprocessingml.document"),null,"blob")).toFile()}async getAsPdf(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/pdf"),null,"blob")).toFile()}};var a=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.configurationid=i;this.ENDPOINT=this.parentEndpoint+`/configurations/${this.configurationid}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/configurations";}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/events";}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}};var u=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/screenshots";}ENDPOINT;async getAsPng(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("image/png"),null,"blob")).toFile()}};var c=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.documentstructureid=i;this.ENDPOINT=this.parentEndpoint+`/documentstructures/${this.documentstructureid}`;}ENDPOINT;binary(){return new s(this.restClient,this.ENDPOINT)}events(){return new p(this.restClient,this.ENDPOINT)}screenshots(){return new u(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async getAsReqifz(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/reqifz"),null,"blob")).toFile()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}};var d=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/documentstructures";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json","multipart/form-data"),t)).toModel()}};var m=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.domainname=i;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;configurations(t){return t!=null?new a(this.restClient,this.ENDPOINT,t):new l(this.restClient,this.ENDPOINT)}documentstructures(t){return t!=null?new c(this.restClient,this.ENDPOINT,t):new d(this.restClient,this.ENDPOINT)}};var h=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var g=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/structurenavigator";}ENDPOINT;domains(t){return t!=null?new m(this.restClient,this.ENDPOINT,t):new h(this.restClient,this.ENDPOINT)}};var E="/api",C=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),E)}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)),E)}static loginWithCredentials(t,e,i,N){return t=this.parseServerUrl(t),new r(new c$1(t,void 0,e,i,N),E)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let i=P.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(f=>f.length!==0).map(f=>f.split("=")),N=this.getValueOfInPropertiesFile("serverUrl",i),D=this.getValueOfInPropertiesFile("clientId",i),O=this.getValueOfInPropertiesFile("clientSecret",i),v=this.getValueOfInPropertiesFile("tokenUrl",i);return r.loginWithCredentials(N,D,O,v)}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 i of e)if(i[0]===t)return i[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}structurenavigator(){return new g(this.restClient,this.endpoint())}};export{s as a,a as b,l as c,p as d,u as e,c as f,d as g,m as h,h as i,g as j,C as k};//# sourceMappingURL=chunk-ZCQJ5ZKX.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-ZCQJ5ZKX.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/structure-navigator/api/binary.ts","../semantha-product-sdk/structure-navigator/api/configuration.ts","../semantha-product-sdk/structure-navigator/api/configurations.ts","../semantha-product-sdk/structure-navigator/api/events.ts","../semantha-product-sdk/structure-navigator/api/screenshots.ts","../semantha-product-sdk/structure-navigator/api/documentstructure.ts","../semantha-product-sdk/structure-navigator/api/documentstructures.ts","../semantha-product-sdk/structure-navigator/api/domain.ts","../semantha-product-sdk/structure-navigator/api/domains.ts","../semantha-product-sdk/structure-navigator/api/structurenavigator.ts","../semantha-product-sdk/structure-navigator/api/structureNavigatorAPI.ts"],"names":["BinaryEndpoint","restClient","parentEndpoint","ConfigurationEndpoint","configurationid","body","ConfigurationsEndpoint","EventsEndpoint","params","ScreenshotsEndpoint","DocumentstructureEndpoint","documentstructureid","DocumentstructuresEndpoint","data","DomainEndpoint","domainname","DomainsEndpoint","StructurenavigatorEndpoint","PARENT_ENDPOINT","StructureNavigatorAPI","_StructureNavigatorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"iEASO,IAAMA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAA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,CAClE,OAAOR,CAAAA,CAAsB,oBAAA,CAAqBC,CAAAA,CAAWG,CAAAA,CAAUC,EAAcC,CAAQ,CAC/F,CACG,MAAM,IAAI,KAAA,CAAM,6DAA6D,CAC/E,CAEA,OAAe,cAAA,CAAeL,CAAAA,CAA2B,CACvD,OAAIA,EAAU,QAAA,CAAS,GAAG,CAAA,GACxBA,CAAAA,CAAYA,CAAAA,CAAU,KAAA,CAAM,CAAA,CAAG,EAAE,CAAA,CAAA,CAE/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,CAAA,CAC3CA,CAAAA,CAAYA,EAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,CAAA,CAChEA,CAAAA,CAAU,QAAA,CAAS,oBAAoB,CAAA,GACjDA,CAAAA,EAAa,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAAA,CAA2BS,EAAmBF,CAAAA,CAA2B,CACtF,IAAA,IAAWC,CAAAA,IAAQD,CAAAA,CACjB,GAAIC,CAAAA,CAAK,CAAC,CAAA,GAAMC,CAAAA,CACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,QAAQ,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,kBAAA,EAAiD,CAC/C,OAAO,IAAIb,CAAAA,CAA2B,IAAA,CAAK,UAAA,CAAY,IAAA,CAAK,QAAA,EAAU,CACxE,CAEF","file":"chunk-ZCQJ5ZKX.mjs","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/binary\"\n * This is a generated file do not change manually!\n */\nexport class BinaryEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/binary\";\n }\n\n /**\n * Returns the input document.\n */\n async getAsXlsx(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.XLSX),\n null,\n \"blob\"\n )\n ).toFile();\n }\n /**\n * Returns the input document.\n */\n async getAsDocx(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.DOCX),\n null,\n \"blob\"\n )\n ).toFile();\n }\n /**\n * Returns the input document.\n */\n async getAsPdf(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.PDF),\n null,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { Configuration } from '../model';\nimport { ConfigurationUpdate } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/configurations/{configurationid}\"\n * This is a generated file do not change manually!\n */\nexport class ConfigurationEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly configurationid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/configurations\" + `/${this.configurationid}`;\n }\n\n /**\n * Returns the configuration for the given id.\n */\n async get(): Promise<Configuration> {\n return (\n await this.restClient.get<Configuration>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete a given configuration. Needs roles: 'Advanced User', 'Domain Admin' or 'Expert User'\n */\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Make changes to an existing configuration. Needs roles: 'Advanced User', 'Domain Admin' or 'Expert User'\n *\n * @param body ConfigurationUpdate - \n */\n async patch(\n body: ConfigurationUpdate,\n ): Promise<Configuration> {\n return (\n await this.restClient.patch<Configuration>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { Configuration } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/configurations\"\n * This is a generated file do not change manually!\n */\nexport class ConfigurationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/configurations\";\n }\n\n /**\n * Returns all configurations.\n */\n async get(): Promise<Configuration[]> {\n return (\n await this.restClient.get<Configuration[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete all configurations. Needs roles: 'Advanced User', 'Domain Admin' or 'Expert User'\n */\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Creates a new configuration. Needs roles: 'Advanced User', 'Domain Admin' or 'Expert User'\n *\n * @param body Configuration? - \n */\n async post(\n body?: Configuration,\n ): Promise<Configuration> {\n return (\n await this.restClient.post<Configuration>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { Event } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/events\"\n * This is a generated file do not change manually!\n */\nexport class EventsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/events\";\n }\n\n /**\n * Returns all events of given document structure\n */\n async get(): Promise<Event[]> {\n return (\n await this.restClient.get<Event[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Creates a new event for a document structure.\n *\n * @param body Event? - \n */\n async post(\n body: Event,\n params?: {\n lasteventid?: string,\n }): Promise<Event> {\n return (\n await this.restClient.post<Event>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/screenshots\"\n * This is a generated file do not change manually!\n */\nexport class ScreenshotsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/screenshots\";\n }\n\n /**\n * Returns a 'screenshot' of a page of the given document structure\n *\n * @param page number? - Number of the page to create a screenshot. Zero based\n * @param x number? - X position of the area to screenshot.\n * @param y number? - Y position of the area to screenshot.\n * @param width number? - Width of the area to screenshot.\n * @param height number? - Height of the area to screenshot.\n */\n async getAsPng(params?: {\n page?: number,\n x?: number,\n y?: number,\n width?: number,\n height?: number,\n }): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.PNG),\n null,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { BinaryEndpoint } from './binary';\nimport { DocumentStructure } from '../model';\nimport { DocumentStructureOverview } from '../model';\nimport { DocumentStructureReplaceSections } from '../model';\nimport { DocumentStructureUpdate } from '../model';\nimport { EventsEndpoint } from './events';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { ScreenshotsEndpoint } from './screenshots';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}\"\n * This is a generated file do not change manually!\n */\nexport class DocumentstructureEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly documentstructureid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentstructures\" + `/${this.documentstructureid}`;\n }\n\n binary(): BinaryEndpoint {\n return new BinaryEndpoint(this.restClient, this.ENDPOINT);\n }\n\n events(): EventsEndpoint {\n return new EventsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n screenshots(): ScreenshotsEndpoint {\n return new ScreenshotsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n /**\n * Returns the document structure for the given id.\n */\n async get(): Promise<DocumentStructure> {\n return (\n await this.restClient.get<DocumentStructure>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n /**\n * Returns the document structure for the given id.\n */\n async getAsReqifz(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.REQIFZ),\n null,\n \"blob\"\n )\n ).toFile();\n }\n\n /**\n * Delete a given document structure.\n */\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Make changes to an existing document structure.\n *\n * @param body DocumentStructureUpdate - \n */\n async patch(\n body: DocumentStructureUpdate,\n ): Promise<DocumentStructureOverview> {\n return (\n await this.restClient.patch<DocumentStructureOverview>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n\n /**\n * Replace paragraphs of an existing document structure.\n *\n * @param body DocumentStructureReplaceSections - \n */\n async put(\n body: DocumentStructureReplaceSections,\n ): Promise<DocumentStructureOverview> {\n return (\n await this.restClient.put<DocumentStructureOverview>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { DocumentStructureOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures\"\n * This is a generated file do not change manually!\n */\nexport class DocumentstructuresEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentstructures\";\n }\n\n /**\n * Returns an overview of all available document structures.\n *\n * @param customfield string? - \n * @param customfieldvalues string? - \n */\n async get(params?: {\n customfield?: string,\n customfieldvalues?: string,\n }): Promise<DocumentStructureOverview[]> {\n return (\n await this.restClient.get<DocumentStructureOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete all document structures. Needs role: 'Domain Admin'\n */\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Creates a new document structure.\n *\n * @param file Blob? - \n * @param name string? - \n * @param publicaccess boolean? - \n * @param configurationid string? - \n */\n async post(data: {\n file?: Blob,\n name?: string,\n publicaccess?: boolean,\n configurationid?: string,\n }): Promise<DocumentStructureOverview> {\n return (\n await this.restClient.post<DocumentStructureOverview>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON, \"multipart/form-data\"),\n data\n )\n ).toModel();\n }\n}\n","import { ConfigurationEndpoint } from './configuration';\nimport { ConfigurationsEndpoint } from './configurations';\nimport { DocumentstructureEndpoint } from './documentstructure';\nimport { DocumentstructuresEndpoint } from './documentstructures';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/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 configurations(): ConfigurationsEndpoint;\n configurations(configurationid: string): ConfigurationEndpoint\n \n configurations(configurationid?: string): ConfigurationEndpoint | ConfigurationsEndpoint {\n if(configurationid !== undefined && configurationid !== null) {\n\t return new ConfigurationEndpoint(this.restClient, this.ENDPOINT, configurationid);\n } else {\n\t return new ConfigurationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n documentstructures(): DocumentstructuresEndpoint;\n documentstructures(documentstructureid: string): DocumentstructureEndpoint\n \n documentstructures(documentstructureid?: string): DocumentstructureEndpoint | DocumentstructuresEndpoint {\n if(documentstructureid !== undefined && documentstructureid !== null) {\n\t return new DocumentstructureEndpoint(this.restClient, this.ENDPOINT, documentstructureid);\n } else {\n\t return new DocumentstructuresEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/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/structurenavigator\"\n * This is a generated file do not change manually!\n */\nexport class StructurenavigatorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/structurenavigator\";\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 { StructurenavigatorEndpoint } from './structurenavigator';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the StructureNavigator API.\n *\n * @author semantha\n * Calls the /structurenavigator, 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 StructureNavigatorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the StructureNavigator API\n *\n * @param serverUrl: string - URL to the StructureNavigator server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): StructureNavigatorAPI {\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 StructureNavigatorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the StructureNavigator 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 StructureNavigator server.\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): StructureNavigatorAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new StructureNavigatorAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the StructureNavigator API\n *\n * @param serverUrl: string - URL to the StructureNavigator 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 StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): StructureNavigatorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new StructureNavigatorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the StructureNavigator API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : StructureNavigatorAPI {\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 StructureNavigatorAPI.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 structurenavigator(): StructurenavigatorEndpoint {\n return new StructurenavigatorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk2DHIHJB5_js=require('../../chunk-2DHIHJB5.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 chunk2DHIHJB5_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 chunk2DHIHJB5_js.c(this.parseServerUrl(t)),c)}static loginWithCredentials(t,e,n,d){return t=this.parseServerUrl(t),new r(new chunk2DHIHJB5_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
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {c as c$1}from'../../chunk-
|
|
1
|
+
import {c as c$1}from'../../chunk-HYOHQM5J.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
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOGW7UVWP_js=require('../../chunk-OGW7UVWP.js');require('../../chunk-2DHIHJB5.js');Object.defineProperty(exports,"BoxEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.a}});Object.defineProperty(exports,"BoxesEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.b}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.c}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.d}});Object.defineProperty(exports,"FileBoxAPI",{enumerable:true,get:function(){return chunkOGW7UVWP_js.f}});Object.defineProperty(exports,"FileboxEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.e}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -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-
|
|
1
|
+
export{a as BoxEndpoint,b as BoxesEndpoint,c as DomainEndpoint,d as DomainsEndpoint,f as FileBoxAPI,e as FileboxEndpoint}from'../../chunk-FUYAWPCE.mjs';import'../../chunk-HYOHQM5J.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/file-box/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkOGW7UVWP_js=require('../chunk-OGW7UVWP.js');require('../chunk-2DHIHJB5.js');var chunkZSFNB534_js=require('../chunk-ZSFNB534.js');Object.defineProperty(exports,"BoxEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.a}});Object.defineProperty(exports,"BoxesEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.b}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.c}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_js.d}});Object.defineProperty(exports,"FileBoxAPI",{enumerable:true,get:function(){return chunkOGW7UVWP_js.f}});Object.defineProperty(exports,"FileboxEndpoint",{enumerable:true,get:function(){return chunkOGW7UVWP_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-
|
|
1
|
+
export{a as BoxEndpoint,b as BoxesEndpoint,c as DomainEndpoint,d as DomainsEndpoint,f as FileBoxAPI,e as FileboxEndpoint}from'../chunk-FUYAWPCE.mjs';import'../chunk-HYOHQM5J.mjs';export{a as FileTypeEnumValues,b as isFileTypeEnumValue}from'../chunk-DURTIKAP.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkMUWVKP6I_js=require('../../chunk-MUWVKP6I.js'),W=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 W__namespace=/*#__PURE__*/_interopNamespace(W);var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t){return (await this.restClient.post(this.ENDPOINT,t,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),{},"blob")).toFile()}};var m=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new p(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}};var d=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/aitasks/${this.analysisid}`;}ENDPOINT;pagedresults(){return new l(this.restClient,this.ENDPOINT)}results(){return new m(this.restClient,this.ENDPOINT)}};var E=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/aitasks";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var u=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/report";}ENDPOINT;async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var N=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/analyses";}ENDPOINT;report(){return new u(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}async postJson(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var h=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var c=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/stats";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var y=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;stats(){return new c(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var C=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/analyses/${this.analysisid}`;}ENDPOINT;pagedresults(){return new y(this.restClient,this.ENDPOINT)}results(){return new h(this.restClient,this.ENDPOINT)}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var f=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new f(this.restClient,this.ENDPOINT)}};var g=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/bulk";}ENDPOINT;results(){return new s(this.restClient,this.ENDPOINT)}};var P=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/classifications";}ENDPOINT};var T=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/comments";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var O=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/roles";}ENDPOINT};var D=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/currentuser";}ENDPOINT;roles(){return new O(this.restClient,this.ENDPOINT)}};var v=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/evaluations/${this.id}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/evaluations";}ENDPOINT;async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var I=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/exceltemplates/${this.id}`;}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}};var R=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/new";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var x=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/exceltemplates";}ENDPOINT;new(){return new R(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var w=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/references";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var A=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.resultid=n;this.ENDPOINT=this.parentEndpoint+`/results/${this.resultid}`;}ENDPOINT;comments(){return new T(this.restClient,this.ENDPOINT)}evaluations(){return new o(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var M=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.domainname=n;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;aitasks(t){return t!=null?new d(this.restClient,this.ENDPOINT,t):new E(this.restClient,this.ENDPOINT)}analyses(t){return t!=null?new C(this.restClient,this.ENDPOINT,t):new N(this.restClient,this.ENDPOINT)}bulk(){return new g(this.restClient,this.ENDPOINT)}classifications(){return new P(this.restClient,this.ENDPOINT)}evaluations(t){return t!=null?new v(this.restClient,this.ENDPOINT,t):new o(this.restClient,this.ENDPOINT)}exceltemplates(t){return t!=null?new I(this.restClient,this.ENDPOINT,t):new x(this.restClient,this.ENDPOINT)}references(){return new w(this.restClient,this.ENDPOINT)}results(t){return t!=null?new A(this.restClient,this.ENDPOINT,t):new s(this.restClient,this.ENDPOINT)}};var b=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var S=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/requirements";}ENDPOINT;currentuser(){return new D(this.restClient,this.ENDPOINT)}domains(t){return t!=null?new M(this.restClient,this.ENDPOINT,t):new b(this.restClient,this.ENDPOINT)}};var J="/api",F=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),J)}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)),J)}static loginWithCredentials(t,e,n,H){return t=this.parseServerUrl(t),new r(new chunkMUWVKP6I_js.c(t,void 0,e,n,H),J)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let n=W__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(k=>k.length!==0).map(k=>k.split("=")),H=this.getValueOfInPropertiesFile("serverUrl",n),X=this.getValueOfInPropertiesFile("clientId",n),B=this.getValueOfInPropertiesFile("clientSecret",n),$=this.getValueOfInPropertiesFile("tokenUrl",n);return r.loginWithCredentials(H,X,B,$)}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}requirements(){return new S(this.restClient,this.endpoint())}};exports.AitaskEndpoint=d;exports.AitasksEndpoint=E;exports.AitasksPagedresultsEndpoint=l;exports.AitasksResultsEndpoint=m;exports.AitasksresultsExportEndpoint=p;exports.AnalysesEndpoint=N;exports.AnalysisEndpoint=C;exports.AnalysisResultsEndpoint=h;exports.BulkEndpoint=g;exports.ClassificationsEndpoint=P;exports.CommentsEndpoint=T;exports.CurrentuserEndpoint=D;exports.DomainEndpoint=M;exports.DomainsEndpoint=b;exports.EvaluationEndpoint=v;exports.EvaluationsEndpoint=o;exports.ExceltemplateEndpoint=I;exports.ExceltemplatesEndpoint=x;exports.ExportEndpoint=f;exports.NewEndpoint=R;exports.PagedresultsEndpoint=y;exports.ReferencesEndpoint=w;exports.ReportEndpoint=u;exports.RequirementsAPI=F;exports.RequirementsEndpoint=S;exports.ResultEndpoint=A;exports.ResultsEndpoint=s;exports.RolesEndpoint=O;exports.StatsEndpoint=c;//# sourceMappingURL=index.js.map
|
|
1
|
+
'use strict';var chunk2DHIHJB5_js=require('../../chunk-2DHIHJB5.js'),W=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 W__namespace=/*#__PURE__*/_interopNamespace(W);var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t){return (await this.restClient.post(this.ENDPOINT,t,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),{},"blob")).toFile()}};var m=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new p(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}};var d=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/aitasks/${this.analysisid}`;}ENDPOINT;pagedresults(){return new l(this.restClient,this.ENDPOINT)}results(){return new m(this.restClient,this.ENDPOINT)}};var E=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/aitasks";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var u=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/report";}ENDPOINT;async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var N=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/analyses";}ENDPOINT;report(){return new u(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json","multipart/form-data"),t)).toModel()}async postJson(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var h=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var c=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/stats";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var y=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;stats(){return new c(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var C=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/analyses/${this.analysisid}`;}ENDPOINT;pagedresults(){return new y(this.restClient,this.ENDPOINT)}results(){return new h(this.restClient,this.ENDPOINT)}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var f=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new f(this.restClient,this.ENDPOINT)}};var g=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/bulk";}ENDPOINT;results(){return new s(this.restClient,this.ENDPOINT)}};var P=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/classifications";}ENDPOINT};var T=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/comments";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var O=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/roles";}ENDPOINT};var D=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/currentuser";}ENDPOINT;roles(){return new O(this.restClient,this.ENDPOINT)}};var v=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/evaluations/${this.id}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/evaluations";}ENDPOINT;async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var I=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/exceltemplates/${this.id}`;}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}};var R=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/new";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var x=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/exceltemplates";}ENDPOINT;new(){return new R(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var w=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/references";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json","multipart/form-data"),t)).toModel()}};var A=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.resultid=n;this.ENDPOINT=this.parentEndpoint+`/results/${this.resultid}`;}ENDPOINT;comments(){return new T(this.restClient,this.ENDPOINT)}evaluations(){return new o(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var M=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.domainname=n;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;aitasks(t){return t!=null?new d(this.restClient,this.ENDPOINT,t):new E(this.restClient,this.ENDPOINT)}analyses(t){return t!=null?new C(this.restClient,this.ENDPOINT,t):new N(this.restClient,this.ENDPOINT)}bulk(){return new g(this.restClient,this.ENDPOINT)}classifications(){return new P(this.restClient,this.ENDPOINT)}evaluations(t){return t!=null?new v(this.restClient,this.ENDPOINT,t):new o(this.restClient,this.ENDPOINT)}exceltemplates(t){return t!=null?new I(this.restClient,this.ENDPOINT,t):new x(this.restClient,this.ENDPOINT)}references(){return new w(this.restClient,this.ENDPOINT)}results(t){return t!=null?new A(this.restClient,this.ENDPOINT,t):new s(this.restClient,this.ENDPOINT)}};var b=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var S=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/requirements";}ENDPOINT;currentuser(){return new D(this.restClient,this.ENDPOINT)}domains(t){return t!=null?new M(this.restClient,this.ENDPOINT,t):new b(this.restClient,this.ENDPOINT)}};var J="/api",F=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 chunk2DHIHJB5_js.c(this.parseServerUrl(t),e),J)}static loginWithAuthProxy(t){if(!t)throw new Error("You need to supply a server url to login.");return new r(new chunk2DHIHJB5_js.c(this.parseServerUrl(t)),J)}static loginWithCredentials(t,e,n,H){return t=this.parseServerUrl(t),new r(new chunk2DHIHJB5_js.c(t,void 0,e,n,H),J)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let n=W__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(k=>k.length!==0).map(k=>k.split("=")),H=this.getValueOfInPropertiesFile("serverUrl",n),X=this.getValueOfInPropertiesFile("clientId",n),B=this.getValueOfInPropertiesFile("clientSecret",n),$=this.getValueOfInPropertiesFile("tokenUrl",n);return r.loginWithCredentials(H,X,B,$)}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}requirements(){return new S(this.restClient,this.endpoint())}};exports.AitaskEndpoint=d;exports.AitasksEndpoint=E;exports.AitasksPagedresultsEndpoint=l;exports.AitasksResultsEndpoint=m;exports.AitasksresultsExportEndpoint=p;exports.AnalysesEndpoint=N;exports.AnalysisEndpoint=C;exports.AnalysisResultsEndpoint=h;exports.BulkEndpoint=g;exports.ClassificationsEndpoint=P;exports.CommentsEndpoint=T;exports.CurrentuserEndpoint=D;exports.DomainEndpoint=M;exports.DomainsEndpoint=b;exports.EvaluationEndpoint=v;exports.EvaluationsEndpoint=o;exports.ExceltemplateEndpoint=I;exports.ExceltemplatesEndpoint=x;exports.ExportEndpoint=f;exports.NewEndpoint=R;exports.PagedresultsEndpoint=y;exports.ReferencesEndpoint=w;exports.ReportEndpoint=u;exports.RequirementsAPI=F;exports.RequirementsEndpoint=S;exports.ResultEndpoint=A;exports.ResultsEndpoint=s;exports.RolesEndpoint=O;exports.StatsEndpoint=c;//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/requirements/api/aitasksPagedresults.ts","../../../semantha-product-sdk/requirements/api/aitasksresultsExport.ts","../../../semantha-product-sdk/requirements/api/aitasksResults.ts","../../../semantha-product-sdk/requirements/api/aitask.ts","../../../semantha-product-sdk/requirements/api/aitasks.ts","../../../semantha-product-sdk/requirements/api/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisResults.ts","../../../semantha-product-sdk/requirements/api/stats.ts","../../../semantha-product-sdk/requirements/api/pagedresults.ts","../../../semantha-product-sdk/requirements/api/analysis.ts","../../../semantha-product-sdk/requirements/api/export.ts","../../../semantha-product-sdk/requirements/api/results.ts","../../../semantha-product-sdk/requirements/api/bulk.ts","../../../semantha-product-sdk/requirements/api/classifications.ts","../../../semantha-product-sdk/requirements/api/comments.ts","../../../semantha-product-sdk/requirements/api/roles.ts","../../../semantha-product-sdk/requirements/api/currentuser.ts","../../../semantha-product-sdk/requirements/api/evaluation.ts","../../../semantha-product-sdk/requirements/api/evaluations.ts","../../../semantha-product-sdk/requirements/api/exceltemplate.ts","../../../semantha-product-sdk/requirements/api/new.ts","../../../semantha-product-sdk/requirements/api/exceltemplates.ts","../../../semantha-product-sdk/requirements/api/references.ts","../../../semantha-product-sdk/requirements/api/result.ts","../../../semantha-product-sdk/requirements/api/domain.ts","../../../semantha-product-sdk/requirements/api/domains.ts","../../../semantha-product-sdk/requirements/api/requirements.ts","../../../semantha-product-sdk/requirements/api/requirementsAPI.ts"],"names":["AitasksPagedresultsEndpoint","restClient","parentEndpoint","params","AitasksresultsExportEndpoint","AitasksResultsEndpoint","AitaskEndpoint","analysisid","AitasksEndpoint","body","ReportEndpoint","AnalysesEndpoint","data","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","ExportEndpoint","ResultsEndpoint","BulkEndpoint","ClassificationsEndpoint","CommentsEndpoint","RolesEndpoint","CurrentuserEndpoint","EvaluationEndpoint","id","EvaluationsEndpoint","ExceltemplateEndpoint","NewEndpoint","ExceltemplatesEndpoint","ReferencesEndpoint","ResultEndpoint","resultid","DomainEndpoint","domainname","DomainsEndpoint","RequirementsEndpoint","PARENT_ENDPOINT","RequirementsAPI","_RequirementsAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","W","line","searchKey"],"mappings":"2bAUO,IAAMA,CAAAA,CAAN,KAAkC,CAGvC,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,CAAAA,CAEjB,KAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,gBACxC,CAPiB,QAAA,CASjB,MAAM,GAAA,CAAIC,CAAAA,CAMiC,CACzC,OAAA,CACE,MAAM,IAAA,CAAK,WAAW,GAAA,CACpB,IAAA,CAAK,QAAA,CACLA,CAAAA,CACA,IAAA,CAAK,UAAA,CAAW,2BAAuB,CACzC,CAAA,EACA,OAAA,EACJ,CACF,MC1BaC,CAAAA,CAAN,KAAmC,CAGxC,WAAA,CACmBH,CAAAA,CACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,CAAAA,CAEjB,IAAA,CAAK,QAAA,CAAW,KAAK,cAAA,CAAiB,UACxC,CAPiB,QAAA,CASjB,MAAM,UAAA,CAAWC,EAEG,CAClB,OAAA,CACE,MAAM,IAAA,CAAK,UAAA,CAAW,IAAA,CACpB,KAAK,QAAA,CACLA,CAAAA,CACA,IAAA,CAAK,UAAA,CAAW,QAAA,CAAA,mEAAuB,CAAA,CACvC,EAAC,CACD,MACF,CAAA,EACA,MAAA,EACJ,CACF,ECrBO,IAAME,CAAAA,CAAN,KAA6B,CAGlC,WAAA,CACmBJ,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,CAAAA,CAEjB,IAAA,CAAK,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F,CACG,MAAM,IAAI,MAAM,6DAA6D,CAC/E,CAEA,OAAe,cAAA,CAAeL,CAAAA,CAA2B,CACvD,OAAIA,CAAAA,CAAU,QAAA,CAAS,GAAG,CAAA,GACxBA,CAAAA,CAAYA,EAAU,KAAA,CAAM,CAAA,CAAG,EAAE,CAAA,CAAA,CAE/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,CAAA,CAC3CA,CAAAA,CAAYA,CAAAA,CAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,EAChEA,CAAAA,CAAU,QAAA,CAAS,oBAAoB,CAAA,GACjDA,CAAAA,EAAa,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAAA,CAA2BU,CAAAA,CAAmBH,CAAAA,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 { MediaType } from '../../rest';\nimport { PromptResultResponseContainer } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class AitasksPagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n async get(params: {\n workitemid?: string,\n status?: string,\n sort?: string,\n limit: number,\n offset: number,\n }): Promise<PromptResultResponseContainer> {\n return (\n await this.restClient.get<PromptResultResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class AitasksresultsExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n async postAsXlsx(params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n {},\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { AitasksresultsExportEndpoint } from './aitasksresultsExport';\nimport { MediaType } from '../../rest';\nimport { PromptResult } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AitasksResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): AitasksresultsExportEndpoint {\n return new AitasksresultsExportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<PromptResult[]> {\n return (\n await this.restClient.get<PromptResult[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AitasksPagedresultsEndpoint } from './aitasksPagedresults';\nimport { AitasksResultsEndpoint } from './aitasksResults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AitaskEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\" + `/${this.analysisid}`;\n }\n\n pagedresults(): AitasksPagedresultsEndpoint {\n return new AitasksPagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AitasksResultsEndpoint {\n return new AitasksResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { AiTaskInput } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks\"\n * This is a generated file do not change manually!\n */\nexport class AitasksEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\";\n }\n\n /**\n * @param body AiTaskInput? - \n */\n async post(\n body?: AiTaskInput,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysesReport } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/report\"\n * This is a generated file do not change manually!\n */\nexport class ReportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/report\";\n }\n\n /**\n * @param body string[]? - \n */\n async post(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<AnalysesReport> {\n return (\n await this.restClient.post<AnalysesReport>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n \n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisCreation } from '../model';\nimport { AnalysisInput } from '../model';\nimport { FormDataContentDisposition } from '../model';\nimport { MediaType } from '../../rest';\nimport { ReportEndpoint } from './report';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses\"\n * This is a generated file do not change manually!\n */\nexport class AnalysesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\";\n }\n\n report(): ReportEndpoint {\n return new ReportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Analysis[]> {\n return (\n await this.restClient.get<Analysis[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param file FormDataContentDisposition? - \n * @param analysisdata AnalysisInput[]? - \n * @param similaritythreshold number? - \n * @param imagesimilaritythreshold number? - \n * @param strategy string? - \n * @param name string? - \n * @param maxreferences number? - \n * @param tags string? - \n * @param documentclassids string[]? - \n * @param goodmatchesthreshold number? - \n * @param matchallreferences boolean? - \n * @param showdocscore boolean? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: number,\n imagesimilaritythreshold?: number,\n strategy?: string,\n name?: string,\n maxreferences?: number,\n tags?: string,\n documentclassids?: string[],\n goodmatchesthreshold?: number,\n matchallreferences?: boolean,\n showdocscore?: boolean,\n }): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n \n /**\n * @param body AnalysisCreation? - \n */\n async postJson(\n body?: AnalysisCreation,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisResultOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n async get(params?: {\n withdetails?: boolean,\n }): Promise<AnalysisResultOverview[]> {\n return (\n await this.restClient.get<AnalysisResultOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsStatsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults/stats\"\n * This is a generated file do not change manually!\n */\nexport class StatsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/stats\";\n }\n\n async get(params?: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n }): Promise<AnalysisResultsStatsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsStatsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { StatsEndpoint } from './stats';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class PagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n stats(): StatsEndpoint {\n return new StatsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n limit: number,\n offset: number,\n }): Promise<AnalysisResultsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisResultsEndpoint } from './analysisResults';\nimport { Entity } from '../model';\nimport { PagedresultsEndpoint } from './pagedresults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\" + `/${this.analysisid}`;\n }\n\n pagedresults(): PagedresultsEndpoint {\n return new PagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AnalysisResultsEndpoint {\n return new AnalysisResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Entity - \n */\n async patch(\n body: Entity,\n ): Promise<Analysis> {\n return (\n await this.restClient.patch<Analysis>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class ExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { ExportEndpoint } from './export';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results\"\n * This is a generated file do not change manually!\n */\nexport class ResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): ExportEndpoint {\n return new ExportEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/bulk\"\n * This is a generated file do not change manually!\n */\nexport class BulkEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/bulk\";\n }\n\n results(): ResultsEndpoint {\n return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/classifications\"\n * This is a generated file do not change manually!\n */\nexport class ClassificationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/classifications\";\n }\n}\n","import { AnalysisResultComment } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/comments\"\n * This is a generated file do not change manually!\n */\nexport class CommentsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/comments\";\n }\n\n /**\n * @param body AnalysisResultComment? - \n */\n async post(\n body?: AnalysisResultComment,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\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/requirements/currentuser/roles\"\n * This is a generated file do not change manually!\n */\nexport class RolesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/roles\";\n }\n}\n","import { RestClient } from '../../rest';\nimport { RolesEndpoint } from './roles';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/currentuser\"\n * This is a generated file do not change manually!\n */\nexport class CurrentuserEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/currentuser\";\n }\n\n roles(): RolesEndpoint {\n return new RolesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/evaluations/{id}\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\" + `/${this.id}`;\n }\n\n async get(): Promise<Evaluation> {\n return (\n await this.restClient.get<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation - \n */\n async patch(\n body: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.patch<Evaluation>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/evaluations\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\";\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Evaluation[] - \n */\n async put(\n body: Evaluation[],\n ): Promise<Evaluation[]> {\n return (\n await this.restClient.put<Evaluation[]>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation? - \n */\n async post(\n body?: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.post<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/{id}\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplateEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\" + `/${this.id}`;\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body ExcelTemplateDetails - \n */\n async put(\n body: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.put<ExcelTemplateDetails>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/new\"\n * This is a generated file do not change manually!\n */\nexport class NewEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/new\";\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Entity } from '../model';\nimport { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { NewEndpoint } from './new';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplatesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\";\n }\n\n new(): NewEndpoint {\n return new NewEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Entity[]> {\n return (\n await this.restClient.get<Entity[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body ExcelTemplateDetails? - \n */\n async post(\n body?: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.post<ExcelTemplateDetails>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisInput } from '../model';\nimport { ExtendedReference } from '../model';\nimport { MediaType } from '../../rest';\nimport { ModeEnum } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/references\"\n * This is a generated file do not change manually!\n */\nexport class ReferencesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/references\";\n }\n\n /**\n * @param file AnalysisInput? - \n * @param referencedocument Blob? - Optional reference documents\n * @param tags string? - \n * @param similaritythreshold number? - \n * @param imagesimilaritythreshold number? - \n * @param documentclassids string[]? - \n * @param mode ModeEnum? - \n */\n async post(data: {\n file?: AnalysisInput,\n referencedocument?: Blob,\n tags?: string,\n similaritythreshold?: number,\n imagesimilaritythreshold?: number,\n documentclassids?: string[],\n mode?: ModeEnum,\n }): Promise<ExtendedReference[]> {\n return (\n await this.restClient.post<ExtendedReference[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { AnalysisResult } from '../model';\nimport { CommentsEndpoint } from './comments';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}\"\n * This is a generated file do not change manually!\n */\nexport class ResultEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly resultid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\" + `/${this.resultid}`;\n }\n\n comments(): CommentsEndpoint {\n return new CommentsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint {\n return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params?: {\n withreferencedocument?: boolean,\n }): Promise<AnalysisResult> {\n return (\n await this.restClient.get<AnalysisResult>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body AnalysisResult - \n */\n async patch(\n body: AnalysisResult,\n ): Promise<AnalysisResult> {\n return (\n await this.restClient.patch<AnalysisResult>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { AitaskEndpoint } from './aitask';\nimport { AitasksEndpoint } from './aitasks';\nimport { AnalysesEndpoint } from './analyses';\nimport { AnalysisEndpoint } from './analysis';\nimport { BulkEndpoint } from './bulk';\nimport { ClassificationsEndpoint } from './classifications';\nimport { EvaluationEndpoint } from './evaluation';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { ExceltemplateEndpoint } from './exceltemplate';\nimport { ExceltemplatesEndpoint } from './exceltemplates';\nimport { ReferencesEndpoint } from './references';\nimport { RestClient } from '../../rest';\nimport { ResultEndpoint } from './result';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/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 aitasks(): AitasksEndpoint;\n aitasks(analysisid: string): AitaskEndpoint\n \n aitasks(analysisid?: string): AitaskEndpoint | AitasksEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AitaskEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AitasksEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n analyses(): AnalysesEndpoint;\n analyses(analysisid: string): AnalysisEndpoint\n \n analyses(analysisid?: string): AnalysisEndpoint | AnalysesEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AnalysisEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AnalysesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n bulk(): BulkEndpoint {\n return new BulkEndpoint(this.restClient, this.ENDPOINT);\n }\n\n classifications(): ClassificationsEndpoint {\n return new ClassificationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint;\n evaluations(id: string): EvaluationEndpoint\n \n evaluations(id?: string): EvaluationEndpoint | EvaluationsEndpoint {\n if(id !== undefined && id !== null) {\n\t return new EvaluationEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n exceltemplates(): ExceltemplatesEndpoint;\n exceltemplates(id: string): ExceltemplateEndpoint\n \n exceltemplates(id?: string): ExceltemplateEndpoint | ExceltemplatesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new ExceltemplateEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new ExceltemplatesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n references(): ReferencesEndpoint {\n return new ReferencesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): ResultsEndpoint;\n results(resultid: string): ResultEndpoint\n \n results(resultid?: string): ResultEndpoint | ResultsEndpoint {\n if(resultid !== undefined && resultid !== null) {\n\t return new ResultEndpoint(this.restClient, this.ENDPOINT, resultid);\n } else {\n\t return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/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 { CurrentuserEndpoint } from './currentuser';\nimport { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements\"\n * This is a generated file do not change manually!\n */\nexport class RequirementsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/requirements\";\n }\n\n currentuser(): CurrentuserEndpoint {\n return new CurrentuserEndpoint(this.restClient, this.ENDPOINT);\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 { RequirementsEndpoint } from './requirements';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Requirements API.\n *\n * @author semantha\n * Calls the /requirements, 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 RequirementsAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): RequirementsAPI {\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 RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the Requirements 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 Requirements server.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): RequirementsAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements 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 RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): RequirementsAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new RequirementsAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the Requirements API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : RequirementsAPI {\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 RequirementsAPI.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 requirements(): RequirementsEndpoint {\n return new RequirementsEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
1
|
+
{"version":3,"sources":["../../../semantha-product-sdk/requirements/api/aitasksPagedresults.ts","../../../semantha-product-sdk/requirements/api/aitasksresultsExport.ts","../../../semantha-product-sdk/requirements/api/aitasksResults.ts","../../../semantha-product-sdk/requirements/api/aitask.ts","../../../semantha-product-sdk/requirements/api/aitasks.ts","../../../semantha-product-sdk/requirements/api/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisResults.ts","../../../semantha-product-sdk/requirements/api/stats.ts","../../../semantha-product-sdk/requirements/api/pagedresults.ts","../../../semantha-product-sdk/requirements/api/analysis.ts","../../../semantha-product-sdk/requirements/api/export.ts","../../../semantha-product-sdk/requirements/api/results.ts","../../../semantha-product-sdk/requirements/api/bulk.ts","../../../semantha-product-sdk/requirements/api/classifications.ts","../../../semantha-product-sdk/requirements/api/comments.ts","../../../semantha-product-sdk/requirements/api/roles.ts","../../../semantha-product-sdk/requirements/api/currentuser.ts","../../../semantha-product-sdk/requirements/api/evaluation.ts","../../../semantha-product-sdk/requirements/api/evaluations.ts","../../../semantha-product-sdk/requirements/api/exceltemplate.ts","../../../semantha-product-sdk/requirements/api/new.ts","../../../semantha-product-sdk/requirements/api/exceltemplates.ts","../../../semantha-product-sdk/requirements/api/references.ts","../../../semantha-product-sdk/requirements/api/result.ts","../../../semantha-product-sdk/requirements/api/domain.ts","../../../semantha-product-sdk/requirements/api/domains.ts","../../../semantha-product-sdk/requirements/api/requirements.ts","../../../semantha-product-sdk/requirements/api/requirementsAPI.ts"],"names":["AitasksPagedresultsEndpoint","restClient","parentEndpoint","params","AitasksresultsExportEndpoint","AitasksResultsEndpoint","AitaskEndpoint","analysisid","AitasksEndpoint","body","ReportEndpoint","AnalysesEndpoint","data","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","ExportEndpoint","ResultsEndpoint","BulkEndpoint","ClassificationsEndpoint","CommentsEndpoint","RolesEndpoint","CurrentuserEndpoint","EvaluationEndpoint","id","EvaluationsEndpoint","ExceltemplateEndpoint","NewEndpoint","ExceltemplatesEndpoint","ReferencesEndpoint","ResultEndpoint","resultid","DomainEndpoint","domainname","DomainsEndpoint","RequirementsEndpoint","PARENT_ENDPOINT","RequirementsAPI","_RequirementsAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","W","line","searchKey"],"mappings":"2bAUO,IAAMA,CAAAA,CAAN,KAAkC,CAGvC,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,CAAAA,CAEjB,KAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,gBACxC,CAPiB,QAAA,CASjB,MAAM,G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EA,OAAe,0BAAA,CAA2BU,CAAAA,CAAmBH,CAAAA,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 { MediaType } from '../../rest';\nimport { PromptResultResponseContainer } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class AitasksPagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n async get(params: {\n workitemid?: string,\n status?: string,\n sort?: string,\n limit: number,\n offset: number,\n }): Promise<PromptResultResponseContainer> {\n return (\n await this.restClient.get<PromptResultResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class AitasksresultsExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n async postAsXlsx(params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n {},\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { AitasksresultsExportEndpoint } from './aitasksresultsExport';\nimport { MediaType } from '../../rest';\nimport { PromptResult } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AitasksResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): AitasksresultsExportEndpoint {\n return new AitasksresultsExportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<PromptResult[]> {\n return (\n await this.restClient.get<PromptResult[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AitasksPagedresultsEndpoint } from './aitasksPagedresults';\nimport { AitasksResultsEndpoint } from './aitasksResults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AitaskEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\" + `/${this.analysisid}`;\n }\n\n pagedresults(): AitasksPagedresultsEndpoint {\n return new AitasksPagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AitasksResultsEndpoint {\n return new AitasksResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { AiTaskInput } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks\"\n * This is a generated file do not change manually!\n */\nexport class AitasksEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\";\n }\n\n /**\n * @param body AiTaskInput? - \n */\n async post(\n body?: AiTaskInput,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysesReport } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/report\"\n * This is a generated file do not change manually!\n */\nexport class ReportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/report\";\n }\n\n /**\n * @param body string[]? - \n */\n async post(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<AnalysesReport> {\n return (\n await this.restClient.post<AnalysesReport>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n \n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisCreation } from '../model';\nimport { AnalysisInput } from '../model';\nimport { FormDataContentDisposition } from '../model';\nimport { MediaType } from '../../rest';\nimport { ReportEndpoint } from './report';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses\"\n * This is a generated file do not change manually!\n */\nexport class AnalysesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\";\n }\n\n report(): ReportEndpoint {\n return new ReportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Analysis[]> {\n return (\n await this.restClient.get<Analysis[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param file FormDataContentDisposition? - \n * @param analysisdata AnalysisInput[]? - \n * @param similaritythreshold number? - \n * @param imagesimilaritythreshold number? - \n * @param strategy string? - \n * @param name string? - \n * @param maxreferences number? - \n * @param tags string? - \n * @param documentclassids string[]? - \n * @param goodmatchesthreshold number? - \n * @param matchallreferences boolean? - \n * @param showdocscore boolean? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: number,\n imagesimilaritythreshold?: number,\n strategy?: string,\n name?: string,\n maxreferences?: number,\n tags?: string,\n documentclassids?: string[],\n goodmatchesthreshold?: number,\n matchallreferences?: boolean,\n showdocscore?: boolean,\n }): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON, \"multipart/form-data\"),\n data\n )\n ).toModel();\n }\n \n /**\n * @param body AnalysisCreation? - \n */\n async postJson(\n body?: AnalysisCreation,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisResultOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n async get(params?: {\n withdetails?: boolean,\n }): Promise<AnalysisResultOverview[]> {\n return (\n await this.restClient.get<AnalysisResultOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsStatsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults/stats\"\n * This is a generated file do not change manually!\n */\nexport class StatsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/stats\";\n }\n\n async get(params?: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n }): Promise<AnalysisResultsStatsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsStatsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { StatsEndpoint } from './stats';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class PagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n stats(): StatsEndpoint {\n return new StatsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n limit: number,\n offset: number,\n }): Promise<AnalysisResultsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisResultsEndpoint } from './analysisResults';\nimport { Entity } from '../model';\nimport { PagedresultsEndpoint } from './pagedresults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\" + `/${this.analysisid}`;\n }\n\n pagedresults(): PagedresultsEndpoint {\n return new PagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AnalysisResultsEndpoint {\n return new AnalysisResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Entity - \n */\n async patch(\n body: Entity,\n ): Promise<Analysis> {\n return (\n await this.restClient.patch<Analysis>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class ExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { ExportEndpoint } from './export';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results\"\n * This is a generated file do not change manually!\n */\nexport class ResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): ExportEndpoint {\n return new ExportEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/bulk\"\n * This is a generated file do not change manually!\n */\nexport class BulkEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/bulk\";\n }\n\n results(): ResultsEndpoint {\n return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/classifications\"\n * This is a generated file do not change manually!\n */\nexport class ClassificationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/classifications\";\n }\n}\n","import { AnalysisResultComment } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/comments\"\n * This is a generated file do not change manually!\n */\nexport class CommentsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/comments\";\n }\n\n /**\n * @param body AnalysisResultComment? - \n */\n async post(\n body?: AnalysisResultComment,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\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/requirements/currentuser/roles\"\n * This is a generated file do not change manually!\n */\nexport class RolesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/roles\";\n }\n}\n","import { RestClient } from '../../rest';\nimport { RolesEndpoint } from './roles';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/currentuser\"\n * This is a generated file do not change manually!\n */\nexport class CurrentuserEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/currentuser\";\n }\n\n roles(): RolesEndpoint {\n return new RolesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/evaluations/{id}\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\" + `/${this.id}`;\n }\n\n async get(): Promise<Evaluation> {\n return (\n await this.restClient.get<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation - \n */\n async patch(\n body: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.patch<Evaluation>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/evaluations\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\";\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Evaluation[] - \n */\n async put(\n body: Evaluation[],\n ): Promise<Evaluation[]> {\n return (\n await this.restClient.put<Evaluation[]>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation? - \n */\n async post(\n body?: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.post<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/{id}\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplateEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\" + `/${this.id}`;\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body ExcelTemplateDetails - \n */\n async put(\n body: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.put<ExcelTemplateDetails>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/new\"\n * This is a generated file do not change manually!\n */\nexport class NewEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/new\";\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Entity } from '../model';\nimport { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { NewEndpoint } from './new';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplatesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\";\n }\n\n new(): NewEndpoint {\n return new NewEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Entity[]> {\n return (\n await this.restClient.get<Entity[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body ExcelTemplateDetails? - \n */\n async post(\n body?: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.post<ExcelTemplateDetails>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisInput } from '../model';\nimport { ExtendedReference } from '../model';\nimport { MediaType } from '../../rest';\nimport { ModeEnum } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/references\"\n * This is a generated file do not change manually!\n */\nexport class ReferencesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/references\";\n }\n\n /**\n * @param file AnalysisInput? - \n * @param referencedocument Blob? - Optional reference documents\n * @param tags string? - \n * @param similaritythreshold number? - \n * @param imagesimilaritythreshold number? - \n * @param documentclassids string[]? - \n * @param mode ModeEnum? - \n */\n async post(data: {\n file?: AnalysisInput,\n referencedocument?: Blob,\n tags?: string,\n similaritythreshold?: number,\n imagesimilaritythreshold?: number,\n documentclassids?: string[],\n mode?: ModeEnum,\n }): Promise<ExtendedReference[]> {\n return (\n await this.restClient.post<ExtendedReference[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON, \"multipart/form-data\"),\n data\n )\n ).toModel();\n }\n}\n","import { AnalysisResult } from '../model';\nimport { CommentsEndpoint } from './comments';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}\"\n * This is a generated file do not change manually!\n */\nexport class ResultEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly resultid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\" + `/${this.resultid}`;\n }\n\n comments(): CommentsEndpoint {\n return new CommentsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint {\n return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params?: {\n withreferencedocument?: boolean,\n }): Promise<AnalysisResult> {\n return (\n await this.restClient.get<AnalysisResult>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body AnalysisResult - \n */\n async patch(\n body: AnalysisResult,\n ): Promise<AnalysisResult> {\n return (\n await this.restClient.patch<AnalysisResult>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { AitaskEndpoint } from './aitask';\nimport { AitasksEndpoint } from './aitasks';\nimport { AnalysesEndpoint } from './analyses';\nimport { AnalysisEndpoint } from './analysis';\nimport { BulkEndpoint } from './bulk';\nimport { ClassificationsEndpoint } from './classifications';\nimport { EvaluationEndpoint } from './evaluation';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { ExceltemplateEndpoint } from './exceltemplate';\nimport { ExceltemplatesEndpoint } from './exceltemplates';\nimport { ReferencesEndpoint } from './references';\nimport { RestClient } from '../../rest';\nimport { ResultEndpoint } from './result';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/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 aitasks(): AitasksEndpoint;\n aitasks(analysisid: string): AitaskEndpoint\n \n aitasks(analysisid?: string): AitaskEndpoint | AitasksEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AitaskEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AitasksEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n analyses(): AnalysesEndpoint;\n analyses(analysisid: string): AnalysisEndpoint\n \n analyses(analysisid?: string): AnalysisEndpoint | AnalysesEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AnalysisEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AnalysesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n bulk(): BulkEndpoint {\n return new BulkEndpoint(this.restClient, this.ENDPOINT);\n }\n\n classifications(): ClassificationsEndpoint {\n return new ClassificationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint;\n evaluations(id: string): EvaluationEndpoint\n \n evaluations(id?: string): EvaluationEndpoint | EvaluationsEndpoint {\n if(id !== undefined && id !== null) {\n\t return new EvaluationEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n exceltemplates(): ExceltemplatesEndpoint;\n exceltemplates(id: string): ExceltemplateEndpoint\n \n exceltemplates(id?: string): ExceltemplateEndpoint | ExceltemplatesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new ExceltemplateEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new ExceltemplatesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n references(): ReferencesEndpoint {\n return new ReferencesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): ResultsEndpoint;\n results(resultid: string): ResultEndpoint\n \n results(resultid?: string): ResultEndpoint | ResultsEndpoint {\n if(resultid !== undefined && resultid !== null) {\n\t return new ResultEndpoint(this.restClient, this.ENDPOINT, resultid);\n } else {\n\t return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/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 { CurrentuserEndpoint } from './currentuser';\nimport { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements\"\n * This is a generated file do not change manually!\n */\nexport class RequirementsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/requirements\";\n }\n\n currentuser(): CurrentuserEndpoint {\n return new CurrentuserEndpoint(this.restClient, this.ENDPOINT);\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 { RequirementsEndpoint } from './requirements';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Requirements API.\n *\n * @author semantha\n * Calls the /requirements, 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 RequirementsAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): RequirementsAPI {\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 RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the Requirements 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 Requirements server.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): RequirementsAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements 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 RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): RequirementsAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new RequirementsAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the Requirements API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : RequirementsAPI {\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 RequirementsAPI.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 requirements(): RequirementsEndpoint {\n return new RequirementsEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {c as c$1}from'../../chunk-5PB4IBX4.mjs';import*as W from'fs';var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t){return (await this.restClient.post(this.ENDPOINT,t,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),{},"blob")).toFile()}};var m=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new p(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}};var d=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/aitasks/${this.analysisid}`;}ENDPOINT;pagedresults(){return new l(this.restClient,this.ENDPOINT)}results(){return new m(this.restClient,this.ENDPOINT)}};var E=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/aitasks";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var u=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/report";}ENDPOINT;async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var N=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/analyses";}ENDPOINT;report(){return new u(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}async postJson(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var h=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var c=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/stats";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var y=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;stats(){return new c(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var C=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/analyses/${this.analysisid}`;}ENDPOINT;pagedresults(){return new y(this.restClient,this.ENDPOINT)}results(){return new h(this.restClient,this.ENDPOINT)}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var f=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new f(this.restClient,this.ENDPOINT)}};var g=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/bulk";}ENDPOINT;results(){return new s(this.restClient,this.ENDPOINT)}};var P=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/classifications";}ENDPOINT};var T=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/comments";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var O=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/roles";}ENDPOINT};var D=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/currentuser";}ENDPOINT;roles(){return new O(this.restClient,this.ENDPOINT)}};var v=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/evaluations/${this.id}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/evaluations";}ENDPOINT;async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var I=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/exceltemplates/${this.id}`;}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}};var R=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/new";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var x=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/exceltemplates";}ENDPOINT;new(){return new R(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var w=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/references";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var A=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.resultid=n;this.ENDPOINT=this.parentEndpoint+`/results/${this.resultid}`;}ENDPOINT;comments(){return new T(this.restClient,this.ENDPOINT)}evaluations(){return new o(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var M=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.domainname=n;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;aitasks(t){return t!=null?new d(this.restClient,this.ENDPOINT,t):new E(this.restClient,this.ENDPOINT)}analyses(t){return t!=null?new C(this.restClient,this.ENDPOINT,t):new N(this.restClient,this.ENDPOINT)}bulk(){return new g(this.restClient,this.ENDPOINT)}classifications(){return new P(this.restClient,this.ENDPOINT)}evaluations(t){return t!=null?new v(this.restClient,this.ENDPOINT,t):new o(this.restClient,this.ENDPOINT)}exceltemplates(t){return t!=null?new I(this.restClient,this.ENDPOINT,t):new x(this.restClient,this.ENDPOINT)}references(){return new w(this.restClient,this.ENDPOINT)}results(t){return t!=null?new A(this.restClient,this.ENDPOINT,t):new s(this.restClient,this.ENDPOINT)}};var b=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var S=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/requirements";}ENDPOINT;currentuser(){return new D(this.restClient,this.ENDPOINT)}domains(t){return t!=null?new M(this.restClient,this.ENDPOINT,t):new b(this.restClient,this.ENDPOINT)}};var J="/api",F=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),J)}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)),J)}static loginWithCredentials(t,e,n,H){return t=this.parseServerUrl(t),new r(new c$1(t,void 0,e,n,H),J)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let n=W.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(k=>k.length!==0).map(k=>k.split("=")),H=this.getValueOfInPropertiesFile("serverUrl",n),X=this.getValueOfInPropertiesFile("clientId",n),B=this.getValueOfInPropertiesFile("clientSecret",n),$=this.getValueOfInPropertiesFile("tokenUrl",n);return r.loginWithCredentials(H,X,B,$)}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}requirements(){return new S(this.restClient,this.endpoint())}};export{d as AitaskEndpoint,E as AitasksEndpoint,l as AitasksPagedresultsEndpoint,m as AitasksResultsEndpoint,p as AitasksresultsExportEndpoint,N as AnalysesEndpoint,C as AnalysisEndpoint,h as AnalysisResultsEndpoint,g as BulkEndpoint,P as ClassificationsEndpoint,T as CommentsEndpoint,D as CurrentuserEndpoint,M as DomainEndpoint,b as DomainsEndpoint,v as EvaluationEndpoint,o as EvaluationsEndpoint,I as ExceltemplateEndpoint,x as ExceltemplatesEndpoint,f as ExportEndpoint,R as NewEndpoint,y as PagedresultsEndpoint,w as ReferencesEndpoint,u as ReportEndpoint,F as RequirementsAPI,S as RequirementsEndpoint,A as ResultEndpoint,s as ResultsEndpoint,O as RolesEndpoint,c as StatsEndpoint};//# sourceMappingURL=index.mjs.map
|
|
1
|
+
import {c as c$1}from'../../chunk-HYOHQM5J.mjs';import*as W from'fs';var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t){return (await this.restClient.post(this.ENDPOINT,t,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),{},"blob")).toFile()}};var m=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new p(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}};var d=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/aitasks/${this.analysisid}`;}ENDPOINT;pagedresults(){return new l(this.restClient,this.ENDPOINT)}results(){return new m(this.restClient,this.ENDPOINT)}};var E=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/aitasks";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var u=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/report";}ENDPOINT;async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var N=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/analyses";}ENDPOINT;report(){return new u(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json","multipart/form-data"),t)).toModel()}async postJson(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var h=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var c=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/stats";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var y=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/pagedresults";}ENDPOINT;stats(){return new c(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var C=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.analysisid=n;this.ENDPOINT=this.parentEndpoint+`/analyses/${this.analysisid}`;}ENDPOINT;pagedresults(){return new y(this.restClient,this.ENDPOINT)}results(){return new h(this.restClient,this.ENDPOINT)}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var f=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/export";}ENDPOINT;async postAsXlsx(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t,"blob")).toFile()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/results";}ENDPOINT;export(){return new f(this.restClient,this.ENDPOINT)}};var g=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/bulk";}ENDPOINT;results(){return new s(this.restClient,this.ENDPOINT)}};var P=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/classifications";}ENDPOINT};var T=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/comments";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var O=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/roles";}ENDPOINT};var D=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/currentuser";}ENDPOINT;roles(){return new O(this.restClient,this.ENDPOINT)}};var v=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/evaluations/${this.id}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/evaluations";}ENDPOINT;async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var I=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.id=n;this.ENDPOINT=this.parentEndpoint+`/exceltemplates/${this.id}`;}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async put(t){return (await this.restClient.put(this.ENDPOINT,t)).toModel()}};var R=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/new";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}};var x=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/exceltemplates";}ENDPOINT;new(){return new R(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var w=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/references";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json","multipart/form-data"),t)).toModel()}};var A=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.resultid=n;this.ENDPOINT=this.parentEndpoint+`/results/${this.resultid}`;}ENDPOINT;comments(){return new T(this.restClient,this.ENDPOINT)}evaluations(){return new o(this.restClient,this.ENDPOINT)}async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){return await this.restClient.delete(this.ENDPOINT)}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var M=class{constructor(t,e,n){this.restClient=t;this.parentEndpoint=e;this.domainname=n;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;aitasks(t){return t!=null?new d(this.restClient,this.ENDPOINT,t):new E(this.restClient,this.ENDPOINT)}analyses(t){return t!=null?new C(this.restClient,this.ENDPOINT,t):new N(this.restClient,this.ENDPOINT)}bulk(){return new g(this.restClient,this.ENDPOINT)}classifications(){return new P(this.restClient,this.ENDPOINT)}evaluations(t){return t!=null?new v(this.restClient,this.ENDPOINT,t):new o(this.restClient,this.ENDPOINT)}exceltemplates(t){return t!=null?new I(this.restClient,this.ENDPOINT,t):new x(this.restClient,this.ENDPOINT)}references(){return new w(this.restClient,this.ENDPOINT)}results(t){return t!=null?new A(this.restClient,this.ENDPOINT,t):new s(this.restClient,this.ENDPOINT)}};var b=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var S=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/requirements";}ENDPOINT;currentuser(){return new D(this.restClient,this.ENDPOINT)}domains(t){return t!=null?new M(this.restClient,this.ENDPOINT,t):new b(this.restClient,this.ENDPOINT)}};var J="/api",F=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),J)}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)),J)}static loginWithCredentials(t,e,n,H){return t=this.parseServerUrl(t),new r(new c$1(t,void 0,e,n,H),J)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let n=W.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(k=>k.length!==0).map(k=>k.split("=")),H=this.getValueOfInPropertiesFile("serverUrl",n),X=this.getValueOfInPropertiesFile("clientId",n),B=this.getValueOfInPropertiesFile("clientSecret",n),$=this.getValueOfInPropertiesFile("tokenUrl",n);return r.loginWithCredentials(H,X,B,$)}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}requirements(){return new S(this.restClient,this.endpoint())}};export{d as AitaskEndpoint,E as AitasksEndpoint,l as AitasksPagedresultsEndpoint,m as AitasksResultsEndpoint,p as AitasksresultsExportEndpoint,N as AnalysesEndpoint,C as AnalysisEndpoint,h as AnalysisResultsEndpoint,g as BulkEndpoint,P as ClassificationsEndpoint,T as CommentsEndpoint,D as CurrentuserEndpoint,M as DomainEndpoint,b as DomainsEndpoint,v as EvaluationEndpoint,o as EvaluationsEndpoint,I as ExceltemplateEndpoint,x as ExceltemplatesEndpoint,f as ExportEndpoint,R as NewEndpoint,y as PagedresultsEndpoint,w as ReferencesEndpoint,u as ReportEndpoint,F as RequirementsAPI,S as RequirementsEndpoint,A as ResultEndpoint,s as ResultsEndpoint,O as RolesEndpoint,c as StatsEndpoint};//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|