@buildery/ts-api-kit 6.2.1 → 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 +2 -2
- 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,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("./operations"), exports);
|
|
18
|
-
__exportStar(require("./sync"), exports);
|
|
1
|
+
export * from './operations/index.js';
|
|
2
|
+
export * from './sync/index.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/crud/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/crud/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractApi } from "../../../api";
|
|
2
|
-
import { MicroserviceName } from "../../../../types";
|
|
1
|
+
import { AbstractApi } from "../../../api/index.js";
|
|
2
|
+
import { MicroserviceName } from "../../../../types.js";
|
|
3
3
|
export declare abstract class AbstractCRUDApi extends AbstractApi {
|
|
4
4
|
readonly objectName: string;
|
|
5
5
|
constructor(microName: MicroserviceName, objectName: string);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const api_1 = require("../../../api");
|
|
5
|
-
class AbstractCRUDApi extends api_1.AbstractApi {
|
|
1
|
+
import { AbstractApi } from "../../../api/index.js";
|
|
2
|
+
export class AbstractCRUDApi extends AbstractApi {
|
|
3
|
+
objectName;
|
|
6
4
|
constructor(microName, objectName) {
|
|
7
5
|
super(microName);
|
|
8
6
|
if (!objectName) {
|
|
@@ -11,7 +9,6 @@ class AbstractCRUDApi extends api_1.AbstractApi {
|
|
|
11
9
|
this.objectName = objectName;
|
|
12
10
|
}
|
|
13
11
|
}
|
|
14
|
-
exports.AbstractCRUDApi = AbstractCRUDApi;
|
|
15
12
|
class AbstractCRUDApiError extends Error {
|
|
16
13
|
}
|
|
17
14
|
//# sourceMappingURL=AbstractCRUDApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractCRUDApi.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/abstract/AbstractCRUDApi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractCRUDApi.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/abstract/AbstractCRUDApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAGlD,MAAM,OAAgB,eAAgB,SAAQ,WAAW;IAEvC,UAAU,CAAS;IAEnC,YAAmB,SAA2B,EAAE,UAAkB;QAChE,KAAK,CAAC,SAAS,CAAC,CAAC;QAEjB,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,oBAAoB,CAAC,4BAA4B,CAAC,CAAC;QAC/D,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CAEF;AAED,MAAM,oBAAqB,SAAQ,KAAK;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './AbstractCRUDApi';
|
|
1
|
+
export * from './AbstractCRUDApi.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("./AbstractCRUDApi"), exports);
|
|
1
|
+
export * from './AbstractCRUDApi.js';
|
|
18
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/abstract/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/abstract/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './operations';
|
|
2
|
-
export * from './abstract';
|
|
1
|
+
export * from './operations/index.js';
|
|
2
|
+
export * from './abstract/index.js';
|
|
@@ -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("./operations"), exports);
|
|
18
|
-
__exportStar(require("./abstract"), exports);
|
|
1
|
+
export * from './operations/index.js';
|
|
2
|
+
export * from './abstract/index.js';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/features/crud/operations/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -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,13 +7,10 @@ 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 sync_2 = require("../../sync");
|
|
16
|
-
const callout_1 = require("../../../callout");
|
|
17
|
-
class Create extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
12
|
+
import { CrudSyncAction, PushCrudEvent } from "../../sync/index.js";
|
|
13
|
+
export class Create extends AbstractCRUDApi {
|
|
18
14
|
create(entity) {
|
|
19
15
|
return {
|
|
20
16
|
baseURL: this.serverUrl,
|
|
@@ -25,9 +21,8 @@ class Create extends abstract_1.AbstractCRUDApi {
|
|
|
25
21
|
}
|
|
26
22
|
;
|
|
27
23
|
}
|
|
28
|
-
exports.Create = Create;
|
|
29
24
|
__decorate([
|
|
30
|
-
|
|
25
|
+
Calloutable(PushCrudEvent(CrudSyncAction.Create)),
|
|
31
26
|
__metadata("design:type", Function),
|
|
32
27
|
__metadata("design:paramtypes", [Object]),
|
|
33
28
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Create.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/Create.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAE,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElE,MAAM,OAAO,MAAU,SAAQ,eAAe;IAGrC,MAAM,CAAC,MAAS;QACrB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;SACb,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;;;;oCAQjD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
|
-
import { AbstractCRUDApi } from "../abstract";
|
|
2
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
3
3
|
export declare class CreateBulk<T> extends AbstractCRUDApi {
|
|
4
4
|
createBulk(entities: Array<T>): AxiosRequestConfig<Array<T>>;
|
|
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,12 +7,10 @@ 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 callout_1 = require("../../../callout");
|
|
16
|
-
class CreateBulk extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { CrudSyncAction, PushCrudEvent } from "../../sync/index.js";
|
|
12
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
13
|
+
export class CreateBulk extends AbstractCRUDApi {
|
|
17
14
|
createBulk(entities) {
|
|
18
15
|
return {
|
|
19
16
|
baseURL: this.serverUrl,
|
|
@@ -24,9 +21,8 @@ class CreateBulk extends abstract_1.AbstractCRUDApi {
|
|
|
24
21
|
}
|
|
25
22
|
;
|
|
26
23
|
}
|
|
27
|
-
exports.CreateBulk = CreateBulk;
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
25
|
+
Calloutable(PushCrudEvent(CrudSyncAction.CreateBulk)),
|
|
30
26
|
__metadata("design:type", Function),
|
|
31
27
|
__metadata("design:paramtypes", [Array]),
|
|
32
28
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/CreateBulk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateBulk.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/CreateBulk.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAC,cAAc,EAAE,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AAEtD,MAAM,OAAO,UAAc,SAAQ,eAAe;IAGzC,UAAU,CAAC,QAAkB;QAClC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,OAAO;YAC/B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,QAAQ;SACf,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;;qCAC1B,KAAK;;4CAOhC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
2
|
import type { Filter } from "mongodb";
|
|
3
|
-
import { AbstractCRUDApi } from "../abstract/index";
|
|
3
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
4
4
|
export declare class DeleteByFilters<T> extends AbstractCRUDApi {
|
|
5
5
|
deleteByFilters(filter: Filter<T>): AxiosRequestConfig;
|
|
6
6
|
}
|
|
@@ -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,12 +7,10 @@ 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 index_3 = require("../abstract/index");
|
|
16
|
-
class DeleteByFilters extends index_3.AbstractCRUDApi {
|
|
10
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
11
|
+
import { CrudSyncAction, PushCrudEvent } from "../../sync/index.js";
|
|
12
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
13
|
+
export class DeleteByFilters extends AbstractCRUDApi {
|
|
17
14
|
deleteByFilters(filter) {
|
|
18
15
|
return {
|
|
19
16
|
baseURL: this.serverUrl,
|
|
@@ -23,9 +20,8 @@ class DeleteByFilters extends index_3.AbstractCRUDApi {
|
|
|
23
20
|
};
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
exports.DeleteByFilters = DeleteByFilters;
|
|
27
23
|
__decorate([
|
|
28
|
-
|
|
24
|
+
Calloutable(PushCrudEvent(CrudSyncAction.DeleteBulk)),
|
|
29
25
|
__metadata("design:type", Function),
|
|
30
26
|
__metadata("design:paramtypes", [Object]),
|
|
31
27
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteByFilters.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteByFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteByFilters.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteByFilters.ts"],"names":[],"mappings":";;;;;;;;;AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAE,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,MAAM,OAAO,eAAmB,SAAQ,eAAe;IAG9C,eAAe,CAAC,MAAiB;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,SAAS;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAC,MAAM,EAAC;SACf,CAAA;IACH,CAAC;CAEF;AATQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;;;;sDAQrD"}
|
|
@@ -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,13 +7,11 @@ 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
|
-
|
|
16
|
-
const sync_2 = require("../../sync");
|
|
17
|
-
class DeleteById extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
12
|
+
import { CrudSyncAction } from "../../sync/index.js";
|
|
13
|
+
import { PushCrudEvent } from "../../sync/index.js";
|
|
14
|
+
export class DeleteById extends AbstractCRUDApi {
|
|
18
15
|
deleteById(entityId) {
|
|
19
16
|
return {
|
|
20
17
|
baseURL: this.serverUrl,
|
|
@@ -24,9 +21,8 @@ class DeleteById extends abstract_1.AbstractCRUDApi {
|
|
|
24
21
|
}
|
|
25
22
|
;
|
|
26
23
|
}
|
|
27
|
-
exports.DeleteById = DeleteById;
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
25
|
+
Calloutable(PushCrudEvent(CrudSyncAction.Delete)),
|
|
30
26
|
__metadata("design:type", Function),
|
|
31
27
|
__metadata("design:paramtypes", [String]),
|
|
32
28
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteById.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteById.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,MAAM,OAAO,UAAW,SAAQ,eAAe;IAGtC,UAAU,CAAC,QAAgB;QAChC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YACtC,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AARQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;;;;4CAOjD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractCRUDApi } from "../abstract";
|
|
1
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
3
|
export declare class DeleteByIds extends AbstractCRUDApi {
|
|
4
4
|
deleteByIds(entityIds: Array<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,25 +7,22 @@ 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
|
-
|
|
16
|
-
const middlewares_1 = require("../../sync/middlewares");
|
|
17
|
-
class DeleteByIds extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
12
|
+
import { CrudSyncAction } from "../../sync/index.js";
|
|
13
|
+
import { PushCrudEvent } from "../../sync/index.js";
|
|
14
|
+
export class DeleteByIds extends AbstractCRUDApi {
|
|
18
15
|
deleteByIds(entityIds) {
|
|
19
16
|
return {
|
|
20
17
|
baseURL: this.serverUrl,
|
|
21
|
-
url: `/${this.objectName}/bulk/${entityIds
|
|
18
|
+
url: `/${this.objectName}/bulk/${entityIds?.join(',')}`,
|
|
22
19
|
method: 'DELETE'
|
|
23
20
|
};
|
|
24
21
|
}
|
|
25
22
|
;
|
|
26
23
|
}
|
|
27
|
-
exports.DeleteByIds = DeleteByIds;
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
25
|
+
Calloutable(PushCrudEvent(CrudSyncAction.DeleteBulk)),
|
|
30
26
|
__metadata("design:type", Function),
|
|
31
27
|
__metadata("design:paramtypes", [Array]),
|
|
32
28
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteByIds.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/DeleteByIds.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,MAAM,OAAO,WAAY,SAAQ,eAAe;IAGvC,WAAW,CAAC,SAAwB;QACzC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,SAAS,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE;YACvD,MAAM,EAAE,QAAQ;SACjB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AARQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;;qCACxB,KAAK;;8CAMlC"}
|
|
@@ -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,13 +7,11 @@ 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
|
-
|
|
16
|
-
const middlewares_1 = require("../../sync/middlewares");
|
|
17
|
-
class GetAll extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
12
|
+
import { CrudSyncAction } from "../../sync/index.js";
|
|
13
|
+
import { PushCrudEvent } from "../../sync/index.js";
|
|
14
|
+
export class GetAll extends AbstractCRUDApi {
|
|
18
15
|
getAll() {
|
|
19
16
|
return {
|
|
20
17
|
baseURL: this.serverUrl,
|
|
@@ -24,9 +21,8 @@ class GetAll extends abstract_1.AbstractCRUDApi {
|
|
|
24
21
|
}
|
|
25
22
|
;
|
|
26
23
|
}
|
|
27
|
-
exports.GetAll = GetAll;
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
25
|
+
Calloutable(PushCrudEvent(CrudSyncAction.QueryBulk)),
|
|
30
26
|
__metadata("design:type", Function),
|
|
31
27
|
__metadata("design:paramtypes", []),
|
|
32
28
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetAll.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetAll.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GetAll.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetAll.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,MAAM,OAAO,MAAO,SAAQ,eAAe;IAGlC,MAAM;QACX,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,EAAE;YAC1B,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AARQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;;;;oCAOpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbstractCRUDApi } from "../abstract";
|
|
1
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
|
-
import { ApiQueryRequest } from "../../../../types";
|
|
3
|
+
import { ApiQueryRequest } from "../../../../types.js";
|
|
4
4
|
export declare class GetByFilters<T> extends AbstractCRUDApi {
|
|
5
5
|
getByFilters(query?: ApiQueryRequest<T>): AxiosRequestConfig;
|
|
6
6
|
}
|
|
@@ -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,13 +7,11 @@ 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
|
-
|
|
16
|
-
const sync_2 = require("../../sync");
|
|
17
|
-
class GetByFilters extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
12
|
+
import { CrudSyncAction } from "../../sync/index.js";
|
|
13
|
+
import { PushCrudEvent } from "../../sync/index.js";
|
|
14
|
+
export class GetByFilters extends AbstractCRUDApi {
|
|
18
15
|
getByFilters(query) {
|
|
19
16
|
return {
|
|
20
17
|
baseURL: this.serverUrl,
|
|
@@ -25,9 +22,8 @@ class GetByFilters extends abstract_1.AbstractCRUDApi {
|
|
|
25
22
|
}
|
|
26
23
|
;
|
|
27
24
|
}
|
|
28
|
-
exports.GetByFilters = GetByFilters;
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
26
|
+
Calloutable(PushCrudEvent(CrudSyncAction.QueryBulk)),
|
|
31
27
|
__metadata("design:type", Function),
|
|
32
28
|
__metadata("design:paramtypes", [Object]),
|
|
33
29
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetByFilters.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByFilters.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GetByFilters.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByFilters.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAGlD,MAAM,OAAO,YAAgB,SAAQ,eAAe;IAG3C,YAAY,CAAC,KAA0B;QAC5C,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,QAAQ;YAChC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,KAAK;SACZ,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;;;;gDAQpD"}
|
|
@@ -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,13 +7,11 @@ 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
|
-
|
|
16
|
-
const sync_2 = require("../../sync");
|
|
17
|
-
class GetById extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
12
|
+
import { CrudSyncAction } from "../../sync/index.js";
|
|
13
|
+
import { PushCrudEvent } from "../../sync/index.js";
|
|
14
|
+
export class GetById extends AbstractCRUDApi {
|
|
18
15
|
getById(entityId) {
|
|
19
16
|
return {
|
|
20
17
|
baseURL: this.serverUrl,
|
|
@@ -24,9 +21,8 @@ class GetById extends abstract_1.AbstractCRUDApi {
|
|
|
24
21
|
}
|
|
25
22
|
;
|
|
26
23
|
}
|
|
27
|
-
exports.GetById = GetById;
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
25
|
+
Calloutable(PushCrudEvent(CrudSyncAction.Query)),
|
|
30
26
|
__metadata("design:type", Function),
|
|
31
27
|
__metadata("design:paramtypes", [String]),
|
|
32
28
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetById.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GetById.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetById.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,MAAM,OAAO,OAAQ,SAAQ,eAAe;IAGnC,OAAO,CAAC,QAAgB;QAC7B,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,IAAI,QAAQ,EAAE;YACtC,MAAM,EAAE,KAAK;SACd,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AARQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;;;;sCAOhD"}
|
|
@@ -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,13 +7,11 @@ 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
|
-
|
|
16
|
-
const middlewares_1 = require("../../sync/middlewares");
|
|
17
|
-
class GetByIds extends abstract_1.AbstractCRUDApi {
|
|
10
|
+
import { AbstractCRUDApi } from "../abstract/index.js";
|
|
11
|
+
import { Calloutable } from "../../../callout/index.js";
|
|
12
|
+
import { CrudSyncAction } from "../../sync/index.js";
|
|
13
|
+
import { PushCrudEvent } from "../../sync/index.js";
|
|
14
|
+
export class GetByIds extends AbstractCRUDApi {
|
|
18
15
|
getByIds(entityIds) {
|
|
19
16
|
return {
|
|
20
17
|
baseURL: this.serverUrl,
|
|
@@ -25,9 +22,8 @@ class GetByIds extends abstract_1.AbstractCRUDApi {
|
|
|
25
22
|
}
|
|
26
23
|
;
|
|
27
24
|
}
|
|
28
|
-
exports.GetByIds = GetByIds;
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
26
|
+
Calloutable(PushCrudEvent(CrudSyncAction.QueryBulk)),
|
|
31
27
|
__metadata("design:type", Function),
|
|
32
28
|
__metadata("design:paramtypes", [Array]),
|
|
33
29
|
__metadata("design:returntype", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByIds.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GetByIds.js","sourceRoot":"","sources":["../../../../../src/features/crud/operations/operations/GetByIds.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,MAAM,OAAO,QAAS,SAAQ,eAAe;IAGpC,QAAQ,CAAC,SAAwB;QACtC,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,SAAS;YACvB,GAAG,EAAE,IAAI,IAAI,CAAC,UAAU,MAAM;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,SAAS;SAChB,CAAA;IACH,CAAC;IAAA,CAAC;CAEH;AATQ;IADN,WAAW,CAAC,aAAa,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;;qCAC1B,KAAK;;wCAO/B"}
|