@veloceapps/api 7.0.2-72 → 7.0.2-73
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 -1
- package/esm2020/lib/api.module.mjs +4 -1
- package/esm2020/lib/services/configuration-api.service.mjs +3 -8
- package/esm2020/lib/services/stateful-configuration-api.mjs +51 -0
- package/esm2020/lib/types/index.mjs +1 -1
- package/esm2020/lib/types/stateful-configuration.types.mjs +2 -0
- package/fesm2015/veloceapps-api.mjs +53 -8
- package/fesm2015/veloceapps-api.mjs.map +1 -1
- package/fesm2020/veloceapps-api.mjs +53 -8
- package/fesm2020/veloceapps-api.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/services/stateful-configuration-api.d.ts +30 -0
- package/lib/types/index.d.ts +0 -1
- package/lib/types/stateful-configuration.types.d.ts +11 -0
- package/package.json +1 -1
@@ -406,15 +406,10 @@ class ConfigurationApiService {
|
|
406
406
|
}));
|
407
407
|
}
|
408
408
|
getRuntimeDataByModelId(modelId) {
|
409
|
-
return this.httpService
|
410
|
-
.api({
|
409
|
+
return this.httpService.api({
|
411
410
|
method: 'get',
|
412
411
|
url: `${this.SERVICE_URL}/${modelId}/model-test`,
|
413
|
-
})
|
414
|
-
.pipe(map((runtimeData) => {
|
415
|
-
runtimeData.uiDefinitions = [];
|
416
|
-
return runtimeData;
|
417
|
-
}));
|
412
|
+
});
|
418
413
|
}
|
419
414
|
updatePortDomains(lineItem, runtimeModel) {
|
420
415
|
const type = runtimeModel.components.get(lineItem.type);
|
@@ -2167,6 +2162,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2167
2162
|
type: Injectable
|
2168
2163
|
}], ctorParameters: function () { return [{ type: ConfigurationSettingsApiService }]; } });
|
2169
2164
|
|
2165
|
+
class StatefulConfigurationApiService {
|
2166
|
+
constructor(httpService) {
|
2167
|
+
this.httpService = httpService;
|
2168
|
+
this.SERVICE_URL = '/configuration/states';
|
2169
|
+
}
|
2170
|
+
/**
|
2171
|
+
* Initialize configuration state
|
2172
|
+
* @param request Request
|
2173
|
+
* @returns ID of new configuration state
|
2174
|
+
*/
|
2175
|
+
init(request) {
|
2176
|
+
return this.httpService.api({
|
2177
|
+
method: 'post',
|
2178
|
+
url: `${this.SERVICE_URL}/init`,
|
2179
|
+
body: request,
|
2180
|
+
responseType: 'text',
|
2181
|
+
});
|
2182
|
+
}
|
2183
|
+
/**
|
2184
|
+
* Get existing state by ID
|
2185
|
+
* @param id ID
|
2186
|
+
* @returns Configuration State
|
2187
|
+
*/
|
2188
|
+
get(id) {
|
2189
|
+
return this.httpService.api({
|
2190
|
+
url: `${this.SERVICE_URL}/${id}`,
|
2191
|
+
});
|
2192
|
+
}
|
2193
|
+
/**
|
2194
|
+
* Execute actions/selectors
|
2195
|
+
* @param id State ID
|
2196
|
+
* @param request Request
|
2197
|
+
* @returns Execute result
|
2198
|
+
*/
|
2199
|
+
execute(id, request) {
|
2200
|
+
return this.httpService.api({
|
2201
|
+
method: 'post',
|
2202
|
+
url: `${this.SERVICE_URL}/${id}/execute`,
|
2203
|
+
body: request,
|
2204
|
+
});
|
2205
|
+
}
|
2206
|
+
}
|
2207
|
+
StatefulConfigurationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService, deps: [{ token: i1.BaseHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
2208
|
+
StatefulConfigurationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService });
|
2209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: StatefulConfigurationApiService, decorators: [{
|
2210
|
+
type: Injectable
|
2211
|
+
}], ctorParameters: function () { return [{ type: i1.BaseHttpService }]; } });
|
2212
|
+
|
2170
2213
|
class UIDefinitionsApiService {
|
2171
2214
|
constructor(baseHttpService) {
|
2172
2215
|
this.baseHttpService = baseHttpService;
|
@@ -2637,6 +2680,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
2637
2680
|
OffersApiService,
|
2638
2681
|
UIDefinitionsApiService,
|
2639
2682
|
VeloceObjectsApiService,
|
2683
|
+
StatefulConfigurationApiService,
|
2640
2684
|
], imports: [HttpClientModule] });
|
2641
2685
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ApiModule, decorators: [{
|
2642
2686
|
type: NgModule,
|
@@ -2675,6 +2719,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2675
2719
|
OffersApiService,
|
2676
2720
|
UIDefinitionsApiService,
|
2677
2721
|
VeloceObjectsApiService,
|
2722
|
+
StatefulConfigurationApiService,
|
2678
2723
|
],
|
2679
2724
|
}]
|
2680
2725
|
}] });
|
@@ -2683,5 +2728,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
2683
2728
|
* Generated bundle index. Do not edit.
|
2684
2729
|
*/
|
2685
2730
|
|
2686
|
-
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
|
2731
|
+
export { AccountApiService, ApiModule, CatalogAdminApiService, CatalogApiService, ConfigurationApiService, ConfigurationSettingsApiService, ContextApiService, DeltaApiService, DocumentAttachmentApiService, DocumentTemplatesApiService, EndpointsApiService, FlowsApiService, GuidedSellingApiService, GuidedSellingsAdminApiService, OffersApiService, OrgInfoApiService, PicklistsApiService, PriceApiService, ProceduresApiService, ProductApiService, ProductModelApiService, QuoteApiService, RampApiService, RuleGroupsApiService, RulesApiService, SalesforceApiService, ScriptsApiService, ShoppingCartSettingsApiService, StatefulConfigurationApiService, UIDefinitionsApiService, UITemplatesApiService, VeloceObjectsApiService };
|
2687
2732
|
//# sourceMappingURL=veloceapps-api.mjs.map
|