procode-lowcode-core 1.0.3 → 1.0.6
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/dist/index.esm.js
CHANGED
|
@@ -18720,13 +18720,13 @@ const handleAPIUpdate = (actionInvokerProps, data) => __awaiter(void 0, void 0,
|
|
|
18720
18720
|
});
|
|
18721
18721
|
|
|
18722
18722
|
const handleAPIDelete = (actionInvokerProps, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18723
|
-
var _a, _b, _c, _d
|
|
18723
|
+
var _a, _b, _c, _d;
|
|
18724
18724
|
const eventService = actionInvokerProps.eventService;
|
|
18725
18725
|
const uiSchema = eventService === null || eventService === void 0 ? void 0 : eventService.emit(eventServiceType.UISCHEMA);
|
|
18726
18726
|
const apiConfig = (_c = (_b = (_a = actionInvokerProps.actionProps) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.apiConfig) !== null && _c !== void 0 ? _c : _.cloneDeep(uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema.apiConfig);
|
|
18727
|
-
const
|
|
18728
|
-
|
|
18729
|
-
(
|
|
18727
|
+
const viewModelHandler = AppDependenceyProvider.getInstance().getViewModelHandler();
|
|
18728
|
+
const response = yield (viewModelHandler === null || viewModelHandler === void 0 ? void 0 : viewModelHandler.deleteModel(data, apiConfig, eventService));
|
|
18729
|
+
(_d = actionInvokerProps.callBack) === null || _d === void 0 ? void 0 : _d.call(actionInvokerProps, response);
|
|
18730
18730
|
});
|
|
18731
18731
|
|
|
18732
18732
|
const handleCreateAndNavigate = (actionInvokerProps) => __awaiter(void 0, void 0, void 0, function* () {
|
package/dist/index.js
CHANGED
|
@@ -18724,13 +18724,13 @@ const handleAPIUpdate = (actionInvokerProps, data) => __awaiter(void 0, void 0,
|
|
|
18724
18724
|
});
|
|
18725
18725
|
|
|
18726
18726
|
const handleAPIDelete = (actionInvokerProps, data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18727
|
-
var _a, _b, _c, _d
|
|
18727
|
+
var _a, _b, _c, _d;
|
|
18728
18728
|
const eventService = actionInvokerProps.eventService;
|
|
18729
18729
|
const uiSchema = eventService === null || eventService === void 0 ? void 0 : eventService.emit(eventServiceType.UISCHEMA);
|
|
18730
18730
|
const apiConfig = (_c = (_b = (_a = actionInvokerProps.actionProps) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.apiConfig) !== null && _c !== void 0 ? _c : _.cloneDeep(uiSchema === null || uiSchema === void 0 ? void 0 : uiSchema.apiConfig);
|
|
18731
|
-
const
|
|
18732
|
-
|
|
18733
|
-
(
|
|
18731
|
+
const viewModelHandler = AppDependenceyProvider.getInstance().getViewModelHandler();
|
|
18732
|
+
const response = yield (viewModelHandler === null || viewModelHandler === void 0 ? void 0 : viewModelHandler.deleteModel(data, apiConfig, eventService));
|
|
18733
|
+
(_d = actionInvokerProps.callBack) === null || _d === void 0 ? void 0 : _d.call(actionInvokerProps, response);
|
|
18734
18734
|
});
|
|
18735
18735
|
|
|
18736
18736
|
const handleCreateAndNavigate = (actionInvokerProps) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -31,6 +31,6 @@ export interface IViewModelHandler {
|
|
|
31
31
|
getSupportiveData: (supportiveQueryParams: string[], apiConfig: ApiConfig, eventService: EventService) => Promise<any>;
|
|
32
32
|
createModel: (model: any, apiConfig: ApiConfig, eventService: EventService) => Promise<any>;
|
|
33
33
|
updateModel: (model: any, apiConfig: ApiConfig, eventService: EventService) => Promise<any>;
|
|
34
|
-
deleteModel: (screenDataQueryParams: QueryFilters, apiConfig: ApiConfig, eventService: EventService) =>
|
|
34
|
+
deleteModel: (screenDataQueryParams: QueryFilters, apiConfig: ApiConfig, eventService: EventService) => Promise<any>;
|
|
35
35
|
}
|
|
36
36
|
export {};
|
package/package.json
CHANGED
|
@@ -13,9 +13,9 @@ const handleAPIDelete = async (
|
|
|
13
13
|
actionInvokerProps.actionProps?.config?.apiConfig ??
|
|
14
14
|
_.cloneDeep(uiSchema?.apiConfig);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
const viewModelHandler = AppDependenceyProvider.getInstance().getViewModelHandler();
|
|
17
|
+
|
|
18
|
+
const response = await viewModelHandler?.deleteModel(data, apiConfig, eventService);
|
|
19
19
|
|
|
20
20
|
actionInvokerProps.callBack?.(response);
|
|
21
21
|
};
|
|
@@ -60,9 +60,9 @@ export interface IViewModelHandler {
|
|
|
60
60
|
eventService: EventService
|
|
61
61
|
) => Promise<any>;
|
|
62
62
|
|
|
63
|
-
deleteModel:
|
|
63
|
+
deleteModel: (
|
|
64
64
|
screenDataQueryParams: QueryFilters,
|
|
65
65
|
apiConfig: ApiConfig,
|
|
66
66
|
eventService: EventService
|
|
67
|
-
) =>
|
|
67
|
+
) => Promise<any>;
|
|
68
68
|
}
|