@buildery/ts-api-kit 2.4.28 → 3.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.
Files changed (122) hide show
  1. package/dist/RawApi.d.ts +3 -3
  2. package/dist/RawApi.js +11 -11
  3. package/dist/RawApi.js.map +1 -1
  4. package/dist/index.d.ts +2 -4
  5. package/dist/index.js +2 -4
  6. package/dist/index.js.map +1 -1
  7. package/dist/main.d.ts +0 -1
  8. package/dist/main.js +0 -4
  9. package/dist/main.js.map +1 -1
  10. package/dist/objects/index.d.ts +4 -0
  11. package/dist/objects/index.js +21 -0
  12. package/dist/objects/index.js.map +1 -0
  13. package/dist/objects/module/config/ModuleApi.d.ts +10 -0
  14. package/dist/objects/module/config/ModuleApi.js +49 -0
  15. package/dist/objects/module/config/ModuleApi.js.map +1 -0
  16. package/dist/objects/module/config/index.d.ts +1 -0
  17. package/dist/objects/module/config/index.js +18 -0
  18. package/dist/objects/module/config/index.js.map +1 -0
  19. package/dist/objects/module/index.d.ts +2 -0
  20. package/dist/objects/module/index.js +19 -0
  21. package/dist/objects/module/index.js.map +1 -0
  22. package/dist/objects/module/types/IModule.d.ts +12 -0
  23. package/dist/objects/module/types/IModule.js +3 -0
  24. package/dist/objects/module/types/IModule.js.map +1 -0
  25. package/dist/objects/module/types/ModuleObjectNames.d.ts +3 -0
  26. package/dist/objects/module/types/ModuleObjectNames.js +7 -0
  27. package/dist/objects/module/types/ModuleObjectNames.js.map +1 -0
  28. package/dist/objects/module/types/index.d.ts +2 -0
  29. package/dist/objects/module/types/index.js +19 -0
  30. package/dist/objects/module/types/index.js.map +1 -0
  31. package/dist/objects/schema/config/FieldApi.d.ts +6 -0
  32. package/dist/objects/schema/config/FieldApi.js +25 -0
  33. package/dist/objects/schema/config/FieldApi.js.map +1 -0
  34. package/dist/objects/schema/config/ObjectApi.d.ts +6 -0
  35. package/dist/objects/schema/config/ObjectApi.js +25 -0
  36. package/dist/objects/schema/config/ObjectApi.js.map +1 -0
  37. package/dist/objects/schema/config/index.d.ts +2 -0
  38. package/dist/objects/schema/config/index.js +19 -0
  39. package/dist/objects/schema/config/index.js.map +1 -0
  40. package/dist/objects/schema/index.d.ts +2 -0
  41. package/dist/objects/schema/index.js +19 -0
  42. package/dist/objects/schema/index.js.map +1 -0
  43. package/dist/objects/schema/types/IField.d.ts +8 -0
  44. package/dist/objects/schema/types/IField.js +3 -0
  45. package/dist/objects/schema/types/IField.js.map +1 -0
  46. package/dist/objects/schema/types/IObject.d.ts +7 -0
  47. package/dist/objects/schema/types/IObject.js +3 -0
  48. package/dist/objects/schema/types/IObject.js.map +1 -0
  49. package/dist/objects/schema/types/SchemaObjectNames.d.ts +4 -0
  50. package/dist/objects/schema/types/SchemaObjectNames.js +8 -0
  51. package/dist/objects/schema/types/SchemaObjectNames.js.map +1 -0
  52. package/dist/objects/schema/types/index.d.ts +3 -0
  53. package/dist/objects/schema/types/index.js +20 -0
  54. package/dist/objects/schema/types/index.js.map +1 -0
  55. package/dist/objects/security/config/PermissionApi.d.ts +9 -0
  56. package/dist/objects/security/config/PermissionApi.js +57 -0
  57. package/dist/objects/security/config/PermissionApi.js.map +1 -0
  58. package/dist/objects/security/config/PermissionAssignmentApi.d.ts +6 -0
  59. package/dist/objects/security/config/PermissionAssignmentApi.js +26 -0
  60. package/dist/objects/security/config/PermissionAssignmentApi.js.map +1 -0
  61. package/dist/objects/security/config/PermissionCategoryApi.d.ts +8 -0
  62. package/dist/objects/security/config/PermissionCategoryApi.js +43 -0
  63. package/dist/objects/security/config/PermissionCategoryApi.js.map +1 -0
  64. package/dist/objects/security/config/PermissionDefinitionApi.d.ts +6 -0
  65. package/dist/objects/security/config/PermissionDefinitionApi.js +26 -0
  66. package/dist/objects/security/config/PermissionDefinitionApi.js.map +1 -0
  67. package/dist/objects/security/config/PermissionGroupApi.d.ts +6 -0
  68. package/dist/objects/security/config/PermissionGroupApi.js +26 -0
  69. package/dist/objects/security/config/PermissionGroupApi.js.map +1 -0
  70. package/dist/objects/security/config/PermissionSetApi.d.ts +6 -0
  71. package/dist/objects/security/config/PermissionSetApi.js +26 -0
  72. package/dist/objects/security/config/PermissionSetApi.js.map +1 -0
  73. package/dist/objects/security/config/index.d.ts +6 -0
  74. package/dist/objects/security/config/index.js +23 -0
  75. package/dist/objects/security/config/index.js.map +1 -0
  76. package/dist/objects/security/index.d.ts +2 -0
  77. package/dist/objects/security/index.js +19 -0
  78. package/dist/objects/security/index.js.map +1 -0
  79. package/dist/objects/security/types/IPermission.d.ts +10 -0
  80. package/dist/objects/security/types/IPermission.js +3 -0
  81. package/dist/objects/security/types/IPermission.js.map +1 -0
  82. package/dist/objects/security/types/IPermissionAssignment.d.ts +6 -0
  83. package/dist/objects/security/types/IPermissionAssignment.js +3 -0
  84. package/dist/objects/security/types/IPermissionAssignment.js.map +1 -0
  85. package/dist/objects/security/types/IPermissionCategory.d.ts +5 -0
  86. package/dist/objects/security/types/IPermissionCategory.js +3 -0
  87. package/dist/objects/security/types/IPermissionCategory.js.map +1 -0
  88. package/dist/objects/security/types/IPermissionDefinition.d.ts +6 -0
  89. package/dist/objects/security/types/IPermissionDefinition.js +3 -0
  90. package/dist/objects/security/types/IPermissionDefinition.js.map +1 -0
  91. package/dist/objects/security/types/IPermissionGroup.d.ts +4 -0
  92. package/dist/objects/security/types/IPermissionGroup.js +3 -0
  93. package/dist/objects/security/types/IPermissionGroup.js.map +1 -0
  94. package/dist/objects/security/types/IPermissionSet.d.ts +6 -0
  95. package/dist/objects/security/types/IPermissionSet.js +3 -0
  96. package/dist/objects/security/types/IPermissionSet.js.map +1 -0
  97. package/dist/objects/security/types/SecurityObjectNames.d.ts +8 -0
  98. package/dist/objects/security/types/SecurityObjectNames.js +12 -0
  99. package/dist/objects/security/types/SecurityObjectNames.js.map +1 -0
  100. package/dist/objects/security/types/index.d.ts +7 -0
  101. package/dist/objects/security/types/index.js +24 -0
  102. package/dist/objects/security/types/index.js.map +1 -0
  103. package/dist/objects/user/config/UserApi.d.ts +6 -0
  104. package/dist/objects/user/config/UserApi.js +25 -0
  105. package/dist/objects/user/config/UserApi.js.map +1 -0
  106. package/dist/objects/user/config/index.d.ts +1 -0
  107. package/dist/objects/user/config/index.js +18 -0
  108. package/dist/objects/user/config/index.js.map +1 -0
  109. package/dist/objects/user/index.d.ts +2 -0
  110. package/dist/objects/user/index.js +19 -0
  111. package/dist/objects/user/index.js.map +1 -0
  112. package/dist/objects/user/types/IUser.d.ts +8 -0
  113. package/dist/objects/user/types/IUser.js +3 -0
  114. package/dist/objects/user/types/IUser.js.map +1 -0
  115. package/dist/objects/user/types/UserObjectNames.d.ts +3 -0
  116. package/dist/objects/user/types/UserObjectNames.js +7 -0
  117. package/dist/objects/user/types/UserObjectNames.js.map +1 -0
  118. package/dist/objects/user/types/index.d.ts +2 -0
  119. package/dist/objects/user/types/index.js +19 -0
  120. package/dist/objects/user/types/index.js.map +1 -0
  121. package/dist/tsconfig.build.tsbuildinfo +1 -1
  122. package/package.json +1 -1
