@buildery/ts-api-kit 5.1.13 → 5.1.14
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 +3 -1
- package/dist/Api.js +1 -1
- package/dist/Api.js.map +1 -1
- package/dist/RawApi.d.ts +15 -0
- package/dist/RawApi.js +19 -0
- package/dist/RawApi.js.map +1 -0
- 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.d.ts +22 -0
- package/dist/entities/auth/config/AuthApi.js +80 -0
- package/dist/entities/auth/config/AuthApi.js.map +1 -0
- package/dist/entities/auth/config/index.d.ts +1 -0
- package/dist/entities/auth/config/index.js +18 -0
- package/dist/entities/auth/config/index.js.map +1 -0
- package/dist/entities/auth/errors/AuthError.d.ts +3 -0
- package/dist/entities/auth/errors/AuthError.js +10 -0
- package/dist/entities/auth/errors/AuthError.js.map +1 -0
- package/dist/entities/auth/errors/index.d.ts +1 -0
- package/dist/entities/auth/errors/index.js +18 -0
- package/dist/entities/auth/errors/index.js.map +1 -0
- package/dist/entities/auth/index.d.ts +4 -0
- package/dist/entities/auth/index.js +21 -0
- package/dist/entities/auth/index.js.map +1 -0
- package/dist/entities/auth/services/AuthAxiosService.d.ts +7 -0
- package/dist/entities/auth/services/AuthAxiosService.js +39 -0
- package/dist/entities/auth/services/AuthAxiosService.js.map +1 -0
- package/dist/entities/auth/services/AuthService.d.ts +4 -0
- package/dist/entities/auth/services/AuthService.js +24 -0
- package/dist/entities/auth/services/AuthService.js.map +1 -0
- package/dist/entities/auth/services/AuthTokensService.d.ts +11 -0
- package/dist/entities/auth/services/AuthTokensService.js +36 -0
- package/dist/entities/auth/services/AuthTokensService.js.map +1 -0
- package/dist/entities/auth/services/index.d.ts +3 -0
- package/dist/entities/auth/services/index.js +20 -0
- package/dist/entities/auth/services/index.js.map +1 -0
- package/dist/entities/auth/types/AuthActivateUser.d.ts +5 -0
- package/dist/entities/auth/types/AuthActivateUser.js +3 -0
- package/dist/entities/auth/types/AuthActivateUser.js.map +1 -0
- package/dist/entities/auth/types/AuthApiTokens.d.ts +4 -0
- package/dist/entities/auth/types/AuthApiTokens.js +3 -0
- package/dist/entities/auth/types/AuthApiTokens.js.map +1 -0
- package/dist/entities/auth/types/AuthChangePassword.d.ts +5 -0
- package/dist/entities/auth/types/AuthChangePassword.js +3 -0
- package/dist/entities/auth/types/AuthChangePassword.js.map +1 -0
- package/dist/entities/auth/types/AuthCode.d.ts +4 -0
- package/dist/entities/auth/types/AuthCode.js +3 -0
- package/dist/entities/auth/types/AuthCode.js.map +1 -0
- package/dist/entities/auth/types/AuthConfirmResetPassword.d.ts +4 -0
- package/dist/entities/auth/types/AuthConfirmResetPassword.js +3 -0
- package/dist/entities/auth/types/AuthConfirmResetPassword.js.map +1 -0
- package/dist/entities/auth/types/AuthSignIn.d.ts +4 -0
- package/dist/entities/auth/types/AuthSignIn.js +3 -0
- package/dist/entities/auth/types/AuthSignIn.js.map +1 -0
- package/dist/entities/auth/types/AuthUserJWT.d.ts +8 -0
- package/dist/entities/auth/types/AuthUserJWT.js +3 -0
- package/dist/entities/auth/types/AuthUserJWT.js.map +1 -0
- package/dist/entities/auth/types/index.d.ts +7 -0
- package/dist/entities/auth/types/index.js +24 -0
- package/dist/entities/auth/types/index.js.map +1 -0
- package/dist/entities/index.d.ts +6 -0
- package/dist/entities/index.js +23 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/module/config/ModuleApi.d.ts +10 -0
- package/dist/entities/module/config/ModuleApi.js +44 -0
- package/dist/entities/module/config/ModuleApi.js.map +1 -0
- package/dist/entities/module/config/index.d.ts +1 -0
- package/dist/entities/module/config/index.js +18 -0
- package/dist/entities/module/config/index.js.map +1 -0
- package/dist/entities/module/index.d.ts +2 -0
- package/dist/entities/module/index.js +19 -0
- package/dist/entities/module/index.js.map +1 -0
- package/dist/entities/module/types/IModule.d.ts +12 -0
- package/dist/entities/module/types/IModule.js +3 -0
- package/dist/entities/module/types/IModule.js.map +1 -0
- package/dist/entities/module/types/ModuleObjectNames.d.ts +3 -0
- package/dist/entities/module/types/ModuleObjectNames.js +7 -0
- package/dist/entities/module/types/ModuleObjectNames.js.map +1 -0
- package/dist/entities/module/types/index.d.ts +2 -0
- package/dist/entities/module/types/index.js +19 -0
- package/dist/entities/module/types/index.js.map +1 -0
- package/dist/entities/schema/config/FieldApi.d.ts +12 -0
- package/dist/entities/schema/config/FieldApi.js +44 -0
- package/dist/entities/schema/config/FieldApi.js.map +1 -0
- package/dist/entities/schema/config/ObjectApi.d.ts +6 -0
- package/dist/entities/schema/config/ObjectApi.js +21 -0
- package/dist/entities/schema/config/ObjectApi.js.map +1 -0
- package/dist/entities/schema/config/index.d.ts +2 -0
- package/dist/entities/schema/config/index.js +19 -0
- package/dist/entities/schema/config/index.js.map +1 -0
- package/dist/entities/schema/index.d.ts +2 -0
- package/dist/entities/schema/index.js +19 -0
- package/dist/entities/schema/index.js.map +1 -0
- package/dist/entities/schema/types/FieldType.d.ts +9 -0
- package/dist/entities/schema/types/FieldType.js +14 -0
- package/dist/entities/schema/types/FieldType.js.map +1 -0
- package/dist/entities/schema/types/PicklistValue.d.ts +4 -0
- package/dist/entities/schema/types/PicklistValue.js +3 -0
- package/dist/entities/schema/types/PicklistValue.js.map +1 -0
- package/dist/entities/schema/types/SObject.d.ts +7 -0
- package/dist/entities/schema/types/SObject.js +3 -0
- package/dist/entities/schema/types/SObject.js.map +1 -0
- package/dist/entities/schema/types/SObjectField.d.ts +30 -0
- package/dist/entities/schema/types/SObjectField.js +3 -0
- package/dist/entities/schema/types/SObjectField.js.map +1 -0
- package/dist/entities/schema/types/SchemaObjectNames.d.ts +4 -0
- package/dist/entities/schema/types/SchemaObjectNames.js +8 -0
- package/dist/entities/schema/types/SchemaObjectNames.js.map +1 -0
- package/dist/entities/schema/types/index.d.ts +5 -0
- package/dist/entities/schema/types/index.js +22 -0
- package/dist/entities/schema/types/index.js.map +1 -0
- package/dist/entities/security/config/PermissionApi.d.ts +9 -0
- package/dist/entities/security/config/PermissionApi.js +36 -0
- package/dist/entities/security/config/PermissionApi.js.map +1 -0
- package/dist/entities/security/config/PermissionAssignmentApi.d.ts +6 -0
- package/dist/entities/security/config/PermissionAssignmentApi.js +21 -0
- package/dist/entities/security/config/PermissionAssignmentApi.js.map +1 -0
- package/dist/entities/security/config/PermissionCategoryApi.d.ts +8 -0
- package/dist/entities/security/config/PermissionCategoryApi.js +38 -0
- package/dist/entities/security/config/PermissionCategoryApi.js.map +1 -0
- package/dist/entities/security/config/PermissionDefinitionApi.d.ts +6 -0
- package/dist/entities/security/config/PermissionDefinitionApi.js +21 -0
- package/dist/entities/security/config/PermissionDefinitionApi.js.map +1 -0
- package/dist/entities/security/config/PermissionGroupApi.d.ts +6 -0
- package/dist/entities/security/config/PermissionGroupApi.js +21 -0
- package/dist/entities/security/config/PermissionGroupApi.js.map +1 -0
- package/dist/entities/security/config/PermissionSetApi.d.ts +6 -0
- package/dist/entities/security/config/PermissionSetApi.js +21 -0
- package/dist/entities/security/config/PermissionSetApi.js.map +1 -0
- package/dist/entities/security/config/index.d.ts +6 -0
- package/dist/entities/security/config/index.js +23 -0
- package/dist/entities/security/config/index.js.map +1 -0
- package/dist/entities/security/index.d.ts +2 -0
- package/dist/entities/security/index.js +19 -0
- package/dist/entities/security/index.js.map +1 -0
- package/dist/entities/security/types/IPermission.d.ts +10 -0
- package/dist/entities/security/types/IPermission.js +3 -0
- package/dist/entities/security/types/IPermission.js.map +1 -0
- package/dist/entities/security/types/IPermissionAssignment.d.ts +6 -0
- package/dist/entities/security/types/IPermissionAssignment.js +3 -0
- package/dist/entities/security/types/IPermissionAssignment.js.map +1 -0
- package/dist/entities/security/types/IPermissionCategory.d.ts +5 -0
- package/dist/entities/security/types/IPermissionCategory.js +3 -0
- package/dist/entities/security/types/IPermissionCategory.js.map +1 -0
- package/dist/entities/security/types/IPermissionDefinition.d.ts +6 -0
- package/dist/entities/security/types/IPermissionDefinition.js +3 -0
- package/dist/entities/security/types/IPermissionDefinition.js.map +1 -0
- package/dist/entities/security/types/IPermissionGroup.d.ts +4 -0
- package/dist/entities/security/types/IPermissionGroup.js +3 -0
- package/dist/entities/security/types/IPermissionGroup.js.map +1 -0
- package/dist/entities/security/types/IPermissionSet.d.ts +6 -0
- package/dist/entities/security/types/IPermissionSet.js +3 -0
- package/dist/entities/security/types/IPermissionSet.js.map +1 -0
- package/dist/entities/security/types/SecurityObjectNames.d.ts +8 -0
- package/dist/entities/security/types/SecurityObjectNames.js +12 -0
- package/dist/entities/security/types/SecurityObjectNames.js.map +1 -0
- package/dist/entities/security/types/index.d.ts +7 -0
- package/dist/entities/security/types/index.js +24 -0
- package/dist/entities/security/types/index.js.map +1 -0
- package/dist/entities/user/config/UserApi.d.ts +6 -0
- package/dist/entities/user/config/UserApi.js +23 -0
- package/dist/entities/user/config/UserApi.js.map +1 -0
- package/dist/entities/user/config/index.d.ts +1 -0
- package/dist/entities/user/config/index.js +18 -0
- package/dist/entities/user/config/index.js.map +1 -0
- package/dist/entities/user/index.d.ts +2 -0
- package/dist/entities/user/index.js +19 -0
- package/dist/entities/user/index.js.map +1 -0
- package/dist/entities/user/types/CreateUser.d.ts +5 -0
- package/dist/entities/user/types/CreateUser.js +3 -0
- package/dist/entities/user/types/CreateUser.js.map +1 -0
- package/dist/entities/user/types/EUserStatus.d.ts +5 -0
- package/dist/entities/user/types/EUserStatus.js +10 -0
- package/dist/entities/user/types/EUserStatus.js.map +1 -0
- package/dist/entities/user/types/User.d.ts +8 -0
- package/dist/entities/user/types/User.js +3 -0
- package/dist/entities/user/types/User.js.map +1 -0
- package/dist/entities/user/types/index.d.ts +3 -0
- package/dist/entities/user/types/index.js +20 -0
- package/dist/entities/user/types/index.js.map +1 -0
- package/dist/entities/workspace/config/WorkspaceApi.d.ts +10 -0
- package/dist/entities/workspace/config/WorkspaceApi.js +27 -0
- package/dist/entities/workspace/config/WorkspaceApi.js.map +1 -0
- package/dist/entities/workspace/config/index.d.ts +1 -0
- package/dist/entities/workspace/config/index.js +18 -0
- package/dist/entities/workspace/config/index.js.map +1 -0
- package/dist/entities/workspace/index.d.ts +2 -0
- package/dist/entities/workspace/index.js +19 -0
- package/dist/entities/workspace/index.js.map +1 -0
- package/dist/entities/workspace/types/InitWorkspace.d.ts +6 -0
- package/dist/entities/workspace/types/InitWorkspace.js +3 -0
- package/dist/entities/workspace/types/InitWorkspace.js.map +1 -0
- package/dist/entities/workspace/types/index.d.ts +1 -0
- package/dist/entities/workspace/types/index.js +18 -0
- package/dist/entities/workspace/types/index.js.map +1 -0
- package/dist/features/bind-this/BindThis.d.ts +3 -0
- package/dist/features/bind-this/BindThis.js +11 -0
- package/dist/features/bind-this/BindThis.js.map +1 -0
- package/dist/features/bind-this/index.d.ts +1 -0
- package/dist/features/bind-this/index.js +18 -0
- package/dist/features/bind-this/index.js.map +1 -0
- package/dist/features/callout/Calloutable.d.ts +4 -0
- package/dist/features/callout/Calloutable.js +28 -0
- package/dist/features/callout/Calloutable.js.map +1 -0
- 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/crud/abstract/AbstractCRUDRequest.d.ts +4 -0
- package/dist/features/crud/abstract/AbstractCRUDRequest.js +11 -0
- package/dist/features/crud/abstract/AbstractCRUDRequest.js.map +1 -0
- package/dist/features/crud/abstract/index.d.ts +1 -0
- package/dist/features/crud/abstract/index.js +18 -0
- package/dist/features/crud/abstract/index.js.map +1 -0
- package/dist/features/crud/constants/CrudActions.d.ts +10 -0
- package/dist/features/crud/constants/CrudActions.js +15 -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.d.ts +5 -0
- package/dist/features/crud/operations/Create.js +35 -0
- package/dist/features/crud/operations/Create.js.map +1 -0
- package/dist/features/crud/operations/CreateBulk.d.ts +5 -0
- package/dist/features/crud/operations/CreateBulk.js +35 -0
- package/dist/features/crud/operations/CreateBulk.js.map +1 -0
- package/dist/features/crud/operations/DeleteById.d.ts +5 -0
- package/dist/features/crud/operations/DeleteById.js +34 -0
- package/dist/features/crud/operations/DeleteById.js.map +1 -0
- package/dist/features/crud/operations/DeleteByIds.d.ts +5 -0
- package/dist/features/crud/operations/DeleteByIds.js +34 -0
- package/dist/features/crud/operations/DeleteByIds.js.map +1 -0
- package/dist/features/crud/operations/GetAll.d.ts +5 -0
- package/dist/features/crud/operations/GetAll.js +16 -0
- package/dist/features/crud/operations/GetAll.js.map +1 -0
- package/dist/features/crud/operations/GetById.d.ts +5 -0
- package/dist/features/crud/operations/GetById.js +16 -0
- package/dist/features/crud/operations/GetById.js.map +1 -0
- package/dist/features/crud/operations/GetByIds.d.ts +5 -0
- package/dist/features/crud/operations/GetByIds.js +17 -0
- package/dist/features/crud/operations/GetByIds.js.map +1 -0
- package/dist/features/crud/operations/Update.d.ts +5 -0
- package/dist/features/crud/operations/Update.js +35 -0
- package/dist/features/crud/operations/Update.js.map +1 -0
- package/dist/features/crud/operations/UpdateBulk.d.ts +5 -0
- package/dist/features/crud/operations/UpdateBulk.js +35 -0
- package/dist/features/crud/operations/UpdateBulk.js.map +1 -0
- package/dist/features/crud/operations/Upsert.d.ts +5 -0
- package/dist/features/crud/operations/Upsert.js +35 -0
- package/dist/features/crud/operations/Upsert.js.map +1 -0
- package/dist/features/crud/operations/UpsertBulk.d.ts +5 -0
- package/dist/features/crud/operations/UpsertBulk.js +35 -0
- package/dist/features/crud/operations/UpsertBulk.js.map +1 -0
- package/dist/features/crud/templates/FullCRUD.d.ts +9 -0
- package/dist/features/crud/templates/FullCRUD.js +13 -0
- package/dist/features/crud/templates/FullCRUD.js.map +1 -0
- package/dist/features/crud/templates/FullCreate.d.ts +6 -0
- package/dist/features/crud/templates/FullCreate.js +10 -0
- package/dist/features/crud/templates/FullCreate.js.map +1 -0
- package/dist/features/crud/templates/FullDelete.d.ts +6 -0
- package/dist/features/crud/templates/FullDelete.js +10 -0
- package/dist/features/crud/templates/FullDelete.js.map +1 -0
- package/dist/features/crud/templates/FullQuery.d.ts +7 -0
- package/dist/features/crud/templates/FullQuery.js +11 -0
- package/dist/features/crud/templates/FullQuery.js.map +1 -0
- package/dist/features/crud/templates/FullUpdate.d.ts +6 -0
- package/dist/features/crud/templates/FullUpdate.js +10 -0
- package/dist/features/crud/templates/FullUpdate.js.map +1 -0
- package/dist/features/crud/templates/FullUpsert.d.ts +6 -0
- package/dist/features/crud/templates/FullUpsert.js +10 -0
- package/dist/features/crud/templates/FullUpsert.js.map +1 -0
- package/dist/features/crud/templates/index.d.ts +6 -0
- package/dist/features/crud/templates/index.js +23 -0
- package/dist/features/crud/templates/index.js.map +1 -0
- package/dist/micro/security/PermissionSetApi.d.ts +7 -0
- package/dist/micro/security/PermissionSetApi.js +47 -0
- package/dist/micro/security/PermissionSetApi.js.map +1 -0
- package/dist/micro/security/index.d.ts +1 -0
- package/dist/micro/security/index.js +1 -0
- package/dist/micro/security/index.js.map +1 -1
- package/dist/micro/security/types/PermissionSetAssignment.d.ts +4 -0
- package/dist/micro/security/types/PermissionSetAssignment.js +3 -0
- package/dist/micro/security/types/PermissionSetAssignment.js.map +1 -0
- package/dist/micro/security/types/index.d.ts +1 -0
- package/dist/micro/security/types/index.js +1 -0
- package/dist/micro/security/types/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DeleteById = void 0;
|
|
13
|
+
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const constants_1 = require("../constants");
|
|
16
|
+
const middlewares_1 = require("../middlewares");
|
|
17
|
+
class DeleteById extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
deleteById(entityId) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}/${entityId}`,
|
|
22
|
+
method: 'DELETE'
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
;
|
|
26
|
+
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.Delete)),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [String]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], DeleteById.prototype, "deleteById", null);
|
|
33
|
+
exports.DeleteById = DeleteById;
|
|
34
|
+
//# sourceMappingURL=DeleteById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteById.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/DeleteById.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,4CAAyC;AACzC,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,EAAC,uBAAW,CAAC,MAAM,CAAC,CAAC;;;;4CAOvD;AATH,gCAWC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DeleteByIds = void 0;
|
|
13
|
+
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
16
|
+
const constants_1 = require("../constants");
|
|
17
|
+
class DeleteByIds extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
deleteByIds(entityIds) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}/bulk/${entityIds === null || entityIds === void 0 ? void 0 : entityIds.join(',')}`,
|
|
22
|
+
method: 'DELETE'
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
;
|
|
26
|
+
}
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.DeleteBulk)),
|
|
29
|
+
__metadata("design:type", Function),
|
|
30
|
+
__metadata("design:paramtypes", [Array]),
|
|
31
|
+
__metadata("design:returntype", Object)
|
|
32
|
+
], DeleteByIds.prototype, "deleteByIds", null);
|
|
33
|
+
exports.DeleteByIds = DeleteByIds;
|
|
34
|
+
//# sourceMappingURL=DeleteByIds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeleteByIds.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/DeleteByIds.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAC7C,4CAAyC;AAEzC,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,EAAC,uBAAW,CAAC,UAAU,CAAC,CAAC;;qCAC9B,KAAK;;8CAMlC;AATH,kCAWC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAll = void 0;
|
|
4
|
+
const abstract_1 = require("../abstract");
|
|
5
|
+
class GetAll extends abstract_1.AbstractCRUDRequest {
|
|
6
|
+
getAll() {
|
|
7
|
+
return {
|
|
8
|
+
baseURL: this.getApiUrl(),
|
|
9
|
+
url: `/${this.getObjectName()}`,
|
|
10
|
+
method: 'GET'
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
;
|
|
14
|
+
}
|
|
15
|
+
exports.GetAll = GetAll;
|
|
16
|
+
//# sourceMappingURL=GetAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetAll.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/GetAll.ts"],"names":[],"mappings":";;;AAAA,0CAAgD;AAGhD,MAAsB,MAAO,SAAQ,8BAAmB;IAE/C,MAAM;QACX,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,EAAE;YAC/B,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVD,wBAUC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetById = void 0;
|
|
4
|
+
const abstract_1 = require("../abstract");
|
|
5
|
+
class GetById extends abstract_1.AbstractCRUDRequest {
|
|
6
|
+
getById(entityId) {
|
|
7
|
+
return {
|
|
8
|
+
baseURL: this.getApiUrl(),
|
|
9
|
+
url: `/${this.getObjectName()}/${entityId}`,
|
|
10
|
+
method: 'GET',
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
;
|
|
14
|
+
}
|
|
15
|
+
exports.GetById = GetById;
|
|
16
|
+
//# sourceMappingURL=GetById.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetById.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/GetById.ts"],"names":[],"mappings":";;;AAAA,0CAAgD;AAGhD,MAAsB,OAAQ,SAAQ,8BAAmB;IAEhD,OAAO,CAAC,QAAgB;QAC7B,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,IAAI,QAAQ,EAAE;YAC3C,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVD,0BAUC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetByIds = void 0;
|
|
4
|
+
const abstract_1 = require("../abstract");
|
|
5
|
+
class GetByIds extends abstract_1.AbstractCRUDRequest {
|
|
6
|
+
getByIds(entityIds) {
|
|
7
|
+
return {
|
|
8
|
+
baseURL: this.getApiUrl(),
|
|
9
|
+
url: `/${this.getObjectName()}/ids`,
|
|
10
|
+
method: 'POST',
|
|
11
|
+
data: entityIds
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
;
|
|
15
|
+
}
|
|
16
|
+
exports.GetByIds = GetByIds;
|
|
17
|
+
//# sourceMappingURL=GetByIds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetByIds.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/GetByIds.ts"],"names":[],"mappings":";;;AAAA,0CAAgD;AAGhD,MAAsB,QAAS,SAAQ,8BAAmB;IAEjD,QAAQ,CAAC,SAAwB;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE;YACzB,GAAG,EAAE,IAAI,IAAI,CAAC,aAAa,EAAE,MAAM;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAXD,4BAWC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Update = void 0;
|
|
13
|
+
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
16
|
+
const constants_1 = require("../constants");
|
|
17
|
+
class Update extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
update(entity) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}`,
|
|
22
|
+
method: 'PATCH',
|
|
23
|
+
data: entity
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.Update)),
|
|
30
|
+
__metadata("design:type", Function),
|
|
31
|
+
__metadata("design:paramtypes", [Object]),
|
|
32
|
+
__metadata("design:returntype", Object)
|
|
33
|
+
], Update.prototype, "update", null);
|
|
34
|
+
exports.Update = Update;
|
|
35
|
+
//# sourceMappingURL=Update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAC7C,4CAAyC;AAEzC,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,EAAC,uBAAW,CAAC,MAAM,CAAC,CAAC;;;;oCAQvD;AAVH,wBAYC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateBulk = void 0;
|
|
13
|
+
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
16
|
+
const constants_1 = require("../constants");
|
|
17
|
+
class UpdateBulk extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
updateBulk(entities) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}/bulk`,
|
|
22
|
+
method: 'PATCH',
|
|
23
|
+
data: entities
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.UpdateBulk)),
|
|
30
|
+
__metadata("design:type", Function),
|
|
31
|
+
__metadata("design:paramtypes", [Array]),
|
|
32
|
+
__metadata("design:returntype", Object)
|
|
33
|
+
], UpdateBulk.prototype, "updateBulk", null);
|
|
34
|
+
exports.UpdateBulk = UpdateBulk;
|
|
35
|
+
//# sourceMappingURL=UpdateBulk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/UpdateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAC7C,4CAAyC;AAEzC,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,EAAC,uBAAW,CAAC,UAAU,CAAC,CAAC;;qCAChC,KAAK;;4CAOhC;AAVH,gCAYC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Upsert = void 0;
|
|
13
|
+
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
16
|
+
const constants_1 = require("../constants");
|
|
17
|
+
class Upsert extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
upsert(entity) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}`,
|
|
22
|
+
method: 'PUT',
|
|
23
|
+
data: entity
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.Upsert)),
|
|
30
|
+
__metadata("design:type", Function),
|
|
31
|
+
__metadata("design:paramtypes", [Object]),
|
|
32
|
+
__metadata("design:returntype", Object)
|
|
33
|
+
], Upsert.prototype, "upsert", null);
|
|
34
|
+
exports.Upsert = Upsert;
|
|
35
|
+
//# sourceMappingURL=Upsert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Upsert.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Upsert.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAC7C,4CAAyC;AAEzC,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,EAAC,uBAAW,CAAC,MAAM,CAAC,CAAC;;;;oCAQvD;AAVH,wBAYC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpsertBulk = void 0;
|
|
13
|
+
const abstract_1 = require("../abstract");
|
|
14
|
+
const callout_1 = require("../../callout");
|
|
15
|
+
const middlewares_1 = require("../middlewares");
|
|
16
|
+
const constants_1 = require("../constants");
|
|
17
|
+
class UpsertBulk extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
upsertBulk(entities) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}/bulk`,
|
|
22
|
+
method: 'PUT',
|
|
23
|
+
data: entities
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.UpsertBulk)),
|
|
30
|
+
__metadata("design:type", Function),
|
|
31
|
+
__metadata("design:paramtypes", [Array]),
|
|
32
|
+
__metadata("design:returntype", Object)
|
|
33
|
+
], UpsertBulk.prototype, "upsertBulk", null);
|
|
34
|
+
exports.UpsertBulk = UpsertBulk;
|
|
35
|
+
//# sourceMappingURL=UpsertBulk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpsertBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/UpsertBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAgD;AAEhD,2CAAmD;AACnD,gDAA6C;AAC7C,4CAAyC;AAEzC,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,EAAC,uBAAW,CAAC,UAAU,CAAC,CAAC;;qCAChC,KAAK;;4CAOhC;AAVH,gCAYC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FullQuery } from "./FullQuery";
|
|
2
|
+
import { FullCreate } from "./FullCreate";
|
|
3
|
+
import { FullUpdate } from "./FullUpdate";
|
|
4
|
+
import { FullUpsert } from "./FullUpsert";
|
|
5
|
+
import { FullDelete } from "./FullDelete";
|
|
6
|
+
declare const FullCRUD_base: import("ts-mixer/dist/types/types").Class<any[], FullQuery & FullCreate & FullUpdate & FullUpsert & FullDelete, typeof FullQuery & typeof FullCreate & typeof FullUpdate & typeof FullUpsert & typeof FullDelete, false>;
|
|
7
|
+
export declare abstract class FullCRUD<T> extends FullCRUD_base {
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FullCRUD = void 0;
|
|
4
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
5
|
+
const FullQuery_1 = require("./FullQuery");
|
|
6
|
+
const FullCreate_1 = require("./FullCreate");
|
|
7
|
+
const FullUpdate_1 = require("./FullUpdate");
|
|
8
|
+
const FullUpsert_1 = require("./FullUpsert");
|
|
9
|
+
const FullDelete_1 = require("./FullDelete");
|
|
10
|
+
class FullCRUD extends (0, ts_mixer_1.Mixin)(FullQuery_1.FullQuery, FullCreate_1.FullCreate, FullUpdate_1.FullUpdate, FullUpsert_1.FullUpsert, FullDelete_1.FullDelete) {
|
|
11
|
+
}
|
|
12
|
+
exports.FullCRUD = FullCRUD;
|
|
13
|
+
//# sourceMappingURL=FullCRUD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullCRUD.js","sourceRoot":"","sources":["../../../../src/features/crud/templates/FullCRUD.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,2CAAsC;AACtC,6CAAwC;AACxC,6CAAwC;AACxC,6CAAwC;AACxC,6CAAwC;AAExC,MAAsB,QAAY,SAAQ,IAAA,gBAAK,EAAC,qBAAS,EAAE,uBAAU,EAAE,uBAAU,EAAE,uBAAU,EAAE,uBAAU,CAAC;CAAG;AAA7G,4BAA6G"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Create } from "../operations";
|
|
2
|
+
import { CreateBulk } from "../operations";
|
|
3
|
+
declare const FullCreate_base: import("ts-mixer/dist/types/types").Class<any[], Create & CreateBulk, typeof Create & typeof CreateBulk, false>;
|
|
4
|
+
export declare abstract class FullCreate extends FullCreate_base {
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FullCreate = void 0;
|
|
4
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
5
|
+
const operations_1 = require("../operations");
|
|
6
|
+
const operations_2 = require("../operations");
|
|
7
|
+
class FullCreate extends (0, ts_mixer_1.Mixin)(operations_1.Create, operations_2.CreateBulk) {
|
|
8
|
+
}
|
|
9
|
+
exports.FullCreate = FullCreate;
|
|
10
|
+
//# sourceMappingURL=FullCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullCreate.js","sourceRoot":"","sources":["../../../../src/features/crud/templates/FullCreate.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,8CAAqC;AACrC,8CAAyC;AAEzC,MAAsB,UAAW,SAAQ,IAAA,gBAAK,EAAC,mBAAM,EAAE,uBAAU,CAAC;CAAG;AAArE,gCAAqE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DeleteById } from "../operations";
|
|
2
|
+
import { DeleteByIds } from "../operations";
|
|
3
|
+
declare const FullDelete_base: import("ts-mixer/dist/types/types").Class<any[], DeleteById & DeleteByIds, typeof DeleteById & typeof DeleteByIds, false>;
|
|
4
|
+
export declare abstract class FullDelete extends FullDelete_base {
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FullDelete = void 0;
|
|
4
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
5
|
+
const operations_1 = require("../operations");
|
|
6
|
+
const operations_2 = require("../operations");
|
|
7
|
+
class FullDelete extends (0, ts_mixer_1.Mixin)(operations_1.DeleteById, operations_2.DeleteByIds) {
|
|
8
|
+
}
|
|
9
|
+
exports.FullDelete = FullDelete;
|
|
10
|
+
//# sourceMappingURL=FullDelete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullDelete.js","sourceRoot":"","sources":["../../../../src/features/crud/templates/FullDelete.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,8CAAyC;AACzC,8CAA0C;AAE1C,MAAsB,UAAW,SAAQ,IAAA,gBAAK,EAAC,uBAAU,EAAE,wBAAW,CAAC;CAAG;AAA1E,gCAA0E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetAll } from "../operations";
|
|
2
|
+
import { GetById } from "../operations";
|
|
3
|
+
import { GetByIds } from "../operations";
|
|
4
|
+
declare const FullQuery_base: import("ts-mixer/dist/types/types").Class<any[], GetAll & GetById & GetByIds, typeof GetAll & typeof GetById & typeof GetByIds, false>;
|
|
5
|
+
export declare abstract class FullQuery extends FullQuery_base {
|
|
6
|
+
}
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FullQuery = void 0;
|
|
4
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
5
|
+
const operations_1 = require("../operations");
|
|
6
|
+
const operations_2 = require("../operations");
|
|
7
|
+
const operations_3 = require("../operations");
|
|
8
|
+
class FullQuery extends (0, ts_mixer_1.Mixin)(operations_1.GetAll, operations_2.GetById, operations_3.GetByIds) {
|
|
9
|
+
}
|
|
10
|
+
exports.FullQuery = FullQuery;
|
|
11
|
+
//# sourceMappingURL=FullQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullQuery.js","sourceRoot":"","sources":["../../../../src/features/crud/templates/FullQuery.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,8CAAqC;AACrC,8CAAsC;AACtC,8CAAuC;AAEvC,MAAsB,SAAU,SAAQ,IAAA,gBAAK,EAAC,mBAAM,EAAE,oBAAO,EAAE,qBAAQ,CAAC;CAAG;AAA3E,8BAA2E"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Update } from "../operations";
|
|
2
|
+
import { UpdateBulk } from "../operations";
|
|
3
|
+
declare const FullUpdate_base: import("ts-mixer/dist/types/types").Class<any[], Update & UpdateBulk, typeof Update & typeof UpdateBulk, false>;
|
|
4
|
+
export declare abstract class FullUpdate extends FullUpdate_base {
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FullUpdate = void 0;
|
|
4
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
5
|
+
const operations_1 = require("../operations");
|
|
6
|
+
const operations_2 = require("../operations");
|
|
7
|
+
class FullUpdate extends (0, ts_mixer_1.Mixin)(operations_1.Update, operations_2.UpdateBulk) {
|
|
8
|
+
}
|
|
9
|
+
exports.FullUpdate = FullUpdate;
|
|
10
|
+
//# sourceMappingURL=FullUpdate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullUpdate.js","sourceRoot":"","sources":["../../../../src/features/crud/templates/FullUpdate.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,8CAAqC;AACrC,8CAAyC;AAEzC,MAAsB,UAAW,SAAQ,IAAA,gBAAK,EAAC,mBAAM,EAAE,uBAAU,CAAC;CAAG;AAArE,gCAAqE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Upsert } from "../operations";
|
|
2
|
+
import { UpsertBulk } from "../operations";
|
|
3
|
+
declare const FullUpsert_base: import("ts-mixer/dist/types/types").Class<any[], Upsert & UpsertBulk, typeof Upsert & typeof UpsertBulk, false>;
|
|
4
|
+
export declare abstract class FullUpsert extends FullUpsert_base {
|
|
5
|
+
}
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FullUpsert = void 0;
|
|
4
|
+
const ts_mixer_1 = require("ts-mixer");
|
|
5
|
+
const operations_1 = require("../operations");
|
|
6
|
+
const operations_2 = require("../operations");
|
|
7
|
+
class FullUpsert extends (0, ts_mixer_1.Mixin)(operations_1.Upsert, operations_2.UpsertBulk) {
|
|
8
|
+
}
|
|
9
|
+
exports.FullUpsert = FullUpsert;
|
|
10
|
+
//# sourceMappingURL=FullUpsert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FullUpsert.js","sourceRoot":"","sources":["../../../../src/features/crud/templates/FullUpsert.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,8CAAqC;AACrC,8CAAyC;AAEzC,MAAsB,UAAW,SAAQ,IAAA,gBAAK,EAAC,mBAAM,EAAE,uBAAU,CAAC;CAAG;AAArE,gCAAqE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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("./FullCreate"), exports);
|
|
18
|
+
__exportStar(require("./FullCRUD"), exports);
|
|
19
|
+
__exportStar(require("./FullDelete"), exports);
|
|
20
|
+
__exportStar(require("./FullQuery"), exports);
|
|
21
|
+
__exportStar(require("./FullUpdate"), exports);
|
|
22
|
+
__exportStar(require("./FullUpsert"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/templates/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { AbstractCRUDApi } from "../../features";
|
|
3
|
+
import { PermissionSetAssignment } from "./types";
|
|
4
|
+
export declare class PermissionSetApi extends AbstractCRUDApi {
|
|
5
|
+
assign(assignment: PermissionSetAssignment): AxiosRequestConfig<any>;
|
|
6
|
+
unAssign(assignment: PermissionSetAssignment): AxiosRequestConfig<any>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PermissionSetApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
const callout_1 = require("../../features/callout");
|
|
15
|
+
const features_2 = require("../../features");
|
|
16
|
+
class PermissionSetApi extends features_2.AbstractCRUDApi {
|
|
17
|
+
assign(assignment) {
|
|
18
|
+
return {
|
|
19
|
+
baseURL: this.serverName,
|
|
20
|
+
url: `/${this.objectName}/assign`,
|
|
21
|
+
method: 'PATCH',
|
|
22
|
+
data: assignment
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
unAssign(assignment) {
|
|
26
|
+
return {
|
|
27
|
+
baseURL: this.serverName,
|
|
28
|
+
url: `/${this.objectName}/unAssign`,
|
|
29
|
+
method: 'PATCH',
|
|
30
|
+
data: assignment
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, callout_1.Calloutable)((0, features_1.PushCrudEvent)(features_1.CrudSyncAction.Update)),
|
|
36
|
+
__metadata("design:type", Function),
|
|
37
|
+
__metadata("design:paramtypes", [Object]),
|
|
38
|
+
__metadata("design:returntype", void 0)
|
|
39
|
+
], PermissionSetApi.prototype, "assign", null);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, callout_1.Calloutable)((0, features_1.PushCrudEvent)(features_1.CrudSyncAction.Update)),
|
|
42
|
+
__metadata("design:type", Function),
|
|
43
|
+
__metadata("design:paramtypes", [Object]),
|
|
44
|
+
__metadata("design:returntype", void 0)
|
|
45
|
+
], PermissionSetApi.prototype, "unAssign", null);
|
|
46
|
+
exports.PermissionSetApi = PermissionSetApi;
|
|
47
|
+
//# sourceMappingURL=PermissionSetApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionSetApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionSetApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA6D;AAC7D,oDAAmD;AACnD,6CAA+C;AAG/C,MAAa,gBAAiB,SAAQ,0BAAe;IAG1C,MAAM,CAAC,UAAmC;QAC7C,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,UAAU;YACxB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,SAAS;YACjC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;SACG,CAAA;IAC3B,CAAC;IAGM,QAAQ,CAAC,UAAmC;QAC/C,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,UAAU;YACxB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,WAAW;YACnC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;SACG,CAAA;IAC3B,CAAC;CAEJ;AApBG;IAAC,IAAA,qBAAW,EAAC,IAAA,wBAAa,EAAC,yBAAc,CAAC,MAAM,CAAC,CAAC;;;;8CAQjD;AAED;IAAC,IAAA,qBAAW,EAAC,IAAA,wBAAa,EAAC,yBAAc,CAAC,MAAM,CAAC,CAAC;;;;gDAQjD;AApBL,4CAsBC"}
|