@buildery/ts-api-kit 4.12.3 → 5.0.1
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 +8 -6
- package/dist/Api.js.map +1 -1
- package/dist/compose/useSingleton.d.ts +2 -1
- package/dist/compose/useSingleton.js.map +1 -1
- package/dist/config/ApiConfigs.d.ts +10 -6
- package/dist/config/ApiConfigs.js +10 -0
- package/dist/config/ApiConfigs.js.map +1 -1
- package/dist/config/RawApi.d.ts +32 -14
- package/dist/config/RawApi.js +35 -14
- package/dist/config/RawApi.js.map +1 -1
- package/dist/features/api/abstract/AbstractApi.d.ts +6 -0
- package/dist/features/api/abstract/AbstractApi.js +20 -0
- package/dist/features/api/abstract/AbstractApi.js.map +1 -0
- package/dist/features/auth/services/AuthService.js +2 -4
- package/dist/features/auth/services/AuthService.js.map +1 -1
- package/dist/features/callout/decorators/Calloutable.d.ts +3 -4
- package/dist/features/callout/decorators/Calloutable.js +10 -42
- package/dist/features/callout/decorators/Calloutable.js.map +1 -1
- package/dist/features/callout/decorators/index.d.ts +0 -1
- package/dist/features/callout/decorators/index.js +0 -1
- package/dist/features/callout/decorators/index.js.map +1 -1
- package/dist/features/callout/types/ApiCalloutMiddleware.d.ts +1 -1
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.d.ts +5 -3
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.js +11 -5
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.js.map +1 -1
- package/dist/features/crud/operations/index.d.ts +0 -1
- package/dist/features/crud/operations/index.js +0 -1
- package/dist/features/crud/operations/index.js.map +1 -1
- package/dist/features/crud/operations/operations/Create.d.ts +2 -2
- package/dist/features/crud/operations/operations/Create.js +4 -5
- package/dist/features/crud/operations/operations/Create.js.map +1 -1
- package/dist/features/crud/operations/operations/CreateBulk.d.ts +2 -2
- package/dist/features/crud/operations/operations/CreateBulk.js +4 -5
- package/dist/features/crud/operations/operations/CreateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteById.d.ts +1 -1
- package/dist/features/crud/operations/operations/DeleteById.js +4 -5
- package/dist/features/crud/operations/operations/DeleteById.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteByIds.d.ts +1 -1
- package/dist/features/crud/operations/operations/DeleteByIds.js +3 -3
- package/dist/features/crud/operations/operations/DeleteByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/GetAll.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetAll.js +3 -3
- package/dist/features/crud/operations/operations/GetAll.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByFilters.d.ts +6 -0
- package/dist/features/crud/operations/operations/GetByFilters.js +34 -0
- package/dist/features/crud/operations/operations/GetByFilters.js.map +1 -0
- package/dist/features/crud/operations/operations/GetById.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetById.js +3 -3
- package/dist/features/crud/operations/operations/GetById.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByIds.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetByIds.js +3 -3
- package/dist/features/crud/operations/operations/GetByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/Update.d.ts +2 -2
- package/dist/features/crud/operations/operations/Update.js +4 -5
- package/dist/features/crud/operations/operations/Update.js.map +1 -1
- package/dist/features/crud/operations/operations/UpdateBulk.d.ts +2 -2
- package/dist/features/crud/operations/operations/UpdateBulk.js +4 -5
- package/dist/features/crud/operations/operations/UpdateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/Upsert.d.ts +2 -2
- package/dist/features/crud/operations/operations/Upsert.js +4 -5
- package/dist/features/crud/operations/operations/Upsert.js.map +1 -1
- package/dist/features/crud/operations/operations/UpsertBulk.d.ts +2 -2
- package/dist/features/crud/operations/operations/UpsertBulk.js +4 -5
- package/dist/features/crud/operations/operations/UpsertBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/index.d.ts +1 -0
- package/dist/features/crud/operations/operations/index.js +1 -0
- package/dist/features/crud/operations/operations/index.js.map +1 -1
- package/dist/features/crud/operations/templates/FullQuery.d.ts +2 -1
- package/dist/features/crud/operations/templates/FullQuery.js +2 -1
- package/dist/features/crud/operations/templates/FullQuery.js.map +1 -1
- package/dist/features/crud/sync/compose/useCrudSync.js +5 -5
- package/dist/features/crud/sync/compose/useCrudSync.js.map +1 -1
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js +2 -2
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +8 -0
- package/dist/main.js.map +1 -1
- package/dist/micro/auth/AuthApi.d.ts +22 -0
- package/dist/micro/auth/AuthApi.js +128 -0
- package/dist/micro/auth/AuthApi.js.map +1 -0
- package/dist/micro/auth/WorkspaceApi.d.ts +10 -0
- package/dist/micro/auth/WorkspaceApi.js +32 -0
- package/dist/micro/auth/WorkspaceApi.js.map +1 -0
- package/dist/micro/auth/index.d.ts +1 -0
- package/dist/micro/auth/index.js +18 -0
- package/dist/micro/auth/index.js.map +1 -0
- package/dist/micro/auth/types/InitWorkspace.d.ts +8 -0
- package/dist/micro/auth/types/InitWorkspace.js +3 -0
- package/dist/micro/auth/types/InitWorkspace.js.map +1 -0
- package/dist/micro/auth/types/index.d.ts +1 -0
- package/dist/micro/auth/types/index.js +18 -0
- package/dist/micro/auth/types/index.js.map +1 -0
- package/dist/micro/index.d.ts +4 -0
- package/dist/micro/index.js +21 -0
- package/dist/micro/index.js.map +1 -0
- package/dist/micro/init/WorkspaceApi.d.ts +10 -0
- package/dist/micro/init/WorkspaceApi.js +27 -0
- package/dist/micro/init/WorkspaceApi.js.map +1 -0
- package/dist/micro/init/types/InitWorkspace.d.ts +8 -0
- package/dist/micro/init/types/InitWorkspace.js +3 -0
- package/dist/micro/init/types/InitWorkspace.js.map +1 -0
- package/dist/micro/query/FieldApi.d.ts +12 -0
- package/dist/micro/query/FieldApi.js +69 -0
- package/dist/micro/query/FieldApi.js.map +1 -0
- package/dist/micro/query/RecordApi.d.ts +16 -0
- package/dist/micro/query/RecordApi.js +24 -0
- package/dist/micro/query/RecordApi.js.map +1 -0
- package/dist/micro/query/SObjectApi.d.ts +8 -0
- package/dist/micro/query/SObjectApi.js +30 -0
- package/dist/micro/query/SObjectApi.js.map +1 -0
- package/dist/micro/query/error/ObjectApiError.d.ts +3 -0
- package/dist/micro/query/error/ObjectApiError.js +10 -0
- package/dist/micro/query/error/ObjectApiError.js.map +1 -0
- package/dist/micro/query/error/index.d.ts +1 -0
- package/dist/micro/query/error/index.js +18 -0
- package/dist/micro/query/error/index.js.map +1 -0
- package/dist/micro/query/index.d.ts +1 -0
- package/dist/micro/query/index.js +18 -0
- package/dist/micro/query/index.js.map +1 -0
- package/dist/micro/query/record/index.d.ts +2 -0
- package/dist/micro/query/record/index.js +19 -0
- package/dist/micro/query/record/index.js.map +1 -0
- package/dist/micro/query/types/FieldType.d.ts +9 -0
- package/dist/micro/query/types/FieldType.js +14 -0
- package/dist/micro/query/types/FieldType.js.map +1 -0
- package/dist/micro/query/types/PicklistValue.d.ts +4 -0
- package/dist/micro/query/types/PicklistValue.js +3 -0
- package/dist/micro/query/types/PicklistValue.js.map +1 -0
- package/dist/micro/query/types/SObject.d.ts +7 -0
- package/dist/micro/query/types/SObject.js +3 -0
- package/dist/micro/query/types/SObject.js.map +1 -0
- package/dist/micro/query/types/SObjectField.d.ts +30 -0
- package/dist/micro/query/types/SObjectField.js +3 -0
- package/dist/micro/query/types/SObjectField.js.map +1 -0
- package/dist/micro/query/types/SchemaObjectNames.d.ts +4 -0
- package/dist/micro/query/types/SchemaObjectNames.js +8 -0
- package/dist/micro/query/types/SchemaObjectNames.js.map +1 -0
- package/dist/micro/query/types/index.d.ts +4 -0
- package/dist/micro/query/types/index.js +21 -0
- package/dist/micro/query/types/index.js.map +1 -0
- package/dist/micro/security/PermissionApi.d.ts +6 -0
- package/dist/micro/security/PermissionApi.js +44 -0
- package/dist/micro/security/PermissionApi.js.map +1 -0
- package/dist/micro/security/PermissionCategoryApi.d.ts +5 -0
- package/dist/micro/security/PermissionCategoryApi.js +30 -0
- package/dist/micro/security/PermissionCategoryApi.js.map +1 -0
- package/dist/micro/security/TeamApi.d.ts +7 -0
- package/dist/micro/security/TeamApi.js +45 -0
- package/dist/micro/security/TeamApi.js.map +1 -0
- package/dist/micro/security/index.d.ts +1 -0
- package/dist/micro/security/index.js +18 -0
- package/dist/micro/security/index.js.map +1 -0
- package/dist/micro/security/types/IPermission.d.ts +10 -0
- package/dist/micro/security/types/IPermission.js +3 -0
- package/dist/micro/security/types/IPermission.js.map +1 -0
- package/dist/micro/security/types/IPermissionAssignment.d.ts +6 -0
- package/dist/micro/security/types/IPermissionAssignment.js +3 -0
- package/dist/micro/security/types/IPermissionAssignment.js.map +1 -0
- package/dist/micro/security/types/IPermissionCategory.d.ts +5 -0
- package/dist/micro/security/types/IPermissionCategory.js +3 -0
- package/dist/micro/security/types/IPermissionCategory.js.map +1 -0
- package/dist/micro/security/types/IPermissionDefinition.d.ts +6 -0
- package/dist/micro/security/types/IPermissionDefinition.js +3 -0
- package/dist/micro/security/types/IPermissionDefinition.js.map +1 -0
- package/dist/micro/security/types/IPermissionGroup.d.ts +4 -0
- package/dist/micro/security/types/IPermissionGroup.js +3 -0
- package/dist/micro/security/types/IPermissionGroup.js.map +1 -0
- package/dist/micro/security/types/IPermissionSet.d.ts +6 -0
- package/dist/micro/security/types/IPermissionSet.js +3 -0
- package/dist/micro/security/types/IPermissionSet.js.map +1 -0
- package/dist/micro/security/types/SecurityObjectNames.d.ts +8 -0
- package/dist/micro/security/types/SecurityObjectNames.js +12 -0
- package/dist/micro/security/types/SecurityObjectNames.js.map +1 -0
- package/dist/micro/security/types/Team.d.ts +7 -0
- package/dist/micro/security/types/Team.js +3 -0
- package/dist/micro/security/types/Team.js.map +1 -0
- package/dist/micro/security/types/TeamAssignment.d.ts +4 -0
- package/dist/micro/security/types/TeamAssignment.js +3 -0
- package/dist/micro/security/types/TeamAssignment.js.map +1 -0
- package/dist/micro/security/types/index.d.ts +8 -0
- package/dist/micro/security/types/index.js +25 -0
- package/dist/micro/security/types/index.js.map +1 -0
- package/dist/micro/workspace/ModuleApi.d.ts +8 -0
- package/dist/micro/workspace/ModuleApi.js +58 -0
- package/dist/micro/workspace/ModuleApi.js.map +1 -0
- package/dist/micro/workspace/index.d.ts +1 -0
- package/dist/micro/workspace/index.js +18 -0
- package/dist/micro/workspace/index.js.map +1 -0
- package/dist/micro/workspace/types/CreateUser.d.ts +5 -0
- package/dist/micro/workspace/types/CreateUser.js +3 -0
- package/dist/micro/workspace/types/CreateUser.js.map +1 -0
- package/dist/micro/workspace/types/EUserStatus.d.ts +5 -0
- package/dist/micro/workspace/types/EUserStatus.js +10 -0
- package/dist/micro/workspace/types/EUserStatus.js.map +1 -0
- package/dist/micro/workspace/types/Module.d.ts +9 -0
- package/dist/micro/workspace/types/Module.js +3 -0
- package/dist/micro/workspace/types/Module.js.map +1 -0
- package/dist/micro/workspace/types/ModuleAction.d.ts +4 -0
- package/dist/micro/workspace/types/ModuleAction.js +3 -0
- package/dist/micro/workspace/types/ModuleAction.js.map +1 -0
- package/dist/micro/workspace/types/User.d.ts +8 -0
- package/dist/micro/workspace/types/User.js +3 -0
- package/dist/micro/workspace/types/User.js.map +1 -0
- package/dist/micro/workspace/types/index.d.ts +5 -0
- package/dist/micro/workspace/types/index.js +22 -0
- package/dist/micro/workspace/types/index.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/Constructor.d.ts +1 -0
- package/dist/types/Constructor.js +3 -0
- package/dist/types/Constructor.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/package.json +3 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FieldType = void 0;
|
|
4
|
+
var FieldType;
|
|
5
|
+
(function (FieldType) {
|
|
6
|
+
FieldType["String"] = "String";
|
|
7
|
+
FieldType["Number"] = "Number";
|
|
8
|
+
FieldType["Boolean"] = "Boolean";
|
|
9
|
+
FieldType["Relation"] = "Relation";
|
|
10
|
+
FieldType["Datetime"] = "Datetime";
|
|
11
|
+
FieldType["Picklist"] = "Picklist";
|
|
12
|
+
FieldType["Multipicklist"] = "Multipicklist";
|
|
13
|
+
})(FieldType = exports.FieldType || (exports.FieldType = {}));
|
|
14
|
+
//# sourceMappingURL=FieldType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldType.js","sourceRoot":"","sources":["../../../../src/micro/query/types/FieldType.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAQX;AARD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,4CAA+B,CAAA;AACjC,CAAC,EARW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAQpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PicklistValue.js","sourceRoot":"","sources":["../../../../src/micro/query/types/PicklistValue.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SObject.js","sourceRoot":"","sources":["../../../../src/micro/query/types/SObject.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { FieldType } from "./FieldType";
|
|
2
|
+
import { PicklistValue } from "./PicklistValue";
|
|
3
|
+
export type SObjectField = {
|
|
4
|
+
_id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
apiName: string;
|
|
7
|
+
type: FieldType;
|
|
8
|
+
namespace: string;
|
|
9
|
+
objectId?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
example?: string;
|
|
12
|
+
default?: any;
|
|
13
|
+
number?: {
|
|
14
|
+
decimalPlaces?: number;
|
|
15
|
+
};
|
|
16
|
+
relation?: {
|
|
17
|
+
objectApiName: string;
|
|
18
|
+
fieldApiName: string;
|
|
19
|
+
};
|
|
20
|
+
picklist?: {
|
|
21
|
+
values: Array<PicklistValue>;
|
|
22
|
+
isStrict?: boolean;
|
|
23
|
+
globalSet?: string;
|
|
24
|
+
};
|
|
25
|
+
multipicklist?: {
|
|
26
|
+
values: Array<PicklistValue>;
|
|
27
|
+
isStrict?: boolean;
|
|
28
|
+
globalSet?: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SObjectField.js","sourceRoot":"","sources":["../../../../src/micro/query/types/SObjectField.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaObjectNames.js","sourceRoot":"","sources":["../../../../src/micro/query/types/SchemaObjectNames.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACf,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./FieldType"), exports);
|
|
18
|
+
__exportStar(require("./PicklistValue"), exports);
|
|
19
|
+
__exportStar(require("./SObject"), exports);
|
|
20
|
+
__exportStar(require("./SObjectField"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/query/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,4CAA0B;AAC1B,iDAA+B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AbstractCRUDApi } from "../../features";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare class PermissionApi extends AbstractCRUDApi {
|
|
4
|
+
getByCategoryId(categoryId: string): AxiosRequestConfig;
|
|
5
|
+
getByCategoryIds(categoryIds: Array<string>): AxiosRequestConfig;
|
|
6
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.PermissionApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
class PermissionApi extends features_1.AbstractCRUDApi {
|
|
15
|
+
getByCategoryId(categoryId) {
|
|
16
|
+
return {
|
|
17
|
+
baseURL: this.apiUrl,
|
|
18
|
+
url: `/${this.objectName}/category/${categoryId}`,
|
|
19
|
+
method: "GET"
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
getByCategoryIds(categoryIds) {
|
|
23
|
+
return {
|
|
24
|
+
baseURL: this.apiUrl,
|
|
25
|
+
url: `/${this.objectName}/categories/${categoryIds === null || categoryIds === void 0 ? void 0 : categoryIds.join(',')}`,
|
|
26
|
+
method: "GET"
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
;
|
|
30
|
+
}
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, features_1.Calloutable)(),
|
|
33
|
+
__metadata("design:type", Function),
|
|
34
|
+
__metadata("design:paramtypes", [String]),
|
|
35
|
+
__metadata("design:returntype", Object)
|
|
36
|
+
], PermissionApi.prototype, "getByCategoryId", null);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, features_1.Calloutable)(),
|
|
39
|
+
__metadata("design:type", Function),
|
|
40
|
+
__metadata("design:paramtypes", [Array]),
|
|
41
|
+
__metadata("design:returntype", Object)
|
|
42
|
+
], PermissionApi.prototype, "getByCategoryIds", null);
|
|
43
|
+
exports.PermissionApi = PermissionApi;
|
|
44
|
+
//# sourceMappingURL=PermissionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAG5D,MAAa,aAAc,SAAQ,0BAAe;IAGzC,eAAe,CAAC,UAAkB;QACvC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,aAAa,UAAU,EAAE;YACjD,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAGM,gBAAgB,CAAC,WAA0B;QAChD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,eAAe,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YAC/D,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAlBC;IAAC,IAAA,sBAAW,GAAE;;;;oDAOb;AAED;IAAC,IAAA,sBAAW,GAAE;;qCACuB,KAAK;;qDAMzC;AAlBH,sCAoBC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.PermissionCategoryApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
class PermissionCategoryApi extends features_1.AbstractCRUDApi {
|
|
15
|
+
getByGroupId(groupId) {
|
|
16
|
+
return {
|
|
17
|
+
baseURL: this.apiUrl,
|
|
18
|
+
url: `/${this.objectName}/group/${groupId}`,
|
|
19
|
+
method: 'GET'
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, features_1.Calloutable)(),
|
|
25
|
+
__metadata("design:type", Function),
|
|
26
|
+
__metadata("design:paramtypes", [String]),
|
|
27
|
+
__metadata("design:returntype", Object)
|
|
28
|
+
], PermissionCategoryApi.prototype, "getByGroupId", null);
|
|
29
|
+
exports.PermissionCategoryApi = PermissionCategoryApi;
|
|
30
|
+
//# sourceMappingURL=PermissionCategoryApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PermissionCategoryApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionCategoryApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAG5D,MAAa,qBAAsB,SAAQ,0BAAe;IAEjC,YAAY,CAAC,OAAe;QACjD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,UAAU,OAAO,EAAE;YAC3C,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;CAEF;AARC;IAAC,IAAA,sBAAW,GAAE;;;;yDAMb;AARH,sDAUC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AbstractCRUDApi } from "../../features";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
import { TeamAssignment } from "./types";
|
|
4
|
+
export declare class TeamApi extends AbstractCRUDApi {
|
|
5
|
+
assign(assignment: TeamAssignment): AxiosRequestConfig<any>;
|
|
6
|
+
unAssign(assignment: TeamAssignment): AxiosRequestConfig<any>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.TeamApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
class TeamApi extends features_1.AbstractCRUDApi {
|
|
15
|
+
assign(assignment) {
|
|
16
|
+
return {
|
|
17
|
+
baseURL: this.apiUrl,
|
|
18
|
+
url: `/${this.objectName}/assign`,
|
|
19
|
+
method: 'PATCH',
|
|
20
|
+
data: assignment
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
unAssign(assignment) {
|
|
24
|
+
return {
|
|
25
|
+
baseURL: this.apiUrl,
|
|
26
|
+
url: `/${this.objectName}/unAssign`,
|
|
27
|
+
method: 'PATCH',
|
|
28
|
+
data: assignment
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, features_1.Calloutable)(),
|
|
34
|
+
__metadata("design:type", Function),
|
|
35
|
+
__metadata("design:paramtypes", [Object]),
|
|
36
|
+
__metadata("design:returntype", void 0)
|
|
37
|
+
], TeamApi.prototype, "assign", null);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, features_1.Calloutable)(),
|
|
40
|
+
__metadata("design:type", Function),
|
|
41
|
+
__metadata("design:paramtypes", [Object]),
|
|
42
|
+
__metadata("design:returntype", void 0)
|
|
43
|
+
], TeamApi.prototype, "unAssign", null);
|
|
44
|
+
exports.TeamApi = TeamApi;
|
|
45
|
+
//# sourceMappingURL=TeamApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamApi.js","sourceRoot":"","sources":["../../../src/micro/security/TeamApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAI5D,MAAa,OAAQ,SAAQ,0BAAe;IAGnC,MAAM,CAAC,UAA0B;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,SAAS;YACjC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;SACK,CAAA;IACzB,CAAC;IAGM,QAAQ,CAAC,UAA0B;QACxC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,WAAW;YACnC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;SACK,CAAA;IACzB,CAAC;CAEF;AApBC;IAAC,IAAA,sBAAW,GAAE;;;;qCAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;uCAQb;AApBH,0BAsBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -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("./types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/micro/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPermission.js","sourceRoot":"","sources":["../../../../src/micro/security/types/IPermission.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPermissionAssignment.js","sourceRoot":"","sources":["../../../../src/micro/security/types/IPermissionAssignment.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPermissionCategory.js","sourceRoot":"","sources":["../../../../src/micro/security/types/IPermissionCategory.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPermissionDefinition.js","sourceRoot":"","sources":["../../../../src/micro/security/types/IPermissionDefinition.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPermissionGroup.js","sourceRoot":"","sources":["../../../../src/micro/security/types/IPermissionGroup.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPermissionSet.js","sourceRoot":"","sources":["../../../../src/micro/security/types/IPermissionSet.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityObjectNames = void 0;
|
|
4
|
+
exports.SecurityObjectNames = {
|
|
5
|
+
permission: 'permission',
|
|
6
|
+
permissionAssignment: 'permissionAssignment',
|
|
7
|
+
permissionDefinition: 'permissionDefinition',
|
|
8
|
+
permissionGroup: 'permissionGroup',
|
|
9
|
+
permissionSet: 'permissionSet',
|
|
10
|
+
permissionCategory: 'permissionCategory',
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=SecurityObjectNames.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecurityObjectNames.js","sourceRoot":"","sources":["../../../../src/micro/security/types/SecurityObjectNames.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,UAAU,EAAE,YAAY;IACxB,oBAAoB,EAAE,sBAAsB;IAC5C,oBAAoB,EAAE,sBAAsB;IAC5C,eAAe,EAAE,iBAAiB;IAClC,aAAa,EAAE,eAAe;IAC9B,kBAAkB,EAAE,oBAAoB;CACzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Team.js","sourceRoot":"","sources":["../../../../src/micro/security/types/Team.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TeamAssignment.js","sourceRoot":"","sources":["../../../../src/micro/security/types/TeamAssignment.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './IPermission';
|
|
2
|
+
export * from './IPermissionAssignment';
|
|
3
|
+
export * from './IPermissionCategory';
|
|
4
|
+
export * from './IPermissionDefinition';
|
|
5
|
+
export * from './IPermissionGroup';
|
|
6
|
+
export * from './IPermissionSet';
|
|
7
|
+
export * from './Team';
|
|
8
|
+
export * from './TeamAssignment';
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./IPermission"), exports);
|
|
18
|
+
__exportStar(require("./IPermissionAssignment"), exports);
|
|
19
|
+
__exportStar(require("./IPermissionCategory"), exports);
|
|
20
|
+
__exportStar(require("./IPermissionDefinition"), exports);
|
|
21
|
+
__exportStar(require("./IPermissionGroup"), exports);
|
|
22
|
+
__exportStar(require("./IPermissionSet"), exports);
|
|
23
|
+
__exportStar(require("./Team"), exports);
|
|
24
|
+
__exportStar(require("./TeamAssignment"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/security/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,0DAAwC;AACxC,wDAAsC;AACtC,0DAAwC;AACxC,qDAAmC;AACnC,mDAAiC;AACjC,yCAAuB;AACvB,mDAAiC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractCRUDApi } from "../../features";
|
|
2
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
|
+
import { ModuleAction } from "./types";
|
|
4
|
+
export declare class ModuleApi extends AbstractCRUDApi {
|
|
5
|
+
createAction(moduleId: string, action: ModuleAction): AxiosRequestConfig<any>;
|
|
6
|
+
updateAction(moduleId: string, actionName: string, action: ModuleAction): AxiosRequestConfig<any>;
|
|
7
|
+
deleteAction(moduleId: string, actionName: string): AxiosRequestConfig<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.ModuleApi = void 0;
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
|
+
class ModuleApi extends features_1.AbstractCRUDApi {
|
|
15
|
+
createAction(moduleId, action) {
|
|
16
|
+
return {
|
|
17
|
+
baseURL: this.apiUrl,
|
|
18
|
+
url: `/${this.objectName}/${moduleId}/action`,
|
|
19
|
+
method: 'POST',
|
|
20
|
+
data: action
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
updateAction(moduleId, actionName, action) {
|
|
24
|
+
return {
|
|
25
|
+
baseURL: this.apiUrl,
|
|
26
|
+
url: `/${this.objectName}/${moduleId}/action/${actionName}`,
|
|
27
|
+
method: 'PATCH',
|
|
28
|
+
data: action
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
deleteAction(moduleId, actionName) {
|
|
32
|
+
return {
|
|
33
|
+
baseURL: this.apiUrl,
|
|
34
|
+
url: `/${this.objectName}/${moduleId}/action/${actionName}`,
|
|
35
|
+
method: 'DELETE',
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, features_1.Calloutable)(),
|
|
41
|
+
__metadata("design:type", Function),
|
|
42
|
+
__metadata("design:paramtypes", [String, Object]),
|
|
43
|
+
__metadata("design:returntype", void 0)
|
|
44
|
+
], ModuleApi.prototype, "createAction", null);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, features_1.Calloutable)(),
|
|
47
|
+
__metadata("design:type", Function),
|
|
48
|
+
__metadata("design:paramtypes", [String, String, Object]),
|
|
49
|
+
__metadata("design:returntype", void 0)
|
|
50
|
+
], ModuleApi.prototype, "updateAction", null);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, features_1.Calloutable)(),
|
|
53
|
+
__metadata("design:type", Function),
|
|
54
|
+
__metadata("design:paramtypes", [String, String]),
|
|
55
|
+
__metadata("design:returntype", void 0)
|
|
56
|
+
], ModuleApi.prototype, "deleteAction", null);
|
|
57
|
+
exports.ModuleApi = ModuleApi;
|
|
58
|
+
//# sourceMappingURL=ModuleApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModuleApi.js","sourceRoot":"","sources":["../../../src/micro/workspace/ModuleApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA4D;AAI5D,MAAa,SAAU,SAAQ,0BAAe;IAGrC,YAAY,CAAC,QAAgB,EAAE,MAAoB;QACxD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,SAAS;YAC7C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACS,CAAA;IACzB,CAAC;IAGM,YAAY,CAAC,QAAgB,EAAE,UAAkB,EAAE,MAAoB;QAC5E,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,WAAW,UAAU,EAAE;YAC3D,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,MAAM;SACS,CAAA;IACzB,CAAC;IAGM,YAAY,CAAC,QAAgB,EAAE,UAAkB;QACtD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,WAAW,UAAU,EAAE;YAC3D,MAAM,EAAE,QAAQ;SACK,CAAA;IACzB,CAAC;CAEF;AA7BC;IAAC,IAAA,sBAAW,GAAE;;;;6CAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;6CAQb;AAED;IAAC,IAAA,sBAAW,GAAE;;;;6CAOb;AA7BH,8BA+BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|