@vcd/sdk 15.0.7 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2020 → esm2022}/client/client/api.result.service.mjs +4 -4
- package/esm2022/client/client/logging.interceptor.mjs +44 -0
- package/esm2022/client/client/request.headers.interceptor.mjs +100 -0
- package/esm2022/client/client/response.normalization.interceptor.mjs +59 -0
- package/esm2022/client/client/vcd.api.client.mjs +603 -0
- package/{esm2020 → esm2022}/client/client/vcd.http.client.mjs +6 -6
- package/esm2022/client/client/vcd.transfer.client.mjs +166 -0
- package/esm2022/client/query/filter.builder.mjs +195 -0
- package/esm2022/client/query/query.builder.mjs +79 -0
- package/esm2022/common/container-hooks.mjs +85 -0
- package/{esm2020 → esm2022}/main.mjs +7 -7
- package/{fesm2020 → fesm2022}/vcd-sdk.mjs +54 -54
- package/{fesm2020 → fesm2022}/vcd-sdk.mjs.map +1 -1
- package/open_source_license_vcd_ui_sdk_17.0.0_ga.txt +393 -0
- package/package.json +8 -14
- package/VMware-vcd_ui_sdk-15.0.7-ODP.tar.gz +0 -0
- package/esm2020/client/client/logging.interceptor.mjs +0 -44
- package/esm2020/client/client/request.headers.interceptor.mjs +0 -100
- package/esm2020/client/client/response.normalization.interceptor.mjs +0 -59
- package/esm2020/client/client/vcd.api.client.mjs +0 -603
- package/esm2020/client/client/vcd.transfer.client.mjs +0 -166
- package/esm2020/client/query/filter.builder.mjs +0 -195
- package/esm2020/client/query/query.builder.mjs +0 -79
- package/esm2020/common/container-hooks.mjs +0 -85
- package/fesm2015/vcd-sdk.mjs +0 -1505
- package/fesm2015/vcd-sdk.mjs.map +0 -1
- package/open_source_license_@vcdsdk_15.0.7_GA.txt +0 -22623
- /package/{esm2020 → esm2022}/client/client/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/client/client/index.mjs +0 -0
- /package/{esm2020 → esm2022}/client/client/types.mjs +0 -0
- /package/{esm2020 → esm2022}/client/index.mjs +0 -0
- /package/{esm2020 → esm2022}/client/openapi.mjs +0 -0
- /package/{esm2020 → esm2022}/client/query/index.mjs +0 -0
- /package/{esm2020 → esm2022}/common/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/plugin.module.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/vcd-sdk.mjs +0 -0
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
open_source_license.txt
|
|
2
|
+
|
|
3
|
+
vcd_ui_sdk 17.0.0 GA
|
|
4
|
+
======================================================================
|
|
5
|
+
|
|
6
|
+
The following copyright statements and licenses apply to open source
|
|
7
|
+
software ("OSS") distributed with the Broadcom product (the "Licensed
|
|
8
|
+
Product"). The term "Broadcom" refers solely to the Broadcom Inc.
|
|
9
|
+
corporate affiliate that distributes the Licensed Product. The
|
|
10
|
+
Licensed Product does not necessarily use all the OSS referred to
|
|
11
|
+
below and may also only use portions of a given OSS component.
|
|
12
|
+
|
|
13
|
+
To the extent required under an applicable open source license,
|
|
14
|
+
Broadcom will make source code available for applicable OSS upon
|
|
15
|
+
request. Please send an inquiry to opensource@broadcom.com including
|
|
16
|
+
your name, address, the product name and version, operating system,
|
|
17
|
+
and the place of purchase.
|
|
18
|
+
|
|
19
|
+
To the extent the Licensed Product includes OSS, the OSS is typically
|
|
20
|
+
not owned by Broadcom. THE OSS IS PROVIDED AS IS WITHOUT WARRANTY OR
|
|
21
|
+
CONDITION OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT
|
|
22
|
+
LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
23
|
+
A PARTICULAR PURPOSE. To the full extent permitted under applicable
|
|
24
|
+
law, Broadcom and its corporate affiliates disclaim all warranties
|
|
25
|
+
and liability arising from or related to any use of the OSS.
|
|
26
|
+
|
|
27
|
+
To the extent the Licensed Product includes OSS licensed under the
|
|
28
|
+
GNU General Public License ("GPL") or the GNU Lesser General Public
|
|
29
|
+
License (“LGPL”), the use, copying, distribution and modification of
|
|
30
|
+
the GPL OSS or LGPL OSS is governed, respectively, by the GPL or LGPL.
|
|
31
|
+
A copy of the GPL or LGPL license may be found with the applicable OSS.
|
|
32
|
+
Additionally, a copy of the GPL License or LGPL License can be found
|
|
33
|
+
at https://www.gnu.org/licenses or obtained by writing to the Free
|
|
34
|
+
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
35
|
+
MA 02111-1307 USA.
|
|
36
|
+
|
|
37
|
+
==================== TABLE OF CONTENTS ====================
|
|
38
|
+
|
|
39
|
+
The following is a listing of the open source components detailed in
|
|
40
|
+
this document. This list is provided for your convenience; please read
|
|
41
|
+
further if you wish to review the copyright notice(s) and the full text
|
|
42
|
+
of the license associated with each component.
|
|
43
|
+
|
|
44
|
+
PART 1. APPLICATION LAYER
|
|
45
|
+
|
|
46
|
+
SECTION 1: Apache License, V2.0
|
|
47
|
+
|
|
48
|
+
>>> rxjs-7.8.0
|
|
49
|
+
|
|
50
|
+
SECTION 2: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES
|
|
51
|
+
|
|
52
|
+
>>> @vcd/bindings-9.1.1
|
|
53
|
+
>>> tslib-2.3.0
|
|
54
|
+
>>> zone.js-0.14.3
|
|
55
|
+
>>> @angular/animations-17.1.2
|
|
56
|
+
>>> @angular/common-17.1.2
|
|
57
|
+
>>> @angular/compiler-17.1.2
|
|
58
|
+
>>> @angular/core-17.1.2
|
|
59
|
+
>>> @angular/forms-17.1.2
|
|
60
|
+
>>> @angular/platform-browser-dynamic-17.1.2
|
|
61
|
+
>>> @angular/platform-browser-17.1.2
|
|
62
|
+
>>> @angular/router-17.1.2
|
|
63
|
+
>>> @ngrx/store-17.0.1
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
APPENDIX. Standard License Files
|
|
67
|
+
|
|
68
|
+
>>> Apache License, V2.0
|
|
69
|
+
|
|
70
|
+
==================== PART 1. APPLICATION LAYER ====================
|
|
71
|
+
|
|
72
|
+
-------------------- SECTION 1: Apache License, V2.0 --------------------
|
|
73
|
+
|
|
74
|
+
>>> rxjs-7.8.0
|
|
75
|
+
|
|
76
|
+
License : Apache 2.0
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
-------------------- SECTION 2: BSD-STYLE, MIT-STYLE, OR SIMILAR STYLE LICENSES --------------------
|
|
80
|
+
|
|
81
|
+
>>> @vcd/bindings-9.1.1
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
>>> tslib-2.3.0
|
|
86
|
+
|
|
87
|
+
Copyright (c) Microsoft Corporation.
|
|
88
|
+
|
|
89
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
90
|
+
purpose with or without fee is hereby granted.
|
|
91
|
+
|
|
92
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
93
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
94
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
95
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
96
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
97
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
98
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
>>> zone.js-0.14.3
|
|
102
|
+
|
|
103
|
+
(c) 2010-2022 Google LLC. https://angular.io/
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
>>> @angular/animations-17.1.2
|
|
110
|
+
|
|
111
|
+
(c) 2010-2022 Google LLC. https://angular.io/
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
Copyright Google LLC All Rights Reserved.
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
>>> @angular/common-17.1.2
|
|
121
|
+
|
|
122
|
+
Copyright Google LLC All Rights Reserved.
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
>>> @angular/compiler-17.1.2
|
|
129
|
+
|
|
130
|
+
(c) 2010-2022 Google LLC. https://angular.io/
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
Copyright Google LLC All Rights Reserved.
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
>>> @angular/core-17.1.2
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
>>> @angular/forms-17.1.2
|
|
144
|
+
|
|
145
|
+
(c) 2010-2022 Google LLC. https://angular.io/
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
Copyright Google LLC All Rights Reserved.
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
>>> @angular/platform-browser-dynamic-17.1.2
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
>>> @angular/platform-browser-17.1.2
|
|
159
|
+
|
|
160
|
+
(c) 2010-2022 Google LLC. https://angular.io/
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
Copyright Google LLC All Rights Reserved.
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
>>> @angular/router-17.1.2
|
|
170
|
+
|
|
171
|
+
(c) 2010-2022 Google LLC. https://angular.io/
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
Copyright Google LLC All Rights Reserved.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
>>> @ngrx/store-17.0.1
|
|
181
|
+
|
|
182
|
+
Copyright Google Inc. All Rights Reserved.
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
Copyright (c) 2017-2023 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
==================== APPENDIX. Standard License Files ====================
|
|
192
|
+
|
|
193
|
+
-------------------- SECTION 1: Apache License, V2.0 --------------------
|
|
194
|
+
|
|
195
|
+
Apache License
|
|
196
|
+
|
|
197
|
+
Version 2.0, January 2004
|
|
198
|
+
http://www.apache.org/licenses/
|
|
199
|
+
|
|
200
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
201
|
+
|
|
202
|
+
1. Definitions.
|
|
203
|
+
|
|
204
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
205
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
206
|
+
|
|
207
|
+
"Licensor" shall mean the copyright owner or entity authorized by the
|
|
208
|
+
copyright owner that is granting the License.
|
|
209
|
+
|
|
210
|
+
"Legal Entity" shall mean the union of the acting entity and all other
|
|
211
|
+
entities that control, are controlled by, or are under common control
|
|
212
|
+
with that entity. For the purposes of this definition, "control" means
|
|
213
|
+
(i) the power, direct or indirect, to cause the direction or management
|
|
214
|
+
of such entity, whether by contract or otherwise, or (ii) ownership
|
|
215
|
+
of fifty percent (50%) or more of the outstanding shares, or (iii)
|
|
216
|
+
beneficial ownership of such entity.
|
|
217
|
+
|
|
218
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
219
|
+
permissions granted by this License.
|
|
220
|
+
|
|
221
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
222
|
+
including but not limited to software source code, documentation source,
|
|
223
|
+
and configuration files.
|
|
224
|
+
|
|
225
|
+
"Object" form shall mean any form resulting from mechanical transformation
|
|
226
|
+
or translation of a Source form, including but not limited to compiled
|
|
227
|
+
object code, generated documentation, and conversions to other media
|
|
228
|
+
types.
|
|
229
|
+
|
|
230
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
231
|
+
Object form, made available under the License, as indicated by a copyright
|
|
232
|
+
notice that is included in or attached to the work (an example is provided
|
|
233
|
+
in the Appendix below).
|
|
234
|
+
|
|
235
|
+
"Derivative Works" shall mean any work, whether in Source or Object form,
|
|
236
|
+
that is based on (or derived from) the Work and for which the editorial
|
|
237
|
+
revisions, annotations, elaborations, or other modifications represent,
|
|
238
|
+
as a whole, an original work of authorship. For the purposes of this
|
|
239
|
+
License, Derivative Works shall not include works that remain separable
|
|
240
|
+
from, or merely link (or bind by name) to the interfaces of, the Work
|
|
241
|
+
and Derivative Works thereof.
|
|
242
|
+
|
|
243
|
+
"Contribution" shall mean any work of authorship, including the
|
|
244
|
+
original version of the Work and any modifications or additions to
|
|
245
|
+
that Work or Derivative Works thereof, that is intentionally submitted
|
|
246
|
+
to Licensor for inclusion in the Work by the copyright owner or by an
|
|
247
|
+
individual or Legal Entity authorized to submit on behalf of the copyright
|
|
248
|
+
owner. For the purposes of this definition, "submitted" means any form of
|
|
249
|
+
electronic, verbal, or written communication sent to the Licensor or its
|
|
250
|
+
representatives, including but not limited to communication on electronic
|
|
251
|
+
mailing lists, source code control systems, and issue tracking systems
|
|
252
|
+
that are managed by, or on behalf of, the Licensor for the purpose of
|
|
253
|
+
discussing and improving the Work, but excluding communication that is
|
|
254
|
+
conspicuously marked or otherwise designated in writing by the copyright
|
|
255
|
+
owner as "Not a Contribution."
|
|
256
|
+
|
|
257
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
258
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
259
|
+
subsequently incorporated within the Work.
|
|
260
|
+
|
|
261
|
+
2. Grant of Copyright License.
|
|
262
|
+
Subject to the terms and conditions of this License, each Contributor
|
|
263
|
+
hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
|
|
264
|
+
royalty-free, irrevocable copyright license to reproduce, prepare
|
|
265
|
+
Derivative Works of, publicly display, publicly perform, sublicense, and
|
|
266
|
+
distribute the Work and such Derivative Works in Source or Object form.
|
|
267
|
+
|
|
268
|
+
3. Grant of Patent License.
|
|
269
|
+
Subject to the terms and conditions of this License, each Contributor
|
|
270
|
+
hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
|
|
271
|
+
royalty- free, irrevocable (except as stated in this section) patent
|
|
272
|
+
license to make, have made, use, offer to sell, sell, import, and
|
|
273
|
+
otherwise transfer the Work, where such license applies only to those
|
|
274
|
+
patent claims licensable by such Contributor that are necessarily
|
|
275
|
+
infringed by their Contribution(s) alone or by combination of
|
|
276
|
+
their Contribution(s) with the Work to which such Contribution(s)
|
|
277
|
+
was submitted. If You institute patent litigation against any entity
|
|
278
|
+
(including a cross-claim or counterclaim in a lawsuit) alleging that the
|
|
279
|
+
Work or a Contribution incorporated within the Work constitutes direct
|
|
280
|
+
or contributory patent infringement, then any patent licenses granted
|
|
281
|
+
to You under this License for that Work shall terminate as of the date
|
|
282
|
+
such litigation is filed.
|
|
283
|
+
|
|
284
|
+
4. Redistribution.
|
|
285
|
+
You may reproduce and distribute copies of the Work or Derivative Works
|
|
286
|
+
thereof in any medium, with or without modifications, and in Source or
|
|
287
|
+
Object form, provided that You meet the following conditions:
|
|
288
|
+
|
|
289
|
+
a. You must give any other recipients of the Work or Derivative Works
|
|
290
|
+
a copy of this License; and
|
|
291
|
+
|
|
292
|
+
b. You must cause any modified files to carry prominent notices stating
|
|
293
|
+
that You changed the files; and
|
|
294
|
+
|
|
295
|
+
c. You must retain, in the Source form of any Derivative Works that
|
|
296
|
+
You distribute, all copyright, patent, trademark, and attribution
|
|
297
|
+
notices from the Source form of the Work, excluding those notices
|
|
298
|
+
that do not pertain to any part of the Derivative Works; and
|
|
299
|
+
|
|
300
|
+
d. If the Work includes a "NOTICE" text file as part of its
|
|
301
|
+
distribution, then any Derivative Works that You distribute must
|
|
302
|
+
include a readable copy of the attribution notices contained
|
|
303
|
+
within such NOTICE file, excluding those notices that do not
|
|
304
|
+
pertain to any part of the Derivative Works, in at least one of
|
|
305
|
+
the following places: within a NOTICE text file distributed as part
|
|
306
|
+
of the Derivative Works; within the Source form or documentation,
|
|
307
|
+
if provided along with the Derivative Works; or, within a display
|
|
308
|
+
generated by the Derivative Works, if and wherever such third-party
|
|
309
|
+
notices normally appear. The contents of the NOTICE file are for
|
|
310
|
+
informational purposes only and do not modify the License. You
|
|
311
|
+
may add Your own attribution notices within Derivative Works that
|
|
312
|
+
You distribute, alongside or as an addendum to the NOTICE text
|
|
313
|
+
from the Work, provided that such additional attribution notices
|
|
314
|
+
cannot be construed as modifying the License. You may add Your own
|
|
315
|
+
copyright statement to Your modifications and may provide additional
|
|
316
|
+
or different license terms and conditions for use, reproduction, or
|
|
317
|
+
distribution of Your modifications, or for any such Derivative Works
|
|
318
|
+
as a whole, provided Your use, reproduction, and distribution of the
|
|
319
|
+
Work otherwise complies with the conditions stated in this License.
|
|
320
|
+
|
|
321
|
+
5. Submission of Contributions.
|
|
322
|
+
Unless You explicitly state otherwise, any Contribution intentionally
|
|
323
|
+
submitted for inclusion in the Work by You to the Licensor shall be
|
|
324
|
+
under the terms and conditions of this License, without any additional
|
|
325
|
+
terms or conditions. Notwithstanding the above, nothing herein shall
|
|
326
|
+
supersede or modify the terms of any separate license agreement you may
|
|
327
|
+
have executed with Licensor regarding such Contributions.
|
|
328
|
+
|
|
329
|
+
6. Trademarks.
|
|
330
|
+
This License does not grant permission to use the trade names, trademarks,
|
|
331
|
+
service marks, or product names of the Licensor, except as required for
|
|
332
|
+
reasonable and customary use in describing the origin of the Work and
|
|
333
|
+
reproducing the content of the NOTICE file.
|
|
334
|
+
|
|
335
|
+
7. Disclaimer of Warranty.
|
|
336
|
+
Unless required by applicable law or agreed to in writing, Licensor
|
|
337
|
+
provides the Work (and each Contributor provides its Contributions) on
|
|
338
|
+
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
339
|
+
express or implied, including, without limitation, any warranties or
|
|
340
|
+
conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR
|
|
341
|
+
A PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
342
|
+
appropriateness of using or redistributing the Work and assume any risks
|
|
343
|
+
associated with Your exercise of permissions under this License.
|
|
344
|
+
|
|
345
|
+
8. Limitation of Liability.
|
|
346
|
+
In no event and under no legal theory, whether in tort (including
|
|
347
|
+
negligence), contract, or otherwise, unless required by applicable law
|
|
348
|
+
(such as deliberate and grossly negligent acts) or agreed to in writing,
|
|
349
|
+
shall any Contributor be liable to You for damages, including any direct,
|
|
350
|
+
indirect, special, incidental, or consequential damages of any character
|
|
351
|
+
arising as a result of this License or out of the use or inability to
|
|
352
|
+
use the Work (including but not limited to damages for loss of goodwill,
|
|
353
|
+
work stoppage, computer failure or malfunction, or any and all other
|
|
354
|
+
commercial damages or losses), even if such Contributor has been advised
|
|
355
|
+
of the possibility of such damages.
|
|
356
|
+
|
|
357
|
+
9. Accepting Warranty or Additional Liability.
|
|
358
|
+
While redistributing the Work or Derivative Works thereof, You may
|
|
359
|
+
choose to offer, and charge a fee for, acceptance of support, warranty,
|
|
360
|
+
indemnity, or other liability obligations and/or rights consistent with
|
|
361
|
+
this License. However, in accepting such obligations, You may act only
|
|
362
|
+
on Your own behalf and on Your sole responsibility, not on behalf of
|
|
363
|
+
any other Contributor, and only if You agree to indemnify, defend, and
|
|
364
|
+
hold each Contributor harmless for any liability incurred by, or claims
|
|
365
|
+
asserted against, such Contributor by reason of your accepting any such
|
|
366
|
+
warranty or additional liability.
|
|
367
|
+
|
|
368
|
+
END OF TERMS AND CONDITIONS
|
|
369
|
+
|
|
370
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
371
|
+
|
|
372
|
+
To apply the Apache License to your work, attach the following
|
|
373
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
374
|
+
replaced with your own identifying information. (Don't include
|
|
375
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
376
|
+
comment syntax for the file format. We also recommend that a
|
|
377
|
+
file or class name and description of purpose be included on the
|
|
378
|
+
same "printed page" as the copyright notice for easier
|
|
379
|
+
identification within third-party archives.
|
|
380
|
+
|
|
381
|
+
Copyright [yyyy] [name of copyright owner]
|
|
382
|
+
|
|
383
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
384
|
+
you may not use this file except in compliance with the License.
|
|
385
|
+
You may obtain a copy of the License at
|
|
386
|
+
|
|
387
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
388
|
+
|
|
389
|
+
Unless required by applicable law or agreed to in writing, software
|
|
390
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
391
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
392
|
+
See the License for the specific language governing permissions and
|
|
393
|
+
limitations under the License.
|
package/package.json
CHANGED
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vcd/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "
|
|
6
|
-
"@angular/core": "
|
|
7
|
-
"@ngrx/store": "
|
|
5
|
+
"@angular/common": "17.1.2",
|
|
6
|
+
"@angular/core": "17.1.2",
|
|
7
|
+
"@ngrx/store": "17.0.1",
|
|
8
8
|
"rxjs": "7.8.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"tslib": "2.3.0"
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
|
-
"module": "
|
|
15
|
-
"es2020": "fesm2020/vcd-sdk.mjs",
|
|
16
|
-
"esm2020": "esm2020/vcd-sdk.mjs",
|
|
17
|
-
"fesm2020": "fesm2020/vcd-sdk.mjs",
|
|
18
|
-
"fesm2015": "fesm2015/vcd-sdk.mjs",
|
|
14
|
+
"module": "fesm2022/vcd-sdk.mjs",
|
|
19
15
|
"typings": "index.d.ts",
|
|
20
16
|
"exports": {
|
|
21
17
|
"./package.json": {
|
|
@@ -23,11 +19,9 @@
|
|
|
23
19
|
},
|
|
24
20
|
".": {
|
|
25
21
|
"types": "./index.d.ts",
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"node": "./fesm2015/vcd-sdk.mjs",
|
|
30
|
-
"default": "./fesm2020/vcd-sdk.mjs"
|
|
22
|
+
"esm2022": "./esm2022/vcd-sdk.mjs",
|
|
23
|
+
"esm": "./esm2022/vcd-sdk.mjs",
|
|
24
|
+
"default": "./fesm2022/vcd-sdk.mjs"
|
|
31
25
|
}
|
|
32
26
|
}
|
|
33
27
|
}
|
|
Binary file
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Injectable, Optional } from '@angular/core';
|
|
2
|
-
import { HttpResponse } from '@angular/common/http';
|
|
3
|
-
import { finalize, tap } from 'rxjs/operators';
|
|
4
|
-
import { ApiResult } from './api.result.service';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./api.result.service";
|
|
7
|
-
// tslint:disable:variable-name
|
|
8
|
-
export class LoggingInterceptor {
|
|
9
|
-
set enabled(enabled) {
|
|
10
|
-
this._enabled = enabled;
|
|
11
|
-
if (this._enabled && this._outputToConsole) {
|
|
12
|
-
console.warn('API logging enabled but no provider found for ApiResultService. Results will be output to the console.');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
constructor(apiResultService) {
|
|
16
|
-
this.apiResultService = apiResultService;
|
|
17
|
-
this._enabled = false;
|
|
18
|
-
this._outputToConsole = !this.apiResultService;
|
|
19
|
-
}
|
|
20
|
-
intercept(req, next) {
|
|
21
|
-
if (!this._enabled) {
|
|
22
|
-
return next.handle(req);
|
|
23
|
-
}
|
|
24
|
-
const started = new Date();
|
|
25
|
-
let succeeded;
|
|
26
|
-
return next.handle(req)
|
|
27
|
-
.pipe(tap(event => succeeded = event instanceof HttpResponse ? true : false, error => succeeded = false), finalize(() => {
|
|
28
|
-
if (this._outputToConsole) {
|
|
29
|
-
console.log(`${req.method} ${req.urlWithParams} completed in ${Date.now() - started.getTime()} ms. Success: ${succeeded}`);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this.apiResultService.add(new ApiResult(`${req.method} ${req.urlWithParams}`, succeeded, started, new Date()));
|
|
33
|
-
}
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
LoggingInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: LoggingInterceptor, deps: [{ token: i1.ApiResultService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
-
LoggingInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: LoggingInterceptor });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: LoggingInterceptor, decorators: [{
|
|
40
|
-
type: Injectable
|
|
41
|
-
}], ctorParameters: function () { return [{ type: i1.ApiResultService, decorators: [{
|
|
42
|
-
type: Optional
|
|
43
|
-
}] }]; } });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9nZ2luZy5pbnRlcmNlcHRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ZjZC9zZGsvc3JjL2NsaWVudC9jbGllbnQvbG9nZ2luZy5pbnRlcmNlcHRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNyRCxPQUFPLEVBRVEsWUFBWSxFQUMxQixNQU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O1xuICAgIH1cblxuICAgIGNvbnN0IHN0YXJ0ZWQgPSBuZXcgRGF0ZSgpO1xuICAgIGxldCBzdWNjZWVkZWQ6IGJvb2xlYW47XG5cbiAgICByZXR1cm4gbmV4dC5oYW5kbGUocmVxKVxuICAgICAgLnBpcGUoXG4gICAgICAgIHRhcChcbiAgICAgICAgICBldmVudCA9PiBzdWNjZWVkZWQgPSBldmVudCBpbnN0YW5jZW9mIEh0dHBSZXNwb25zZSA/IHRydWUgOiBmYWxzZSxcbiAgICAgICAgICBlcnJvciA9PiBzdWNjZWVkZWQgPSBmYWxzZVxuICAgICAgICApLFxuICAgICAgICBmaW5hbGl6ZSgoKSA9PiB7XG4gICAgICAgICAgaWYgKHRoaXMuX291dHB1dFRvQ29uc29sZSkge1xuICAgICAgICAgICAgY29uc29sZS5sb2coYCR7cmVxLm1ldGhvZH0gJHtyZXEudXJsV2l0aFBhcmFtc30gY29tcGxldGVkIGluICR7RGF0ZS5ub3coKSAtIHN0YXJ0ZWQuZ2V0VGltZSgpfSBtcy4gIFN1Y2Nlc3M6ICR7c3VjY2VlZGVkfWApO1xuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLmFwaVJlc3VsdFNlcnZpY2UuYWRkKG5ldyBBcGlSZXN1bHQoYCR7cmVxLm1ldGhvZH0gJHtyZXEudXJsV2l0aFBhcmFtc31gLCBzdWNjZWVkZWQsIHN0YXJ0ZWQsIG5ldyBEYXRlKCkpKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0pXG4gICAgICApO1xuICB9XG59XG4iXX0=
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { HttpResponse } from '@angular/common/http';
|
|
3
|
-
import { map } from 'rxjs/operators';
|
|
4
|
-
import { parseHeaderHateoasLinks } from '.';
|
|
5
|
-
import { HTTP_HEADERS } from './constants';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
// tslint:disable:variable-name
|
|
8
|
-
export class RequestHeadersInterceptor {
|
|
9
|
-
constructor() {
|
|
10
|
-
this._enabled = true;
|
|
11
|
-
this._version = '';
|
|
12
|
-
this._authenticationHeader = HTTP_HEADERS.Authorization;
|
|
13
|
-
}
|
|
14
|
-
set enabled(_enabled) {
|
|
15
|
-
this._enabled = _enabled;
|
|
16
|
-
}
|
|
17
|
-
set actAs(_actAs) {
|
|
18
|
-
this._actAs = _actAs;
|
|
19
|
-
}
|
|
20
|
-
set actAsOrgName(_actAsOrgName) {
|
|
21
|
-
this._actAsOrgName = _actAsOrgName;
|
|
22
|
-
}
|
|
23
|
-
get version() {
|
|
24
|
-
return this._version;
|
|
25
|
-
}
|
|
26
|
-
set version(_version) {
|
|
27
|
-
this._version = _version;
|
|
28
|
-
}
|
|
29
|
-
set authentication(_authentication) {
|
|
30
|
-
this._authentication = _authentication;
|
|
31
|
-
this._authenticationHeader = (this._authentication && this._authentication.length > 32) ?
|
|
32
|
-
HTTP_HEADERS.Authorization : HTTP_HEADERS.x_vcloud_authorization;
|
|
33
|
-
}
|
|
34
|
-
intercept(req, next) {
|
|
35
|
-
let headers = req.headers;
|
|
36
|
-
if (!headers.has('Accept')) {
|
|
37
|
-
headers = this.setAcceptHeader(headers);
|
|
38
|
-
}
|
|
39
|
-
if (!headers.has('Content-Type')) {
|
|
40
|
-
headers = this.setContentTypeHeader(headers, req.url);
|
|
41
|
-
}
|
|
42
|
-
if (this._authentication && !headers.has(HTTP_HEADERS.Authorization)) {
|
|
43
|
-
headers = headers.set(this._authenticationHeader, this._authentication);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Covers the case where the User set the ActAs token himself
|
|
47
|
-
*/
|
|
48
|
-
if (!headers.has('X-VMWARE-VCLOUD-TENANT-CONTEXT') && this._actAs) {
|
|
49
|
-
headers = headers.set('X-VMWARE-VCLOUD-TENANT-CONTEXT', this._actAs);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Covers the case where the User set the ActAs token himself
|
|
53
|
-
*/
|
|
54
|
-
if (!headers.has('X-VMWARE-VCLOUD-AUTH-CONTEXT') && this._actAsOrgName) {
|
|
55
|
-
headers = headers.set('X-VMWARE-VCLOUD-AUTH-CONTEXT', this._actAsOrgName);
|
|
56
|
-
}
|
|
57
|
-
const customReq = req.clone({
|
|
58
|
-
headers
|
|
59
|
-
});
|
|
60
|
-
return next.handle(customReq).pipe(map((res) => {
|
|
61
|
-
if (res instanceof HttpResponse) {
|
|
62
|
-
if (!res.body || !res.headers) {
|
|
63
|
-
return res;
|
|
64
|
-
}
|
|
65
|
-
if (res.headers.has(HTTP_HEADERS.link)) {
|
|
66
|
-
res.body.link = parseHeaderHateoasLinks(res.headers.get(HTTP_HEADERS.link));
|
|
67
|
-
}
|
|
68
|
-
if (res.headers.has(HTTP_HEADERS.Link)) {
|
|
69
|
-
res.body.link = parseHeaderHateoasLinks(res.headers.get(HTTP_HEADERS.Link));
|
|
70
|
-
}
|
|
71
|
-
if (res.headers.has(HTTP_HEADERS.etag)) {
|
|
72
|
-
res.body.etag = res.headers.get(HTTP_HEADERS.etag);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return res;
|
|
76
|
-
}));
|
|
77
|
-
}
|
|
78
|
-
setAcceptHeader(headers) {
|
|
79
|
-
const value = headers.get('_multisite');
|
|
80
|
-
headers = headers.delete('_multisite');
|
|
81
|
-
return headers.set('Accept', [
|
|
82
|
-
`application/*+json;version=${this._version}${value ? `;multisite=${value}` : ''}`,
|
|
83
|
-
`application/json;version=${this._version}${value ? `;multisite=${value}` : ''}`
|
|
84
|
-
]);
|
|
85
|
-
}
|
|
86
|
-
setContentTypeHeader(headers, url) {
|
|
87
|
-
if (url.indexOf('cloudapi') > -1) {
|
|
88
|
-
return headers.set('Content-Type', 'application/json');
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
return headers.set('Content-Type', 'application/*+json');
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
RequestHeadersInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: RequestHeadersInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
96
|
-
RequestHeadersInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: RequestHeadersInterceptor });
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.0", ngImport: i0, type: RequestHeadersInterceptor, decorators: [{
|
|
98
|
-
type: Injectable
|
|
99
|
-
}] });
|
|
100
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVxdWVzdC5oZWFkZXJzLmludGVyY2VwdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmNkL3Nkay9zcmMvY2xpZW50L2NsaWVudC9yZXF1ZXN0LmhlYWRlcnMuaW50ZXJjZXB0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQXFFLFlBQVksRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBRXZILE9BQU8sRUFBRSxHQUFHLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyQyxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxHQUFHLENBQUM7QUFDNUMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGFBQWEsQ0FBQzs7QUFFM0MsK0JBQStCO0FBRS9CLE1BQU0sT0FBTyx5QkFBeUI7SUFEdEM7UUFFWSxhQUFRLEdBQUcsSUFBSSxDQUFDO1FBZWhCLGFBQVEsR0FBRyxFQUFFLENBQUM7UUFRZCwwQkFBcUIsR0FBVyxZQ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FueT4pID0+IHtcbiAgICAgICAgICAgICAgICBpZiAocmVzIGluc3RhbmNlb2YgSHR0cFJlc3BvbnNlKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghcmVzLmJvZHkgfHwgIXJlcy5oZWFkZXJzKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzO1xuICAgICAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlcy5oZWFkZXJzLmhhcyhIVFRQX0hFQURFUlMubGluaykpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlcy5ib2R5LmxpbmsgPSBwYXJzZUhlYWRlckhhdGVvYXNMaW5rcyhyZXMuaGVhZGVycy5nZXQoSFRUUF9IRUFERVJTLmxpbmspKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgICAgIGlmIChyZXMuaGVhZGVycy5oYXMoSFRUUF9IRUFERVJTLkxpbmspKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByZXMuYm9keS5saW5rID0gcGFyc2VIZWFkZXJIYXRlb2FzTGlua3MocmVzLmhlYWRlcnMuZ2V0KEhUVFBfSEVBREVSUy5MaW5rKSk7XG4gICAgICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgICAgICBpZiAocmVzLmhlYWRlcnMuaGFzKEhUVFBfSEVBREVSUy5ldGFnKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVzLmJvZHkuZXRhZyA9IHJlcy5oZWFkZXJzLmdldChIVFRQX0hFQURFUlMuZXRhZyk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlcztcbiAgICAgICAgICAgIH0pXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBzZXRBY2NlcHRIZWFkZXIoaGVhZGVyczogSHR0cEhlYWRlcnMpOiBIdHRwSGVhZGVycyB7X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