@veloceapps/api 10.0.0-0 → 10.0.0-10

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.
@@ -3,7 +3,7 @@ import { HttpParams, HttpHeaders, HttpErrorResponse, HttpClientModule } from '@a
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
5
5
  import * as i1 from '@veloceapps/core';
6
- import { uiDefinitionFromDTO, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, toLatestFlow, isDefined, Operator, isApexError, isCanvasError, ModelTranslatorUtils, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
6
+ import { uiDefinitionFromDTO, DomainComputation, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, toLatestFlow, isDefined, Operator, isApexError, isCanvasError, ModelTranslatorUtils, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
7
7
  import { noop, throwError, of, zip, forkJoin, map as map$1, from, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
8
8
  import { map, catchError, tap, switchMap, defaultIfEmpty } from 'rxjs/operators';
9
9
  import * as i1$2 from 'primeng/api';
@@ -456,7 +456,7 @@ class ConfigurationApiService {
456
456
  // loop through ports to look for 'None' type domain computations
457
457
  for (const port of component?.ports ?? []) {
458
458
  const portDomain = portDomains[port.name];
459
- if (portDomain?.properties?.['domainComputation'] === ('None')) {
459
+ if (portDomain?.properties?.['domainComputation'] === DomainComputation.NONE) {
460
460
  portDomain.domainTypes = port.domainTypes;
461
461
  }
462
462
  }
@@ -3413,6 +3413,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3413
3413
  type: Injectable
3414
3414
  }], ctorParameters: function () { return [{ type: i1$2.MessageService }]; } });
3415
3415
 
3416
+ class RlmApiService {
3417
+ constructor(baseHttpService) {
3418
+ this.baseHttpService = baseHttpService;
3419
+ this.serviceUrl = '/rlm';
3420
+ }
3421
+ fetchContextDefinitions$() {
3422
+ return of([
3423
+ { label: 'First', value: 'First' },
3424
+ { label: 'Second', value: 'Second' },
3425
+ ]);
3426
+ // return this.baseHttpService.api<any[]>({ url: `${this.serviceUrl}/definitions` });
3427
+ }
3428
+ fetchContextMappings() {
3429
+ return of([
3430
+ { label: 'First', value: 'First' },
3431
+ { label: 'Second', value: 'Second' },
3432
+ ]);
3433
+ }
3434
+ }
3435
+ RlmApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
3436
+ RlmApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService });
3437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RlmApiService, decorators: [{
3438
+ type: Injectable
3439
+ }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
3440
+
3416
3441
  class ApiModule {
3417
3442
  }
3418
3443
  ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -3460,6 +3485,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
3460
3485
  ConfigurationProcessorsApiService,
3461
3486
  FlowStateApiService,
3462
3487
  SandboxManagerApiService,
3488
+ RlmApiService,
3463
3489
  ], imports: [HttpClientModule] });
3464
3490
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ApiModule, decorators: [{
3465
3491
  type: NgModule,
@@ -3508,6 +3534,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3508
3534
  ConfigurationProcessorsApiService,
3509
3535
  FlowStateApiService,
3510
3536
  SandboxManagerApiService,
3537
+ RlmApiService,
3511
3538
  ],
3512
3539
  }]
3513
3540
  }] });
@@ -3516,5 +3543,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3516
3543
  * Generated bundle index. Do not edit.
3517
3544
  */
3518
3545
 
3519
- export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationProcessorsApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowStateApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, SandboxManagerApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
3546
+ export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationProcessorsApiService, ConfigurationSettingsApiService, ContextApiService, ContractedPriceApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowStateApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PortalsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, PromotionsApiService, QuoteApiService, RampApiService, RebateProgramApiService, RebateTypeApiService, RlmApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, SandboxManagerApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceAuthService, VeloceObjectsApiService };
3520
3547
  //# sourceMappingURL=veloceapps-api.mjs.map