@semantha/product-sdk 10.1.0 → 10.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/chunk-BE73RDIS.mjs.map +1 -1
  2. package/dist/chunk-CA66WME5.js.map +1 -1
  3. package/dist/chunk-CS7BBFY4.mjs +2 -0
  4. package/dist/chunk-CS7BBFY4.mjs.map +1 -0
  5. package/dist/chunk-DURTIKAP.mjs.map +1 -1
  6. package/dist/chunk-ECNCZBI6.js.map +1 -1
  7. package/dist/{chunk-NGJU6JRX.js → chunk-J6MTVURL.js} +2 -2
  8. package/dist/chunk-J6MTVURL.js.map +1 -0
  9. package/dist/chunk-JCDJ3B7Q.js.map +1 -1
  10. package/dist/{chunk-4R65LLWL.js → chunk-KFGKXHFV.js} +2 -2
  11. package/dist/chunk-KFGKXHFV.js.map +1 -0
  12. package/dist/{chunk-TNZ7KC6A.mjs → chunk-OFG4XO3Z.mjs} +2 -2
  13. package/dist/chunk-OFG4XO3Z.mjs.map +1 -0
  14. package/dist/chunk-OHHE5EHF.mjs.map +1 -1
  15. package/dist/chunk-SJNRBLAC.mjs.map +1 -1
  16. package/dist/chunk-WFUCUDFC.js.map +1 -1
  17. package/dist/chunk-YXKZIGLW.mjs.map +1 -1
  18. package/dist/chunk-ZSFNB534.js.map +1 -1
  19. package/dist/{eventTypeEnum-B89xECKK.d.mts → eventTypeEnum-Ht9OkfT2.d.mts} +22 -10
  20. package/dist/{eventTypeEnum-B89xECKK.d.ts → eventTypeEnum-Ht9OkfT2.d.ts} +22 -10
  21. package/dist/file-box/index.js +1 -1
  22. package/dist/file-box/index.mjs +1 -1
  23. package/dist/requirements/api/index.js.map +1 -1
  24. package/dist/requirements/api/index.mjs.map +1 -1
  25. package/dist/requirements/model/index.js.map +1 -1
  26. package/dist/requirements/model/index.mjs.map +1 -1
  27. package/dist/structure-navigator/api/index.d.mts +7 -1
  28. package/dist/structure-navigator/api/index.d.ts +7 -1
  29. package/dist/structure-navigator/api/index.js +1 -1
  30. package/dist/structure-navigator/api/index.mjs +1 -1
  31. package/dist/structure-navigator/index.d.mts +1 -1
  32. package/dist/structure-navigator/index.d.ts +1 -1
  33. package/dist/structure-navigator/index.js +1 -1
  34. package/dist/structure-navigator/index.mjs +1 -1
  35. package/dist/structure-navigator/model/index.d.mts +2 -2
  36. package/dist/structure-navigator/model/index.d.ts +2 -2
  37. package/dist/structure-navigator/model/index.js +1 -1
  38. package/dist/structure-navigator/model/index.mjs +1 -1
  39. package/dist/table-extractor/api/index.js.map +1 -1
  40. package/dist/table-extractor/api/index.mjs.map +1 -1
  41. package/package.json +4 -4
  42. package/dist/chunk-27V2G4KK.mjs +0 -2
  43. package/dist/chunk-27V2G4KK.mjs.map +0 -1
  44. package/dist/chunk-4R65LLWL.js.map +0 -1
  45. package/dist/chunk-NGJU6JRX.js.map +0 -1
  46. package/dist/chunk-TNZ7KC6A.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../semantha-product-sdk/requirements/api/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisExport.ts","../../../semantha-product-sdk/requirements/api/analysisAnswers.ts","../../../semantha-product-sdk/requirements/api/analysisResults.ts","../../../semantha-product-sdk/requirements/api/stats.ts","../../../semantha-product-sdk/requirements/api/pagedresults.ts","../../../semantha-product-sdk/requirements/api/analysis.ts","../../../semantha-product-sdk/requirements/api/export.ts","../../../semantha-product-sdk/requirements/api/results.ts","../../../semantha-product-sdk/requirements/api/bulk.ts","../../../semantha-product-sdk/requirements/api/classifications.ts","../../../semantha-product-sdk/requirements/api/comments.ts","../../../semantha-product-sdk/requirements/api/roles.ts","../../../semantha-product-sdk/requirements/api/currentuser.ts","../../../semantha-product-sdk/requirements/api/evaluation.ts","../../../semantha-product-sdk/requirements/api/evaluations.ts","../../../semantha-product-sdk/requirements/api/exceltemplate.ts","../../../semantha-product-sdk/requirements/api/new.ts","../../../semantha-product-sdk/requirements/api/exceltemplates.ts","../../../semantha-product-sdk/requirements/api/references.ts","../../../semantha-product-sdk/requirements/api/result.ts","../../../semantha-product-sdk/requirements/api/domain.ts","../../../semantha-product-sdk/requirements/api/domains.ts","../../../semantha-product-sdk/requirements/api/requirements.ts","../../../semantha-product-sdk/requirements/api/requirementsAPI.ts"],"names":["ReportEndpoint","restClient","parentEndpoint","body","params","AnalysesEndpoint","data","AnalysisExportEndpoint","AnalysisAnswersEndpoint","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","analysisid","ExportEndpoint","ResultsEndpoint","BulkEndpoint","ClassificationsEndpoint","CommentsEndpoint","RolesEndpoint","CurrentuserEndpoint","EvaluationEndpoint","id","EvaluationsEndpoint","ExceltemplateEndpoint","NewEndpoint","ExceltemplatesEndpoint","ReferencesEndpoint","ResultEndpoint","resultid","DomainEndpoint","domainname","DomainsEndpoint","RequirementsEndpoint","PARENT_ENDPOINT","RequirementsAPI","_RequirementsAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEAUaA,IAAAA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,IAAAC,CAAAA,cAAAA,CAAAA,CAAAA,CAEjB,KAAK,QAAW,CAAA,IAAA,CAAK,eAAiB,UACxC,CAPiB,SAYjB,MAAM,IAAA,CACJC,CACAC,CAAAA,CAAAA,CAG0B,CAC1B,OAAA,CACE,MAAM,IAAK,CAAA,UAAA,CAAW,KACpB,IAAK,CAAA,QAAA,CACLA,EACA,IAAK,CAAA,UAAA,CAAW,QAAuB,CAAA,kBAAA,CAAA,CACvCD,CACF,CAAA,EACA,SACJ,CAKA,MAAM,UACJA,CAAAA,CAAAA,CACAC,EAGgB,CAChB,OAAA,CACE,MAAM,IAAA,CAAK,UAAW,CAAA,IAA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AAK,2BAA2B,UAAYE,CAAAA,CAAK,CAClE,CAAA,OAAOR,CAAgB,CAAA,oBAAA,CAAqBC,EAAWG,CAAUC,CAAAA,CAAAA,CAAcC,CAAQ,CACzF,CACG,MAAM,IAAI,KAAA,CAAM,6DAA6D,CAC/E,CAEA,OAAe,eAAeL,CAA2B,CAAA,CACvD,OAAIA,CAAU,CAAA,QAAA,CAAS,GAAG,CACxBA,GAAAA,CAAAA,CAAYA,CAAU,CAAA,KAAA,CAAM,CAAG,CAAA,EAAE,GAE/BA,CAAU,CAAA,QAAA,CAAS,sBAAsB,CAC3CA,CAAAA,CAAAA,CAAYA,EAAU,OAAQ,CAAA,sBAAA,CAAwB,oBAAoB,CAAA,CAChEA,CAAU,CAAA,QAAA,CAAS,oBAAoB,CACjDA,GAAAA,CAAAA,EAAa,sBAERA,CACT,CAEA,OAAe,0BAA2BS,CAAAA,CAAAA,CAAmBF,CAA2B,CAAA,CACtF,IAAWC,IAAAA,CAAAA,IAAQD,EACjB,GAAIC,CAAAA,CAAK,CAAC,CAAMC,GAAAA,CAAAA,CACd,OAAOD,CAAK,CAAA,CAAC,CAAE,CAAA,OAAA,CAAQ,KAAO,CAAA,GAAG,EAGrC,MAAM,KAAA,CAAM,iCAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAK,CAAA,cACd,CAEA,YAAqC,EAAA,CACnC,OAAO,IAAIb,CAAqB,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CAClE,CAEF","file":"index.mjs","sourcesContent":["import { AnalysesReport } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/report\"\n * This is a generated file do not change manually!\n */\nexport class ReportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/report\";\n }\n\n /**\n * @param body string[]? - \n */\n async post(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<AnalysesReport> {\n return (\n await this.restClient.post<AnalysesReport>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n \n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisCreation } from '../model';\nimport { AnalysisInput } from '../model';\nimport { FormDataContentDisposition } from '../model';\nimport { MediaType } from '../../rest';\nimport { ReportEndpoint } from './report';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses\"\n * This is a generated file do not change manually!\n */\nexport class AnalysesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\";\n }\n\n report(): ReportEndpoint {\n return new ReportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Analysis[]> {\n return (\n await this.restClient.get<Analysis[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param file FormDataContentDisposition? - \n * @param analysisdata AnalysisInput[]? - \n * @param similaritythreshold number? - \n * @param strategy string? - \n * @param name string? - \n * @param maxreferences number? - \n * @param tags string? - \n * @param documentclassids string[]? - \n * @param goodmatchesthreshold number? - \n * @param matchallreferences boolean? - \n * @param showdocscore boolean? - \n * @param type string? - \n * @param promptid string? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: number,\n strategy?: string,\n name?: string,\n maxreferences?: number,\n tags?: string,\n documentclassids?: string[],\n goodmatchesthreshold?: number,\n matchallreferences?: boolean,\n showdocscore?: boolean,\n type?: string,\n promptid?: string,\n }): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n \n /**\n * @param body AnalysisCreation? - \n */\n async postJson(\n body?: AnalysisCreation,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results/answers/export\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n async postAsXlsx(params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n {},\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { AnalysisExportEndpoint } from './analysisExport';\nimport { MediaType } from '../../rest';\nimport { PromptResult } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results/answers\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisAnswersEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/answers\";\n }\n\n export(): AnalysisExportEndpoint {\n return new AnalysisExportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<PromptResult[]> {\n return (\n await this.restClient.get<PromptResult[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisAnswersEndpoint } from './analysisAnswers';\nimport { AnalysisResultOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n answers(): AnalysisAnswersEndpoint {\n return new AnalysisAnswersEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params?: {\n withdetails?: boolean,\n }): Promise<AnalysisResultOverview[]> {\n return (\n await this.restClient.get<AnalysisResultOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsStatsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults/stats\"\n * This is a generated file do not change manually!\n */\nexport class StatsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/stats\";\n }\n\n async get(params?: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n }): Promise<AnalysisResultsStatsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsStatsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { StatsEndpoint } from './stats';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class PagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n stats(): StatsEndpoint {\n return new StatsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n limit: number,\n offset: number,\n }): Promise<AnalysisResultsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisResultsEndpoint } from './analysisResults';\nimport { Entity } from '../model';\nimport { PagedresultsEndpoint } from './pagedresults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\" + `/${this.analysisid}`;\n }\n\n pagedresults(): PagedresultsEndpoint {\n return new PagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AnalysisResultsEndpoint {\n return new AnalysisResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Entity - \n */\n async patch(\n body: Entity,\n ): Promise<Analysis> {\n return (\n await this.restClient.patch<Analysis>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class ExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { ExportEndpoint } from './export';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results\"\n * This is a generated file do not change manually!\n */\nexport class ResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): ExportEndpoint {\n return new ExportEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/bulk\"\n * This is a generated file do not change manually!\n */\nexport class BulkEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/bulk\";\n }\n\n results(): ResultsEndpoint {\n return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { Classification } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/classifications\"\n * This is a generated file do not change manually!\n */\nexport class ClassificationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/classifications\";\n }\n\n async get(): Promise<Classification[]> {\n return (\n await this.restClient.get<Classification[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultComment } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/comments\"\n * This is a generated file do not change manually!\n */\nexport class CommentsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/comments\";\n }\n\n /**\n * @param body AnalysisResultComment? - \n */\n async post(\n body?: AnalysisResultComment,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/currentuser/roles\"\n * This is a generated file do not change manually!\n */\nexport class RolesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/roles\";\n }\n\n /**\n * Get the role/s of the current user.\n */\n async get(): Promise<string[]> {\n return (\n await this.restClient.get<string[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { CurrentUser } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { RolesEndpoint } from './roles';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/currentuser\"\n * This is a generated file do not change manually!\n */\nexport class CurrentuserEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/currentuser\";\n }\n\n roles(): RolesEndpoint {\n return new RolesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n /**\n * Get information about the current user.\n */\n async get(): Promise<CurrentUser> {\n return (\n await this.restClient.get<CurrentUser>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/evaluations/{id}\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\" + `/${this.id}`;\n }\n\n async get(): Promise<Evaluation> {\n return (\n await this.restClient.get<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation - \n */\n async patch(\n body: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.patch<Evaluation>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/evaluations\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\";\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Evaluation[] - \n */\n async put(\n body: Evaluation[],\n ): Promise<Evaluation[]> {\n return (\n await this.restClient.put<Evaluation[]>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation? - \n */\n async post(\n body?: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.post<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/{id}\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplateEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\" + `/${this.id}`;\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body ExcelTemplateDetails - \n */\n async put(\n body: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.put<ExcelTemplateDetails>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/new\"\n * This is a generated file do not change manually!\n */\nexport class NewEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/new\";\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Entity } from '../model';\nimport { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { NewEndpoint } from './new';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplatesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\";\n }\n\n new(): NewEndpoint {\n return new NewEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Entity[]> {\n return (\n await this.restClient.get<Entity[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body ExcelTemplateDetails? - \n */\n async post(\n body?: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.post<ExcelTemplateDetails>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisInput } from '../model';\nimport { ExtendedReference } from '../model';\nimport { MediaType } from '../../rest';\nimport { ModeEnum } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/references\"\n * This is a generated file do not change manually!\n */\nexport class ReferencesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/references\";\n }\n\n /**\n * @param file AnalysisInput? - \n * @param referencedocument Blob? - Optional reference documents\n * @param tags string? - \n * @param similaritythreshold number? - \n * @param documentclassids string[]? - \n * @param mode ModeEnum? - \n */\n async post(data: {\n file?: AnalysisInput,\n referencedocument?: Blob,\n tags?: string,\n similaritythreshold?: number,\n documentclassids?: string[],\n mode?: ModeEnum,\n }): Promise<ExtendedReference[]> {\n return (\n await this.restClient.post<ExtendedReference[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { AnalysisResult } from '../model';\nimport { CommentsEndpoint } from './comments';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}\"\n * This is a generated file do not change manually!\n */\nexport class ResultEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly resultid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\" + `/${this.resultid}`;\n }\n\n comments(): CommentsEndpoint {\n return new CommentsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint {\n return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params?: {\n withreferencedocument?: boolean,\n }): Promise<AnalysisResult> {\n return (\n await this.restClient.get<AnalysisResult>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body AnalysisResult - \n */\n async patch(\n body: AnalysisResult,\n ): Promise<AnalysisResult> {\n return (\n await this.restClient.patch<AnalysisResult>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { AnalysesEndpoint } from './analyses';\nimport { AnalysisEndpoint } from './analysis';\nimport { BulkEndpoint } from './bulk';\nimport { ClassificationsEndpoint } from './classifications';\nimport { EvaluationEndpoint } from './evaluation';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { ExceltemplateEndpoint } from './exceltemplate';\nimport { ExceltemplatesEndpoint } from './exceltemplates';\nimport { ReferencesEndpoint } from './references';\nimport { RestClient } from '../../rest';\nimport { ResultEndpoint } from './result';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n analyses(): AnalysesEndpoint;\n analyses(analysisid: string): AnalysisEndpoint\n \n analyses(analysisid?: string): AnalysisEndpoint | AnalysesEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AnalysisEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AnalysesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n bulk(): BulkEndpoint {\n return new BulkEndpoint(this.restClient, this.ENDPOINT);\n }\n\n classifications(): ClassificationsEndpoint {\n return new ClassificationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint;\n evaluations(id: string): EvaluationEndpoint\n \n evaluations(id?: string): EvaluationEndpoint | EvaluationsEndpoint {\n if(id !== undefined && id !== null) {\n\t return new EvaluationEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n exceltemplates(): ExceltemplatesEndpoint;\n exceltemplates(id: string): ExceltemplateEndpoint\n \n exceltemplates(id?: string): ExceltemplateEndpoint | ExceltemplatesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new ExceltemplateEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new ExceltemplatesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n references(): ReferencesEndpoint {\n return new ReferencesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): ResultsEndpoint;\n results(resultid: string): ResultEndpoint\n \n results(resultid?: string): ResultEndpoint | ResultsEndpoint {\n if(resultid !== undefined && resultid !== null) {\n\t return new ResultEndpoint(this.restClient, this.ENDPOINT, resultid);\n } else {\n\t return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { CurrentuserEndpoint } from './currentuser';\nimport { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements\"\n * This is a generated file do not change manually!\n */\nexport class RequirementsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/requirements\";\n }\n\n currentuser(): CurrentuserEndpoint {\n return new CurrentuserEndpoint(this.restClient, this.ENDPOINT);\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { RequirementsEndpoint } from './requirements';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Requirements API.\n *\n * @author semantha\n * Calls the /requirements, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class RequirementsAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): RequirementsAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): RequirementsAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new RequirementsAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the Requirements API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : RequirementsAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return RequirementsAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n requirements(): RequirementsEndpoint {\n return new RequirementsEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
