@veloceapps/api 7.0.2-6 → 7.0.2-60
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/index.mjs +3 -1
- package/esm2020/lib/api.module.mjs +7 -1
- package/esm2020/lib/services/catalog-admin-api.service.mjs +28 -1
- package/esm2020/lib/services/catalog-api.service.mjs +3 -3
- package/esm2020/lib/services/configuration-api.service.mjs +12 -7
- package/esm2020/lib/services/procedures-api.service.mjs +8 -1
- package/esm2020/lib/services/product-model-api.service.mjs +6 -1
- package/esm2020/lib/services/salesforce-api.service.mjs +12 -1
- package/esm2020/lib/services/ui-definitions-api.service.mjs +76 -0
- package/esm2020/lib/services/veloce-objects-api.service.mjs +80 -0
- package/fesm2015/veloceapps-api.mjs +208 -10
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +214 -10
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/services/catalog-admin-api.service.d.ts +5 -1
- package/lib/services/catalog-api.service.d.ts +2 -2
- package/lib/services/procedures-api.service.d.ts +1 -0
- package/lib/services/product-model-api.service.d.ts +5 -0
- package/lib/services/salesforce-api.service.d.ts +5 -0
- package/lib/services/ui-definitions-api.service.d.ts +15 -0
- package/lib/services/veloce-objects-api.service.d.ts +22 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -26,5 +26,7 @@ export { RulesApiService } from './lib/services/rules-api.service';
|
|
26
26
|
export { SalesforceApiService } from './lib/services/salesforce-api.service';
|
27
27
|
export { ScriptsApiService } from './lib/services/scripts-api.service';
|
28
28
|
export { ShoppingCartSettingsApiService } from './lib/services/shopping-cart-settings-api.service';
|
29
|
+
export { UIDefinitionsApiService } from './lib/services/ui-definitions-api.service';
|
29
30
|
export { UITemplatesApiService } from './lib/services/ui-templates-api.service';
|
31
|
+
export { VeloceObjectsApiService } from './lib/services/veloce-objects-api.service';
|
30
32
|
export * from './lib/types';
|
@@ -18,7 +18,7 @@ export declare class CatalogAdminApiService {
|
|
18
18
|
removeCatalog$: (id: string) => Observable<void>;
|
19
19
|
restoreCatalog$: (id: string) => Observable<void>;
|
20
20
|
createNewCategory$: (categoryData: NewCategory) => Observable<Category>;
|
21
|
-
updateCategory$: (category: Category) => Observable<
|
21
|
+
updateCategory$: (category: Category) => Observable<Category>;
|
22
22
|
duplicateCategory$: (catalogId: string, cloneRequest: CloneRequest) => Observable<string>;
|
23
23
|
removeCategory$: (id: string, catalogId: string) => Observable<void>;
|
24
24
|
restoreCategory$: (id: string, catalogId: string) => Observable<void>;
|
@@ -30,6 +30,10 @@ export declare class CatalogAdminApiService {
|
|
30
30
|
addProduct$: (product: Product, catalogId: string, categoryId: string) => Observable<any>;
|
31
31
|
updateProduct$: (product: Partial<Product>, catalogId: string, categoryId: string) => Observable<any>;
|
32
32
|
removeProduct$: ({ catalogId, categoryId, data, }: CategoryRequestPayloadWithData<Product>) => Observable<string>;
|
33
|
+
attachImage$(catalogId: string, categoryId: string, file: File): Observable<void>;
|
34
|
+
removeImage$(catalogId: string, categoryId: string): Observable<void>;
|
35
|
+
fetchImage$(catalogId: string, categoryId: string): Observable<File>;
|
36
|
+
getImageUrl(catalogId: string, categoryId: string): string;
|
33
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogAdminApiService, never>;
|
34
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogAdminApiService>;
|
35
39
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BaseHttpService, Catalog, Category, ConfigurationContext, Expression, Product,
|
1
|
+
import { BaseHttpService, Catalog, Category, ConfigurationContext, 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";
|
@@ -12,7 +12,7 @@ export declare class CatalogApiService {
|
|
12
12
|
fetchCategories$(catalogId: string): Observable<Category[]>;
|
13
13
|
fetchCatalogProducts$(catalogId: string, searchParams?: QuerySearchParams, context?: ConfigurationContext): Observable<Product[]>;
|
14
14
|
fetchCategoryProducts$(catalogId: string, categoryId: string, searchParams?: QuerySearchParams, context?: ConfigurationContext): Observable<Product[]>;
|
15
|
-
searchCategoryProducts$(catalogId: string, categoryId: string, searchParams?: QuerySearchParams,
|
15
|
+
searchCategoryProducts$(catalogId: string, categoryId: string, searchParams?: QuerySearchParams, searchRequest?: SearchRequest, context?: ConfigurationContext): Observable<Product[]>;
|
16
16
|
fetchEligibleProducts$(searchParams?: QuerySearchParams, context?: ConfigurationContext): Observable<Product[]>;
|
17
17
|
fetchProducts$(searchParams?: QuerySearchParams): Observable<Product[]>;
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogApiService, never>;
|
@@ -16,6 +16,7 @@ export declare class ProceduresApiService {
|
|
16
16
|
restoreProcedure$: (id: string) => Observable<string>;
|
17
17
|
fetchProcedure$(id: string): Observable<Procedure>;
|
18
18
|
execute$(body: ProcedureExecuteRequest): Observable<string[]>;
|
19
|
+
catalogExecute$(body: ProcedureExecuteRequest): Observable<string[]>;
|
19
20
|
/**
|
20
21
|
* Run active procedure against QuoteDraft
|
21
22
|
* @param body
|
@@ -13,6 +13,11 @@ export declare class ProductModelApiService {
|
|
13
13
|
getModel(id: string, version?: string): Observable<ProductModel>;
|
14
14
|
getModels(skipCount: number, searchText: string): Observable<ProductModel[]>;
|
15
15
|
getLinkedModels(id: string, version?: string): Observable<ProductModel[]>;
|
16
|
+
/**
|
17
|
+
*
|
18
|
+
* @deprecated
|
19
|
+
* Will be removed in next major release
|
20
|
+
*/
|
16
21
|
load(id: string, version?: string): Observable<ProductModelsContainer>;
|
17
22
|
getPML(modelId: string, version?: string): Observable<any>;
|
18
23
|
savePML(modelId: string, pml: string, comment: string): Observable<any>;
|
@@ -13,7 +13,12 @@ export declare class SalesforceApiService {
|
|
13
13
|
}, options?: HttpRequestConfigurableOptions): Observable<{
|
14
14
|
searchRecords: T[];
|
15
15
|
}>;
|
16
|
+
/**
|
17
|
+
* @deprecated
|
18
|
+
*/
|
16
19
|
describe(objectName: string, fieldName?: string, options?: HttpRequestConfigurableOptions): Observable<SalesforceField[]>;
|
20
|
+
describeObject(objectName: string, options?: HttpRequestConfigurableOptions): Observable<SalesforceField[]>;
|
21
|
+
describeField(objectName: string, fieldName: string, options?: HttpRequestConfigurableOptions): Observable<SalesforceField>;
|
17
22
|
describe2<T>(objectName: string, fields: string[], options?: HttpRequestConfigurableOptions): Observable<T>;
|
18
23
|
apexGetRequest<T>(path: string, params: HttpParams, options?: HttpRequestConfigurableOptions): Observable<T>;
|
19
24
|
apexPostRequest<T, S>(path: string, body: S, options?: HttpRequestConfigurableOptions): Observable<T>;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { BaseHttpService, NewUIDefinitionContainer, UIDefinitionContainer } from '@veloceapps/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class UIDefinitionsApiService {
|
5
|
+
private baseHttpService;
|
6
|
+
constructor(baseHttpService: BaseHttpService);
|
7
|
+
fetch$(modelId: string, version?: number): Observable<UIDefinitionContainer[]>;
|
8
|
+
create$(modelId: string, uiDefinitionContainer: NewUIDefinitionContainer): Observable<UIDefinitionContainer>;
|
9
|
+
get$(modelId: string, uiDefinitionId: string): Observable<UIDefinitionContainer | null>;
|
10
|
+
update$(uiDefinitionContainer: UIDefinitionContainer): Observable<UIDefinitionContainer>;
|
11
|
+
delete$(uiDefinitionContainer: UIDefinitionContainer): Observable<void>;
|
12
|
+
private getServiceUrl;
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UIDefinitionsApiService, never>;
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UIDefinitionsApiService>;
|
15
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { BaseHttpService, Expression, NewVeloceObject, NewVeloceObjectCategory, VeloceObject, VeloceObjectCategory } from '@veloceapps/core';
|
2
|
+
import { Observable } from 'rxjs';
|
3
|
+
import { QuerySearchParams } from '../types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class VeloceObjectsApiService {
|
6
|
+
private baseHttpService;
|
7
|
+
private readonly serviceUrl;
|
8
|
+
constructor(baseHttpService: BaseHttpService);
|
9
|
+
fetchCategories$(): Observable<VeloceObjectCategory[]>;
|
10
|
+
createCategory$(category: NewVeloceObjectCategory): Observable<VeloceObjectCategory>;
|
11
|
+
updateCategory$: (category: VeloceObjectCategory) => Observable<VeloceObjectCategory>;
|
12
|
+
deleteCategory$: (id: string) => Observable<void>;
|
13
|
+
fetchObjects$(): Observable<VeloceObject[]>;
|
14
|
+
fetchObject$(id: string): Observable<VeloceObject>;
|
15
|
+
searchObjects$: (searchParams?: QuerySearchParams, expression?: Expression) => Observable<VeloceObject[]>;
|
16
|
+
createObject$(object: NewVeloceObject): Observable<VeloceObject>;
|
17
|
+
updateObject$(object: VeloceObject): Observable<VeloceObject>;
|
18
|
+
deleteObject$: (id: string) => Observable<void>;
|
19
|
+
restoreObject$: (id: string) => Observable<void>;
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VeloceObjectsApiService, never>;
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<VeloceObjectsApiService>;
|
22
|
+
}
|