@semantha/product-sdk 10.1.0 → 10.4.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-BE73RDIS.mjs.map +1 -1
- package/dist/chunk-CA66WME5.js.map +1 -1
- package/dist/chunk-CS7BBFY4.mjs +2 -0
- package/dist/chunk-CS7BBFY4.mjs.map +1 -0
- package/dist/chunk-DURTIKAP.mjs.map +1 -1
- package/dist/chunk-ECNCZBI6.js.map +1 -1
- package/dist/{chunk-NGJU6JRX.js → chunk-J6MTVURL.js} +2 -2
- package/dist/chunk-J6MTVURL.js.map +1 -0
- package/dist/chunk-JCDJ3B7Q.js.map +1 -1
- package/dist/{chunk-4R65LLWL.js → chunk-KFGKXHFV.js} +2 -2
- package/dist/chunk-KFGKXHFV.js.map +1 -0
- package/dist/{chunk-TNZ7KC6A.mjs → chunk-OFG4XO3Z.mjs} +2 -2
- package/dist/chunk-OFG4XO3Z.mjs.map +1 -0
- package/dist/chunk-OHHE5EHF.mjs.map +1 -1
- package/dist/chunk-SJNRBLAC.mjs.map +1 -1
- package/dist/chunk-WFUCUDFC.js.map +1 -1
- package/dist/chunk-YXKZIGLW.mjs.map +1 -1
- package/dist/chunk-ZSFNB534.js.map +1 -1
- package/dist/{eventTypeEnum-B89xECKK.d.mts → eventTypeEnum-Ht9OkfT2.d.mts} +22 -10
- package/dist/{eventTypeEnum-B89xECKK.d.ts → eventTypeEnum-Ht9OkfT2.d.ts} +22 -10
- package/dist/file-box/index.js +1 -1
- package/dist/file-box/index.mjs +1 -1
- package/dist/requirements/api/index.js.map +1 -1
- package/dist/requirements/api/index.mjs.map +1 -1
- package/dist/requirements/model/index.js.map +1 -1
- package/dist/requirements/model/index.mjs.map +1 -1
- package/dist/structure-navigator/api/index.d.mts +7 -1
- package/dist/structure-navigator/api/index.d.ts +7 -1
- package/dist/structure-navigator/api/index.js +1 -1
- package/dist/structure-navigator/api/index.mjs +1 -1
- package/dist/structure-navigator/index.d.mts +1 -1
- package/dist/structure-navigator/index.d.ts +1 -1
- package/dist/structure-navigator/index.js +1 -1
- package/dist/structure-navigator/index.mjs +1 -1
- package/dist/structure-navigator/model/index.d.mts +2 -2
- package/dist/structure-navigator/model/index.d.ts +2 -2
- package/dist/structure-navigator/model/index.js +1 -1
- package/dist/structure-navigator/model/index.mjs +1 -1
- package/dist/table-extractor/api/index.js.map +1 -1
- package/dist/table-extractor/api/index.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-27V2G4KK.mjs +0 -2
- package/dist/chunk-27V2G4KK.mjs.map +0 -1
- package/dist/chunk-4R65LLWL.js.map +0 -1
- package/dist/chunk-NGJU6JRX.js.map +0 -1
- package/dist/chunk-TNZ7KC6A.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../semantha-product-sdk/file-box/api/box.ts","../semantha-product-sdk/file-box/api/boxes.ts","../semantha-product-sdk/file-box/api/domain.ts","../semantha-product-sdk/file-box/api/domains.ts","../semantha-product-sdk/file-box/api/filebox.ts","../semantha-product-sdk/file-box/api/fileBoxAPI.ts"],"names":["BoxEndpoint","restClient","parentEndpoint","id","BoxesEndpoint","body","params","DomainEndpoint","domainname","DomainsEndpoint","FileboxEndpoint","PARENT_ENDPOINT","FileBoxAPI","_FileBoxAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"0DAUaA,IAAAA,CAAAA,CAAN,KAAkB,CAGvB,WAAA,CACmBC,EACAC,CACAC,CAAAA,CAAAA,CACjB,CAHiB,IAAA,CAAA,UAAA,CAAAF,CACA,CAAA,IAAA,CAAA,cAAA,CAAAC,EACA,IAAAC,CAAAA,EAAAA,CAAAA,CAAAA,CAEjB,IAAK,CAAA,QAAA,CAAW,IAAK,CAAA,cAAA,CAAiB,UAAe,IAAK,CAAA,EAAE,CAC9D,EAAA,CARiB,QAUjB,CAAA,MAAM,KAAoB,CACxB,OAAA,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B,GAAIC,CAAAA,CAAK,CAAC,CAAA,GAAMC,EACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,OAAQ,CAAA,KAAA,CAAO,GAAG,CAGrC,CAAA,MAAM,KAAM,CAAA,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAK,CAAA,cACd,CAEA,OAA2B,EAAA,CACzB,OAAO,IAAIb,CAAgB,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CAC7D,CAEF","file":"chunk-YXKZIGLW.mjs","sourcesContent":["import { Box } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains/{domainname}/boxes/{id}\"\n * This is a generated file do not change manually!\n */\nexport class BoxEndpoint {\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 + \"/boxes\" + `/${this.id}`;\n }\n\n async get(): Promise<Box> {\n return (\n await this.restClient.get<Box>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Box } from '../model';\nimport { BoxCreated } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains/{domainname}/boxes\"\n * This is a generated file do not change manually!\n */\nexport class BoxesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/boxes\";\n }\n\n /**\n * @param body Box? - \n */\n async post(\n body: Box,\n params?: {\n uilanguage?: string,\n }): Promise<BoxCreated> {\n return (\n await this.restClient.post<BoxCreated>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { BoxEndpoint } from './box';\nimport { BoxesEndpoint } from './boxes';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/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 boxes(): BoxesEndpoint;\n boxes(id: string): BoxEndpoint\n \n boxes(id?: string): BoxEndpoint | BoxesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new BoxEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new BoxesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/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/filebox\"\n * This is a generated file do not change manually!\n */\nexport class FileboxEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/filebox\";\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 { FileboxEndpoint } from './filebox';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api/v1';\n\n/**\n * Entry point to the FileBox API.\n *\n * @author semantha\n * Calls the /filebox, 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 FileBoxAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the FileBox API\n *\n * @param serverUrl: string - URL to the FileBox server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): FileBoxAPI {\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 FileBoxAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the FileBox API\n *\n * @param serverUrl: string - URL to the FileBox 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 FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): FileBoxAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new FileBoxAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the FileBox API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : FileBoxAPI {\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 FileBoxAPI.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 filebox(): FileboxEndpoint {\n return new FileboxEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/file-box/api/box.ts","../semantha-product-sdk/file-box/api/boxes.ts","../semantha-product-sdk/file-box/api/domain.ts","../semantha-product-sdk/file-box/api/domains.ts","../semantha-product-sdk/file-box/api/filebox.ts","../semantha-product-sdk/file-box/api/fileBoxAPI.ts"],"names":["BoxEndpoint","restClient","parentEndpoint","id","BoxesEndpoint","body","params","DomainEndpoint","domainname","DomainsEndpoint","FileboxEndpoint","PARENT_ENDPOINT","FileBoxAPI","_FileBoxAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"0DAUO,IAAMA,CAAAA,CAAN,KAAk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/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,EAC3CA,CAAAA,CAAYA,CAAAA,CAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,CAAA,CAChEA,EAAU,QAAA,CAAS,oBAAoB,IACjDA,CAAAA,EAAa,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAAA,CAA2BS,CAAAA,CAAmBF,CAAAA,CAA2B,CACtF,QAAWC,CAAAA,IAAQD,CAAAA,CACjB,GAAIC,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,OAAA,EAA2B,CACzB,OAAO,IAAIb,CAAAA,CAAgB,IAAA,CAAK,WAAY,IAAA,CAAK,QAAA,EAAU,CAC7D,CAEF","file":"chunk-YXKZIGLW.mjs","sourcesContent":["import { Box } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains/{domainname}/boxes/{id}\"\n * This is a generated file do not change manually!\n */\nexport class BoxEndpoint {\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 + \"/boxes\" + `/${this.id}`;\n }\n\n async get(): Promise<Box> {\n return (\n await this.restClient.get<Box>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Box } from '../model';\nimport { BoxCreated } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains/{domainname}/boxes\"\n * This is a generated file do not change manually!\n */\nexport class BoxesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/boxes\";\n }\n\n /**\n * @param body Box? - \n */\n async post(\n body: Box,\n params?: {\n uilanguage?: string,\n }): Promise<BoxCreated> {\n return (\n await this.restClient.post<BoxCreated>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { BoxEndpoint } from './box';\nimport { BoxesEndpoint } from './boxes';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/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 boxes(): BoxesEndpoint;\n boxes(id: string): BoxEndpoint\n \n boxes(id?: string): BoxEndpoint | BoxesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new BoxEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new BoxesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/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/filebox\"\n * This is a generated file do not change manually!\n */\nexport class FileboxEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/filebox\";\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 { FileboxEndpoint } from './filebox';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api/v1';\n\n/**\n * Entry point to the FileBox API.\n *\n * @author semantha\n * Calls the /filebox, 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 FileBoxAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the FileBox API\n *\n * @param serverUrl: string - URL to the FileBox server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): FileBoxAPI {\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 FileBoxAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the FileBox API\n *\n * @param serverUrl: string - URL to the FileBox 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 FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): FileBoxAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new FileBoxAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the FileBox API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : FileBoxAPI {\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 FileBoxAPI.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 filebox(): FileboxEndpoint {\n return new FileboxEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../semantha-product-sdk/file-box/model/fileTypeEnum.ts"],"names":["FileTypeEnumValues","isFileTypeEnumValue","value"],"mappings":"aAKO,IAAMA,CAAqB,
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/file-box/model/fileTypeEnum.ts"],"names":["FileTypeEnumValues","isFileTypeEnumValue","value"],"mappings":"aAKO,IAAMA,CAAAA,CAAqB,CAChC,OAAA,CACA,WACF,EAGO,SAASC,CAAAA,CAAoBC,CAAAA,CAAmC,CACrE,OAAOF,CAAAA,CAAmB,QAAA,CAASE,CAAK,CAC1C","file":"chunk-ZSFNB534.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const FileTypeEnumValues = [\n 'INPUT',\n 'REFERENCE'\n] as const;\nexport type FileTypeEnum = (typeof FileTypeEnumValues)[number];\n\nexport function isFileTypeEnumValue(value: any): value is FileTypeEnum {\n return FileTypeEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -169,15 +169,6 @@ declare const DocumentStructureOverviewStatusEnumValues: readonly ["MAPPING", "S
|
|
|
169
169
|
type DocumentStructureOverviewStatusEnum = (typeof DocumentStructureOverviewStatusEnumValues)[number];
|
|
170
170
|
declare function isDocumentStructureOverviewStatusEnumValue(value: any): value is DocumentStructureOverviewStatusEnum;
|
|
171
171
|
|
|
172
|
-
/**
|
|
173
|
-
* @author semantha
|
|
174
|
-
*
|
|
175
|
-
* This is a generated file do not change manually!
|
|
176
|
-
*/
|
|
177
|
-
declare const DocumentStructureStatusEnumValues: readonly ["MAPPING", "STRUCTURE"];
|
|
178
|
-
type DocumentStructureStatusEnum = (typeof DocumentStructureStatusEnumValues)[number];
|
|
179
|
-
declare function isDocumentStructureStatusEnumValue(value: any): value is DocumentStructureStatusEnum;
|
|
180
|
-
|
|
181
172
|
/**
|
|
182
173
|
* @author semantha
|
|
183
174
|
*
|
|
@@ -191,6 +182,27 @@ interface FormatInformationUpdate {
|
|
|
191
182
|
italic?: boolean;
|
|
192
183
|
}
|
|
193
184
|
|
|
185
|
+
/**
|
|
186
|
+
* @author semantha
|
|
187
|
+
*
|
|
188
|
+
* This is a generated file do not change manually!
|
|
189
|
+
*/
|
|
190
|
+
interface DocumentStructureReplaceSections {
|
|
191
|
+
splitByTextTypes?: string[];
|
|
192
|
+
splitByRegex?: string;
|
|
193
|
+
formatInformations?: FormatInformationUpdate[];
|
|
194
|
+
paragraphs?: StructureParagraph[];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @author semantha
|
|
199
|
+
*
|
|
200
|
+
* This is a generated file do not change manually!
|
|
201
|
+
*/
|
|
202
|
+
declare const DocumentStructureStatusEnumValues: readonly ["MAPPING", "STRUCTURE"];
|
|
203
|
+
type DocumentStructureStatusEnum = (typeof DocumentStructureStatusEnumValues)[number];
|
|
204
|
+
declare function isDocumentStructureStatusEnumValue(value: any): value is DocumentStructureStatusEnum;
|
|
205
|
+
|
|
194
206
|
/**
|
|
195
207
|
* @author semantha
|
|
196
208
|
*
|
|
@@ -237,4 +249,4 @@ declare const EventTypeEnumValues: readonly ["MERGED_SECTION", "MOVED_SECTION",
|
|
|
237
249
|
type EventTypeEnum = (typeof EventTypeEnumValues)[number];
|
|
238
250
|
declare function isEventTypeEnumValue(value: any): value is EventTypeEnum;
|
|
239
251
|
|
|
240
|
-
export { type AttributeType as A, type Configuration as C, type DocumentStructure as D, type Event as E, type FormatInformation as F, type ParagraphFormatUpdate as P, type Rect as R, type Section as S, type ConfigurationUpdate as a, type CustomField as b, type DocumentStructureOverview as c, DocumentStructureOverviewStatusEnumValues as d, type DocumentStructureOverviewStatusEnum as e,
|
|
252
|
+
export { type AttributeType as A, type Configuration as C, type DocumentStructure as D, type Event as E, type FormatInformation as F, type ParagraphFormatUpdate as P, type Rect as R, type Section as S, type ConfigurationUpdate as a, type CustomField as b, type DocumentStructureOverview as c, DocumentStructureOverviewStatusEnumValues as d, type DocumentStructureOverviewStatusEnum as e, type DocumentStructureReplaceSections as f, DocumentStructureStatusEnumValues as g, type DocumentStructureStatusEnum as h, isDocumentStructureOverviewStatusEnumValue as i, isDocumentStructureStatusEnumValue as j, type DocumentStructureUpdate as k, EventTypeEnumValues as l, type EventTypeEnum as m, isEventTypeEnumValue as n, type FormatInformationUpdate as o, type StructureAttachment as p, type StructureParagraph as q, type StructureSentence as r };
|
|
@@ -169,15 +169,6 @@ declare const DocumentStructureOverviewStatusEnumValues: readonly ["MAPPING", "S
|
|
|
169
169
|
type DocumentStructureOverviewStatusEnum = (typeof DocumentStructureOverviewStatusEnumValues)[number];
|
|
170
170
|
declare function isDocumentStructureOverviewStatusEnumValue(value: any): value is DocumentStructureOverviewStatusEnum;
|
|
171
171
|
|
|
172
|
-
/**
|
|
173
|
-
* @author semantha
|
|
174
|
-
*
|
|
175
|
-
* This is a generated file do not change manually!
|
|
176
|
-
*/
|
|
177
|
-
declare const DocumentStructureStatusEnumValues: readonly ["MAPPING", "STRUCTURE"];
|
|
178
|
-
type DocumentStructureStatusEnum = (typeof DocumentStructureStatusEnumValues)[number];
|
|
179
|
-
declare function isDocumentStructureStatusEnumValue(value: any): value is DocumentStructureStatusEnum;
|
|
180
|
-
|
|
181
172
|
/**
|
|
182
173
|
* @author semantha
|
|
183
174
|
*
|
|
@@ -191,6 +182,27 @@ interface FormatInformationUpdate {
|
|
|
191
182
|
italic?: boolean;
|
|
192
183
|
}
|
|
193
184
|
|
|
185
|
+
/**
|
|
186
|
+
* @author semantha
|
|
187
|
+
*
|
|
188
|
+
* This is a generated file do not change manually!
|
|
189
|
+
*/
|
|
190
|
+
interface DocumentStructureReplaceSections {
|
|
191
|
+
splitByTextTypes?: string[];
|
|
192
|
+
splitByRegex?: string;
|
|
193
|
+
formatInformations?: FormatInformationUpdate[];
|
|
194
|
+
paragraphs?: StructureParagraph[];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @author semantha
|
|
199
|
+
*
|
|
200
|
+
* This is a generated file do not change manually!
|
|
201
|
+
*/
|
|
202
|
+
declare const DocumentStructureStatusEnumValues: readonly ["MAPPING", "STRUCTURE"];
|
|
203
|
+
type DocumentStructureStatusEnum = (typeof DocumentStructureStatusEnumValues)[number];
|
|
204
|
+
declare function isDocumentStructureStatusEnumValue(value: any): value is DocumentStructureStatusEnum;
|
|
205
|
+
|
|
194
206
|
/**
|
|
195
207
|
* @author semantha
|
|
196
208
|
*
|
|
@@ -237,4 +249,4 @@ declare const EventTypeEnumValues: readonly ["MERGED_SECTION", "MOVED_SECTION",
|
|
|
237
249
|
type EventTypeEnum = (typeof EventTypeEnumValues)[number];
|
|
238
250
|
declare function isEventTypeEnumValue(value: any): value is EventTypeEnum;
|
|
239
251
|
|
|
240
|
-
export { type AttributeType as A, type Configuration as C, type DocumentStructure as D, type Event as E, type FormatInformation as F, type ParagraphFormatUpdate as P, type Rect as R, type Section as S, type ConfigurationUpdate as a, type CustomField as b, type DocumentStructureOverview as c, DocumentStructureOverviewStatusEnumValues as d, type DocumentStructureOverviewStatusEnum as e,
|
|
252
|
+
export { type AttributeType as A, type Configuration as C, type DocumentStructure as D, type Event as E, type FormatInformation as F, type ParagraphFormatUpdate as P, type Rect as R, type Section as S, type ConfigurationUpdate as a, type CustomField as b, type DocumentStructureOverview as c, DocumentStructureOverviewStatusEnumValues as d, type DocumentStructureOverviewStatusEnum as e, type DocumentStructureReplaceSections as f, DocumentStructureStatusEnumValues as g, type DocumentStructureStatusEnum as h, isDocumentStructureOverviewStatusEnumValue as i, isDocumentStructureStatusEnumValue as j, type DocumentStructureUpdate as k, EventTypeEnumValues as l, type EventTypeEnum as m, isEventTypeEnumValue as n, type FormatInformationUpdate as o, type StructureAttachment as p, type StructureParagraph as q, type StructureSentence as r };
|
package/dist/file-box/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var chunkCA66WME5_js=require('../chunk-CA66WME5.js')
|
|
1
|
+
'use strict';var chunkCA66WME5_js=require('../chunk-CA66WME5.js'),chunkZSFNB534_js=require('../chunk-ZSFNB534.js');require('../chunk-WFUCUDFC.js');Object.defineProperty(exports,"BoxEndpoint",{enumerable:true,get:function(){return chunkCA66WME5_js.a}});Object.defineProperty(exports,"BoxesEndpoint",{enumerable:true,get:function(){return chunkCA66WME5_js.b}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkCA66WME5_js.c}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkCA66WME5_js.d}});Object.defineProperty(exports,"FileBoxAPI",{enumerable:true,get:function(){return chunkCA66WME5_js.f}});Object.defineProperty(exports,"FileboxEndpoint",{enumerable:true,get:function(){return chunkCA66WME5_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-YXKZIGLW.mjs';
|
|
1
|
+
export{a as BoxEndpoint,b as BoxesEndpoint,c as DomainEndpoint,d as DomainsEndpoint,f as FileBoxAPI,e as FileboxEndpoint}from'../chunk-YXKZIGLW.mjs';export{a as FileTypeEnumValues,b as isFileTypeEnumValue}from'../chunk-DURTIKAP.mjs';import'../chunk-OHHE5EHF.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../semantha-product-sdk/requirements/api/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisExport.ts","../../../semantha-product-sdk/requirements/api/analysisAnswers.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":["ReportEndpoint","restClient","parentEndpoint","body","params","AnalysesEndpoint","data","AnalysisExportEndpoint","AnalysisAnswersEndpoint","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","analysisid","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","J","line","searchKey"],"mappings":"2bAUaA,IAAAA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,IAAAC,CAAAA,cAAAA,CAAAA,CAAAA,CAEjB,KAAK,Q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A,CACnC,OAAO,IAAId,CAAqB,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CAClE,CAEF","file":"index.js","sourcesContent":["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 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 * @param type string? - \n * @param promptid string? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: 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 type?: string,\n promptid?: string,\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 { 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/answers/export\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisExportEndpoint {\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 { AnalysisExportEndpoint } from './analysisExport';\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}/analyses/{analysisid}/results/answers\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisAnswersEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/answers\";\n }\n\n export(): AnalysisExportEndpoint {\n return new AnalysisExportEndpoint(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 { AnalysisAnswersEndpoint } from './analysisAnswers';\nimport { 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 answers(): AnalysisAnswersEndpoint {\n return new AnalysisAnswersEndpoint(this.restClient, this.ENDPOINT);\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 }): 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 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 { Classification } 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}/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 async get(): Promise<Classification[]> {\n return (\n await this.restClient.get<Classification[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\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 { MediaType } from '../../rest';\nimport { 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 /**\n * Get the role/s of the current user.\n */\n async get(): Promise<string[]> {\n return (\n await this.restClient.get<string[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { CurrentUser } from '../model';\nimport { MediaType } from '../../rest';\nimport { 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 /**\n * Get information about the current user.\n */\n async get(): Promise<CurrentUser> {\n return (\n await this.restClient.get<CurrentUser>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\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}/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 documentclassids string[]? - \n * @param mode ModeEnum? - \n */\n async post(data: {\n file?: AnalysisInput,\n referencedocument?: Blob,\n tags?: string,\n similaritythreshold?: 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 { 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 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 * 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/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisExport.ts","../../../semantha-product-sdk/requirements/api/analysisAnswers.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":["ReportEndpoint","restClient","parentEndpoint","body","params","AnalysesEndpoint","data","AnalysisExportEndpoint","AnalysisAnswersEndpoint","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","analysisid","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","J","line","searchKey"],"mappings":"2bAUO,IAAMA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,CAAAA,CAEjB,KAAK,QA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AAA,EAAU,CAClE,CAEF","file":"index.js","sourcesContent":["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 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 * @param type string? - \n * @param promptid string? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: 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 type?: string,\n promptid?: string,\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 { 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/answers/export\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisExportEndpoint {\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 { AnalysisExportEndpoint } from './analysisExport';\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}/analyses/{analysisid}/results/answers\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisAnswersEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/answers\";\n }\n\n export(): AnalysisExportEndpoint {\n return new AnalysisExportEndpoint(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 { AnalysisAnswersEndpoint } from './analysisAnswers';\nimport { 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 answers(): AnalysisAnswersEndpoint {\n return new AnalysisAnswersEndpoint(this.restClient, this.ENDPOINT);\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 }): 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 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 { Classification } 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}/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 async get(): Promise<Classification[]> {\n return (\n await this.restClient.get<Classification[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\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 { MediaType } from '../../rest';\nimport { 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 /**\n * Get the role/s of the current user.\n */\n async get(): Promise<string[]> {\n return (\n await this.restClient.get<string[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { CurrentUser } from '../model';\nimport { MediaType } from '../../rest';\nimport { 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 /**\n * Get information about the current user.\n */\n async get(): Promise<CurrentUser> {\n return (\n await this.restClient.get<CurrentUser>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\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}/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 documentclassids string[]? - \n * @param mode ModeEnum? - \n */\n async post(data: {\n file?: AnalysisInput,\n referencedocument?: Blob,\n tags?: string,\n similaritythreshold?: 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 { 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 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 * 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}"]}
|