1
+ {"version":3,"sources":["../../../semantha-product-sdk/requirements/api/report.ts","../../../semantha-product-sdk/requirements/api/analyses.ts","../../../semantha-product-sdk/requirements/api/analysisExport.ts","../../../semantha-product-sdk/requirements/api/analysisAnswers.ts","../../../semantha-product-sdk/requirements/api/analysisResults.ts","../../../semantha-product-sdk/requirements/api/stats.ts","../../../semantha-product-sdk/requirements/api/pagedresults.ts","../../../semantha-product-sdk/requirements/api/analysis.ts","../../../semantha-product-sdk/requirements/api/export.ts","../../../semantha-product-sdk/requirements/api/results.ts","../../../semantha-product-sdk/requirements/api/bulk.ts","../../../semantha-product-sdk/requirements/api/classifications.ts","../../../semantha-product-sdk/requirements/api/comments.ts","../../../semantha-product-sdk/requirements/api/roles.ts","../../../semantha-product-sdk/requirements/api/currentuser.ts","../../../semantha-product-sdk/requirements/api/evaluation.ts","../../../semantha-product-sdk/requirements/api/evaluations.ts","../../../semantha-product-sdk/requirements/api/exceltemplate.ts","../../../semantha-product-sdk/requirements/api/new.ts","../../../semantha-product-sdk/requirements/api/exceltemplates.ts","../../../semantha-product-sdk/requirements/api/references.ts","../../../semantha-product-sdk/requirements/api/result.ts","../../../semantha-product-sdk/requirements/api/domain.ts","../../../semantha-product-sdk/requirements/api/domains.ts","../../../semantha-product-sdk/requirements/api/requirements.ts","../../../semantha-product-sdk/requirements/api/requirementsAPI.ts"],"names":["ReportEndpoint","restClient","parentEndpoint","body","params","AnalysesEndpoint","data","AnalysisExportEndpoint","AnalysisAnswersEndpoint","AnalysisResultsEndpoint","StatsEndpoint","PagedresultsEndpoint","AnalysisEndpoint","analysisid","ExportEndpoint","ResultsEndpoint","BulkEndpoint","ClassificationsEndpoint","CommentsEndpoint","RolesEndpoint","CurrentuserEndpoint","EvaluationEndpoint","id","EvaluationsEndpoint","ExceltemplateEndpoint","NewEndpoint","ExceltemplatesEndpoint","ReferencesEndpoint","ResultEndpoint","resultid","DomainEndpoint","domainname","DomainsEndpoint","RequirementsEndpoint","PARENT_ENDPOINT","RequirementsAPI","_RequirementsAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"qEAUO,IAAMA,CAAAA,CAAN,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CAAAA,CACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CAAAA,CACA,IAAA,CAAA,cAAA,CAAAC,CAAAA,CAEjB,KAAK,QAAA,CAAW,IAAA,CAAK,eAAiB,UACxC,CAPiB,SAYjB,MAAM,IAAA,CACJC,CAAAA,CACAC,CAAAA,CAG0B,CAC1B,OAAA,CACE,MAAM,IAAA,CAAK,UAAA,CAAW,KACpB,IAAA,CAAK,QAAA,CACLA,EACA,IAAA,CAAK,UAAA,CAAW,QAAA,CAAA,kBAAuB,CAAA,CACvCD,CACF,CAAA,EACA,SACJ,CAKA,MAAM,UAAA,CACJA,CAAAA,CACAC,EAGgB,CAChB,OAAA,CACE,MAAM,IAAA,CAAK,UAAA,CAAW,IAAA,CACpB,KAAK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BC,EAAWG,CAAAA,CAAUC,CAAAA,CAAcC,CAAQ,CACzF,CACG,MAAM,IAAI,KAAA,CAAM,6DAA6D,CAC/E,CAEA,OAAe,eAAeL,CAAAA,CAA2B,CACvD,OAAIA,CAAAA,CAAU,QAAA,CAAS,GAAG,CAAA,GACxBA,CAAAA,CAAYA,CAAAA,CAAU,KAAA,CAAM,CAAA,CAAG,EAAE,GAE/BA,CAAAA,CAAU,QAAA,CAAS,sBAAsB,CAAA,CAC3CA,CAAAA,CAAYA,EAAU,OAAA,CAAQ,sBAAA,CAAwB,oBAAoB,CAAA,CAChEA,CAAAA,CAAU,QAAA,CAAS,oBAAoB,CAAA,GACjDA,CAAAA,EAAa,sBAERA,CACT,CAEA,OAAe,0BAAA,CAA2BS,CAAAA,CAAmBF,CAAAA,CAA2B,CACtF,IAAA,IAAWC,CAAAA,IAAQD,EACjB,GAAIC,CAAAA,CAAK,CAAC,CAAA,GAAMC,CAAAA,CACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,OAAA,CAAQ,KAAA,CAAO,GAAG,EAGrC,MAAM,KAAA,CAAM,iCAAiCC,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 { AnalysesReport } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/report\"\n * This is a generated file do not change manually!\n */\nexport class ReportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/report\";\n }\n\n /**\n * @param body string[]? - \n */\n async post(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<AnalysesReport> {\n return (\n await this.restClient.post<AnalysesReport>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n \n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n timezone?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisCreation } from '../model';\nimport { AnalysisInput } from '../model';\nimport { FormDataContentDisposition } from '../model';\nimport { MediaType } from '../../rest';\nimport { ReportEndpoint } from './report';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses\"\n * This is a generated file do not change manually!\n */\nexport class AnalysesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\";\n }\n\n report(): ReportEndpoint {\n return new ReportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Analysis[]> {\n return (\n await this.restClient.get<Analysis[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param file FormDataContentDisposition? - \n * @param analysisdata AnalysisInput[]? - \n * @param similaritythreshold number? - \n * @param strategy string? - \n * @param name string? - \n * @param maxreferences number? - \n * @param tags string? - \n * @param documentclassids string[]? - \n * @param goodmatchesthreshold number? - \n * @param matchallreferences boolean? - \n * @param showdocscore boolean? - \n * @param type string? - \n * @param promptid string? - \n */\n async post(data: {\n file?: FormDataContentDisposition,\n analysisdata?: AnalysisInput[],\n similaritythreshold?: number,\n strategy?: string,\n name?: string,\n maxreferences?: number,\n tags?: string,\n documentclassids?: string[],\n goodmatchesthreshold?: number,\n matchallreferences?: boolean,\n showdocscore?: boolean,\n type?: string,\n promptid?: string,\n }): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n \n /**\n * @param body AnalysisCreation? - \n */\n async postJson(\n body?: AnalysisCreation,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results/answers/export\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n async postAsXlsx(params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n {},\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { AnalysisExportEndpoint } from './analysisExport';\nimport { MediaType } from '../../rest';\nimport { PromptResult } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results/answers\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisAnswersEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/answers\";\n }\n\n export(): AnalysisExportEndpoint {\n return new AnalysisExportEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<PromptResult[]> {\n return (\n await this.restClient.get<PromptResult[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisAnswersEndpoint } from './analysisAnswers';\nimport { AnalysisResultOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/results\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n answers(): AnalysisAnswersEndpoint {\n return new AnalysisAnswersEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params?: {\n withdetails?: boolean,\n }): Promise<AnalysisResultOverview[]> {\n return (\n await this.restClient.get<AnalysisResultOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsStatsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults/stats\"\n * This is a generated file do not change manually!\n */\nexport class StatsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/stats\";\n }\n\n async get(params?: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n }): Promise<AnalysisResultsStatsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsStatsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultsResponseContainer } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { StatsEndpoint } from './stats';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}/pagedresults\"\n * This is a generated file do not change manually!\n */\nexport class PagedresultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/pagedresults\";\n }\n\n stats(): StatsEndpoint {\n return new StatsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params: {\n resultids?: string,\n minscore?: number,\n maxscore?: number,\n name?: string,\n reviewstatus?: string,\n classifications?: string,\n additionaldataname?: string,\n additionaldatavalues?: string,\n limit: number,\n offset: number,\n }): Promise<AnalysisResultsResponseContainer> {\n return (\n await this.restClient.get<AnalysisResultsResponseContainer>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Analysis } from '../model';\nimport { AnalysisResultsEndpoint } from './analysisResults';\nimport { Entity } from '../model';\nimport { PagedresultsEndpoint } from './pagedresults';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/analyses/{analysisid}\"\n * This is a generated file do not change manually!\n */\nexport class AnalysisEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly analysisid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/analyses\" + `/${this.analysisid}`;\n }\n\n pagedresults(): PagedresultsEndpoint {\n return new PagedresultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): AnalysisResultsEndpoint {\n return new AnalysisResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Entity - \n */\n async patch(\n body: Entity,\n ): Promise<Analysis> {\n return (\n await this.restClient.patch<Analysis>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/export\"\n * This is a generated file do not change manually!\n */\nexport class ExportEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/export\";\n }\n\n /**\n * @param body string[]? - \n */\n async postAsXlsx(\n body: string[],\n params?: {\n templateid?: string,\n }): Promise<Blob> {\n return (\n await this.restClient.post<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.XLSX),\n body,\n \"blob\"\n )\n ).toFile();\n }\n}\n","import { ExportEndpoint } from './export';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results\"\n * This is a generated file do not change manually!\n */\nexport class ResultsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\";\n }\n\n export(): ExportEndpoint {\n return new ExportEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/bulk\"\n * This is a generated file do not change manually!\n */\nexport class BulkEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/bulk\";\n }\n\n results(): ResultsEndpoint {\n return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { Classification } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/classifications\"\n * This is a generated file do not change manually!\n */\nexport class ClassificationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/classifications\";\n }\n\n async get(): Promise<Classification[]> {\n return (\n await this.restClient.get<Classification[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { AnalysisResultComment } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/comments\"\n * This is a generated file do not change manually!\n */\nexport class CommentsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/comments\";\n }\n\n /**\n * @param body AnalysisResultComment? - \n */\n async post(\n body?: AnalysisResultComment,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/currentuser/roles\"\n * This is a generated file do not change manually!\n */\nexport class RolesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/roles\";\n }\n\n /**\n * Get the role/s of the current user.\n */\n async get(): Promise<string[]> {\n return (\n await this.restClient.get<string[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { CurrentUser } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { RolesEndpoint } from './roles';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/currentuser\"\n * This is a generated file do not change manually!\n */\nexport class CurrentuserEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/currentuser\";\n }\n\n roles(): RolesEndpoint {\n return new RolesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n /**\n * Get information about the current user.\n */\n async get(): Promise<CurrentUser> {\n return (\n await this.restClient.get<CurrentUser>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/evaluations/{id}\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\" + `/${this.id}`;\n }\n\n async get(): Promise<Evaluation> {\n return (\n await this.restClient.get<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation - \n */\n async patch(\n body: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.patch<Evaluation>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { Evaluation } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}/evaluations\"\n * This is a generated file do not change manually!\n */\nexport class EvaluationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/evaluations\";\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body Evaluation[] - \n */\n async put(\n body: Evaluation[],\n ): Promise<Evaluation[]> {\n return (\n await this.restClient.put<Evaluation[]>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n\n /**\n * @param body Evaluation? - \n */\n async post(\n body?: Evaluation,\n ): Promise<Evaluation> {\n return (\n await this.restClient.post<Evaluation>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/{id}\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplateEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\" + `/${this.id}`;\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body ExcelTemplateDetails - \n */\n async put(\n body: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.put<ExcelTemplateDetails>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates/new\"\n * This is a generated file do not change manually!\n */\nexport class NewEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/new\";\n }\n\n async get(params?: {\n analysisid?: string,\n }): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.get<ExcelTemplateDetails>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Entity } from '../model';\nimport { ExcelTemplateDetails } from '../model';\nimport { MediaType } from '../../rest';\nimport { NewEndpoint } from './new';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/exceltemplates\"\n * This is a generated file do not change manually!\n */\nexport class ExceltemplatesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/exceltemplates\";\n }\n\n new(): NewEndpoint {\n return new NewEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(): Promise<Entity[]> {\n return (\n await this.restClient.get<Entity[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * @param body ExcelTemplateDetails? - \n */\n async post(\n body?: ExcelTemplateDetails,\n ): Promise<ExcelTemplateDetails> {\n return (\n await this.restClient.post<ExcelTemplateDetails>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { AnalysisInput } from '../model';\nimport { ExtendedReference } from '../model';\nimport { MediaType } from '../../rest';\nimport { ModeEnum } from '../model';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/references\"\n * This is a generated file do not change manually!\n */\nexport class ReferencesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/references\";\n }\n\n /**\n * @param file AnalysisInput? - \n * @param referencedocument Blob? - Optional reference documents\n * @param tags string? - \n * @param similaritythreshold number? - \n * @param documentclassids string[]? - \n * @param mode ModeEnum? - \n */\n async post(data: {\n file?: AnalysisInput,\n referencedocument?: Blob,\n tags?: string,\n similaritythreshold?: number,\n documentclassids?: string[],\n mode?: ModeEnum,\n }): Promise<ExtendedReference[]> {\n return (\n await this.restClient.post<ExtendedReference[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { AnalysisResult } from '../model';\nimport { CommentsEndpoint } from './comments';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}/results/{resultid}\"\n * This is a generated file do not change manually!\n */\nexport class ResultEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly resultid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/results\" + `/${this.resultid}`;\n }\n\n comments(): CommentsEndpoint {\n return new CommentsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint {\n return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n async get(params?: {\n withreferencedocument?: boolean,\n }): Promise<AnalysisResult> {\n return (\n await this.restClient.get<AnalysisResult>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n async delete() {\n return await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * @param body AnalysisResult - \n */\n async patch(\n body: AnalysisResult,\n ): Promise<AnalysisResult> {\n return (\n await this.restClient.patch<AnalysisResult>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { AnalysesEndpoint } from './analyses';\nimport { AnalysisEndpoint } from './analysis';\nimport { BulkEndpoint } from './bulk';\nimport { ClassificationsEndpoint } from './classifications';\nimport { EvaluationEndpoint } from './evaluation';\nimport { EvaluationsEndpoint } from './evaluations';\nimport { ExceltemplateEndpoint } from './exceltemplate';\nimport { ExceltemplatesEndpoint } from './exceltemplates';\nimport { ReferencesEndpoint } from './references';\nimport { RestClient } from '../../rest';\nimport { ResultEndpoint } from './result';\nimport { ResultsEndpoint } from './results';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n analyses(): AnalysesEndpoint;\n analyses(analysisid: string): AnalysisEndpoint\n \n analyses(analysisid?: string): AnalysisEndpoint | AnalysesEndpoint {\n if(analysisid !== undefined && analysisid !== null) {\n\t return new AnalysisEndpoint(this.restClient, this.ENDPOINT, analysisid);\n } else {\n\t return new AnalysesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n bulk(): BulkEndpoint {\n return new BulkEndpoint(this.restClient, this.ENDPOINT);\n }\n\n classifications(): ClassificationsEndpoint {\n return new ClassificationsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n evaluations(): EvaluationsEndpoint;\n evaluations(id: string): EvaluationEndpoint\n \n evaluations(id?: string): EvaluationEndpoint | EvaluationsEndpoint {\n if(id !== undefined && id !== null) {\n\t return new EvaluationEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new EvaluationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n exceltemplates(): ExceltemplatesEndpoint;\n exceltemplates(id: string): ExceltemplateEndpoint\n \n exceltemplates(id?: string): ExceltemplateEndpoint | ExceltemplatesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new ExceltemplateEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new ExceltemplatesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n references(): ReferencesEndpoint {\n return new ReferencesEndpoint(this.restClient, this.ENDPOINT);\n }\n\n results(): ResultsEndpoint;\n results(resultid: string): ResultEndpoint\n \n results(resultid?: string): ResultEndpoint | ResultsEndpoint {\n if(resultid !== undefined && resultid !== null) {\n\t return new ResultEndpoint(this.restClient, this.ENDPOINT, resultid);\n } else {\n\t return new ResultsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { CurrentuserEndpoint } from './currentuser';\nimport { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/requirements\"\n * This is a generated file do not change manually!\n */\nexport class RequirementsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/requirements\";\n }\n\n currentuser(): CurrentuserEndpoint {\n return new CurrentuserEndpoint(this.restClient, this.ENDPOINT);\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { RequirementsEndpoint } from './requirements';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Requirements API.\n *\n * @author semantha\n * Calls the /requirements, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class RequirementsAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): RequirementsAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new RequirementsAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the Requirements API\n *\n * @param serverUrl: string - URL to the Requirements server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): RequirementsAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new RequirementsAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the Requirements API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return RequirementsAPI: Entry point to the Requirements API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : RequirementsAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return RequirementsAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n requirements(): RequirementsEndpoint {\n return new RequirementsEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"aAKaA,IAAAA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KACA,CAAA,UAAA,CACA,qBACF,EAGO,SAASC,CAA8BC,CAAAA,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAASE,CAAAA,CAAK,CACpD,CCVaC,IAAAA,CAAAA,CAA2B,CACtC,OACA,CAAA,KAAA,CACA,UACA,CAAA,qBACF,EAGO,SAASC,EAA0BF,CAAyC,CAAA,CACjF,OAAOC,CAAAA,CAAyB,QAASD,CAAAA,CAAK,CAChD,CCVO,IAAMG,CAA2B,CAAA,CACtC,cACA,CAAA,QAAA,CACA,cACA,UACA,CAAA,kBAAA,CACA,OACA,CAAA,SAAA,CACA,WACA,CAAA,OAAA,CACA,gBACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAyC,CAAA,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CChBO,IAAMK,CAAyB,CAAA,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAuC,CAAA,CAC7E,OAAOK,CAAuB,CAAA,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,EAAgD,CAC3D,gBAAA,CACA,oBACA,CAAA,6BACF,EAGO,SAASC,EAA+CR,CAA8D,CAAA,CAC3H,OAAOO,CAAAA,CAA8C,QAASP,CAAAA,CAAK,CACrE,CCTO,IAAMS,CAAiB,CAAA,CAC5B,aACA,CAAA,SAAA,CACA,WACA,sBACA,CAAA,qBAAA,CACA,MACF,EAGO,SAASC,CAAAA,CAAgBV,CAA+B,CAAA,CAC7D,OAAOS,CAAAA,CAAe,QAAST,CAAAA,CAAK,CACtC","file":"index.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
1
+ {"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"aAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,EAA0BF,CAAAA,CAAyC,CACjF,OAAOC,CAAAA,CAAyB,QAAA,CAASD,CAAK,CAChD,CCVO,IAAMG,CAAAA,CAA2B,CACtC,cAAA,CACA,QAAA,CACA,cACA,UAAA,CACA,kBAAA,CACA,OAAA,CACA,SAAA,CACA,WAAA,CACA,OAAA,CACA,gBACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAAA,CAAyC,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CChBO,IAAMK,CAAAA,CAAyB,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAAA,CAAuC,CAC7E,OAAOK,CAAAA,CAAuB,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,EAAgD,CAC3D,gBAAA,CACA,oBAAA,CACA,6BACF,EAGO,SAASC,EAA+CR,CAAAA,CAA8D,CAC3H,OAAOO,CAAAA,CAA8C,QAAA,CAASP,CAAK,CACrE,CCTO,IAAMS,CAAAA,CAAiB,CAC5B,aAAA,CACA,SAAA,CACA,WACA,sBAAA,CACA,qBAAA,CACA,MACF,EAGO,SAASC,CAAAA,CAAgBV,CAAAA,CAA+B,CAC7D,OAAOS,CAAAA,CAAe,QAAA,CAAST,CAAK,CACtC","file":"index.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"AAKaA,IAAAA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KACA,CAAA,UAAA,CACA,qBACF,EAGO,SAASC,CAA8BC,CAAAA,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAASE,CAAAA,CAAK,CACpD,CCVaC,IAAAA,CAAAA,CAA2B,CACtC,OACA,CAAA,KAAA,CACA,UACA,CAAA,qBACF,EAGO,SAASC,EAA0BF,CAAyC,CAAA,CACjF,OAAOC,CAAAA,CAAyB,QAASD,CAAAA,CAAK,CAChD,CCVO,IAAMG,CAA2B,CAAA,CACtC,cACA,CAAA,QAAA,CACA,cACA,UACA,CAAA,kBAAA,CACA,OACA,CAAA,SAAA,CACA,WACA,CAAA,OAAA,CACA,gBACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAyC,CAAA,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CChBO,IAAMK,CAAyB,CAAA,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAuC,CAAA,CAC7E,OAAOK,CAAuB,CAAA,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,EAAgD,CAC3D,gBAAA,CACA,oBACA,CAAA,6BACF,EAGO,SAASC,EAA+CR,CAA8D,CAAA,CAC3H,OAAOO,CAAAA,CAA8C,QAASP,CAAAA,CAAK,CACrE,CCTO,IAAMS,CAAiB,CAAA,CAC5B,aACA,CAAA,SAAA,CACA,WACA,sBACA,CAAA,qBAAA,CACA,MACF,EAGO,SAASC,CAAAA,CAAgBV,CAA+B,CAAA,CAC7D,OAAOS,CAAAA,CAAe,QAAST,CAAAA,CAAK,CACtC","file":"index.mjs","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
1
+ {"version":3,"sources":["../../../semantha-product-sdk/requirements/model/analysisReportTypeEnum.ts","../../../semantha-product-sdk/requirements/model/analysisSourceEnum.ts","../../../semantha-product-sdk/requirements/model/analysisStatusEnum.ts","../../../semantha-product-sdk/requirements/model/analysisTypeEnum.ts","../../../semantha-product-sdk/requirements/model/excelTemplateColumnConfigHeaderTypeEnum.ts","../../../semantha-product-sdk/requirements/model/modeEnum.ts"],"names":["AnalysisReportTypeEnumValues","isAnalysisReportTypeEnumValue","value","AnalysisSourceEnumValues","isAnalysisSourceEnumValue","AnalysisStatusEnumValues","isAnalysisStatusEnumValue","AnalysisTypeEnumValues","isAnalysisTypeEnumValue","ExcelTemplateColumnConfigHeaderTypeEnumValues","isExcelTemplateColumnConfigHeaderTypeEnumValue","ModeEnumValues","isModeEnumValue"],"mappings":"AAKO,IAAMA,CAAAA,CAA+B,CAC1C,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,CAAAA,CAA8BC,CAAAA,CAA6C,CACzF,OAAOF,EAA6B,QAAA,CAASE,CAAK,CACpD,CCVO,IAAMC,CAAAA,CAA2B,CACtC,OAAA,CACA,KAAA,CACA,UAAA,CACA,qBACF,EAGO,SAASC,EAA0BF,CAAAA,CAAyC,CACjF,OAAOC,CAAAA,CAAyB,QAAA,CAASD,CAAK,CAChD,CCVO,IAAMG,CAAAA,CAA2B,CACtC,cAAA,CACA,QAAA,CACA,cACA,UAAA,CACA,kBAAA,CACA,OAAA,CACA,SAAA,CACA,WAAA,CACA,OAAA,CACA,gBACF,EAGO,SAASC,CAAAA,CAA0BJ,CAAAA,CAAyC,CACjF,OAAOG,CAAAA,CAAyB,SAASH,CAAK,CAChD,CChBO,IAAMK,CAAAA,CAAyB,CACpC,aACA,QACF,EAGO,SAASC,CAAAA,CAAwBN,CAAAA,CAAuC,CAC7E,OAAOK,CAAAA,CAAuB,QAAA,CAASL,CAAK,CAC9C,CCRO,IAAMO,EAAgD,CAC3D,gBAAA,CACA,oBAAA,CACA,6BACF,EAGO,SAASC,EAA+CR,CAAAA,CAA8D,CAC3H,OAAOO,CAAAA,CAA8C,QAAA,CAASP,CAAK,CACrE,CCTO,IAAMS,CAAAA,CAAiB,CAC5B,aAAA,CACA,SAAA,CACA,WACA,sBAAA,CACA,qBAAA,CACA,MACF,EAGO,SAASC,CAAAA,CAAgBV,CAAAA,CAA+B,CAC7D,OAAOS,CAAAA,CAAe,QAAA,CAAST,CAAK,CACtC","file":"index.mjs","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisReportTypeEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisReportTypeEnum = (typeof AnalysisReportTypeEnumValues)[number];\n\nexport function isAnalysisReportTypeEnumValue(value: any): value is AnalysisReportTypeEnum {\n return AnalysisReportTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisSourceEnumValues = [\n 'EXCEL',\n 'PDF',\n 'POLARION',\n 'STRUCTURE_NAVIGATOR'\n] as const;\nexport type AnalysisSourceEnum = (typeof AnalysisSourceEnumValues)[number];\n\nexport function isAnalysisSourceEnumValue(value: any): value is AnalysisSourceEnum {\n return AnalysisSourceEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisStatusEnumValues = [\n 'INITIALIZING',\n 'QUEUED',\n 'IN_PROGRESS',\n 'FINISHED',\n 'UPDATING_RESULTS',\n 'ERROR',\n 'UNKNOWN',\n 'CANCELLED',\n 'EMPTY',\n 'LIMIT_EXCEEDED'\n] as const;\nexport type AnalysisStatusEnum = (typeof AnalysisStatusEnumValues)[number];\n\nexport function isAnalysisStatusEnumValue(value: any): value is AnalysisStatusEnum {\n return AnalysisStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const AnalysisTypeEnumValues = [\n 'SIMILARITY',\n 'PROMPT'\n] as const;\nexport type AnalysisTypeEnum = (typeof AnalysisTypeEnumValues)[number];\n\nexport function isAnalysisTypeEnumValue(value: any): value is AnalysisTypeEnum {\n return AnalysisTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ExcelTemplateColumnConfigHeaderTypeEnumValues = [\n 'DEFAULT_COLUMN',\n 'PLACEHOLDER_COLUMN',\n 'EDITABLE_PLACEHOLDER_COLUMN'\n] as const;\nexport type ExcelTemplateColumnConfigHeaderTypeEnum = (typeof ExcelTemplateColumnConfigHeaderTypeEnumValues)[number];\n\nexport function isExcelTemplateColumnConfigHeaderTypeEnumValue(value: any): value is ExcelTemplateColumnConfigHeaderTypeEnum {\n return ExcelTemplateColumnConfigHeaderTypeEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const ModeEnumValues = [\n 'fingerprint',\n 'keyword',\n 'document',\n 'document_fingerprint',\n 'fingerprint_keyword',\n 'auto'\n] as const;\nexport type ModeEnum = (typeof ModeEnumValues)[number];\n\nexport function isModeEnumValue(value: any): value is ModeEnum {\n return ModeEnumValues.includes(value);\n}\n\n"]}
@@ -1,5 +1,5 @@
1
1
  import { RestClient, RestResponse } from '../../rest/index.mjs';
2
- import { C as Configuration, a as ConfigurationUpdate, E as Event, D as DocumentStructure, j as DocumentStructureUpdate, c as DocumentStructureOverview } from '../../eventTypeEnum-B89xECKK.mjs';
2
+ import { C as Configuration, a as ConfigurationUpdate, E as Event, D as DocumentStructure, k as DocumentStructureUpdate, c as DocumentStructureOverview, f as DocumentStructureReplaceSections } from '../../eventTypeEnum-Ht9OkfT2.mjs';
3
3
  import 'axios';
4
4
 
5
5
  /**
@@ -169,6 +169,12 @@ declare class DocumentstructureEndpoint {
169
169
  * @param body DocumentStructureUpdate -
170
170
  */
171
171
  patch(body: DocumentStructureUpdate): Promise<DocumentStructureOverview>;
172
+ /**
173
+ * Replace paragraphs of an existing document structure.
174
+ *
175
+ * @param body DocumentStructureReplaceSections -
176
+ */
177
+ put(body: DocumentStructureReplaceSections): Promise<DocumentStructureOverview>;
172
178
  }
173
179
 
174
180
  /**
@@ -1,5 +1,5 @@
1
1
  import { RestClient, RestResponse } from '../../rest/index.js';
2
- import { C as Configuration, a as ConfigurationUpdate, E as Event, D as DocumentStructure, j as DocumentStructureUpdate, c as DocumentStructureOverview } from '../../eventTypeEnum-B89xECKK.js';
2
+ import { C as Configuration, a as ConfigurationUpdate, E as Event, D as DocumentStructure, k as DocumentStructureUpdate, c as DocumentStructureOverview, f as DocumentStructureReplaceSections } from '../../eventTypeEnum-Ht9OkfT2.js';
3
3
  import 'axios';
4
4
 
5
5
  /**
@@ -169,6 +169,12 @@ declare class DocumentstructureEndpoint {
169
169
  * @param body DocumentStructureUpdate -
170
170
  */
171
171
  patch(body: DocumentStructureUpdate): Promise<DocumentStructureOverview>;
172
+ /**
173
+ * Replace paragraphs of an existing document structure.
174
+ *
175
+ * @param body DocumentStructureReplaceSections -
176
+ */
177
+ put(body: DocumentStructureReplaceSections): Promise<DocumentStructureOverview>;
172
178
  }
