@buildery/ts-api-kit 4.9.2 → 4.10.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/dist/Api.d.ts +1 -1
- package/dist/Api.js +2 -2
- package/dist/config/ApiConfigs.d.ts +8 -0
- package/dist/config/ApiConfigs.js +7 -0
- package/dist/config/ApiConfigs.js.map +1 -0
- package/dist/config/RawApi.d.ts +15 -0
- package/dist/config/RawApi.js +19 -0
- package/dist/config/RawApi.js.map +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +19 -0
- package/dist/config/index.js.map +1 -0
- package/dist/entities/auth/config/AuthApi.js +1 -1
- package/dist/entities/auth/config/AuthApi.js.map +1 -1
- package/dist/entities/module/config/ModuleApi.js +2 -2
- package/dist/entities/module/config/ModuleApi.js.map +1 -1
- package/dist/entities/schema/config/FieldApi.js +1 -1
- package/dist/entities/schema/config/FieldApi.js.map +1 -1
- package/dist/entities/schema/config/ObjectApi.js +1 -1
- package/dist/entities/schema/config/ObjectApi.js.map +1 -1
- package/dist/entities/security/config/PermissionApi.js +1 -1
- package/dist/entities/security/config/PermissionApi.js.map +1 -1
- package/dist/entities/security/config/PermissionAssignmentApi.js +1 -1
- package/dist/entities/security/config/PermissionAssignmentApi.js.map +1 -1
- package/dist/entities/security/config/PermissionCategoryApi.js +1 -1
- package/dist/entities/security/config/PermissionCategoryApi.js.map +1 -1
- package/dist/entities/security/config/PermissionDefinitionApi.js +1 -1
- package/dist/entities/security/config/PermissionDefinitionApi.js.map +1 -1
- package/dist/entities/security/config/PermissionGroupApi.js +1 -1
- package/dist/entities/security/config/PermissionGroupApi.js.map +1 -1
- package/dist/entities/security/config/PermissionSetApi.js +1 -1
- package/dist/entities/security/config/PermissionSetApi.js.map +1 -1
- package/dist/entities/user/config/UserApi.js +1 -1
- package/dist/entities/user/config/UserApi.js.map +1 -1
- package/dist/entities/workspace/config/WorkspaceApi.js +2 -2
- package/dist/entities/workspace/config/WorkspaceApi.js.map +1 -1
- package/dist/features/callout/decorators/AddCalloutMiddleware.d.ts +3 -0
- package/dist/features/callout/decorators/AddCalloutMiddleware.js +15 -0
- package/dist/features/callout/decorators/AddCalloutMiddleware.js.map +1 -0
- package/dist/features/callout/decorators/Calloutable.d.ts +4 -0
- package/dist/features/callout/decorators/Calloutable.js +51 -0
- package/dist/features/callout/decorators/Calloutable.js.map +1 -0
- package/dist/features/callout/decorators/index.d.ts +2 -0
- package/dist/features/callout/decorators/index.js +19 -0
- package/dist/features/callout/decorators/index.js.map +1 -0
- package/dist/features/callout/index.d.ts +2 -1
- package/dist/features/callout/index.js +2 -1
- package/dist/features/callout/index.js.map +1 -1
- package/dist/features/callout/types/ApiCalloutMiddleware.d.ts +2 -0
- package/dist/features/callout/types/ApiCalloutMiddleware.js +3 -0
- package/dist/features/callout/types/ApiCalloutMiddleware.js.map +1 -0
- package/dist/features/callout/types/index.d.ts +1 -0
- package/dist/features/callout/types/index.js +18 -0
- package/dist/features/callout/types/index.js.map +1 -0
- package/dist/features/crud/abstract/AbstractCRUDRequest.d.ts +2 -3
- package/dist/features/crud/abstract/AbstractCRUDRequest.js.map +1 -1
- package/dist/features/crud/constants/CrudActions.d.ts +10 -0
- package/dist/features/crud/constants/CrudActions.js +3 -0
- package/dist/features/crud/constants/CrudActions.js.map +1 -0
- package/dist/features/crud/constants/CrudConstants.d.ts +1 -0
- package/dist/features/crud/constants/CrudConstants.js +5 -0
- package/dist/features/crud/constants/CrudConstants.js.map +1 -0
- package/dist/features/crud/constants/index.d.ts +2 -0
- package/dist/features/crud/constants/index.js +19 -0
- package/dist/features/crud/constants/index.js.map +1 -0
- package/dist/features/crud/middlewares/PushCrudEvent.d.ts +4 -0
- package/dist/features/crud/middlewares/PushCrudEvent.js +15 -0
- package/dist/features/crud/middlewares/PushCrudEvent.js.map +1 -0
- package/dist/features/crud/middlewares/index.d.ts +1 -0
- package/dist/features/crud/middlewares/index.js +18 -0
- package/dist/features/crud/middlewares/index.js.map +1 -0
- package/dist/features/crud/operations/Create.js +17 -0
- package/dist/features/crud/operations/Create.js.map +1 -1
- package/dist/features/crud/operations/CreateBulk.js +17 -0
- package/dist/features/crud/operations/CreateBulk.js.map +1 -1
- package/dist/features/crud/operations/DeleteById.js +17 -0
- package/dist/features/crud/operations/DeleteById.js.map +1 -1
- package/dist/features/crud/operations/DeleteByIds.js +17 -0
- package/dist/features/crud/operations/DeleteByIds.js.map +1 -1
- package/dist/features/crud/operations/Update.js +17 -0
- package/dist/features/crud/operations/Update.js.map +1 -1
- package/dist/features/crud/operations/UpdateBulk.js +17 -0
- package/dist/features/crud/operations/UpdateBulk.js.map +1 -1
- package/dist/features/crud/operations/Upsert.js +17 -0
- package/dist/features/crud/operations/Upsert.js.map +1 -1
- package/dist/features/crud/operations/UpsertBulk.js +17 -0
- package/dist/features/crud/operations/UpsertBulk.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PushCrudEvent = void 0;
|
|
4
|
+
const config_1 = require("../../../config");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
const PushCrudEvent = (action) => (apiInstance) => {
|
|
7
|
+
if (!config_1.ApiConfigs.eventBus)
|
|
8
|
+
return;
|
|
9
|
+
return (response) => config_1.ApiConfigs.eventBus.publish(constants_1.CrudEventChannel, action, {
|
|
10
|
+
object: apiInstance === null || apiInstance === void 0 ? void 0 : apiInstance.getObjectName(),
|
|
11
|
+
records: response === null || response === void 0 ? void 0 : response.data
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
exports.PushCrudEvent = PushCrudEvent;
|
|
15
|
+
//# sourceMappingURL=PushCrudEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PushCrudEvent.js","sourceRoot":"","sources":["../../../../src/features/crud/middlewares/PushCrudEvent.ts"],"names":[],"mappings":";;;AAEA,4CAA2C;AAE3C,4CAA2D;AAEpD,MAAM,aAAa,GAAG,CAAC,MAAmB,EAA4C,EAAE,CAAC,CAAC,WAAW,EAAoB,EAAE;IAChI,IAAI,CAAC,mBAAU,CAAC,QAAQ;QAAE,OAAO;IAEjC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,mBAAU,CAAC,QAAQ,CAAC,OAAO,CAC9C,4BAAgB,EAChB,MAAM,EACN;QACE,MAAM,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,aAAa,EAAE;QACpC,OAAO,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI;KACxB,CACF,CAAC;AACJ,CAAC,CAAA;AAXY,QAAA,aAAa,iBAWzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PushCrudEvent';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PushCrudEvent"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.Create = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class Create extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
create(entity) {
|
|
7
18
|
return {
|
|
@@ -13,5 +24,11 @@ class Create extends abstract_1.AbstractCRUDRequest {
|
|
|
13
24
|
}
|
|
14
25
|
;
|
|
15
26
|
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("create")),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [Object]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], Create.prototype, "create", null);
|
|
16
33
|
exports.Create = Create;
|
|
17
34
|
//# sourceMappingURL=Create.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Create.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAG7C,MAAsB,MAAO,SAAQ,8BAAmB;IAG/C,MAAM,CAAC,MAAW;QACvB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;YAC/B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,WAAoB,CAAC;;;;oCAQvD;AAVH,wBAYC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.CreateBulk = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class CreateBulk extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
createBulk(entities) {
|
|
7
18
|
return {
|
|
@@ -13,5 +24,11 @@ class CreateBulk extends abstract_1.AbstractCRUDRequest {
|
|
|
13
24
|
}
|
|
14
25
|
;
|
|
15
26
|
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("create_bulk")),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [Array]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], CreateBulk.prototype, "createBulk", null);
|
|
16
33
|
exports.CreateBulk = CreateBulk;
|
|
17
34
|
//# sourceMappingURL=CreateBulk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/CreateBulk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/CreateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0CAAgD;AAChD,2CAAmD;AACnD,gDAA6C;AAG7C,MAAsB,UAAW,SAAQ,8BAAmB;IAGnD,UAAU,CAAC,QAAoB;QACpC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,OAAO;YACpC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,gBAAwB,CAAC;;qCAChC,KAAK;;4CAOhC;AAVH,gCAYC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.DeleteById = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class DeleteById extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
deleteById(entityId) {
|
|
7
18
|
return {
|
|
@@ -12,5 +23,11 @@ class DeleteById extends abstract_1.AbstractCRUDRequest {
|
|
|
12
23
|
}
|
|
13
24
|
;
|
|
14
25
|
}
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("delete")),
|
|
28
|
+
__metadata("design:type", Function),
|
|
29
|
+
__metadata("design:paramtypes", [String]),
|
|
30
|
+
__metadata("design:returntype", Object)
|
|
31
|
+
], DeleteById.prototype, "deleteById", null);
|
|
15
32
|
exports.DeleteById = DeleteById;
|
|
16
33
|
//# sourceMappingURL=DeleteById.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteById.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/DeleteById.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteById.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/DeleteById.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AAEnD,gDAA6C;AAE7C,MAAsB,UAAW,SAAQ,8BAAmB;IAGnD,UAAU,CAAC,QAAgB;QAChC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,IAAI,QAAQ,EAAE;YAC3C,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,WAAoB,CAAC;;;;4CAOvD;AATH,gCAWC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.DeleteByIds = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class DeleteByIds extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
deleteByIds(entityIds) {
|
|
7
18
|
return {
|
|
@@ -12,5 +23,11 @@ class DeleteByIds extends abstract_1.AbstractCRUDRequest {
|
|
|
12
23
|
}
|
|
13
24
|
;
|
|
14
25
|
}
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("delete_bulk")),
|
|
28
|
+
__metadata("design:type", Function),
|
|
29
|
+
__metadata("design:paramtypes", [Array]),
|
|
30
|
+
__metadata("design:returntype", Object)
|
|
31
|
+
], DeleteByIds.prototype, "deleteByIds", null);
|
|
15
32
|
exports.DeleteByIds = DeleteByIds;
|
|
16
33
|
//# sourceMappingURL=DeleteByIds.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteByIds.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/DeleteByIds.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteByIds.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/DeleteByIds.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAG7C,MAAsB,WAAY,SAAQ,8BAAmB;IAGpD,WAAW,CAAC,SAAwB;QACzC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,SAAS,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YAC5D,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,gBAAwB,CAAC;;qCAC9B,KAAK;;8CAMlC;AATH,kCAWC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.Update = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class Update extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
update(entity) {
|
|
7
18
|
return {
|
|
@@ -13,5 +24,11 @@ class Update extends abstract_1.AbstractCRUDRequest {
|
|
|
13
24
|
}
|
|
14
25
|
;
|
|
15
26
|
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("update")),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [Object]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], Update.prototype, "update", null);
|
|
16
33
|
exports.Update = Update;
|
|
17
34
|
//# sourceMappingURL=Update.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Update.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAG7C,MAAsB,MAAO,SAAQ,8BAAmB;IAG/C,MAAM,CAAC,MAAW;QACvB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;YAC/B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,WAAoB,CAAC;;;;oCAQvD;AAVH,wBAYC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.UpdateBulk = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class UpdateBulk extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
updateBulk(entities) {
|
|
7
18
|
return {
|
|
@@ -13,5 +24,11 @@ class UpdateBulk extends abstract_1.AbstractCRUDRequest {
|
|
|
13
24
|
}
|
|
14
25
|
;
|
|
15
26
|
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("update_bulk")),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [Array]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], UpdateBulk.prototype, "updateBulk", null);
|
|
16
33
|
exports.UpdateBulk = UpdateBulk;
|
|
17
34
|
//# sourceMappingURL=UpdateBulk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/UpdateBulk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/UpdateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAG7C,MAAsB,UAAW,SAAQ,8BAAmB;IAGnD,UAAU,CAAC,QAAoB;QACpC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,OAAO;YACpC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,gBAAwB,CAAC;;qCAChC,KAAK;;4CAOhC;AAVH,gCAYC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.Upsert = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class Upsert extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
upsert(entity) {
|
|
7
18
|
return {
|
|
@@ -13,5 +24,11 @@ class Upsert extends abstract_1.AbstractCRUDRequest {
|
|
|
13
24
|
}
|
|
14
25
|
;
|
|
15
26
|
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("upsert")),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [Object]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], Upsert.prototype, "upsert", null);
|
|
16
33
|
exports.Upsert = Upsert;
|
|
17
34
|
//# sourceMappingURL=Upsert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Upsert.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Upsert.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Upsert.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Upsert.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAG7C,MAAsB,MAAO,SAAQ,8BAAmB;IAG/C,MAAM,CAAC,MAAW;QACvB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;YAC/B,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,WAAoB,CAAC;;;;oCAQvD;AAVH,wBAYC"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.UpsertBulk = void 0;
|
|
4
13
|
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
5
16
|
class UpsertBulk extends abstract_1.AbstractCRUDRequest {
|
|
6
17
|
upsertBulk(entities) {
|
|
7
18
|
return {
|
|
@@ -13,5 +24,11 @@ class UpsertBulk extends abstract_1.AbstractCRUDRequest {
|
|
|
13
24
|
}
|
|
14
25
|
;
|
|
15
26
|
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)("upsert_bulk")),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [Array]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], UpsertBulk.prototype, "upsertBulk", null);
|
|
16
33
|
exports.UpsertBulk = UpsertBulk;
|
|
17
34
|
//# sourceMappingURL=UpsertBulk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpsertBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/UpsertBulk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpsertBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/UpsertBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAG7C,MAAsB,UAAW,SAAQ,8BAAmB;IAGnD,UAAU,CAAC,QAAoB;QACpC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,OAAO;YACpC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,8BAAoB,EAAC,IAAA,2BAAa,gBAAwB,CAAC;;qCAChC,KAAK;;4CAOhC;AAVH,gCAYC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,8 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./api"), exports);
|
|
18
18
|
__exportStar(require("./features"), exports);
|
|
19
19
|
__exportStar(require("./Api"), exports);
|
|
20
|
-
__exportStar(require("./RawApi"), exports);
|
|
21
20
|
__exportStar(require("./types"), exports);
|
|
22
21
|
__exportStar(require("./entities"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
22
|
+
__exportStar(require("./config"), exports);
|
|
24
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,wCAAsB;AACtB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,6CAA2B;AAC3B,wCAAsB;AACtB,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB"}
|