@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 @@
|
|
|
1
|
+
{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../src/entities/user/types/User.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./User"), exports);
|
|
18
|
+
__exportStar(require("./CreateUser"), exports);
|
|
19
|
+
__exportStar(require("./EUserStatus"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/user/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B;AAC7B,gDAA8B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BindThis } from "../../../features";
|
|
2
|
+
import { InitWorkspace } from "../types";
|
|
3
|
+
export declare class WorkspaceApi extends BindThis {
|
|
4
|
+
init(workspace: InitWorkspace): {
|
|
5
|
+
baseURL: string;
|
|
6
|
+
url: string;
|
|
7
|
+
method: string;
|
|
8
|
+
data: InitWorkspace;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.WorkspaceApi = void 0;
|
|
10
|
+
const features_1 = require("../../../features");
|
|
11
|
+
const features_2 = require("../../../features");
|
|
12
|
+
const config_1 = require("../../../config");
|
|
13
|
+
let WorkspaceApi = class WorkspaceApi extends features_1.BindThis {
|
|
14
|
+
init(workspace) {
|
|
15
|
+
return {
|
|
16
|
+
baseURL: config_1.ApiConfigs.initUrl,
|
|
17
|
+
url: '/init',
|
|
18
|
+
method: 'POST',
|
|
19
|
+
data: workspace
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
WorkspaceApi = __decorate([
|
|
24
|
+
(0, features_2.Calloutable)()
|
|
25
|
+
], WorkspaceApi);
|
|
26
|
+
exports.WorkspaceApi = WorkspaceApi;
|
|
27
|
+
//# sourceMappingURL=WorkspaceApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceApi.js","sourceRoot":"","sources":["../../../../src/entities/workspace/config/WorkspaceApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gDAA2C;AAC3C,gDAA8C;AAE9C,4CAA2C;AAGpC,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,mBAAQ;IAEjC,IAAI,CAAC,SAAwB;QAClC,OAAO;YACL,OAAO,EAAE,mBAAU,CAAC,OAAO;YAC3B,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;CAEF,CAAA;AAXY,YAAY;IADxB,IAAA,sBAAW,GAAE;GACD,YAAY,CAWxB;AAXY,oCAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './WorkspaceApi';
|
|
@@ -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("./WorkspaceApi"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/workspace/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./types"), exports);
|
|
18
|
+
__exportStar(require("./config"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/workspace/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InitWorkspace.js","sourceRoot":"","sources":["../../../../src/entities/workspace/types/InitWorkspace.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InitWorkspace';
|
|
@@ -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("./InitWorkspace"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/workspace/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BindThis = void 0;
|
|
4
|
+
const auto_bind_1 = require("@buildery/auto-bind");
|
|
5
|
+
class BindThis {
|
|
6
|
+
constructor() {
|
|
7
|
+
(0, auto_bind_1.default)(this);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.BindThis = BindThis;
|
|
11
|
+
//# sourceMappingURL=BindThis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BindThis.js","sourceRoot":"","sources":["../../../src/features/bind-this/BindThis.ts"],"names":[],"mappings":";;;AAAA,mDAA2C;AAE3C,MAAa,QAAQ;IAEnB;QACE,IAAA,mBAAQ,EAAC,IAAI,CAAC,CAAC;IACjB,CAAC;CAEF;AAND,4BAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BindThis';
|
|
@@ -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("./BindThis"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/bind-this/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Calloutable = void 0;
|
|
4
|
+
const callout_1 = require("@buildery/callout");
|
|
5
|
+
const entities_1 = require("../../entities");
|
|
6
|
+
const toSkipMethods = ['constructor', 'getObjectName', 'getApiUrl'];
|
|
7
|
+
const Calloutable = (toSkip) => (constructor) => {
|
|
8
|
+
toSkip = toSkip ? [...toSkip, ...toSkipMethods] : toSkipMethods;
|
|
9
|
+
return class extends constructor {
|
|
10
|
+
constructor(...args) {
|
|
11
|
+
super(...args);
|
|
12
|
+
const axios = entities_1.AuthAxiosService.getAxiosInstance();
|
|
13
|
+
const instance = new constructor();
|
|
14
|
+
let prototype = instance;
|
|
15
|
+
do {
|
|
16
|
+
Object.getOwnPropertyNames(prototype).forEach(method => {
|
|
17
|
+
if (toSkip && toSkip.includes(method))
|
|
18
|
+
return;
|
|
19
|
+
instance[`${method}Callout`] = () => { var _a; return new callout_1.Callout((_a = instance[method]) === null || _a === void 0 ? void 0 : _a.bind(instance), axios); };
|
|
20
|
+
});
|
|
21
|
+
prototype = Object.getPrototypeOf(prototype);
|
|
22
|
+
} while (prototype instanceof Object);
|
|
23
|
+
return instance;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
exports.Calloutable = Calloutable;
|
|
28
|
+
//# sourceMappingURL=Calloutable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calloutable.js","sourceRoot":"","sources":["../../../src/features/callout/Calloutable.ts"],"names":[],"mappings":";;;AAAA,+CAA0C;AAC1C,6CAAgD;AAGhD,MAAM,aAAa,GAAG,CAAC,aAAa,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC;AAE7D,MAAM,WAAW,GAAG,CAAC,MAAsB,EAAE,EAAE,CAAC,CAA0B,WAAc,EAAE,EAAE;IACjG,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;IAEhE,OAAO,KAAM,SAAQ,WAAW;QAC9B,YAAY,GAAG,IAAW;YACxB,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YAEf,MAAM,KAAK,GAAG,2BAAgB,CAAC,gBAAgB,EAAE,CAAC;YAElD,MAAM,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;YACnC,IAAI,SAAS,GAAG,QAAQ,CAAC;YAEzB,GAAG;gBACD,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;oBACrD,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;wBAAE,OAAO;oBAE9C,QAAQ,CAAC,GAAG,MAAM,SAAS,CAAC,GAAG,GAAG,EAAE,WAAC,OAAA,IAAI,iBAAO,CAAC,MAAA,QAAQ,CAAC,MAAM,CAAC,0CAAE,IAAI,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAA,EAAA,CAAC;gBAE5F,CAAC,CAAC,CAAA;gBAEF,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;aAC9C,QAAQ,SAAS,YAAY,MAAM,EAAC;YAErC,OAAO,QAAQ,CAAC;QAClB,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AA1BW,QAAA,WAAW,eA0BtB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApiCalloutMiddleware } from "../types";
|
|
2
|
+
export declare const API_CALLOUT_MIDDLEWARES: unique symbol;
|
|
3
|
+
export declare const AddCalloutMiddleware: <T>(middleware: ApiCalloutMiddleware<T>) => (target: Object, method: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddCalloutMiddleware = exports.API_CALLOUT_MIDDLEWARES = void 0;
|
|
4
|
+
exports.API_CALLOUT_MIDDLEWARES = Symbol('ts-api-kit:api_callout_middlewares');
|
|
5
|
+
const AddCalloutMiddleware = (middleware) => (target, method, descriptor) => {
|
|
6
|
+
if (!middleware)
|
|
7
|
+
return;
|
|
8
|
+
if (!descriptor.value[exports.API_CALLOUT_MIDDLEWARES]) {
|
|
9
|
+
descriptor.value[exports.API_CALLOUT_MIDDLEWARES] = [];
|
|
10
|
+
}
|
|
11
|
+
descriptor.value[exports.API_CALLOUT_MIDDLEWARES].push(middleware);
|
|
12
|
+
return descriptor;
|
|
13
|
+
};
|
|
14
|
+
exports.AddCalloutMiddleware = AddCalloutMiddleware;
|
|
15
|
+
//# sourceMappingURL=AddCalloutMiddleware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddCalloutMiddleware.js","sourceRoot":"","sources":["../../../../src/features/callout/decorators/AddCalloutMiddleware.ts"],"names":[],"mappings":";;;AAEa,QAAA,uBAAuB,GAAG,MAAM,CAAC,oCAAoC,CAAC,CAAC;AAE7E,MAAM,oBAAoB,GAAG,CAAK,UAAmC,EAAE,EAAE,CAAC,CAAC,MAAc,EAAE,MAAc,EAAE,UAA8B,EAAE,EAAE;IAClJ,IAAI,CAAC,UAAU;QAAE,OAAO;IAExB,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,+BAAuB,CAAC,EAAE;QAC9C,UAAU,CAAC,KAAK,CAAC,+BAAuB,CAAC,GAAG,EAAE,CAAC;KAChD;IAED,UAAU,CAAC,KAAK,CAAC,+BAAuB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAE3D,OAAO,UAAU,CAAC;AACpB,CAAC,CAAA;AAVY,QAAA,oBAAoB,wBAUhC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AbstractCRUDRequest = void 0;
|
|
4
|
+
class AbstractCRUDRequest {
|
|
5
|
+
getApiUrl() { return ''; }
|
|
6
|
+
;
|
|
7
|
+
getObjectName() { return ''; }
|
|
8
|
+
;
|
|
9
|
+
}
|
|
10
|
+
exports.AbstractCRUDRequest = AbstractCRUDRequest;
|
|
11
|
+
//# sourceMappingURL=AbstractCRUDRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbstractCRUDRequest.js","sourceRoot":"","sources":["../../../../src/features/crud/abstract/AbstractCRUDRequest.ts"],"names":[],"mappings":";;;AAAA,MAAsB,mBAAmB;IAEhC,SAAS,KAAa,OAAO,EAAE,CAAA,CAAC,CAAC;IAAA,CAAC;IAElC,aAAa,KAAa,OAAO,EAAE,CAAA,CAAC,CAAC;IAAA,CAAC;CAE9C;AAND,kDAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AbstractCRUDRequest';
|
|
@@ -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("./AbstractCRUDRequest"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/abstract/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CrudActions = void 0;
|
|
4
|
+
var CrudActions;
|
|
5
|
+
(function (CrudActions) {
|
|
6
|
+
CrudActions["Create"] = "create";
|
|
7
|
+
CrudActions["Update"] = "update";
|
|
8
|
+
CrudActions["Delete"] = "delete";
|
|
9
|
+
CrudActions["Upsert"] = "upsert";
|
|
10
|
+
CrudActions["CreateBulk"] = "create_bulk";
|
|
11
|
+
CrudActions["UpdateBulk"] = "update_bulk";
|
|
12
|
+
CrudActions["DeleteBulk"] = "delete_bulk";
|
|
13
|
+
CrudActions["UpsertBulk"] = "upsert_bulk";
|
|
14
|
+
})(CrudActions = exports.CrudActions || (exports.CrudActions = {}));
|
|
15
|
+
//# sourceMappingURL=CrudActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrudActions.js","sourceRoot":"","sources":["../../../../src/features/crud/constants/CrudActions.ts"],"names":[],"mappings":";;;AAAA,IAAY,WASX;AATD,WAAY,WAAW;IACrB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,yCAA0B,CAAA;IAC1B,yCAA0B,CAAA;IAC1B,yCAA0B,CAAA;IAC1B,yCAA0B,CAAA;AAC5B,CAAC,EATW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAStB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CrudEventChannel = "ts-api-kit:crud";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CrudConstants.js","sourceRoot":"","sources":["../../../../src/features/crud/constants/CrudConstants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./CrudConstants"), exports);
|
|
18
|
+
__exportStar(require("./CrudActions"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,gDAA8B"}
|
|
@@ -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"}
|
|
@@ -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.Create = 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 Create extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
create(entity) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}`,
|
|
22
|
+
method: 'POST',
|
|
23
|
+
data: entity
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.Create)),
|
|
30
|
+
__metadata("design:type", Function),
|
|
31
|
+
__metadata("design:paramtypes", [Object]),
|
|
32
|
+
__metadata("design:returntype", Object)
|
|
33
|
+
], Create.prototype, "create", null);
|
|
34
|
+
exports.Create = Create;
|
|
35
|
+
//# sourceMappingURL=Create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/Create.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,MAAM;YACd,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.CreateBulk = 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 CreateBulk extends abstract_1.AbstractCRUDRequest {
|
|
18
|
+
createBulk(entities) {
|
|
19
|
+
return {
|
|
20
|
+
baseURL: this.getApiUrl(),
|
|
21
|
+
url: `/${this.getObjectName()}/bulk`,
|
|
22
|
+
method: 'POST',
|
|
23
|
+
data: entities
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, callout_1.AddCalloutMiddleware)((0, middlewares_1.PushCrudEvent)(constants_1.CrudActions.CreateBulk)),
|
|
30
|
+
__metadata("design:type", Function),
|
|
31
|
+
__metadata("design:paramtypes", [Array]),
|
|
32
|
+
__metadata("design:returntype", Object)
|
|
33
|
+
], CreateBulk.prototype, "createBulk", null);
|
|
34
|
+
exports.CreateBulk = CreateBulk;
|
|
35
|
+
//# sourceMappingURL=CreateBulk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateBulk.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/CreateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,0CAAgD;AAChD,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,MAAM;YACd,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"}
|