173
179
 
174
180
  /**
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkNGJU6JRX_js=require('../../chunk-NGJU6JRX.js');require('../../chunk-WFUCUDFC.js');Object.defineProperty(exports,"BinaryEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.a}});Object.defineProperty(exports,"ConfigurationEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.b}});Object.defineProperty(exports,"ConfigurationsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.c}});Object.defineProperty(exports,"DocumentstructureEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.f}});Object.defineProperty(exports,"DocumentstructuresEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.g}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.h}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.i}});Object.defineProperty(exports,"EventsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.d}});Object.defineProperty(exports,"ScreenshotsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.e}});Object.defineProperty(exports,"StructureNavigatorAPI",{enumerable:true,get:function(){return chunkNGJU6JRX_js.k}});Object.defineProperty(exports,"StructurenavigatorEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.j}});//# sourceMappingURL=index.js.map
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
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-27V2G4KK.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-CS7BBFY4.mjs';import'../../chunk-OHHE5EHF.mjs';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- export { A as AttributeType, C as Configuration, a as ConfigurationUpdate, b as CustomField, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, g as DocumentStructureStatusEnum, f as DocumentStructureStatusEnumValues, j as DocumentStructureUpdate, E as Event, l as EventTypeEnum, k as EventTypeEnumValues, F as FormatInformation, n as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, S as Section, o as StructureAttachment, p as StructureParagraph, q as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, h as isDocumentStructureStatusEnumValue, m as isEventTypeEnumValue } from '../eventTypeEnum-B89xECKK.mjs';
1
+ export { A as AttributeType, C as Configuration, a as ConfigurationUpdate, b as CustomField, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, f as DocumentStructureReplaceSections, h as DocumentStructureStatusEnum, g as DocumentStructureStatusEnumValues, k as DocumentStructureUpdate, E as Event, m as EventTypeEnum, l as EventTypeEnumValues, F as FormatInformation, o as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, S as Section, p as StructureAttachment, q as StructureParagraph, r as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, j as isDocumentStructureStatusEnumValue, n as isEventTypeEnumValue } from '../eventTypeEnum-Ht9OkfT2.mjs';
2
2
  export { BulkConfiguration, BulkDocumentStructure, BulkDocumentStructureStatusEnum, BulkDocumentStructureStatusEnumValues, BulkFormatInformation, isBulkDocumentStructureStatusEnumValue } from './model/index.mjs';
3
3
  export { BinaryEndpoint, ConfigurationEndpoint, ConfigurationsEndpoint, DocumentstructureEndpoint, DocumentstructuresEndpoint, DomainEndpoint, DomainsEndpoint, EventsEndpoint, ScreenshotsEndpoint, StructureNavigatorAPI, StructurenavigatorEndpoint } from './api/index.mjs';
4
4
  import '../rest/index.mjs';
@@ -1,4 +1,4 @@
1
- export { A as AttributeType, C as Configuration, a as ConfigurationUpdate, b as CustomField, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, g as DocumentStructureStatusEnum, f as DocumentStructureStatusEnumValues, j as DocumentStructureUpdate, E as Event, l as EventTypeEnum, k as EventTypeEnumValues, F as FormatInformation, n as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, S as Section, o as StructureAttachment, p as StructureParagraph, q as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, h as isDocumentStructureStatusEnumValue, m as isEventTypeEnumValue } from '../eventTypeEnum-B89xECKK.js';
1
+ export { A as AttributeType, C as Configuration, a as ConfigurationUpdate, b as CustomField, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, f as DocumentStructureReplaceSections, h as DocumentStructureStatusEnum, g as DocumentStructureStatusEnumValues, k as DocumentStructureUpdate, E as Event, m as EventTypeEnum, l as EventTypeEnumValues, F as FormatInformation, o as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, S as Section, p as StructureAttachment, q as StructureParagraph, r as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, j as isDocumentStructureStatusEnumValue, n as isEventTypeEnumValue } from '../eventTypeEnum-Ht9OkfT2.js';
2
2
  export { BulkConfiguration, BulkDocumentStructure, BulkDocumentStructureStatusEnum, BulkDocumentStructureStatusEnumValues, BulkFormatInformation, isBulkDocumentStructureStatusEnumValue } from './model/index.js';
3
3
  export { BinaryEndpoint, ConfigurationEndpoint, ConfigurationsEndpoint, DocumentstructureEndpoint, DocumentstructuresEndpoint, DomainEndpoint, DomainsEndpoint, EventsEndpoint, ScreenshotsEndpoint, StructureNavigatorAPI, StructurenavigatorEndpoint } from './api/index.js';
4
4
  import '../rest/index.js';
@@ -1,2 +1,2 @@
1
- 'use strict';var chunkNGJU6JRX_js=require('../chunk-NGJU6JRX.js'),chunk4R65LLWL_js=require('../chunk-4R65LLWL.js');require('../chunk-WFUCUDFC.js');Object.defineProperty(exports,"BinaryEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.a}});Object.defineProperty(exports,"ConfigurationEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.b}});Object.defineProperty(exports,"ConfigurationsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.c}});Object.defineProperty(exports,"DocumentstructureEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.f}});Object.defineProperty(exports,"DocumentstructuresEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.g}});Object.defineProperty(exports,"DomainEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.h}});Object.defineProperty(exports,"DomainsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.i}});Object.defineProperty(exports,"EventsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.d}});Object.defineProperty(exports,"ScreenshotsEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.e}});Object.defineProperty(exports,"StructureNavigatorAPI",{enumerable:true,get:function(){return chunkNGJU6JRX_js.k}});Object.defineProperty(exports,"StructurenavigatorEndpoint",{enumerable:true,get:function(){return chunkNGJU6JRX_js.j}});Object.defineProperty(exports,"BulkDocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.a}});Object.defineProperty(exports,"DocumentStructureOverviewStatusEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.c}});Object.defineProperty(exports,"DocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.e}});Object.defineProperty(exports,"EventTypeEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.g}});Object.defineProperty(exports,"isBulkDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.b}});Object.defineProperty(exports,"isDocumentStructureOverviewStatusEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.d}});Object.defineProperty(exports,"isDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.f}});Object.defineProperty(exports,"isEventTypeEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.h}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkJ6MTVURL_js=require('../chunk-J6MTVURL.js');require('../chunk-WFUCUDFC.js');var chunkKFGKXHFV_js=require('../chunk-KFGKXHFV.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
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-27V2G4KK.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-TNZ7KC6A.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-CS7BBFY4.mjs';import'../chunk-OHHE5EHF.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';//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,5 +1,5 @@
1
- import { A as AttributeType, b as CustomField, S as Section, F as FormatInformation, o as StructureAttachment } from '../../eventTypeEnum-B89xECKK.mjs';
2
- export { C as Configuration, a as ConfigurationUpdate, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, g as DocumentStructureStatusEnum, f as DocumentStructureStatusEnumValues, j as DocumentStructureUpdate, E as Event, l as EventTypeEnum, k as EventTypeEnumValues, n as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, p as StructureParagraph, q as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, h as isDocumentStructureStatusEnumValue, m as isEventTypeEnumValue } from '../../eventTypeEnum-B89xECKK.mjs';
1
+ import { A as AttributeType, b as CustomField, S as Section, F as FormatInformation, p as StructureAttachment } from '../../eventTypeEnum-Ht9OkfT2.mjs';
2
+ export { C as Configuration, a as ConfigurationUpdate, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, f as DocumentStructureReplaceSections, h as DocumentStructureStatusEnum, g as DocumentStructureStatusEnumValues, k as DocumentStructureUpdate, E as Event, m as EventTypeEnum, l as EventTypeEnumValues, o as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, q as StructureParagraph, r as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, j as isDocumentStructureStatusEnumValue, n as isEventTypeEnumValue } from '../../eventTypeEnum-Ht9OkfT2.mjs';
3
3
 
4
4
  /**
5
5
  * @author semantha
@@ -1,5 +1,5 @@
1
- import { A as AttributeType, b as CustomField, S as Section, F as FormatInformation, o as StructureAttachment } from '../../eventTypeEnum-B89xECKK.js';
2
- export { C as Configuration, a as ConfigurationUpdate, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, g as DocumentStructureStatusEnum, f as DocumentStructureStatusEnumValues, j as DocumentStructureUpdate, E as Event, l as EventTypeEnum, k as EventTypeEnumValues, n as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, p as StructureParagraph, q as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, h as isDocumentStructureStatusEnumValue, m as isEventTypeEnumValue } from '../../eventTypeEnum-B89xECKK.js';
1
+ import { A as AttributeType, b as CustomField, S as Section, F as FormatInformation, p as StructureAttachment } from '../../eventTypeEnum-Ht9OkfT2.js';
2
+ export { C as Configuration, a as ConfigurationUpdate, D as DocumentStructure, c as DocumentStructureOverview, e as DocumentStructureOverviewStatusEnum, d as DocumentStructureOverviewStatusEnumValues, f as DocumentStructureReplaceSections, h as DocumentStructureStatusEnum, g as DocumentStructureStatusEnumValues, k as DocumentStructureUpdate, E as Event, m as EventTypeEnum, l as EventTypeEnumValues, o as FormatInformationUpdate, P as ParagraphFormatUpdate, R as Rect, q as StructureParagraph, r as StructureSentence, i as isDocumentStructureOverviewStatusEnumValue, j as isDocumentStructureStatusEnumValue, n as isEventTypeEnumValue } from '../../eventTypeEnum-Ht9OkfT2.js';
3
3
 
4
4
  /**
5
5
  * @author semantha
@@ -1,2 +1,2 @@
1
- 'use strict';var chunk4R65LLWL_js=require('../../chunk-4R65LLWL.js');Object.defineProperty(exports,"BulkDocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.a}});Object.defineProperty(exports,"DocumentStructureOverviewStatusEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.c}});Object.defineProperty(exports,"DocumentStructureStatusEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.e}});Object.defineProperty(exports,"EventTypeEnumValues",{enumerable:true,get:function(){return chunk4R65LLWL_js.g}});Object.defineProperty(exports,"isBulkDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.b}});Object.defineProperty(exports,"isDocumentStructureOverviewStatusEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.d}});Object.defineProperty(exports,"isDocumentStructureStatusEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.f}});Object.defineProperty(exports,"isEventTypeEnumValue",{enumerable:true,get:function(){return chunk4R65LLWL_js.h}});//# sourceMappingURL=index.js.map
1
+ 'use strict';var chunkKFGKXHFV_js=require('../../chunk-KFGKXHFV.js');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 BulkDocumentStructureStatusEnumValues,c as DocumentStructureOverviewStatusEnumValues,e as DocumentStructureStatusEnumValues,g as EventTypeEnumValues,b as isBulkDocumentStructureStatusEnumValue,d as isDocumentStructureOverviewStatusEnumValue,f as isDocumentStructureStatusEnumValue,h as isEventTypeEnumValue}from'../../chunk-TNZ7KC6A.mjs';//# sourceMappingURL=index.mjs.map
1
+ 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';//# 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","d","line","searchKey"],"mappings":"2bAUO,IAAMA,CAAN,CAAA,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,oBAAAC,CAEjB,CAAA,IAAA,CAAK,QAAW,CAAA,IAAA,CAAK,eAAiB,UACxC,CAPiB,QAejB,CAAA,MAAM,IAAKC,CAAAA,CAAAA,CAGU,CACnB,OAAA,CACE,MAAM,IAAK,CAAA,UAAA,CAAW,IACpB,CAAA,IAAA,CAAK,SACL,EAAC,CACD,IAAK,CAAA,UAAA,CAAW,2BAAuB,CACvCA,CAAAA,CACF,CACA,EAAA,OAAA,EACJ,CACF,EC9BO,IAAMC,EAAN,KAA6B,CAGlC,WACmBH,CAAAA,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CACA,CAAA,IAAA,CAAA,cAAA,CAAAC,EAEjB,IAAK,CAAA,QAAA,CAAW,IAAK,CAAA,cAAA,CAAiB,kBACxC,CAPiB,QAAA,CASjB,MAAyB,EAAA,CACvB,OAAO,IAAIF,CAAAA,CAAe,IAAK,CAAA,UAAA,CAAY,KAAK,QAAQ,CAC1D,CACF,ECjBMK,IAAAA,CAAAA,CAAkB,MAcXC,CAAAA,CAAAA,CAAN,MAAMC,CAAkB,CAE7B,WACmBN,CAAAA,CAAAA,CACAC,CACjB,CAAA,CAFiB,gBAAAD,CACA,CAAA,IAAA,CAAA,cAAA,CAAAC,EAEnB,CAUA,OAAO,eACLM,CAAAA,CAAAA,CACAC,CACmB,CA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,CAAAA,CAAQ,CAC3F,CACG,MAAM,IAAI,KAAA,CAAM,6DAA6D,CAC/E,CAEA,OAAe,cAAA,CAAeL,CAA2B,CAAA,CACvD,OAAIA,CAAAA,CAAU,QAAS,CAAA,GAAG,IACxBA,CAAYA,CAAAA,CAAAA,CAAU,KAAM,CAAA,CAAA,CAAG,EAAE,CAE/BA,CAAAA,CAAAA,CAAAA,CAAU,QAAS,CAAA,sBAAsB,EAC3CA,CAAYA,CAAAA,CAAAA,CAAU,OAAQ,CAAA,sBAAA,CAAwB,oBAAoB,CAChEA,CAAAA,CAAAA,CAAU,QAAS,CAAA,oBAAoB,IACjDA,CAAa,EAAA,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAA2BU,CAAAA,CAAAA,CAAmBH,CAA2B,CAAA,CACtF,QAAWE,CAAQF,IAAAA,CAAAA,CACjB,GAAIE,CAAAA,CAAK,CAAC,CAAA,GAAMC,CACd,CAAA,OAAOD,EAAK,CAAC,CAAA,CAAE,OAAQ,CAAA,KAAA,CAAO,GAAG,CAGrC,CAAA,MAAM,KAAM,CAAA,CAAA,8BAAA,EAAiCC,CAAS,CAAG,CAAA,CAAA,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,gBAAyC,CACvC,OAAO,IAAId,CAAAA,CAAuB,KAAK,UAAY,CAAA,IAAA,CAAK,QAAS,EAAC,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,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,CA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,0BAAA,CAA2B,UAAA,CAAYE,CAAK,EAClE,OAAOR,CAAAA,CAAkB,oBAAA,CAAqBC,CAAAA,CAAWG,EAAUC,CAAAA,CAAcC,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,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,CAA2BU,CAAAA,CAAmBH,CAAAA,CAA2B,CACtF,QAAWE,CAAAA,IAAQF,CAAAA,CACjB,GAAIE,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,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 +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,CAAN,CAAA,KAAqB,CAG1B,WAAA,CACmBC,EACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,oBAAAC,CAEjB,CAAA,IAAA,CAAK,QAAW,CAAA,IAAA,CAAK,eAAiB,UACxC,CAPiB,QAejB,CAAA,MAAM,IAAKC,CAAAA,CAAAA,CAGU,CACnB,OAAA,CACE,MAAM,IAAK,CAAA,UAAA,CAAW,IACpB,CAAA,IAAA,CAAK,SACL,EAAC,CACD,IAAK,CAAA,UAAA,CAAW,2BAAuB,CACvCA,CAAAA,CACF,CACA,EAAA,OAAA,EACJ,CACF,EC9BO,IAAMC,EAAN,KAA6B,CAGlC,WACmBH,CAAAA,CAAAA,CACAC,EACjB,CAFiB,IAAA,CAAA,UAAA,CAAAD,CACA,CAAA,IAAA,CAAA,cAAA,CAAAC,EAEjB,IAAK,CAAA,QAAA,CAAW,IAAK,CAAA,cAAA,CAAiB,kBACxC,CAPiB,QAAA,CASjB,MAAyB,EAAA,CACvB,OAAO,IAAIF,CAAAA,CAAe,IAAK,CAAA,UAAA,CAAY,KAAK,QAAQ,CAC1D,CACF,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AAAA,CAAK,CAC5DH,CAAAA,CAAAA,CAAe,KAAK,0BAA2B,CAAA,cAAA,CAAgBG,CAAK,CAAA,CACpEF,EAAW,IAAK,CAAA,0BAAA,CAA2B,UAAYE,CAAAA,CAAK,EAClE,OAAOR,CAAAA,CAAkB,oBAAqBC,CAAAA,CAAAA,CAAWG,EAAUC,CAAcC,CAAAA,CAAQ,CAC3F,CACG,MAAM,IAAI,KAAA,CAAM,6DAA6D,CAC/E,CAEA,OAAe,cAAA,CAAeL,CAA2B,CAAA,CACvD,OAAIA,CAAAA,CAAU,QAAS,CAAA,GAAG,IACxBA,CAAYA,CAAAA,CAAAA,CAAU,KAAM,CAAA,CAAA,CAAG,EAAE,CAE/BA,CAAAA,CAAAA,CAAAA,CAAU,QAAS,CAAA,sBAAsB,EAC3CA,CAAYA,CAAAA,CAAAA,CAAU,OAAQ,CAAA,sBAAA,CAAwB,oBAAoB,CAChEA,CAAAA,CAAAA,CAAU,QAAS,CAAA,oBAAoB,IACjDA,CAAa,EAAA,oBAAA,CAAA,CAERA,CACT,CAEA,OAAe,0BAA2BS,CAAAA,CAAAA,CAAmBF,CAA2B,CAAA,CACtF,QAAWC,CAAQD,IAAAA,CAAAA,CACjB,GAAIC,CAAAA,CAAK,CAAC,CAAA,GAAMC,CACd,CAAA,OAAOD,EAAK,CAAC,CAAA,CAAE,OAAQ,CAAA,KAAA,CAAO,GAAG,CAGrC,CAAA,MAAM,KAAM,CAAA,CAAA,8BAAA,EAAiCC,CAAS,CAAG,CAAA,CAAA,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAA,CAAK,cACd,CAEA,gBAAyC,CACvC,OAAO,IAAIb,CAAAA,CAAuB,KAAK,UAAY,CAAA,IAAA,CAAK,QAAS,EAAC,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,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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} 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}"]}