@vcd/sdk 17.0.2 → 19.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/LICENSE.txt +9 -0
- package/core/plugin.module.d.ts +0 -7
- package/fesm2022/vcd-sdk.mjs +112 -115
- package/fesm2022/vcd-sdk.mjs.map +1 -1
- package/package.json +4 -7
- package/esm2022/client/client/api.result.service.mjs +0 -43
- package/esm2022/client/client/constants.mjs +0 -13
- package/esm2022/client/client/index.mjs +0 -9
- package/esm2022/client/client/logging.interceptor.mjs +0 -44
- package/esm2022/client/client/request.headers.interceptor.mjs +0 -123
- package/esm2022/client/client/response.normalization.interceptor.mjs +0 -59
- package/esm2022/client/client/types.mjs +0 -13
- package/esm2022/client/client/vcd.api.client.mjs +0 -603
- package/esm2022/client/client/vcd.http.client.mjs +0 -61
- package/esm2022/client/client/vcd.transfer.client.mjs +0 -166
- package/esm2022/client/index.mjs +0 -3
- package/esm2022/client/jwt/decoded-jwt.mjs +0 -37
- package/esm2022/client/openapi.mjs +0 -16
- package/esm2022/client/query/filter.builder.mjs +0 -195
- package/esm2022/client/query/index.mjs +0 -3
- package/esm2022/client/query/query.builder.mjs +0 -79
- package/esm2022/common/container-hooks.mjs +0 -85
- package/esm2022/common/index.mjs +0 -2
- package/esm2022/core/index.mjs +0 -2
- package/esm2022/core/plugin.module.mjs +0 -23
- package/esm2022/main.mjs +0 -45
- package/esm2022/public-api.mjs +0 -8
- package/esm2022/vcd-sdk.mjs +0 -5
- package/open_source_license_vcd_ui_sdk_17.0.2_ga.txt +0 -393
package/LICENSE.txt
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
SOFTWARE LICENSE AGREEMENT
|
|
2
|
+
|
|
3
|
+
Copyright (c) CA, Inc. All rights reserved.
|
|
4
|
+
|
|
5
|
+
You are hereby granted a non-exclusive, worldwide, royalty-free license under CA, Inc.’s copyrights to use, copy, modify, and distribute this software in source code or binary form for use in connection with CA, Inc. products.
|
|
6
|
+
|
|
7
|
+
This copyright notice shall be included in all copies or substantial portions of the software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/core/plugin.module.d.ts
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { Store } from '@ngrx/store';
|
|
2
|
-
import { ExtensionNavRegistration } from '../common';
|
|
3
1
|
import { InjectionToken } from "@angular/core";
|
|
4
2
|
import { HttpInterceptor } from "@angular/common/http";
|
|
5
|
-
export declare class PluginModule {
|
|
6
|
-
private appStore;
|
|
7
|
-
constructor(appStore: Store<any>);
|
|
8
|
-
protected registerExtension(extension: ExtensionNavRegistration): void;
|
|
9
|
-
}
|
|
10
3
|
/**
|
|
11
4
|
* Config object that is passed on VcdSdkModule init
|
|
12
5
|
* using .forRoot() method. It can be used to store
|
package/fesm2022/vcd-sdk.mjs
CHANGED
|
@@ -295,10 +295,10 @@ class ApiResultService {
|
|
|
295
295
|
clear() {
|
|
296
296
|
this._results = [];
|
|
297
297
|
}
|
|
298
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
299
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiResultService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
299
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiResultService }); }
|
|
300
300
|
}
|
|
301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ApiResultService, decorators: [{
|
|
302
302
|
type: Injectable
|
|
303
303
|
}] });
|
|
304
304
|
class ApiResult {
|
|
@@ -322,98 +322,6 @@ class ApiResult {
|
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
/**
|
|
326
|
-
* This is the currently supported - albeit very minimal - public SDK.
|
|
327
|
-
*/
|
|
328
|
-
// Bind straight into the hooks provided by the container.
|
|
329
|
-
if (!window.System || !window.System.registry || !window.System.registry.get) {
|
|
330
|
-
throw new Error('SystemJS registry not found');
|
|
331
|
-
}
|
|
332
|
-
let containerHooks = window.System.registry.get('@vcd/common');
|
|
333
|
-
if (!containerHooks) {
|
|
334
|
-
containerHooks = window.System.registry.get('@vcd-ui/common');
|
|
335
|
-
}
|
|
336
|
-
if (!containerHooks) {
|
|
337
|
-
throw new Error('VCD UI container hooks not present in SystemJS registry');
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Wire in as a string. Gives the root URL for API access (for example, the load balancer URL
|
|
341
|
-
* or the single-cell URL).
|
|
342
|
-
*/
|
|
343
|
-
const API_ROOT_URL = containerHooks.API_ROOT_URL;
|
|
344
|
-
/**
|
|
345
|
-
* Wire in as a string. Gives the root URL for the legacy Flex application.
|
|
346
|
-
*/
|
|
347
|
-
const FLEX_APP_URL = containerHooks.API_ROOT_URL;
|
|
348
|
-
/**
|
|
349
|
-
* Wire in as a string. Gives the current scope of the VCD-UI. As of current, this will be
|
|
350
|
-
* either 'tenant' for the tenant portal, or 'service-provider' for the service-provider portal.
|
|
351
|
-
*/
|
|
352
|
-
const SESSION_SCOPE = containerHooks.SESSION_SCOPE;
|
|
353
|
-
/**
|
|
354
|
-
* Wire in as a string. Gives the unique name (not the display name) of the current tenant
|
|
355
|
-
* organization that the VCD-UI is being used for.
|
|
356
|
-
*/
|
|
357
|
-
const SESSION_ORGANIZATION = containerHooks.SESSION_ORGANIZATION;
|
|
358
|
-
/**
|
|
359
|
-
* Wire in as a string. Gives the UUID identifier of the current tenant
|
|
360
|
-
* organization that the VCD-UI is being used for.
|
|
361
|
-
*/
|
|
362
|
-
const SESSION_ORG_ID = containerHooks.SESSION_ORG_ID ? containerHooks.SESSION_ORG_ID : '';
|
|
363
|
-
/**
|
|
364
|
-
* Wire in as a string. Gives the full root path for module assets (e.g. images, scripts, text files)
|
|
365
|
-
*
|
|
366
|
-
* ATTENTION!
|
|
367
|
-
* Add || new InjectionToken to workaround the Angular security mechanics which prevent use of injection tokens
|
|
368
|
-
* which potentially are not defiend. The same fix can be applied for the rest tokens if needed.
|
|
369
|
-
*/
|
|
370
|
-
const EXTENSION_ASSET_URL = containerHooks.EXTENSION_ASSET_URL || new InjectionToken('EXTENSION_ASSET_URL');
|
|
371
|
-
/**
|
|
372
|
-
* Wire in as a string. Gives the Angular 2 route that the module is registered under.
|
|
373
|
-
*/
|
|
374
|
-
const EXTENSION_ROUTE = containerHooks.EXTENSION_ROUTE;
|
|
375
|
-
/**
|
|
376
|
-
* Wire in as a boolean. True if running under the SDK, false if running in production.
|
|
377
|
-
*/
|
|
378
|
-
const SDK_MODE = containerHooks.SDK_MODE;
|
|
379
|
-
const ExtensionNavRegistrationAction = containerHooks.ExtensionNavRegistrationAction;
|
|
380
|
-
const AuthTokenHolderService = containerHooks.AuthTokenHolderService;
|
|
381
|
-
/**
|
|
382
|
-
* Every component referenced by an entity action extension point must inherit from this.
|
|
383
|
-
*/
|
|
384
|
-
// tslint:disable-next-line:class-name
|
|
385
|
-
class _EntityActionExtensionComponent {
|
|
386
|
-
}
|
|
387
|
-
const EntityActionExtensionComponent = containerHooks.EntityActionExtensionComponent;
|
|
388
|
-
// tslint:disable-next-line:class-name
|
|
389
|
-
class _WizardExtensionComponent {
|
|
390
|
-
}
|
|
391
|
-
const WizardExtensionComponent = containerHooks.WizardExtensionComponent;
|
|
392
|
-
// tslint:disable-next-line:class-name
|
|
393
|
-
class _WizardExtensionWithValidationComponent extends _WizardExtensionComponent {
|
|
394
|
-
}
|
|
395
|
-
// tslint:disable-next-line:max-line-length
|
|
396
|
-
const WizardExtensionWithValidationComponent = containerHooks.WizardExtensionWithValidationComponent;
|
|
397
|
-
/**
|
|
398
|
-
* Every component-based Extension Point that is renderd in Cloud Director UI Entity Details
|
|
399
|
-
* must extend that class to obtain context about the Entity.
|
|
400
|
-
*
|
|
401
|
-
* See comments of the methods of the abstract class for more information.
|
|
402
|
-
*/
|
|
403
|
-
// tslint:disable-next-line:class-name
|
|
404
|
-
class _WizardExtensionWithContextComponent extends _WizardExtensionComponent {
|
|
405
|
-
}
|
|
406
|
-
// tslint:disable-next-line:max-line-length
|
|
407
|
-
const WizardExtensionWithContextComponent = containerHooks.WizardExtensionWithContextComponent;
|
|
408
|
-
|
|
409
|
-
class PluginModule {
|
|
410
|
-
constructor(appStore) {
|
|
411
|
-
this.appStore = appStore;
|
|
412
|
-
}
|
|
413
|
-
registerExtension(extension) {
|
|
414
|
-
this.appStore.dispatch(new ExtensionNavRegistrationAction(extension));
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
325
|
/**
|
|
418
326
|
* Config object that is passed on VcdSdkModule init
|
|
419
327
|
* using .forRoot() method. It can be used to store
|
|
@@ -456,10 +364,10 @@ class LoggingInterceptor {
|
|
|
456
364
|
}
|
|
457
365
|
}));
|
|
458
366
|
}
|
|
459
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
460
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
367
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: LoggingInterceptor, deps: [{ token: ApiResultService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
368
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: LoggingInterceptor }); }
|
|
461
369
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: LoggingInterceptor, decorators: [{
|
|
463
371
|
type: Injectable
|
|
464
372
|
}], ctorParameters: () => [{ type: ApiResultService, decorators: [{
|
|
465
373
|
type: Optional
|
|
@@ -515,6 +423,90 @@ function escapeMultibyteCharacter(c) {
|
|
|
515
423
|
return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
|
|
516
424
|
}
|
|
517
425
|
|
|
426
|
+
/**
|
|
427
|
+
* This is the currently supported - albeit very minimal - public SDK.
|
|
428
|
+
*/
|
|
429
|
+
// Bind straight into the hooks provided by the container.
|
|
430
|
+
if (!window.System || !window.System.registry || !window.System.registry.get) {
|
|
431
|
+
throw new Error('SystemJS registry not found');
|
|
432
|
+
}
|
|
433
|
+
let containerHooks = window.System.registry.get('@vcd/common');
|
|
434
|
+
if (!containerHooks) {
|
|
435
|
+
containerHooks = window.System.registry.get('@vcd-ui/common');
|
|
436
|
+
}
|
|
437
|
+
if (!containerHooks) {
|
|
438
|
+
throw new Error('VCD UI container hooks not present in SystemJS registry');
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* Wire in as a string. Gives the root URL for API access (for example, the load balancer URL
|
|
442
|
+
* or the single-cell URL).
|
|
443
|
+
*/
|
|
444
|
+
const API_ROOT_URL = containerHooks.API_ROOT_URL;
|
|
445
|
+
/**
|
|
446
|
+
* Wire in as a string. Gives the root URL for the legacy Flex application.
|
|
447
|
+
*/
|
|
448
|
+
const FLEX_APP_URL = containerHooks.API_ROOT_URL;
|
|
449
|
+
/**
|
|
450
|
+
* Wire in as a string. Gives the current scope of the VCD-UI. As of current, this will be
|
|
451
|
+
* either 'tenant' for the tenant portal, or 'service-provider' for the service-provider portal.
|
|
452
|
+
*/
|
|
453
|
+
const SESSION_SCOPE = containerHooks.SESSION_SCOPE;
|
|
454
|
+
/**
|
|
455
|
+
* Wire in as a string. Gives the unique name (not the display name) of the current tenant
|
|
456
|
+
* organization that the VCD-UI is being used for.
|
|
457
|
+
*/
|
|
458
|
+
const SESSION_ORGANIZATION = containerHooks.SESSION_ORGANIZATION;
|
|
459
|
+
/**
|
|
460
|
+
* Wire in as a string. Gives the UUID identifier of the current tenant
|
|
461
|
+
* organization that the VCD-UI is being used for.
|
|
462
|
+
*/
|
|
463
|
+
const SESSION_ORG_ID = containerHooks.SESSION_ORG_ID ? containerHooks.SESSION_ORG_ID : '';
|
|
464
|
+
/**
|
|
465
|
+
* Wire in as a string. Gives the full root path for module assets (e.g. images, scripts, text files)
|
|
466
|
+
*
|
|
467
|
+
* ATTENTION!
|
|
468
|
+
* Add || new InjectionToken to workaround the Angular security mechanics which prevent use of injection tokens
|
|
469
|
+
* which potentially are not defiend. The same fix can be applied for the rest tokens if needed.
|
|
470
|
+
*/
|
|
471
|
+
const EXTENSION_ASSET_URL = containerHooks.EXTENSION_ASSET_URL || new InjectionToken('EXTENSION_ASSET_URL');
|
|
472
|
+
/**
|
|
473
|
+
* Wire in as a string. Gives the Angular 2 route that the module is registered under.
|
|
474
|
+
*/
|
|
475
|
+
const EXTENSION_ROUTE = containerHooks.EXTENSION_ROUTE;
|
|
476
|
+
/**
|
|
477
|
+
* Wire in as a boolean. True if running under the SDK, false if running in production.
|
|
478
|
+
*/
|
|
479
|
+
const SDK_MODE = containerHooks.SDK_MODE;
|
|
480
|
+
const ExtensionNavRegistrationAction = containerHooks.ExtensionNavRegistrationAction;
|
|
481
|
+
const AuthTokenHolderService = containerHooks.AuthTokenHolderService;
|
|
482
|
+
/**
|
|
483
|
+
* Every component referenced by an entity action extension point must inherit from this.
|
|
484
|
+
*/
|
|
485
|
+
// tslint:disable-next-line:class-name
|
|
486
|
+
class _EntityActionExtensionComponent {
|
|
487
|
+
}
|
|
488
|
+
const EntityActionExtensionComponent = containerHooks.EntityActionExtensionComponent;
|
|
489
|
+
// tslint:disable-next-line:class-name
|
|
490
|
+
class _WizardExtensionComponent {
|
|
491
|
+
}
|
|
492
|
+
const WizardExtensionComponent = containerHooks.WizardExtensionComponent;
|
|
493
|
+
// tslint:disable-next-line:class-name
|
|
494
|
+
class _WizardExtensionWithValidationComponent extends _WizardExtensionComponent {
|
|
495
|
+
}
|
|
496
|
+
// tslint:disable-next-line:max-line-length
|
|
497
|
+
const WizardExtensionWithValidationComponent = containerHooks.WizardExtensionWithValidationComponent;
|
|
498
|
+
/**
|
|
499
|
+
* Every component-based Extension Point that is renderd in Cloud Director UI Entity Details
|
|
500
|
+
* must extend that class to obtain context about the Entity.
|
|
501
|
+
*
|
|
502
|
+
* See comments of the methods of the abstract class for more information.
|
|
503
|
+
*/
|
|
504
|
+
// tslint:disable-next-line:class-name
|
|
505
|
+
class _WizardExtensionWithContextComponent extends _WizardExtensionComponent {
|
|
506
|
+
}
|
|
507
|
+
// tslint:disable-next-line:max-line-length
|
|
508
|
+
const WizardExtensionWithContextComponent = containerHooks.WizardExtensionWithContextComponent;
|
|
509
|
+
|
|
518
510
|
// tslint:disable:variable-name
|
|
519
511
|
class RequestHeadersInterceptor {
|
|
520
512
|
set enabled(_enabled) {
|
|
@@ -622,10 +614,10 @@ class RequestHeadersInterceptor {
|
|
|
622
614
|
const decodedJwt = new DecodedJwt(jwt);
|
|
623
615
|
return decodedJwt.isExpired();
|
|
624
616
|
}
|
|
625
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
626
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
617
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: RequestHeadersInterceptor, deps: [{ token: AuthTokenHolderService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
618
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: RequestHeadersInterceptor }); }
|
|
627
619
|
}
|
|
628
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: RequestHeadersInterceptor, decorators: [{
|
|
629
621
|
type: Injectable
|
|
630
622
|
}], ctorParameters: () => [{ type: AuthTokenHolderService }] });
|
|
631
623
|
|
|
@@ -677,10 +669,10 @@ class ResponseNormalizationInterceptor {
|
|
|
677
669
|
return response;
|
|
678
670
|
}));
|
|
679
671
|
}
|
|
680
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
681
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ResponseNormalizationInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
673
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ResponseNormalizationInterceptor }); }
|
|
682
674
|
}
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ResponseNormalizationInterceptor, decorators: [{
|
|
684
676
|
type: Injectable
|
|
685
677
|
}] });
|
|
686
678
|
|
|
@@ -725,10 +717,10 @@ class VcdHttpClient extends HttpClient {
|
|
|
725
717
|
this.loggingInterceptor = loggingInterceptor;
|
|
726
718
|
this.requestHeadersInterceptor = requestHeadersInterceptor;
|
|
727
719
|
}
|
|
728
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
729
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
720
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdHttpClient, deps: [{ token: i1.HttpBackend }, { token: LoggingInterceptor }, { token: RequestHeadersInterceptor }, { token: ResponseNormalizationInterceptor }, { token: VCD_HTTP_INTERCEPTORS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
721
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdHttpClient }); }
|
|
730
722
|
}
|
|
731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdHttpClient, decorators: [{
|
|
732
724
|
type: Injectable
|
|
733
725
|
}], ctorParameters: () => [{ type: i1.HttpBackend }, { type: LoggingInterceptor }, { type: RequestHeadersInterceptor }, { type: ResponseNormalizationInterceptor }, { type: undefined, decorators: [{
|
|
734
726
|
type: Optional
|
|
@@ -1322,8 +1314,13 @@ class VcdApiClient {
|
|
|
1322
1314
|
return this.validateRequestContext().pipe(concatMap(() => this.http.delete(this.buildEndpointUrl(endpoint), { ...options, observe: 'response' })), concatMap(response => this.mapResponseToTask(response, 'DELETE')));
|
|
1323
1315
|
}
|
|
1324
1316
|
mapResponseToTask(response, httpVerb) {
|
|
1317
|
+
//POST - Task link is returned in 'Location' header
|
|
1325
1318
|
if (response.headers.has('Location') && response.status === 202) {
|
|
1326
1319
|
return this.http.get(response.headers.get('Location'));
|
|
1320
|
+
//PUT - Task link is returned in 'x-vmware-vcloud-task-location' header
|
|
1321
|
+
}
|
|
1322
|
+
else if (response.headers.has('x-vmware-vcloud-task-location') && response.status === 200) {
|
|
1323
|
+
return this.http.get(response.headers.get('x-vmware-vcloud-task-location'));
|
|
1327
1324
|
}
|
|
1328
1325
|
else if (response.body && response.body.type.startsWith('application/vnd.vmware.vcloud.task+')) {
|
|
1329
1326
|
const task = Object.assign(new TaskType(), response.body);
|
|
@@ -1495,10 +1492,10 @@ class VcdApiClient {
|
|
|
1495
1492
|
buildEndpointUrl(endpoint) {
|
|
1496
1493
|
return endpoint.indexOf('://') > -1 ? endpoint : `${this._baseUrl}/${endpoint}`;
|
|
1497
1494
|
}
|
|
1498
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1499
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdApiClient, deps: [{ token: VcdHttpClient }, { token: i0.Injector }, { token: VcdSdkConfig, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1496
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdApiClient }); }
|
|
1500
1497
|
}
|
|
1501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdApiClient, decorators: [{
|
|
1502
1499
|
type: Injectable
|
|
1503
1500
|
}], ctorParameters: () => [{ type: VcdHttpClient }, { type: i0.Injector }, { type: VcdSdkConfig, decorators: [{
|
|
1504
1501
|
type: Optional
|
|
@@ -1525,13 +1522,13 @@ class VcdSdkModule {
|
|
|
1525
1522
|
]
|
|
1526
1523
|
};
|
|
1527
1524
|
}
|
|
1528
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1529
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1525
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdSdkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1526
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0", ngImport: i0, type: VcdSdkModule, imports: [HttpClientModule,
|
|
1530
1527
|
CommonModule] }); }
|
|
1531
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1528
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdSdkModule, imports: [HttpClientModule,
|
|
1532
1529
|
CommonModule] }); }
|
|
1533
1530
|
}
|
|
1534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: VcdSdkModule, decorators: [{
|
|
1535
1532
|
type: NgModule,
|
|
1536
1533
|
args: [{
|
|
1537
1534
|
imports: [
|
|
@@ -1551,5 +1548,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImpor
|
|
|
1551
1548
|
* Generated bundle index. Do not edit.
|
|
1552
1549
|
*/
|
|
1553
1550
|
|
|
1554
|
-
export { API_ROOT_URL, ApiResult, ApiResultService, AuthTokenHolderService, ClientError, ClientErrorType, EXTENSION_ASSET_URL, EXTENSION_ROUTE, EntityActionExtensionComponent, ExtensionNavRegistrationAction, FLEX_APP_URL, Filter, HATEOAS_HEADER, LinkRelType, LoggingInterceptor, MAX_CHUNK_RETRY_COUNT, MAX_CHUNK_SIZE,
|
|
1551
|
+
export { API_ROOT_URL, ApiResult, ApiResultService, AuthTokenHolderService, ClientError, ClientErrorType, EXTENSION_ASSET_URL, EXTENSION_ROUTE, EntityActionExtensionComponent, ExtensionNavRegistrationAction, FLEX_APP_URL, Filter, HATEOAS_HEADER, LinkRelType, LoggingInterceptor, MAX_CHUNK_RETRY_COUNT, MAX_CHUNK_SIZE, Query, RequestHeadersInterceptor, ResponseNormalizationInterceptor, SDK_MODE, SESSION_ORGANIZATION, SESSION_ORG_ID, SESSION_SCOPE, TRANSFER_LINK_REL, TransferError, VCD_HTTP_INTERCEPTORS, VcdApiClient, VcdHttpClient, VcdSdkConfig, VcdSdkModule, VcdTransferClient, WizardExtensionComponent, WizardExtensionWithContextComponent, WizardExtensionWithValidationComponent, _EntityActionExtensionComponent, _WizardExtensionComponent, _WizardExtensionWithContextComponent, _WizardExtensionWithValidationComponent, parseHeaderHateoasLinks };
|
|
1555
1552
|
//# sourceMappingURL=vcd-sdk.mjs.map
|