@veloceapps/api 7.0.2-50 → 7.0.2-52

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.
@@ -4,7 +4,7 @@ import * as i0 from '@angular/core';
4
4
  import { Injectable, NgModule } from '@angular/core';
5
5
  import * as i1 from '@veloceapps/core';
6
6
  import { uiDefinitionFromDTO, isLegacyUIDefinition, ModelTranslatorUtils, ConfigurationContextMode, isLegacyDocumentTemplate, DocxTemplater, QuoteDraft, StringUtils, Expression, Operator, ProductModelsContainer, ModelUtils, EntityUtil, RuleGroupTypes, parseJsonSafely, uiDefinitionToDTO, BaseHttpService, XrayService } from '@veloceapps/core';
7
- import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1 } from 'rxjs';
7
+ import { noop, throwError, of, zip, forkJoin, map as map$1, catchError as catchError$1, switchMap as switchMap$1, delay } from 'rxjs';
8
8
  import { map, catchError, tap, switchMap, defaultIfEmpty } from 'rxjs/operators';
9
9
  import * as i2 from 'primeng/api';
10
10
  import { CurrencyPipe } from '@angular/common';
@@ -2491,6 +2491,97 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
2491
2491
  type: Injectable
2492
2492
  }], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
2493
2493
 
2494
+ const categories = [
2495
+ { id: '1', name: 'Category 1' },
2496
+ { id: '2', name: 'Category 2', parentId: '1' },
2497
+ { id: '3', name: 'Category 3', parentId: '1' },
2498
+ { id: '4', name: 'Category 4' },
2499
+ { id: '5', name: 'Category 5', parentId: '4' },
2500
+ { id: '6', name: 'Category 6', parentId: '2' },
2501
+ ];
2502
+ const objects = [
2503
+ {
2504
+ id: '1',
2505
+ name: 'Loyality_Data',
2506
+ label: 'Loyality Data',
2507
+ categoryId: '1',
2508
+ columns: [
2509
+ { name: 'Account', label: 'Account', type: 'OBJECT', objectName: 'Account' },
2510
+ { name: 'Boolean', label: 'Boolean', type: 'BOOLEAN' },
2511
+ { name: 'Date', label: 'Date', type: 'DATE' },
2512
+ { name: 'Integer', label: 'Integer', type: 'INTEGER' },
2513
+ { name: 'Discount', label: 'Discount, %', type: 'DECIMAL' },
2514
+ { name: 'Level', label: 'Level', type: 'STRING' },
2515
+ ],
2516
+ data: [
2517
+ {
2518
+ id: '1',
2519
+ Account: '001DH00000uEMFaYAO',
2520
+ Boolean: true,
2521
+ Integer: 1,
2522
+ Date: '2023-06-30',
2523
+ Discount: 33.5,
2524
+ Level: 'Premium',
2525
+ },
2526
+ {
2527
+ id: '2',
2528
+ Account: '001DH00000uOdfjYAC',
2529
+ Boolean: false,
2530
+ Integer: 2,
2531
+ Date: '2023-07-01',
2532
+ Discount: 20.1,
2533
+ Level: 'Advanced',
2534
+ },
2535
+ ],
2536
+ },
2537
+ {
2538
+ id: '2',
2539
+ name: 'New_object',
2540
+ label: 'New object',
2541
+ columns: [
2542
+ { name: 'Account', label: 'Account', type: 'OBJECT', objectName: 'Account' },
2543
+ { name: 'Boolean', label: 'Boolean', type: 'BOOLEAN' },
2544
+ { name: 'Date', label: 'Date', type: 'DATE' },
2545
+ { name: 'Integer', label: 'Integer', type: 'INTEGER' },
2546
+ { name: 'Discount', label: 'Discount, %', type: 'DECIMAL' },
2547
+ { name: 'Level', label: 'Level', type: 'STRING' },
2548
+ ],
2549
+ data: [
2550
+ {
2551
+ id: '1',
2552
+ Account: '001DH00000uEMFaYAO',
2553
+ Boolean: true,
2554
+ Integer: 1,
2555
+ Date: '2023-06-30',
2556
+ Discount: 33.5,
2557
+ Level: 'Premium',
2558
+ },
2559
+ {
2560
+ id: '2',
2561
+ Account: '001DH00000uEMRuYAO',
2562
+ Boolean: false,
2563
+ Integer: 2,
2564
+ Date: '2023-07-01',
2565
+ Discount: 20.1,
2566
+ Level: 'Advanced',
2567
+ },
2568
+ ],
2569
+ },
2570
+ ];
2571
+ class VeloceObjectsApiService {
2572
+ getCategories() {
2573
+ return of(categories).pipe(delay(1000));
2574
+ }
2575
+ getObjects() {
2576
+ return of(objects).pipe(delay(1000));
2577
+ }
2578
+ }
2579
+ VeloceObjectsApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2580
+ VeloceObjectsApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService });
2581
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: VeloceObjectsApiService, decorators: [{
2582
+ type: Injectable
2583
+ }] });
2584
+
2494
2585
  class ApiModule {
2495
2586
  }
2496
2587
  ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2527,6 +2618,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
2527
2618
  OrgInfoApiService,
2528
2619
  OffersApiService,
2529
2620
  UIDefinitionsApiService,
2621
+ VeloceObjectsApiService,
2530
2622
  ], imports: [HttpClientModule] });
2531
2623
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, decorators: [{
2532
2624
  type: NgModule,
@@ -2564,6 +2656,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
2564
2656
  OrgInfoApiService,
2565
2657
  OffersApiService,
2566
2658
  UIDefinitionsApiService,
2659
+ VeloceObjectsApiService,
2567
2660
  ],
2568
2661
  }]
2569
2662
  }] });
@@ -2572,5 +2665,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
2572
2665
  * Generated bundle index. Do not edit.
2573
2666
  */
2574
2667
 
2575
- export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, UIDefinitionsApiService, UITemplatesApiService };
2668
+ export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
2576
2669
  //# sourceMappingURL=veloceapps-api.mjs.map