@veloceapps/api 11.0.0-20 → 11.0.0-22
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/src/lib/services/catalog-api.service.mjs +1 -1
- package/esm2020/src/lib/types/price.types.mjs +1 -1
- package/esm2020/src/lib/types/ramp-request.types.mjs +1 -1
- package/esm2020/src/lib/types/stateful-configuration.types.mjs +1 -1
- package/esm2020/v2/services/context-definition-api.service.mjs +11 -8
- package/esm2020/v2/services/ui-definitions-api.service.mjs +16 -74
- package/esm2020/v2/utils/ui-definition.utils.mjs +8 -1
- package/fesm2015/veloceapps-api-v2.mjs +28 -74
- package/fesm2015/veloceapps-api-v2.mjs.map +1 -1
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api-v2.mjs +31 -79
- package/fesm2020/veloceapps-api-v2.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/services/catalog-api.service.d.ts +5 -5
- package/src/lib/types/price.types.d.ts +2 -2
- package/src/lib/types/ramp-request.types.d.ts +3 -3
- package/src/lib/types/stateful-configuration.types.d.ts +1 -2
- package/v2/services/ui-definitions-api.service.d.ts +5 -11
- package/v2/utils/ui-definition.utils.d.ts +3 -2
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BaseHttpService, Catalog, Category,
|
1
|
+
import { BaseHttpService, Catalog, Category, Expression, Product, SearchRequest } from '@veloceapps/core';
|
2
2
|
import { Observable } from 'rxjs';
|
3
3
|
import { QuerySearchParams } from '../types';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -10,10 +10,10 @@ export declare class CatalogApiService {
|
|
10
10
|
searchCatalogs$(searchParams?: QuerySearchParams, expression?: Expression): Observable<Catalog[]>;
|
11
11
|
getCatalog$(id: string): Observable<Catalog>;
|
12
12
|
fetchCategories$(catalogId: string): Observable<Category[]>;
|
13
|
-
fetchCatalogProducts$(catalogId: string, searchParams?: QuerySearchParams, context?:
|
14
|
-
fetchCategoryProducts$(catalogId: string, categoryId: string, searchParams?: QuerySearchParams, context?:
|
15
|
-
searchCategoryProducts$(catalogId: string, categoryId: string, searchParams?: QuerySearchParams, searchRequest?: SearchRequest, context?:
|
16
|
-
fetchEligibleProducts$(searchParams?: QuerySearchParams, context?:
|
13
|
+
fetchCatalogProducts$(catalogId: string, searchParams?: QuerySearchParams, context?: Record<string, string>): Observable<Product[]>;
|
14
|
+
fetchCategoryProducts$(catalogId: string, categoryId: string, searchParams?: QuerySearchParams, context?: Record<string, string>): Observable<Product[]>;
|
15
|
+
searchCategoryProducts$(catalogId: string, categoryId: string, searchParams?: QuerySearchParams, searchRequest?: SearchRequest, context?: Record<string, string>): Observable<Product[]>;
|
16
|
+
fetchEligibleProducts$(searchParams?: QuerySearchParams, context?: Record<string, string>): Observable<Product[]>;
|
17
17
|
fetchProducts$(searchParams?: QuerySearchParams): Observable<Product[]>;
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogApiService, never>;
|
19
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogApiService>;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { LineItem } from '@veloceapps/core';
|
2
2
|
export interface NextRampRequest {
|
3
|
-
context:
|
3
|
+
context: Record<string, string>;
|
4
4
|
sourceItems: string[];
|
5
5
|
currentItems: LineItem[];
|
6
6
|
term: number;
|
7
7
|
}
|
8
8
|
export interface RenewRampRequest {
|
9
|
-
context:
|
9
|
+
context: Record<string, string>;
|
10
10
|
currentItems: LineItem[];
|
11
11
|
renewItem: LineItem;
|
12
12
|
term: number;
|
@@ -1,10 +1,9 @@
|
|
1
|
-
import { ConfigurationRequest } from '@veloceapps/core';
|
2
1
|
interface ConfigurationProcessorOverride {
|
3
2
|
name: string;
|
4
3
|
script: string;
|
5
4
|
}
|
6
5
|
export interface StatefulConfigurationRequest {
|
7
|
-
item:
|
6
|
+
item: unknown;
|
8
7
|
actions?: ConfigurationProcessorOverride[];
|
9
8
|
selectors?: ConfigurationProcessorOverride[];
|
10
9
|
}
|
@@ -5,20 +5,14 @@ export declare class UIDefinitionsApiService {
|
|
5
5
|
private baseHttpService;
|
6
6
|
private readonly serviceUrl;
|
7
7
|
constructor(baseHttpService: BaseHttpService);
|
8
|
-
|
9
|
-
create$(modelId: string, uiDefinitionContainer: NewUIDefinitionContainer): Observable<UIDefinitionContainer>;
|
10
|
-
get$(modelId: string, uiDefinitionId: string): Observable<UIDefinitionContainer | null>;
|
11
|
-
update$(uiDefinitionContainer: UIDefinitionContainer): Observable<UIDefinitionContainer>;
|
12
|
-
delete$(uiDefinitionContainer: UIDefinitionContainer): Observable<void>;
|
13
|
-
private getServiceUrl;
|
14
|
-
fetchUIDefinitions$(params?: {
|
8
|
+
fetchAll$(params?: {
|
15
9
|
productId?: string;
|
16
10
|
defaultUIDefinitionId?: string;
|
17
11
|
}): Observable<UIDefinitionContainer[]>;
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
fetch$(id: string): Observable<UIDefinitionContainer>;
|
13
|
+
create$(uiDefinitionContainer: NewUIDefinitionContainer): Observable<UIDefinitionContainer>;
|
14
|
+
update$(uiDefinitionContainer: UIDefinitionContainer): Observable<UIDefinitionContainer>;
|
15
|
+
delete$(id: string): Observable<void>;
|
22
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<UIDefinitionsApiService, never>;
|
23
17
|
static ɵprov: i0.ɵɵInjectableDeclaration<UIDefinitionsApiService>;
|
24
18
|
}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { UIDefinitionContainer } from '@veloceapps/core';
|
2
|
-
import { UIDefinitionContainerDTO } from '../types/dto/ui-definition-dto.types';
|
1
|
+
import { NewUIDefinitionContainer, UIDefinitionContainer } from '@veloceapps/core';
|
2
|
+
import { NewUIDefinitionContainerDTO, UIDefinitionContainerDTO } from '../types/dto/ui-definition-dto.types';
|
3
3
|
export declare function uiDefinitionFromDTO(container: UIDefinitionContainerDTO): UIDefinitionContainer;
|
4
4
|
export declare function uiDefinitionToDTO(container: UIDefinitionContainer): UIDefinitionContainerDTO;
|
5
|
+
export declare function newUiDefinitionToDTO(container: NewUIDefinitionContainer): NewUIDefinitionContainerDTO;
|