@buildery/ts-api-kit 6.2.2 → 7.0.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 +21 -21
- package/dist/Api.js +38 -42
- package/dist/Api.js.map +1 -1
- package/dist/ApiConfigs.js +12 -16
- package/dist/ApiConfigs.js.map +1 -1
- package/dist/compose/index.d.ts +1 -1
- package/dist/compose/index.js +1 -17
- package/dist/compose/index.js.map +1 -1
- package/dist/compose/useSingleton.d.ts +1 -1
- package/dist/compose/useSingleton.js +6 -10
- package/dist/compose/useSingleton.js.map +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +8 -11
- package/dist/constants.js.map +1 -1
- package/dist/features/api/AbstractApi.d.ts +1 -1
- package/dist/features/api/AbstractApi.js +4 -9
- package/dist/features/api/AbstractApi.js.map +1 -1
- package/dist/features/api/index.d.ts +1 -1
- package/dist/features/api/index.js +1 -17
- package/dist/features/api/index.js.map +1 -1
- package/dist/features/auth/errors/AuthError.js +1 -5
- package/dist/features/auth/errors/AuthError.js.map +1 -1
- package/dist/features/auth/errors/index.d.ts +1 -1
- package/dist/features/auth/errors/index.js +1 -17
- package/dist/features/auth/errors/index.js.map +1 -1
- package/dist/features/auth/index.d.ts +3 -3
- package/dist/features/auth/index.js +3 -19
- package/dist/features/auth/index.js.map +1 -1
- package/dist/features/auth/services/AuthAxiosService.js +10 -15
- package/dist/features/auth/services/AuthAxiosService.js.map +1 -1
- package/dist/features/auth/services/AuthService.d.ts +2 -2
- package/dist/features/auth/services/AuthService.js +5 -9
- package/dist/features/auth/services/AuthService.js.map +1 -1
- package/dist/features/auth/services/AuthTokensService.d.ts +5 -5
- package/dist/features/auth/services/AuthTokensService.js +14 -18
- package/dist/features/auth/services/AuthTokensService.js.map +1 -1
- package/dist/features/auth/services/index.d.ts +3 -3
- package/dist/features/auth/services/index.js +3 -19
- package/dist/features/auth/services/index.js.map +1 -1
- package/dist/features/auth/types/AuthActivateUser.js +1 -2
- package/dist/features/auth/types/AuthApiTokens.js +1 -2
- package/dist/features/auth/types/AuthChangePassword.js +1 -2
- package/dist/features/auth/types/AuthCode.js +1 -2
- package/dist/features/auth/types/AuthConfirmResetPassword.js +1 -2
- package/dist/features/auth/types/AuthSignIn.js +1 -2
- package/dist/features/auth/types/AuthUserJWT.js +1 -2
- package/dist/features/auth/types/index.d.ts +7 -7
- package/dist/features/auth/types/index.js +7 -23
- package/dist/features/auth/types/index.js.map +1 -1
- package/dist/features/callout/Callout.d.ts +2 -2
- package/dist/features/callout/Callout.js +11 -14
- package/dist/features/callout/Callout.js.map +1 -1
- package/dist/features/callout/CalloutMiddlewareService.d.ts +1 -1
- package/dist/features/callout/CalloutMiddlewareService.js +6 -10
- package/dist/features/callout/CalloutMiddlewareService.js.map +1 -1
- package/dist/features/callout/CalloutMiddlewares.d.ts +1 -1
- package/dist/features/callout/CalloutMiddlewares.js +9 -13
- package/dist/features/callout/CalloutMiddlewares.js.map +1 -1
- package/dist/features/callout/Calloutable.d.ts +2 -2
- package/dist/features/callout/Calloutable.js +6 -10
- package/dist/features/callout/Calloutable.js.map +1 -1
- package/dist/features/callout/index.d.ts +5 -5
- package/dist/features/callout/index.js +5 -21
- package/dist/features/callout/index.js.map +1 -1
- package/dist/features/callout/types.d.ts +2 -2
- package/dist/features/callout/types.js +1 -2
- package/dist/features/crud/index.d.ts +2 -2
- package/dist/features/crud/index.js +2 -18
- 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 +3 -6
- package/dist/features/crud/operations/abstract/AbstractCRUDApi.js.map +1 -1
- package/dist/features/crud/operations/abstract/index.d.ts +1 -1
- package/dist/features/crud/operations/abstract/index.js +1 -17
- package/dist/features/crud/operations/abstract/index.js.map +1 -1
- package/dist/features/crud/operations/index.d.ts +2 -2
- package/dist/features/crud/operations/index.js +2 -18
- package/dist/features/crud/operations/index.js.map +1 -1
- package/dist/features/crud/operations/operations/Create.d.ts +1 -1
- package/dist/features/crud/operations/operations/Create.js +5 -10
- package/dist/features/crud/operations/operations/Create.js.map +1 -1
- package/dist/features/crud/operations/operations/CreateBulk.d.ts +1 -1
- package/dist/features/crud/operations/operations/CreateBulk.js +5 -9
- package/dist/features/crud/operations/operations/CreateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteByFilters.d.ts +1 -1
- package/dist/features/crud/operations/operations/DeleteByFilters.js +5 -9
- package/dist/features/crud/operations/operations/DeleteByFilters.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteById.d.ts +1 -1
- package/dist/features/crud/operations/operations/DeleteById.js +6 -10
- package/dist/features/crud/operations/operations/DeleteById.js.map +1 -1
- package/dist/features/crud/operations/operations/DeleteByIds.d.ts +1 -1
- package/dist/features/crud/operations/operations/DeleteByIds.js +7 -11
- package/dist/features/crud/operations/operations/DeleteByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/GetAll.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetAll.js +6 -10
- package/dist/features/crud/operations/operations/GetAll.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByFilters.d.ts +2 -2
- package/dist/features/crud/operations/operations/GetByFilters.js +6 -10
- package/dist/features/crud/operations/operations/GetByFilters.js.map +1 -1
- package/dist/features/crud/operations/operations/GetById.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetById.js +6 -10
- package/dist/features/crud/operations/operations/GetById.js.map +1 -1
- package/dist/features/crud/operations/operations/GetByIds.d.ts +1 -1
- package/dist/features/crud/operations/operations/GetByIds.js +6 -10
- package/dist/features/crud/operations/operations/GetByIds.js.map +1 -1
- package/dist/features/crud/operations/operations/Update.d.ts +1 -1
- package/dist/features/crud/operations/operations/Update.js +6 -10
- package/dist/features/crud/operations/operations/Update.js.map +1 -1
- package/dist/features/crud/operations/operations/UpdateBulk.d.ts +1 -1
- package/dist/features/crud/operations/operations/UpdateBulk.js +6 -10
- package/dist/features/crud/operations/operations/UpdateBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/Upsert.d.ts +1 -1
- package/dist/features/crud/operations/operations/Upsert.js +6 -10
- package/dist/features/crud/operations/operations/Upsert.js.map +1 -1
- package/dist/features/crud/operations/operations/UpsertBulk.d.ts +1 -1
- package/dist/features/crud/operations/operations/UpsertBulk.js +6 -10
- package/dist/features/crud/operations/operations/UpsertBulk.js.map +1 -1
- package/dist/features/crud/operations/operations/index.d.ts +13 -13
- package/dist/features/crud/operations/operations/index.js +13 -29
- package/dist/features/crud/operations/operations/index.js.map +1 -1
- package/dist/features/crud/sync/compose/index.d.ts +1 -1
- package/dist/features/crud/sync/compose/index.js +1 -17
- package/dist/features/crud/sync/compose/index.js.map +1 -1
- package/dist/features/crud/sync/compose/useCrudSync.d.ts +4 -4
- package/dist/features/crud/sync/compose/useCrudSync.js +34 -33
- package/dist/features/crud/sync/compose/useCrudSync.js.map +1 -1
- package/dist/features/crud/sync/constants/CrudSyncAction.js +2 -5
- package/dist/features/crud/sync/constants/CrudSyncAction.js.map +1 -1
- package/dist/features/crud/sync/constants/CrudSyncConstants.js +1 -4
- package/dist/features/crud/sync/constants/CrudSyncConstants.js.map +1 -1
- package/dist/features/crud/sync/constants/index.d.ts +2 -2
- package/dist/features/crud/sync/constants/index.js +2 -18
- package/dist/features/crud/sync/constants/index.js.map +1 -1
- package/dist/features/crud/sync/error/CrudSyncError.js +1 -5
- package/dist/features/crud/sync/error/CrudSyncError.js.map +1 -1
- package/dist/features/crud/sync/error/index.d.ts +1 -1
- package/dist/features/crud/sync/error/index.js +1 -17
- package/dist/features/crud/sync/error/index.js.map +1 -1
- package/dist/features/crud/sync/index.d.ts +6 -6
- package/dist/features/crud/sync/index.js +6 -22
- package/dist/features/crud/sync/index.js.map +1 -1
- package/dist/features/crud/sync/middlewares/PushCrudEvent.d.ts +3 -3
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js +6 -10
- package/dist/features/crud/sync/middlewares/PushCrudEvent.js.map +1 -1
- package/dist/features/crud/sync/middlewares/index.d.ts +1 -1
- package/dist/features/crud/sync/middlewares/index.js +1 -17
- package/dist/features/crud/sync/middlewares/index.js.map +1 -1
- package/dist/features/crud/sync/services/CrudSyncService.d.ts +1 -1
- package/dist/features/crud/sync/services/CrudSyncService.js +3 -7
- package/dist/features/crud/sync/services/CrudSyncService.js.map +1 -1
- package/dist/features/crud/sync/services/index.d.ts +1 -1
- package/dist/features/crud/sync/services/index.js +1 -17
- package/dist/features/crud/sync/services/index.js.map +1 -1
- package/dist/features/crud/sync/sync/CrudSyncCreate.d.ts +2 -2
- package/dist/features/crud/sync/sync/CrudSyncCreate.js +6 -10
- package/dist/features/crud/sync/sync/CrudSyncCreate.js.map +1 -1
- package/dist/features/crud/sync/sync/CrudSyncDelete.d.ts +2 -2
- package/dist/features/crud/sync/sync/CrudSyncDelete.js +6 -10
- package/dist/features/crud/sync/sync/CrudSyncDelete.js.map +1 -1
- package/dist/features/crud/sync/sync/CrudSyncUpdate.d.ts +2 -2
- package/dist/features/crud/sync/sync/CrudSyncUpdate.js +6 -10
- package/dist/features/crud/sync/sync/CrudSyncUpdate.js.map +1 -1
- package/dist/features/crud/sync/sync/CrudSyncUpsert.d.ts +2 -2
- package/dist/features/crud/sync/sync/CrudSyncUpsert.js +5 -9
- package/dist/features/crud/sync/sync/CrudSyncUpsert.js.map +1 -1
- package/dist/features/crud/sync/sync/abstract/AbstractCrudSync.d.ts +1 -1
- package/dist/features/crud/sync/sync/abstract/AbstractCrudSync.js +4 -8
- package/dist/features/crud/sync/sync/abstract/AbstractCrudSync.js.map +1 -1
- package/dist/features/crud/sync/sync/abstract/index.d.ts +1 -1
- package/dist/features/crud/sync/sync/abstract/index.js +1 -17
- package/dist/features/crud/sync/sync/abstract/index.js.map +1 -1
- package/dist/features/crud/sync/sync/index.d.ts +5 -5
- package/dist/features/crud/sync/sync/index.js +5 -21
- package/dist/features/crud/sync/sync/index.js.map +1 -1
- package/dist/features/index.d.ts +4 -4
- package/dist/features/index.js +4 -20
- package/dist/features/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +14 -33
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +1 -0
- package/dist/micro/auth/AuthApi.d.ts +1 -1
- package/dist/micro/auth/AuthApi.js +20 -24
- 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 -10
- package/dist/micro/auth/WorkspaceApi.js.map +1 -1
- package/dist/micro/auth/index.d.ts +2 -2
- package/dist/micro/auth/index.js +2 -18
- package/dist/micro/auth/index.js.map +1 -1
- package/dist/micro/auth/types/InitWorkspace.d.ts +1 -1
- package/dist/micro/auth/types/InitWorkspace.js +1 -2
- package/dist/micro/auth/types/index.d.ts +1 -1
- package/dist/micro/auth/types/index.js +1 -17
- package/dist/micro/auth/types/index.js.map +1 -1
- package/dist/micro/blueprint/types.js +1 -2
- package/dist/micro/index.d.ts +4 -4
- package/dist/micro/index.js +4 -20
- package/dist/micro/index.js.map +1 -1
- package/dist/micro/query/FieldApi.d.ts +2 -2
- package/dist/micro/query/FieldApi.js +7 -11
- 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 -8
- package/dist/micro/query/SObjectApi.js.map +1 -1
- package/dist/micro/query/error/ObjectApiError.js +1 -5
- package/dist/micro/query/error/ObjectApiError.js.map +1 -1
- package/dist/micro/query/error/index.d.ts +1 -1
- package/dist/micro/query/error/index.js +1 -17
- package/dist/micro/query/error/index.js.map +1 -1
- package/dist/micro/query/index.d.ts +4 -4
- package/dist/micro/query/index.js +4 -20
- package/dist/micro/query/index.js.map +1 -1
- package/dist/micro/query/types/FieldType.js +2 -5
- package/dist/micro/query/types/FieldType.js.map +1 -1
- package/dist/micro/query/types/PicklistValue.js +1 -2
- package/dist/micro/query/types/SObject.d.ts +1 -1
- package/dist/micro/query/types/SObject.js +1 -2
- package/dist/micro/query/types/SObjectField.d.ts +3 -3
- package/dist/micro/query/types/SObjectField.js +1 -2
- package/dist/micro/query/types/index.d.ts +4 -4
- package/dist/micro/query/types/index.js +4 -20
- package/dist/micro/query/types/index.js.map +1 -1
- package/dist/micro/security/PermissionApi.d.ts +2 -2
- package/dist/micro/security/PermissionApi.js +7 -11
- 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 -8
- package/dist/micro/security/PermissionCategoryApi.js.map +1 -1
- package/dist/micro/security/PermissionSetApi.d.ts +2 -2
- package/dist/micro/security/PermissionSetApi.js +6 -10
- package/dist/micro/security/PermissionSetApi.js.map +1 -1
- package/dist/micro/security/TeamApi.d.ts +2 -2
- package/dist/micro/security/TeamApi.js +6 -10
- package/dist/micro/security/TeamApi.js.map +1 -1
- package/dist/micro/security/index.d.ts +5 -5
- package/dist/micro/security/index.js +5 -21
- package/dist/micro/security/index.js.map +1 -1
- package/dist/micro/security/types/CalculatedPermissionAssignment.js +1 -2
- package/dist/micro/security/types/Permission.js +1 -2
- package/dist/micro/security/types/PermissionAssignment.js +1 -2
- package/dist/micro/security/types/PermissionCategory.js +1 -2
- package/dist/micro/security/types/PermissionDefinition.js +1 -2
- package/dist/micro/security/types/PermissionGroup.js +1 -2
- package/dist/micro/security/types/PermissionSet.d.ts +1 -1
- package/dist/micro/security/types/PermissionSet.js +1 -2
- package/dist/micro/security/types/PermissionSetAssignment.js +1 -2
- package/dist/micro/security/types/Team.d.ts +1 -1
- package/dist/micro/security/types/Team.js +1 -2
- package/dist/micro/security/types/TeamAssignment.js +1 -2
- package/dist/micro/security/types/index.d.ts +10 -10
- package/dist/micro/security/types/index.js +10 -26
- package/dist/micro/security/types/index.js.map +1 -1
- package/dist/micro/workspace/ModuleApi.d.ts +2 -2
- package/dist/micro/workspace/ModuleApi.js +7 -11
- package/dist/micro/workspace/ModuleApi.js.map +1 -1
- package/dist/micro/workspace/index.d.ts +2 -2
- package/dist/micro/workspace/index.js +2 -18
- package/dist/micro/workspace/index.js.map +1 -1
- package/dist/micro/workspace/types/CreateUser.js +1 -2
- package/dist/micro/workspace/types/EUserStatus.js +2 -5
- package/dist/micro/workspace/types/EUserStatus.js.map +1 -1
- package/dist/micro/workspace/types/Module.d.ts +1 -1
- package/dist/micro/workspace/types/Module.js +1 -2
- package/dist/micro/workspace/types/ModuleAction.js +1 -2
- package/dist/micro/workspace/types/User.d.ts +3 -3
- package/dist/micro/workspace/types/User.js +1 -2
- package/dist/micro/workspace/types/index.d.ts +5 -5
- package/dist/micro/workspace/types/index.js +5 -21
- package/dist/micro/workspace/types/index.js.map +1 -1
- package/dist/services/MapService.js +2 -6
- package/dist/services/MapService.js.map +1 -1
- package/dist/services/ResponseService.d.ts +1 -1
- package/dist/services/ResponseService.js +5 -12
- package/dist/services/ResponseService.js.map +1 -1
- package/dist/services/UrlService.d.ts +1 -1
- package/dist/services/UrlService.js +5 -10
- package/dist/services/UrlService.js.map +1 -1
- package/dist/services/index.d.ts +3 -3
- package/dist/services/index.js +3 -19
- package/dist/services/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +4 -7
- package/dist/types.js.map +1 -1
- package/package.json +15 -12
- package/dist/features/callout/decorators/Calloutable.d.ts +0 -3
- package/dist/features/callout/decorators/Calloutable.js +0 -20
- package/dist/features/callout/decorators/Calloutable.js.map +0 -1
- package/dist/features/callout/decorators/index.d.ts +0 -1
- package/dist/features/callout/decorators/index.js +0 -18
- package/dist/features/callout/decorators/index.js.map +0 -1
- package/dist/features/callout/types/ApiCalloutMiddleware.d.ts +0 -2
- package/dist/features/callout/types/ApiCalloutMiddleware.js +0 -3
- package/dist/features/callout/types/ApiCalloutMiddleware.js.map +0 -1
- package/dist/features/callout/types/index.d.ts +0 -1
- package/dist/features/callout/types/index.js +0 -18
- package/dist/features/callout/types/index.js.map +0 -1
- package/dist/micro/security/types/IPermission.d.ts +0 -10
- package/dist/micro/security/types/IPermission.js +0 -3
- package/dist/micro/security/types/IPermission.js.map +0 -1
- package/dist/micro/security/types/IPermissionAssignment.d.ts +0 -6
- package/dist/micro/security/types/IPermissionAssignment.js +0 -3
- package/dist/micro/security/types/IPermissionAssignment.js.map +0 -1
- package/dist/micro/security/types/IPermissionCategory.d.ts +0 -5
- package/dist/micro/security/types/IPermissionCategory.js +0 -3
- package/dist/micro/security/types/IPermissionCategory.js.map +0 -1
- package/dist/micro/security/types/IPermissionDefinition.d.ts +0 -6
- package/dist/micro/security/types/IPermissionDefinition.js +0 -3
- package/dist/micro/security/types/IPermissionDefinition.js.map +0 -1
- package/dist/micro/security/types/IPermissionGroup.d.ts +0 -4
- package/dist/micro/security/types/IPermissionGroup.js +0 -3
- package/dist/micro/security/types/IPermissionGroup.js.map +0 -1
- package/dist/micro/security/types/IPermissionSet.d.ts +0 -6
- package/dist/micro/security/types/IPermissionSet.js +0 -3
- package/dist/micro/security/types/IPermissionSet.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/types/ApiQueryOptions.d.ts +0 -14
- package/dist/types/ApiQueryOptions.js +0 -3
- package/dist/types/ApiQueryOptions.js.map +0 -1
- package/dist/types/Constructable.d.ts +0 -3
- package/dist/types/Constructable.js +0 -3
- package/dist/types/Constructable.js.map +0 -1
- package/dist/types/Constructor.d.ts +0 -1
- package/dist/types/Constructor.js +0 -3
- package/dist/types/Constructor.js.map +0 -1
- package/dist/types/HasApiName.d.ts +0 -3
- package/dist/types/HasApiName.js +0 -3
- package/dist/types/HasApiName.js.map +0 -1
- package/dist/types/HasCallouts.d.ts +0 -4
- package/dist/types/HasCallouts.js +0 -3
- package/dist/types/HasCallouts.js.map +0 -1
- package/dist/types/HasDBId.d.ts +0 -3
- package/dist/types/HasDBId.js +0 -3
- package/dist/types/HasDBId.js.map +0 -1
- package/dist/types/HasDescription.d.ts +0 -3
- package/dist/types/HasDescription.js +0 -3
- package/dist/types/HasDescription.js.map +0 -1
- package/dist/types/HasEmail.d.ts +0 -3
- package/dist/types/HasEmail.js +0 -3
- package/dist/types/HasEmail.js.map +0 -1
- package/dist/types/HasId.d.ts +0 -3
- package/dist/types/HasId.js +0 -3
- package/dist/types/HasId.js.map +0 -1
- package/dist/types/HasLabel.d.ts +0 -3
- package/dist/types/HasLabel.js +0 -3
- package/dist/types/HasLabel.js.map +0 -1
- package/dist/types/HasMode.d.ts +0 -3
- package/dist/types/HasMode.js +0 -3
- package/dist/types/HasMode.js.map +0 -1
- package/dist/types/HasNamespace.d.ts +0 -3
- package/dist/types/HasNamespace.js +0 -3
- package/dist/types/HasNamespace.js.map +0 -1
- package/dist/types/HasOrder.d.ts +0 -3
- package/dist/types/HasOrder.js +0 -3
- package/dist/types/HasOrder.js.map +0 -1
- package/dist/types/index.d.ts +0 -11
- package/dist/types/index.js +0 -28
- package/dist/types/index.js.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,15 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const types_1 = require("../../types");
|
|
16
|
-
class AuthApi {
|
|
10
|
+
import { Calloutable } from "../../features/index.js";
|
|
11
|
+
import { UrlService } from "../../services/index.js";
|
|
12
|
+
import { MicroserviceName } from "../../types.js";
|
|
13
|
+
export class AuthApi {
|
|
17
14
|
getTokensByCredentials(user) {
|
|
18
15
|
return {
|
|
19
|
-
baseURL:
|
|
16
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
20
17
|
url: '/user/signin',
|
|
21
18
|
method: 'POST',
|
|
22
19
|
data: user
|
|
@@ -24,7 +21,7 @@ class AuthApi {
|
|
|
24
21
|
}
|
|
25
22
|
getAuthCodeByCredentials(user) {
|
|
26
23
|
return {
|
|
27
|
-
baseURL:
|
|
24
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
28
25
|
url: '/user/signin/code',
|
|
29
26
|
method: 'POST',
|
|
30
27
|
data: user
|
|
@@ -32,14 +29,14 @@ class AuthApi {
|
|
|
32
29
|
}
|
|
33
30
|
getTokensByAuthCode(code) {
|
|
34
31
|
return {
|
|
35
|
-
baseURL:
|
|
32
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
36
33
|
url: `/user/signin/code/${code}`,
|
|
37
34
|
method: 'GET',
|
|
38
35
|
};
|
|
39
36
|
}
|
|
40
37
|
activate(user) {
|
|
41
38
|
return {
|
|
42
|
-
baseURL:
|
|
39
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
43
40
|
url: '/user/signup/code',
|
|
44
41
|
method: 'POST',
|
|
45
42
|
data: user
|
|
@@ -47,7 +44,7 @@ class AuthApi {
|
|
|
47
44
|
}
|
|
48
45
|
refresh(refreshToken) {
|
|
49
46
|
return {
|
|
50
|
-
baseURL:
|
|
47
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
51
48
|
url: '/user/refresh',
|
|
52
49
|
method: 'POST',
|
|
53
50
|
data: { refreshToken }
|
|
@@ -55,14 +52,14 @@ class AuthApi {
|
|
|
55
52
|
}
|
|
56
53
|
resetPassword(userId) {
|
|
57
54
|
return {
|
|
58
|
-
baseURL:
|
|
55
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
59
56
|
url: `/user/password/reset/${userId}`,
|
|
60
57
|
method: 'POST',
|
|
61
58
|
};
|
|
62
59
|
}
|
|
63
60
|
resetPasswordConfirm(confirm) {
|
|
64
61
|
return {
|
|
65
|
-
baseURL:
|
|
62
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
66
63
|
url: `/user/password/reset`,
|
|
67
64
|
method: 'POST',
|
|
68
65
|
data: confirm
|
|
@@ -70,58 +67,57 @@ class AuthApi {
|
|
|
70
67
|
}
|
|
71
68
|
changePassword(user) {
|
|
72
69
|
return {
|
|
73
|
-
baseURL:
|
|
70
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.auth),
|
|
74
71
|
url: `/user/password/change`,
|
|
75
72
|
method: 'POST',
|
|
76
73
|
data: user
|
|
77
74
|
};
|
|
78
75
|
}
|
|
79
76
|
}
|
|
80
|
-
exports.AuthApi = AuthApi;
|
|
81
77
|
__decorate([
|
|
82
|
-
|
|
78
|
+
Calloutable(),
|
|
83
79
|
__metadata("design:type", Function),
|
|
84
80
|
__metadata("design:paramtypes", [Object]),
|
|
85
81
|
__metadata("design:returntype", void 0)
|
|
86
82
|
], AuthApi.prototype, "getTokensByCredentials", null);
|
|
87
83
|
__decorate([
|
|
88
|
-
|
|
84
|
+
Calloutable(),
|
|
89
85
|
__metadata("design:type", Function),
|
|
90
86
|
__metadata("design:paramtypes", [Object]),
|
|
91
87
|
__metadata("design:returntype", void 0)
|
|
92
88
|
], AuthApi.prototype, "getAuthCodeByCredentials", null);
|
|
93
89
|
__decorate([
|
|
94
|
-
|
|
90
|
+
Calloutable(),
|
|
95
91
|
__metadata("design:type", Function),
|
|
96
92
|
__metadata("design:paramtypes", [String]),
|
|
97
93
|
__metadata("design:returntype", void 0)
|
|
98
94
|
], AuthApi.prototype, "getTokensByAuthCode", null);
|
|
99
95
|
__decorate([
|
|
100
|
-
|
|
96
|
+
Calloutable(),
|
|
101
97
|
__metadata("design:type", Function),
|
|
102
98
|
__metadata("design:paramtypes", [Object]),
|
|
103
99
|
__metadata("design:returntype", void 0)
|
|
104
100
|
], AuthApi.prototype, "activate", null);
|
|
105
101
|
__decorate([
|
|
106
|
-
|
|
102
|
+
Calloutable(),
|
|
107
103
|
__metadata("design:type", Function),
|
|
108
104
|
__metadata("design:paramtypes", [String]),
|
|
109
105
|
__metadata("design:returntype", void 0)
|
|
110
106
|
], AuthApi.prototype, "refresh", null);
|
|
111
107
|
__decorate([
|
|
112
|
-
|
|
108
|
+
Calloutable(),
|
|
113
109
|
__metadata("design:type", Function),
|
|
114
110
|
__metadata("design:paramtypes", [String]),
|
|
115
111
|
__metadata("design:returntype", void 0)
|
|
116
112
|
], AuthApi.prototype, "resetPassword", null);
|
|
117
113
|
__decorate([
|
|
118
|
-
|
|
114
|
+
Calloutable(),
|
|
119
115
|
__metadata("design:type", Function),
|
|
120
116
|
__metadata("design:paramtypes", [Object]),
|
|
121
117
|
__metadata("design:returntype", void 0)
|
|
122
118
|
], AuthApi.prototype, "resetPasswordConfirm", null);
|
|
123
119
|
__decorate([
|
|
124
|
-
|
|
120
|
+
Calloutable(),
|
|
125
121
|
__metadata("design:type", Function),
|
|
126
122
|
__metadata("design:paramtypes", [Object]),
|
|
127
123
|
__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,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAEhD,MAAM,OAAO,OAAO;IAGX,sBAAsB,CAAC,IAAgB;QAC5C,OAAO;YACL,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,gBAAgB,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,UAAU,CAAC,WAAW,CAAC,gBAAgB,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,UAAU,CAAC,WAAW,CAAC,gBAAgB,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,UAAU,CAAC,WAAW,CAAC,gBAAgB,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,UAAU,CAAC,WAAW,CAAC,gBAAgB,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,UAAU,CAAC,WAAW,CAAC,gBAAgB,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,UAAU,CAAC,WAAW,CAAC,gBAAgB,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,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,uBAAuB;YAC5B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACW,CAAA;IACzB,CAAC;CAEF;AA7EQ;IADN,WAAW,EAAE;;;;qDAQb;AAGM;IADN,WAAW,EAAE;;;;uDAQb;AAGM;IADN,WAAW,EAAE;;;;kDAOb;AAGM;IADN,WAAW,EAAE;;;;uCAQb;AAGM;IADN,WAAW,EAAE;;;;sCAQb;AAGM;IADN,WAAW,EAAE;;;;4CAOb;AAGM;IADN,WAAW,EAAE;;;;mDAQb;AAGM;IADN,WAAW,EAAE;;;;6CAQb"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,24 +7,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const types_1 = require("../../types");
|
|
16
|
-
class WorkspaceApi {
|
|
10
|
+
import { Calloutable } from "../../features/index.js";
|
|
11
|
+
import { UrlService } from "../../services/index.js";
|
|
12
|
+
import { MicroserviceName } from "../../types.js";
|
|
13
|
+
export class WorkspaceApi {
|
|
17
14
|
init(workspace) {
|
|
18
15
|
return {
|
|
19
|
-
baseURL:
|
|
16
|
+
baseURL: UrlService.getMicroUrl(MicroserviceName.init),
|
|
20
17
|
url: '/init',
|
|
21
18
|
method: 'POST',
|
|
22
19
|
data: workspace
|
|
23
20
|
};
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
exports.WorkspaceApi = WorkspaceApi;
|
|
27
23
|
__decorate([
|
|
28
|
-
|
|
24
|
+
Calloutable(),
|
|
29
25
|
__metadata("design:type", Function),
|
|
30
26
|
__metadata("design:paramtypes", [Object]),
|
|
31
27
|
__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,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAEhD,MAAM,OAAO,YAAY;IAGhB,IAAI,CAAC,SAAwB;QAClC,OAAO;YACL,OAAO,EAAE,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,IAAI,CAAC;YACtD,GAAG,EAAE,OAAO;YACZ,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;CAEF;AATQ;IADN,WAAW,EAAE;;;;wCAQb"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './WorkspaceApi';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './WorkspaceApi.js';
|
|
2
|
+
export * from './types/index.js';
|
package/dist/micro/auth/index.js
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./WorkspaceApi"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './WorkspaceApi.js';
|
|
2
|
+
export * from './types/index.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/micro/auth/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/micro/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './InitWorkspace';
|
|
1
|
+
export * from './InitWorkspace.js';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./InitWorkspace"), exports);
|
|
1
|
+
export * from './InitWorkspace.js';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/auth/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/auth/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
package/dist/micro/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './auth';
|
|
2
|
-
export * from './query';
|
|
3
|
-
export * from './workspace';
|
|
4
|
-
export * from './security';
|
|
1
|
+
export * from './auth/index.js';
|
|
2
|
+
export * from './query/index.js';
|
|
3
|
+
export * from './workspace/index.js';
|
|
4
|
+
export * from './security/index.js';
|
package/dist/micro/index.js
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./auth"), exports);
|
|
18
|
-
__exportStar(require("./query"), exports);
|
|
19
|
-
__exportStar(require("./workspace"), exports);
|
|
20
|
-
__exportStar(require("./security"), exports);
|
|
1
|
+
export * from './auth/index.js';
|
|
2
|
+
export * from './query/index.js';
|
|
3
|
+
export * from './workspace/index.js';
|
|
4
|
+
export * from './security/index.js';
|
|
21
5
|
//# sourceMappingURL=index.js.map
|
package/dist/micro/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/micro/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/micro/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
|
-
import { SObjectField } from "./types";
|
|
3
|
-
import { AbstractCRUDApi } from "../../features";
|
|
2
|
+
import { SObjectField } from "./types/index.js";
|
|
3
|
+
import { AbstractCRUDApi } from "../../features/index.js";
|
|
4
4
|
export declare class FieldApi extends AbstractCRUDApi {
|
|
5
5
|
create(field: SObjectField): AxiosRequestConfig;
|
|
6
6
|
getAllByObjectId(objectId: string): AxiosRequestConfig;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,11 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const callout_1 = require("../../features/callout");
|
|
15
|
-
class FieldApi extends features_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../../features/index.js";
|
|
11
|
+
import { Calloutable } from "../../features/index.js";
|
|
12
|
+
export class FieldApi extends AbstractCRUDApi {
|
|
16
13
|
create(field) {
|
|
17
14
|
return {
|
|
18
15
|
baseURL: this.serverUrl,
|
|
@@ -42,27 +39,26 @@ class FieldApi extends features_1.AbstractCRUDApi {
|
|
|
42
39
|
};
|
|
43
40
|
}
|
|
44
41
|
}
|
|
45
|
-
exports.FieldApi = FieldApi;
|
|
46
42
|
__decorate([
|
|
47
|
-
|
|
43
|
+
Calloutable(),
|
|
48
44
|
__metadata("design:type", Function),
|
|
49
45
|
__metadata("design:paramtypes", [Object]),
|
|
50
46
|
__metadata("design:returntype", Object)
|
|
51
47
|
], FieldApi.prototype, "create", null);
|
|
52
48
|
__decorate([
|
|
53
|
-
|
|
49
|
+
Calloutable(),
|
|
54
50
|
__metadata("design:type", Function),
|
|
55
51
|
__metadata("design:paramtypes", [String]),
|
|
56
52
|
__metadata("design:returntype", void 0)
|
|
57
53
|
], FieldApi.prototype, "getAllByObjectId", null);
|
|
58
54
|
__decorate([
|
|
59
|
-
|
|
55
|
+
Calloutable(),
|
|
60
56
|
__metadata("design:type", Function),
|
|
61
57
|
__metadata("design:paramtypes", [String]),
|
|
62
58
|
__metadata("design:returntype", void 0)
|
|
63
59
|
], FieldApi.prototype, "getAllByObjectApiName", null);
|
|
64
60
|
__decorate([
|
|
65
|
-
|
|
61
|
+
Calloutable(),
|
|
66
62
|
__metadata("design:type", Function),
|
|
67
63
|
__metadata("design:paramtypes", [String]),
|
|
68
64
|
__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,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAEpD,MAAM,OAAO,QAAS,SAAQ,eAAe;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;AAnCQ;IADN,WAAW,EAAE;;;;sCAQb;AAGM;IADN,WAAW,EAAE;;;;gDAOb;AAGM;IADN,WAAW,EAAE;;;;qDAMb;AAGM;IADN,WAAW,EAAE;;;;mDAOb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
|
-
import { AbstractCRUDApi } from "../../features";
|
|
2
|
+
import { AbstractCRUDApi } from "../../features/index.js";
|
|
3
3
|
export declare class SObjectApi extends AbstractCRUDApi {
|
|
4
4
|
getByApiName(apiName: string): AxiosRequestConfig;
|
|
5
5
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,11 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const callout_1 = require("../../features/callout");
|
|
15
|
-
class SObjectApi extends features_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../../features/index.js";
|
|
11
|
+
import { Calloutable } from "../../features/index.js";
|
|
12
|
+
export class SObjectApi extends AbstractCRUDApi {
|
|
16
13
|
getByApiName(apiName) {
|
|
17
14
|
return {
|
|
18
15
|
baseURL: this.serverUrl,
|
|
@@ -21,9 +18,8 @@ class SObjectApi extends features_1.AbstractCRUDApi {
|
|
|
21
18
|
};
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
|
-
exports.SObjectApi = SObjectApi;
|
|
25
21
|
__decorate([
|
|
26
|
-
|
|
22
|
+
Calloutable(),
|
|
27
23
|
__metadata("design:type", Function),
|
|
28
24
|
__metadata("design:paramtypes", [String]),
|
|
29
25
|
__metadata("design:returntype", void 0)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SObjectApi.js","sourceRoot":"","sources":["../../../src/micro/query/SObjectApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SObjectApi.js","sourceRoot":"","sources":["../../../src/micro/query/SObjectApi.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AAEpD,MAAM,OAAO,UAAW,SAAQ,eAAe;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;AARQ;IADN,WAAW,EAAE;;;;8CAOb"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ObjectApiError = void 0;
|
|
4
|
-
class ObjectApiError extends Error {
|
|
1
|
+
export class ObjectApiError extends Error {
|
|
5
2
|
constructor(message) {
|
|
6
3
|
super(message);
|
|
7
4
|
}
|
|
8
5
|
}
|
|
9
|
-
exports.ObjectApiError = ObjectApiError;
|
|
10
6
|
//# sourceMappingURL=ObjectApiError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectApiError.js","sourceRoot":"","sources":["../../../../src/micro/query/error/ObjectApiError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ObjectApiError.js","sourceRoot":"","sources":["../../../../src/micro/query/error/ObjectApiError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,cAAe,SAAQ,KAAK;IACvC,YAAY,OAAe;QACzB,KAAK,CAAC,OAAO,CAAC,CAAA;IAChB,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ObjectApiError';
|
|
1
|
+
export * from './ObjectApiError.js';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
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("./ObjectApiError"), exports);
|
|
1
|
+
export * from './ObjectApiError.js';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/query/error/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/micro/query/error/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './error';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './FieldApi';
|
|
4
|
-
export * from './SObjectApi';
|
|
1
|
+
export * from './error/index.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
|
+
export * from './FieldApi.js';
|
|
4
|
+
export * from './SObjectApi.js';
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./error"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
19
|
-
__exportStar(require("./FieldApi"), exports);
|
|
20
|
-
__exportStar(require("./SObjectApi"), exports);
|
|
1
|
+
export * from './error/index.js';
|
|
2
|
+
export * from './types/index.js';
|
|
3
|
+
export * from './FieldApi.js';
|
|
4
|
+
export * from './SObjectApi.js';
|
|
21
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/micro/query/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/micro/query/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FieldType = void 0;
|
|
4
|
-
var FieldType;
|
|
1
|
+
export var FieldType;
|
|
5
2
|
(function (FieldType) {
|
|
6
3
|
FieldType["String"] = "String";
|
|
7
4
|
FieldType["Number"] = "Number";
|
|
@@ -10,5 +7,5 @@ var FieldType;
|
|
|
10
7
|
FieldType["Datetime"] = "Datetime";
|
|
11
8
|
FieldType["Picklist"] = "Picklist";
|
|
12
9
|
FieldType["Multipicklist"] = "Multipicklist";
|
|
13
|
-
})(FieldType || (
|
|
10
|
+
})(FieldType || (FieldType = {}));
|
|
14
11
|
//# sourceMappingURL=FieldType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldType.js","sourceRoot":"","sources":["../../../../src/micro/query/types/FieldType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FieldType.js","sourceRoot":"","sources":["../../../../src/micro/query/types/FieldType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,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,KAAT,SAAS,QAQpB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HasApiName, HasDBId, HasDescription, HasLabel, HasNamespace } from "../../../types";
|
|
1
|
+
import { HasApiName, HasDBId, HasDescription, HasLabel, HasNamespace } from "../../../types.js";
|
|
2
2
|
export type SObject = {
|
|
3
3
|
fullName?: string;
|
|
4
4
|
} & HasDBId & HasLabel & HasApiName & HasDescription & HasNamespace;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FieldType } from "./FieldType";
|
|
2
|
-
import { PicklistValue } from "./PicklistValue";
|
|
3
|
-
import { HasApiName, HasDBId, HasLabel, HasNamespace } from "../../../types";
|
|
1
|
+
import { FieldType } from "./FieldType.js";
|
|
2
|
+
import { PicklistValue } from "./PicklistValue.js";
|
|
3
|
+
import { HasApiName, HasDBId, HasLabel, HasNamespace } from "../../../types.js";
|
|
4
4
|
export type SObjectField = {
|
|
5
5
|
type: FieldType;
|
|
6
6
|
objectId?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './FieldType';
|
|
2
|
-
export * from './PicklistValue';
|
|
3
|
-
export * from './SObject';
|
|
4
|
-
export * from './SObjectField';
|
|
1
|
+
export * from './FieldType.js';
|
|
2
|
+
export * from './PicklistValue.js';
|
|
3
|
+
export * from './SObject.js';
|
|
4
|
+
export * from './SObjectField.js';
|