@veloceapps/api 2.0.25 → 3.0.1
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/bundles/veloce-api.umd.js +18 -41
- package/bundles/veloce-api.umd.js.map +1 -1
- package/esm2015/lib/services/quote-api.service.js +5 -13
- package/esm2015/lib/services/salesforce-api.service.js +13 -24
- package/esm2015/lib/types/charge-item-dto.types.js +2 -4
- package/esm2015/lib/types/line-item-dto.types.js +2 -4
- package/fesm2015/veloce-api.js +18 -41
- package/fesm2015/veloce-api.js.map +1 -1
- package/lib/services/quote-api.service.d.ts +3 -3
- package/lib/services/salesforce-api.service.d.ts +7 -7
- package/lib/types/charge-item-dto.types.d.ts +2 -3
- package/lib/types/line-item-dto.types.d.ts +2 -3
- package/package.json +3 -2
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BaseHttpService, QuoteDraft } from '@veloce/core';
|
1
|
+
import { BaseHttpService, HttpRequestConfigurableOptions, QuoteDraft } from '@veloce/core';
|
2
2
|
import { Dictionary } from 'lodash';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import * as i0 from "@angular/core";
|
@@ -13,8 +13,8 @@ export declare class QuoteApiService {
|
|
13
13
|
* Use `getQuoteDraft` instead
|
14
14
|
*/
|
15
15
|
getQuote: (objectId: string, params?: Dictionary<string> | undefined, errorHandler?: ((error: any) => void) | undefined) => Observable<QuoteDraft>;
|
16
|
-
upsertQuote(request: QuoteDraft): Observable<QuoteDraft>;
|
17
|
-
submitQuote(request: QuoteDraft): Observable<QuoteDraft>;
|
16
|
+
upsertQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<QuoteDraft>;
|
17
|
+
submitQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<QuoteDraft>;
|
18
18
|
attachDocument(id: string, documentName: string, data: any): Observable<void>;
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<QuoteApiService, never>;
|
20
20
|
static ɵprov: i0.ɵɵInjectableDeclaration<QuoteApiService>;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { HttpParams } from '@angular/common/http';
|
2
|
-
import { BaseHttpService, SalesforceField, SalesforceObject, SearchRequest } from '@veloce/core';
|
2
|
+
import { BaseHttpService, HttpRequestConfigurableOptions, SalesforceField, SalesforceObject, SearchRequest } from '@veloce/core';
|
3
3
|
import { Observable } from 'rxjs';
|
4
4
|
import * as i0 from "@angular/core";
|
5
5
|
export declare class SalesforceApiService {
|
6
6
|
private httpService;
|
7
7
|
private readonly SERVICE_URL;
|
8
8
|
constructor(httpService: BaseHttpService);
|
9
|
-
query<T>(searchRequest: SearchRequest, objectName: string): Observable<T[]>;
|
10
|
-
queryObjects(search?: string): Observable<SalesforceObject[]>;
|
11
|
-
describe(objectName: string, fieldName?: string): Observable<SalesforceField[]>;
|
12
|
-
describe2<T>(objectName: string, fields: string[]): Observable<T>;
|
13
|
-
apexGetRequest<T>(path: string, params: HttpParams): Observable<T>;
|
14
|
-
apexPostRequest<T, S>(path: string, body: S): Observable<T>;
|
9
|
+
query<T>(searchRequest: SearchRequest, objectName: string, options?: HttpRequestConfigurableOptions): Observable<T[]>;
|
10
|
+
queryObjects(search?: string, options?: HttpRequestConfigurableOptions): Observable<SalesforceObject[]>;
|
11
|
+
describe(objectName: string, fieldName?: string, options?: HttpRequestConfigurableOptions): Observable<SalesforceField[]>;
|
12
|
+
describe2<T>(objectName: string, fields: string[], options?: HttpRequestConfigurableOptions): Observable<T>;
|
13
|
+
apexGetRequest<T>(path: string, params: HttpParams, options?: HttpRequestConfigurableOptions): Observable<T>;
|
14
|
+
apexPostRequest<T, S>(path: string, body: S, options?: HttpRequestConfigurableOptions): Observable<T>;
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SalesforceApiService, never>;
|
16
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<SalesforceApiService>;
|
17
17
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ChargeItem
|
1
|
+
import { ChargeItem } from '@veloce/core';
|
2
2
|
import { Dictionary } from 'lodash';
|
3
3
|
import { PriceAdjustmentDTO } from './price-adjustment-dto.types';
|
4
4
|
export declare class ChargeItemDTO {
|
@@ -34,7 +34,6 @@ export declare class ChargeItemDTO {
|
|
34
34
|
enableListPriceAdjustment?: boolean | undefined;
|
35
35
|
listPriceAdjustment?: PriceAdjustmentDTO | undefined;
|
36
36
|
priceAdjustment?: PriceAdjustmentDTO | undefined;
|
37
|
-
requiresApprovals?: RequiresApproval[] | undefined;
|
38
37
|
static fromDTO(dto: ChargeItemDTO): ChargeItem;
|
39
|
-
constructor(id: string, price: number, unitPrice: number, baseListPrice: number, baseListUnitPrice: number, listPrice: number, listUnitPrice: number, netPrice: number, netUnitPrice: number, chargeId: string, chargeType: string, chargeMethod: string, priceItemId: string, startDate: string, priceWaterfalls: PriceAdjustmentDTO[], quantity: number, properties: Dictionary<string>, chargeTypeDisplayValue?: string | undefined, arr?: number | undefined, frequencyUnit?: string | undefined, frequencyDuration?: number | undefined, endDate?: string | undefined, sellingTerm?: number | undefined, currency?: string | undefined, unitCost?: number | undefined, cost?: number | undefined, minUnitPrice?: number | undefined, minPrice?: number | undefined, enablePriceAdjustment?: boolean | undefined, enableListPriceAdjustment?: boolean | undefined, listPriceAdjustment?: PriceAdjustmentDTO | undefined, priceAdjustment?: PriceAdjustmentDTO | undefined
|
38
|
+
constructor(id: string, price: number, unitPrice: number, baseListPrice: number, baseListUnitPrice: number, listPrice: number, listUnitPrice: number, netPrice: number, netUnitPrice: number, chargeId: string, chargeType: string, chargeMethod: string, priceItemId: string, startDate: string, priceWaterfalls: PriceAdjustmentDTO[], quantity: number, properties: Dictionary<string>, chargeTypeDisplayValue?: string | undefined, arr?: number | undefined, frequencyUnit?: string | undefined, frequencyDuration?: number | undefined, endDate?: string | undefined, sellingTerm?: number | undefined, currency?: string | undefined, unitCost?: number | undefined, cost?: number | undefined, minUnitPrice?: number | undefined, minPrice?: number | undefined, enablePriceAdjustment?: boolean | undefined, enableListPriceAdjustment?: boolean | undefined, listPriceAdjustment?: PriceAdjustmentDTO | undefined, priceAdjustment?: PriceAdjustmentDTO | undefined);
|
40
39
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { LineItem
|
1
|
+
import { LineItem } from '@veloce/core';
|
2
2
|
import { Dictionary } from 'lodash';
|
3
3
|
import { AttributeDTO } from './attribute-dto.types';
|
4
4
|
import { ChargeGroupItemDTO } from './charge-group-item-dto.types';
|
@@ -45,7 +45,6 @@ export declare class LineItemDTO {
|
|
45
45
|
rampInstanceId?: string | undefined;
|
46
46
|
enableRamp?: boolean | undefined;
|
47
47
|
configurable?: boolean | undefined;
|
48
|
-
requiresApprovals?: RequiresApproval[] | undefined;
|
49
48
|
static fromDTO(dto: LineItemDTO): LineItem;
|
50
|
-
constructor(id: string, activated: boolean, attributes: AttributeDTO[], attributeDomains: Dictionary<any[]>, cfgStatus: string, chargeGroupItems: ChargeGroupItemDTO[], chargeItems: ChargeItemDTO[], domainComputations: Dictionary<boolean>, lineItems: LineItem[], messages: string[], name: string, optionalCharges: any[], pending: boolean, portDomains: Dictionary<PortDomainDTO>, properties: Dictionary<string>, qty: number, totalPrices: Dictionary<PriceDTO>, type: string, productId?: string | undefined, port?: string | undefined, parentId?: string | undefined, assetId?: string | undefined, openOrderLineItemId?: string | undefined, productName?: string | undefined, rootId?: string | undefined, actionCode?: string | undefined, serviceStartDate?: Date | undefined, effectiveDate?: Date | undefined, startDate?: Date | undefined, endDate?: Date | undefined, planId?: string | undefined, sellingFrequencyUnit?: string | undefined, sellingFrequencyDuration?: string | undefined, offeringId?: string | undefined, offeringItemId?: string | undefined, offeringInstanceId?: string | undefined, rampInstanceId?: string | undefined, enableRamp?: boolean | undefined, configurable?: boolean | undefined
|
49
|
+
constructor(id: string, activated: boolean, attributes: AttributeDTO[], attributeDomains: Dictionary<any[]>, cfgStatus: string, chargeGroupItems: ChargeGroupItemDTO[], chargeItems: ChargeItemDTO[], domainComputations: Dictionary<boolean>, lineItems: LineItem[], messages: string[], name: string, optionalCharges: any[], pending: boolean, portDomains: Dictionary<PortDomainDTO>, properties: Dictionary<string>, qty: number, totalPrices: Dictionary<PriceDTO>, type: string, productId?: string | undefined, port?: string | undefined, parentId?: string | undefined, assetId?: string | undefined, openOrderLineItemId?: string | undefined, productName?: string | undefined, rootId?: string | undefined, actionCode?: string | undefined, serviceStartDate?: Date | undefined, effectiveDate?: Date | undefined, startDate?: Date | undefined, endDate?: Date | undefined, planId?: string | undefined, sellingFrequencyUnit?: string | undefined, sellingFrequencyDuration?: string | undefined, offeringId?: string | undefined, offeringItemId?: string | undefined, offeringInstanceId?: string | undefined, rampInstanceId?: string | undefined, enableRamp?: boolean | undefined, configurable?: boolean | undefined);
|
51
50
|
}
|
package/package.json
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"name": "@veloceapps/api",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.1",
|
4
4
|
"peerDependencies": {
|
5
5
|
"@angular/common": "^12.2.0",
|
6
6
|
"@angular/core": "^12.2.0",
|
7
|
-
"@veloce/core": "
|
7
|
+
"@veloce/core": "3.0.0",
|
8
8
|
"lodash": "^4.17.21",
|
9
9
|
"moment": "^2.29.1",
|
10
10
|
"rxjs": "^7.3.0",
|
@@ -17,6 +17,7 @@
|
|
17
17
|
"@aws-sdk/client-xray": "^3.40.0",
|
18
18
|
"monaco-editor": "^0.30.1",
|
19
19
|
"@angular/forms": "^12.2.0",
|
20
|
+
"@angular/router": "^12.2.0",
|
20
21
|
"jshashes": "^1.0.8"
|
21
22
|
},
|
22
23
|
"dependencies": {
|