@veloceapps/api 11.0.0-2 → 11.0.0-20
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 +2 -45
- package/esm2020/src/index.mjs +32 -0
- package/esm2020/src/lib/api.module.mjs +108 -0
- package/esm2020/src/lib/services/account-api.service.mjs +87 -0
- package/esm2020/src/lib/services/auth.service.mjs +22 -0
- package/esm2020/src/lib/services/catalog-admin-api.service.mjs +192 -0
- package/esm2020/src/lib/services/catalog-api.service.mjs +90 -0
- package/esm2020/src/lib/services/configuration-settings-api.service.mjs +96 -0
- package/esm2020/src/lib/services/contracted-price-api.service.mjs +45 -0
- package/esm2020/src/lib/services/delta-api.service.mjs +23 -0
- package/esm2020/src/lib/services/document-attachment-api.service.mjs +66 -0
- package/esm2020/src/lib/services/endpoints-api.service.mjs +80 -0
- package/esm2020/src/lib/services/flow-state-api.mjs +142 -0
- package/esm2020/src/lib/services/flows-api.service.mjs +29 -0
- package/esm2020/src/lib/services/guided-sellings-admin-api.service.mjs +65 -0
- package/esm2020/src/lib/services/guided-sellings-api.service.mjs +37 -0
- package/esm2020/src/lib/services/offers-api.service.mjs +76 -0
- package/esm2020/src/lib/services/org-info-api.service.mjs +54 -0
- package/esm2020/src/lib/services/picklists-api.service.mjs +41 -0
- package/esm2020/src/lib/services/portals-api.service.mjs +76 -0
- package/esm2020/src/lib/services/price-api.service.mjs +63 -0
- package/esm2020/src/lib/services/product-api.service.mjs +153 -0
- package/esm2020/src/lib/services/promotions-api.service.mjs +68 -0
- package/esm2020/src/lib/services/ramp-api.service.mjs +31 -0
- package/esm2020/src/lib/services/rebate-program-api.service.mjs +68 -0
- package/esm2020/src/lib/services/rebate-type-api.service.mjs +68 -0
- package/esm2020/src/lib/services/salesforce-api.service.mjs +79 -0
- package/esm2020/src/lib/services/sandbox-manager-api.service.mjs +94 -0
- package/esm2020/src/lib/services/shopping-cart-settings-api.service.mjs +28 -0
- package/esm2020/src/lib/services/stateful-configuration-api.mjs +51 -0
- package/esm2020/src/lib/services/veloce-objects-api.service.mjs +90 -0
- package/esm2020/src/lib/types/attachment.types.mjs +2 -0
- package/esm2020/src/lib/types/auth.types.mjs +2 -0
- package/esm2020/src/lib/types/clone-request.types.mjs +2 -0
- package/esm2020/src/lib/types/delta-request.types.mjs +2 -0
- package/esm2020/src/lib/types/dto/configuration-settings-dto.types.mjs +22 -0
- package/esm2020/src/lib/types/dto/offers-dto.types.mjs +2 -0
- package/esm2020/src/lib/types/index.mjs +8 -0
- package/esm2020/src/lib/types/org-info.types.mjs +2 -0
- package/esm2020/src/lib/types/price.types.mjs +2 -0
- package/esm2020/src/lib/types/quote.types.mjs +2 -0
- package/esm2020/src/lib/types/ramp-request.types.mjs +2 -0
- package/esm2020/src/lib/types/search-request.types.mjs +2 -0
- package/esm2020/src/lib/types/stateful-configuration.types.mjs +2 -0
- package/esm2020/src/lib/utils/canvas.utils.mjs +33 -0
- package/esm2020/src/lib/utils/index.mjs +2 -0
- package/esm2020/v2/api-v2.module.mjs +48 -0
- package/esm2020/v2/index.mjs +4 -0
- package/esm2020/v2/services/configuration-processors-api.service.mjs +38 -0
- package/esm2020/v2/services/context-definition-api.service.mjs +62 -0
- package/esm2020/v2/services/index.mjs +13 -0
- package/esm2020/v2/services/procedures-admin-api.service.mjs +82 -0
- package/esm2020/v2/services/procedures-api.service.mjs +44 -0
- package/esm2020/v2/services/rule-groups-admin-api.service.mjs +62 -0
- package/esm2020/v2/services/rules-admin-api.service.mjs +95 -0
- package/esm2020/v2/services/rules-api.service.mjs +36 -0
- package/esm2020/v2/services/sales-transactions-api.service.mjs +52 -0
- package/esm2020/v2/services/scripts-admin-api.service.mjs +75 -0
- package/esm2020/v2/services/scripts-api.service.mjs +23 -0
- package/esm2020/v2/services/ui-definitions-api.service.mjs +124 -0
- package/esm2020/{lib → v2}/services/ui-templates-api.service.mjs +2 -2
- package/esm2020/v2/types/clone-request.types.mjs +2 -0
- package/esm2020/v2/types/dto/ui-definition-dto.types.mjs +2 -0
- package/esm2020/v2/types/dto/ui-template-dto.types.mjs +2 -0
- package/esm2020/v2/types/index.mjs +4 -0
- package/esm2020/v2/types/procedure.types.mjs +2 -0
- package/esm2020/v2/types/sales-transaction.types.mjs +2 -0
- package/esm2020/v2/utils/ui-definition.utils.mjs +16 -0
- package/esm2020/v2/utils/ui-template.utils.mjs +13 -0
- package/esm2020/v2/veloceapps-api-v2.mjs +5 -0
- package/esm2020/veloceapps-api.mjs +1 -1
- package/fesm2015/veloceapps-api-v2.mjs +989 -0
- package/fesm2015/veloceapps-api-v2.mjs.map +1 -0
- package/fesm2015/veloceapps-api.mjs +14 -1217
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api-v2.mjs +1007 -0
- package/fesm2020/veloceapps-api-v2.mjs.map +1 -0
- package/fesm2020/veloceapps-api.mjs +11 -1246
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +1 -44
- package/package.json +9 -1
- package/src/index.d.ts +31 -0
- package/{lib → src/lib}/api.module.d.ts +2 -1
- package/src/lib/utils/index.d.ts +1 -0
- package/v2/api-v2.module.d.ts +7 -0
- package/v2/index.d.ts +3 -0
- package/{lib/services/rlm-api.service.d.ts → v2/services/context-definition-api.service.d.ts} +3 -3
- package/v2/services/index.d.ts +12 -0
- package/{lib/services/procedures-api.service.d.ts → v2/services/procedures-admin-api.service.d.ts} +6 -13
- package/v2/services/procedures-api.service.d.ts +15 -0
- package/{lib/services/rule-groups-api.service.d.ts → v2/services/rule-groups-admin-api.service.d.ts} +3 -3
- package/{lib/services/rules-api.service.d.ts → v2/services/rules-admin-api.service.d.ts} +4 -4
- package/v2/services/rules-api.service.d.ts +11 -0
- package/v2/services/sales-transactions-api.service.d.ts +20 -0
- package/{lib/services/scripts-api.service.d.ts → v2/services/scripts-admin-api.service.d.ts} +4 -5
- package/v2/services/scripts-api.service.d.ts +11 -0
- package/{lib → v2}/services/ui-definitions-api.service.d.ts +9 -0
- package/v2/types/clone-request.types.d.ts +5 -0
- package/v2/types/dto/ui-definition-dto.types.d.ts +7 -0
- package/v2/types/index.d.ts +3 -0
- package/v2/types/procedure.types.d.ts +10 -0
- package/v2/types/sales-transaction.types.d.ts +14 -0
- package/v2/utils/ui-definition.utils.d.ts +4 -0
- package/esm2020/lib/api.module.mjs +0 -146
- package/esm2020/lib/services/account-api.service.mjs +0 -87
- package/esm2020/lib/services/auth.service.mjs +0 -22
- package/esm2020/lib/services/catalog-admin-api.service.mjs +0 -192
- package/esm2020/lib/services/catalog-api.service.mjs +0 -90
- package/esm2020/lib/services/configuration-api.service.mjs +0 -109
- package/esm2020/lib/services/configuration-processors-api.service.mjs +0 -38
- package/esm2020/lib/services/configuration-settings-api.service.mjs +0 -96
- package/esm2020/lib/services/context-api.service.mjs +0 -26
- package/esm2020/lib/services/contracted-price-api.service.mjs +0 -45
- package/esm2020/lib/services/delta-api.service.mjs +0 -23
- package/esm2020/lib/services/document-attachment-api.service.mjs +0 -66
- package/esm2020/lib/services/endpoints-api.service.mjs +0 -80
- package/esm2020/lib/services/flow-state-api.mjs +0 -142
- package/esm2020/lib/services/flows-api.service.mjs +0 -29
- package/esm2020/lib/services/guided-sellings-admin-api.service.mjs +0 -65
- package/esm2020/lib/services/guided-sellings-api.service.mjs +0 -37
- package/esm2020/lib/services/offers-api.service.mjs +0 -76
- package/esm2020/lib/services/org-info-api.service.mjs +0 -54
- package/esm2020/lib/services/picklists-api.service.mjs +0 -41
- package/esm2020/lib/services/portals-api.service.mjs +0 -76
- package/esm2020/lib/services/price-api.service.mjs +0 -63
- package/esm2020/lib/services/procedures-api.service.mjs +0 -113
- package/esm2020/lib/services/product-api.service.mjs +0 -153
- package/esm2020/lib/services/product-model-api.service.mjs +0 -223
- package/esm2020/lib/services/promotions-api.service.mjs +0 -68
- package/esm2020/lib/services/quote-api.service.mjs +0 -56
- package/esm2020/lib/services/ramp-api.service.mjs +0 -31
- package/esm2020/lib/services/rebate-program-api.service.mjs +0 -68
- package/esm2020/lib/services/rebate-type-api.service.mjs +0 -68
- package/esm2020/lib/services/rlm-api.service.mjs +0 -65
- package/esm2020/lib/services/rlm-quote-api.service.mjs +0 -27
- package/esm2020/lib/services/rule-groups-api.service.mjs +0 -62
- package/esm2020/lib/services/rules-api.service.mjs +0 -98
- package/esm2020/lib/services/salesforce-api.service.mjs +0 -79
- package/esm2020/lib/services/sandbox-manager-api.service.mjs +0 -94
- package/esm2020/lib/services/scripts-api.service.mjs +0 -83
- package/esm2020/lib/services/shopping-cart-settings-api.service.mjs +0 -28
- package/esm2020/lib/services/stateful-configuration-api.mjs +0 -51
- package/esm2020/lib/services/ui-definitions-api.service.mjs +0 -76
- package/esm2020/lib/services/veloce-objects-api.service.mjs +0 -90
- package/esm2020/lib/types/attachment.types.mjs +0 -2
- package/esm2020/lib/types/auth.types.mjs +0 -2
- package/esm2020/lib/types/clone-request.types.mjs +0 -2
- package/esm2020/lib/types/delta-request.types.mjs +0 -2
- package/esm2020/lib/types/dto/configuration-settings-dto.types.mjs +0 -22
- package/esm2020/lib/types/dto/offers-dto.types.mjs +0 -2
- package/esm2020/lib/types/dto/ui-template-dto.types.mjs +0 -2
- package/esm2020/lib/types/index.mjs +0 -8
- package/esm2020/lib/types/org-info.types.mjs +0 -2
- package/esm2020/lib/types/price.types.mjs +0 -2
- package/esm2020/lib/types/quote.types.mjs +0 -2
- package/esm2020/lib/types/ramp-request.types.mjs +0 -2
- package/esm2020/lib/types/search-request.types.mjs +0 -2
- package/esm2020/lib/types/stateful-configuration.types.mjs +0 -2
- package/esm2020/lib/utils/canvas.utils.mjs +0 -33
- package/esm2020/lib/utils/index.mjs +0 -3
- package/esm2020/lib/utils/ui-template.utils.mjs +0 -13
- package/lib/services/configuration-api.service.d.ts +0 -23
- package/lib/services/context-api.service.d.ts +0 -11
- package/lib/services/product-model-api.service.d.ts +0 -29
- package/lib/services/quote-api.service.d.ts +0 -22
- package/lib/services/rlm-quote-api.service.d.ts +0 -11
- package/lib/utils/index.d.ts +0 -2
- /package/{lib → src/lib}/services/account-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/auth.service.d.ts +0 -0
- /package/{lib → src/lib}/services/catalog-admin-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/catalog-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/configuration-settings-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/contracted-price-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/delta-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/document-attachment-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/endpoints-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/flow-state-api.d.ts +0 -0
- /package/{lib → src/lib}/services/flows-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/guided-sellings-admin-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/guided-sellings-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/offers-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/org-info-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/picklists-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/portals-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/price-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/product-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/promotions-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/ramp-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/rebate-program-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/rebate-type-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/salesforce-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/sandbox-manager-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/shopping-cart-settings-api.service.d.ts +0 -0
- /package/{lib → src/lib}/services/stateful-configuration-api.d.ts +0 -0
- /package/{lib → src/lib}/services/veloce-objects-api.service.d.ts +0 -0
- /package/{lib → src/lib}/types/attachment.types.d.ts +0 -0
- /package/{lib → src/lib}/types/auth.types.d.ts +0 -0
- /package/{lib → src/lib}/types/clone-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/delta-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/dto/configuration-settings-dto.types.d.ts +0 -0
- /package/{lib → src/lib}/types/dto/offers-dto.types.d.ts +0 -0
- /package/{lib → src/lib}/types/index.d.ts +0 -0
- /package/{lib → src/lib}/types/org-info.types.d.ts +0 -0
- /package/{lib → src/lib}/types/price.types.d.ts +0 -0
- /package/{lib → src/lib}/types/quote.types.d.ts +0 -0
- /package/{lib → src/lib}/types/ramp-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/search-request.types.d.ts +0 -0
- /package/{lib → src/lib}/types/stateful-configuration.types.d.ts +0 -0
- /package/{lib → src/lib}/utils/canvas.utils.d.ts +0 -0
- /package/{lib → v2}/services/configuration-processors-api.service.d.ts +0 -0
- /package/{lib → v2}/services/ui-templates-api.service.d.ts +0 -0
- /package/{lib → v2}/types/dto/ui-template-dto.types.d.ts +0 -0
- /package/{lib → v2}/utils/ui-template.utils.d.ts +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { isApexError, isCanvasError } from '@veloceapps/core';
|
|
2
|
-
import { isArray } from 'lodash';
|
|
3
|
-
/**
|
|
4
|
-
* Parses the response from Canvas and checks for errors.
|
|
5
|
-
* - If an error is found, publishes an error message and returns the failover value.
|
|
6
|
-
* - If no error is found, returns the parsed response.
|
|
7
|
-
*
|
|
8
|
-
* Note! The API call first goes to APEX before reaching the Canvas, so errors can originate from either APEX or Canvas.
|
|
9
|
-
*
|
|
10
|
-
* @param {string} response - The JSON string response from the Canvas call.
|
|
11
|
-
* @param {T} failover - The value to return in case of error.
|
|
12
|
-
* @returns {T | K} The parsed response or the failover value.
|
|
13
|
-
*
|
|
14
|
-
* @template T The expected type of the parsed response.
|
|
15
|
-
* @template K The type of the failover value.
|
|
16
|
-
*
|
|
17
|
-
* @remarks If there's an Apex error, the response data can be an array.
|
|
18
|
-
* In such cases, the function extracts the first element of the array.
|
|
19
|
-
*/
|
|
20
|
-
export const handleCanvasResponse = (response, failover, errorPublisher) => {
|
|
21
|
-
const parsed = JSON.parse(response);
|
|
22
|
-
const errorCandidate = isArray(parsed) ? parsed[0] : parsed;
|
|
23
|
-
if (isApexError(errorCandidate)) {
|
|
24
|
-
errorPublisher(errorCandidate.message);
|
|
25
|
-
return failover;
|
|
26
|
-
}
|
|
27
|
-
if (isCanvasError(errorCandidate)) {
|
|
28
|
-
errorPublisher(errorCandidate.error);
|
|
29
|
-
return failover;
|
|
30
|
-
}
|
|
31
|
-
return parsed;
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FudmFzLnV0aWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hcGkvc3JjL2xpYi91dGlscy9jYW52YXMudXRpbHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFdBQVcsRUFBRSxhQUFhLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUM5RCxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBRWpDOzs7Ozs7Ozs7Ozs7Ozs7O0dBZ0JHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sb0JBQW9CLEdBQUcsQ0FDbEMsUUFBZ0IsRUFDaEIsUUFBVyxFQUNYLGNBQXlDLEVBQ2xDLEVBQUU7SUFDVCxNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ3BDLE1BQU0sY0FBYyxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQ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uICAgIGVycm9yUHVibGlzaGVyKGVycm9yQ2FuZGlkYXRlLmVycm9yKTtcbiAgICByZXR1cm4gZmFpbG92ZXI7XG4gIH1cblxuICByZXR1cm4gcGFyc2VkIGFzIFQ7XG59O1xuIl19
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from './canvas.utils';
|
|
2
|
-
export * from './ui-template.utils';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FwaS9zcmMvbGliL3V0aWxzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyxxQkFBcUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2FudmFzLnV0aWxzJztcbmV4cG9ydCAqIGZyb20gJy4vdWktdGVtcGxhdGUudXRpbHMnO1xuIl19
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const fromUIComponentStoryDTO = (dto, attachments) => {
|
|
2
|
-
return {
|
|
3
|
-
id: dto.id,
|
|
4
|
-
name: dto.name,
|
|
5
|
-
uiComponentId: dto.uiComponentId,
|
|
6
|
-
description: dto.description,
|
|
7
|
-
section: attachments.json,
|
|
8
|
-
template: attachments.html,
|
|
9
|
-
script: attachments.js,
|
|
10
|
-
styles: attachments.css,
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidWktdGVtcGxhdGUudXRpbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FwaS9zcmMvbGliL3V0aWxzL3VpLXRlbXBsYXRlLnV0aWxzLnRzIl0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aXB0aW9uLFxuICAgIHNlY3Rpb246IGF0dGFjaG1lbnRzLmpzb24sXG4gICAgdGVtcGxhdGU6IGF0dGFjaG1lbnRzLmh0bWwsXG4gICAgc2NyaXB0OiBhdHRhY2htZW50cy5qcyxcbiAgICBzdHlsZXM6IGF0dGFjaG1lbnRzLmNzcyxcbiAgfTtcbn07XG4iXX0=
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BaseHttpService, ConfigurationRequest, ConfigurePrice, RuntimeData, RuntimeModel } from '@veloceapps/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ConfigurationApiService {
|
|
5
|
-
private httpService;
|
|
6
|
-
private readonly SERVICE_URL;
|
|
7
|
-
constructor(httpService: BaseHttpService);
|
|
8
|
-
configureLineItem({ configurationRequest, runtimeModel, pricingEnabled, }: {
|
|
9
|
-
configurationRequest: ConfigurationRequest;
|
|
10
|
-
runtimeModel?: RuntimeModel;
|
|
11
|
-
pricingEnabled?: boolean;
|
|
12
|
-
}): Observable<ConfigurePrice>;
|
|
13
|
-
customConfigurePrice({ url, configurationRequest, runtimeModel, }: {
|
|
14
|
-
url: string;
|
|
15
|
-
configurationRequest: ConfigurationRequest;
|
|
16
|
-
runtimeModel?: RuntimeModel;
|
|
17
|
-
}): Observable<ConfigurePrice>;
|
|
18
|
-
getRuntimeDataByProductId(productId: string, offeringId?: string): Observable<RuntimeData>;
|
|
19
|
-
getRuntimeDataByModelId(modelId: string): Observable<RuntimeData>;
|
|
20
|
-
private updateDomains;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationApiService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationApiService>;
|
|
23
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseHttpService, ConfigurationContext, ConfigurationContextMode } from '@veloceapps/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ContextApiService {
|
|
5
|
-
private httpService;
|
|
6
|
-
private readonly SERVICE_URL;
|
|
7
|
-
constructor(httpService: BaseHttpService);
|
|
8
|
-
getContext(headerId: string, mode: ConfigurationContextMode): Observable<ConfigurationContext>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContextApiService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContextApiService>;
|
|
11
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BaseHttpService, ModelReleaseRequest, PmlConfigurationMode, ProductModel, ProductModelVersion } from '@veloceapps/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ProductModelApiService {
|
|
5
|
-
private httpService;
|
|
6
|
-
static MAX_RESULTS: number;
|
|
7
|
-
private readonly SERVICE_URL;
|
|
8
|
-
constructor(httpService: BaseHttpService);
|
|
9
|
-
addModel(model: ProductModel): Observable<any>;
|
|
10
|
-
releaseModel(model: ModelReleaseRequest): Observable<any>;
|
|
11
|
-
removeModel(modelId: string, successFn?: any, failureFn?: any): void;
|
|
12
|
-
getModelVersions(modelId: string, count?: number, skip?: number): Observable<ProductModelVersion[]>;
|
|
13
|
-
getModel(id: string, version?: string): Observable<ProductModel>;
|
|
14
|
-
getModels(skipCount: number, searchText: string): Observable<ProductModel[]>;
|
|
15
|
-
getLinkedModels(id: string, version?: string): Observable<ProductModel[]>;
|
|
16
|
-
getPML(modelId: string, version?: string): Observable<any>;
|
|
17
|
-
savePML(modelId: string, pml: string, comment: string): Observable<any>;
|
|
18
|
-
generateProducts(modelId: string): Observable<ProductModel>;
|
|
19
|
-
saveModel(productModel: ProductModel, comment: string): Observable<string>;
|
|
20
|
-
validateModel(productModel: ProductModel): Observable<string>;
|
|
21
|
-
renameModel(productModel: ProductModel, name: string): Observable<any>;
|
|
22
|
-
uploadPmlFile(file: File, modelId: string): Observable<any>;
|
|
23
|
-
runPml(modelId: string, pml: string, rootType: string, configurationMode: PmlConfigurationMode): Observable<any>;
|
|
24
|
-
evictAllCache(): Observable<{
|
|
25
|
-
result: string;
|
|
26
|
-
}>;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProductModelApiService, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProductModelApiService>;
|
|
29
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { BaseHttpService, HttpRequestConfigurableOptions, QuoteDraft } from '@veloceapps/core';
|
|
2
|
-
import { Dictionary } from 'lodash';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { SaveQuoteResponse, SubmitQuoteResponse } from '../types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class QuoteApiService {
|
|
7
|
-
private httpService;
|
|
8
|
-
private readonly SERVICE_URL;
|
|
9
|
-
constructor(httpService: BaseHttpService);
|
|
10
|
-
/**
|
|
11
|
-
* This endpoint doesn't include orders and assets
|
|
12
|
-
* @param objectId quoteId | accountId | opportunityId | orderId
|
|
13
|
-
* @param params Query params
|
|
14
|
-
* @param options Request options
|
|
15
|
-
*/
|
|
16
|
-
getQuoteState(objectId: string, params?: Dictionary<string>, options?: HttpRequestConfigurableOptions): Observable<QuoteDraft>;
|
|
17
|
-
upsertQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<SaveQuoteResponse>;
|
|
18
|
-
submitQuote(request: QuoteDraft, options?: HttpRequestConfigurableOptions): Observable<SubmitQuoteResponse>;
|
|
19
|
-
attachDocument(id: string, documentName: string, data: any): Observable<void>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QuoteApiService, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QuoteApiService>;
|
|
22
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { BaseHttpService, HttpRequestConfigurableOptions, QuoteDraft } from '@veloceapps/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class RlmQuoteApiService {
|
|
5
|
-
private httpService;
|
|
6
|
-
private readonly SERVICE_URL;
|
|
7
|
-
constructor(httpService: BaseHttpService);
|
|
8
|
-
getQuote(mappingType: 'tag' | 'attribute', objectId: string, contextMappingId?: string, options?: HttpRequestConfigurableOptions): Observable<QuoteDraft>;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RlmQuoteApiService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RlmQuoteApiService>;
|
|
11
|
-
}
|
package/lib/utils/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|