package/dist/RawApi.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { ModuleApi, PermissionApi, PermissionAssignmentApi, PermissionDefinitionApi, PermissionGroupApi, PermissionSetApi } from "./security";
2
- import { PermissionCategoryApi } from "./security/configs/PermissionCategoryApi";
3
- import { UserApi } from "./security/configs/UserApi";
1
+ import { FieldApi, ModuleApi, ObjectApi, PermissionApi, PermissionAssignmentApi, PermissionCategoryApi, PermissionDefinitionApi, PermissionGroupApi, PermissionSetApi, UserApi } from "./objects";
4
2
  export declare const RawApi: {
5
3
  readonly permission: PermissionApi;
6
4
  readonly permissionGroup: PermissionGroupApi;
@@ -10,4 +8,6 @@ export declare const RawApi: {
10
8
  readonly permissionAssignment: PermissionAssignmentApi;
11
9
  readonly user: UserApi;
12
10
  readonly module: ModuleApi;
11
+ readonly object: ObjectApi;
12
+ readonly field: FieldApi;
13
13
  };
package/dist/RawApi.js CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RawApi = void 0;
4
- const security_1 = require("./security");
5
- const PermissionCategoryApi_1 = require("./security/configs/PermissionCategoryApi");
6
- const UserApi_1 = require("./security/configs/UserApi");
4
+ const objects_1 = require("./objects");
7
5
  exports.RawApi = {
8
- permission: new security_1.PermissionApi(),
9
- permissionGroup: new security_1.PermissionGroupApi(),
10
- permissionDefinition: new security_1.PermissionDefinitionApi(),
11
- permissionCategory: new PermissionCategoryApi_1.PermissionCategoryApi(),
12
- permissionSet: new security_1.PermissionSetApi(),
13
- permissionAssignment: new security_1.PermissionAssignmentApi(),
14
- user: new UserApi_1.UserApi,
15
- module: new security_1.ModuleApi()
6
+ permission: new objects_1.PermissionApi(),
7
+ permissionGroup: new objects_1.PermissionGroupApi(),
8
+ permissionDefinition: new objects_1.PermissionDefinitionApi(),
9
+ permissionCategory: new objects_1.PermissionCategoryApi(),
10
+ permissionSet: new objects_1.PermissionSetApi(),
11
+ permissionAssignment: new objects_1.PermissionAssignmentApi(),
12
+ user: new objects_1.UserApi,
13
+ module: new objects_1.ModuleApi(),
14
+ object: new objects_1.ObjectApi(),
15
+ field: new objects_1.FieldApi()
16
16
  };
17
17
  //# sourceMappingURL=RawApi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RawApi.js","sourceRoot":"","sources":["../src/RawApi.ts"],"names":[],"mappings":";;;AAAA,yCAOoB;AACpB,oFAA+E;AAC/E,wDAAmD;AAEtC,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE,IAAI,wBAAa,EAAE;IAC/B,eAAe,EAAE,IAAI,6BAAkB,EAAE;IACzC,oBAAoB,EAAE,IAAI,kCAAuB,EAAE;IACnD,kBAAkB,EAAE,IAAI,6CAAqB,EAAE;IAC/C,aAAa,EAAE,IAAI,2BAAgB,EAAE;IACrC,oBAAoB,EAAE,IAAI,kCAAuB,EAAE;IACnD,IAAI,EAAE,IAAI,iBAAO;IACjB,MAAM,EAAE,IAAI,oBAAS,EAAE;CACf,CAAC"}
1
+ {"version":3,"file":"RawApi.js","sourceRoot":"","sources":["../src/RawApi.ts"],"names":[],"mappings":";;;AAAA,uCAWmB;AAGN,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE,IAAI,uBAAa,EAAE;IAC/B,eAAe,EAAE,IAAI,4BAAkB,EAAE;IACzC,oBAAoB,EAAE,IAAI,iCAAuB,EAAE;IACnD,kBAAkB,EAAE,IAAI,+BAAqB,EAAE;IAC/C,aAAa,EAAE,IAAI,0BAAgB,EAAE;IACrC,oBAAoB,EAAE,IAAI,iCAAuB,EAAE;IACnD,IAAI,EAAE,IAAI,iBAAO;IACjB,MAAM,EAAE,IAAI,mBAAS,EAAE;IACvB,MAAM,EAAE,IAAI,mBAAS,EAAE;IACvB,KAAK,EAAE,IAAI,kBAAQ,EAAE;CACb,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- export * from './schema';
2
- export * from './user';
3
- export * from './security';
1
+ export * from './objects';
4
2
  export * from './core';
5
3
  export * from './Api';
6
- export * from './types';
4
+ export * from './RawApi';
package/dist/index.js CHANGED
@@ -14,10 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./schema"), exports);
18
- __exportStar(require("./user"), exports);
19
- __exportStar(require("./security"), exports);
17
+ __exportStar(require("./objects"), exports);
20
18
  __exportStar(require("./core"), exports);
21
19
  __exportStar(require("./Api"), exports);
22
- __exportStar(require("./types"), exports);
20
+ __exportStar(require("./RawApi"), exports);
23
21
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,yCAAsB;AACtB,6CAA2B;AAC3B,yCAAuB;AACvB,wCAAsB;AACtB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,yCAAuB;AACvB,wCAAsB;AACtB,2CAAyB"}
package/dist/main.d.ts CHANGED
@@ -1 +0,0 @@
1
- export {};
package/dist/main.js CHANGED
@@ -1,5 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Api_1 = require("./Api");
4
- console.log(Object.getOwnPropertySymbols(Api_1.Api.module.getAll));
5
1
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAAA,+BAA0B;AAE1B,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,qBAAqB,CAAC,SAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './module';
2
+ export * from './schema';
3
+ export * from './security';
4
+ export * from './user';
@@ -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("./module"), exports);
18
+ __exportStar(require("./schema"), exports);
19
+ __exportStar(require("./security"), exports);
20
+ __exportStar(require("./user"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/objects/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,6CAA2B;AAC3B,yCAAuB"}
@@ -0,0 +1,10 @@
1
+ import { CRUDRequest } from "../../../core";
2
+ import { AxiosRequestConfig } from "axios";
3
+ import { IModule, IModuleAction } from "../types";
4
+ export declare class ModuleApi extends CRUDRequest<IModule> {
5
+ getApiName(): string;
6
+ getBaseUrl(): string;
7
+ createAction(moduleId: string, action: IModuleAction): AxiosRequestConfig<any>;
8
+ updateAction(moduleId: string, actionName: string, action: IModuleAction): AxiosRequestConfig<any>;
9
+ deleteAction(moduleId: string, actionName: string): AxiosRequestConfig<any>;
10
+ }
@@ -0,0 +1,49 @@
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.ModuleApi = void 0;
10
+ const core_1 = require("../../../core");
11
+ const core_2 = require("../../../core");
12
+ const decorators_1 = require("../../../core/decorators");
13
+ const types_1 = require("../types");
14
+ let ModuleApi = class ModuleApi extends core_1.CRUDRequest {
15
+ getApiName() {
16
+ return types_1.ModuleObjectNames.module;
17
+ }
18
+ getBaseUrl() {
19
+ return core_2.CRUDConfigs.workspaceURL;
20
+ }
21
+ createAction(moduleId, action) {
22
+ return {
23
+ baseURL: this.getBaseUrl(),
24
+ url: `/${this.getApiName()}/${moduleId}/action`,
25
+ method: 'POST',
26
+ data: action
27
+ };
28
+ }
29
+ updateAction(moduleId, actionName, action) {
30
+ return {
31
+ baseURL: this.getBaseUrl(),
32
+ url: `/${this.getApiName()}/${moduleId}/action/${actionName}`,
33
+ method: 'PATCH',
34
+ data: action
35
+ };
36
+ }
37
+ deleteAction(moduleId, actionName) {
38
+ return {
39
+ baseURL: this.getBaseUrl(),
40
+ url: `/${this.getApiName()}/${moduleId}/action/${actionName}`,
41
+ method: 'DELETE',
42
+ };
43
+ }
44
+ };
45
+ ModuleApi = __decorate([
46
+ (0, decorators_1.Calloutable)()
47
+ ], ModuleApi);
48
+ exports.ModuleApi = ModuleApi;
49
+ //# sourceMappingURL=ModuleApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleApi.js","sourceRoot":"","sources":["../../../../src/objects/module/config/ModuleApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wCAA0C;AAC1C,wCAA0C;AAC1C,yDAAqD;AAErD,oCAAmE;AAG5D,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kBAAoB;IACjC,UAAU;QACxB,OAAO,yBAAiB,CAAC,MAAM,CAAC;IAClC,CAAC;IAEe,UAAU;QACxB,OAAO,kBAAW,CAAC,YAAY,CAAC;IAClC,CAAC;IAEM,YAAY,CAAC,QAAgB,EAAE,MAAqB;QACzD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;YAC1B,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,IAAI,QAAQ,SAAS;YAC/C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACS,CAAA;IACzB,CAAC;IAEM,YAAY,CAAC,QAAgB,EAAE,UAAkB,EAAE,MAAqB;QAC7E,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;YAC1B,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,IAAI,QAAQ,WAAW,UAAU,EAAE;YAC7D,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,MAAM;SACS,CAAA;IACzB,CAAC;IAEM,YAAY,CAAC,QAAgB,EAAE,UAAkB;QACtD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;YAC1B,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE,IAAI,QAAQ,WAAW,UAAU,EAAE;YAC7D,MAAM,EAAE,QAAQ;SACK,CAAA;IACzB,CAAC;CACF,CAAA;AAlCY,SAAS;IADrB,IAAA,wBAAW,GAAE;GACD,SAAS,CAkCrB;AAlCY,8BAAS"}
@@ -0,0 +1 @@
1
+ export * from './ModuleApi';
@@ -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("./ModuleApi"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/objects/module/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
@@ -0,0 +1,2 @@
1
+ export * from './config';
2
+ export * from './types';
@@ -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("./config"), exports);
18
+ __exportStar(require("./types"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/objects/module/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
@@ -0,0 +1,12 @@
1
+ export interface IModuleAction {
2
+ name: string;
3
+ path: string;
4
+ }
5
+ export interface IModule {
6
+ _id: string;
7
+ label: string;
8
+ path: string;
9
+ description?: string;
10
+ namespace: string;
11
+ actions?: Array<IModuleAction>;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IModule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IModule.js","sourceRoot":"","sources":["../../../../src/objects/module/types/IModule.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export declare const ModuleObjectNames: {
2
+ module: string;
3
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModuleObjectNames = void 0;
4
+ exports.ModuleObjectNames = {
5
+ module: 'module'
6
+ };
7
+ //# sourceMappingURL=ModuleObjectNames.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleObjectNames.js","sourceRoot":"","sources":["../../../../src/objects/module/types/ModuleObjectNames.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;CACjB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './ModuleObjectNames';
2
+ export * from './IModule';
@@ -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("./ModuleObjectNames"), exports);
18
+ __exportStar(require("./IModule"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/objects/module/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,4CAA0B"}
@@ -0,0 +1,6 @@
1
+ import { CRUDRequest } from "../../../core";
2
+ import { IField } from "../types";
3
+ export declare class FieldApi extends CRUDRequest<IField> {
4
+ getApiName(): string;
5
+ getBaseUrl(): string;
6
+ }
@@ -0,0 +1,25 @@
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.FieldApi = void 0;
10
+ const core_1 = require("../../../core");
11
+ const decorators_1 = require("../../../core/decorators");
12
+ const types_1 = require("../types");
13
+ let FieldApi = class FieldApi extends core_1.CRUDRequest {
14
+ getApiName() {
15
+ return types_1.SchemaObjectNames.field;
16
+ }
17
+ getBaseUrl() {
18
+ return `${core_1.CRUDConfigs.crudURL}/metadata`;
19
+ }
20
+ };
21
+ FieldApi = __decorate([
22
+ (0, decorators_1.Calloutable)()
23
+ ], FieldApi);
24
+ exports.FieldApi = FieldApi;
25
+ //# sourceMappingURL=FieldApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldApi.js","sourceRoot":"","sources":["../../../../src/objects/schema/config/FieldApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wCAAuD;AACvD,yDAAqD;AACrD,oCAAmD;AAG5C,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,kBAAmB;IAE/B,UAAU;QACxB,OAAO,yBAAiB,CAAC,KAAK,CAAC;IACjC,CAAC;IAEe,UAAU;QACxB,OAAO,GAAG,kBAAW,CAAC,OAAO,WAAW,CAAA;IAC1C,CAAC;CAEF,CAAA;AAVY,QAAQ;IADpB,IAAA,wBAAW,GAAE;GACD,QAAQ,CAUpB;AAVY,4BAAQ"}
@@ -0,0 +1,6 @@
1
+ import { CRUDRequest } from "../../../core";
2
+ import { IObject } from "../types/IObject";
3
+ export declare class ObjectApi extends CRUDRequest<IObject> {
4
+ getApiName(): string;
5
+ getBaseUrl(): string;
6
+ }
@@ -0,0 +1,25 @@
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.ObjectApi = void 0;
10
+ const core_1 = require("../../../core");
11
+ const SchemaObjectNames_1 = require("../types/SchemaObjectNames");
12
+ const decorators_1 = require("../../../core/decorators");
13
+ let ObjectApi = class ObjectApi extends core_1.CRUDRequest {
14
+ getApiName() {
15
+ return SchemaObjectNames_1.SchemaObjectNames.object;
16
+ }
17
+ getBaseUrl() {
18
+ return `${core_1.CRUDConfigs.crudURL}/metadata`;
19
+ }
20
+ };
21
+ ObjectApi = __decorate([
22
+ (0, decorators_1.Calloutable)()
23
+ ], ObjectApi);
24
+ exports.ObjectApi = ObjectApi;
25
+ //# sourceMappingURL=ObjectApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectApi.js","sourceRoot":"","sources":["../../../../src/objects/schema/config/ObjectApi.ts"],"names":[],"mappings":";;;;;;;;;AAAA,wCAAuD;AAEvD,kEAA6D;AAC7D,yDAAqD;AAG9C,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,kBAAoB;IAEjC,UAAU;QACxB,OAAO,qCAAiB,CAAC,MAAM,CAAC;IAClC,CAAC;IAEe,UAAU;QACxB,OAAO,GAAG,kBAAW,CAAC,OAAO,WAAW,CAAA;IAC1C,CAAC;CAEF,CAAA;AAVY,SAAS;IADrB,IAAA,wBAAW,GAAE;GACD,SAAS,CAUrB;AAVY,8BAAS"}
@@ -0,0 +1,2 @@
1
+ export * from './ObjectApi';
2
+ export * from './FieldApi';
@@ -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("./ObjectApi"), exports);
18
+ __exportStar(require("./FieldApi"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/objects/schema/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B"}
@@ -0,0 +1,2 @@
1
+ export * from './config';
2
+ export * from './types';
@@ -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("./config"), exports);
18
+ __exportStar(require("./types"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/objects/schema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
@@ -0,0 +1,8 @@
1
+ export interface IField {
2
+ _id: string;
3
+ object: string;
4
+ label: string;
5
+ apiName: string;
6
+ namespace: string;
7
+ description?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IField.js","sourceRoot":"","sources":["../../../../src/objects/schema/types/IField.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export interface IObject {
2
+ _id: string;
3
+ label: string;
4
+ apiName: string;
5
+ description?: string;
6
+ namespace: string;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=IObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IObject.js","sourceRoot":"","sources":["../../../../src/objects/schema/types/IObject.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export declare const SchemaObjectNames: {
2
+ object: string;
3
+ field: string;
4
+ };
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemaObjectNames = void 0;
4
+ exports.SchemaObjectNames = {
5
+ object: 'object',
6
+ field: 'field'
7
+ };
8
+ //# sourceMappingURL=SchemaObjectNames.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SchemaObjectNames.js","sourceRoot":"","sources":["../../../../src/objects/schema/types/SchemaObjectNames.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACf,CAAA"}
@@ -0,0 +1,3 @@
1
+ export * from './IField';
2
+ export * from './SchemaObjectNames';
3
+ export * from './IObject';
@@ -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("./IField"), exports);
18
+ __exportStar(require("./SchemaObjectNames"), exports);
19
+ __exportStar(require("./IObject"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/objects/schema/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,sDAAoC;AACpC,4CAA0B"}
@@ -0,0 +1,9 @@
1
+ import { CRUDRequest } from "../../../core";
2
+ import { AxiosRequestConfig } from "axios";
3
+ import { IPermission } from "../types";
4
+ export declare class PermissionApi extends CRUDRequest<IPermission> {
5
+ getApiName(): string;
6
+ getBaseUrl(): string;
7
+ getByCategoryId(categoryId: string): AxiosRequestConfig;
8
+ getByCategoryIds(categoryIds: Array<string>): AxiosRequestConfig;
9
+ }
@@ -0,0 +1,57 @@
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 core_1 = require("../../../core");
14
+ const core_2 = require("../../../core");
15
+ const decorators_1 = require("../../../core/decorators");
16
+ const web_cache_1 = require("@buildery/web-cache");
17
+ const types_1 = require("../types");
18
+ let PermissionApi = class PermissionApi extends core_1.CRUDRequest {
19
+ getApiName() {
20
+ return types_1.SecurityObjectNames.permission;
21
+ }
22
+ getBaseUrl() {
23
+ return core_2.CRUDConfigs.workspaceURL;
24
+ }
25
+ getByCategoryId(categoryId) {
26
+ return {
27
+ baseURL: this.getBaseUrl(),
28
+ url: `${this.getApiName()}/category/${categoryId}`,
29
+ method: "GET"
30
+ };
31
+ }
32
+ getByCategoryIds(categoryIds) {
33
+ return {
34
+ baseURL: this.getBaseUrl(),
35
+ url: `${this.getApiName()}/categories/${categoryIds === null || categoryIds === void 0 ? void 0 : categoryIds.join(',')}`,
36
+ method: "GET"
37
+ };
38
+ }
39
+ ;
40
+ };
41
+ __decorate([
42
+ (0, web_cache_1.CacheRecord)({ operation: "query" }),
43
+ __metadata("design:type", Function),
44
+ __metadata("design:paramtypes", [String]),
45
+ __metadata("design:returntype", Object)
46
+ ], PermissionApi.prototype, "getByCategoryId", null);
47
+ __decorate([
48
+ (0, web_cache_1.CacheRecord)({ operation: "query" }),
49
+ __metadata("design:type", Function),
50
+ __metadata("design:paramtypes", [Array]),
51
+ __metadata("design:returntype", Object)
52
+ ], PermissionApi.prototype, "getByCategoryIds", null);
53
+ PermissionApi = __decorate([
54
+ (0, decorators_1.Calloutable)()
55
+ ], PermissionApi);
56
+ exports.PermissionApi = PermissionApi;
57
+ //# sourceMappingURL=PermissionApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermissionApi.js","sourceRoot":"","sources":["../../../../src/objects/security/config/PermissionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAA0C;AAE1C,wCAA0C;AAC1C,yDAAqD;AACrD,mDAAgD;AAChD,oCAA0D;AAGnD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,kBAAwB;IACzC,UAAU;QACxB,OAAO,2BAAmB,CAAC,UAAU,CAAC;IACxC,CAAC;IAEe,UAAU;QACxB,OAAO,kBAAW,CAAC,YAAY,CAAC;IAClC,CAAC;IAGM,eAAe,CAAC,UAAkB;QACvC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;YAC1B,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,aAAa,UAAU,EAAE;YAClD,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAGM,gBAAgB,CAAC,WAA0B;QAChD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,UAAU,EAAE;YAC1B,GAAG,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,eAAe,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YAChE,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CACH,CAAA;AAjBC;IAAC,IAAA,uBAAW,EAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;;;;oDAOnC;AAED;IAAC,IAAA,uBAAW,EAAC,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;;qCACC,KAAK;;qDAMzC;AAzBU,aAAa;IADzB,IAAA,wBAAW,GAAE;GACD,aAAa,CA0BzB;AA1BY,sCAAa"}
@@ -0,0 +1,6 @@
1
+ import { CRUDRequest } from "../../../core";
2
+ import { IPermissionAssignment } from "../types";
3
+ export declare class PermissionAssignmentApi extends CRUDRequest<IPermissionAssignment> {
4
+ getApiName(): string;
5
+ getBaseUrl(): string;
6
+ }