@semantha/product-sdk 9.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +3 -0
- package/dist/chunk-4R65LLWL.js +2 -0
- package/dist/chunk-4R65LLWL.js.map +1 -0
- package/dist/chunk-7Y3CRYXW.mjs +2 -0
- package/dist/chunk-7Y3CRYXW.mjs.map +1 -0
- package/dist/chunk-BE73RDIS.mjs +2 -0
- package/dist/chunk-BE73RDIS.mjs.map +1 -0
- package/dist/chunk-DOK44NQJ.mjs +2 -0
- package/dist/chunk-DOK44NQJ.mjs.map +1 -0
- package/dist/chunk-DURTIKAP.mjs +2 -0
- package/dist/chunk-DURTIKAP.mjs.map +1 -0
- package/dist/chunk-F5JCME7D.js +2 -0
- package/dist/chunk-F5JCME7D.js.map +1 -0
- package/dist/chunk-I2MRAQSD.mjs +2 -0
- package/dist/chunk-I2MRAQSD.mjs.map +1 -0
- package/dist/chunk-IISTQOX3.js +2 -0
- package/dist/chunk-IISTQOX3.js.map +1 -0
- package/dist/chunk-JCDJ3B7Q.js +2 -0
- package/dist/chunk-JCDJ3B7Q.js.map +1 -0
- package/dist/chunk-OP5BUX5G.js +2 -0
- package/dist/chunk-OP5BUX5G.js.map +1 -0
- package/dist/chunk-TNZ7KC6A.mjs +2 -0
- package/dist/chunk-TNZ7KC6A.mjs.map +1 -0
- package/dist/chunk-Y763UUOV.mjs +2 -0
- package/dist/chunk-Y763UUOV.mjs.map +1 -0
- package/dist/chunk-Z3N63BWG.js +2 -0
- package/dist/chunk-Z3N63BWG.js.map +1 -0
- package/dist/chunk-ZSFNB534.js +2 -0
- package/dist/chunk-ZSFNB534.js.map +1 -0
- package/dist/eventTypeEnum-B89xECKK.d.mts +240 -0
- package/dist/eventTypeEnum-B89xECKK.d.ts +240 -0
- package/dist/file-box/api/index.d.mts +133 -0
- package/dist/file-box/api/index.d.ts +133 -0
- package/dist/file-box/api/index.js +2 -0
- package/dist/file-box/api/index.js.map +1 -0
- package/dist/file-box/api/index.mjs +2 -0
- package/dist/file-box/api/index.mjs.map +1 -0
- package/dist/file-box/index.d.mts +4 -0
- package/dist/file-box/index.d.ts +4 -0
- package/dist/file-box/index.js +2 -0
- package/dist/file-box/index.js.map +1 -0
- package/dist/file-box/index.mjs +2 -0
- package/dist/file-box/index.mjs.map +1 -0
- package/dist/file-box/model/index.d.mts +47 -0
- package/dist/file-box/model/index.d.ts +47 -0
- package/dist/file-box/model/index.js +2 -0
- package/dist/file-box/model/index.js.map +1 -0
- package/dist/file-box/model/index.mjs +2 -0
- package/dist/file-box/model/index.mjs.map +1 -0
- package/dist/modeEnum-CSw6xLrL.d.mts +600 -0
- package/dist/modeEnum-CSw6xLrL.d.ts +600 -0
- package/dist/requirements/api/index.d.mts +466 -0
- package/dist/requirements/api/index.d.ts +466 -0
- package/dist/requirements/api/index.js +2 -0
- package/dist/requirements/api/index.js.map +1 -0
- package/dist/requirements/api/index.mjs +2 -0
- package/dist/requirements/api/index.mjs.map +1 -0
- package/dist/requirements/model/index.d.mts +20 -0
- package/dist/requirements/model/index.d.ts +20 -0
- package/dist/requirements/model/index.js +2 -0
- package/dist/requirements/model/index.js.map +1 -0
- package/dist/requirements/model/index.mjs +2 -0
- package/dist/requirements/model/index.mjs.map +1 -0
- package/dist/rest/index.d.mts +52 -0
- package/dist/rest/index.d.ts +52 -0
- package/dist/rest/index.js +2 -0
- package/dist/rest/index.js.map +1 -0
- package/dist/rest/index.mjs +2 -0
- package/dist/rest/index.mjs.map +1 -0
- package/dist/structure-navigator/api/index.d.mts +311 -0
- package/dist/structure-navigator/api/index.d.ts +311 -0
- package/dist/structure-navigator/api/index.js +2 -0
- package/dist/structure-navigator/api/index.js.map +1 -0
- package/dist/structure-navigator/api/index.mjs +2 -0
- package/dist/structure-navigator/api/index.mjs.map +1 -0
- package/dist/structure-navigator/index.d.mts +5 -0
- package/dist/structure-navigator/index.d.ts +5 -0
- package/dist/structure-navigator/index.js +2 -0
- package/dist/structure-navigator/index.js.map +1 -0
- package/dist/structure-navigator/index.mjs +2 -0
- package/dist/structure-navigator/index.mjs.map +1 -0
- package/dist/structure-navigator/model/index.d.mts +70 -0
- package/dist/structure-navigator/model/index.d.ts +70 -0
- package/dist/structure-navigator/model/index.js +2 -0
- package/dist/structure-navigator/model/index.js.map +1 -0
- package/dist/structure-navigator/model/index.mjs +2 -0
- package/dist/structure-navigator/model/index.mjs.map +1 -0
- package/dist/table-extractor/api/index.d.mts +92 -0
- package/dist/table-extractor/api/index.d.ts +92 -0
- package/dist/table-extractor/api/index.js +2 -0
- package/dist/table-extractor/api/index.js.map +1 -0
- package/dist/table-extractor/api/index.mjs +2 -0
- package/dist/table-extractor/api/index.mjs.map +1 -0
- package/dist/table-extractor/model/index.d.mts +20 -0
- package/dist/table-extractor/model/index.d.ts +20 -0
- package/dist/table-extractor/model/index.js +2 -0
- package/dist/table-extractor/model/index.js.map +1 -0
- package/dist/table-extractor/model/index.mjs +2 -0
- package/dist/table-extractor/model/index.mjs.map +1 -0
- package/dist/tracking/api/index.d.mts +133 -0
- package/dist/tracking/api/index.d.ts +133 -0
- package/dist/tracking/api/index.js +2 -0
- package/dist/tracking/api/index.js.map +1 -0
- package/dist/tracking/api/index.mjs +2 -0
- package/dist/tracking/api/index.mjs.map +1 -0
- package/dist/tracking/index.d.mts +4 -0
- package/dist/tracking/index.d.ts +4 -0
- package/dist/tracking/index.js +2 -0
- package/dist/tracking/index.js.map +1 -0
- package/dist/tracking/index.mjs +2 -0
- package/dist/tracking/index.mjs.map +1 -0
- package/dist/tracking/model/index.d.mts +32 -0
- package/dist/tracking/model/index.d.ts +32 -0
- package/dist/tracking/model/index.js +2 -0
- package/dist/tracking/model/index.js.map +1 -0
- package/dist/tracking/model/index.mjs +2 -0
- package/dist/tracking/model/index.mjs.map +1 -0
- package/package.json +38 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2024 thingsThinking
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var e=["MAPPING","STRUCTURE"];function n(t){return e.includes(t)}var u=["MAPPING","STRUCTURE"];function m(t){return u.includes(t)}var r=["MAPPING","STRUCTURE"];function s(t){return r.includes(t)}var o=["MERGED_SECTION","MOVED_SECTION","SPLITTED_SECTION","UPDATED_SECTION","DELETED_PARAGRAPH","MERGED_PARAGRAPH","MOVED_PARAGRAPH","SPLITTED_PARAGRAPH","UPDATED_PARAGRAPH","INSERTED_PARAGRAPH","MERGED_SENTENCE","SPLITTED_SENTENCE","DELETED_CHARACTER","INSERTED_CHARACTER"];function S(t){return o.includes(t)}exports.a=e;exports.b=n;exports.c=u;exports.d=m;exports.e=r;exports.f=s;exports.g=o;exports.h=S;//# sourceMappingURL=chunk-4R65LLWL.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-4R65LLWL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/structure-navigator/model/bulkDocumentStructureStatusEnum.ts","../semantha-product-sdk/structure-navigator/model/documentStructureOverviewStatusEnum.ts","../semantha-product-sdk/structure-navigator/model/documentStructureStatusEnum.ts","../semantha-product-sdk/structure-navigator/model/eventTypeEnum.ts"],"names":["BulkDocumentStructureStatusEnumValues","isBulkDocumentStructureStatusEnumValue","value","DocumentStructureOverviewStatusEnumValues","isDocumentStructureOverviewStatusEnumValue","DocumentStructureStatusEnumValues","isDocumentStructureStatusEnumValue","EventTypeEnumValues","isEventTypeEnumValue"],"mappings":"aAKO,IAAMA,CAAwC,CAAA,CACnD,SACA,CAAA,WACF,EAGO,SAASC,CAAAA,CAAuCC,CAAsD,CAAA,CAC3G,OAAOF,CAAsC,CAAA,QAAA,CAASE,CAAK,CAC7D,CCRaC,IAAAA,CAAAA,CAA4C,CACvD,SAAA,CACA,WACF,EAGO,SAASC,CAAAA,CAA2CF,EAA0D,CACnH,OAAOC,CAA0C,CAAA,QAAA,CAASD,CAAK,CACjE,CCRaG,IAAAA,CAAAA,CAAoC,CAC/C,SACA,CAAA,WACF,EAGO,SAASC,CAAmCJ,CAAAA,CAAAA,CAAkD,CACnG,OAAOG,EAAkC,QAASH,CAAAA,CAAK,CACzD,KCRaK,CAAsB,CAAA,CACjC,gBACA,CAAA,eAAA,CACA,mBACA,iBACA,CAAA,mBAAA,CACA,kBACA,CAAA,iBAAA,CACA,qBACA,mBACA,CAAA,oBAAA,CACA,iBACA,CAAA,mBAAA,CACA,oBACA,oBACF,EAGO,SAASC,CAAAA,CAAqBN,EAAoC,CACvE,OAAOK,CAAoB,CAAA,QAAA,CAASL,CAAK,CAC3C","file":"chunk-4R65LLWL.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const BulkDocumentStructureStatusEnumValues = [\n 'MAPPING',\n 'STRUCTURE'\n] as const;\nexport type BulkDocumentStructureStatusEnum = (typeof BulkDocumentStructureStatusEnumValues)[number];\n\nexport function isBulkDocumentStructureStatusEnumValue(value: any): value is BulkDocumentStructureStatusEnum {\n return BulkDocumentStructureStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const DocumentStructureOverviewStatusEnumValues = [\n 'MAPPING',\n 'STRUCTURE'\n] as const;\nexport type DocumentStructureOverviewStatusEnum = (typeof DocumentStructureOverviewStatusEnumValues)[number];\n\nexport function isDocumentStructureOverviewStatusEnumValue(value: any): value is DocumentStructureOverviewStatusEnum {\n return DocumentStructureOverviewStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const DocumentStructureStatusEnumValues = [\n 'MAPPING',\n 'STRUCTURE'\n] as const;\nexport type DocumentStructureStatusEnum = (typeof DocumentStructureStatusEnumValues)[number];\n\nexport function isDocumentStructureStatusEnumValue(value: any): value is DocumentStructureStatusEnum {\n return DocumentStructureStatusEnumValues.includes(value);\n}\n\n","/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const EventTypeEnumValues = [\n 'MERGED_SECTION',\n 'MOVED_SECTION',\n 'SPLITTED_SECTION',\n 'UPDATED_SECTION',\n 'DELETED_PARAGRAPH',\n 'MERGED_PARAGRAPH',\n 'MOVED_PARAGRAPH',\n 'SPLITTED_PARAGRAPH',\n 'UPDATED_PARAGRAPH',\n 'INSERTED_PARAGRAPH',\n 'MERGED_SENTENCE',\n 'SPLITTED_SENTENCE',\n 'DELETED_CHARACTER',\n 'INSERTED_CHARACTER'\n] as const;\nexport type EventTypeEnum = (typeof EventTypeEnumValues)[number];\n\nexport function isEventTypeEnumValue(value: any): value is EventTypeEnum {\n return EventTypeEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {c}from'./chunk-DOK44NQJ.mjs';import*as f from'fs';var e=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/log";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var o=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/track";}ENDPOINT;async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var s=class{constructor(t,i,r){this.restClient=t;this.parentEndpoint=i;this.domainname=r;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;log(){return new e(this.restClient,this.ENDPOINT)}track(){return new o(this.restClient,this.ENDPOINT)}};var a=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var p=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/uitracking";}ENDPOINT;domains(t){return t!=null?new s(this.restClient,this.ENDPOINT,t):new a(this.restClient,this.ENDPOINT)}};var g="/api",m=class n{constructor(t,i){this.restClient=t;this.parentEndpoint=i;}static loginWithApiKey(t,i){if(!i)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new n(new c(this.parseServerUrl(t),i),g)}static loginWithCredentials(t,i,r,l){return t=this.parseServerUrl(t),new n(new c(t,void 0,i,r,l),g)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let r=f.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(d=>d.length!==0).map(d=>d.split("=")),l=this.getValueOfInPropertiesFile("serverUrl",r),h=this.getValueOfInPropertiesFile("clientId",r),E=this.getValueOfInPropertiesFile("clientSecret",r),u=this.getValueOfInPropertiesFile("tokenUrl",r);return n.loginWithCredentials(l,h,E,u)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,i){for(let r of i)if(r[0]===t)return r[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}uitracking(){return new p(this.restClient,this.endpoint())}};export{e as a,o as b,s as c,a as d,p as e,m as f};//# sourceMappingURL=chunk-7Y3CRYXW.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-7Y3CRYXW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/tracking/api/log.ts","../semantha-product-sdk/tracking/api/track.ts","../semantha-product-sdk/tracking/api/domain.ts","../semantha-product-sdk/tracking/api/domains.ts","../semantha-product-sdk/tracking/api/uitracking.ts","../semantha-product-sdk/tracking/api/trackingAPI.ts"],"names":["LogEndpoint","restClient","parentEndpoint","body","TrackEndpoint","DomainEndpoint","domainname","DomainsEndpoint","UitrackingEndpoint","PARENT_ENDPOINT","TrackingAPI","_TrackingAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"0DAUaA,IAAAA,CAAAA,CAAN,KAAkB,CAGvB,WAAA,CACmBC,EACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,IAAAC,CAAAA,cAAAA,CAAAA,CAAAA,CAEjB,KAAK,QAAW,CAAA,IAAA,CAAK,eAAiB,OACxC,CAPiB,SAYjB,MAAM,IAAA,CACJC,CACe,CAAA,CACf,OACE,CAAA,MAAM,KAAK,UAAW,CAAA,IAAA,CACpB,KAAK,QACL,CAAA,GACA,IAAK,CAAA,UAAA,CAAW,QAAuB,CAAA,kBAAA,CAAA,CACvCA,CACF,CAAA,EACA,SACJ,CACF,EC1BO,IAAMC,CAAN,CAAA,KAAoB,CAGzB,WACmBH,CAAAA,CAAAA,CACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,oBAAAC,CAEjB,CAAA,IAAA,CAAK,SAAW,IAAK,CAAA,cAAA,CAAiB,SACxC,CAPiB,QAAA,CAYjB,MAAM,KAAA,CACJC,CACe,CAAA,CACf,QACI,MAAM,IAAA,CAAK,WAAW,KACpB,CAAA,IAAA,CAAK,SACLA,CACF,CAAA,EACF,OAAQ,EACZ,CACF,MCtBaE,CAAN,CAAA,KAAqB,CAG1B,WACmBJ,CAAAA,CAAAA,CACAC,EACAI,CACjB,CAAA,CAHiB,IAAAL,CAAAA,UAAAA,CAAAA,CAAAA,CACA,IAAAC,CAAAA,cAAAA,CAAAA,CAAAA,CACA,gBAAAI,CAEjB,CAAA,IAAA,CAAK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IA,CAAAA,CAAU,SAAS,GAAG,CAAA,GACxBA,CAAYA,CAAAA,CAAAA,CAAU,KAAM,CAAA,CAAA,CAAG,EAAE,CAE/BA,CAAAA,CAAAA,CAAAA,CAAU,QAAS,CAAA,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,UAAiC,EAAA,CAC/B,OAAO,IAAIb,CAAmB,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CAChE,CAEF","file":"chunk-7Y3CRYXW.mjs","sourcesContent":["import { Logging } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/domains/{domainname}/log\"\n * This is a generated file do not change manually!\n */\nexport class LogEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/log\";\n }\n\n /**\n * @param body Logging? - \n */\n async post(\n body?: Logging,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { Tracking } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/domains/{domainname}/track\"\n * This is a generated file do not change manually!\n */\nexport class TrackEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/track\";\n }\n\n /**\n * @param body Tracking - \n */\n async patch(\n body: Tracking,\n ): Promise<void> {\n return (\n await this.restClient.patch<void>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { LogEndpoint } from './log';\nimport { RestClient } from '../../rest';\nimport { TrackEndpoint } from './track';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/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 log(): LogEndpoint {\n return new LogEndpoint(this.restClient, this.ENDPOINT);\n }\n\n track(): TrackEndpoint {\n return new TrackEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking\"\n * This is a generated file do not change manually!\n */\nexport class UitrackingEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/uitracking\";\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 { UitrackingEndpoint } from './uitracking';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Tracking API.\n *\n * @author semantha\n * Calls the /uitracking, 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 TrackingAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Tracking API\n *\n * @param serverUrl: string - URL to the Tracking server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TrackingAPI: Entry point to the Tracking API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TrackingAPI {\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 TrackingAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the Tracking API\n *\n * @param serverUrl: string - URL to the Tracking 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 TrackingAPI: Entry point to the Tracking API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TrackingAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TrackingAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the Tracking API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TrackingAPI: Entry point to the Tracking API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TrackingAPI {\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 TrackingAPI.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 uitracking(): UitrackingEndpoint {\n return new UitrackingEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/tracking/model/loggingLevelEnum.ts"],"names":["LoggingLevelEnumValues","isLoggingLevelEnumValue","value"],"mappings":"AAKO,IAAMA,CAAyB,CAAA,CACpC,MACA,CAAA,SAAA,CACA,OACF,EAGO,SAASC,CAAwBC,CAAAA,CAAAA,CAAuC,CAC7E,OAAOF,CAAuB,CAAA,QAAA,CAASE,CAAK,CAC9C","file":"chunk-BE73RDIS.mjs","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const LoggingLevelEnumValues = [\n 'INFO',\n 'WARNING',\n 'ERROR'\n] as const;\nexport type LoggingLevelEnum = (typeof LoggingLevelEnumValues)[number];\n\nexport function isLoggingLevelEnumValue(value: any): value is LoggingLevelEnum {\n return LoggingLevelEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import o from'axios';var n=class{constructor(t){this.response=t;}async toModel(){return (await this.response).data}async getStatusCode(){return (await this.response).status}async getStatusText(){return (await this.response).statusText}};var l=(r=>(r.JSON="application/json",r.XLSX="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",r.PDF="application/pdf",r.DOCX="application/vnd.openxmlformats-officedocument.wordprocessingml.document",r.ZIP="application/zip",r.REQIFZ="application/reqifz",r.PNG="image/png",r))(l||{}),p=class a{constructor(t,e,i,s,c){this.serverUrl=t;this.apiKey=e;this.clientId=i;this.client_secret=s;this.tokenUrl=c;this.expireTime=0,this.accessToken="";}static LEEWAY=30;expireTime;accessToken;async buildHeadersForJsonRequest(){return {Accept:"application/json",Authorization:`Bearer ${await this.getToken()}`}}async buildHeadersForRequest(){return {Authorization:`Bearer ${await this.getToken()}`}}async getToken(){if(this.apiKey)return this.apiKey;if(this.clientId&&this.client_secret&&this.tokenUrl&&(this.accessToken==""||this.expireTime<performance.now())){let t={grant_type:"client_credentials",client_id:this.clientId,client_secret:this.client_secret,scope:"openid"},e=await o.post(this.tokenUrl,t,{headers:{accept:"application/json","content-type":"application/x-www-form-urlencoded"}});if(e.status>=o.HttpStatusCode.BadRequest)return "";this.accessToken=e.data.id_token??e.data.access_token,this.expireTime=performance.now()+(e.data.expires_in-a.LEEWAY);}return this.accessToken}async request(t,e,i,s,c){if(!s)s=await this.buildHeadersForJsonRequest();else {let u=await this.buildHeadersForRequest();s={...s,...u};}return new n(o.request({method:t,url:this.serverUrl+e,headers:{...s,"User-Agent":"semantha TypeScript SDK; "},data:c,params:i}))}async get(t,e,i,s){return this.request("GET",t,e,i,s)}async post(t,e,i,s){return this.request("POST",t,e,i,s)}async delete(t,e){this.request("DELETE",t,e=e);}async patch(t,e){return this.request("PATCH",t,e=e)}async put(t,e){return this.request("PUT",t,e=e)}toHeader(t,e){return e?{Accept:t,"Content-Type":e}:{Accept:t}}};export{n as a,l as b,p as c};//# sourceMappingURL=chunk-DOK44NQJ.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-DOK44NQJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/rest/restResponse.ts","../semantha-product-sdk/rest/restClient.ts"],"names":["RestResponse","response","MediaType","RestClient","_RestClient","serverUrl","apiKey","clientId","client_secret","tokenUrl","data","axios","method","url","params","headers","authHeader","acceptMimeType","contentType"],"mappings":"qBAEO,IAAMA,EAAN,KAAsB,CAC3B,YAA6BC,CAAqC,CAAA,CAArC,cAAAA,EAAsC,CAEnE,MAAM,OAAsB,EAAA,CAC1B,QAAQ,MAAM,IAAA,CAAK,UAAU,IAC/B,CAEA,MAAM,aAAA,EAAiC,CACrC,OAAQ,CAAA,MAAM,KAAK,QAAU,EAAA,MAC/B,CAEA,MAAM,aAAA,EAAiC,CACrC,OAAQ,CAAA,MAAM,KAAK,QAAU,EAAA,UAC/B,CACF,ECbO,IAAKC,OACVA,CAAA,CAAA,IAAA,CAAO,kBACPA,CAAAA,CAAAA,CAAA,KAAO,mEACPA,CAAAA,CAAAA,CAAA,IAAM,iBACNA,CAAAA,CAAAA,CAAA,KAAO,yEACPA,CAAAA,CAAAA,CAAA,IAAM,iBACNA,CAAAA,CAAAA,CAAA,OAAS,oBACTA,CAAAA,CAAAA,CAAA,IAAM,WAPIA,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,IAUCC,C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AASG,CAAMH,CAAAA,CAAAA,CAAOA,CAAK,CACpD,CAEA,MAAM,GAAOG,CAAAA,CAAAA,CAAaH,EAAqC,CAC7D,OAAO,KAAK,OAAW,CAAA,KAAA,CAAOG,CAAMH,CAAAA,CAAAA,CAAOA,CAAK,CAClD,CAEA,SAASO,CAA2BC,CAAAA,CAAAA,CAAiD,CACnF,OAAIA,CAAAA,CACK,CAAE,MAAQD,CAAAA,CAAAA,CAAgB,eAAgBC,CAAY,CAAA,CAExD,CAAE,MAAQD,CAAAA,CAAe,CAClC,CACF","file":"chunk-DOK44NQJ.mjs","sourcesContent":["import { AxiosResponse } from 'axios';\n\nexport class RestResponse<T> {\n constructor(private readonly response: Promise<AxiosResponse<T>>) {}\n\n async toModel(): Promise<T> {\n return (await this.response).data;\n }\n\n async getStatusCode(): Promise<number> {\n return (await this.response).status;\n }\n\n async getStatusText(): Promise<string> {\n return (await this.response).statusText;\n }\n}\n","import axios, { AxiosRequestConfig, AxiosResponse } from 'axios';\nimport { RestResponse } from './restResponse';\n\nexport enum MediaType {\n JSON = 'application/json',\n XLSX = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n PDF = 'application/pdf',\n DOCX = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',\n ZIP = 'application/zip',\n REQIFZ = 'application/reqifz',\n PNG = 'image/png'\n}\n\nexport class RestClient {\n // in seconds\n private static readonly LEEWAY = 30;\n\n private expireTime: number;\n private accessToken: string;\n\n constructor(\n private readonly serverUrl: string,\n private readonly apiKey?: string,\n private readonly clientId?: string,\n private readonly client_secret?: string,\n private readonly tokenUrl?: string\n ) {\n this.expireTime = 0.0;\n this.accessToken = '';\n }\n\n async buildHeadersForJsonRequest(): Promise<{ [key: string]: string }> {\n return {\n Accept: 'application/json',\n Authorization: `Bearer ${await this.getToken()}`\n };\n }\n\n async buildHeadersForRequest(): Promise<{ [key: string]: string }> {\n return {\n Authorization: `Bearer ${await this.getToken()}`\n };\n }\n\n async getToken(): Promise<string> {\n if (this.apiKey) {\n return this.apiKey;\n }\n if (\n this.clientId &&\n this.client_secret &&\n this.tokenUrl &&\n (this.accessToken == '' || this.expireTime < performance.now())\n ) {\n const data = {\n grant_type: 'client_credentials',\n client_id: this.clientId,\n client_secret: this.client_secret,\n scope: 'openid'\n };\n const response = await axios.post(this.tokenUrl, data, {\n headers: { accept: 'application/json', 'content-type': 'application/x-www-form-urlencoded' }\n });\n if (response.status >= axios.HttpStatusCode.BadRequest) {\n // example for error response: {\"error\":\"invalid_client\",\"error_description\":\"Invalid client or Invalid client credentials\"}\n // we have no token -> this leads to a permission error\n return '';\n }\n this.accessToken = response.data['id_token'] ?? response.data['access_token'];\n this.expireTime = performance.now() + (response.data['expires_in'] - RestClient.LEEWAY);\n }\n return this.accessToken;\n }\n\n private async request<R>(\n method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE',\n url: string,\n params?: any,\n headers?: { [key: string]: string },\n data?: any\n ): Promise<RestResponse<R>> {\n if (!headers) {\n headers = await this.buildHeadersForJsonRequest();\n } else {\n const authHeader = await this.buildHeadersForRequest();\n headers = { ...headers, ...authHeader };\n }\n return new RestResponse<R>(\n axios.request<R>({\n method: method,\n url: this.serverUrl + url,\n headers: { ...headers, 'User-Agent': 'semantha TypeScript SDK; ' },\n data: data,\n params: params\n })\n );\n }\n\n async get<R>(url: string, params?: any, headers?: { [key: string]: string }, data?: any): Promise<RestResponse<R>> {\n return this.request<R>('GET', url, params, headers, data);\n }\n\n async post<R>(url: string, params?: any, headers?: { [key: string]: string }, data?: any): Promise<RestResponse<R>> {\n return this.request<R>('POST', url, params, headers, data);\n }\n\n async delete(url: string, data?: any): Promise<void> {\n this.request<void>('DELETE', url, (data = data));\n }\n\n async patch<R>(url: string, data?: any): Promise<RestResponse<R>> {\n return this.request<R>('PATCH', url, (data = data));\n }\n\n async put<R>(url: string, data: any): Promise<RestResponse<R>> {\n return this.request<R>('PUT', url, (data = data));\n }\n\n toHeader(acceptMimeType: MediaType, contentType?: string): { [key: string]: string } {\n if (contentType) {\n return { Accept: acceptMimeType, 'Content-Type': contentType };\n }\n return { Accept: acceptMimeType };\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/file-box/model/fileTypeEnum.ts"],"names":["FileTypeEnumValues","isFileTypeEnumValue","value"],"mappings":"AAKO,IAAMA,CAAqB,CAAA,CAChC,OACA,CAAA,WACF,EAGO,SAASC,CAAoBC,CAAAA,CAAAA,CAAmC,CACrE,OAAOF,CAAmB,CAAA,QAAA,CAASE,CAAK,CAC1C","file":"chunk-DURTIKAP.mjs","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const FileTypeEnumValues = [\n 'INPUT',\n 'REFERENCE'\n] as const;\nexport type FileTypeEnum = (typeof FileTypeEnumValues)[number];\n\nexport function isFileTypeEnumValue(value: any): value is FileTypeEnum {\n return FileTypeEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkZ3N63BWG_js=require('./chunk-Z3N63BWG.js'),f=require('fs');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var f__namespace=/*#__PURE__*/_interopNamespace(f);var e=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/log";}ENDPOINT;async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var o=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/track";}ENDPOINT;async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var s=class{constructor(t,i,r){this.restClient=t;this.parentEndpoint=i;this.domainname=r;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;log(){return new e(this.restClient,this.ENDPOINT)}track(){return new o(this.restClient,this.ENDPOINT)}};var a=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var p=class{constructor(t,i){this.restClient=t;this.parentEndpoint=i;this.ENDPOINT=this.parentEndpoint+"/uitracking";}ENDPOINT;domains(t){return t!=null?new s(this.restClient,this.ENDPOINT,t):new a(this.restClient,this.ENDPOINT)}};var g="/api",m=class n{constructor(t,i){this.restClient=t;this.parentEndpoint=i;}static loginWithApiKey(t,i){if(!i)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new n(new chunkZ3N63BWG_js.c(this.parseServerUrl(t),i),g)}static loginWithCredentials(t,i,r,l){return t=this.parseServerUrl(t),new n(new chunkZ3N63BWG_js.c(t,void 0,i,r,l),g)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let r=f__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(d=>d.length!==0).map(d=>d.split("=")),l=this.getValueOfInPropertiesFile("serverUrl",r),h=this.getValueOfInPropertiesFile("clientId",r),E=this.getValueOfInPropertiesFile("clientSecret",r),u=this.getValueOfInPropertiesFile("tokenUrl",r);return n.loginWithCredentials(l,h,E,u)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,i){for(let r of i)if(r[0]===t)return r[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}uitracking(){return new p(this.restClient,this.endpoint())}};exports.a=e;exports.b=o;exports.c=s;exports.d=a;exports.e=p;exports.f=m;//# sourceMappingURL=chunk-F5JCME7D.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-F5JCME7D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/tracking/api/log.ts","../semantha-product-sdk/tracking/api/track.ts","../semantha-product-sdk/tracking/api/domain.ts","../semantha-product-sdk/tracking/api/domains.ts","../semantha-product-sdk/tracking/api/uitracking.ts","../semantha-product-sdk/tracking/api/trackingAPI.ts"],"names":["LogEndpoint","restClient","parentEndpoint","body","TrackEndpoint","DomainEndpoint","domainname","DomainsEndpoint","UitrackingEndpoint","PARENT_ENDPOINT","TrackingAPI","_TrackingAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","f","line","searchKey"],"mappings":"ubAUaA,IAAAA,CAAAA,CAAN,KAAkB,CAGvB,WAAA,CACmBC,EACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,IAAAC,CAAAA,cAAAA,CAAAA,CAAAA,CAEjB,KAAK,QAAW,CAAA,IAAA,CAAK,eAAiB,OACxC,CAPiB,SAYjB,MAAM,IAAA,CACJC,CACe,CAAA,CACf,OACE,CAAA,MAAM,KAAK,UAAW,CAAA,IAAA,CACpB,KAAK,QACL,CAAA,GACA,IAAK,CAAA,UAAA,CAAW,QAAuB,CAAA,kBAAA,CAAA,CACvCA,CACF,CAAA,EACA,SACJ,CACF,EC1BO,IAAMC,CAAN,CAAA,KAAoB,CAGzB,WACmBH,CAAAA,CAAAA,CACAC,CACjB,CAAA,CAFiB,IAAAD,CAAAA,UAAAA,CAAAA,CAAAA,CACA,oBAAAC,CAEjB,CAAA,IAAA,CAAK,SAAW,IAAK,CAAA,cAAA,CAAiB,SACxC,CAPiB,QAAA,CAYjB,MAAM,KAAA,CACJC,CACe,CAAA,CACf,QACI,MAAM,IAAA,CAAK,WAAW,KACpB,CAAA,IAAA,CAAK,SACLA,CACF,CAAA,EACF,OAAQ,EACZ,C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AAA,UAAA,CAAYE,CAAK,CAAA,CAClE,OAAOR,CAAAA,CAAY,qBAAqBC,CAAWG,CAAAA,CAAAA,CAAUC,EAAcC,CAAQ,CACrF,CACG,MAAM,IAAI,KAAM,CAAA,6DAA6D,CAC/E,CAEA,OAAe,cAAeL,CAAAA,CAAAA,CAA2B,CACvD,OAAIA,CAAAA,CAAU,SAAS,GAAG,CAAA,GACxBA,CAAYA,CAAAA,CAAAA,CAAU,KAAM,CAAA,CAAA,CAAG,EAAE,CAE/BA,CAAAA,CAAAA,CAAAA,CAAU,QAAS,CAAA,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,0BAA2BU,CAAAA,CAAAA,CAAmBH,CAA2B,CAAA,CACtF,IAAWE,IAAAA,CAAAA,IAAQF,EACjB,GAAIE,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,UAAiC,EAAA,CAC/B,OAAO,IAAId,CAAmB,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CAChE,CAEF","file":"chunk-F5JCME7D.js","sourcesContent":["import { Logging } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/domains/{domainname}/log\"\n * This is a generated file do not change manually!\n */\nexport class LogEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/log\";\n }\n\n /**\n * @param body Logging? - \n */\n async post(\n body?: Logging,\n ): Promise<void> {\n return (\n await this.restClient.post<void>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { RestClient } from '../../rest';\nimport { Tracking } from '../model';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/domains/{domainname}/track\"\n * This is a generated file do not change manually!\n */\nexport class TrackEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/track\";\n }\n\n /**\n * @param body Tracking - \n */\n async patch(\n body: Tracking,\n ): Promise<void> {\n return (\n await this.restClient.patch<void>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { LogEndpoint } from './log';\nimport { RestClient } from '../../rest';\nimport { TrackEndpoint } from './track';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/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 log(): LogEndpoint {\n return new LogEndpoint(this.restClient, this.ENDPOINT);\n }\n\n track(): TrackEndpoint {\n return new TrackEndpoint(this.restClient, this.ENDPOINT);\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/uitracking\"\n * This is a generated file do not change manually!\n */\nexport class UitrackingEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/uitracking\";\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 { UitrackingEndpoint } from './uitracking';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the Tracking API.\n *\n * @author semantha\n * Calls the /uitracking, 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 TrackingAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the Tracking API\n *\n * @param serverUrl: string - URL to the Tracking server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return TrackingAPI: Entry point to the Tracking API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): TrackingAPI {\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 TrackingAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the Tracking API\n *\n * @param serverUrl: string - URL to the Tracking 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 TrackingAPI: Entry point to the Tracking API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): TrackingAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new TrackingAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the Tracking API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return TrackingAPI: Entry point to the Tracking API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : TrackingAPI {\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 TrackingAPI.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 uitracking(): UitrackingEndpoint {\n return new UitrackingEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {c as c$1}from'./chunk-DOK44NQJ.mjs';import*as P from'fs';var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/binary";}ENDPOINT;async getAsXlsx(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"))).toModel()}async getAsDocx(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/vnd.openxmlformats-officedocument.wordprocessingml.document"))).toModel()}async getAsPdf(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/pdf"))).toModel()}};var s=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.configurationid=i;this.ENDPOINT=this.parentEndpoint+`/configurations/${this.configurationid}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var a=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/configurations";}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/events";}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}};var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/screenshots";}ENDPOINT;async getAsPng(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("image/png"))).toModel()}};var u=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.documentstructureid=i;this.ENDPOINT=this.parentEndpoint+`/documentstructures/${this.documentstructureid}`;}ENDPOINT;binary(){return new o(this.restClient,this.ENDPOINT)}events(){return new p(this.restClient,this.ENDPOINT)}screenshots(){return new l(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async getAsReqifz(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/reqifz"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var d=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/documentstructures";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var m=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.domainname=i;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;configurations(t){return t!=null?new s(this.restClient,this.ENDPOINT,t):new a(this.restClient,this.ENDPOINT)}documentstructures(t){return t!=null?new u(this.restClient,this.ENDPOINT,t):new d(this.restClient,this.ENDPOINT)}};var c=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var h=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/structurenavigator";}ENDPOINT;domains(t){return t!=null?new m(this.restClient,this.ENDPOINT,t):new c(this.restClient,this.ENDPOINT)}};var E="/api",C=class r{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new r(new c$1(this.parseServerUrl(t),e),E)}static loginWithCredentials(t,e,i,g){return t=this.parseServerUrl(t),new r(new c$1(t,void 0,e,i,g),E)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let i=P.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(N=>N.length!==0).map(N=>N.split("=")),g=this.getValueOfInPropertiesFile("serverUrl",i),D=this.getValueOfInPropertiesFile("clientId",i),O=this.getValueOfInPropertiesFile("clientSecret",i),v=this.getValueOfInPropertiesFile("tokenUrl",i);return r.loginWithCredentials(g,D,O,v)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let i of e)if(i[0]===t)return i[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}structurenavigator(){return new h(this.restClient,this.endpoint())}};export{o as a,s as b,a as c,p as d,l as e,u as f,d as g,m as h,c as i,h as j,C as k};//# sourceMappingURL=chunk-I2MRAQSD.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-I2MRAQSD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/structure-navigator/api/binary.ts","../semantha-product-sdk/structure-navigator/api/configuration.ts","../semantha-product-sdk/structure-navigator/api/configurations.ts","../semantha-product-sdk/structure-navigator/api/events.ts","../semantha-product-sdk/structure-navigator/api/screenshots.ts","../semantha-product-sdk/structure-navigator/api/documentstructure.ts","../semantha-product-sdk/structure-navigator/api/documentstructures.ts","../semantha-product-sdk/structure-navigator/api/domain.ts","../semantha-product-sdk/structure-navigator/api/domains.ts","../semantha-product-sdk/structure-navigator/api/structurenavigator.ts","../semantha-product-sdk/structure-navigator/api/structureNavigatorAPI.ts"],"names":["BinaryEndpoint","restClient","parentEndpoint","ConfigurationEndpoint","configurationid","body","ConfigurationsEndpoint","EventsEndpoint","params","ScreenshotsEndpoint","DocumentstructureEndpoint","documentstructureid","DocumentstructuresEndpoint","data","DomainEndpoint","domainname","DomainsEndpoint","StructurenavigatorEndpoint","PARENT_ENDPOINT","StructureNavigatorAPI","_StructureNavigatorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","line","searchKey"],"mappings":"iEASaA,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,cAAiB,CAAA,UACxC,CAPiB,QAAA,CAYjB,MAAM,SAA2B,EAAA,CAC/B,OACE,CAAA,MAAM,IAAK,CAAA,UAAA,CAAW,IACpB,IAAK,CAAA,QAAA,CACL,EAAC,CACD,IAAK,CAAA,UAAA,CAAW,4EAAuB,CACzC,CAAA,EACA,OAAQ,EACZ,CAIA,MAAM,WAA2B,CAC/B,OAAA,CACE,MAAM,IAAA,CAAK,UAAW,CAAA,GAAA,CACpB,KAAK,QACL,CAAA,EACA,CAAA,IAAA,CAAK,UAAW,CAAA,QAAA,CAAA,yEAAuB,CACzC,CACA,EAAA,OAAA,EACJ,CAIA,MAAM,QAAA,EAA0B,CAC9B,OACE,CAAA,MAAM,IAAK,CAAA,UAAA,CAAW,GACpB,CAAA,IAAA,CAAK,SACL,EAAC,CACD,IAAK,CAAA,UAAA,CAAW,QAAsB,CAAA,iBAAA,CACxC,GACA,OAAQ,EACZ,CACF,EC5CaC,IAAAA,CAAAA,CAAN,KAA4B,CAGjC,WAAA,CACmBF,CACAC,CAAAA,CAAAA,CACAE,CACjB,CAAA,CAHiB,gBAAAH,CACA,CAAA,IAAA,CAAA,c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YA,EAAU,KAAM,CAAA,CAAA,CAAG,EAAE,CAAA,CAAA,CAE/BA,CAAU,CAAA,QAAA,CAAS,sBAAsB,CAC3CA,CAAAA,CAAAA,CAAYA,CAAU,CAAA,OAAA,CAAQ,sBAAwB,CAAA,oBAAoB,EAChEA,CAAU,CAAA,QAAA,CAAS,oBAAoB,CAAA,GACjDA,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,EACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,OAAQ,CAAA,KAAA,CAAO,GAAG,CAGrC,CAAA,MAAM,KAAM,CAAA,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAK,CAAA,cACd,CAEA,kBAAiD,EAAA,CAC/C,OAAO,IAAIb,CAA2B,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CACxE,CAEF","file":"chunk-I2MRAQSD.mjs","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/binary\"\n * This is a generated file do not change manually!\n */\nexport class BinaryEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/binary\";\n }\n\n /**\n * Returns the input document.\n */\n async getAsXlsx(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.XLSX)\n )\n ).toModel();\n }\n /**\n * Returns the input document.\n */\n async getAsDocx(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.DOCX)\n )\n ).toModel();\n }\n /**\n * Returns the input document.\n */\n async getAsPdf(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.PDF)\n )\n ).toModel();\n }\n}\n","import { Configuration } from '../model';\nimport { ConfigurationUpdate } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/configurations/{configurationid}\"\n * This is a generated file do not change manually!\n */\nexport class ConfigurationEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly configurationid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/configurations\" + `/${this.configurationid}`;\n }\n\n /**\n * Returns the configuration for the given id.\n */\n async get(): Promise<Configuration> {\n return (\n await this.restClient.get<Configuration>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete a given configuration. Needs roles: 'Domain Admin' or 'Expert User'\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Make changes to an existing configuration. Needs roles: 'Domain Admin' or 'Expert User'\n *\n * @param body ConfigurationUpdate - \n */\n async patch(\n body: ConfigurationUpdate,\n ): Promise<Configuration> {\n return (\n await this.restClient.patch<Configuration>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { Configuration } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/configurations\"\n * This is a generated file do not change manually!\n */\nexport class ConfigurationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/configurations\";\n }\n\n /**\n * Returns all configurations.\n */\n async get(): Promise<Configuration[]> {\n return (\n await this.restClient.get<Configuration[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete all configurations. Needs roles: 'Domain Admin' or 'Expert User'\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Creates a new configuration. Needs roles: 'Domain Admin' or 'Expert User'\n *\n * @param body Configuration? - \n */\n async post(\n body?: Configuration,\n ): Promise<Configuration> {\n return (\n await this.restClient.post<Configuration>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { Event } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/events\"\n * This is a generated file do not change manually!\n */\nexport class EventsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/events\";\n }\n\n /**\n * Returns all events of given document structure\n */\n async get(): Promise<Event[]> {\n return (\n await this.restClient.get<Event[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Creates a new event for a document structure.\n *\n * @param body Event? - \n */\n async post(\n body: Event,\n params?: {\n lasteventid?: string,\n }): Promise<Event> {\n return (\n await this.restClient.post<Event>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/screenshots\"\n * This is a generated file do not change manually!\n */\nexport class ScreenshotsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/screenshots\";\n }\n\n /**\n * Returns a 'screenshot' of a page of the given document structure\n *\n * @param page number? - Number of the page to create a screenshot. Zero based\n * @param x number? - X position of the area to screenshot.\n * @param y number? - Y position of the area to screenshot.\n * @param width number? - Width of the area to screenshot.\n * @param height number? - Height of the area to screenshot.\n */\n async getAsPng(params?: {\n page?: number,\n x?: number,\n y?: number,\n width?: number,\n height?: number,\n }): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.PNG)\n )\n ).toModel();\n }\n}\n","import { BinaryEndpoint } from './binary';\nimport { DocumentStructure } from '../model';\nimport { DocumentStructureOverview } from '../model';\nimport { DocumentStructureUpdate } from '../model';\nimport { EventsEndpoint } from './events';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { ScreenshotsEndpoint } from './screenshots';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}\"\n * This is a generated file do not change manually!\n */\nexport class DocumentstructureEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly documentstructureid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentstructures\" + `/${this.documentstructureid}`;\n }\n\n binary(): BinaryEndpoint {\n return new BinaryEndpoint(this.restClient, this.ENDPOINT);\n }\n\n events(): EventsEndpoint {\n return new EventsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n screenshots(): ScreenshotsEndpoint {\n return new ScreenshotsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n /**\n * Returns the document structure for the given id.\n */\n async get(): Promise<DocumentStructure> {\n return (\n await this.restClient.get<DocumentStructure>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n /**\n * Returns the document structure for the given id.\n */\n async getAsReqifz(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.REQIFZ)\n )\n ).toModel();\n }\n\n /**\n * Delete a given document structure.\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Make changes to an existing document structure.\n *\n * @param body DocumentStructureUpdate - \n */\n async patch(\n body: DocumentStructureUpdate,\n ): Promise<DocumentStructureOverview> {\n return (\n await this.restClient.patch<DocumentStructureOverview>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { DocumentStructureOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures\"\n * This is a generated file do not change manually!\n */\nexport class DocumentstructuresEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentstructures\";\n }\n\n /**\n * Returns an overview of all available document structures.\n *\n * @param customfield string? - \n * @param customfieldvalues string? - \n */\n async get(params?: {\n customfield?: string,\n customfieldvalues?: string,\n }): Promise<DocumentStructureOverview[]> {\n return (\n await this.restClient.get<DocumentStructureOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete all document structures. Needs role: 'Domain Admin'\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Creates a new document structure.\n *\n * @param file Blob? - \n * @param name string? - \n * @param publicaccess boolean? - \n * @param configurationid string? - \n */\n async post(data: {\n file?: Blob,\n name?: string,\n publicaccess?: boolean,\n configurationid?: string,\n }): Promise<DocumentStructureOverview> {\n return (\n await this.restClient.post<DocumentStructureOverview>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { ConfigurationEndpoint } from './configuration';\nimport { ConfigurationsEndpoint } from './configurations';\nimport { DocumentstructureEndpoint } from './documentstructure';\nimport { DocumentstructuresEndpoint } from './documentstructures';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n configurations(): ConfigurationsEndpoint;\n configurations(configurationid: string): ConfigurationEndpoint\n \n configurations(configurationid?: string): ConfigurationEndpoint | ConfigurationsEndpoint {\n if(configurationid !== undefined && configurationid !== null) {\n\t return new ConfigurationEndpoint(this.restClient, this.ENDPOINT, configurationid);\n } else {\n\t return new ConfigurationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n documentstructures(): DocumentstructuresEndpoint;\n documentstructures(documentstructureid: string): DocumentstructureEndpoint\n \n documentstructures(documentstructureid?: string): DocumentstructureEndpoint | DocumentstructuresEndpoint {\n if(documentstructureid !== undefined && documentstructureid !== null) {\n\t return new DocumentstructureEndpoint(this.restClient, this.ENDPOINT, documentstructureid);\n } else {\n\t return new DocumentstructuresEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator\"\n * This is a generated file do not change manually!\n */\nexport class StructurenavigatorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/structurenavigator\";\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { StructurenavigatorEndpoint } from './structurenavigator';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the StructureNavigator API.\n *\n * @author semantha\n * Calls the /structurenavigator, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class StructureNavigatorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the StructureNavigator API\n *\n * @param serverUrl: string - URL to the StructureNavigator server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): StructureNavigatorAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new StructureNavigatorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the StructureNavigator API\n *\n * @param serverUrl: string - URL to the StructureNavigator server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): StructureNavigatorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new StructureNavigatorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the StructureNavigator API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : StructureNavigatorAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return StructureNavigatorAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n structurenavigator(): StructurenavigatorEndpoint {\n return new StructurenavigatorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkZ3N63BWG_js=require('./chunk-Z3N63BWG.js'),h=require('fs');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var h__namespace=/*#__PURE__*/_interopNamespace(h);var n=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.id=i;this.ENDPOINT=this.parentEndpoint+`/boxes/${this.id}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}};var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/boxes";}ENDPOINT;async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}};var s=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.domainname=i;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;boxes(t){return t!=null?new n(this.restClient,this.ENDPOINT,t):new o(this.restClient,this.ENDPOINT)}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var a=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/filebox";}ENDPOINT;domains(t){return t!=null?new s(this.restClient,this.ENDPOINT,t):new p(this.restClient,this.ENDPOINT)}};var f="/api/v1",g=class r{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new r(new chunkZ3N63BWG_js.c(this.parseServerUrl(t),e),f)}static loginWithCredentials(t,e,i,l){return t=this.parseServerUrl(t),new r(new chunkZ3N63BWG_js.c(t,void 0,e,i,l),f)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let i=h__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(d=>d.length!==0).map(d=>d.split("=")),l=this.getValueOfInPropertiesFile("serverUrl",i),c=this.getValueOfInPropertiesFile("clientId",i),E=this.getValueOfInPropertiesFile("clientSecret",i),u=this.getValueOfInPropertiesFile("tokenUrl",i);return r.loginWithCredentials(l,c,E,u)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let i of e)if(i[0]===t)return i[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}filebox(){return new a(this.restClient,this.endpoint())}};exports.a=n;exports.b=o;exports.c=s;exports.d=p;exports.e=a;exports.f=g;//# sourceMappingURL=chunk-IISTQOX3.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-IISTQOX3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/file-box/api/box.ts","../semantha-product-sdk/file-box/api/boxes.ts","../semantha-product-sdk/file-box/api/domain.ts","../semantha-product-sdk/file-box/api/domains.ts","../semantha-product-sdk/file-box/api/filebox.ts","../semantha-product-sdk/file-box/api/fileBoxAPI.ts"],"names":["BoxEndpoint","restClient","parentEndpoint","id","BoxesEndpoint","body","params","DomainEndpoint","domainname","DomainsEndpoint","FileboxEndpoint","PARENT_ENDPOINT","FileBoxAPI","_FileBoxAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","h","line","searchKey"],"mappings":"ubAUaA,IAAAA,CAAAA,CAAN,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AE,CAE/BA,CAAAA,CAAAA,CAAAA,CAAU,QAAS,CAAA,sBAAsB,EAC3CA,CAAYA,CAAAA,CAAAA,CAAU,OAAQ,CAAA,sBAAA,CAAwB,oBAAoB,CAAA,CAChEA,EAAU,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,EACd,OAAOD,CAAAA,CAAK,CAAC,CAAA,CAAE,OAAQ,CAAA,KAAA,CAAO,GAAG,CAGrC,CAAA,MAAM,KAAM,CAAA,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAK,CAAA,cACd,CAEA,OAA2B,EAAA,CACzB,OAAO,IAAId,CAAgB,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CAC7D,CAEF","file":"chunk-IISTQOX3.js","sourcesContent":["import { Box } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains/{domainname}/boxes/{id}\"\n * This is a generated file do not change manually!\n */\nexport class BoxEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly id: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/boxes\" + `/${this.id}`;\n }\n\n async get(): Promise<Box> {\n return (\n await this.restClient.get<Box>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n}\n","import { Box } from '../model';\nimport { BoxCreated } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains/{domainname}/boxes\"\n * This is a generated file do not change manually!\n */\nexport class BoxesEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/boxes\";\n }\n\n /**\n * @param body Box? - \n */\n async post(\n body: Box,\n params?: {\n uilanguage?: string,\n }): Promise<BoxCreated> {\n return (\n await this.restClient.post<BoxCreated>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { BoxEndpoint } from './box';\nimport { BoxesEndpoint } from './boxes';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n boxes(): BoxesEndpoint;\n boxes(id: string): BoxEndpoint\n \n boxes(id?: string): BoxEndpoint | BoxesEndpoint {\n if(id !== undefined && id !== null) {\n\t return new BoxEndpoint(this.restClient, this.ENDPOINT, id);\n } else {\n\t return new BoxesEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/filebox\"\n * This is a generated file do not change manually!\n */\nexport class FileboxEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/filebox\";\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { FileboxEndpoint } from './filebox';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api/v1';\n\n/**\n * Entry point to the FileBox API.\n *\n * @author semantha\n * Calls the /filebox, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class FileBoxAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the FileBox API\n *\n * @param serverUrl: string - URL to the FileBox server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): FileBoxAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new FileBoxAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the FileBox API\n *\n * @param serverUrl: string - URL to the FileBox server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): FileBoxAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new FileBoxAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the FileBox API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return FileBoxAPI: Entry point to the FileBox API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : FileBoxAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return FileBoxAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n filebox(): FileboxEndpoint {\n return new FileboxEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/tracking/model/loggingLevelEnum.ts"],"names":["LoggingLevelEnumValues","isLoggingLevelEnumValue","value"],"mappings":"aAKO,IAAMA,CAAyB,CAAA,CACpC,MACA,CAAA,SAAA,CACA,OACF,EAGO,SAASC,CAAwBC,CAAAA,CAAAA,CAAuC,CAC7E,OAAOF,CAAuB,CAAA,QAAA,CAASE,CAAK,CAC9C","file":"chunk-JCDJ3B7Q.js","sourcesContent":["/**\n * @author semantha\n *\n * This is a generated file do not change manually!\n */\nexport const LoggingLevelEnumValues = [\n 'INFO',\n 'WARNING',\n 'ERROR'\n] as const;\nexport type LoggingLevelEnum = (typeof LoggingLevelEnumValues)[number];\n\nexport function isLoggingLevelEnumValue(value: any): value is LoggingLevelEnum {\n return LoggingLevelEnumValues.includes(value);\n}\n\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkZ3N63BWG_js=require('./chunk-Z3N63BWG.js'),P=require('fs');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var P__namespace=/*#__PURE__*/_interopNamespace(P);var o=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/binary";}ENDPOINT;async getAsXlsx(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"))).toModel()}async getAsDocx(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/vnd.openxmlformats-officedocument.wordprocessingml.document"))).toModel()}async getAsPdf(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/pdf"))).toModel()}};var s=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.configurationid=i;this.ENDPOINT=this.parentEndpoint+`/configurations/${this.configurationid}`;}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var a=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/configurations";}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var p=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/events";}ENDPOINT;async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async post(t,e){return (await this.restClient.post(this.ENDPOINT,e,this.restClient.toHeader("application/json"),t)).toModel()}};var l=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/screenshots";}ENDPOINT;async getAsPng(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("image/png"))).toModel()}};var u=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.documentstructureid=i;this.ENDPOINT=this.parentEndpoint+`/documentstructures/${this.documentstructureid}`;}ENDPOINT;binary(){return new o(this.restClient,this.ENDPOINT)}events(){return new p(this.restClient,this.ENDPOINT)}screenshots(){return new l(this.restClient,this.ENDPOINT)}async get(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/json"))).toModel()}async getAsReqifz(){return (await this.restClient.get(this.ENDPOINT,{},this.restClient.toHeader("application/reqifz"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async patch(t){return (await this.restClient.patch(this.ENDPOINT,t)).toModel()}};var d=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/documentstructures";}ENDPOINT;async get(t){return (await this.restClient.get(this.ENDPOINT,t,this.restClient.toHeader("application/json"))).toModel()}async delete(){await this.restClient.delete(this.ENDPOINT);}async post(t){return (await this.restClient.post(this.ENDPOINT,{},this.restClient.toHeader("application/json"),t)).toModel()}};var m=class{constructor(t,e,i){this.restClient=t;this.parentEndpoint=e;this.domainname=i;this.ENDPOINT=this.parentEndpoint+`/domains/${this.domainname}`;}ENDPOINT;configurations(t){return t!=null?new s(this.restClient,this.ENDPOINT,t):new a(this.restClient,this.ENDPOINT)}documentstructures(t){return t!=null?new u(this.restClient,this.ENDPOINT,t):new d(this.restClient,this.ENDPOINT)}};var c=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/domains";}ENDPOINT};var h=class{constructor(t,e){this.restClient=t;this.parentEndpoint=e;this.ENDPOINT=this.parentEndpoint+"/structurenavigator";}ENDPOINT;domains(t){return t!=null?new m(this.restClient,this.ENDPOINT,t):new c(this.restClient,this.ENDPOINT)}};var E="/api",C=class r{constructor(t,e){this.restClient=t;this.parentEndpoint=e;}static loginWithApiKey(t,e){if(!e)throw new Error("You need to supply an API key to login.");if(!t)throw new Error("You need to supply a server url to login.");return new r(new chunkZ3N63BWG_js.c(this.parseServerUrl(t),e),E)}static loginWithCredentials(t,e,i,g){return t=this.parseServerUrl(t),new r(new chunkZ3N63BWG_js.c(t,void 0,e,i,g),E)}static loginWithCredentialsFile(t){if(t.endsWith(".properties")||t.endsWith(".PROPERTIES")){let i=P__namespace.readFileSync(t,"utf8").split(/[\n|\r\n]/).filter(N=>N.length!==0).map(N=>N.split("=")),g=this.getValueOfInPropertiesFile("serverUrl",i),D=this.getValueOfInPropertiesFile("clientId",i),O=this.getValueOfInPropertiesFile("clientSecret",i),v=this.getValueOfInPropertiesFile("tokenUrl",i);return r.loginWithCredentials(g,D,O,v)}throw new Error("Can not login, please supply a credentials properties file.")}static parseServerUrl(t){return t.endsWith("/")&&(t=t.slice(0,-1)),t.endsWith("/tt-platform-ui/en/#")?t=t.replace("/tt-platform-ui/en/#","/tt-product-server"):t.endsWith("/tt-product-server")||(t+="/tt-product-server"),t}static getValueOfInPropertiesFile(t,e){for(let i of e)if(i[0]===t)return i[1].replace("\\:",":");throw Error(`.properties files contains no ${t}!`)}endpoint(){return this.parentEndpoint}structurenavigator(){return new h(this.restClient,this.endpoint())}};exports.a=o;exports.b=s;exports.c=a;exports.d=p;exports.e=l;exports.f=u;exports.g=d;exports.h=m;exports.i=c;exports.j=h;exports.k=C;//# sourceMappingURL=chunk-OP5BUX5G.js.map
|
|
2
|
+
//# sourceMappingURL=chunk-OP5BUX5G.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../semantha-product-sdk/structure-navigator/api/binary.ts","../semantha-product-sdk/structure-navigator/api/configuration.ts","../semantha-product-sdk/structure-navigator/api/configurations.ts","../semantha-product-sdk/structure-navigator/api/events.ts","../semantha-product-sdk/structure-navigator/api/screenshots.ts","../semantha-product-sdk/structure-navigator/api/documentstructure.ts","../semantha-product-sdk/structure-navigator/api/documentstructures.ts","../semantha-product-sdk/structure-navigator/api/domain.ts","../semantha-product-sdk/structure-navigator/api/domains.ts","../semantha-product-sdk/structure-navigator/api/structurenavigator.ts","../semantha-product-sdk/structure-navigator/api/structureNavigatorAPI.ts"],"names":["BinaryEndpoint","restClient","parentEndpoint","ConfigurationEndpoint","configurationid","body","ConfigurationsEndpoint","EventsEndpoint","params","ScreenshotsEndpoint","DocumentstructureEndpoint","documentstructureid","DocumentstructuresEndpoint","data","DomainEndpoint","domainname","DomainsEndpoint","StructurenavigatorEndpoint","PARENT_ENDPOINT","StructureNavigatorAPI","_StructureNavigatorAPI","serverUrl","apiKey","RestClient","clientId","clientSecret","tokenUrl","credentialsFilePath","lines","P","line","searchKey"],"mappings":"ubASaA,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,CAA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,CAAA,8BAAA,EAAiCC,CAAS,CAAA,CAAA,CAAG,CAC3D,CAEA,QAAA,EAAmB,CACjB,OAAO,IAAK,CAAA,cACd,CAEA,kBAAiD,EAAA,CAC/C,OAAO,IAAId,CAA2B,CAAA,IAAA,CAAK,WAAY,IAAK,CAAA,QAAA,EAAU,CACxE,CAEF","file":"chunk-OP5BUX5G.js","sourcesContent":["import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/binary\"\n * This is a generated file do not change manually!\n */\nexport class BinaryEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/binary\";\n }\n\n /**\n * Returns the input document.\n */\n async getAsXlsx(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.XLSX)\n )\n ).toModel();\n }\n /**\n * Returns the input document.\n */\n async getAsDocx(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.DOCX)\n )\n ).toModel();\n }\n /**\n * Returns the input document.\n */\n async getAsPdf(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.PDF)\n )\n ).toModel();\n }\n}\n","import { Configuration } from '../model';\nimport { ConfigurationUpdate } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/configurations/{configurationid}\"\n * This is a generated file do not change manually!\n */\nexport class ConfigurationEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly configurationid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/configurations\" + `/${this.configurationid}`;\n }\n\n /**\n * Returns the configuration for the given id.\n */\n async get(): Promise<Configuration> {\n return (\n await this.restClient.get<Configuration>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete a given configuration. Needs roles: 'Domain Admin' or 'Expert User'\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Make changes to an existing configuration. Needs roles: 'Domain Admin' or 'Expert User'\n *\n * @param body ConfigurationUpdate - \n */\n async patch(\n body: ConfigurationUpdate,\n ): Promise<Configuration> {\n return (\n await this.restClient.patch<Configuration>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { Configuration } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/configurations\"\n * This is a generated file do not change manually!\n */\nexport class ConfigurationsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/configurations\";\n }\n\n /**\n * Returns all configurations.\n */\n async get(): Promise<Configuration[]> {\n return (\n await this.restClient.get<Configuration[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete all configurations. Needs roles: 'Domain Admin' or 'Expert User'\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Creates a new configuration. Needs roles: 'Domain Admin' or 'Expert User'\n *\n * @param body Configuration? - \n */\n async post(\n body?: Configuration,\n ): Promise<Configuration> {\n return (\n await this.restClient.post<Configuration>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { Event } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/events\"\n * This is a generated file do not change manually!\n */\nexport class EventsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/events\";\n }\n\n /**\n * Returns all events of given document structure\n */\n async get(): Promise<Event[]> {\n return (\n await this.restClient.get<Event[]>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Creates a new event for a document structure.\n *\n * @param body Event? - \n */\n async post(\n body: Event,\n params?: {\n lasteventid?: string,\n }): Promise<Event> {\n return (\n await this.restClient.post<Event>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON),\n body\n )\n ).toModel();\n }\n}\n","import { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}/screenshots\"\n * This is a generated file do not change manually!\n */\nexport class ScreenshotsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/screenshots\";\n }\n\n /**\n * Returns a 'screenshot' of a page of the given document structure\n *\n * @param page number? - Number of the page to create a screenshot. Zero based\n * @param x number? - X position of the area to screenshot.\n * @param y number? - Y position of the area to screenshot.\n * @param width number? - Width of the area to screenshot.\n * @param height number? - Height of the area to screenshot.\n */\n async getAsPng(params?: {\n page?: number,\n x?: number,\n y?: number,\n width?: number,\n height?: number,\n }): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.PNG)\n )\n ).toModel();\n }\n}\n","import { BinaryEndpoint } from './binary';\nimport { DocumentStructure } from '../model';\nimport { DocumentStructureOverview } from '../model';\nimport { DocumentStructureUpdate } from '../model';\nimport { EventsEndpoint } from './events';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\nimport { ScreenshotsEndpoint } from './screenshots';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures/{documentstructureid}\"\n * This is a generated file do not change manually!\n */\nexport class DocumentstructureEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly documentstructureid: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentstructures\" + `/${this.documentstructureid}`;\n }\n\n binary(): BinaryEndpoint {\n return new BinaryEndpoint(this.restClient, this.ENDPOINT);\n }\n\n events(): EventsEndpoint {\n return new EventsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n screenshots(): ScreenshotsEndpoint {\n return new ScreenshotsEndpoint(this.restClient, this.ENDPOINT);\n }\n\n /**\n * Returns the document structure for the given id.\n */\n async get(): Promise<DocumentStructure> {\n return (\n await this.restClient.get<DocumentStructure>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n /**\n * Returns the document structure for the given id.\n */\n async getAsReqifz(): Promise<Blob> {\n return (\n await this.restClient.get<Blob>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.REQIFZ)\n )\n ).toModel();\n }\n\n /**\n * Delete a given document structure.\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Make changes to an existing document structure.\n *\n * @param body DocumentStructureUpdate - \n */\n async patch(\n body: DocumentStructureUpdate,\n ): Promise<DocumentStructureOverview> {\n return (\n await this.restClient.patch<DocumentStructureOverview>(\n this.ENDPOINT,\n body\n )\n ).toModel();\n }\n}\n","import { DocumentStructureOverview } from '../model';\nimport { MediaType } from '../../rest';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}/documentstructures\"\n * This is a generated file do not change manually!\n */\nexport class DocumentstructuresEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/documentstructures\";\n }\n\n /**\n * Returns an overview of all available document structures.\n *\n * @param customfield string? - \n * @param customfieldvalues string? - \n */\n async get(params?: {\n customfield?: string,\n customfieldvalues?: string,\n }): Promise<DocumentStructureOverview[]> {\n return (\n await this.restClient.get<DocumentStructureOverview[]>(\n this.ENDPOINT,\n params,\n this.restClient.toHeader(MediaType.JSON)\n )\n ).toModel();\n }\n\n /**\n * Delete all document structures. Needs role: 'Domain Admin'\n */\n async delete(): Promise<void> {\n await this.restClient.delete(this.ENDPOINT);\n }\n\n /**\n * Creates a new document structure.\n *\n * @param file Blob? - \n * @param name string? - \n * @param publicaccess boolean? - \n * @param configurationid string? - \n */\n async post(data: {\n file?: Blob,\n name?: string,\n publicaccess?: boolean,\n configurationid?: string,\n }): Promise<DocumentStructureOverview> {\n return (\n await this.restClient.post<DocumentStructureOverview>(\n this.ENDPOINT,\n {},\n this.restClient.toHeader(MediaType.JSON),\n data\n )\n ).toModel();\n }\n}\n","import { ConfigurationEndpoint } from './configuration';\nimport { ConfigurationsEndpoint } from './configurations';\nimport { DocumentstructureEndpoint } from './documentstructure';\nimport { DocumentstructuresEndpoint } from './documentstructures';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains/{domainname}\"\n * This is a generated file do not change manually!\n */\nexport class DomainEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n private readonly domainname: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\" + `/${this.domainname}`;\n }\n\n configurations(): ConfigurationsEndpoint;\n configurations(configurationid: string): ConfigurationEndpoint\n \n configurations(configurationid?: string): ConfigurationEndpoint | ConfigurationsEndpoint {\n if(configurationid !== undefined && configurationid !== null) {\n\t return new ConfigurationEndpoint(this.restClient, this.ENDPOINT, configurationid);\n } else {\n\t return new ConfigurationsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n\n documentstructures(): DocumentstructuresEndpoint;\n documentstructures(documentstructureid: string): DocumentstructureEndpoint\n \n documentstructures(documentstructureid?: string): DocumentstructureEndpoint | DocumentstructuresEndpoint {\n if(documentstructureid !== undefined && documentstructureid !== null) {\n\t return new DocumentstructureEndpoint(this.restClient, this.ENDPOINT, documentstructureid);\n } else {\n\t return new DocumentstructuresEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator/domains\"\n * This is a generated file do not change manually!\n */\nexport class DomainsEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/domains\";\n }\n}\n","import { DomainEndpoint } from './domain';\nimport { DomainsEndpoint } from './domains';\nimport { RestClient } from '../../rest';\n\n/**\n * @author semantha\n *\n * Class to access resource \"/api/structurenavigator\"\n * This is a generated file do not change manually!\n */\nexport class StructurenavigatorEndpoint {\n private readonly ENDPOINT: string;\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string,\n ) {\n this.ENDPOINT = this.parentEndpoint + \"/structurenavigator\";\n }\n\n domains(): DomainsEndpoint;\n domains(domainname: string): DomainEndpoint\n \n domains(domainname?: string): DomainEndpoint | DomainsEndpoint {\n if(domainname !== undefined && domainname !== null) {\n\t return new DomainEndpoint(this.restClient, this.ENDPOINT, domainname);\n } else {\n\t return new DomainsEndpoint(this.restClient, this.ENDPOINT);\n }\n }\n}\n","import * as fs from 'fs';\n\nimport { StructurenavigatorEndpoint } from './structurenavigator';\nimport { RestClient } from '../../rest';\n\nconst PARENT_ENDPOINT = '/api';\n\n/**\n * Entry point to the StructureNavigator API.\n *\n * @author semantha\n * Calls the /structurenavigator, endpoints.\n *\n * Note:\n * The constructor is not meant to be invoked directly\n * use `loginXXX()` with your credentials instead.\n *\n * this is a generated class do not change manually!\n */\nexport class StructureNavigatorAPI {\n\n constructor(\n private readonly restClient: RestClient,\n private readonly parentEndpoint: string\n ) {\n }\n\n /**\n * Access to the StructureNavigator API\n *\n * @param serverUrl: string - URL to the StructureNavigator server.\n * @param apiKey: string - A valid bearer token for accessing the given url.\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithApiKey(\n serverUrl: string,\n apiKey: string\n ): StructureNavigatorAPI {\n if(!apiKey) {\n throw new Error('You need to supply an API key to login.');\n }\n if(!serverUrl) {\n throw new Error('You need to supply a server url to login.');\n }\n return new StructureNavigatorAPI(new RestClient(this.parseServerUrl(serverUrl), apiKey), PARENT_ENDPOINT);\n }\n\n /**\n * Access to the StructureNavigator API\n *\n * @param serverUrl: string - URL to the StructureNavigator server.\n * @param clientId: string - OAuth2 client id.\n * @param clientSecret: string - OAuth2 client secret.\n * @param tokenUrl: string OAuth2 url to get a valid access token\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithCredentials(\n serverUrl: string,\n clientId: string,\n clientSecret: string,\n tokenUrl: string\n ): StructureNavigatorAPI {\n serverUrl = this.parseServerUrl(serverUrl);\n return new StructureNavigatorAPI(new RestClient(serverUrl, undefined, clientId, clientSecret, tokenUrl), PARENT_ENDPOINT);\n }\n\t\n /**\n * Access to the StructureNavigator API\n *\n * @param credentialsFilePath: string - Path to a properties file providing client credentials.\n *\n * @return StructureNavigatorAPI: Entry point to the StructureNavigator API.\n */\n static loginWithCredentialsFile(credentialsFilePath: string) : StructureNavigatorAPI {\n if (credentialsFilePath.endsWith('.properties') || credentialsFilePath.endsWith('.PROPERTIES')) {\n const rawData = fs.readFileSync(credentialsFilePath, 'utf8');\n const lines = rawData\n\t .split(/[\\n|\\r\\n]/)\n\t .filter(line => line.length !== 0)\n\t .map(line => line.split('='));\n\t const serverUrl = this.getValueOfInPropertiesFile('serverUrl', lines);\n\t const clientId = this.getValueOfInPropertiesFile('clientId', lines);\n\t const clientSecret = this.getValueOfInPropertiesFile('clientSecret', lines);\n\t const tokenUrl = this.getValueOfInPropertiesFile('tokenUrl', lines);\n\t return StructureNavigatorAPI.loginWithCredentials(serverUrl, clientId, clientSecret, tokenUrl);\n\t}\n throw new Error('Can not login, please supply a credentials properties file.');\n }\n\n private static parseServerUrl(serverUrl: string): string {\n if (serverUrl.endsWith('/')) {\n serverUrl = serverUrl.slice(0, -1);\n }\n if (serverUrl.endsWith('/tt-platform-ui/en/#')) {\n serverUrl = serverUrl.replace('/tt-platform-ui/en/#', '/tt-product-server');\n } else if (!serverUrl.endsWith('/tt-product-server')) {\n serverUrl += '/tt-product-server';\n }\n return serverUrl;\n }\n\n private static getValueOfInPropertiesFile(searchKey: string, lines: string[][]): string {\n for (const line of lines) {\n if (line[0] === searchKey) {\n return line[1].replace('\\\\:', ':');\n }\n }\n throw Error(`.properties files contains no ${searchKey}!`);\n }\n\n endpoint(): string {\n return this.parentEndpoint;\n }\n\n structurenavigator(): StructurenavigatorEndpoint {\n return new StructurenavigatorEndpoint(this.restClient, this.endpoint());\n }\n\n}"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=["MAPPING","STRUCTURE"];function n(t){return e.includes(t)}var u=["MAPPING","STRUCTURE"];function m(t){return u.includes(t)}var r=["MAPPING","STRUCTURE"];function s(t){return r.includes(t)}var o=["MERGED_SECTION","MOVED_SECTION","SPLITTED_SECTION","UPDATED_SECTION","DELETED_PARAGRAPH","MERGED_PARAGRAPH","MOVED_PARAGRAPH","SPLITTED_PARAGRAPH","UPDATED_PARAGRAPH","INSERTED_PARAGRAPH","MERGED_SENTENCE","SPLITTED_SENTENCE","DELETED_CHARACTER","INSERTED_CHARACTER"];function S(t){return o.includes(t)}export{e as a,n as b,u as c,m as d,r as e,s as f,o as g,S as h};//# sourceMappingURL=chunk-TNZ7KC6A.mjs.map
|
|
2
|
+
//# sourceMappingURL=chunk-TNZ7KC6A.mjs.map
|