@veloceapps/api 4.0.21-0
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/README.md +3 -0
- package/bundles/veloceapps-api.umd.js +2950 -0
- package/bundles/veloceapps-api.umd.js.map +1 -0
- package/esm2015/index.js +25 -0
- package/esm2015/lib/api.module.js +89 -0
- package/esm2015/lib/services/account-api.service.js +50 -0
- package/esm2015/lib/services/catalog-admin-api.service.js +159 -0
- package/esm2015/lib/services/catalog-api.service.js +90 -0
- package/esm2015/lib/services/configuration-api.service.js +73 -0
- package/esm2015/lib/services/configuration-settings-api.service.js +52 -0
- package/esm2015/lib/services/context-api.service.js +26 -0
- package/esm2015/lib/services/delta-api.service.js +27 -0
- package/esm2015/lib/services/document-attachment-api.service.js +66 -0
- package/esm2015/lib/services/document-templates-api.service.js +284 -0
- package/esm2015/lib/services/flows-api.service.js +24 -0
- package/esm2015/lib/services/picklists-api.service.js +38 -0
- package/esm2015/lib/services/price-api.service.js +63 -0
- package/esm2015/lib/services/procedures-api.service.js +93 -0
- package/esm2015/lib/services/product-api.service.js +153 -0
- package/esm2015/lib/services/product-model-api.service.js +232 -0
- package/esm2015/lib/services/quote-api.service.js +48 -0
- package/esm2015/lib/services/ramp-api.service.js +21 -0
- package/esm2015/lib/services/rule-groups-api.service.js +62 -0
- package/esm2015/lib/services/rules-api.service.js +81 -0
- package/esm2015/lib/services/salesforce-api.service.js +40 -0
- package/esm2015/lib/services/scripts-api.service.js +76 -0
- package/esm2015/lib/services/ui-templates-api.service.js +282 -0
- package/esm2015/lib/types/clone-request.types.js +2 -0
- package/esm2015/lib/types/delta-request.types.js +2 -0
- package/esm2015/lib/types/dto/attribute-dto.types.js +21 -0
- package/esm2015/lib/types/dto/charge-group-item-dto.types.js +49 -0
- package/esm2015/lib/types/dto/charge-item-dto.types.js +78 -0
- package/esm2015/lib/types/dto/configuration-dto.types.js +19 -0
- package/esm2015/lib/types/dto/configuration-settings-dto.types.js +22 -0
- package/esm2015/lib/types/dto/domain-type-dto.types.js +27 -0
- package/esm2015/lib/types/dto/line-item-dto.types.js +103 -0
- package/esm2015/lib/types/dto/port-domain-dto.types.js +22 -0
- package/esm2015/lib/types/dto/price-adjustment-dto.types.js +15 -0
- package/esm2015/lib/types/dto/price-dto.types.js +25 -0
- package/esm2015/lib/types/dto/recommended-price-dto.types.js +25 -0
- package/esm2015/lib/types/dto/ui-template-dto.types.js +2 -0
- package/esm2015/lib/types/index.js +5 -0
- package/esm2015/lib/types/price.types.js +2 -0
- package/esm2015/lib/types/ramp-request.types.js +2 -0
- package/esm2015/lib/types/search-request.types.js +2 -0
- package/esm2015/lib/utils/ui-template.utils.js +13 -0
- package/esm2015/veloceapps-api.js +5 -0
- package/fesm2015/veloceapps-api.js +2420 -0
- package/fesm2015/veloceapps-api.js.map +1 -0
- package/index.d.ts +24 -0
- package/lib/api.module.d.ts +7 -0
- package/lib/services/account-api.service.d.ts +22 -0
- package/lib/services/catalog-admin-api.service.d.ts +34 -0
- package/lib/services/catalog-api.service.d.ts +20 -0
- package/lib/services/configuration-api.service.d.ts +18 -0
- package/lib/services/configuration-settings-api.service.d.ts +17 -0
- package/lib/services/context-api.service.d.ts +11 -0
- package/lib/services/delta-api.service.d.ts +12 -0
- package/lib/services/document-attachment-api.service.d.ts +16 -0
- package/lib/services/document-templates-api.service.d.ts +47 -0
- package/lib/services/flows-api.service.d.ts +13 -0
- package/lib/services/picklists-api.service.d.ts +17 -0
- package/lib/services/price-api.service.d.ts +16 -0
- package/lib/services/procedures-api.service.d.ts +27 -0
- package/lib/services/product-api.service.d.ts +31 -0
- package/lib/services/product-model-api.service.d.ts +30 -0
- package/lib/services/quote-api.service.d.ts +25 -0
- package/lib/services/ramp-api.service.d.ts +13 -0
- package/lib/services/rule-groups-api.service.d.ts +18 -0
- package/lib/services/rules-api.service.d.ts +21 -0
- package/lib/services/salesforce-api.service.d.ts +17 -0
- package/lib/services/scripts-api.service.d.ts +21 -0
- package/lib/services/ui-templates-api.service.d.ts +49 -0
- package/lib/types/clone-request.types.d.ts +5 -0
- package/lib/types/delta-request.types.d.ts +5 -0
- package/lib/types/dto/attribute-dto.types.d.ts +11 -0
- package/lib/types/dto/charge-group-item-dto.types.d.ts +26 -0
- package/lib/types/dto/charge-item-dto.types.d.ts +41 -0
- package/lib/types/dto/configuration-dto.types.d.ts +18 -0
- package/lib/types/dto/configuration-settings-dto.types.d.ts +9 -0
- package/lib/types/dto/domain-type-dto.types.d.ts +15 -0
- package/lib/types/dto/line-item-dto.types.d.ts +55 -0
- package/lib/types/dto/port-domain-dto.types.d.ts +13 -0
- package/lib/types/dto/price-adjustment-dto.types.d.ts +8 -0
- package/lib/types/dto/price-dto.types.d.ts +13 -0
- package/lib/types/dto/recommended-price-dto.types.d.ts +14 -0
- package/lib/types/dto/ui-template-dto.types.d.ts +6 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/price.types.d.ts +5 -0
- package/lib/types/ramp-request.types.d.ts +13 -0
- package/lib/types/search-request.types.d.ts +8 -0
- package/lib/utils/ui-template.utils.d.ts +3 -0
- package/package.json +37 -0
- package/veloceapps-api.d.ts +5 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
import { LineItem, RequiresApproval } from '@veloceapps/core';
|
2
|
+
import { Dictionary } from 'lodash';
|
3
|
+
import { AttributeDTO } from './attribute-dto.types';
|
4
|
+
import { ChargeGroupItemDTO } from './charge-group-item-dto.types';
|
5
|
+
import { ChargeItemDTO } from './charge-item-dto.types';
|
6
|
+
import { PortDomainDTO } from './port-domain-dto.types';
|
7
|
+
import { PriceDTO } from './price-dto.types';
|
8
|
+
export declare class LineItemDTO {
|
9
|
+
id: string;
|
10
|
+
activated: boolean;
|
11
|
+
attributes: AttributeDTO[];
|
12
|
+
attributeDomains: Dictionary<any[]>;
|
13
|
+
cfgStatus: string;
|
14
|
+
chargeGroupItems: ChargeGroupItemDTO[];
|
15
|
+
chargeItems: ChargeItemDTO[];
|
16
|
+
domainComputations: Dictionary<boolean>;
|
17
|
+
lineItems: LineItem[];
|
18
|
+
messages: string[];
|
19
|
+
name: string;
|
20
|
+
optionalCharges: any[];
|
21
|
+
pending: boolean;
|
22
|
+
portDomains: Dictionary<PortDomainDTO>;
|
23
|
+
properties: Dictionary<string>;
|
24
|
+
qty: number;
|
25
|
+
totalPrices: Dictionary<PriceDTO>;
|
26
|
+
type: string;
|
27
|
+
integrationId?: string | undefined;
|
28
|
+
productId?: string | undefined;
|
29
|
+
port?: string | undefined;
|
30
|
+
parentId?: string | undefined;
|
31
|
+
assetId?: string | undefined;
|
32
|
+
openOrderLineItemId?: string | undefined;
|
33
|
+
productName?: string | undefined;
|
34
|
+
rootId?: string | undefined;
|
35
|
+
actionCode?: string | undefined;
|
36
|
+
serviceStartDate?: string | undefined;
|
37
|
+
effectiveDate?: string | undefined;
|
38
|
+
effectiveStartDate?: string | undefined;
|
39
|
+
startDate?: string | undefined;
|
40
|
+
endDate?: string | undefined;
|
41
|
+
priceListId?: string | undefined;
|
42
|
+
planId?: string | undefined;
|
43
|
+
sellingFrequencyUnit?: string | undefined;
|
44
|
+
sellingFrequencyDuration?: string | undefined;
|
45
|
+
minimalTerm?: number | undefined;
|
46
|
+
offeringId?: string | undefined;
|
47
|
+
offeringItemId?: string | undefined;
|
48
|
+
offeringInstanceId?: string | undefined;
|
49
|
+
rampInstanceId?: string | undefined;
|
50
|
+
enableRamp?: boolean | undefined;
|
51
|
+
configurable?: boolean | undefined;
|
52
|
+
requiresApprovals?: RequiresApproval[] | undefined;
|
53
|
+
static fromDTO(dto: LineItemDTO): LineItem;
|
54
|
+
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, integrationId?: string | undefined, 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?: string | undefined, effectiveDate?: string | undefined, effectiveStartDate?: string | undefined, startDate?: string | undefined, endDate?: string | undefined, priceListId?: string | undefined, planId?: string | undefined, sellingFrequencyUnit?: string | undefined, sellingFrequencyDuration?: string | undefined, minimalTerm?: number | undefined, offeringId?: string | undefined, offeringItemId?: string | undefined, offeringInstanceId?: string | undefined, rampInstanceId?: string | undefined, enableRamp?: boolean | undefined, configurable?: boolean | undefined, requiresApprovals?: RequiresApproval[] | undefined);
|
55
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { PortDomain } from '@veloceapps/core';
|
2
|
+
import { Dictionary } from 'lodash';
|
3
|
+
import { DomainTypeDTO } from './domain-type-dto.types';
|
4
|
+
export declare class PortDomainDTO {
|
5
|
+
name: string;
|
6
|
+
type: string;
|
7
|
+
minCard: number;
|
8
|
+
maxCard: number;
|
9
|
+
domainTypes: DomainTypeDTO[];
|
10
|
+
properties: Dictionary<string>;
|
11
|
+
static fromDTO(dto: PortDomainDTO): PortDomain;
|
12
|
+
constructor(name: string, type: string, minCard: number, maxCard: number, domainTypes: DomainTypeDTO[], properties: Dictionary<string>);
|
13
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { PriceAdjustment } from '@veloceapps/core';
|
2
|
+
export declare class PriceAdjustmentDTO {
|
3
|
+
amount: number;
|
4
|
+
explanation: string;
|
5
|
+
type: string;
|
6
|
+
static fromDTO(dto: PriceAdjustmentDTO): PriceAdjustment;
|
7
|
+
constructor(amount: number, explanation: string, type: string);
|
8
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Price } from '@veloceapps/core';
|
2
|
+
export declare class PriceDTO {
|
3
|
+
netPrice: number;
|
4
|
+
listPrice: number;
|
5
|
+
chargeType: string;
|
6
|
+
chargeTypeDisplayValue: string;
|
7
|
+
chargeMethod: string;
|
8
|
+
frequencyUnit: string;
|
9
|
+
frequencyDuration: number;
|
10
|
+
sellingTerm: number;
|
11
|
+
static fromDTO(dto: PriceDTO): Price;
|
12
|
+
constructor(netPrice: number, listPrice: number, chargeType: string, chargeTypeDisplayValue: string, chargeMethod: string, frequencyUnit: string, frequencyDuration: number, sellingTerm: number);
|
13
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { RecommendedPrice } from '@veloceapps/core';
|
2
|
+
import { Dictionary } from 'lodash';
|
3
|
+
export declare class RecommendedPriceDTO {
|
4
|
+
netPrice: number;
|
5
|
+
listPrice: number;
|
6
|
+
chargeType: string;
|
7
|
+
chargeMethod: string;
|
8
|
+
explanation?: string | undefined;
|
9
|
+
frequencyDuration?: number | undefined;
|
10
|
+
frequencyUnit?: string | undefined;
|
11
|
+
properties?: Dictionary<string> | undefined;
|
12
|
+
static fromDTO(dto: RecommendedPriceDTO): RecommendedPrice;
|
13
|
+
constructor(netPrice: number, listPrice: number, chargeType: string, chargeMethod: string, explanation?: string | undefined, frequencyDuration?: number | undefined, frequencyUnit?: string | undefined, properties?: Dictionary<string> | undefined);
|
14
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ConfigurationContext, LineItem } from '@veloceapps/core';
|
2
|
+
export interface NextRampRequest {
|
3
|
+
context: ConfigurationContext;
|
4
|
+
sourceItems: string[];
|
5
|
+
currentItems: LineItem[];
|
6
|
+
term: number;
|
7
|
+
}
|
8
|
+
export interface RenewRampRequest {
|
9
|
+
context: ConfigurationContext;
|
10
|
+
currentItems: LineItem[];
|
11
|
+
renewItem: LineItem;
|
12
|
+
term: number;
|
13
|
+
}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { ComponentStory, ComponentStoryAttachments } from '@veloceapps/core';
|
2
|
+
import { UIComponentStoryDTO } from '../types/dto/ui-template-dto.types';
|
3
|
+
export declare const fromUIComponentStoryDTO: (dto: UIComponentStoryDTO, attachments: ComponentStoryAttachments) => ComponentStory;
|
package/package.json
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"name": "@veloceapps/api",
|
3
|
+
"version": "4.0.21-0",
|
4
|
+
"private": false,
|
5
|
+
"peerDependencies": {
|
6
|
+
"@angular/common": "^12.2.0",
|
7
|
+
"@angular/core": "^12.2.0",
|
8
|
+
"@veloceapps/core": "4.0.0",
|
9
|
+
"lodash": "^4.17.21",
|
10
|
+
"moment": "^2.29.1",
|
11
|
+
"rxjs": "^7.3.0",
|
12
|
+
"@angular/forms": "^12.2.0",
|
13
|
+
"brotli-wasm": "^1.2.0",
|
14
|
+
"pako": "^1.0.11",
|
15
|
+
"primeng": "^12.2.2",
|
16
|
+
"angular-expressions": "^1.1.4",
|
17
|
+
"docxtemplater": "^3.28.1",
|
18
|
+
"pizzip": "^3.1.1",
|
19
|
+
"@aws-sdk/client-xray": "^3.40.0",
|
20
|
+
"monaco-editor": "^0.30.1",
|
21
|
+
"@angular/router": "^12.2.0",
|
22
|
+
"jshashes": "^1.0.8"
|
23
|
+
},
|
24
|
+
"dependencies": {
|
25
|
+
"tslib": "^2.2.0"
|
26
|
+
},
|
27
|
+
"sideEffects": false,
|
28
|
+
"publishConfig": {
|
29
|
+
"access": "public"
|
30
|
+
},
|
31
|
+
"main": "bundles/veloceapps-api.umd.js",
|
32
|
+
"module": "fesm2015/veloceapps-api.js",
|
33
|
+
"es2015": "fesm2015/veloceapps-api.js",
|
34
|
+
"esm2015": "esm2015/veloceapps-api.js",
|
35
|
+
"fesm2015": "fesm2015/veloceapps-api.js",
|
36
|
+
"typings": "veloceapps-api.d.ts"
|
37
|
+
}
|