@buildery/ts-api-kit 5.0.2 → 5.0.4
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 +5 -5
- package/dist/Api.js +2 -2
- package/dist/Api.js.map +1 -1
- package/dist/ApiConfigs.d.ts +11 -4
- package/dist/ApiConfigs.js +10 -0
- package/dist/ApiConfigs.js.map +1 -1
- package/dist/features/api/abstract/AbstractApi.d.ts +1 -1
- package/dist/features/api/abstract/AbstractApi.js +4 -4
- package/dist/features/api/abstract/AbstractApi.js.map +1 -1
- package/dist/features/api/abstract/index.d.ts +1 -0
- package/dist/features/api/abstract/index.js +18 -0
- package/dist/features/api/abstract/index.js.map +1 -0
- package/dist/features/api/config/RawApi.d.ts +34 -0
- package/dist/features/api/config/RawApi.js +41 -0
- package/dist/features/api/config/RawApi.js.map +1 -0
- package/dist/features/api/config/index.d.ts +1 -0
- package/dist/features/api/config/index.js +18 -0
- package/dist/features/api/config/index.js.map +1 -0
- package/dist/features/api/index.d.ts +2 -0
- package/dist/features/api/index.js +19 -0
- package/dist/features/api/index.js.map +1 -0
- package/dist/features/auth/index.d.ts +0 -1
- package/dist/features/auth/index.js +0 -1
- package/dist/features/auth/index.js.map +1 -1
- package/dist/features/auth/services/AuthService.js +4 -2
- package/dist/features/auth/services/AuthService.js.map +1 -1
- package/dist/features/callout/decorators/Calloutable.d.ts +1 -1
- package/dist/features/callout/decorators/Calloutable.js.map +1 -1
- package/dist/features/crud/index.d.ts +0 -1
- package/dist/features/crud/index.js +0 -1
- package/dist/features/crud/index.js.map +1 -1
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.d.ts +2 -2
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.js +2 -2
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.js.map +1 -1
- package/dist/features/crud/operations/operations/Create.js +2 -1
- package/dist/features/crud/operations/operations/Create.js.map +1 -1
- package/dist/features/crud/operations/operations/CreateBulk.js +2 -1
- package/dist/features/crud/operations/operations/CreateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteById.js +2 -1
- package/dist/features/crud/operations/operations/DeleteById.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteByIds.js +2 -2
- package/dist/features/crud/operations/operations/DeleteByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/GetAll.js +2 -1
- package/dist/features/crud/operations/operations/GetAll.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByFilters.js +2 -1
- package/dist/features/crud/operations/operations/GetByFilters.js.map +1 -1
- package/dist/features/crud/operations/operations/GetById.js +2 -1
- package/dist/features/crud/operations/operations/GetById.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByIds.js +2 -1
- package/dist/features/crud/operations/operations/GetByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/Update.js +2 -1
- package/dist/features/crud/operations/operations/Update.js.map +1 -1
- package/dist/features/crud/operations/operations/UpdateBulk.js +2 -1
- package/dist/features/crud/operations/operations/UpdateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/Upsert.js +2 -1
- package/dist/features/crud/operations/operations/Upsert.js.map +1 -1
- package/dist/features/crud/operations/operations/UpsertBulk.js +2 -1
- package/dist/features/crud/operations/operations/UpsertBulk.js.map +1 -1
- package/dist/features/crud/sync/compose/useCrudSync.js +4 -4
- package/dist/features/crud/sync/compose/useCrudSync.js.map +1 -1
- package/dist/features/crud/sync/index.d.ts +0 -4
- package/dist/features/crud/sync/index.js +0 -4
- package/dist/features/crud/sync/index.js.map +1 -1
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js +4 -3
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js.map +1 -1
- package/dist/features/index.d.ts +0 -2
- package/dist/features/index.js +0 -2
- package/dist/features/index.js.map +1 -1
- package/dist/index.d.ts +3 -6
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +0 -1
- package/dist/main.js +0 -8
- package/dist/main.js.map +1 -1
- package/dist/micro/auth/AuthApi.d.ts +1 -1
- package/dist/micro/auth/AuthApi.js +20 -19
- package/dist/micro/auth/AuthApi.js.map +1 -1
- package/dist/micro/auth/WorkspaceApi.d.ts +1 -1
- package/dist/micro/auth/WorkspaceApi.js +6 -5
- package/dist/micro/auth/WorkspaceApi.js.map +1 -1
- package/dist/micro/auth/types/InitWorkspace.d.ts +3 -4
- package/dist/micro/query/FieldApi.d.ts +1 -1
- package/dist/micro/query/FieldApi.js +7 -6
- package/dist/micro/query/FieldApi.js.map +1 -1
- package/dist/micro/query/SObjectApi.d.ts +1 -1
- package/dist/micro/query/SObjectApi.js +4 -3
- package/dist/micro/query/SObjectApi.js.map +1 -1
- package/dist/micro/query/types/SObject.d.ts +4 -7
- package/dist/micro/query/types/SObjectField.d.ts +3 -5
- package/dist/micro/security/PermissionApi.d.ts +1 -1
- package/dist/micro/security/PermissionApi.js +5 -4
- package/dist/micro/security/PermissionApi.js.map +1 -1
- package/dist/micro/security/PermissionCategoryApi.d.ts +1 -1
- package/dist/micro/security/PermissionCategoryApi.js +4 -3
- package/dist/micro/security/PermissionCategoryApi.js.map +1 -1
- package/dist/micro/security/TeamApi.d.ts +1 -1
- package/dist/micro/security/TeamApi.js +5 -4
- package/dist/micro/security/TeamApi.js.map +1 -1
- package/dist/micro/workspace/ModuleApi.d.ts +1 -1
- package/dist/micro/workspace/ModuleApi.js +6 -5
- package/dist/micro/workspace/ModuleApi.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/HasApiName.d.ts +3 -0
- package/dist/types/HasApiName.js +3 -0
- package/dist/types/HasApiName.js.map +1 -0
- package/dist/types/HasDescription.d.ts +3 -0
- package/dist/types/HasDescription.js +3 -0
- package/dist/types/HasDescription.js.map +1 -0
- package/dist/types/HasMode.d.ts +1 -1
- package/dist/types/HasNamespace.d.ts +3 -0
- package/dist/types/HasNamespace.js +3 -0
- package/dist/types/HasNamespace.js.map +1 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/index.js +4 -2
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Update.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,MAAU,SAAQ,0BAAe;IAGrC,MAAM,CAAC,MAAS;QACrB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,MAAM,CAAC,CAAC;;;;oCAQjD;AAVH,wBAYC"}
|
|
@@ -13,6 +13,7 @@ exports.UpdateBulk = void 0;
|
|
|
13
13
|
const abstract_1 = require("../abstract");
|
|
14
14
|
const callout_1 = require("../../../callout");
|
|
15
15
|
const sync_1 = require("../../sync");
|
|
16
|
+
const middlewares_1 = require("../../sync/middlewares");
|
|
16
17
|
class UpdateBulk extends abstract_1.AbstractCRUDApi {
|
|
17
18
|
updateBulk(entities) {
|
|
18
19
|
return {
|
|
@@ -25,7 +26,7 @@ class UpdateBulk extends abstract_1.AbstractCRUDApi {
|
|
|
25
26
|
;
|
|
26
27
|
}
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, callout_1.Calloutable)((0,
|
|
29
|
+
(0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.UpdateBulk)),
|
|
29
30
|
__metadata("design:type", Function),
|
|
30
31
|
__metadata("design:paramtypes", [Array]),
|
|
31
32
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/UpdateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"UpdateBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/UpdateBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,UAAc,SAAQ,0BAAe;IAGzC,UAAU,CAAC,QAAkB;QAClC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,OAAO;YAC/B,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,UAAU,CAAC,CAAC;;qCAC1B,KAAK;;4CAOhC;AAVH,gCAYC"}
|
|
@@ -13,6 +13,7 @@ exports.Upsert = void 0;
|
|
|
13
13
|
const abstract_1 = require("../abstract");
|
|
14
14
|
const callout_1 = require("../../../callout");
|
|
15
15
|
const sync_1 = require("../../sync");
|
|
16
|
+
const middlewares_1 = require("../../sync/middlewares");
|
|
16
17
|
class Upsert extends abstract_1.AbstractCRUDApi {
|
|
17
18
|
upsert(entity) {
|
|
18
19
|
return {
|
|
@@ -25,7 +26,7 @@ class Upsert extends abstract_1.AbstractCRUDApi {
|
|
|
25
26
|
;
|
|
26
27
|
}
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, callout_1.Calloutable)((0,
|
|
29
|
+
(0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.Upsert)),
|
|
29
30
|
__metadata("design:type", Function),
|
|
30
31
|
__metadata("design:paramtypes", [Object]),
|
|
31
32
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Upsert.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Upsert.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"Upsert.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Upsert.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,MAAU,SAAQ,0BAAe;IAGrC,MAAM,CAAC,MAAS;QACrB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,MAAM,CAAC,CAAC;;;;oCAQjD;AAVH,wBAYC"}
|
|
@@ -13,6 +13,7 @@ exports.UpsertBulk = void 0;
|
|
|
13
13
|
const abstract_1 = require("../abstract");
|
|
14
14
|
const callout_1 = require("../../../callout");
|
|
15
15
|
const sync_1 = require("../../sync");
|
|
16
|
+
const middlewares_1 = require("../../sync/middlewares");
|
|
16
17
|
class UpsertBulk extends abstract_1.AbstractCRUDApi {
|
|
17
18
|
upsertBulk(entities) {
|
|
18
19
|
return {
|
|
@@ -25,7 +26,7 @@ class UpsertBulk extends abstract_1.AbstractCRUDApi {
|
|
|
25
26
|
;
|
|
26
27
|
}
|
|
27
28
|
__decorate([
|
|
28
|
-
(0, callout_1.Calloutable)((0,
|
|
29
|
+
(0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.UpsertBulk)),
|
|
29
30
|
__metadata("design:type", Function),
|
|
30
31
|
__metadata("design:paramtypes", [Array]),
|
|
31
32
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpsertBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/UpsertBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"UpsertBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/UpsertBulk.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAA4C;AAE5C,8CAA6C;AAC7C,qCAA0C;AAC1C,wDAAqD;AAErD,MAAa,UAAc,SAAQ,0BAAe;IAGzC,UAAU,CAAC,QAAkB;QAClC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,OAAO;YAC/B,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAVC;IAAC,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,UAAU,CAAC,CAAC;;qCAC1B,KAAK;;4CAOhC;AAVH,gCAYC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useSyncCrud = void 0;
|
|
4
|
-
const config_1 = require("../../../../config");
|
|
5
4
|
const error_1 = require("../error");
|
|
6
5
|
const constants_1 = require("../constants");
|
|
7
6
|
const services_1 = require("../services");
|
|
8
7
|
const sync_1 = require("../sync");
|
|
9
8
|
const compose_1 = require("../../../../compose");
|
|
9
|
+
const ApiConfigs_1 = require("../../../../ApiConfigs");
|
|
10
10
|
const ALL_ACTIONS = [
|
|
11
11
|
constants_1.CrudSyncAction.Create,
|
|
12
12
|
constants_1.CrudSyncAction.Delete,
|
|
@@ -20,7 +20,7 @@ const ALL_ACTIONS = [
|
|
|
20
20
|
function useSyncCrud(api, actions = ALL_ACTIONS) {
|
|
21
21
|
if (!(api && api.objectName && actions))
|
|
22
22
|
return;
|
|
23
|
-
if (!
|
|
23
|
+
if (!ApiConfigs_1.ApiConfigs.event.eventBus) {
|
|
24
24
|
throw new error_1.CrudSyncError('Event bus not defined in the ApiConfigs');
|
|
25
25
|
}
|
|
26
26
|
const channelName = getChannelName(api);
|
|
@@ -35,10 +35,10 @@ function useSyncCrud(api, actions = ALL_ACTIONS) {
|
|
|
35
35
|
function subscribe(action, service, target) {
|
|
36
36
|
const handler = (response) => service.sync(target, response);
|
|
37
37
|
eventHandlerByAction.set(action, handler);
|
|
38
|
-
|
|
38
|
+
ApiConfigs_1.ApiConfigs.event.eventBus.subscribe(channelName, action, handler);
|
|
39
39
|
}
|
|
40
40
|
function unsubscribe(handler, action) {
|
|
41
|
-
|
|
41
|
+
ApiConfigs_1.ApiConfigs.event.eventBus.unsubscribe(channelName, action, handler);
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
subscribeSyncCrud,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrudSync.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/compose/useCrudSync.ts"],"names":[],"mappings":";;;AAEA
|
|
1
|
+
{"version":3,"file":"useCrudSync.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/compose/useCrudSync.ts"],"names":[],"mappings":";;;AAEA,oCAAuC;AACvC,4CAA4C;AAC5C,0CAA4C;AAC5C,kCAAyG;AACzG,iDAAiD;AAEjD,uDAAkD;AAElD,MAAM,WAAW,GAAG;IAClB,0BAAc,CAAC,MAAM;IACrB,0BAAc,CAAC,MAAM;IACrB,0BAAc,CAAC,MAAM;IACrB,0BAAc,CAAC,MAAM;IACrB,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16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./compose"), exports);
|
|
18
18
|
__exportStar(require("./constants"), exports);
|
|
19
|
-
__exportStar(require("./error"), exports);
|
|
20
|
-
__exportStar(require("./middlewares"), exports);
|
|
21
|
-
__exportStar(require("./services"), exports);
|
|
22
|
-
__exportStar(require("./sync"), exports);
|
|
23
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/sync/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/sync/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,8CAA4B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PushCrudEvent = void 0;
|
|
4
|
-
const config_1 = require("../../../../config");
|
|
5
4
|
const services_1 = require("../services");
|
|
5
|
+
const ApiConfigs_1 = require("../../../../ApiConfigs");
|
|
6
6
|
const PushCrudEvent = (action) => (apiInstance) => {
|
|
7
|
-
if (!
|
|
7
|
+
if (!ApiConfigs_1.ApiConfigs.event.eventBus)
|
|
8
8
|
return;
|
|
9
|
-
|
|
9
|
+
console.log(`Event: ${action}`);
|
|
10
|
+
return (response) => ApiConfigs_1.ApiConfigs.event.eventBus.publish(services_1.CrudSyncService.getObjectChannel(apiInstance.apiUrl), action, response === null || response === void 0 ? void 0 : response.data);
|
|
10
11
|
};
|
|
11
12
|
exports.PushCrudEvent = PushCrudEvent;
|
|
12
13
|
//# sourceMappingURL=PushCrudEvent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PushCrudEvent.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/middlewares/PushCrudEvent.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"PushCrudEvent.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/middlewares/PushCrudEvent.ts"],"names":[],"mappings":";;;AAIA,0CAA4C;AAC5C,uDAAkD;AAE3C,MAAM,aAAa,GAAG,CAAC,MAAsB,EAAwC,EAAE,CAAC,CAAC,WAAW,EAA8B,EAAE;IACzI,IAAI,CAAC,uBAAU,CAAC,KAAK,CAAC,QAAQ;QAAE,OAAO;IAEvC,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,EAAE,CAAC,CAAA;IAE/B,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,uBAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CACpD,0BAAe,CAAC,gBAAgB,CAAC,WAAW,CAAC,MAAM,CAAC,EACpD,MAAM,EACN,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CACf,CAAC;AACJ,CAAC,CAAA;AAVY,QAAA,aAAa,iBAUzB"}
|
package/dist/features/index.d.ts
CHANGED
package/dist/features/index.js
CHANGED
|
@@ -15,7 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./auth"), exports);
|
|
18
|
-
__exportStar(require("./bind-this"), exports);
|
|
19
|
-
__exportStar(require("./callout"), exports);
|
|
20
18
|
__exportStar(require("./crud"), exports);
|
|
21
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/features/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export * from './api';
|
|
2
1
|
export * from './features';
|
|
3
|
-
export * from './Api';
|
|
4
|
-
export * from './types';
|
|
5
2
|
export * from './micro';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
3
|
+
export * from './types';
|
|
4
|
+
export * from './Api';
|
|
5
|
+
export * from './ApiConfigs';
|
package/dist/index.js
CHANGED
|
@@ -14,12 +14,9 @@ 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("./api"), exports);
|
|
18
17
|
__exportStar(require("./features"), exports);
|
|
19
|
-
__exportStar(require("./Api"), exports);
|
|
20
|
-
__exportStar(require("./types"), exports);
|
|
21
18
|
__exportStar(require("./micro"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
23
|
-
__exportStar(require("./
|
|
24
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
__exportStar(require("./Api"), exports);
|
|
21
|
+
__exportStar(require("./ApiConfigs"), exports);
|
|
25
22
|
//# 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,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,0CAAwB;AACxB,wCAAsB;AACtB,+CAA6B"}
|
package/dist/main.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/main.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const Api_1 = require("./Api");
|
|
4
|
-
const config_1 = require("./config");
|
|
5
|
-
const event_bus_1 = require("@buildery/event-bus");
|
|
6
|
-
config_1.ApiConfigs.event.eventBus = new event_bus_1.EventBus();
|
|
7
|
-
config_1.ApiConfigs.api.securityUrl = 'http://localhost:3000/security';
|
|
8
|
-
console.log(Api_1.Api.security.team().getById('123'));
|
|
9
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":"
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
|
-
import { BindThis } from "../../features";
|
|
3
2
|
import { AuthSignIn, AuthActivateUser, AuthChangePassword, AuthConfirmResetPassword } from "../../features";
|
|
3
|
+
import { BindThis } from "../../features/bind-this";
|
|
4
4
|
export declare class AuthApi extends BindThis {
|
|
5
5
|
getTokensByCredentials(user: AuthSignIn): AxiosRequestConfig<any>;
|
|
6
6
|
getAuthCodeByCredentials(user: AuthSignIn): AxiosRequestConfig<any>;
|
|
@@ -10,12 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AuthApi = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
13
|
+
const bind_this_1 = require("../../features/bind-this");
|
|
14
|
+
const callout_1 = require("../../features/callout");
|
|
15
|
+
const ApiConfigs_1 = require("../../ApiConfigs");
|
|
16
|
+
class AuthApi extends bind_this_1.BindThis {
|
|
16
17
|
getTokensByCredentials(user) {
|
|
17
18
|
return {
|
|
18
|
-
baseURL:
|
|
19
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
19
20
|
url: '/user/signin',
|
|
20
21
|
method: 'POST',
|
|
21
22
|
data: user
|
|
@@ -23,7 +24,7 @@ class AuthApi extends features_1.BindThis {
|
|
|
23
24
|
}
|
|
24
25
|
getAuthCodeByCredentials(user) {
|
|
25
26
|
return {
|
|
26
|
-
baseURL:
|
|
27
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
27
28
|
url: '/user/signin/code',
|
|
28
29
|
method: 'POST',
|
|
29
30
|
data: user
|
|
@@ -31,14 +32,14 @@ class AuthApi extends features_1.BindThis {
|
|
|
31
32
|
}
|
|
32
33
|
getTokensByAuthCode(code) {
|
|
33
34
|
return {
|
|
34
|
-
baseURL:
|
|
35
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
35
36
|
url: `/user/signin/code/${code}`,
|
|
36
37
|
method: 'GET',
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
activate(user) {
|
|
40
41
|
return {
|
|
41
|
-
baseURL:
|
|
42
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
42
43
|
url: '/user/signup/code',
|
|
43
44
|
method: 'POST',
|
|
44
45
|
data: user
|
|
@@ -46,7 +47,7 @@ class AuthApi extends features_1.BindThis {
|
|
|
46
47
|
}
|
|
47
48
|
refresh(refreshToken) {
|
|
48
49
|
return {
|
|
49
|
-
baseURL:
|
|
50
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
50
51
|
url: '/user/refresh',
|
|
51
52
|
method: 'POST',
|
|
52
53
|
data: { refreshToken }
|
|
@@ -54,14 +55,14 @@ class AuthApi extends features_1.BindThis {
|
|
|
54
55
|
}
|
|
55
56
|
resetPassword(userId) {
|
|
56
57
|
return {
|
|
57
|
-
baseURL:
|
|
58
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
58
59
|
url: `/user/password/reset/${userId}`,
|
|
59
60
|
method: 'POST',
|
|
60
61
|
};
|
|
61
62
|
}
|
|
62
63
|
resetPasswordConfirm(confirm) {
|
|
63
64
|
return {
|
|
64
|
-
baseURL:
|
|
65
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
65
66
|
url: `/user/password/reset`,
|
|
66
67
|
method: 'POST',
|
|
67
68
|
data: confirm
|
|
@@ -69,7 +70,7 @@ class AuthApi extends features_1.BindThis {
|
|
|
69
70
|
}
|
|
70
71
|
changePassword(user) {
|
|
71
72
|
return {
|
|
72
|
-
baseURL:
|
|
73
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.authUrl,
|
|
73
74
|
url: `/user/password/change`,
|
|
74
75
|
method: 'POST',
|
|
75
76
|
data: user
|
|
@@ -77,49 +78,49 @@ class AuthApi extends features_1.BindThis {
|
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
__decorate([
|
|
80
|
-
(0,
|
|
81
|
+
(0, callout_1.Calloutable)(),
|
|
81
82
|
__metadata("design:type", Function),
|
|
82
83
|
__metadata("design:paramtypes", [Object]),
|
|
83
84
|
__metadata("design:returntype", void 0)
|
|
84
85
|
], AuthApi.prototype, "getTokensByCredentials", null);
|
|
85
86
|
__decorate([
|
|
86
|
-
(0,
|
|
87
|
+
(0, callout_1.Calloutable)(),
|
|
87
88
|
__metadata("design:type", Function),
|
|
88
89
|
__metadata("design:paramtypes", [Object]),
|
|
89
90
|
__metadata("design:returntype", void 0)
|
|
90
91
|
], AuthApi.prototype, "getAuthCodeByCredentials", null);
|
|
91
92
|
__decorate([
|
|
92
|
-
(0,
|
|
93
|
+
(0, callout_1.Calloutable)(),
|
|
93
94
|
__metadata("design:type", Function),
|
|
94
95
|
__metadata("design:paramtypes", [String]),
|
|
95
96
|
__metadata("design:returntype", void 0)
|
|
96
97
|
], AuthApi.prototype, "getTokensByAuthCode", null);
|
|
97
98
|
__decorate([
|
|
98
|
-
(0,
|
|
99
|
+
(0, callout_1.Calloutable)(),
|
|
99
100
|
__metadata("design:type", Function),
|
|
100
101
|
__metadata("design:paramtypes", [Object]),
|
|
101
102
|
__metadata("design:returntype", void 0)
|
|
102
103
|
], AuthApi.prototype, "activate", null);
|
|
103
104
|
__decorate([
|
|
104
|
-
(0,
|
|
105
|
+
(0, callout_1.Calloutable)(),
|
|
105
106
|
__metadata("design:type", Function),
|
|
106
107
|
__metadata("design:paramtypes", [String]),
|
|
107
108
|
__metadata("design:returntype", void 0)
|
|
108
109
|
], AuthApi.prototype, "refresh", null);
|
|
109
110
|
__decorate([
|
|
110
|
-
(0,
|
|
111
|
+
(0, callout_1.Calloutable)(),
|
|
111
112
|
__metadata("design:type", Function),
|
|
112
113
|
__metadata("design:paramtypes", [String]),
|
|
113
114
|
__metadata("design:returntype", void 0)
|
|
114
115
|
], AuthApi.prototype, "resetPassword", null);
|
|
115
116
|
__decorate([
|
|
116
|
-
(0,
|
|
117
|
+
(0, callout_1.Calloutable)(),
|
|
117
118
|
__metadata("design:type", Function),
|
|
118
119
|
__metadata("design:paramtypes", [Object]),
|
|
119
120
|
__metadata("design:returntype", void 0)
|
|
120
121
|
], AuthApi.prototype, "resetPasswordConfirm", null);
|
|
121
122
|
__decorate([
|
|
122
|
-
(0,
|
|
123
|
+
(0, callout_1.Calloutable)(),
|
|
123
124
|
__metadata("design:type", Function),
|
|
124
125
|
__metadata("design:paramtypes", [Object]),
|
|
125
126
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthApi.js","sourceRoot":"","sources":["../../../src/micro/auth/AuthApi.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AuthApi.js","sourceRoot":"","sources":["../../../src/micro/auth/AuthApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,wDAAkD;AAClD,oDAAmD;AACnD,iDAA4C;AAE5C,MAAa,OAAQ,SAAQ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EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAA;IACH,CAAC;IAGM,cAAc,CAAC,IAAwB;QAC5C,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,uBAAuB;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;CAEF;AA9EC;IAAC,IAAA,qBAAW,GAAE;;;;qDAQb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;uDAQb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;kDAOb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;uCAQb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;sCAQb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;4CAOb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;mDAQb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;6CAQb;AA9EH,0BAgFC"}
|
|
@@ -10,12 +10,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.WorkspaceApi = void 0;
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
|
|
13
|
+
const bind_this_1 = require("../../features/bind-this");
|
|
14
|
+
const callout_1 = require("../../features/callout");
|
|
15
|
+
const ApiConfigs_1 = require("../../ApiConfigs");
|
|
16
|
+
class WorkspaceApi extends bind_this_1.BindThis {
|
|
16
17
|
init(workspace) {
|
|
17
18
|
return {
|
|
18
|
-
baseURL:
|
|
19
|
+
baseURL: ApiConfigs_1.ApiConfigs.api.initUrl,
|
|
19
20
|
url: '/init',
|
|
20
21
|
method: 'POST',
|
|
21
22
|
data: workspace
|
|
@@ -23,7 +24,7 @@ class WorkspaceApi extends features_1.BindThis {
|
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
__decorate([
|
|
26
|
-
(0,
|
|
27
|
+
(0, callout_1.Calloutable)(),
|
|
27
28
|
__metadata("design:type", Function),
|
|
28
29
|
__metadata("design:paramtypes", [Object]),
|
|
29
30
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceApi.js","sourceRoot":"","sources":["../../../src/micro/auth/WorkspaceApi.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"WorkspaceApi.js","sourceRoot":"","sources":["../../../src/micro/auth/WorkspaceApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wDAAkD;AAClD,oDAAmD;AACnD,iDAA4C;AAE5C,MAAa,YAAa,SAAQ,oBAAQ;IAGjC,IAAI,CAAC,SAAwB;QAClC,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,GAAG,CAAC,OAAO;YAC/B,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;CAEF;AAVC;IAAC,IAAA,qBAAW,GAAE;;;;wCAQb;AAVH,oCAYC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
import { HasEmail, HasLabel } from "../../../types";
|
|
2
|
+
import { HasDescription } from "../../../types/HasDescription";
|
|
1
3
|
export type InitWorkspace = {
|
|
2
|
-
label: string;
|
|
3
4
|
domain: string;
|
|
4
5
|
firstName: string;
|
|
5
6
|
lastName: string;
|
|
6
|
-
|
|
7
|
-
description: string;
|
|
8
|
-
};
|
|
7
|
+
} & HasEmail & HasLabel & HasDescription;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbstractCRUDApi } from "../../features";
|
|
2
1
|
import { AxiosRequestConfig } from "axios";
|
|
3
2
|
import { SObjectField } from "./types";
|
|
3
|
+
import { AbstractCRUDApi } from "../../features/crud/operations";
|
|
4
4
|
export declare class FieldApi extends AbstractCRUDApi {
|
|
5
5
|
create(field: SObjectField): AxiosRequestConfig;
|
|
6
6
|
getAllByObjectId(objectId: string): AxiosRequestConfig<any>;
|
|
@@ -10,8 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.FieldApi = void 0;
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
const operations_1 = require("../../features/crud/operations");
|
|
14
|
+
const callout_1 = require("../../features/callout");
|
|
15
|
+
class FieldApi extends operations_1.AbstractCRUDApi {
|
|
15
16
|
create(field) {
|
|
16
17
|
return {
|
|
17
18
|
baseURL: this.apiUrl,
|
|
@@ -42,25 +43,25 @@ class FieldApi extends features_1.AbstractCRUDApi {
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
__decorate([
|
|
45
|
-
(0,
|
|
46
|
+
(0, callout_1.Calloutable)(),
|
|
46
47
|
__metadata("design:type", Function),
|
|
47
48
|
__metadata("design:paramtypes", [Object]),
|
|
48
49
|
__metadata("design:returntype", Object)
|
|
49
50
|
], FieldApi.prototype, "create", null);
|
|
50
51
|
__decorate([
|
|
51
|
-
(0,
|
|
52
|
+
(0, callout_1.Calloutable)(),
|
|
52
53
|
__metadata("design:type", Function),
|
|
53
54
|
__metadata("design:paramtypes", [String]),
|
|
54
55
|
__metadata("design:returntype", void 0)
|
|
55
56
|
], FieldApi.prototype, "getAllByObjectId", null);
|
|
56
57
|
__decorate([
|
|
57
|
-
(0,
|
|
58
|
+
(0, callout_1.Calloutable)(),
|
|
58
59
|
__metadata("design:type", Function),
|
|
59
60
|
__metadata("design:paramtypes", [String]),
|
|
60
61
|
__metadata("design:returntype", void 0)
|
|
61
62
|
], FieldApi.prototype, "getAllByObjectApiName", null);
|
|
62
63
|
__decorate([
|
|
63
|
-
(0,
|
|
64
|
+
(0, callout_1.Calloutable)(),
|
|
64
65
|
__metadata("design:type", Function),
|
|
65
66
|
__metadata("design:paramtypes", [String]),
|
|
66
67
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldApi.js","sourceRoot":"","sources":["../../../src/micro/query/FieldApi.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"FieldApi.js","sourceRoot":"","sources":["../../../src/micro/query/FieldApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+DAA+D;AAC/D,oDAAmD;AAEnD,MAAa,QAAS,SAAQ,4BAAe;IAGpC,MAAM,CAAC,KAAmB;QAC/B,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,KAAK,CAAC,QAAQ,EAAE;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,KAAK;SACU,CAAA;IACzB,CAAC;IAGM,gBAAgB,CAAC,QAAgB;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,WAAW,QAAQ,EAAE;YAC7C,MAAM,EAAE,KAAK;SACQ,CAAA;IACzB,CAAC;IAGM,qBAAqB,CAAC,OAAe;QAC1C,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,mBAAmB,OAAO,EAAE;SACrD,CAAA;IACH,CAAC;IAGM,mBAAmB,CAAC,QAAgB;QACzC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,WAAW,QAAQ,MAAM;YACjD,MAAM,EAAE,QAAQ;SACK,CAAA;IACzB,CAAC;CAEF;AApCC;IAAC,IAAA,qBAAW,GAAE;;;;sCAQb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;gDAOb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;qDAMb;AAED;IAAC,IAAA,qBAAW,GAAE;;;;mDAOb;AApCH,4BAsCC"}
|
|
@@ -10,8 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SObjectApi = void 0;
|
|
13
|
-
const
|
|
14
|
-
|
|
13
|
+
const operations_1 = require("../../features/crud/operations");
|
|
14
|
+
const callout_1 = require("../../features/callout");
|
|
15
|
+
class SObjectApi extends operations_1.AbstractCRUDApi {
|
|
15
16
|
getByApiName(apiName) {
|
|
16
17
|
return {
|
|
17
18
|
baseUrl: this.apiUrl,
|
|
@@ -21,7 +22,7 @@ class SObjectApi extends features_1.AbstractCRUDApi {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
__decorate([
|
|
24
|
-
(0,
|
|
25
|
+
(0, callout_1.Calloutable)(),
|
|
25
26
|
__metadata("design:type", Function),
|
|
26
27
|
__metadata("design:paramtypes", [String]),
|
|
27
28
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SObjectApi.js","sourceRoot":"","sources":["../../../src/micro/query/SObjectApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"SObjectApi.js","sourceRoot":"","sources":["../../../src/micro/query/SObjectApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAA+D;AAC/D,oDAAmD;AAEnD,MAAa,UAAc,SAAQ,4BAAe;IAGzC,YAAY,CAAC,OAAe;QACjC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,MAAM;YACpB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,YAAY,OAAO,EAAE;YAC7C,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;CAEF;AATC;IAAC,IAAA,qBAAW,GAAE;;;;8CAOb;AATH,gCAWC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
description?: string;
|
|
6
|
-
namespace: string;
|
|
7
|
-
};
|
|
1
|
+
import { HasApiName, HasDBId, HasLabel } from "../../../types";
|
|
2
|
+
import { HasDescription } from "../../../types/HasDescription";
|
|
3
|
+
import { HasNamespace } from "../../../types/HasNamespace";
|
|
4
|
+
export type SObject = {} & HasDBId & HasLabel & HasApiName & HasDescription & HasNamespace;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { FieldType } from "./FieldType";
|
|
2
2
|
import { PicklistValue } from "./PicklistValue";
|
|
3
|
+
import { HasApiName, HasDBId, HasLabel } from "../../../types";
|
|
4
|
+
import { HasNamespace } from "../../../types/HasNamespace";
|
|
3
5
|
export type SObjectField = {
|
|
4
|
-
_id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
apiName: string;
|
|
7
6
|
type: FieldType;
|
|
8
|
-
namespace: string;
|
|
9
7
|
objectId?: string;
|
|
10
8
|
description?: string;
|
|
11
9
|
example?: string;
|
|
@@ -27,4 +25,4 @@ export type SObjectField = {
|
|
|
27
25
|
isStrict?: boolean;
|
|
28
26
|
globalSet?: string;
|
|
29
27
|
};
|
|
30
|
-
};
|
|
28
|
+
} & HasDBId & HasLabel & HasApiName & HasNamespace;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractCRUDApi } from "../../features";
|
|
2
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { AbstractCRUDApi } from "../../features/crud/operations";
|
|
3
3
|
export declare class PermissionApi extends AbstractCRUDApi {
|
|
4
4
|
getByCategoryId(categoryId: string): AxiosRequestConfig;
|
|
5
5
|
getByCategoryIds(categoryIds: Array<string>): AxiosRequestConfig;
|