@semantha/product-sdk 10.5.0 → 10.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +4 -2
  2. package/dist/chunk-23JGNEMY.mjs +2 -0
  3. package/dist/chunk-23JGNEMY.mjs.map +1 -0
  4. package/dist/chunk-KHRCSPJC.js +2 -0
  5. package/dist/chunk-KHRCSPJC.js.map +1 -0
  6. package/dist/chunk-KLBX4FVS.js +2 -0
  7. package/dist/chunk-KLBX4FVS.js.map +1 -0
  8. package/dist/chunk-LBYB72RT.mjs +2 -0
  9. package/dist/chunk-LBYB72RT.mjs.map +1 -0
  10. package/dist/{chunk-J6MTVURL.js → chunk-PMYUIYR3.js} +2 -2
  11. package/dist/chunk-PMYUIYR3.js.map +1 -0
  12. package/dist/chunk-PU2IRAN7.mjs +2 -0
  13. package/dist/chunk-PU2IRAN7.mjs.map +1 -0
  14. package/dist/{chunk-CS7BBFY4.mjs → chunk-THA6X4VS.mjs} +2 -2
  15. package/dist/chunk-THA6X4VS.mjs.map +1 -0
  16. package/dist/chunk-XRW3IJJB.js +2 -0
  17. package/dist/chunk-XRW3IJJB.js.map +1 -0
  18. package/dist/file-box/api/index.d.mts +8 -0
  19. package/dist/file-box/api/index.d.ts +8 -0
  20. package/dist/file-box/api/index.js +1 -1
  21. package/dist/file-box/api/index.mjs +1 -1
  22. package/dist/file-box/index.js +1 -1
  23. package/dist/file-box/index.mjs +1 -1
  24. package/dist/requirements/api/index.d.mts +8 -0
  25. package/dist/requirements/api/index.d.ts +8 -0
  26. package/dist/requirements/api/index.js +1 -1
  27. package/dist/requirements/api/index.js.map +1 -1
  28. package/dist/requirements/api/index.mjs +1 -1
  29. package/dist/requirements/api/index.mjs.map +1 -1
  30. package/dist/rest/index.d.mts +3 -1
  31. package/dist/rest/index.d.ts +3 -1
  32. package/dist/rest/index.js +1 -1
  33. package/dist/rest/index.mjs +1 -1
  34. package/dist/structure-navigator/api/index.d.mts +8 -0
  35. package/dist/structure-navigator/api/index.d.ts +8 -0
  36. package/dist/structure-navigator/api/index.js +1 -1
  37. package/dist/structure-navigator/api/index.mjs +1 -1
  38. package/dist/structure-navigator/index.js +1 -1
  39. package/dist/structure-navigator/index.mjs +1 -1
  40. package/dist/table-extractor/api/index.d.mts +8 -0
  41. package/dist/table-extractor/api/index.d.ts +8 -0
  42. package/dist/table-extractor/api/index.js +1 -1
  43. package/dist/table-extractor/api/index.js.map +1 -1
  44. package/dist/table-extractor/api/index.mjs +1 -1
  45. package/dist/table-extractor/api/index.mjs.map +1 -1
  46. package/dist/tracking/api/index.d.mts +8 -0
  47. package/dist/tracking/api/index.d.ts +8 -0
  48. package/dist/tracking/api/index.js +1 -1
  49. package/dist/tracking/api/index.mjs +1 -1
  50. package/dist/tracking/index.js +1 -1
  51. package/dist/tracking/index.mjs +1 -1
  52. package/package.json +2 -2
  53. package/dist/chunk-CA66WME5.js +0 -2
  54. package/dist/chunk-CA66WME5.js.map +0 -1
  55. package/dist/chunk-CS7BBFY4.mjs.map +0 -1
  56. package/dist/chunk-ECNCZBI6.js +0 -2
  57. package/dist/chunk-ECNCZBI6.js.map +0 -1
  58. package/dist/chunk-J6MTVURL.js.map +0 -1
  59. package/dist/chunk-OHHE5EHF.mjs +0 -2
  60. package/dist/chunk-OHHE5EHF.mjs.map +0 -1
  61. package/dist/chunk-SJNRBLAC.mjs +0 -2
  62. package/dist/chunk-SJNRBLAC.mjs.map +0 -1
  63. package/dist/chunk-WFUCUDFC.js +0 -2
  64. package/dist/chunk-WFUCUDFC.js.map +0 -1
  65. package/dist/chunk-YXKZIGLW.mjs +0 -2
  66. package/dist/chunk-YXKZIGLW.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../semantha-product-sdk/requirements/api/aitasksresultsExport.ts","../../../semantha-product-sdk/requirements/api/aitasksResults.ts","../../../semantha-product-sdk/requirements/api/aitask.ts","../../../semantha-product-sdk/requirements/api/aitasks.ts","../../../semantha-product-sdk/requirements/api/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisResults.ts","../../../semantha-product-sdk/requirements/api/stats.ts","../../../semantha-product-sdk/requirements/api/pagedresults.ts","../../../semantha-product-sdk/requirements/api/analysis.ts","../../../semantha-product-sdk/requirements/api/export.ts","../../../semantha-product-sdk/requirements/api/results.ts","../../../semantha-product-sdk/requirements/api/bulk.ts","../../../semantha-product-sdk/requirements/api/classifications.ts","../../../semantha-product-sdk/requirements/api/comments.ts","../../../semantha-product-sdk/requirements/api/roles.ts","../../../semantha-product-sdk/requirements/api/currentuser.ts","../../../semantha-product-sdk/requirements/api/evaluation.ts","../../../semantha-product-sdk/requirements/api/evaluations.ts","../../../semantha-product-sdk/requirements/api/exceltemplate.ts","../../../semantha-product-sdk/requirements/api/new.ts","../../../semantha-product-sdk/requirements/api/exceltemplates.ts","../../../semantha-product-sdk/requirements/api/references.ts","../../../semantha-product-sdk/requirements/api/result.ts","../../../semantha-product-sdk/requirements/api/domain.ts","../../../semantha-product-sdk/requirements/api/domains.ts","../../../semantha-product-sdk/requirements/api/requirements.ts","../../../semantha-product-sdk/requirements/api/requirementsAPI.ts"],"names":["AitasksresultsExportEndpoint","restClient","parentEndpoint","params","AitasksResultsEndpoint","AitaskEndpoint","analysisid","AitasksEndpoint","body","ReportEndpoint","AnalysesEndpoint","data","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","ExportEndpoint","ResultsEndpoint","BulkEndpoint","ClassificationsEndpoint","CommentsEndpoint","RolesEndpoint","CurrentuserEndpoint","EvaluationEndpoint","id","EvaluationsEndpoint","ExceltemplateEndpoint","NewEndpoint","ExceltemplatesEndpoint","ReferencesEndpoint","ResultEndpoint","resultid","DomainEndpoint","domainname","DomainsEndpoint","RequirementsEndpoint","PARENT_ENDPOINT","RequirementsAPI","_RequirementsAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl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,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,YAAA,EAAqC,CACnC,OAAO,IAAIb,CAAAA,CAAqB,IAAA,CAAK,WAAY,IAAA,CAAK,QAAA,EAAU,CAClE,CAEF","file":"index.mjs","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class AitasksresultsExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n async postAsXlsx(params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n {},\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { AitasksresultsExportEndpoint } from './aitasksresultsExport';\nimport { MediaType } from '../../rest';\nimport { PromptResult } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AitasksResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): AitasksresultsExportEndpoint {\n return new AitasksresultsExportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<PromptResult[]> {\n return (\n await this.restClient.get<PromptResult[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AitasksResultsEndpoint } from './aitasksResults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AitaskEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\" + `/${this.analysisid}`;\n }\n\n results(): AitasksResultsEndpoint {\n return new AitasksResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { AiTaskInput } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks\"\n * This is a generated file do not change manually!\n */\nexport class AitasksEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\";\n }\n\n /**\n * @param body AiTaskInput? - \n */\n async post(\n body?: AiTaskInput,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysesReport } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/report\"\n * This is a generated file do not change manually!\n */\nexport class ReportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/report\";\n }\n\n /**\n * @param body string[]? - \n */\n async post(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<AnalysesReport> {\n return (\n await this.restClient.post<AnalysesReport>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n \n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisCreation } from '../model';\nimport { AnalysisInput } from '../model';\nimport { FormDataContentDisposition } from '../model';\nimport { MediaType } from '../../rest';\nimport { ReportEndpoint } from './report';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses\"\n * This is a generated file do not change manually!\n */\nexport class AnalysesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\";\n }\n\n report(): ReportEndpoint {\n return new ReportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Analysis[]> {\n return (\n await this.restClient.get<Analysis[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param file FormDataContentDisposition? - \n * @param analysisdata AnalysisInput[]? - \n * @param similaritythreshold number? - \n * @param strategy string? - \n * @param name string? - \n * @param maxreferences number? - \n * @param tags string? - \n * @param documentclassids string[]? - \n * @param goodmatchesthreshold number? - \n * @param matchallreferences boolean? - \n * @param showdocscore boolean? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: number,\n strategy?: string,\n name?: string,\n maxreferences?: number,\n tags?: string,\n documentclassids?: string[],\n goodmatchesthreshold?: number,\n matchallreferences?: boolean,\n showdocscore?: boolean,\n }): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n \n /**\n * @param body AnalysisCreation? - \n */\n async postJson(\n body?: AnalysisCreation,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisResultOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n async get(params?: {\n withdetails?: boolean,\n }): Promise<AnalysisResultOverview[]> {\n return (\n await this.restClient.get<AnalysisResultOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsStatsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults/stats\"\n * This is a generated file do not change manually!\n */\nexport class StatsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/stats\";\n }\n\n async get(params?: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n }): Promise<AnalysisResultsStatsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsStatsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { StatsEndpoint } from './stats';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class PagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n stats(): StatsEndpoint {\n return new StatsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n limit: number,\n offset: number,\n }): Promise<AnalysisResultsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisResultsEndpoint } from './analysisResults';\nimport { Entity } from '../model';\nimport { PagedresultsEndpoint } from './pagedresults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\" + `/${this.analysisid}`;\n }\n\n pagedresults(): PagedresultsEndpoint {\n return new PagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AnalysisResultsEndpoint {\n return new AnalysisResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Entity - \n */\n async patch(\n body: Entity,\n ): Promise<Analysis> {\n return (\n await this.restClient.patch<Analysis>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class ExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { ExportEndpoint } from './export';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results\"\n * This is a generated file do not change manually!\n */\nexport class ResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): ExportEndpoint {\n return new ExportEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/bulk\"\n * This is a generated file do not change manually!\n */\nexport class BulkEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/bulk\";\n }\n\n results(): ResultsEndpoint {\n return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { 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 { AitaskEndpoint } from './aitask';\nimport { AitasksEndpoint } from './aitasks';\nimport { AnalysesEndpoint } from './analyses';\nimport { AnalysisEndpoint } from './analysis';\nimport { BulkEndpoint } from './bulk';\nimport { ClassificationsEndpoint } from './classifications';\nimport { EvaluationEndpoint } from './evaluation';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { ExceltemplateEndpoint } from './exceltemplate';\nimport { ExceltemplatesEndpoint } from './exceltemplates';\nimport { ReferencesEndpoint } from './references';\nimport { RestClient } from '../../rest';\nimport { ResultEndpoint } from './result';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n aitasks(): AitasksEndpoint;\n aitasks(analysisid: string): AitaskEndpoint\n \n aitasks(analysisid?: string): AitaskEndpoint | AitasksEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AitaskEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AitasksEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n analyses(): AnalysesEndpoint;\n analyses(analysisid: string): AnalysisEndpoint\n \n analyses(analysisid?: string): AnalysisEndpoint | AnalysesEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AnalysisEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AnalysesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n bulk(): BulkEndpoint {\n return new BulkEndpoint(this.restClient, this.ENDPOINT);\n }\n\n classifications(): ClassificationsEndpoint {\n return new ClassificationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint;\n evaluations(id: string): EvaluationEndpoint\n \n evaluations(id?: string): EvaluationEndpoint | EvaluationsEndpoint {\n if(id !== undefined && id !== null) {\n\t return new EvaluationEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n exceltemplates(): ExceltemplatesEndpoint;\n exceltemplates(id: string): ExceltemplateEndpoint\n \n exceltemplates(id?: string): ExceltemplateEndpoint | ExceltemplatesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new ExceltemplateEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new ExceltemplatesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n references(): ReferencesEndpoint {\n return new ReferencesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): ResultsEndpoint;\n results(resultid: string): ResultEndpoint\n \n results(resultid?: string): ResultEndpoint | ResultsEndpoint {\n if(resultid !== undefined && resultid !== null) {\n\t return new ResultEndpoint(this.restClient, this.ENDPOINT, resultid);\n } else {\n\t return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { CurrentuserEndpoint } from './currentuser';\nimport { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements\"\n * This is a generated file do not change manually!\n */\nexport class RequirementsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/requirements\";\n }\n\n currentuser(): CurrentuserEndpoint {\n return new CurrentuserEndpoint(this.restClient, this.ENDPOINT);\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { RequirementsEndpoint } from './requirements';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Requirements API.\n *\n * @author semantha\n * Calls the /requirements, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class RequirementsAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): RequirementsAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * 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/aitasksresultsExport.ts","../../../semantha-product-sdk/requirements/api/aitasksResults.ts","../../../semantha-product-sdk/requirements/api/aitask.ts","../../../semantha-product-sdk/requirements/api/aitasks.ts","../../../semantha-product-sdk/requirements/api/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisResults.ts","../../../semantha-product-sdk/requirements/api/stats.ts","../../../semantha-product-sdk/requirements/api/pagedresults.ts","../../../semantha-product-sdk/requirements/api/analysis.ts","../../../semantha-product-sdk/requirements/api/export.ts","../../../semantha-product-sdk/requirements/api/results.ts","../../../semantha-product-sdk/requirements/api/bulk.ts","../../../semantha-product-sdk/requirements/api/classifications.ts","../../../semantha-product-sdk/requirements/api/comments.ts","../../../semantha-product-sdk/requirements/api/roles.ts","../../../semantha-product-sdk/requirements/api/currentuser.ts","../../../semantha-product-sdk/requirements/api/evaluation.ts","../../../semantha-product-sdk/requirements/api/evaluations.ts","../../../semantha-product-sdk/requirements/api/exceltemplate.ts","../../../semantha-product-sdk/requirements/api/new.ts","../../../semantha-product-sdk/requirements/api/exceltemplates.ts","../../../semantha-product-sdk/requirements/api/references.ts","../../../semantha-product-sdk/requirements/api/result.ts","../../../semantha-product-sdk/requirements/api/domain.ts","../../../semantha-product-sdk/requirements/api/domains.ts","../../../semantha-product-sdk/requirements/api/requirements.ts","../../../semantha-product-sdk/requirements/api/requirementsAPI.ts"],"names":["AitasksresultsExportEndpoint","restClient","parentEndpoint","params","AitasksResultsEndpoint","AitaskEndpoint","analysisid","AitasksEndpoint","body","ReportEndpoint","AnalysesEndpoint","data","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","ExportEndpoint","ResultsEndpoint","BulkEndpoint","ClassificationsEndpoint","CommentsEndpoint","RolesEndpoint","CurrentuserEndpoint","EvaluationEndpoint","id","EvaluationsEndpoint","ExceltemplateEndpoint","NewEndpoint","ExceltemplatesEndpoint","ReferencesEndpoint","ResultEndpoint","resultid","DomainEndpoint","domainname","DomainsEndpoint","RequirementsEndpoint","PARENT_ENDPOINT","RequirementsAPI","_RequirementsAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEASO,IAA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A,CAAU,QAAA,CAAS,GAAG,CAAA,GACxBA,CAAAA,CAAYA,EAAU,KAAA,CAAM,CAAA,CAAG,EAAE,CAAA,CAAA,CAE/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,CAAA,CAC3CA,CAAAA,CAAYA,CAAAA,CAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,EAChEA,CAAAA,CAAU,QAAA,CAAS,oBAAoB,CAAA,GACjDA,CAAAA,EAAa,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAAA,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,YAAA,EAAqC,CACnC,OAAO,IAAIb,CAAAA,CAAqB,IAAA,CAAK,WAAY,IAAA,CAAK,QAAA,EAAU,CAClE,CAEF","file":"index.mjs","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class AitasksresultsExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n async postAsXlsx(params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n {},\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { AitasksresultsExportEndpoint } from './aitasksresultsExport';\nimport { MediaType } from '../../rest';\nimport { PromptResult } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AitasksResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): AitasksresultsExportEndpoint {\n return new AitasksresultsExportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<PromptResult[]> {\n return (\n await this.restClient.get<PromptResult[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AitasksResultsEndpoint } from './aitasksResults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AitaskEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\" + `/${this.analysisid}`;\n }\n\n results(): AitasksResultsEndpoint {\n return new AitasksResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { AiTaskInput } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/aitasks\"\n * This is a generated file do not change manually!\n */\nexport class AitasksEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/aitasks\";\n }\n\n /**\n * @param body AiTaskInput? - \n */\n async post(\n body?: AiTaskInput,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysesReport } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/report\"\n * This is a generated file do not change manually!\n */\nexport class ReportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/report\";\n }\n\n /**\n * @param body string[]? - \n */\n async post(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<AnalysesReport> {\n return (\n await this.restClient.post<AnalysesReport>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n \n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisCreation } from '../model';\nimport { AnalysisInput } from '../model';\nimport { FormDataContentDisposition } from '../model';\nimport { MediaType } from '../../rest';\nimport { ReportEndpoint } from './report';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses\"\n * This is a generated file do not change manually!\n */\nexport class AnalysesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\";\n }\n\n report(): ReportEndpoint {\n return new ReportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Analysis[]> {\n return (\n await this.restClient.get<Analysis[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param file FormDataContentDisposition? - \n * @param analysisdata AnalysisInput[]? - \n * @param similaritythreshold number? - \n * @param strategy string? - \n * @param name string? - \n * @param maxreferences number? - \n * @param tags string? - \n * @param documentclassids string[]? - \n * @param goodmatchesthreshold number? - \n * @param matchallreferences boolean? - \n * @param showdocscore boolean? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: number,\n strategy?: string,\n name?: string,\n maxreferences?: number,\n tags?: string,\n documentclassids?: string[],\n goodmatchesthreshold?: number,\n matchallreferences?: boolean,\n showdocscore?: boolean,\n }): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n \n /**\n * @param body AnalysisCreation? - \n */\n async postJson(\n body?: AnalysisCreation,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisResultOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n async get(params?: {\n withdetails?: boolean,\n }): Promise<AnalysisResultOverview[]> {\n return (\n await this.restClient.get<AnalysisResultOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsStatsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults/stats\"\n * This is a generated file do not change manually!\n */\nexport class StatsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/stats\";\n }\n\n async get(params?: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n }): Promise<AnalysisResultsStatsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsStatsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { StatsEndpoint } from './stats';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class PagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n stats(): StatsEndpoint {\n return new StatsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n samescorematches?: boolean,\n sort?: string,\n limit: number,\n offset: number,\n }): Promise<AnalysisResultsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisResultsEndpoint } from './analysisResults';\nimport { Entity } from '../model';\nimport { PagedresultsEndpoint } from './pagedresults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\" + `/${this.analysisid}`;\n }\n\n pagedresults(): PagedresultsEndpoint {\n return new PagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AnalysisResultsEndpoint {\n return new AnalysisResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Entity - \n */\n async patch(\n body: Entity,\n ): Promise<Analysis> {\n return (\n await this.restClient.patch<Analysis>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class ExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { ExportEndpoint } from './export';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results\"\n * This is a generated file do not change manually!\n */\nexport class ResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): ExportEndpoint {\n return new ExportEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/bulk\"\n * This is a generated file do not change manually!\n */\nexport class BulkEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/bulk\";\n }\n\n results(): ResultsEndpoint {\n return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { 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 { AitaskEndpoint } from './aitask';\nimport { AitasksEndpoint } from './aitasks';\nimport { AnalysesEndpoint } from './analyses';\nimport { AnalysisEndpoint } from './analysis';\nimport { BulkEndpoint } from './bulk';\nimport { ClassificationsEndpoint } from './classifications';\nimport { EvaluationEndpoint } from './evaluation';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { ExceltemplateEndpoint } from './exceltemplate';\nimport { ExceltemplatesEndpoint } from './exceltemplates';\nimport { ReferencesEndpoint } from './references';\nimport { RestClient } from '../../rest';\nimport { ResultEndpoint } from './result';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n aitasks(): AitasksEndpoint;\n aitasks(analysisid: string): AitaskEndpoint\n \n aitasks(analysisid?: string): AitaskEndpoint | AitasksEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AitaskEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AitasksEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n analyses(): AnalysesEndpoint;\n analyses(analysisid: string): AnalysisEndpoint\n \n analyses(analysisid?: string): AnalysisEndpoint | AnalysesEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AnalysisEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AnalysesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n bulk(): BulkEndpoint {\n return new BulkEndpoint(this.restClient, this.ENDPOINT);\n }\n\n classifications(): ClassificationsEndpoint {\n return new ClassificationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint;\n evaluations(id: string): EvaluationEndpoint\n \n evaluations(id?: string): EvaluationEndpoint | EvaluationsEndpoint {\n if(id !== undefined && id !== null) {\n\t return new EvaluationEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n exceltemplates(): ExceltemplatesEndpoint;\n exceltemplates(id: string): ExceltemplateEndpoint\n \n exceltemplates(id?: string): ExceltemplateEndpoint | ExceltemplatesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new ExceltemplateEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new ExceltemplatesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n references(): ReferencesEndpoint {\n return new ReferencesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): ResultsEndpoint;\n results(resultid: string): ResultEndpoint\n \n results(resultid?: string): ResultEndpoint | ResultsEndpoint {\n if(resultid !== undefined && resultid !== null) {\n\t return new ResultEndpoint(this.restClient, this.ENDPOINT, resultid);\n } else {\n\t return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { CurrentuserEndpoint } from './currentuser';\nimport { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements\"\n * This is a generated file do not change manually!\n */\nexport class RequirementsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/requirements\";\n }\n\n currentuser(): CurrentuserEndpoint {\n return new CurrentuserEndpoint(this.restClient, this.ENDPOINT);\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { RequirementsEndpoint } from './requirements';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Requirements API.\n *\n * @author semantha\n * Calls the /requirements, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class RequirementsAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): RequirementsAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the Requirements API, when there is a auth proxy in place to handle the addition of the Authorization header\n *\n * @param serverUrl: string - URL to the Requirements server.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): RequirementsAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): RequirementsAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new RequirementsAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the Requirements API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : RequirementsAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return RequirementsAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n requirements(): RequirementsEndpoint {\n return new RequirementsEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
@@ -17,7 +17,8 @@ declare enum MediaType {
17
17
  ZIP = "application/zip",
18
18
  REQIFZ = "application/reqifz",
19
19
  PNG = "image/png",
20
- BINARY = "application/octet-stream"
20
+ BINARY = "application/octet-stream",
21
+ TEXT_PLAIN = "text/plain"
21
22
  }
22
23
  declare class RestClient {
23
24
  private readonly serverUrl;
@@ -28,6 +29,7 @@ declare class RestClient {
28
29
  private static readonly LEEWAY;
29
30
  private expireTime;
30
31
  private accessToken;
32
+ private skipAuthHeader;
31
33
  constructor(serverUrl: string, apiKey?: string | undefined, clientId?: string | undefined, client_secret?: string | undefined, tokenUrl?: string | undefined);
32
34
  buildHeadersForJsonRequest(): Promise<{
33
35
  [key: string]: string;
@@ -17,7 +17,8 @@ declare enum MediaType {
17
17
  ZIP = "application/zip",
18
18
  REQIFZ = "application/reqifz",
19
19
  PNG = "image/png",
20
- BINARY = "application/octet-stream"
20
+ BINARY = "application/octet-stream",
21
+ TEXT_PLAIN = "text/plain"
21
22
  }
22
23
  declare class RestClient {
23
24
  private readonly serverUrl;
@@ -28,6 +29,7 @@ declare class RestClient {
28
29
  private static readonly LEEWAY;
29
30
  private expireTime;
30
31
  private accessToken;
32
+ private skipAuthHeader;
31
33
  constructor(serverUrl: string, apiKey?: string | undefined, clientId?: string | undefined, client_secret?: string | undefined, tokenUrl?: string | undefined);
32
34
  buildHeadersForJsonRequest(): Promise<{
33
35
  [key: string]: string;
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkWFUCUDFC_js=require('../chunk-WFUCUDFC.js');Object.defineProperty(exports,"MediaType",{enumerable:true,get:function(){return chunkWFUCUDFC_js.b}});Object.defineProperty(exports,"RestClient",{enumerable:true,get:function(){return chunkWFUCUDFC_js.c}});Object.defineProperty(exports,"RestResponse",{enumerable:true,get:function(){return chunkWFUCUDFC_js.a}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkKHRCSPJC_js=require('../chunk-KHRCSPJC.js');Object.defineProperty(exports,"MediaType",{enumerable:true,get:function(){return chunkKHRCSPJC_js.b}});Object.defineProperty(exports,"RestClient",{enumerable:true,get:function(){return chunkKHRCSPJC_js.c}});Object.defineProperty(exports,"RestResponse",{enumerable:true,get:function(){return chunkKHRCSPJC_js.a}});//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{b as MediaType,c as RestClient,a as RestResponse}from'../chunk-OHHE5EHF.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{b as MediaType,c as RestClient,a as RestResponse}from'../chunk-PU2IRAN7.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -289,6 +289,14 @@ declare class StructureNavigatorAPI {
289
289
  * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.
290
290
  */
291
291
  static loginWithApiKey(serverUrl: string, apiKey: string): StructureNavigatorAPI;
292
+ /**
293
+ * Access to the StructureNavigator API, when there is a auth proxy in place to handle the addition of the Authorization header
294
+ *
295
+ * @param serverUrl: string - URL to the StructureNavigator server.
296
+ *
297
+ * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.
298
+ */
299
+ static loginWithAuthProxy(serverUrl: string): StructureNavigatorAPI;
292
300
  /**
293
301
  * Access to the StructureNavigator API
294
302
  *
@@ -289,6 +289,14 @@ declare class StructureNavigatorAPI {
289
289
  * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.
290
290
  */
291
291
  static loginWithApiKey(serverUrl: string, apiKey: string): StructureNavigatorAPI;
292
+ /**
293
+ * Access to the StructureNavigator API, when there is a auth proxy in place to handle the addition of the Authorization header
294
+ *
295
+ * @param serverUrl: string - URL to the StructureNavigator server.
296
+ *
297
+ * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.
298
+ */
299
+ static loginWithAuthProxy(serverUrl: string): StructureNavigatorAPI;
292
300
  /**
293
301
  * Access to the StructureNavigator API
294
302
  *
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkJ6MTVURL_js=require('../../chunk-J6MTVURL.js');require('../../chunk-WFUCUDFC.js');Object.defineProperty(exports,"BinaryEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.a}});Object.defineProperty(exports,"ConfigurationEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.b}});Object.defineProperty(exports,"ConfigurationsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.c}});Object.defineProperty(exports,"DocumentstructureEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.f}});Object.defineProperty(exports,"DocumentstructuresEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.g}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.h}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.i}});Object.defineProperty(exports,"EventsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.d}});Object.defineProperty(exports,"ScreenshotsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.e}});Object.defineProperty(exports,"StructureNavigatorAPI",{enumerable:true,get:function(){return chunkJ6MTVURL_js.k}});Object.defineProperty(exports,"StructurenavigatorEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.j}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkPMYUIYR3_js=require('../../chunk-PMYUIYR3.js');require('../../chunk-KHRCSPJC.js');Object.defineProperty(exports,"BinaryEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.a}});Object.defineProperty(exports,"ConfigurationEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.b}});Object.defineProperty(exports,"ConfigurationsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.c}});Object.defineProperty(exports,"DocumentstructureEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.f}});Object.defineProperty(exports,"DocumentstructuresEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.g}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.h}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.i}});Object.defineProperty(exports,"EventsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.d}});Object.defineProperty(exports,"ScreenshotsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.e}});Object.defineProperty(exports,"StructureNavigatorAPI",{enumerable:true,get:function(){return chunkPMYUIYR3_js.k}});Object.defineProperty(exports,"StructurenavigatorEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.j}});//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{a as BinaryEndpoint,b as ConfigurationEndpoint,c as ConfigurationsEndpoint,f as DocumentstructureEndpoint,g as DocumentstructuresEndpoint,h as DomainEndpoint,i as DomainsEndpoint,d as EventsEndpoint,e as ScreenshotsEndpoint,k as StructureNavigatorAPI,j as StructurenavigatorEndpoint}from'../../chunk-CS7BBFY4.mjs';import'../../chunk-OHHE5EHF.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{a as BinaryEndpoint,b as ConfigurationEndpoint,c as ConfigurationsEndpoint,f as DocumentstructureEndpoint,g as DocumentstructuresEndpoint,h as DomainEndpoint,i as DomainsEndpoint,d as EventsEndpoint,e as ScreenshotsEndpoint,k as StructureNavigatorAPI,j as StructurenavigatorEndpoint}from'../../chunk-THA6X4VS.mjs';import'../../chunk-PU2IRAN7.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkJ6MTVURL_js=require('../chunk-J6MTVURL.js'),chunkKFGKXHFV_js=require('../chunk-KFGKXHFV.js');require('../chunk-WFUCUDFC.js');Object.defineProperty(exports,"BinaryEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.a}});Object.defineProperty(exports,"ConfigurationEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.b}});Object.defineProperty(exports,"ConfigurationsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.c}});Object.defineProperty(exports,"DocumentstructureEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.f}});Object.defineProperty(exports,"DocumentstructuresEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.g}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.h}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.i}});Object.defineProperty(exports,"EventsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.d}});Object.defineProperty(exports,"ScreenshotsEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.e}});Object.defineProperty(exports,"StructureNavigatorAPI",{enumerable:true,get:function(){return chunkJ6MTVURL_js.k}});Object.defineProperty(exports,"StructurenavigatorEndpoint",{enumerable:true,get:function(){return chunkJ6MTVURL_js.j}});Object.defineProperty(exports,"BulkDocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.a}});Object.defineProperty(exports,"DocumentStructureOverviewStatusEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.c}});Object.defineProperty(exports,"DocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.e}});Object.defineProperty(exports,"EventTypeEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.g}});Object.defineProperty(exports,"isBulkDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.b}});Object.defineProperty(exports,"isDocumentStructureOverviewStatusEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.d}});Object.defineProperty(exports,"isDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.f}});Object.defineProperty(exports,"isEventTypeEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.h}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkPMYUIYR3_js=require('../chunk-PMYUIYR3.js'),chunkKFGKXHFV_js=require('../chunk-KFGKXHFV.js');require('../chunk-KHRCSPJC.js');Object.defineProperty(exports,"BinaryEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.a}});Object.defineProperty(exports,"ConfigurationEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.b}});Object.defineProperty(exports,"ConfigurationsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.c}});Object.defineProperty(exports,"DocumentstructureEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.f}});Object.defineProperty(exports,"DocumentstructuresEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.g}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.h}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.i}});Object.defineProperty(exports,"EventsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.d}});Object.defineProperty(exports,"ScreenshotsEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.e}});Object.defineProperty(exports,"StructureNavigatorAPI",{enumerable:true,get:function(){return chunkPMYUIYR3_js.k}});Object.defineProperty(exports,"StructurenavigatorEndpoint",{enumerable:true,get:function(){return chunkPMYUIYR3_js.j}});Object.defineProperty(exports,"BulkDocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.a}});Object.defineProperty(exports,"DocumentStructureOverviewStatusEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.c}});Object.defineProperty(exports,"DocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.e}});Object.defineProperty(exports,"EventTypeEnumValues",{enumerable:true,get:function(){return chunkKFGKXHFV_js.g}});Object.defineProperty(exports,"isBulkDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.b}});Object.defineProperty(exports,"isDocumentStructureOverviewStatusEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.d}});Object.defineProperty(exports,"isDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.f}});Object.defineProperty(exports,"isEventTypeEnumValue",{enumerable:true,get:function(){return chunkKFGKXHFV_js.h}});//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export{a as BinaryEndpoint,b as ConfigurationEndpoint,c as ConfigurationsEndpoint,f as DocumentstructureEndpoint,g as DocumentstructuresEndpoint,h as DomainEndpoint,i as DomainsEndpoint,d as EventsEndpoint,e as ScreenshotsEndpoint,k as StructureNavigatorAPI,j as StructurenavigatorEndpoint}from'../chunk-CS7BBFY4.mjs';export{a as BulkDocumentStructureStatusEnumValues,c as DocumentStructureOverviewStatusEnumValues,e as DocumentStructureStatusEnumValues,g as EventTypeEnumValues,b as isBulkDocumentStructureStatusEnumValue,d as isDocumentStructureOverviewStatusEnumValue,f as isDocumentStructureStatusEnumValue,h as isEventTypeEnumValue}from'../chunk-OFG4XO3Z.mjs';import'../chunk-OHHE5EHF.mjs';//# sourceMappingURL=index.mjs.map
1
+ export{a as BinaryEndpoint,b as ConfigurationEndpoint,c as ConfigurationsEndpoint,f as DocumentstructureEndpoint,g as DocumentstructuresEndpoint,h as DomainEndpoint,i as DomainsEndpoint,d as EventsEndpoint,e as ScreenshotsEndpoint,k as StructureNavigatorAPI,j as StructurenavigatorEndpoint}from'../chunk-THA6X4VS.mjs';export{a as BulkDocumentStructureStatusEnumValues,c as DocumentStructureOverviewStatusEnumValues,e as DocumentStructureStatusEnumValues,g as EventTypeEnumValues,b as isBulkDocumentStructureStatusEnumValue,d as isDocumentStructureOverviewStatusEnumValue,f as isDocumentStructureStatusEnumValue,h as isEventTypeEnumValue}from'../chunk-OFG4XO3Z.mjs';import'../chunk-PU2IRAN7.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -64,6 +64,14 @@ declare class TableExtractorAPI {
64
64
  * @return TableExtractorAPI: Entry point to the TableExtractor API.
65
65
  */
66
66
  static loginWithApiKey(serverUrl: string, apiKey: string): TableExtractorAPI;
67
+ /**
68
+ * Access to the TableExtractor API, when there is a auth proxy in place to handle the addition of the Authorization header
69
+ *
70
+ * @param serverUrl: string - URL to the TableExtractor server.
71
+ *
72
+ * @return TableExtractorAPI: Entry point to the TableExtractor API.
73
+ */
74
+ static loginWithAuthProxy(serverUrl: string): TableExtractorAPI;
67
75
  /**
68
76
  * Access to the TableExtractor API
69
77
  *
@@ -64,6 +64,14 @@ declare class TableExtractorAPI {
64
64
  * @return TableExtractorAPI: Entry point to the TableExtractor API.
65
65
  */
66
66
  static loginWithApiKey(serverUrl: string, apiKey: string): TableExtractorAPI;
67
+ /**
68
+ * Access to the TableExtractor API, when there is a auth proxy in place to handle the addition of the Authorization header
69
+ *
70
+ * @param serverUrl: string - URL to the TableExtractor server.
71
+ *
72
+ * @return TableExtractorAPI: Entry point to the TableExtractor API.
73
+ */
74
+ static loginWithAuthProxy(serverUrl: string): TableExtractorAPI;
67
75
  /**
68
76
  * Access to the TableExtractor API
69
77
  *
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkWFUCUDFC_js=require('../../chunk-WFUCUDFC.js'),d=require('fs');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var d__namespace=/*#__PURE__*/_interopNamespace(d);var n=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/values";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/tableextractor";}ENDPOINT;values(){return new n(this.restClient,this.ENDPOINT)}};var p="/api",c=class i{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new i(new chunkWFUCUDFC_js.c(this.parseServerUrl(t),e),p)}static loginWithCredentials(t,e,r,s){return t=this.parseServerUrl(t),new i(new chunkWFUCUDFC_js.c(t,void 0,e,r,s),p)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let r=d__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(a=>a.length!==0).map(a=>a.split("=")),s=this.getValueOfInPropertiesFile("serverUrl",r),f=this.getValueOfInPropertiesFile("clientId",r),g=this.getValueOfInPropertiesFile("clientSecret",r),u=this.getValueOfInPropertiesFile("tokenUrl",r);return i.loginWithCredentials(s,f,g,u)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let r of e)if(r[0]===t)return r[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}tableextractor(){return new o(this.restClient,this.endpoint())}};exports.TableExtractorAPI=c;exports.TableextractorEndpoint=o;exports.ValuesEndpoint=n;//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkKHRCSPJC_js=require('../../chunk-KHRCSPJC.js'),d=require('fs');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var d__namespace=/*#__PURE__*/_interopNamespace(d);var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/values";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/tableextractor";}ENDPOINT;values(){return new o(this.restClient,this.ENDPOINT)}};var p="/api",c=class i{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new i(new chunkKHRCSPJC_js.c(this.parseServerUrl(t),e),p)}static loginWithAuthProxy(t){if(!t)throw new Error("You need to supply a server url to login.");return new i(new chunkKHRCSPJC_js.c(this.parseServerUrl(t)),p)}static loginWithCredentials(t,e,r,a){return t=this.parseServerUrl(t),new i(new chunkKHRCSPJC_js.c(t,void 0,e,r,a),p)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let r=d__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(l=>l.length!==0).map(l=>l.split("=")),a=this.getValueOfInPropertiesFile("serverUrl",r),u=this.getValueOfInPropertiesFile("clientId",r),g=this.getValueOfInPropertiesFile("clientSecret",r),f=this.getValueOfInPropertiesFile("tokenUrl",r);return i.loginWithCredentials(a,u,g,f)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let r of e)if(r[0]===t)return r[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}tableextractor(){return new s(this.restClient,this.endpoint())}};exports.TableExtractorAPI=c;exports.TableextractorEndpoint=s;exports.ValuesEndpoint=o;//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","d","line","searchKey"],"mappings":"2bAUO,IAAMA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,oBAAAC,CAAAA,CAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,eAAiB,UACxC,CAPiB,QAAA,CAejB,MAAM,IAAA,CAAKC,CAAAA,CAGU,CACnB,OAAA,CACE,MAAM,IAAA,CAAK,UAAA,CAAW,IAAA,CACpB,IAAA,CAAK,SACL,EAAC,CACD,IAAA,CAAK,UAAA,CAAW,2BAAuB,CAAA,CACvCA,CACF,CAAA,EACA,OAAA,EACJ,CACF,EC9BO,IAAMC,EAAN,KAA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A,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,gBAAyC,CACvC,OAAO,IAAId,CAAAA,CAAuB,KAAK,UAAA,CAAY,IAAA,CAAK,QAAA,EAAU,CACpE,CAEF","file":"index.js","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { XlRow } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor/values\"\n * This is a generated file do not change manually!\n */\nexport class ValuesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/values\";\n }\n\n /**\n * Extracts values from a sheet and returns them\n *\n * @param file Blob? - Xlsx file to extract values from.\n * @param language string? - Locale used to format dates in the sheet on reading values.\n */\n async post(data: {\n file?: Blob,\n language?: string,\n }): Promise<XlRow[]> {\n return (\n await this.restClient.post<XlRow[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { ValuesEndpoint } from './values';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor\"\n * This is a generated file do not change manually!\n */\nexport class TableextractorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/tableextractor\";\n }\n\n values(): ValuesEndpoint {\n return new ValuesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import * as fs from 'fs';\n\nimport { TableextractorEndpoint } from './tableextractor';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the TableExtractor API.\n *\n * @author semantha\n * Calls the /tableextractor, 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 TableExtractorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TableExtractorAPI {\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 TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor 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 TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TableExtractorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TableExtractorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the TableExtractor API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TableExtractorAPI {\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 TableExtractorAPI.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 tableextractor(): TableextractorEndpoint {\n return new TableextractorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
1
+ {"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","d","line","searchKey"],"mappings":"2bAUO,IAAMA,EAAN,KAAqB,CAG1B,WAAA,CACmBC,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,EAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,UACxC,CAPiB,QAAA,CAejB,MAAM,IAAA,CAAKC,EAGU,CACnB,OAAA,CACE,MAAM,IAAA,CAAK,WAAW,IAAA,CACpB,IAAA,CAAK,QAAA,CACL,GACA,I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,IAAQF,EACjB,GAAIE,CAAAA,CAAK,CAAC,CAAA,GAAMC,EACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,QAAQ,KAAA,CAAO,GAAG,EAGrC,MAAM,KAAA,CAAM,iCAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,UAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,cAAA,EAAyC,CACvC,OAAO,IAAId,EAAuB,IAAA,CAAK,UAAA,CAAY,KAAK,QAAA,EAAU,CACpE,CAEF","file":"index.js","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { XlRow } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor/values\"\n * This is a generated file do not change manually!\n */\nexport class ValuesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/values\";\n }\n\n /**\n * Extracts values from a sheet and returns them\n *\n * @param file Blob? - Xlsx file to extract values from.\n * @param language string? - Locale used to format dates in the sheet on reading values.\n */\n async post(data: {\n file?: Blob,\n language?: string,\n }): Promise<XlRow[]> {\n return (\n await this.restClient.post<XlRow[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { ValuesEndpoint } from './values';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor\"\n * This is a generated file do not change manually!\n */\nexport class TableextractorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/tableextractor\";\n }\n\n values(): ValuesEndpoint {\n return new ValuesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import * as fs from 'fs';\n\nimport { TableextractorEndpoint } from './tableextractor';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the TableExtractor API.\n *\n * @author semantha\n * Calls the /tableextractor, 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 TableExtractorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TableExtractorAPI {\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 TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the TableExtractor API, when there is a auth proxy in place to handle the addition of the Authorization header\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): TableExtractorAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor 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 TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TableExtractorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TableExtractorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the TableExtractor API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TableExtractorAPI {\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 TableExtractorAPI.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 tableextractor(): TableextractorEndpoint {\n return new TableextractorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
@@ -1,2 +1,2 @@
1
- import {c as c$1}from'../../chunk-OHHE5EHF.mjs';import*as d from'fs';var n=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/values";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/tableextractor";}ENDPOINT;values(){return new n(this.restClient,this.ENDPOINT)}};var p="/api",c=class i{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new i(new c$1(this.parseServerUrl(t),e),p)}static loginWithCredentials(t,e,r,s){return t=this.parseServerUrl(t),new i(new c$1(t,void 0,e,r,s),p)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let r=d.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(a=>a.length!==0).map(a=>a.split("=")),s=this.getValueOfInPropertiesFile("serverUrl",r),f=this.getValueOfInPropertiesFile("clientId",r),g=this.getValueOfInPropertiesFile("clientSecret",r),u=this.getValueOfInPropertiesFile("tokenUrl",r);return i.loginWithCredentials(s,f,g,u)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let r of e)if(r[0]===t)return r[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}tableextractor(){return new o(this.restClient,this.endpoint())}};export{c as TableExtractorAPI,o as TableextractorEndpoint,n as ValuesEndpoint};//# sourceMappingURL=index.mjs.map
1
+ import {c as c$1}from'../../chunk-PU2IRAN7.mjs';import*as d from'fs';var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/values";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var s=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/tableextractor";}ENDPOINT;values(){return new o(this.restClient,this.ENDPOINT)}};var p="/api",c=class i{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new i(new c$1(this.parseServerUrl(t),e),p)}static loginWithAuthProxy(t){if(!t)throw new Error("You need to supply a server url to login.");return new i(new c$1(this.parseServerUrl(t)),p)}static loginWithCredentials(t,e,r,a){return t=this.parseServerUrl(t),new i(new c$1(t,void 0,e,r,a),p)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let r=d.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(l=>l.length!==0).map(l=>l.split("=")),a=this.getValueOfInPropertiesFile("serverUrl",r),u=this.getValueOfInPropertiesFile("clientId",r),g=this.getValueOfInPropertiesFile("clientSecret",r),f=this.getValueOfInPropertiesFile("tokenUrl",r);return i.loginWithCredentials(a,u,g,f)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let r of e)if(r[0]===t)return r[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}tableextractor(){return new s(this.restClient,this.endpoint())}};export{c as TableExtractorAPI,s as TableextractorEndpoint,o as ValuesEndpoint};//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEAUO,IAAMA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,oBAAAC,CAAAA,CAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,eAAiB,UACxC,CAPiB,QAAA,CAejB,MAAM,IAAA,CAAKC,CAAAA,CAGU,CACnB,OAAA,CACE,MAAM,IAAA,CAAK,UAAA,CAAW,IAAA,CACpB,IAAA,CAAK,SACL,EAAC,CACD,IAAA,CAAK,UAAA,CAAW,2BAAuB,CAAA,CACvCA,CACF,CAAA,EACA,OAAA,EACJ,CACF,EC9BO,IAAMC,EAAN,KAA6B,CAGlC,WAAA,CACmBH,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,EAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,kBACxC,CAPiB,QAAA,CASjB,MAAA,EAAyB,CACvB,OAAO,IAAIF,CAAAA,CAAe,IAAA,CAAK,UAAA,CAAY,KAAK,QAAQ,CAC1D,CACF,ECjBA,IAAMK,CAAAA,CAAkB,MAAA,CAcXC,CAAAA,CAAN,MAAMC,CAAkB,CAE7B,WAAA,CACmBN,CAAAA,CACAC,CAAAA,CACjB,CAFiB,gBAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,EAEnB,CAUA,OAAO,eAAA,CACLM,CAAAA,CACAC,CAAAA,CACmB,CACnB,GAAG,CAACA,CAAAA,CACF,MAAM,IAAI,KAAA,CAAM,yCAAyC,CAAA,CAE3D,GAAG,CAACD,CAAAA,CACF,MAAM,IAAI,KAAA,CAAM,2CAA2C,C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AAS,GAAG,IACxBA,CAAAA,CAAYA,CAAAA,CAAU,KAAA,CAAM,CAAA,CAAG,EAAE,CAAA,CAAA,CAE/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,EAC3CA,CAAAA,CAAYA,CAAAA,CAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,CAAA,CAChEA,CAAAA,CAAU,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,CAAAA,CACd,OAAOD,EAAK,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,gBAAyC,CACvC,OAAO,IAAIb,CAAAA,CAAuB,KAAK,UAAA,CAAY,IAAA,CAAK,QAAA,EAAU,CACpE,CAEF","file":"index.mjs","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { XlRow } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor/values\"\n * This is a generated file do not change manually!\n */\nexport class ValuesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/values\";\n }\n\n /**\n * Extracts values from a sheet and returns them\n *\n * @param file Blob? - Xlsx file to extract values from.\n * @param language string? - Locale used to format dates in the sheet on reading values.\n */\n async post(data: {\n file?: Blob,\n language?: string,\n }): Promise<XlRow[]> {\n return (\n await this.restClient.post<XlRow[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { ValuesEndpoint } from './values';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor\"\n * This is a generated file do not change manually!\n */\nexport class TableextractorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/tableextractor\";\n }\n\n values(): ValuesEndpoint {\n return new ValuesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import * as fs from 'fs';\n\nimport { TableextractorEndpoint } from './tableextractor';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the TableExtractor API.\n *\n * @author semantha\n * Calls the /tableextractor, 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 TableExtractorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TableExtractorAPI {\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 TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor 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 TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TableExtractorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TableExtractorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the TableExtractor API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TableExtractorAPI {\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 TableExtractorAPI.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 tableextractor(): TableextractorEndpoint {\n return new TableextractorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
1
+ {"version":3,"sources":["../../../semantha-product-sdk/table-extractor/api/values.ts","../../../semantha-product-sdk/table-extractor/api/tableextractor.ts","../../../semantha-product-sdk/table-extractor/api/tableExtractorAPI.ts"],"names":["ValuesEndpoint","restClient","parentEndpoint","data","TableextractorEndpoint","PARENT_ENDPOINT","TableExtractorAPI","_TableExtractorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEAUO,IAAMA,EAAN,KAAqB,CAG1B,WAAA,CACmBC,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,EAEjB,IAAA,CAAK,QAAA,CAAW,IAAA,CAAK,cAAA,CAAiB,UACxC,CAPiB,QAAA,CAejB,MAAM,IAAA,CAAKC,EAGU,CACnB,OAAA,CACE,MAAM,IAAA,CAAK,WAAW,IAAA,CACpB,IAAA,CAAK,QAAA,CACL,GACA,IAAA,CAAK,UAAA,CAAW,2BAAuB,CAAA,CACvCA,CACF,GACA,OAAA,EACJ,CACF,MC9BaC,CAAAA,CAAN,KAA6B,CAGlC,WAAA,CACmBH,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,oBAAAC,CAAAA,CAEjB,IAAA,CAAK,SAAW,IAAA,CAAK,cAAA,CAAiB,kBACxC,CAPiB,QAAA,CASjB,MAAA,EAAyB,CACvB,OAAO,IAAIF,CAAAA,CAAe,IAAA,CAAK,UAAA,CAAY,KAAK,QAAQ,CAC1D,CACF,MCjBMK,CAAAA,CAAkB,MAAA,CAcXC,EAAN,MAAMC,CAAkB,CAE7B,WAAA,CACmBN,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,oBAAAC,EAEnB,CAUA,OAAO,eAAA,CACLM,EACAC,CAAAA,CACmB,CACnB,GAAG,CAACA,CAAAA,CACF,MAAM,IAAI,KAAA,CAAM,yCAAyC,CAAA,CAE3D,GAAG,CA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2B,WAAYE,CAAK,CAAA,CAClE,OAAOR,CAAAA,CAAkB,qBAAqBC,CAAAA,CAAWG,CAAAA,CAAUC,EAAcC,CAAQ,CAC3F,CACG,MAAM,IAAI,KAAA,CAAM,6DAA6D,CAC/E,CAEA,OAAe,cAAA,CAAeL,CAAAA,CAA2B,CACvD,OAAIA,CAAAA,CAAU,QAAA,CAAS,GAAG,IACxBA,CAAAA,CAAYA,CAAAA,CAAU,MAAM,CAAA,CAAG,EAAE,GAE/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,CAAA,CAC3CA,EAAYA,CAAAA,CAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,EAChEA,CAAAA,CAAU,QAAA,CAAS,oBAAoB,CAAA,GACjDA,GAAa,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAAA,CAA2BS,EAAmBF,CAAAA,CAA2B,CACtF,IAAA,IAAWC,CAAAA,IAAQD,EACjB,GAAIC,CAAAA,CAAK,CAAC,CAAA,GAAMC,EACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,QAAQ,KAAA,CAAO,GAAG,EAGrC,MAAM,KAAA,CAAM,iCAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,UAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,cAAA,EAAyC,CACvC,OAAO,IAAIb,EAAuB,IAAA,CAAK,UAAA,CAAY,KAAK,QAAA,EAAU,CACpE,CAEF","file":"index.mjs","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { XlRow } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor/values\"\n * This is a generated file do not change manually!\n */\nexport class ValuesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/values\";\n }\n\n /**\n * Extracts values from a sheet and returns them\n *\n * @param file Blob? - Xlsx file to extract values from.\n * @param language string? - Locale used to format dates in the sheet on reading values.\n */\n async post(data: {\n file?: Blob,\n language?: string,\n }): Promise<XlRow[]> {\n return (\n await this.restClient.post<XlRow[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { ValuesEndpoint } from './values';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/tableextractor\"\n * This is a generated file do not change manually!\n */\nexport class TableextractorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/tableextractor\";\n }\n\n values(): ValuesEndpoint {\n return new ValuesEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import * as fs from 'fs';\n\nimport { TableextractorEndpoint } from './tableextractor';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the TableExtractor API.\n *\n * @author semantha\n * Calls the /tableextractor, 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 TableExtractorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TableExtractorAPI {\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 TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n\n /**\n * Access to the TableExtractor API, when there is a auth proxy in place to handle the addition of the Authorization header\n *\n * @param serverUrl: string - URL to the TableExtractor server.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithAuthProxy(\n serverUrl: string\n ): TableExtractorAPI {\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new TableExtractorAPI(new RestClient(this.parseServerUrl(serverUrl)), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the TableExtractor API\n *\n * @param serverUrl: string - URL to the TableExtractor 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 TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TableExtractorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TableExtractorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the TableExtractor API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TableExtractorAPI: Entry point to the TableExtractor API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TableExtractorAPI {\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 TableExtractorAPI.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 tableextractor(): TableextractorEndpoint {\n return new TableextractorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
@@ -105,6 +105,14 @@ declare class TrackingAPI {
105
105
  * @return TrackingAPI: Entry point to the Tracking API.
106
106
  */
107
107
  static loginWithApiKey(serverUrl: string, apiKey: string): TrackingAPI;
108
+ /**
109
+ * Access to the Tracking API, when there is a auth proxy in place to handle the addition of the Authorization header
110
+ *
111
+ * @param serverUrl: string - URL to the Tracking server.
112
+ *
113
+ * @return TrackingAPI: Entry point to the Tracking API.
114
+ */
115
+ static loginWithAuthProxy(serverUrl: string): TrackingAPI;
108
116
  /**
109
117
  * Access to the Tracking API
110
118
  *