@buildery/ts-api-kit 5.2.6 → 6.1.0
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 +103 -90
- package/dist/Api.js +17 -12
- package/dist/Api.js.map +1 -1
- package/dist/ApiConfigs.d.ts +7 -6
- package/dist/ApiConfigs.js +1 -0
- package/dist/ApiConfigs.js.map +1 -1
- package/dist/compose/useSingleton.d.ts +1 -1
- package/dist/compose/useSingleton.js +1 -2
- package/dist/compose/useSingleton.js.map +1 -1
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +31 -0
- package/dist/constants.js.map +1 -0
- package/dist/features/api/AbstractApi.d.ts +4 -4
- package/dist/features/api/AbstractApi.js +6 -6
- package/dist/features/api/AbstractApi.js.map +1 -1
- package/dist/features/auth/services/AuthAxiosService.js +6 -3
- package/dist/features/auth/services/AuthAxiosService.js.map +1 -1
- package/dist/features/auth/services/AuthService.d.ts +0 -1
- package/dist/features/auth/services/AuthService.js +0 -4
- package/dist/features/auth/services/AuthService.js.map +1 -1
- package/dist/features/callout/Callout.d.ts +22 -0
- package/dist/features/callout/Callout.js +66 -0
- package/dist/features/callout/Callout.js.map +1 -0
- package/dist/features/callout/CalloutMiddlewareService.d.ts +5 -0
- package/dist/features/callout/CalloutMiddlewareService.js +17 -0
- package/dist/features/callout/CalloutMiddlewareService.js.map +1 -0
- package/dist/features/callout/CalloutMiddlewares.d.ts +4 -0
- package/dist/features/callout/CalloutMiddlewares.js +15 -0
- package/dist/features/callout/CalloutMiddlewares.js.map +1 -0
- package/dist/features/callout/Calloutable.d.ts +3 -0
- package/dist/features/callout/Calloutable.js +20 -0
- package/dist/features/callout/Calloutable.js.map +1 -0
- package/dist/features/callout/index.d.ts +4 -1
- package/dist/features/callout/index.js +4 -1
- package/dist/features/callout/index.js.map +1 -1
- package/dist/features/callout/types.d.ts +21 -0
- package/dist/features/callout/types.js +3 -0
- package/dist/features/callout/types.js.map +1 -0
- 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 +5 -5
- package/dist/features/crud/operations/operations/Create.js.map +1 -1
- 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/DeleteByFilters.js +2 -2
- package/dist/features/crud/operations/operations/DeleteByFilters.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteById.js +2 -2
- 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 -2
- package/dist/features/crud/operations/operations/GetAll.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByFilters.js +2 -2
- package/dist/features/crud/operations/operations/GetByFilters.js.map +1 -1
- package/dist/features/crud/operations/operations/GetById.js +2 -2
- package/dist/features/crud/operations/operations/GetById.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByIds.js +2 -2
- package/dist/features/crud/operations/operations/GetByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/Update.js +2 -2
- package/dist/features/crud/operations/operations/Update.js.map +1 -1
- package/dist/features/crud/operations/operations/UpdateBulk.js +2 -2
- package/dist/features/crud/operations/operations/UpdateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/Upsert.js +2 -2
- package/dist/features/crud/operations/operations/Upsert.js.map +1 -1
- package/dist/features/crud/operations/operations/UpsertBulk.js +2 -2
- package/dist/features/crud/operations/operations/UpsertBulk.js.map +1 -1
- package/dist/features/crud/sync/compose/useCrudSync.js +1 -2
- package/dist/features/crud/sync/compose/useCrudSync.js.map +1 -1
- package/dist/features/crud/sync/constants/CrudSyncAction.js +1 -1
- package/dist/features/crud/sync/constants/CrudSyncAction.js.map +1 -1
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js.map +1 -1
- package/dist/features/crud/sync/sync/abstract/AbstractCrudSync.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/micro/auth/AuthApi.d.ts +6 -6
- package/dist/micro/auth/AuthApi.js +11 -10
- package/dist/micro/auth/AuthApi.js.map +1 -1
- package/dist/micro/auth/WorkspaceApi.js +6 -4
- package/dist/micro/auth/WorkspaceApi.js.map +1 -1
- package/dist/micro/auth/types/InitWorkspace.d.ts +1 -2
- package/dist/micro/query/FieldApi.d.ts +4 -4
- package/dist/micro/query/FieldApi.js +9 -8
- package/dist/micro/query/FieldApi.js.map +1 -1
- package/dist/micro/query/SObjectApi.d.ts +1 -1
- package/dist/micro/query/SObjectApi.js +2 -2
- package/dist/micro/query/SObjectApi.js.map +1 -1
- package/dist/micro/query/types/FieldType.js +1 -1
- package/dist/micro/query/types/FieldType.js.map +1 -1
- package/dist/micro/query/types/SObject.d.ts +1 -3
- package/dist/micro/query/types/SObjectField.d.ts +1 -2
- package/dist/micro/security/PermissionApi.d.ts +2 -2
- package/dist/micro/security/PermissionApi.js +6 -6
- package/dist/micro/security/PermissionApi.js.map +1 -1
- package/dist/micro/security/PermissionCategoryApi.js +2 -2
- package/dist/micro/security/PermissionCategoryApi.js.map +1 -1
- package/dist/micro/security/PermissionSetApi.d.ts +2 -2
- package/dist/micro/security/PermissionSetApi.js +3 -3
- package/dist/micro/security/PermissionSetApi.js.map +1 -1
- package/dist/micro/security/TeamApi.d.ts +2 -2
- package/dist/micro/security/TeamApi.js +3 -3
- package/dist/micro/security/TeamApi.js.map +1 -1
- package/dist/micro/workspace/ModuleApi.d.ts +3 -3
- package/dist/micro/workspace/ModuleApi.js +4 -4
- package/dist/micro/workspace/ModuleApi.js.map +1 -1
- package/dist/micro/workspace/types/EUserStatus.js +1 -1
- package/dist/micro/workspace/types/EUserStatus.js.map +1 -1
- package/dist/services/ResponseService.d.ts +9 -0
- package/dist/services/ResponseService.js +28 -0
- package/dist/services/ResponseService.js.map +1 -0
- package/dist/services/UrlService.d.ts +4 -0
- package/dist/services/UrlService.js +15 -0
- package/dist/services/UrlService.js.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +1 -0
- package/dist/services/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/HasCallouts.d.ts +1 -1
- package/dist/types.d.ts +61 -0
- package/dist/types.js +18 -0
- package/dist/types.js.map +1 -0
- package/package.json +6 -5
|
@@ -17,7 +17,7 @@ const middlewares_1 = require("../../sync/middlewares");
|
|
|
17
17
|
class UpsertBulk extends abstract_1.AbstractCRUDApi {
|
|
18
18
|
upsertBulk(entities) {
|
|
19
19
|
return {
|
|
20
|
-
baseURL: this.
|
|
20
|
+
baseURL: this.serverUrl,
|
|
21
21
|
url: `/${this.objectName}/bulk`,
|
|
22
22
|
method: 'PUT',
|
|
23
23
|
data: entities
|
|
@@ -25,11 +25,11 @@ class UpsertBulk extends abstract_1.AbstractCRUDApi {
|
|
|
25
25
|
}
|
|
26
26
|
;
|
|
27
27
|
}
|
|
28
|
+
exports.UpsertBulk = UpsertBulk;
|
|
28
29
|
__decorate([
|
|
29
30
|
(0, callout_1.Calloutable)((0, middlewares_1.PushCrudEvent)(sync_1.CrudSyncAction.UpsertBulk)),
|
|
30
31
|
__metadata("design:type", Function),
|
|
31
32
|
__metadata("design:paramtypes", [Array]),
|
|
32
33
|
__metadata("design:returntype", Object)
|
|
33
34
|
], UpsertBulk.prototype, "upsertBulk", null);
|
|
34
|
-
exports.UpsertBulk = UpsertBulk;
|
|
35
35
|
//# sourceMappingURL=UpsertBulk.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,OAAO;YAC/B,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AAZD,gCAYC;AATQ;IADN,IAAA,qBAAW,EAAC,IAAA,2BAAa,EAAC,qBAAc,CAAC,UAAU,CAAC,CAAC;;qCAC1B,KAAK;;4CAOhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useSyncCrud =
|
|
3
|
+
exports.useSyncCrud = useSyncCrud;
|
|
4
4
|
const error_1 = require("../error");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const services_1 = require("../services");
|
|
@@ -45,7 +45,6 @@ function useSyncCrud(api, actions = ALL_ACTIONS) {
|
|
|
45
45
|
unsubscribeSyncCrud,
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
exports.useSyncCrud = useSyncCrud;
|
|
49
48
|
function getChannelName(api) {
|
|
50
49
|
return services_1.CrudSyncService.getObjectChannel(api.objectName);
|
|
51
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCrudSync.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/compose/useCrudSync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCrudSync.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/compose/useCrudSync.ts"],"names":[],"mappings":"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"}
|
|
@@ -13,5 +13,5 @@ var CrudSyncAction;
|
|
|
13
13
|
CrudSyncAction["DeleteBulk"] = "delete_bulk";
|
|
14
14
|
CrudSyncAction["UpsertBulk"] = "upsert_bulk";
|
|
15
15
|
CrudSyncAction["QueryBulk"] = "query_bulk";
|
|
16
|
-
})(CrudSyncAction
|
|
16
|
+
})(CrudSyncAction || (exports.CrudSyncAction = CrudSyncAction = {}));
|
|
17
17
|
//# sourceMappingURL=CrudSyncAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CrudSyncAction.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/constants/CrudSyncAction.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,4CAA0B,CAAA;IAC1B,4CAA0B,CAAA;IAC1B,4CAA0B,CAAA;IAC1B,4CAA0B,CAAA;IAC1B,0CAAwB,CAAA;AAC1B,CAAC,EAXW,cAAc,
|
|
1
|
+
{"version":3,"file":"CrudSyncAction.js","sourceRoot":"","sources":["../../../../../src/features/crud/sync/constants/CrudSyncAction.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAWX;AAXD,WAAY,cAAc;IACxB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,iCAAe,CAAA;IACf,4CAA0B,CAAA;IAC1B,4CAA0B,CAAA;IAC1B,4CAA0B,CAAA;IAC1B,4CAA0B,CAAA;IAC1B,0CAAwB,CAAA;AAC1B,CAAC,EAXW,cAAc,8BAAd,cAAc,QAWzB"}
|
|
@@ -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":";;;AAGA,0CAA4C;AAC5C,uDAAkD;AAG3C,MAAM,aAAa,GAAG,CAAC,MAAsB,EAAwC,EAAE,CAAC,CAAC,WAAgB,EAA+B,EAAE;IAC/I,IAAI,CAAC,uBAAU,CAAC,KAAK,CAAC,QAAQ;QAAE,OAAO;IAEvC,OAAO,CAAC,QAAa,EAAE,EAAE,CAAC,uBAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CACzD,0BAAe,CAAC,gBAAgB,CAAC,WAAW,CAAC,UAAU,CAAC,EACxD,MAAM,EACN,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CACf,CAAC;AACJ,CAAC,CAAA;AARY,QAAA,aAAa,iBAQzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractCrudSync.js","sourceRoot":"","sources":["../../../../../../src/features/crud/sync/sync/abstract/AbstractCrudSync.ts"],"names":[],"mappings":";;;AACA,uCAA0C;AAE1C,MAAsB,gBAAgB;IAE7B,IAAI,CAAC,MAAgC,EAAE,QAAkC;QAC9E,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,IAAI,CAAC,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"AbstractCrudSync.js","sourceRoot":"","sources":["../../../../../../src/features/crud/sync/sync/abstract/AbstractCrudSync.ts"],"names":[],"mappings":";;;AACA,uCAA0C;AAE1C,MAAsB,gBAAgB;IAE7B,IAAI,CAAC,MAAgC,EAAE,QAAkC;QAC9E,IAAI,CAAC,QAAQ;YAAE,OAAO;QAEtB,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,IAAI,qBAAa,CAAC,wBAAwB,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QAE5C,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEhD,IAAI,CAAC,aAAa,IAAI,eAAe,EAAE,CAAC;YACtC,MAAM,IAAI,qBAAa,CAAC,wCAAwC,CAAC,CAAC;QACpE,CAAC;QAED,IAAI,aAAa,IAAI,CAAC,eAAe,EAAE,CAAC;YACtC,IAAI,CAAC,yBAAyB,CAAC,MAAwB,EAAE,QAAmB,CAAC,CAAC;QAChF,CAAC;QAED,IAAI,aAAa,IAAI,eAAe,EAAE,CAAC;YACrC,IAAI,CAAC,wBAAwB,CAAC,MAAwB,EAAE,QAA0B,CAAC,CAAC;QACtF,CAAC;QAED,IAAI,CAAC,aAAa,IAAI,CAAC,eAAe,EAAE,CAAC;YACvC,IAAI,CAAC,0BAA0B,CAAC,MAAiB,EAAE,QAAmB,CAAC,CAAC;QAC1E,CAAC;IACH,CAAC;CAQF;AApCD,4CAoCC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Env } from "./types";
|
|
1
2
|
export * from './compose';
|
|
2
3
|
export * from './features';
|
|
3
4
|
export * from './micro';
|
|
@@ -5,3 +6,12 @@ export * from './services';
|
|
|
5
6
|
export * from './types';
|
|
6
7
|
export * from './Api';
|
|
7
8
|
export * from './ApiConfigs';
|
|
9
|
+
import type { App } from "vue";
|
|
10
|
+
declare const _default: {
|
|
11
|
+
install(app: App, options: TsApiKitOptions): void;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare function getLibOptions(): TsApiKitOptions;
|
|
15
|
+
export type TsApiKitOptions = {
|
|
16
|
+
env: Env;
|
|
17
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ 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
|
+
exports.getLibOptions = getLibOptions;
|
|
17
18
|
__exportStar(require("./compose"), exports);
|
|
18
19
|
__exportStar(require("./features"), exports);
|
|
19
20
|
__exportStar(require("./micro"), exports);
|
|
@@ -21,4 +22,13 @@ __exportStar(require("./services"), exports);
|
|
|
21
22
|
__exportStar(require("./types"), exports);
|
|
22
23
|
__exportStar(require("./Api"), exports);
|
|
23
24
|
__exportStar(require("./ApiConfigs"), exports);
|
|
25
|
+
let libOptions = {};
|
|
26
|
+
exports.default = {
|
|
27
|
+
install(app, options) {
|
|
28
|
+
libOptions = options !== null && options !== void 0 ? options : {};
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function getLibOptions() {
|
|
32
|
+
return libOptions;
|
|
33
|
+
}
|
|
24
34
|
//# 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":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,sCAEC;AApBD,4CAA0B;AAC1B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,0CAAwB;AACxB,wCAAsB;AACtB,+CAA6B;AAI7B,IAAI,UAAU,GAAoB,EAAqB,CAAC;AAExD,kBAAe;IACX,OAAO,CAAC,GAAQ,EAAE,OAAwB;QACtC,UAAU,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAqB,CAAC;IAClD,CAAC;CACJ,CAAA;AAED,SAAgB,aAAa;IACzB,OAAO,UAAU,CAAC;AACtB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
2
|
import { AuthActivateUser, AuthChangePassword, AuthConfirmResetPassword, AuthSignIn } from "../../features";
|
|
3
3
|
export declare class AuthApi {
|
|
4
|
-
getTokensByCredentials(user: AuthSignIn): AxiosRequestConfig
|
|
5
|
-
getAuthCodeByCredentials(user: AuthSignIn): AxiosRequestConfig
|
|
6
|
-
getTokensByAuthCode(code: string): AxiosRequestConfig
|
|
7
|
-
activate(user: AuthActivateUser): AxiosRequestConfig
|
|
8
|
-
refresh(refreshToken: string): AxiosRequestConfig
|
|
4
|
+
getTokensByCredentials(user: AuthSignIn): AxiosRequestConfig;
|
|
5
|
+
getAuthCodeByCredentials(user: AuthSignIn): AxiosRequestConfig;
|
|
6
|
+
getTokensByAuthCode(code: string): AxiosRequestConfig;
|
|
7
|
+
activate(user: AuthActivateUser): AxiosRequestConfig;
|
|
8
|
+
refresh(refreshToken: string): AxiosRequestConfig;
|
|
9
9
|
resetPassword(userId: string): {
|
|
10
10
|
baseURL: string;
|
|
11
11
|
url: string;
|
|
@@ -17,5 +17,5 @@ export declare class AuthApi {
|
|
|
17
17
|
method: string;
|
|
18
18
|
data: AuthConfirmResetPassword;
|
|
19
19
|
};
|
|
20
|
-
changePassword(user: AuthChangePassword): AxiosRequestConfig
|
|
20
|
+
changePassword(user: AuthChangePassword): AxiosRequestConfig;
|
|
21
21
|
}
|
|
@@ -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 ApiConfigs_1 = require("../../ApiConfigs");
|
|
14
13
|
const callout_1 = require("../../features/callout");
|
|
14
|
+
const UrlService_1 = require("../../services/UrlService");
|
|
15
|
+
const types_1 = require("../../types");
|
|
15
16
|
class AuthApi {
|
|
16
17
|
getTokensByCredentials(user) {
|
|
17
18
|
return {
|
|
18
|
-
baseURL:
|
|
19
|
+
baseURL: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
19
20
|
url: '/user/signin',
|
|
20
21
|
method: 'POST',
|
|
21
22
|
data: user
|
|
@@ -23,7 +24,7 @@ class AuthApi {
|
|
|
23
24
|
}
|
|
24
25
|
getAuthCodeByCredentials(user) {
|
|
25
26
|
return {
|
|
26
|
-
baseURL:
|
|
27
|
+
baseURL: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
27
28
|
url: '/user/signin/code',
|
|
28
29
|
method: 'POST',
|
|
29
30
|
data: user
|
|
@@ -31,14 +32,14 @@ class AuthApi {
|
|
|
31
32
|
}
|
|
32
33
|
getTokensByAuthCode(code) {
|
|
33
34
|
return {
|
|
34
|
-
baseURL:
|
|
35
|
+
baseURL: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
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: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
42
43
|
url: '/user/signup/code',
|
|
43
44
|
method: 'POST',
|
|
44
45
|
data: user
|
|
@@ -46,7 +47,7 @@ class AuthApi {
|
|
|
46
47
|
}
|
|
47
48
|
refresh(refreshToken) {
|
|
48
49
|
return {
|
|
49
|
-
baseURL:
|
|
50
|
+
baseURL: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
50
51
|
url: '/user/refresh',
|
|
51
52
|
method: 'POST',
|
|
52
53
|
data: { refreshToken }
|
|
@@ -54,14 +55,14 @@ class AuthApi {
|
|
|
54
55
|
}
|
|
55
56
|
resetPassword(userId) {
|
|
56
57
|
return {
|
|
57
|
-
baseURL:
|
|
58
|
+
baseURL: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
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: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
65
66
|
url: `/user/password/reset`,
|
|
66
67
|
method: 'POST',
|
|
67
68
|
data: confirm
|
|
@@ -69,13 +70,14 @@ class AuthApi {
|
|
|
69
70
|
}
|
|
70
71
|
changePassword(user) {
|
|
71
72
|
return {
|
|
72
|
-
baseURL:
|
|
73
|
+
baseURL: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.auth),
|
|
73
74
|
url: `/user/password/change`,
|
|
74
75
|
method: 'POST',
|
|
75
76
|
data: user
|
|
76
77
|
};
|
|
77
78
|
}
|
|
78
79
|
}
|
|
80
|
+
exports.AuthApi = AuthApi;
|
|
79
81
|
__decorate([
|
|
80
82
|
(0, callout_1.Calloutable)(),
|
|
81
83
|
__metadata("design:type", Function),
|
|
@@ -124,5 +126,4 @@ __decorate([
|
|
|
124
126
|
__metadata("design:paramtypes", [Object]),
|
|
125
127
|
__metadata("design:returntype", void 0)
|
|
126
128
|
], AuthApi.prototype, "changePassword", null);
|
|
127
|
-
exports.AuthApi = AuthApi;
|
|
128
129
|
//# sourceMappingURL=AuthApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthApi.js","sourceRoot":"","sources":["../../../src/micro/auth/AuthApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,
|
|
1
|
+
{"version":3,"file":"AuthApi.js","sourceRoot":"","sources":["../../../src/micro/auth/AuthApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,oDAAmD;AACnD,0DAAqD;AACrD,uCAA6C;AAE7C,MAAa,OAAO;IAGX,sBAAsB,CAAC,IAAgB;QAC5C,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,cAAc;YACnB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;IAGM,wBAAwB,CAAC,IAAgB;QAC9C,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,mBAAmB;YACxB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;IAGM,mBAAmB,CAAC,IAAY;QACrC,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,qBAAqB,IAAI,EAAE;YAChC,MAAM,EAAE,KAAK;SACQ,CAAA;IACzB,CAAC;IAGM,QAAQ,CAAC,IAAsB;QACpC,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,mBAAmB;YACxB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;IAGM,OAAO,CAAC,YAAoB;QACjC,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,eAAe;YACpB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,YAAY,EAAE;SACD,CAAA;IACzB,CAAC;IAGM,aAAa,CAAC,MAAc;QACjC,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,wBAAwB,MAAM,EAAE;YACrC,MAAM,EAAE,MAAM;SACf,CAAA;IACH,CAAC;IAGM,oBAAoB,CAAC,OAAiC;QAC3D,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,sBAAsB;YAC3B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,OAAO;SACd,CAAA;IACH,CAAC;IAGM,cAAc,CAAC,IAAwB;QAC5C,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,uBAAuB;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;CAEF;AAhFD,0BAgFC;AA7EQ;IADN,IAAA,qBAAW,GAAE;;;;qDAQb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;uDAQb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;kDAOb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;uCAQb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;sCAQb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;4CAOb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;mDAQb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;6CAQb"}
|
|
@@ -8,25 +8,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.WorkspaceApi = void 0;
|
|
13
14
|
const callout_1 = require("../../features/callout");
|
|
14
|
-
const
|
|
15
|
+
const UrlService_1 = require("../../services/UrlService");
|
|
16
|
+
const types_1 = require("../../types");
|
|
15
17
|
class WorkspaceApi {
|
|
16
18
|
init(workspace) {
|
|
17
19
|
return {
|
|
18
|
-
baseURL:
|
|
20
|
+
baseURL: UrlService_1.UrlService.getMicroUrl(types_1.MicroserviceName.init),
|
|
19
21
|
url: '/init',
|
|
20
22
|
method: 'POST',
|
|
21
23
|
data: workspace
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
}
|
|
27
|
+
exports.WorkspaceApi = WorkspaceApi;
|
|
25
28
|
__decorate([
|
|
26
29
|
(0, callout_1.Calloutable)(),
|
|
27
30
|
__metadata("design:type", Function),
|
|
28
|
-
__metadata("design:paramtypes", [Object]),
|
|
31
|
+
__metadata("design:paramtypes", [typeof (_a = typeof types_2.InitWorkspace !== "undefined" && types_2.InitWorkspace) === "function" ? _a : Object]),
|
|
29
32
|
__metadata("design:returntype", void 0)
|
|
30
33
|
], WorkspaceApi.prototype, "init", null);
|
|
31
|
-
exports.WorkspaceApi = WorkspaceApi;
|
|
32
34
|
//# sourceMappingURL=WorkspaceApi.js.map
|
|
@@ -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,oDAAmD;AACnD,0DAAqD;AACrD,uCAA6C;AAE7C,MAAa,YAAY;IAGhB,IAAI,CAAC,SAAwB;QAClC,OAAO;YACL,OAAO,EAAE,uBAAU,CAAC,WAAW,CAAC,wBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;CAEF;AAZD,oCAYC;AATQ;IADN,IAAA,qBAAW,GAAE;;yDACS,qBAAa,oBAAb,qBAAa;;wCAOnC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
2
|
import { SObjectField } from "./types";
|
|
3
|
-
import { AbstractCRUDApi } from "../../features
|
|
3
|
+
import { AbstractCRUDApi } from "../../features";
|
|
4
4
|
export declare class FieldApi extends AbstractCRUDApi {
|
|
5
5
|
create(field: SObjectField): AxiosRequestConfig;
|
|
6
|
-
getAllByObjectId(objectId: string): AxiosRequestConfig
|
|
6
|
+
getAllByObjectId(objectId: string): AxiosRequestConfig;
|
|
7
7
|
getAllByObjectApiName(apiName: string): {
|
|
8
|
-
baseURL:
|
|
8
|
+
baseURL: string;
|
|
9
9
|
url: string;
|
|
10
10
|
};
|
|
11
|
-
deleteAllByObjectId(objectId: string): AxiosRequestConfig
|
|
11
|
+
deleteAllByObjectId(objectId: string): AxiosRequestConfig;
|
|
12
12
|
}
|
|
@@ -8,14 +8,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.FieldApi = void 0;
|
|
13
|
-
const
|
|
14
|
+
const features_1 = require("../../features");
|
|
14
15
|
const callout_1 = require("../../features/callout");
|
|
15
|
-
class FieldApi extends
|
|
16
|
+
class FieldApi extends features_1.AbstractCRUDApi {
|
|
16
17
|
create(field) {
|
|
17
18
|
return {
|
|
18
|
-
baseURL: this.
|
|
19
|
+
baseURL: this.serverUrl,
|
|
19
20
|
url: `/${this.objectName}/${field.objectId}`,
|
|
20
21
|
method: 'POST',
|
|
21
22
|
data: field
|
|
@@ -23,29 +24,30 @@ class FieldApi extends operations_1.AbstractCRUDApi {
|
|
|
23
24
|
}
|
|
24
25
|
getAllByObjectId(objectId) {
|
|
25
26
|
return {
|
|
26
|
-
baseURL: this.
|
|
27
|
+
baseURL: this.serverUrl,
|
|
27
28
|
url: `/${this.objectName}/object/${objectId}`,
|
|
28
29
|
method: 'GET'
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
getAllByObjectApiName(apiName) {
|
|
32
33
|
return {
|
|
33
|
-
baseURL: this.
|
|
34
|
+
baseURL: this.serverUrl,
|
|
34
35
|
url: `/${this.objectName}/object/apiName/${apiName}`,
|
|
35
36
|
};
|
|
36
37
|
}
|
|
37
38
|
deleteAllByObjectId(objectId) {
|
|
38
39
|
return {
|
|
39
|
-
baseURL: this.
|
|
40
|
+
baseURL: this.serverUrl,
|
|
40
41
|
url: `/${this.objectName}/object/${objectId}/all`,
|
|
41
42
|
method: 'DELETE'
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
}
|
|
46
|
+
exports.FieldApi = FieldApi;
|
|
45
47
|
__decorate([
|
|
46
48
|
(0, callout_1.Calloutable)(),
|
|
47
49
|
__metadata("design:type", Function),
|
|
48
|
-
__metadata("design:paramtypes", [Object]),
|
|
50
|
+
__metadata("design:paramtypes", [typeof (_a = typeof types_1.SObjectField !== "undefined" && types_1.SObjectField) === "function" ? _a : Object]),
|
|
49
51
|
__metadata("design:returntype", Object)
|
|
50
52
|
], FieldApi.prototype, "create", null);
|
|
51
53
|
__decorate([
|
|
@@ -66,5 +68,4 @@ __decorate([
|
|
|
66
68
|
__metadata("design:paramtypes", [String]),
|
|
67
69
|
__metadata("design:returntype", void 0)
|
|
68
70
|
], FieldApi.prototype, "deleteAllByObjectId", null);
|
|
69
|
-
exports.FieldApi = FieldApi;
|
|
70
71
|
//# sourceMappingURL=FieldApi.js.map
|
|
@@ -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,6CAA+C;AAC/C,oDAAmD;AAEnD,MAAa,QAAS,SAAQ,0BAAe;IAGpC,MAAM,CAAC,KAAmB;QAC/B,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,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,SAAS;YACvB,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,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,mBAAmB,OAAO,EAAE;SACrD,CAAA;IACH,CAAC;IAGM,mBAAmB,CAAC,QAAgB;QACzC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,WAAW,QAAQ,MAAM;YACjD,MAAM,EAAE,QAAQ;SACK,CAAA;IACzB,CAAC;CAEF;AAtCD,4BAsCC;AAnCQ;IADN,IAAA,qBAAW,GAAE;;yDACO,oBAAY,oBAAZ,oBAAY;;sCAOhC;AAGM;IADN,IAAA,qBAAW,GAAE;;;;gDAOb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;qDAMb;AAGM;IADN,IAAA,qBAAW,GAAE;;;;mDAOb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
2
|
import { AbstractCRUDApi } from "../../features";
|
|
3
3
|
export declare class SObjectApi extends AbstractCRUDApi {
|
|
4
|
-
getByApiName(apiName: string): AxiosRequestConfig
|
|
4
|
+
getByApiName(apiName: string): AxiosRequestConfig;
|
|
5
5
|
}
|
|
@@ -15,17 +15,17 @@ const callout_1 = require("../../features/callout");
|
|
|
15
15
|
class SObjectApi extends features_1.AbstractCRUDApi {
|
|
16
16
|
getByApiName(apiName) {
|
|
17
17
|
return {
|
|
18
|
-
baseURL: this.
|
|
18
|
+
baseURL: this.serverUrl,
|
|
19
19
|
url: `/${this.objectName}/apiName/${apiName}`,
|
|
20
20
|
method: "GET",
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
exports.SObjectApi = SObjectApi;
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, callout_1.Calloutable)(),
|
|
26
27
|
__metadata("design:type", Function),
|
|
27
28
|
__metadata("design:paramtypes", [String]),
|
|
28
29
|
__metadata("design:returntype", void 0)
|
|
29
30
|
], SObjectApi.prototype, "getByApiName", null);
|
|
30
|
-
exports.SObjectApi = SObjectApi;
|
|
31
31
|
//# sourceMappingURL=SObjectApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SObjectApi.js","sourceRoot":"","sources":["../../../src/micro/query/SObjectApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA+C;AAC/C,oDAAmD;AAEnD,MAAa,UAAW,SAAQ,0BAAe;IAGtC,YAAY,CAAC,OAAe;QACjC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"SObjectApi.js","sourceRoot":"","sources":["../../../src/micro/query/SObjectApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA+C;AAC/C,oDAAmD;AAEnD,MAAa,UAAW,SAAQ,0BAAe;IAGtC,YAAY,CAAC,OAAe;QACjC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,YAAY,OAAO,EAAE;YAC7C,MAAM,EAAE,KAAK;SACQ,CAAA;IACzB,CAAC;CAEF;AAXD,gCAWC;AARQ;IADN,IAAA,qBAAW,GAAE;;;;8CAOb"}
|
|
@@ -10,5 +10,5 @@ var FieldType;
|
|
|
10
10
|
FieldType["Datetime"] = "Datetime";
|
|
11
11
|
FieldType["Picklist"] = "Picklist";
|
|
12
12
|
FieldType["Multipicklist"] = "Multipicklist";
|
|
13
|
-
})(FieldType
|
|
13
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
14
14
|
//# sourceMappingURL=FieldType.js.map
|
|
@@ -1 +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,
|
|
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,yBAAT,SAAS,QAQpB"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { HasApiName, HasDBId, HasLabel } from "../../../types";
|
|
2
|
-
import { HasDescription } from "../../../types/HasDescription";
|
|
3
|
-
import { HasNamespace } from "../../../types/HasNamespace";
|
|
1
|
+
import { HasApiName, HasDBId, HasDescription, HasLabel, HasNamespace } from "../../../types";
|
|
4
2
|
export type SObject = {
|
|
5
3
|
fullName?: string;
|
|
6
4
|
} & HasDBId & HasLabel & HasApiName & HasDescription & HasNamespace;
|
|
@@ -1,7 +1,6 @@
|
|
|
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
|
+
import { HasApiName, HasDBId, HasLabel, HasNamespace } from "../../../types";
|
|
5
4
|
export type SObjectField = {
|
|
6
5
|
type: FieldType;
|
|
7
6
|
objectId?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
|
-
import { AbstractCRUDApi } from "../../features
|
|
3
|
-
import { ApiQueryRequest } from "../../types
|
|
2
|
+
import { AbstractCRUDApi } from "../../features";
|
|
3
|
+
import { ApiQueryRequest } from "../../types";
|
|
4
4
|
export declare class PermissionApi extends AbstractCRUDApi {
|
|
5
5
|
getByCategoryId(categoryId: string): AxiosRequestConfig;
|
|
6
6
|
getByCategoryIds(categoryIds: Array<string>): AxiosRequestConfig;
|
|
@@ -10,19 +10,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.PermissionApi = void 0;
|
|
13
|
-
const
|
|
13
|
+
const features_1 = require("../../features");
|
|
14
14
|
const callout_1 = require("../../features/callout");
|
|
15
|
-
class PermissionApi extends
|
|
15
|
+
class PermissionApi extends features_1.AbstractCRUDApi {
|
|
16
16
|
getByCategoryId(categoryId) {
|
|
17
17
|
return {
|
|
18
|
-
baseURL: this.
|
|
18
|
+
baseURL: this.serverUrl,
|
|
19
19
|
url: `/${this.objectName}/category/${categoryId}`,
|
|
20
20
|
method: "GET"
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
getByCategoryIds(categoryIds) {
|
|
24
24
|
return {
|
|
25
|
-
baseURL: this.
|
|
25
|
+
baseURL: this.serverUrl,
|
|
26
26
|
url: `/${this.objectName}/categories/${categoryIds === null || categoryIds === void 0 ? void 0 : categoryIds.join(',')}`,
|
|
27
27
|
method: "GET"
|
|
28
28
|
};
|
|
@@ -30,13 +30,14 @@ class PermissionApi extends operations_1.AbstractCRUDApi {
|
|
|
30
30
|
;
|
|
31
31
|
getWithAssignments(data) {
|
|
32
32
|
return {
|
|
33
|
-
baseURL: this.
|
|
33
|
+
baseURL: this.serverUrl,
|
|
34
34
|
url: `/${this.objectName}/assignments/query`,
|
|
35
35
|
method: "POST",
|
|
36
36
|
data
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
exports.PermissionApi = PermissionApi;
|
|
40
41
|
__decorate([
|
|
41
42
|
(0, callout_1.Calloutable)(),
|
|
42
43
|
__metadata("design:type", Function),
|
|
@@ -55,5 +56,4 @@ __decorate([
|
|
|
55
56
|
__metadata("design:paramtypes", [Object]),
|
|
56
57
|
__metadata("design:returntype", Object)
|
|
57
58
|
], PermissionApi.prototype, "getWithAssignments", null);
|
|
58
|
-
exports.PermissionApi = PermissionApi;
|
|
59
59
|
//# sourceMappingURL=PermissionApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA
|
|
1
|
+
{"version":3,"file":"PermissionApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA+C;AAC/C,oDAAmD;AAGnD,MAAa,aAAc,SAAQ,0BAAe;IAGzC,eAAe,CAAC,UAAkB;QACvC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,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,SAAS;YACvB,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;IAGK,kBAAkB,CAAC,IAAsD;QAC9E,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,oBAAoB;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI;SACL,CAAA;IACH,CAAC;CACF;AA7BD,sCA6BC;AA1BQ;IADN,IAAA,qBAAW,GAAE;;;;oDAOb;AAGM;IADN,IAAA,qBAAW,GAAE;;qCACuB,KAAK;;qDAMzC;AAGM;IADN,IAAA,qBAAW,GAAE;;;;uDAQb"}
|
|
@@ -15,17 +15,17 @@ const operations_1 = require("../../features/crud/operations");
|
|
|
15
15
|
class PermissionCategoryApi extends operations_1.AbstractCRUDApi {
|
|
16
16
|
getByGroupId(groupId) {
|
|
17
17
|
return {
|
|
18
|
-
baseURL: this.
|
|
18
|
+
baseURL: this.serverUrl,
|
|
19
19
|
url: `/${this.objectName}/group/${groupId}`,
|
|
20
20
|
method: 'GET'
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
exports.PermissionCategoryApi = PermissionCategoryApi;
|
|
24
25
|
__decorate([
|
|
25
26
|
(0, callout_1.Calloutable)(),
|
|
26
27
|
__metadata("design:type", Function),
|
|
27
28
|
__metadata("design:paramtypes", [String]),
|
|
28
29
|
__metadata("design:returntype", Object)
|
|
29
30
|
], PermissionCategoryApi.prototype, "getByGroupId", null);
|
|
30
|
-
exports.PermissionCategoryApi = PermissionCategoryApi;
|
|
31
31
|
//# sourceMappingURL=PermissionCategoryApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionCategoryApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionCategoryApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oDAAmD;AACnD,+DAA+D;AAE/D,MAAa,qBAAsB,SAAQ,4BAAe;IAEjC,YAAY,CAAC,OAAe;QACjD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"PermissionCategoryApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionCategoryApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oDAAmD;AACnD,+DAA+D;AAE/D,MAAa,qBAAsB,SAAQ,4BAAe;IAEjC,YAAY,CAAC,OAAe;QACjD,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,UAAU,OAAO,EAAE;YAC3C,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;CAEF;AAVD,sDAUC;AARwB;IAAtB,IAAA,qBAAW,GAAE;;;;yDAMb"}
|
|
@@ -2,6 +2,6 @@ import { AxiosRequestConfig } from "axios";
|
|
|
2
2
|
import { AbstractCRUDApi } from "../../features";
|
|
3
3
|
import { PermissionSetAssignment } from "./types";
|
|
4
4
|
export declare class PermissionSetApi extends AbstractCRUDApi {
|
|
5
|
-
assign(assignment: PermissionSetAssignment): AxiosRequestConfig
|
|
6
|
-
unAssign(assignment: PermissionSetAssignment): AxiosRequestConfig
|
|
5
|
+
assign(assignment: PermissionSetAssignment): AxiosRequestConfig;
|
|
6
|
+
unAssign(assignment: PermissionSetAssignment): AxiosRequestConfig;
|
|
7
7
|
}
|
|
@@ -16,7 +16,7 @@ const features_2 = require("../../features");
|
|
|
16
16
|
class PermissionSetApi extends features_2.AbstractCRUDApi {
|
|
17
17
|
assign(assignment) {
|
|
18
18
|
return {
|
|
19
|
-
baseURL: this.
|
|
19
|
+
baseURL: this.serverUrl,
|
|
20
20
|
url: `/${this.objectName}/assign`,
|
|
21
21
|
method: 'PATCH',
|
|
22
22
|
data: assignment
|
|
@@ -24,13 +24,14 @@ class PermissionSetApi extends features_2.AbstractCRUDApi {
|
|
|
24
24
|
}
|
|
25
25
|
unAssign(assignment) {
|
|
26
26
|
return {
|
|
27
|
-
baseURL: this.
|
|
27
|
+
baseURL: this.serverUrl,
|
|
28
28
|
url: `/${this.objectName}/un-assign`,
|
|
29
29
|
method: 'PATCH',
|
|
30
30
|
data: assignment
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
+
exports.PermissionSetApi = PermissionSetApi;
|
|
34
35
|
__decorate([
|
|
35
36
|
(0, callout_1.Calloutable)((0, features_1.PushCrudEvent)(features_1.CrudSyncAction.Update)),
|
|
36
37
|
__metadata("design:type", Function),
|
|
@@ -43,5 +44,4 @@ __decorate([
|
|
|
43
44
|
__metadata("design:paramtypes", [Object]),
|
|
44
45
|
__metadata("design:returntype", void 0)
|
|
45
46
|
], PermissionSetApi.prototype, "unAssign", null);
|
|
46
|
-
exports.PermissionSetApi = PermissionSetApi;
|
|
47
47
|
//# sourceMappingURL=PermissionSetApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionSetApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionSetApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA6D;AAC7D,oDAAmD;AACnD,6CAA+C;AAG/C,MAAa,gBAAiB,SAAQ,0BAAe;IAG1C,MAAM,CAAC,UAAmC;QAC7C,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"PermissionSetApi.js","sourceRoot":"","sources":["../../../src/micro/security/PermissionSetApi.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAA6D;AAC7D,oDAAmD;AACnD,6CAA+C;AAG/C,MAAa,gBAAiB,SAAQ,0BAAe;IAG1C,MAAM,CAAC,UAAmC;QAC7C,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,SAAS;YACjC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;SACG,CAAA;IAC3B,CAAC;IAGM,QAAQ,CAAC,UAAmC;QAC/C,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,YAAY;YACpC,MAAM,EAAE,OAAO;YACf,IAAI,EAAE,UAAU;SACG,CAAA;IAC3B,CAAC;CAEJ;AAtBD,4CAsBC;AAnBU;IADN,IAAA,qBAAW,EAAC,IAAA,wBAAa,EAAC,yBAAc,CAAC,MAAM,CAAC,CAAC;;;;8CAQjD;AAGM;IADN,IAAA,qBAAW,EAAC,IAAA,wBAAa,EAAC,yBAAc,CAAC,MAAM,CAAC,CAAC;;;;gDAQjD"}
|
|
@@ -2,6 +2,6 @@ import { AxiosRequestConfig } from "axios";
|
|
|
2
2
|
import { AbstractCRUDApi } from "../../features";
|
|
3
3
|
import { TeamAssignment } from "./types";
|
|
4
4
|
export declare class TeamApi extends AbstractCRUDApi {
|
|
5
|
-
assign(assignment: TeamAssignment): AxiosRequestConfig
|
|
6
|
-
unassign(assignment: TeamAssignment): AxiosRequestConfig
|
|
5
|
+
assign(assignment: TeamAssignment): AxiosRequestConfig;
|
|
6
|
+
unassign(assignment: TeamAssignment): AxiosRequestConfig;
|
|
7
7
|
}
|