From da49ca15749ebf0481fafcb27adec05e971aa840 Mon Sep 17 00:00:00 2001 From: nael Date: Sun, 17 Dec 2023 18:09:51 +0100 Subject: [PATCH] :sparkles: Added open api docs and sdk generation --- .../api/src/@core/auth/auth.controller.ts | 7 +- .../connections/connections.controller.ts | 4 +- .../api/src/@core/events/events.controller.ts | 3 +- .../field-mapping/field-mapping.controller.ts | 8 +- .../linked-users/linked-users.controller.ts | 11 +- .../@core/magic-link/magic-link.controller.ts | 11 +- .../organisations/organisations.controller.ts | 4 +- .../passthrough/passthrough.controller.ts | 9 +- .../src/@core/projects/projects.controller.ts | 4 +- .../src/@core/webhook/webhook.controller.ts | 5 +- .../api/src/crm/contact/contact.controller.ts | 13 +- packages/api/swagger/swagger-spec.json | 99 +- packages/sdk/api-schema-validation.log | 32 +- packages/sdk/liblab.config.json | 3 +- packages/sdk/output/python/.env.example | 1 - packages/sdk/output/python/.gitignore | 160 - packages/sdk/output/python/LICENSE | 19 - packages/sdk/output/python/README.md | 1232 ---- packages/sdk/output/python/examples/README.md | 33 - .../sdk/output/python/examples/install.sh | 5 - .../sdk/output/python/examples/install_py3.sh | 5 - packages/sdk/output/python/examples/sample.py | 10 - packages/sdk/output/python/install.sh | 3 - packages/sdk/output/python/pyproject.toml | 21 - packages/sdk/output/python/requirements.txt | 4 - .../sdk/output/python/src/testsdk/README.md | 1232 ---- .../sdk/output/python/src/testsdk/__init__.py | 2 - .../python/src/testsdk/hooks/__init__.py | 0 .../output/python/src/testsdk/hooks/hook.py | 1 - .../ContactControllerAddContactsRequest.py | 5 - .../src/testsdk/models/CreateLinkedUserDto.py | 18 - .../src/testsdk/models/CreateMagicLinkDto.py | 25 - .../testsdk/models/CreateOrganizationDto.py | 14 - .../src/testsdk/models/CreateProjectDto.py | 14 - .../src/testsdk/models/CreateUserDto.py | 20 - .../testsdk/models/DefineTargetFieldDto.py | 30 - .../src/testsdk/models/LoginCredentials.py | 20 - .../testsdk/models/MapFieldToProviderDto.py | 25 - .../testsdk/models/PassThroughRequestDto.py | 49 - .../src/testsdk/models/PassThroughResponse.py | 21 - .../python/src/testsdk/models/README.md | 45 - .../src/testsdk/models/UnifiedContactInput.py | 1 - .../python/src/testsdk/models/WebhookDto.py | 21 - .../python/src/testsdk/models/__init__.py | 13 - .../output/python/src/testsdk/models/base.py | 60 - .../output/python/src/testsdk/net/__init__.py | 0 .../python/src/testsdk/net/environment.py | 11 - .../python/src/testsdk/net/http_client.py | 275 - .../src/testsdk/net/http_content_types.py | 42 - .../src/testsdk/net/query_serializer.py | 80 - .../output/python/src/testsdk/net/utils.py | 65 - packages/sdk/output/python/src/testsdk/sdk.py | 118 - .../python/src/testsdk/services/README.md | 1122 --- .../python/src/testsdk/services/__init__.py | 0 .../python/src/testsdk/services/auth.py | 52 - .../python/src/testsdk/services/base.py | 98 - .../src/testsdk/services/connections.py | 42 - .../src/testsdk/services/crm_contact.py | 117 - .../python/src/testsdk/services/events.py | 14 - .../src/testsdk/services/field_mapping.py | 87 - .../src/testsdk/services/linked_users.py | 38 - .../python/src/testsdk/services/magic_link.py | 36 - .../python/src/testsdk/services/main.py | 14 - .../src/testsdk/services/organisations.py | 28 - .../src/testsdk/services/passthrough.py | 43 - .../python/src/testsdk/services/projects.py | 24 - .../python/src/testsdk/services/webhook.py | 38 - .../sdk/output/python/src/testsdk/setup.py | 9 - packages/sdk/output/python/test/__init__.py | 0 .../sdk/output/python/test/models/__init__.py | 0 .../output/python/test/models/test_base.py | 14 - .../models/test_create_linked_user_dto.py | 25 - .../test/models/test_create_magic_link_dto.py | 29 - .../models/test_create_organization_dto.py | 22 - .../test/models/test_create_project_dto.py | 22 - .../test/models/test_create_user_dto.py | 26 - .../models/test_define_target_field_dto.py | 29 - .../test/models/test_login_credentials.py | 25 - .../models/test_map_field_to_provider_dto.py | 29 - .../models/test_pass_through_request_dto.py | 26 - .../test/models/test_pass_through_response.py | 25 - .../test/models/test_unified_contact_input.py | 15 - .../python/test/models/test_webhook_dto.py | 26 - .../output/python/test/services/__init__.py | 0 .../output/python/test/services/test_auth.py | 113 - .../output/python/test/services/test_base.py | 14 - .../python/test/services/test_connections.py | 71 - .../python/test/services/test_crm_contact.py | 140 - .../python/test/services/test_events.py | 33 - .../test/services/test_field_mapping.py | 161 - .../python/test/services/test_linked_users.py | 84 - .../python/test/services/test_magic_link.py | 80 - .../output/python/test/services/test_main.py | 33 - .../test/services/test_organisations.py | 56 - .../python/test/services/test_passthrough.py | 46 - .../python/test/services/test_projects.py | 52 - .../python/test/services/test_webhook.py | 80 - packages/sdk/output/typescript/.eslintrc.json | 50 - .../typescript/.github/PROTECTED_BRANCHES | 1 - .../.github/workflows/build-checks.yml | 35 - .../.github/workflows/pr-checks.yml | 28 - .../.github/workflows/release-checks.yml | 32 - packages/sdk/output/typescript/.gitignore | 132 - .../sdk/output/typescript/.prettierrc.json | 26 - packages/sdk/output/typescript/LICENSE | 19 - packages/sdk/output/typescript/README.md | 1208 ---- .../output/typescript/examples/.env.example | 1 - .../sdk/output/typescript/examples/README.md | 23 - .../output/typescript/examples/package.json | 18 - .../output/typescript/examples/src/index.ts | 8 - .../output/typescript/examples/tsconfig.json | 103 - packages/sdk/output/typescript/install.sh | 2 - .../sdk/output/typescript/jest.config.json | 4 - .../sdk/output/typescript/package-lock.json | 6197 ----------------- packages/sdk/output/typescript/package.json | 57 - .../sdk/output/typescript/src/BaseService.ts | 46 - .../sdk/output/typescript/src/hooks/Hook.ts | 28 - .../output/typescript/src/http/Environment.ts | 3 - .../output/typescript/src/http/HTTPClient.ts | 12 - .../output/typescript/src/http/HTTPLibrary.ts | 159 - .../typescript/src/http/QuerySerializer.ts | 82 - .../typescript/src/http/errors/BadGateway.ts | 11 - .../typescript/src/http/errors/BadRequest.ts | 11 - .../typescript/src/http/errors/Conflict.ts | 11 - .../src/http/errors/ExpectationFailed.ts | 11 - .../src/http/errors/FailedDependency.ts | 11 - .../typescript/src/http/errors/Forbidden.ts | 11 - .../src/http/errors/GatewayTimeout.ts | 11 - .../output/typescript/src/http/errors/Gone.ts | 11 - .../http/errors/HttpVersionNotSupported.ts | 11 - .../src/http/errors/InternalServerError.ts | 11 - .../src/http/errors/LengthRequired.ts | 11 - .../typescript/src/http/errors/Locked.ts | 11 - .../src/http/errors/LoopDetected.ts | 11 - .../src/http/errors/MethodNotAllowed.ts | 14 - .../src/http/errors/MisdirectedRequest.ts | 11 - .../errors/NetworkAuthenticationRequired.ts | 11 - .../src/http/errors/NotAcceptable.ts | 11 - .../typescript/src/http/errors/NotExtended.ts | 11 - .../typescript/src/http/errors/NotFound.ts | 11 - .../src/http/errors/NotImplemented.ts | 11 - .../src/http/errors/PayloadTooLarge.ts | 14 - .../src/http/errors/PaymentRequired.ts | 11 - .../src/http/errors/PreconditionFailed.ts | 11 - .../src/http/errors/PreconditionRequired.ts | 11 - .../errors/ProxyAuthenticationRequired.ts | 14 - .../src/http/errors/RangeNotSatisfiable.ts | 11 - .../errors/RequestHeaderFieldsTooLarge.ts | 11 - .../src/http/errors/RequestTimeout.ts | 11 - .../src/http/errors/ServiceUnavailable.ts | 14 - .../typescript/src/http/errors/TooEarly.ts | 11 - .../src/http/errors/TooManyRequests.ts | 14 - .../src/http/errors/Unauthorized.ts | 14 - .../http/errors/UnavailableForLegalReasons.ts | 11 - .../src/http/errors/UnprocessableEntity.ts | 11 - .../src/http/errors/UnsufficientStorage.ts | 11 - .../src/http/errors/UnsupportedMediaType.ts | 11 - .../src/http/errors/UpgradeRequired.ts | 11 - .../typescript/src/http/errors/UriTooLong.ts | 11 - .../src/http/errors/VariantAlsoNegotiates.ts | 11 - .../output/typescript/src/http/errors/base.ts | 52 - .../typescript/src/http/errors/index.ts | 83 - .../typescript/src/http/httpExceptions.ts | 132 - packages/sdk/output/typescript/src/index.ts | 101 - packages/sdk/output/typescript/src/models.ts | 13 - .../output/typescript/src/services/README.md | 1149 --- .../typescript/src/services/auth/Auth.ts | 87 - .../typescript/src/services/auth/index.ts | 2 - .../src/services/auth/models/CreateUserDto.ts | 6 - .../services/auth/models/LoginCredentials.ts | 5 - .../src/services/connections/Connections.ts | 54 - .../src/services/crmContact/CrmContact.ts | 132 - .../src/services/crmContact/index.ts | 1 - .../ContactControllerAddContactsRequest.ts | 3 - .../crmContact/models/UnifiedContactInput.ts | 1 - .../typescript/src/services/events/Events.ts | 18 - .../src/services/fieldMapping/FieldMapping.ts | 117 - .../src/services/fieldMapping/index.ts | 2 - .../models/DefineTargetFieldDto.ts | 9 - .../models/MapFieldToProviderDto.ts | 6 - .../src/services/linkedUsers/LinkedUsers.ts | 61 - .../src/services/linkedUsers/index.ts | 1 - .../linkedUsers/models/CreateLinkedUserDto.ts | 5 - .../src/services/magicLink/MagicLink.ts | 61 - .../src/services/magicLink/index.ts | 1 - .../magicLink/models/CreateMagicLinkDto.ts | 6 - .../typescript/src/services/main/Main.ts | 18 - .../services/organisations/Organisations.ts | 37 - .../src/services/organisations/index.ts | 1 - .../models/CreateOrganizationDto.ts | 4 - .../src/services/passthrough/Passthrough.ts | 41 - .../src/services/passthrough/index.ts | 2 - .../models/PassThroughRequestDto.ts | 14 - .../passthrough/models/PassThroughResponse.ts | 8 - .../src/services/projects/Projects.ts | 37 - .../typescript/src/services/projects/index.ts | 1 - .../projects/models/CreateProjectDto.ts | 4 - .../src/services/webhook/Webhook.ts | 58 - .../typescript/src/services/webhook/index.ts | 1 - .../src/services/webhook/models/WebhookDto.ts | 6 - .../test/services/auth/Auth.test.ts | 58 - .../services/connections/Connections.test.ts | 64 - .../services/crmContact/CrmContact.test.ts | 142 - .../test/services/events/Events.test.ts | 28 - .../fieldMapping/FieldMapping.test.ts | 106 - .../services/linkedUsers/LinkedUsers.test.ts | 70 - .../test/services/magicLink/MagicLink.test.ts | 70 - .../test/services/main/Main.test.ts | 28 - .../organisations/Organisations.test.ts | 41 - .../services/passthrough/Passthrough.test.ts | 51 - .../test/services/projects/Projects.test.ts | 41 - .../test/services/webhook/Webhook.test.ts | 68 - .../output/typescript/tsconfig.eslint.json | 6 - packages/sdk/output/typescript/tsconfig.json | 27 - 214 files changed, 157 insertions(+), 18655 deletions(-) delete mode 100644 packages/sdk/output/python/.env.example delete mode 100644 packages/sdk/output/python/.gitignore delete mode 100644 packages/sdk/output/python/LICENSE delete mode 100644 packages/sdk/output/python/README.md delete mode 100644 packages/sdk/output/python/examples/README.md delete mode 100644 packages/sdk/output/python/examples/install.sh delete mode 100644 packages/sdk/output/python/examples/install_py3.sh delete mode 100644 packages/sdk/output/python/examples/sample.py delete mode 100644 packages/sdk/output/python/install.sh delete mode 100644 packages/sdk/output/python/pyproject.toml delete mode 100644 packages/sdk/output/python/requirements.txt delete mode 100644 packages/sdk/output/python/src/testsdk/README.md delete mode 100644 packages/sdk/output/python/src/testsdk/__init__.py delete mode 100644 packages/sdk/output/python/src/testsdk/hooks/__init__.py delete mode 100644 packages/sdk/output/python/src/testsdk/hooks/hook.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/ContactControllerAddContactsRequest.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/CreateLinkedUserDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/CreateMagicLinkDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/CreateOrganizationDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/CreateProjectDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/CreateUserDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/DefineTargetFieldDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/LoginCredentials.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/MapFieldToProviderDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/PassThroughRequestDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/PassThroughResponse.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/README.md delete mode 100644 packages/sdk/output/python/src/testsdk/models/UnifiedContactInput.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/WebhookDto.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/__init__.py delete mode 100644 packages/sdk/output/python/src/testsdk/models/base.py delete mode 100644 packages/sdk/output/python/src/testsdk/net/__init__.py delete mode 100644 packages/sdk/output/python/src/testsdk/net/environment.py delete mode 100644 packages/sdk/output/python/src/testsdk/net/http_client.py delete mode 100644 packages/sdk/output/python/src/testsdk/net/http_content_types.py delete mode 100644 packages/sdk/output/python/src/testsdk/net/query_serializer.py delete mode 100644 packages/sdk/output/python/src/testsdk/net/utils.py delete mode 100644 packages/sdk/output/python/src/testsdk/sdk.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/README.md delete mode 100644 packages/sdk/output/python/src/testsdk/services/__init__.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/auth.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/base.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/connections.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/crm_contact.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/events.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/field_mapping.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/linked_users.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/magic_link.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/main.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/organisations.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/passthrough.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/projects.py delete mode 100644 packages/sdk/output/python/src/testsdk/services/webhook.py delete mode 100644 packages/sdk/output/python/src/testsdk/setup.py delete mode 100644 packages/sdk/output/python/test/__init__.py delete mode 100644 packages/sdk/output/python/test/models/__init__.py delete mode 100644 packages/sdk/output/python/test/models/test_base.py delete mode 100644 packages/sdk/output/python/test/models/test_create_linked_user_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_create_magic_link_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_create_organization_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_create_project_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_create_user_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_define_target_field_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_login_credentials.py delete mode 100644 packages/sdk/output/python/test/models/test_map_field_to_provider_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_pass_through_request_dto.py delete mode 100644 packages/sdk/output/python/test/models/test_pass_through_response.py delete mode 100644 packages/sdk/output/python/test/models/test_unified_contact_input.py delete mode 100644 packages/sdk/output/python/test/models/test_webhook_dto.py delete mode 100644 packages/sdk/output/python/test/services/__init__.py delete mode 100644 packages/sdk/output/python/test/services/test_auth.py delete mode 100644 packages/sdk/output/python/test/services/test_base.py delete mode 100644 packages/sdk/output/python/test/services/test_connections.py delete mode 100644 packages/sdk/output/python/test/services/test_crm_contact.py delete mode 100644 packages/sdk/output/python/test/services/test_events.py delete mode 100644 packages/sdk/output/python/test/services/test_field_mapping.py delete mode 100644 packages/sdk/output/python/test/services/test_linked_users.py delete mode 100644 packages/sdk/output/python/test/services/test_magic_link.py delete mode 100644 packages/sdk/output/python/test/services/test_main.py delete mode 100644 packages/sdk/output/python/test/services/test_organisations.py delete mode 100644 packages/sdk/output/python/test/services/test_passthrough.py delete mode 100644 packages/sdk/output/python/test/services/test_projects.py delete mode 100644 packages/sdk/output/python/test/services/test_webhook.py delete mode 100644 packages/sdk/output/typescript/.eslintrc.json delete mode 100644 packages/sdk/output/typescript/.github/PROTECTED_BRANCHES delete mode 100644 packages/sdk/output/typescript/.github/workflows/build-checks.yml delete mode 100644 packages/sdk/output/typescript/.github/workflows/pr-checks.yml delete mode 100644 packages/sdk/output/typescript/.github/workflows/release-checks.yml delete mode 100644 packages/sdk/output/typescript/.gitignore delete mode 100644 packages/sdk/output/typescript/.prettierrc.json delete mode 100644 packages/sdk/output/typescript/LICENSE delete mode 100644 packages/sdk/output/typescript/README.md delete mode 100644 packages/sdk/output/typescript/examples/.env.example delete mode 100644 packages/sdk/output/typescript/examples/README.md delete mode 100644 packages/sdk/output/typescript/examples/package.json delete mode 100644 packages/sdk/output/typescript/examples/src/index.ts delete mode 100644 packages/sdk/output/typescript/examples/tsconfig.json delete mode 100644 packages/sdk/output/typescript/install.sh delete mode 100644 packages/sdk/output/typescript/jest.config.json delete mode 100644 packages/sdk/output/typescript/package-lock.json delete mode 100644 packages/sdk/output/typescript/package.json delete mode 100644 packages/sdk/output/typescript/src/BaseService.ts delete mode 100644 packages/sdk/output/typescript/src/hooks/Hook.ts delete mode 100644 packages/sdk/output/typescript/src/http/Environment.ts delete mode 100644 packages/sdk/output/typescript/src/http/HTTPClient.ts delete mode 100644 packages/sdk/output/typescript/src/http/HTTPLibrary.ts delete mode 100644 packages/sdk/output/typescript/src/http/QuerySerializer.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/BadGateway.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/BadRequest.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/Conflict.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/ExpectationFailed.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/FailedDependency.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/Forbidden.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/GatewayTimeout.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/Gone.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/HttpVersionNotSupported.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/InternalServerError.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/LengthRequired.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/Locked.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/LoopDetected.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/MethodNotAllowed.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/MisdirectedRequest.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/NetworkAuthenticationRequired.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/NotAcceptable.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/NotExtended.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/NotFound.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/NotImplemented.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/PayloadTooLarge.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/PaymentRequired.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/PreconditionFailed.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/PreconditionRequired.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/ProxyAuthenticationRequired.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/RangeNotSatisfiable.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/RequestHeaderFieldsTooLarge.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/RequestTimeout.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/ServiceUnavailable.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/TooEarly.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/TooManyRequests.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/Unauthorized.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/UnavailableForLegalReasons.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/UnprocessableEntity.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/UnsufficientStorage.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/UnsupportedMediaType.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/UpgradeRequired.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/UriTooLong.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/VariantAlsoNegotiates.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/base.ts delete mode 100644 packages/sdk/output/typescript/src/http/errors/index.ts delete mode 100644 packages/sdk/output/typescript/src/http/httpExceptions.ts delete mode 100644 packages/sdk/output/typescript/src/index.ts delete mode 100644 packages/sdk/output/typescript/src/models.ts delete mode 100644 packages/sdk/output/typescript/src/services/README.md delete mode 100644 packages/sdk/output/typescript/src/services/auth/Auth.ts delete mode 100644 packages/sdk/output/typescript/src/services/auth/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/auth/models/CreateUserDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/auth/models/LoginCredentials.ts delete mode 100644 packages/sdk/output/typescript/src/services/connections/Connections.ts delete mode 100644 packages/sdk/output/typescript/src/services/crmContact/CrmContact.ts delete mode 100644 packages/sdk/output/typescript/src/services/crmContact/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/crmContact/models/ContactControllerAddContactsRequest.ts delete mode 100644 packages/sdk/output/typescript/src/services/crmContact/models/UnifiedContactInput.ts delete mode 100644 packages/sdk/output/typescript/src/services/events/Events.ts delete mode 100644 packages/sdk/output/typescript/src/services/fieldMapping/FieldMapping.ts delete mode 100644 packages/sdk/output/typescript/src/services/fieldMapping/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/fieldMapping/models/DefineTargetFieldDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/fieldMapping/models/MapFieldToProviderDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/linkedUsers/LinkedUsers.ts delete mode 100644 packages/sdk/output/typescript/src/services/linkedUsers/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/linkedUsers/models/CreateLinkedUserDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/magicLink/MagicLink.ts delete mode 100644 packages/sdk/output/typescript/src/services/magicLink/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/magicLink/models/CreateMagicLinkDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/main/Main.ts delete mode 100644 packages/sdk/output/typescript/src/services/organisations/Organisations.ts delete mode 100644 packages/sdk/output/typescript/src/services/organisations/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/organisations/models/CreateOrganizationDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/passthrough/Passthrough.ts delete mode 100644 packages/sdk/output/typescript/src/services/passthrough/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/passthrough/models/PassThroughRequestDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/passthrough/models/PassThroughResponse.ts delete mode 100644 packages/sdk/output/typescript/src/services/projects/Projects.ts delete mode 100644 packages/sdk/output/typescript/src/services/projects/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/projects/models/CreateProjectDto.ts delete mode 100644 packages/sdk/output/typescript/src/services/webhook/Webhook.ts delete mode 100644 packages/sdk/output/typescript/src/services/webhook/index.ts delete mode 100644 packages/sdk/output/typescript/src/services/webhook/models/WebhookDto.ts delete mode 100644 packages/sdk/output/typescript/test/services/auth/Auth.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/connections/Connections.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/crmContact/CrmContact.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/events/Events.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/fieldMapping/FieldMapping.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/linkedUsers/LinkedUsers.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/magicLink/MagicLink.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/main/Main.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/organisations/Organisations.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/passthrough/Passthrough.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/projects/Projects.test.ts delete mode 100644 packages/sdk/output/typescript/test/services/webhook/Webhook.test.ts delete mode 100644 packages/sdk/output/typescript/tsconfig.eslint.json delete mode 100644 packages/sdk/output/typescript/tsconfig.json diff --git a/packages/api/src/@core/auth/auth.controller.ts b/packages/api/src/@core/auth/auth.controller.ts index c33a1149c..4d1d19bde 100644 --- a/packages/api/src/@core/auth/auth.controller.ts +++ b/packages/api/src/@core/auth/auth.controller.ts @@ -3,7 +3,7 @@ import { CreateUserDto } from './dto/create-user.dto'; import { AuthService } from './auth.service'; import { JwtAuthGuard } from './guards/jwt-auth.guard'; import { LoggerService } from '@@core/logger/logger.service'; -import { ApiBody, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { ApiBody, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; import { ApiKeyDto } from './dto/api-key.dto'; import { LoginDto } from './dto/login.dto'; @@ -17,6 +17,7 @@ export class AuthController { this.logger.setContext(AuthController.name); } + @ApiOperation({ operationId: 'signUp' }) @ApiBody({ type: CreateUserDto }) @ApiResponse({ status: 201 }) @Post('register') @@ -24,6 +25,7 @@ export class AuthController { return this.authService.register(user); } + @ApiOperation({ operationId: 'signIn' }) @ApiBody({ type: LoginDto }) @ApiResponse({ status: 201 }) @Post('login') @@ -31,18 +33,21 @@ export class AuthController { return this.authService.login(user); } + @ApiOperation({ operationId: 'getUsers' }) @ApiResponse({ status: 200 }) @Get('users') async users() { return this.authService.getUsers(); } + @ApiOperation({ operationId: 'getApiKeys' }) @ApiResponse({ status: 200 }) @Get('api-keys') async apiKeys() { return this.authService.getApiKeys(); } + @ApiOperation({ operationId: 'generateApiKey' }) @ApiBody({ type: ApiKeyDto }) @ApiResponse({ status: 201 }) @UseGuards(JwtAuthGuard) diff --git a/packages/api/src/@core/connections/connections.controller.ts b/packages/api/src/@core/connections/connections.controller.ts index b9d015f66..0735f242a 100644 --- a/packages/api/src/@core/connections/connections.controller.ts +++ b/packages/api/src/@core/connections/connections.controller.ts @@ -5,7 +5,7 @@ import { LoggerService } from '@@core/logger/logger.service'; import { NotFoundError, handleServiceError } from '@@core/utils/errors'; import { PrismaService } from '@@core/prisma/prisma.service'; import { ProviderVertical, getProviderVertical } from '@@core/utils/types'; -import { ApiQuery, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { ApiOperation, ApiQuery, ApiResponse, ApiTags } from '@nestjs/swagger'; @ApiTags('connections') @Controller('connections') @@ -18,6 +18,7 @@ export class ConnectionsController { this.logger.setContext(ConnectionsController.name); } + @ApiOperation({ operationId: 'handleOAuthCallback' }) @ApiQuery({ name: 'state', required: true, type: String }) @ApiQuery({ name: 'code', required: true, type: String }) @ApiQuery({ name: 'location', required: true, type: String }) @@ -73,6 +74,7 @@ export class ConnectionsController { } } + @ApiOperation({ operationId: 'getConnections' }) @ApiResponse({ status: 200 }) @Get() async getConnections() { diff --git a/packages/api/src/@core/events/events.controller.ts b/packages/api/src/@core/events/events.controller.ts index 7a0e1e626..3806515f2 100644 --- a/packages/api/src/@core/events/events.controller.ts +++ b/packages/api/src/@core/events/events.controller.ts @@ -2,7 +2,7 @@ import { Controller, Get } from '@nestjs/common'; import { EventsService } from './events.service'; import { LoggerService } from '@@core/logger/logger.service'; import { PrismaService } from '@@core/prisma/prisma.service'; -import { ApiResponse, ApiTags } from '@nestjs/swagger'; +import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; @ApiTags('events') @Controller('events') export class EventsController { @@ -13,6 +13,7 @@ export class EventsController { this.logger.setContext(EventsController.name); } + @ApiOperation({ operationId: 'getEvents' }) @ApiResponse({ status: 200 }) @Get() async getEvents() { diff --git a/packages/api/src/@core/field-mapping/field-mapping.controller.ts b/packages/api/src/@core/field-mapping/field-mapping.controller.ts index 7615f4ae6..b84196290 100644 --- a/packages/api/src/@core/field-mapping/field-mapping.controller.ts +++ b/packages/api/src/@core/field-mapping/field-mapping.controller.ts @@ -5,7 +5,7 @@ import { DefineTargetFieldDto, MapFieldToProviderDto, } from './dto/create-custom-field.dto'; -import { ApiResponse, ApiTags, ApiBody } from '@nestjs/swagger'; +import { ApiResponse, ApiTags, ApiBody, ApiOperation } from '@nestjs/swagger'; @ApiTags('field-mapping') @Controller('field-mapping') @@ -17,24 +17,28 @@ export class FieldMappingController { this.logger.setContext(FieldMappingController.name); } + @ApiOperation({ operationId: 'getFieldMappingsEntities' }) @ApiResponse({ status: 200 }) @Get('entities') getEntities() { return this.fieldMappingService.getEntities(); } + @ApiOperation({ operationId: 'getFieldMappings' }) @ApiResponse({ status: 200 }) @Get('attribute') getAttributes() { return this.fieldMappingService.getAttributes(); } + @ApiOperation({ operationId: 'getFieldMappingValues' }) @ApiResponse({ status: 200 }) @Get('value') getValues() { return this.fieldMappingService.getValues(); } + @ApiOperation({ operationId: 'defineTargetField' }) @ApiBody({ type: DefineTargetFieldDto }) @ApiResponse({ status: 201 }) //define target field on our unified model @@ -43,6 +47,7 @@ export class FieldMappingController { return this.fieldMappingService.defineTargetField(defineTargetFieldDto); } + @ApiOperation({ operationId: 'mapField' }) @ApiBody({ type: MapFieldToProviderDto }) @ApiResponse({ status: 201 }) @Post('map') @@ -50,6 +55,7 @@ export class FieldMappingController { return this.fieldMappingService.mapFieldToProvider(mapFieldToProviderDto); } + @ApiOperation({ operationId: 'getCustomProviderProperties' }) @ApiResponse({ status: 200 }) @Get('properties') getCustomProperties( diff --git a/packages/api/src/@core/linked-users/linked-users.controller.ts b/packages/api/src/@core/linked-users/linked-users.controller.ts index 3f0ceac8b..22032665b 100644 --- a/packages/api/src/@core/linked-users/linked-users.controller.ts +++ b/packages/api/src/@core/linked-users/linked-users.controller.ts @@ -2,7 +2,13 @@ import { Body, Controller, Get, Post, Query } from '@nestjs/common'; import { LinkedUsersService } from './linked-users.service'; import { LoggerService } from '../logger/logger.service'; import { CreateLinkedUserDto } from './dto/create-linked-user.dto'; -import { ApiBody, ApiQuery, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { + ApiBody, + ApiOperation, + ApiQuery, + ApiResponse, + ApiTags, +} from '@nestjs/swagger'; @ApiTags('linked-users') @Controller('linked-users') @@ -14,6 +20,7 @@ export class LinkedUsersController { this.logger.setContext(LinkedUsersController.name); } + @ApiOperation({ operationId: 'addLinkedUser' }) @ApiBody({ type: CreateLinkedUserDto }) @ApiResponse({ status: 201 }) @Post('create') @@ -21,12 +28,14 @@ export class LinkedUsersController { return this.linkedUsersService.addLinkedUser(linkedUserCreateDto); } + @ApiOperation({ operationId: 'getLinkedUsers' }) @ApiResponse({ status: 200 }) @Get() getLinkedUsers() { return this.linkedUsersService.getLinkedUsers(); } + @ApiOperation({ operationId: 'getLinkedUser' }) @ApiQuery({ name: 'id', required: true, type: String }) @ApiResponse({ status: 200 }) @Get('single') diff --git a/packages/api/src/@core/magic-link/magic-link.controller.ts b/packages/api/src/@core/magic-link/magic-link.controller.ts index 76564ca81..98c19296a 100644 --- a/packages/api/src/@core/magic-link/magic-link.controller.ts +++ b/packages/api/src/@core/magic-link/magic-link.controller.ts @@ -2,7 +2,13 @@ import { LoggerService } from '@@core/logger/logger.service'; import { Body, Controller, Get, Post, Query } from '@nestjs/common'; import { MagicLinkService } from './magic-link.service'; import { CreateMagicLinkDto } from './dto/create-magic-link.dto'; -import { ApiBody, ApiQuery, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { + ApiBody, + ApiOperation, + ApiQuery, + ApiResponse, + ApiTags, +} from '@nestjs/swagger'; import { invite_links as MagicLink } from '@prisma/client'; @ApiTags('magic-link') @Controller('magic-link') @@ -14,6 +20,7 @@ export class MagicLinkController { this.logger.setContext(MagicLinkController.name); } + @ApiOperation({ operationId: 'createMagicLink' }) @ApiBody({ type: CreateMagicLinkDto }) @ApiResponse({ status: 201 }) @Post('create') @@ -21,12 +28,14 @@ export class MagicLinkController { return this.magicLinkService.createUniqueLink(data); } + @ApiOperation({ operationId: 'getMagicLinks' }) @ApiResponse({ status: 200 }) @Get() getMagicLinks() { return this.magicLinkService.getMagicLinks(); } + @ApiOperation({ operationId: 'getMagicLink' }) @ApiQuery({ name: 'id', required: true, type: String }) @ApiResponse({ status: 200 }) @Get('single') diff --git a/packages/api/src/@core/organisations/organisations.controller.ts b/packages/api/src/@core/organisations/organisations.controller.ts index f2c7b34be..f13479087 100644 --- a/packages/api/src/@core/organisations/organisations.controller.ts +++ b/packages/api/src/@core/organisations/organisations.controller.ts @@ -2,7 +2,7 @@ import { Body, Controller, Get, Post } from '@nestjs/common'; import { OrganisationsService } from './organisations.service'; import { LoggerService } from '../logger/logger.service'; import { CreateOrganizationDto } from './dto/create-organization.dto'; -import { ApiBody, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { ApiBody, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; @ApiTags('organisations') @Controller('organisations') @@ -14,11 +14,13 @@ export class OrganisationsController { this.logger.setContext(OrganisationsController.name); } + @ApiOperation({ operationId: 'getOrganisations' }) @Get() getOragnisations() { return this.organizationsService.getOrganisations(); } + @ApiOperation({ operationId: 'createOrganisation' }) @ApiBody({ type: CreateOrganizationDto }) @ApiResponse({ status: 201 }) @Post('create') diff --git a/packages/api/src/@core/passthrough/passthrough.controller.ts b/packages/api/src/@core/passthrough/passthrough.controller.ts index a56ac093d..4efcb7aa6 100644 --- a/packages/api/src/@core/passthrough/passthrough.controller.ts +++ b/packages/api/src/@core/passthrough/passthrough.controller.ts @@ -3,7 +3,13 @@ import { PassThroughRequestDto } from './dto/passthrough.dto'; import { PassThroughResponse } from './types'; import { PassthroughService } from './passthrough.service'; import { LoggerService } from '@@core/logger/logger.service'; -import { ApiBody, ApiQuery, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { + ApiBody, + ApiOperation, + ApiQuery, + ApiResponse, + ApiTags, +} from '@nestjs/swagger'; @ApiTags('passthrough') @Controller('passthrough') @@ -15,6 +21,7 @@ export class PassthroughController { this.loggerSeervice.setContext(PassthroughController.name); } + @ApiOperation({ operationId: 'passthroughRequest' }) @ApiQuery({ name: 'integrationId', required: true, type: String }) @ApiQuery({ name: 'linkedUserId', required: true, type: String }) @ApiBody({ type: PassThroughRequestDto }) diff --git a/packages/api/src/@core/projects/projects.controller.ts b/packages/api/src/@core/projects/projects.controller.ts index 93a300254..f3dd1b980 100644 --- a/packages/api/src/@core/projects/projects.controller.ts +++ b/packages/api/src/@core/projects/projects.controller.ts @@ -2,7 +2,7 @@ import { Body, Controller, Get, Post } from '@nestjs/common'; import { ProjectsService } from './projects.service'; import { LoggerService } from '../logger/logger.service'; import { CreateProjectDto } from './dto/create-project.dto'; -import { ApiBody, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { ApiBody, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; @ApiTags('projects') @Controller('projects') @@ -14,12 +14,14 @@ export class ProjectsController { this.logger.setContext(ProjectsController.name); } + @ApiOperation({ operationId: 'getProjects' }) @ApiResponse({ status: 200 }) @Get() getProjects() { return this.projectsService.getProjects(); } + @ApiOperation({ operationId: 'createProject' }) @ApiBody({ type: CreateProjectDto }) @ApiResponse({ status: 201 }) @Post('create') diff --git a/packages/api/src/@core/webhook/webhook.controller.ts b/packages/api/src/@core/webhook/webhook.controller.ts index 6b812f17b..3fd391bc2 100644 --- a/packages/api/src/@core/webhook/webhook.controller.ts +++ b/packages/api/src/@core/webhook/webhook.controller.ts @@ -1,6 +1,6 @@ import { Body, Controller, Get, Post, Put, Param } from '@nestjs/common'; import { LoggerService } from '@@core/logger/logger.service'; -import { ApiBody, ApiResponse, ApiTags } from '@nestjs/swagger'; +import { ApiBody, ApiResponse, ApiTags, ApiOperation } from '@nestjs/swagger'; import { WebhookService } from './webhook.service'; import { WebhookDto } from './dto/webhook.dto'; @@ -14,12 +14,14 @@ export class WebhookController { this.loggerSeervice.setContext(WebhookController.name); } + @ApiOperation({ operationId: 'getWebhooksMetadata' }) @ApiResponse({ status: 200 }) @Get() getWebhooks() { return this.webhookService.getWebhookEndpoints(); } + @ApiOperation({ operationId: 'updateWebhookStatus' }) @Put(':id') async updateWebhookStatus( @Param('id') id: string, @@ -28,6 +30,7 @@ export class WebhookController { return this.webhookService.updateStatusWebhookEndpoint(id, active); } + @ApiOperation({ operationId: 'createWebhookMetadata' }) @ApiBody({ type: WebhookDto }) @ApiResponse({ status: 201 }) @Post() diff --git a/packages/api/src/crm/contact/contact.controller.ts b/packages/api/src/crm/contact/contact.controller.ts index aa6496ba9..b02b6c2a5 100644 --- a/packages/api/src/crm/contact/contact.controller.ts +++ b/packages/api/src/crm/contact/contact.controller.ts @@ -10,7 +10,13 @@ import { import { ContactService } from './services/contact.service'; import { LoggerService } from '@@core/logger/logger.service'; import { UnifiedContactInput } from './types/model.unified'; -import { ApiBody, ApiParam, ApiQuery, ApiTags } from '@nestjs/swagger'; +import { + ApiBody, + ApiOperation, + ApiParam, + ApiQuery, + ApiTags, +} from '@nestjs/swagger'; import { ContactResponse, ApiCustomResponse } from './types'; @ApiTags('crm/contact') @Controller('crm/contact') @@ -22,6 +28,7 @@ export class ContactController { this.logger.setContext(ContactController.name); } + @ApiOperation({ operationId: 'getContacts' }) @ApiQuery({ name: 'integrationId', required: true, type: String }) @ApiQuery({ name: 'linkedUserId', required: true, type: String }) @ApiQuery({ name: 'remote_data', required: false, type: Boolean }) @@ -39,6 +46,7 @@ export class ContactController { ); } + @ApiOperation({ operationId: 'getContact' }) @ApiParam({ name: 'id', required: true, type: String }) @ApiQuery({ name: 'remote_data', required: false, type: Boolean }) @ApiCustomResponse(ContactResponse) @@ -50,6 +58,7 @@ export class ContactController { return this.contactService.getContact(id, remote_data); } + @ApiOperation({ operationId: 'addContact' }) @ApiQuery({ name: 'integrationId', required: true, type: String }) @ApiQuery({ name: 'linkedUserId', required: true, type: String }) @ApiQuery({ name: 'remote_data', required: false, type: Boolean }) @@ -70,6 +79,7 @@ export class ContactController { ); } + @ApiOperation({ operationId: 'addContacts' }) @ApiQuery({ name: 'integrationId', required: true, type: String }) @ApiQuery({ name: 'linkedUserId', required: true, type: String }) @ApiQuery({ name: 'remote_data', required: false, type: Boolean }) @@ -90,6 +100,7 @@ export class ContactController { ); } + @ApiOperation({ operationId: 'updateContact' }) @Patch() updateContact( @Query('id') id: string, diff --git a/packages/api/swagger/swagger-spec.json b/packages/api/swagger/swagger-spec.json index ac704c13a..e3d3eef2e 100644 --- a/packages/api/swagger/swagger-spec.json +++ b/packages/api/swagger/swagger-spec.json @@ -14,7 +14,8 @@ }, "/auth/register": { "post": { - "operationId": "AuthController_registerUser", + "operationId": "signUp", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -38,7 +39,8 @@ }, "/auth/login": { "post": { - "operationId": "AuthController_login", + "operationId": "signIn", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -62,7 +64,8 @@ }, "/auth/users": { "get": { - "operationId": "AuthController_users", + "operationId": "getUsers", + "summary": "", "parameters": [], "responses": { "200": { @@ -76,7 +79,8 @@ }, "/auth/api-keys": { "get": { - "operationId": "AuthController_apiKeys", + "operationId": "getApiKeys", + "summary": "", "parameters": [], "responses": { "200": { @@ -90,7 +94,8 @@ }, "/auth/generate-apikey": { "post": { - "operationId": "AuthController_generateApiKey", + "operationId": "generateApiKey", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -114,7 +119,8 @@ }, "/connections/oauth/callback": { "get": { - "operationId": "ConnectionsController_handleCallback", + "operationId": "handleOAuthCallback", + "summary": "", "parameters": [ { "name": "state", @@ -153,7 +159,8 @@ }, "/connections": { "get": { - "operationId": "ConnectionsController_getConnections", + "operationId": "getConnections", + "summary": "", "parameters": [], "responses": { "200": { @@ -167,7 +174,8 @@ }, "/webhook": { "get": { - "operationId": "WebhookController_getWebhooks", + "operationId": "getWebhooksMetadata", + "summary": "", "parameters": [], "responses": { "200": { @@ -179,7 +187,8 @@ ] }, "post": { - "operationId": "WebhookController_addWebhook", + "operationId": "createWebhookMetadata", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -203,7 +212,8 @@ }, "/webhook/{id}": { "put": { - "operationId": "WebhookController_updateWebhookStatus", + "operationId": "updateWebhookStatus", + "summary": "", "parameters": [ { "name": "id", @@ -226,7 +236,8 @@ }, "/linked-users/create": { "post": { - "operationId": "LinkedUsersController_addLinkedUser", + "operationId": "addLinkedUser", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -250,7 +261,8 @@ }, "/linked-users": { "get": { - "operationId": "LinkedUsersController_getLinkedUsers", + "operationId": "getLinkedUsers", + "summary": "", "parameters": [], "responses": { "200": { @@ -264,7 +276,8 @@ }, "/linked-users/single": { "get": { - "operationId": "LinkedUsersController_getLinkedUser", + "operationId": "getLinkedUser", + "summary": "", "parameters": [ { "name": "id", @@ -287,7 +300,8 @@ }, "/organisations": { "get": { - "operationId": "OrganisationsController_getOragnisations", + "operationId": "getOrganisations", + "summary": "", "parameters": [], "responses": { "200": { @@ -301,7 +315,8 @@ }, "/organisations/create": { "post": { - "operationId": "OrganisationsController_createOrg", + "operationId": "createOrganisation", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -325,7 +340,8 @@ }, "/projects": { "get": { - "operationId": "ProjectsController_getProjects", + "operationId": "getProjects", + "summary": "", "parameters": [], "responses": { "200": { @@ -339,7 +355,8 @@ }, "/projects/create": { "post": { - "operationId": "ProjectsController_createProject", + "operationId": "createProject", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -363,7 +380,8 @@ }, "/field-mapping/entities": { "get": { - "operationId": "FieldMappingController_getEntities", + "operationId": "getFieldMappingsEntities", + "summary": "", "parameters": [], "responses": { "200": { @@ -377,7 +395,8 @@ }, "/field-mapping/attribute": { "get": { - "operationId": "FieldMappingController_getAttributes", + "operationId": "getFieldMappings", + "summary": "", "parameters": [], "responses": { "200": { @@ -391,7 +410,8 @@ }, "/field-mapping/value": { "get": { - "operationId": "FieldMappingController_getValues", + "operationId": "getFieldMappingValues", + "summary": "", "parameters": [], "responses": { "200": { @@ -405,7 +425,8 @@ }, "/field-mapping/define": { "post": { - "operationId": "FieldMappingController_defineTargetField", + "operationId": "defineTargetField", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -429,7 +450,8 @@ }, "/field-mapping/map": { "post": { - "operationId": "FieldMappingController_mapFieldToProvider", + "operationId": "mapField", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -453,7 +475,8 @@ }, "/field-mapping/properties": { "get": { - "operationId": "FieldMappingController_getCustomProperties", + "operationId": "getCustomProviderProperties", + "summary": "", "parameters": [ { "name": "linkedUserId", @@ -484,7 +507,8 @@ }, "/events": { "get": { - "operationId": "EventsController_getEvents", + "operationId": "getEvents", + "summary": "", "parameters": [], "responses": { "200": { @@ -498,7 +522,8 @@ }, "/magic-link/create": { "post": { - "operationId": "MagicLinkController_createLink", + "operationId": "createMagicLink", + "summary": "", "parameters": [], "requestBody": { "required": true, @@ -522,7 +547,8 @@ }, "/magic-link": { "get": { - "operationId": "MagicLinkController_getMagicLinks", + "operationId": "getMagicLinks", + "summary": "", "parameters": [], "responses": { "200": { @@ -536,7 +562,8 @@ }, "/magic-link/single": { "get": { - "operationId": "MagicLinkController_getMagicLink", + "operationId": "getMagicLink", + "summary": "", "parameters": [ { "name": "id", @@ -559,7 +586,8 @@ }, "/passthrough": { "post": { - "operationId": "PassthroughController_passthroughRequest", + "operationId": "passthroughRequest", + "summary": "", "parameters": [ { "name": "integrationId", @@ -607,7 +635,8 @@ }, "/crm/contact": { "get": { - "operationId": "ContactController_getContacts", + "operationId": "getContacts", + "summary": "", "parameters": [ { "name": "integrationId", @@ -662,7 +691,8 @@ ] }, "post": { - "operationId": "ContactController_addContact", + "operationId": "addContact", + "summary": "", "parameters": [ { "name": "integrationId", @@ -727,7 +757,8 @@ ] }, "patch": { - "operationId": "ContactController_updateContact", + "operationId": "updateContact", + "summary": "", "parameters": [ { "name": "id", @@ -750,7 +781,8 @@ }, "/crm/contact/{id}": { "get": { - "operationId": "ContactController_getContact", + "operationId": "getContact", + "summary": "", "parameters": [ { "name": "id", @@ -799,7 +831,8 @@ }, "/crm/contact/batch": { "post": { - "operationId": "ContactController_addContacts", + "operationId": "addContacts", + "summary": "", "parameters": [ { "name": "integrationId", diff --git a/packages/sdk/api-schema-validation.log b/packages/sdk/api-schema-validation.log index 118bf6395..7f93293a7 100644 --- a/packages/sdk/api-schema-validation.log +++ b/packages/sdk/api-schema-validation.log @@ -348,54 +348,66 @@ 59. [Warning] Operation "description" must be present and non-empty string. Object Path: paths..crm.contact.get - Line: 608 - 644, + Line: 608 - 662, Char: 13 - 7 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-description 60. [Warning] Operation tags must be defined in global tags. Object Path: paths..crm.contact.get.tags.{0} - Line: 642, + Line: 660, Char: 10 - 23 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-tag-defined 61. [Warning] Operation "description" must be present and non-empty string. Object Path: paths..crm.contact.post - Line: 645 - 694, + Line: 663 - 727, Char: 14 - 7 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-description 62. [Warning] Operation tags must be defined in global tags. Object Path: paths..crm.contact.post.tags.{0} - Line: 692, + Line: 725, Char: 10 - 23 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-tag-defined 63. [Warning] Operation "description" must be present and non-empty string. Object Path: paths..crm.contact.patch - Line: 695 - 715, + Line: 728 - 748, Char: 15 - 7 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-description 64. [Warning] Operation tags must be defined in global tags. Object Path: paths..crm.contact.patch.tags.{0} - Line: 713, + Line: 746, Char: 10 - 23 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-tag-defined 65. [Warning] Operation "description" must be present and non-empty string. Object Path: paths..crm.contact.{id}.get - Line: 718 - 746, + Line: 751 - 797, Char: 13 - 7 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-description 66. [Warning] Operation tags must be defined in global tags. Object Path: paths..crm.contact.{id}.get.tags.{0} - Line: 744, + Line: 795, Char: 10 - 23 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-tag-defined -67. [Error] OpenAPI "servers" must be present and non-empty array. +67. [Warning] Operation "description" must be present and non-empty string. + Object Path: paths..crm.contact.batch.post + Line: 800 - 867, + Char: 14 - 7 + Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-description + +68. [Warning] Operation tags must be defined in global tags. + Object Path: paths..crm.contact.batch.post.tags.{0} + Line: 865, + Char: 10 - 23 + Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#operation-tag-defined + +69. [Error] OpenAPI "servers" must be present and non-empty array. Object Path: servers - Line: 756, + Line: 877, Char: 13 - 15 Documentation: https://docs.stoplight.io/docs/spectral/4dec24461f3af-open-api-rules#oas3-api-servers \ No newline at end of file diff --git a/packages/sdk/liblab.config.json b/packages/sdk/liblab.config.json index cbf1e4e67..d5657010a 100644 --- a/packages/sdk/liblab.config.json +++ b/packages/sdk/liblab.config.json @@ -2,10 +2,9 @@ "sdkName": "panora-sdk", "specFilePath": "https://raw.githubusercontent.com/panoratech/Panora/main/packages/api/swagger/swagger-spec.json", "languages": [ - "python", "typescript" ], - "createDocs": true, + "createDocs": false, "auth": [ "bearer" ], diff --git a/packages/sdk/output/python/.env.example b/packages/sdk/output/python/.env.example deleted file mode 100644 index c834c0141..000000000 --- a/packages/sdk/output/python/.env.example +++ /dev/null @@ -1 +0,0 @@ -TESTSDK_BEARER_TOKEN= diff --git a/packages/sdk/output/python/.gitignore b/packages/sdk/output/python/.gitignore deleted file mode 100644 index 68bc17f9f..000000000 --- a/packages/sdk/output/python/.gitignore +++ /dev/null @@ -1,160 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -share/python-wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.nox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -*.py,cover -.hypothesis/ -.pytest_cache/ -cover/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 -db.sqlite3-journal - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -.pybuilder/ -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# IPython -profile_default/ -ipython_config.py - -# pyenv -# For a library or package, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# .python-version - -# pipenv -# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. -# However, in case of collaboration, if having platform-specific dependencies or dependencies -# having no cross-platform support, pipenv may install dependencies that don't work, or not -# install all needed dependencies. -#Pipfile.lock - -# poetry -# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. -# This is especially recommended for binary packages to ensure reproducibility, and is more -# commonly ignored for libraries. -# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control -#poetry.lock - -# pdm -# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. -#pdm.lock -# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it -# in version control. -# https://pdm.fming.dev/#use-with-ide -.pdm.toml - -# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm -__pypackages__/ - -# Celery stuff -celerybeat-schedule -celerybeat.pid - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ -.dmypy.json -dmypy.json - -# Pyre type checker -.pyre/ - -# pytype static type analyzer -.pytype/ - -# Cython debug symbols -cython_debug/ - -# PyCharm -# JetBrains specific template is maintained in a separate JetBrains.gitignore that can -# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore -# and can be added to the global gitignore or merged into this file. For a more nuclear -# option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ diff --git a/packages/sdk/output/python/LICENSE b/packages/sdk/output/python/LICENSE deleted file mode 100644 index cb511c80b..000000000 --- a/packages/sdk/output/python/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2023 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/packages/sdk/output/python/README.md b/packages/sdk/output/python/README.md deleted file mode 100644 index 776b5bcc0..000000000 --- a/packages/sdk/output/python/README.md +++ /dev/null @@ -1,1232 +0,0 @@ -# Testsdk Python SDK 1.0.0 -A Python SDK for Testsdk. - -The Panora API description - -- API version: 1.0.0 -- SDK version: 1.0.0 - -## Table of Contents -- [Requirements](#requirements) -- [Installation](#installation) - - [Dependencies](#dependencies) -- [Authentication](#authentication) - - [Access Token Authentication](#bearer-authentication) -- [API Endpoint Services](#api-endpoint-services) -- [API Models](#api-models) -- [Testing](#testing) -- [Configuration](#configuration) -- [Sample Usage](#sample-usage) -- [Testsdk Services](#testsdk-services) -- [License](#license) - -## Installation -```bash -pip install testsdk -``` - -### Dependencies - -This SDK uses the following dependencies: -- requests 2.28.1 -- http-exceptions 0.2.10 -- pytest 7.1.2 -- responses 0.21.0 - -## Authentication - -To see whether an endpoint needs a specific type of authentication check the endpoint's documentation. - -### Access Token Authentication -The Testsdk API uses bearer tokens as a form of authentication.You can set the bearer token when initializing the SDK through the constructor: - -```py -sdk = Testsdk('YOUR_BEARER_TOKEN') -``` - -Or through the `set_access_token` method: -```py -sdk = Testsdk() -sdk.set_access_token('YOUR_BEARER_TOKEN') -``` - -You can also set it for each service individually: -```py -sdk = Testsdk() -sdk.main.set_access_token('YOUR_BEARER_TOKEN') -``` - -## API Endpoint Services - -All URIs are relative to http://api.example.com. - -Click the service name for a full list of the service methods. - -| Service | -| :------ | -|[Main](./services/README.md#main)| -|[Auth](./services/README.md#auth)| -|[Connections](./services/README.md#connections)| -|[Webhook](./services/README.md#webhook)| -|[LinkedUsers](./services/README.md#linkedusers)| -|[Organisations](./services/README.md#organisations)| -|[Projects](./services/README.md#projects)| -|[FieldMapping](./services/README.md#fieldmapping)| -|[Events](./services/README.md#events)| -|[MagicLink](./services/README.md#magiclink)| -|[Passthrough](./services/README.md#passthrough)| -|[CrmContact](./services/README.md#crmcontact)| - -## API Models -[A list documenting all API models for this SDK](./models/README.md#testsdk-models). - -## Testing - -Run unit tests with this command: - -```sh -python -m unittest discover -p "test*.py" -``` - -## Sample Usage - -```py -from os import getenv -from pprint import pprint -from testsdk import Testsdk - -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) - -results = sdk.main.app_controller_get_hello() - -pprint(vars(results)) -``` - - -# Testsdk Services -A list of all services and services methods. -- Services - - - [Main](#main) - - - [Auth](#auth) - - - [Connections](#connections) - - - [Webhook](#webhook) - - - [LinkedUsers](#linkedusers) - - - [Organisations](#organisations) - - - [Projects](#projects) - - - [FieldMapping](#fieldmapping) - - - [Events](#events) - - - [MagicLink](#magiclink) - - - [Passthrough](#passthrough) - - - [CrmContact](#crmcontact) -- [All Methods](#all-methods) - - -## Main - -| Method | Description| -| :-------- | :----------| -| [app_controller_get_hello](#app_controller_get_hello) | | - - -## Auth - -| Method | Description| -| :-------- | :----------| -| [auth_controller_register_user](#auth_controller_register_user) | | -| [auth_controller_login](#auth_controller_login) | | -| [auth_controller_users](#auth_controller_users) | | -| [auth_controller_api_keys](#auth_controller_api_keys) | | -| [auth_controller_generate_api_key](#auth_controller_generate_api_key) | | - - -## Connections - -| Method | Description| -| :-------- | :----------| -| [connections_controller_handle_callback](#connections_controller_handle_callback) | | -| [connections_controller_get_connections](#connections_controller_get_connections) | | - - -## Webhook - -| Method | Description| -| :-------- | :----------| -| [webhook_controller_add_webhook](#webhook_controller_add_webhook) | | -| [webhook_controller_get_webhooks](#webhook_controller_get_webhooks) | | -| [webhook_controller_update_webhook_status](#webhook_controller_update_webhook_status) | | - - -## LinkedUsers - -| Method | Description| -| :-------- | :----------| -| [linked_users_controller_add_linked_user](#linked_users_controller_add_linked_user) | | -| [linked_users_controller_get_linked_users](#linked_users_controller_get_linked_users) | | -| [linked_users_controller_get_linked_user](#linked_users_controller_get_linked_user) | | - - -## Organisations - -| Method | Description| -| :-------- | :----------| -| [organisations_controller_get_oragnisations](#organisations_controller_get_oragnisations) | | -| [organisations_controller_create_org](#organisations_controller_create_org) | | - - -## Projects - -| Method | Description| -| :-------- | :----------| -| [projects_controller_get_projects](#projects_controller_get_projects) | | -| [projects_controller_create_project](#projects_controller_create_project) | | - - -## FieldMapping - -| Method | Description| -| :-------- | :----------| -| [field_mapping_controller_get_entities](#field_mapping_controller_get_entities) | | -| [field_mapping_controller_get_attributes](#field_mapping_controller_get_attributes) | | -| [field_mapping_controller_get_values](#field_mapping_controller_get_values) | | -| [field_mapping_controller_define_target_field](#field_mapping_controller_define_target_field) | | -| [field_mapping_controller_map_field_to_provider](#field_mapping_controller_map_field_to_provider) | | -| [field_mapping_controller_get_custom_properties](#field_mapping_controller_get_custom_properties) | | - - -## Events - -| Method | Description| -| :-------- | :----------| -| [events_controller_get_events](#events_controller_get_events) | | - - -## MagicLink - -| Method | Description| -| :-------- | :----------| -| [magic_link_controller_create_link](#magic_link_controller_create_link) | | -| [magic_link_controller_get_magic_links](#magic_link_controller_get_magic_links) | | -| [magic_link_controller_get_magic_link](#magic_link_controller_get_magic_link) | | - - -## Passthrough - -| Method | Description| -| :-------- | :----------| -| [passthrough_controller_passthrough_request](#passthrough_controller_passthrough_request) | | - - -## CrmContact - -| Method | Description| -| :-------- | :----------| -| [contact_controller_add_contacts](#contact_controller_add_contacts) | | -| [contact_controller_get_contacts](#contact_controller_get_contacts) | | -| [contact_controller_update_contact](#contact_controller_update_contact) | | -| [contact_controller_get_contact](#contact_controller_get_contact) | | - - - - -## All Methods - - -### **app_controller_get_hello** - -- HTTP Method: GET -- Endpoint: / - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.main.app_controller_get_hello() - -pprint(vars(results)) - -``` - - -### **auth_controller_register_user** - -- HTTP Method: POST -- Endpoint: /auth/register - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateUserDto](/src/testsdk/models/README.md#createuserdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'email': 'email', - 'first_name': 'first_name', - 'last_name': 'last_name', - 'password_hash': 'password_hash' -} -results = sdk.auth.auth_controller_register_user(request_input = request_body) - -pprint(vars(results)) - -``` - -### **auth_controller_login** - -- HTTP Method: POST -- Endpoint: /auth/login - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [LoginCredentials](/src/testsdk/models/README.md#logincredentials) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'email': 'email', - 'id_user': 'id_user', - 'password_hash': 'password_hash' -} -results = sdk.auth.auth_controller_login(request_input = request_body) - -pprint(vars(results)) - -``` - -### **auth_controller_users** - -- HTTP Method: GET -- Endpoint: /auth/users - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.auth.auth_controller_users() - -pprint(vars(results)) - -``` - -### **auth_controller_api_keys** - -- HTTP Method: GET -- Endpoint: /auth/api-keys - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.auth.auth_controller_api_keys() - -pprint(vars(results)) - -``` - -### **auth_controller_generate_api_key** - -- HTTP Method: POST -- Endpoint: /auth/generate-apikey - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | object | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = {} -results = sdk.auth.auth_controller_generate_api_key(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **connections_controller_handle_callback** - -- HTTP Method: GET -- Endpoint: /connections/oauth/callback - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| state | str | Required | | -| code | str | Required | | -| location | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.connections.connections_controller_handle_callback( - state = 'state', - code = 'code', - location = 'location' -) - -pprint(vars(results)) - -``` - -### **connections_controller_get_connections** - -- HTTP Method: GET -- Endpoint: /connections - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.connections.connections_controller_get_connections() - -pprint(vars(results)) - -``` - - -### **webhook_controller_add_webhook** - -- HTTP Method: POST -- Endpoint: /webhook - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [WebhookDto](/src/testsdk/models/README.md#webhookdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'description': 'description', - 'id_project': 'id_project', - 'scope': 'scope', - 'url': 'url' -} -results = sdk.webhook.webhook_controller_add_webhook(request_input = request_body) - -pprint(vars(results)) - -``` - -### **webhook_controller_get_webhooks** - -- HTTP Method: GET -- Endpoint: /webhook - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.webhook.webhook_controller_get_webhooks() - -pprint(vars(results)) - -``` - -### **webhook_controller_update_webhook_status** - -- HTTP Method: PUT -- Endpoint: /webhook/{id} - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.webhook.webhook_controller_update_webhook_status(id = 'id') - -pprint(vars(results)) - -``` - - -### **linked_users_controller_add_linked_user** - -- HTTP Method: POST -- Endpoint: /linked-users/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateLinkedUserDto](/src/testsdk/models/README.md#createlinkeduserdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'alias': 'alias', - 'id_project': 'id_project', - 'linked_user_origin_id': 'linked_user_origin_id' -} -results = sdk.linked_users.linked_users_controller_add_linked_user(request_input = request_body) - -pprint(vars(results)) - -``` - -### **linked_users_controller_get_linked_users** - -- HTTP Method: GET -- Endpoint: /linked-users - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.linked_users.linked_users_controller_get_linked_users() - -pprint(vars(results)) - -``` - -### **linked_users_controller_get_linked_user** - -- HTTP Method: GET -- Endpoint: /linked-users/single - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.linked_users.linked_users_controller_get_linked_user(id = 'id') - -pprint(vars(results)) - -``` - - -### **organisations_controller_get_oragnisations** - -- HTTP Method: GET -- Endpoint: /organisations - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.organisations.organisations_controller_get_oragnisations() - -pprint(vars(results)) - -``` - -### **organisations_controller_create_org** - -- HTTP Method: POST -- Endpoint: /organisations/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateOrganizationDto](/src/testsdk/models/README.md#createorganizationdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'name': 'name', - 'stripe_customer_id': 'stripe_customer_id' -} -results = sdk.organisations.organisations_controller_create_org(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **projects_controller_get_projects** - -- HTTP Method: GET -- Endpoint: /projects - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.projects.projects_controller_get_projects() - -pprint(vars(results)) - -``` - -### **projects_controller_create_project** - -- HTTP Method: POST -- Endpoint: /projects/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateProjectDto](/src/testsdk/models/README.md#createprojectdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'id_organization': 'id_organization', - 'name': 'name' -} -results = sdk.projects.projects_controller_create_project(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **field_mapping_controller_get_entities** - -- HTTP Method: GET -- Endpoint: /field-mapping/entities - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_entities() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_attributes** - -- HTTP Method: GET -- Endpoint: /field-mapping/attribute - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_attributes() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_values** - -- HTTP Method: GET -- Endpoint: /field-mapping/value - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_values() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_define_target_field** - -- HTTP Method: POST -- Endpoint: /field-mapping/define - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [DefineTargetFieldDto](/src/testsdk/models/README.md#definetargetfielddto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'data_type': 'data_type', - 'description': 'description', - 'name': 'name', - 'object_type_owner': {} -} -results = sdk.field_mapping.field_mapping_controller_define_target_field(request_input = request_body) - -pprint(vars(results)) - -``` - -### **field_mapping_controller_map_field_to_provider** - -- HTTP Method: POST -- Endpoint: /field-mapping/map - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [MapFieldToProviderDto](/src/testsdk/models/README.md#mapfieldtoproviderdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'attributeId': 'attributeId', - 'linked_user_id': 'linked_user_id', - 'source_custom_field_id': 'source_custom_field_id', - 'source_provider': 'source_provider' -} -results = sdk.field_mapping.field_mapping_controller_map_field_to_provider(request_input = request_body) - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_custom_properties** - -- HTTP Method: GET -- Endpoint: /field-mapping/properties - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| linked_user_id | str | Required | | -| provider_id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_custom_properties( - linked_user_id = 'linkedUserId', - provider_id = 'providerId' -) - -pprint(vars(results)) - -``` - - -### **events_controller_get_events** - -- HTTP Method: GET -- Endpoint: /events - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.events.events_controller_get_events() - -pprint(vars(results)) - -``` - - -### **magic_link_controller_create_link** - -- HTTP Method: POST -- Endpoint: /magic-link/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateMagicLinkDto](/src/testsdk/models/README.md#createmagiclinkdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'alias': 'alias', - 'email': 'email', - 'id_project': 'id_project', - 'linked_user_origin_id': 'linked_user_origin_id' -} -results = sdk.magic_link.magic_link_controller_create_link(request_input = request_body) - -pprint(vars(results)) - -``` - -### **magic_link_controller_get_magic_links** - -- HTTP Method: GET -- Endpoint: /magic-link - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.magic_link.magic_link_controller_get_magic_links() - -pprint(vars(results)) - -``` - -### **magic_link_controller_get_magic_link** - -- HTTP Method: GET -- Endpoint: /magic-link/single - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.magic_link.magic_link_controller_get_magic_link(id = 'id') - -pprint(vars(results)) - -``` - - -### **passthrough_controller_passthrough_request** - -- HTTP Method: POST -- Endpoint: /passthrough - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| request_input | [PassThroughRequestDto](/src/testsdk/models/README.md#passthroughrequestdto) | Required | Request body. | - -**Return Type** - -[PassThroughResponse](/src/testsdk/models/README.md#passthroughresponse) - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'data': {}, - 'headers_': {}, - 'method': 'POST', - 'path': 'path' -} -results = sdk.passthrough.passthrough_controller_passthrough_request( - request_input = request_body, - integration_id = 'integrationId', - linked_user_id = 'linkedUserId' -) - -pprint(vars(results)) - -``` - - -### **contact_controller_add_contacts** - -- HTTP Method: POST -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| remote_data | bool | Optional | | -| request_input | [ContactControllerAddContactsRequest](/src/testsdk/models/README.md#contactcontrolleraddcontactsrequest) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = [{},{}] -results = sdk.crm_contact.contact_controller_add_contacts( - request_input = request_body, - integration_id = 'integrationId', - linked_user_id = 'linkedUserId', - remote_data = True -) - -pprint(vars(results)) - -``` - -### **contact_controller_get_contacts** - -- HTTP Method: GET -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| remote_data | bool | Optional | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_get_contacts( - integration_id = 'integrationId', - linked_user_id = 'linkedUserId', - remote_data = True -) - -pprint(vars(results)) - -``` - -### **contact_controller_update_contact** - -- HTTP Method: PATCH -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_update_contact(id = 'id') - -pprint(vars(results)) - -``` - -### **contact_controller_get_contact** - -- HTTP Method: GET -- Endpoint: /crm/contact/{id} - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | -| remote_data | bool | Optional | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_get_contact( - id = 'id', - remote_data = True -) - -pprint(vars(results)) - -``` - - - - - -## License - -License: MIT. See license in LICENSE. diff --git a/packages/sdk/output/python/examples/README.md b/packages/sdk/output/python/examples/README.md deleted file mode 100644 index 20c965436..000000000 --- a/packages/sdk/output/python/examples/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# testsdk-example -A basic example of how to use the testsdk package. - -## Installation - -If `testsdk` is published to pypi: -```sh -pip install testsdk==1.0.0 -``` - -In the event `testsdk` is not published to pypi, you can install it locally by running the following command in the example folder: -```sh -. ./install.sh -``` - -This will create and start a virtual environment and install the package locally in it. - -To close the virtual environment run: -```sh -deactivate -``` - -To re-activate the virtual environment once it is installed run: -```sh -source .venv/bin/activate -``` - -## Usage - -To run the example, run the following command in the examples folder: -```sh -python sample.py -``` diff --git a/packages/sdk/output/python/examples/install.sh b/packages/sdk/output/python/examples/install.sh deleted file mode 100644 index ceb9a8553..000000000 --- a/packages/sdk/output/python/examples/install.sh +++ /dev/null @@ -1,5 +0,0 @@ -python -m venv .venv -source .venv/bin/activate -pip install build -python -m build --outdir dist ../ -pip install dist/testsdk-1.0.0-py3-none-any.whl --force-reinstall diff --git a/packages/sdk/output/python/examples/install_py3.sh b/packages/sdk/output/python/examples/install_py3.sh deleted file mode 100644 index 318710572..000000000 --- a/packages/sdk/output/python/examples/install_py3.sh +++ /dev/null @@ -1,5 +0,0 @@ -python3 -m venv .venv -source .venv/bin/activate -pip3 install build -python3 -m build --outdir dist ../ -pip3 install dist/testsdk-1.0.0-py3-none-any.whl --force-reinstall \ No newline at end of file diff --git a/packages/sdk/output/python/examples/sample.py b/packages/sdk/output/python/examples/sample.py deleted file mode 100644 index 66ebd169a..000000000 --- a/packages/sdk/output/python/examples/sample.py +++ /dev/null @@ -1,10 +0,0 @@ -from os import getenv -from pprint import pprint -from testsdk import Testsdk - -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) - -results = sdk.main.app_controller_get_hello() - -pprint(vars(results)) diff --git a/packages/sdk/output/python/install.sh b/packages/sdk/output/python/install.sh deleted file mode 100644 index 6243b8345..000000000 --- a/packages/sdk/output/python/install.sh +++ /dev/null @@ -1,3 +0,0 @@ -pip3 install -r requirements.txt -pip3 install -e src/testsdk/ -python3 -m unittest discover -p "test*.py" diff --git a/packages/sdk/output/python/pyproject.toml b/packages/sdk/output/python/pyproject.toml deleted file mode 100644 index 52beffe97..000000000 --- a/packages/sdk/output/python/pyproject.toml +++ /dev/null @@ -1,21 +0,0 @@ -[build-system] -requires = ["setuptools>=61.0"] -build-backend = "setuptools.build_meta" - -[project] -name = "testsdk" -version = "1.0.0" -license = { text = "MIT" } -description = """The Panora API description""" -readme = "README.md" -requires-python = ">=3.7" -dependencies = [ - "requests", - "http-exceptions" -] - -[project.optional-dependencies] -test = [ - "pytest", - "responses" -] diff --git a/packages/sdk/output/python/requirements.txt b/packages/sdk/output/python/requirements.txt deleted file mode 100644 index 47d00c4d1..000000000 --- a/packages/sdk/output/python/requirements.txt +++ /dev/null @@ -1,4 +0,0 @@ -requests -http-exceptions -pytest -responses \ No newline at end of file diff --git a/packages/sdk/output/python/src/testsdk/README.md b/packages/sdk/output/python/src/testsdk/README.md deleted file mode 100644 index 776b5bcc0..000000000 --- a/packages/sdk/output/python/src/testsdk/README.md +++ /dev/null @@ -1,1232 +0,0 @@ -# Testsdk Python SDK 1.0.0 -A Python SDK for Testsdk. - -The Panora API description - -- API version: 1.0.0 -- SDK version: 1.0.0 - -## Table of Contents -- [Requirements](#requirements) -- [Installation](#installation) - - [Dependencies](#dependencies) -- [Authentication](#authentication) - - [Access Token Authentication](#bearer-authentication) -- [API Endpoint Services](#api-endpoint-services) -- [API Models](#api-models) -- [Testing](#testing) -- [Configuration](#configuration) -- [Sample Usage](#sample-usage) -- [Testsdk Services](#testsdk-services) -- [License](#license) - -## Installation -```bash -pip install testsdk -``` - -### Dependencies - -This SDK uses the following dependencies: -- requests 2.28.1 -- http-exceptions 0.2.10 -- pytest 7.1.2 -- responses 0.21.0 - -## Authentication - -To see whether an endpoint needs a specific type of authentication check the endpoint's documentation. - -### Access Token Authentication -The Testsdk API uses bearer tokens as a form of authentication.You can set the bearer token when initializing the SDK through the constructor: - -```py -sdk = Testsdk('YOUR_BEARER_TOKEN') -``` - -Or through the `set_access_token` method: -```py -sdk = Testsdk() -sdk.set_access_token('YOUR_BEARER_TOKEN') -``` - -You can also set it for each service individually: -```py -sdk = Testsdk() -sdk.main.set_access_token('YOUR_BEARER_TOKEN') -``` - -## API Endpoint Services - -All URIs are relative to http://api.example.com. - -Click the service name for a full list of the service methods. - -| Service | -| :------ | -|[Main](./services/README.md#main)| -|[Auth](./services/README.md#auth)| -|[Connections](./services/README.md#connections)| -|[Webhook](./services/README.md#webhook)| -|[LinkedUsers](./services/README.md#linkedusers)| -|[Organisations](./services/README.md#organisations)| -|[Projects](./services/README.md#projects)| -|[FieldMapping](./services/README.md#fieldmapping)| -|[Events](./services/README.md#events)| -|[MagicLink](./services/README.md#magiclink)| -|[Passthrough](./services/README.md#passthrough)| -|[CrmContact](./services/README.md#crmcontact)| - -## API Models -[A list documenting all API models for this SDK](./models/README.md#testsdk-models). - -## Testing - -Run unit tests with this command: - -```sh -python -m unittest discover -p "test*.py" -``` - -## Sample Usage - -```py -from os import getenv -from pprint import pprint -from testsdk import Testsdk - -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) - -results = sdk.main.app_controller_get_hello() - -pprint(vars(results)) -``` - - -# Testsdk Services -A list of all services and services methods. -- Services - - - [Main](#main) - - - [Auth](#auth) - - - [Connections](#connections) - - - [Webhook](#webhook) - - - [LinkedUsers](#linkedusers) - - - [Organisations](#organisations) - - - [Projects](#projects) - - - [FieldMapping](#fieldmapping) - - - [Events](#events) - - - [MagicLink](#magiclink) - - - [Passthrough](#passthrough) - - - [CrmContact](#crmcontact) -- [All Methods](#all-methods) - - -## Main - -| Method | Description| -| :-------- | :----------| -| [app_controller_get_hello](#app_controller_get_hello) | | - - -## Auth - -| Method | Description| -| :-------- | :----------| -| [auth_controller_register_user](#auth_controller_register_user) | | -| [auth_controller_login](#auth_controller_login) | | -| [auth_controller_users](#auth_controller_users) | | -| [auth_controller_api_keys](#auth_controller_api_keys) | | -| [auth_controller_generate_api_key](#auth_controller_generate_api_key) | | - - -## Connections - -| Method | Description| -| :-------- | :----------| -| [connections_controller_handle_callback](#connections_controller_handle_callback) | | -| [connections_controller_get_connections](#connections_controller_get_connections) | | - - -## Webhook - -| Method | Description| -| :-------- | :----------| -| [webhook_controller_add_webhook](#webhook_controller_add_webhook) | | -| [webhook_controller_get_webhooks](#webhook_controller_get_webhooks) | | -| [webhook_controller_update_webhook_status](#webhook_controller_update_webhook_status) | | - - -## LinkedUsers - -| Method | Description| -| :-------- | :----------| -| [linked_users_controller_add_linked_user](#linked_users_controller_add_linked_user) | | -| [linked_users_controller_get_linked_users](#linked_users_controller_get_linked_users) | | -| [linked_users_controller_get_linked_user](#linked_users_controller_get_linked_user) | | - - -## Organisations - -| Method | Description| -| :-------- | :----------| -| [organisations_controller_get_oragnisations](#organisations_controller_get_oragnisations) | | -| [organisations_controller_create_org](#organisations_controller_create_org) | | - - -## Projects - -| Method | Description| -| :-------- | :----------| -| [projects_controller_get_projects](#projects_controller_get_projects) | | -| [projects_controller_create_project](#projects_controller_create_project) | | - - -## FieldMapping - -| Method | Description| -| :-------- | :----------| -| [field_mapping_controller_get_entities](#field_mapping_controller_get_entities) | | -| [field_mapping_controller_get_attributes](#field_mapping_controller_get_attributes) | | -| [field_mapping_controller_get_values](#field_mapping_controller_get_values) | | -| [field_mapping_controller_define_target_field](#field_mapping_controller_define_target_field) | | -| [field_mapping_controller_map_field_to_provider](#field_mapping_controller_map_field_to_provider) | | -| [field_mapping_controller_get_custom_properties](#field_mapping_controller_get_custom_properties) | | - - -## Events - -| Method | Description| -| :-------- | :----------| -| [events_controller_get_events](#events_controller_get_events) | | - - -## MagicLink - -| Method | Description| -| :-------- | :----------| -| [magic_link_controller_create_link](#magic_link_controller_create_link) | | -| [magic_link_controller_get_magic_links](#magic_link_controller_get_magic_links) | | -| [magic_link_controller_get_magic_link](#magic_link_controller_get_magic_link) | | - - -## Passthrough - -| Method | Description| -| :-------- | :----------| -| [passthrough_controller_passthrough_request](#passthrough_controller_passthrough_request) | | - - -## CrmContact - -| Method | Description| -| :-------- | :----------| -| [contact_controller_add_contacts](#contact_controller_add_contacts) | | -| [contact_controller_get_contacts](#contact_controller_get_contacts) | | -| [contact_controller_update_contact](#contact_controller_update_contact) | | -| [contact_controller_get_contact](#contact_controller_get_contact) | | - - - - -## All Methods - - -### **app_controller_get_hello** - -- HTTP Method: GET -- Endpoint: / - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.main.app_controller_get_hello() - -pprint(vars(results)) - -``` - - -### **auth_controller_register_user** - -- HTTP Method: POST -- Endpoint: /auth/register - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateUserDto](/src/testsdk/models/README.md#createuserdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'email': 'email', - 'first_name': 'first_name', - 'last_name': 'last_name', - 'password_hash': 'password_hash' -} -results = sdk.auth.auth_controller_register_user(request_input = request_body) - -pprint(vars(results)) - -``` - -### **auth_controller_login** - -- HTTP Method: POST -- Endpoint: /auth/login - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [LoginCredentials](/src/testsdk/models/README.md#logincredentials) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'email': 'email', - 'id_user': 'id_user', - 'password_hash': 'password_hash' -} -results = sdk.auth.auth_controller_login(request_input = request_body) - -pprint(vars(results)) - -``` - -### **auth_controller_users** - -- HTTP Method: GET -- Endpoint: /auth/users - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.auth.auth_controller_users() - -pprint(vars(results)) - -``` - -### **auth_controller_api_keys** - -- HTTP Method: GET -- Endpoint: /auth/api-keys - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.auth.auth_controller_api_keys() - -pprint(vars(results)) - -``` - -### **auth_controller_generate_api_key** - -- HTTP Method: POST -- Endpoint: /auth/generate-apikey - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | object | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = {} -results = sdk.auth.auth_controller_generate_api_key(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **connections_controller_handle_callback** - -- HTTP Method: GET -- Endpoint: /connections/oauth/callback - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| state | str | Required | | -| code | str | Required | | -| location | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.connections.connections_controller_handle_callback( - state = 'state', - code = 'code', - location = 'location' -) - -pprint(vars(results)) - -``` - -### **connections_controller_get_connections** - -- HTTP Method: GET -- Endpoint: /connections - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.connections.connections_controller_get_connections() - -pprint(vars(results)) - -``` - - -### **webhook_controller_add_webhook** - -- HTTP Method: POST -- Endpoint: /webhook - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [WebhookDto](/src/testsdk/models/README.md#webhookdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'description': 'description', - 'id_project': 'id_project', - 'scope': 'scope', - 'url': 'url' -} -results = sdk.webhook.webhook_controller_add_webhook(request_input = request_body) - -pprint(vars(results)) - -``` - -### **webhook_controller_get_webhooks** - -- HTTP Method: GET -- Endpoint: /webhook - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.webhook.webhook_controller_get_webhooks() - -pprint(vars(results)) - -``` - -### **webhook_controller_update_webhook_status** - -- HTTP Method: PUT -- Endpoint: /webhook/{id} - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.webhook.webhook_controller_update_webhook_status(id = 'id') - -pprint(vars(results)) - -``` - - -### **linked_users_controller_add_linked_user** - -- HTTP Method: POST -- Endpoint: /linked-users/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateLinkedUserDto](/src/testsdk/models/README.md#createlinkeduserdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'alias': 'alias', - 'id_project': 'id_project', - 'linked_user_origin_id': 'linked_user_origin_id' -} -results = sdk.linked_users.linked_users_controller_add_linked_user(request_input = request_body) - -pprint(vars(results)) - -``` - -### **linked_users_controller_get_linked_users** - -- HTTP Method: GET -- Endpoint: /linked-users - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.linked_users.linked_users_controller_get_linked_users() - -pprint(vars(results)) - -``` - -### **linked_users_controller_get_linked_user** - -- HTTP Method: GET -- Endpoint: /linked-users/single - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.linked_users.linked_users_controller_get_linked_user(id = 'id') - -pprint(vars(results)) - -``` - - -### **organisations_controller_get_oragnisations** - -- HTTP Method: GET -- Endpoint: /organisations - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.organisations.organisations_controller_get_oragnisations() - -pprint(vars(results)) - -``` - -### **organisations_controller_create_org** - -- HTTP Method: POST -- Endpoint: /organisations/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateOrganizationDto](/src/testsdk/models/README.md#createorganizationdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'name': 'name', - 'stripe_customer_id': 'stripe_customer_id' -} -results = sdk.organisations.organisations_controller_create_org(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **projects_controller_get_projects** - -- HTTP Method: GET -- Endpoint: /projects - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.projects.projects_controller_get_projects() - -pprint(vars(results)) - -``` - -### **projects_controller_create_project** - -- HTTP Method: POST -- Endpoint: /projects/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateProjectDto](/src/testsdk/models/README.md#createprojectdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'id_organization': 'id_organization', - 'name': 'name' -} -results = sdk.projects.projects_controller_create_project(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **field_mapping_controller_get_entities** - -- HTTP Method: GET -- Endpoint: /field-mapping/entities - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_entities() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_attributes** - -- HTTP Method: GET -- Endpoint: /field-mapping/attribute - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_attributes() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_values** - -- HTTP Method: GET -- Endpoint: /field-mapping/value - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_values() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_define_target_field** - -- HTTP Method: POST -- Endpoint: /field-mapping/define - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [DefineTargetFieldDto](/src/testsdk/models/README.md#definetargetfielddto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'data_type': 'data_type', - 'description': 'description', - 'name': 'name', - 'object_type_owner': {} -} -results = sdk.field_mapping.field_mapping_controller_define_target_field(request_input = request_body) - -pprint(vars(results)) - -``` - -### **field_mapping_controller_map_field_to_provider** - -- HTTP Method: POST -- Endpoint: /field-mapping/map - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [MapFieldToProviderDto](/src/testsdk/models/README.md#mapfieldtoproviderdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'attributeId': 'attributeId', - 'linked_user_id': 'linked_user_id', - 'source_custom_field_id': 'source_custom_field_id', - 'source_provider': 'source_provider' -} -results = sdk.field_mapping.field_mapping_controller_map_field_to_provider(request_input = request_body) - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_custom_properties** - -- HTTP Method: GET -- Endpoint: /field-mapping/properties - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| linked_user_id | str | Required | | -| provider_id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_custom_properties( - linked_user_id = 'linkedUserId', - provider_id = 'providerId' -) - -pprint(vars(results)) - -``` - - -### **events_controller_get_events** - -- HTTP Method: GET -- Endpoint: /events - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.events.events_controller_get_events() - -pprint(vars(results)) - -``` - - -### **magic_link_controller_create_link** - -- HTTP Method: POST -- Endpoint: /magic-link/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateMagicLinkDto](/src/testsdk/models/README.md#createmagiclinkdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'alias': 'alias', - 'email': 'email', - 'id_project': 'id_project', - 'linked_user_origin_id': 'linked_user_origin_id' -} -results = sdk.magic_link.magic_link_controller_create_link(request_input = request_body) - -pprint(vars(results)) - -``` - -### **magic_link_controller_get_magic_links** - -- HTTP Method: GET -- Endpoint: /magic-link - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.magic_link.magic_link_controller_get_magic_links() - -pprint(vars(results)) - -``` - -### **magic_link_controller_get_magic_link** - -- HTTP Method: GET -- Endpoint: /magic-link/single - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.magic_link.magic_link_controller_get_magic_link(id = 'id') - -pprint(vars(results)) - -``` - - -### **passthrough_controller_passthrough_request** - -- HTTP Method: POST -- Endpoint: /passthrough - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| request_input | [PassThroughRequestDto](/src/testsdk/models/README.md#passthroughrequestdto) | Required | Request body. | - -**Return Type** - -[PassThroughResponse](/src/testsdk/models/README.md#passthroughresponse) - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'data': {}, - 'headers_': {}, - 'method': 'POST', - 'path': 'path' -} -results = sdk.passthrough.passthrough_controller_passthrough_request( - request_input = request_body, - integration_id = 'integrationId', - linked_user_id = 'linkedUserId' -) - -pprint(vars(results)) - -``` - - -### **contact_controller_add_contacts** - -- HTTP Method: POST -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| remote_data | bool | Optional | | -| request_input | [ContactControllerAddContactsRequest](/src/testsdk/models/README.md#contactcontrolleraddcontactsrequest) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = [{},{}] -results = sdk.crm_contact.contact_controller_add_contacts( - request_input = request_body, - integration_id = 'integrationId', - linked_user_id = 'linkedUserId', - remote_data = True -) - -pprint(vars(results)) - -``` - -### **contact_controller_get_contacts** - -- HTTP Method: GET -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| remote_data | bool | Optional | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_get_contacts( - integration_id = 'integrationId', - linked_user_id = 'linkedUserId', - remote_data = True -) - -pprint(vars(results)) - -``` - -### **contact_controller_update_contact** - -- HTTP Method: PATCH -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_update_contact(id = 'id') - -pprint(vars(results)) - -``` - -### **contact_controller_get_contact** - -- HTTP Method: GET -- Endpoint: /crm/contact/{id} - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | -| remote_data | bool | Optional | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_get_contact( - id = 'id', - remote_data = True -) - -pprint(vars(results)) - -``` - - - - - -## License - -License: MIT. See license in LICENSE. diff --git a/packages/sdk/output/python/src/testsdk/__init__.py b/packages/sdk/output/python/src/testsdk/__init__.py deleted file mode 100644 index 7c75fc727..000000000 --- a/packages/sdk/output/python/src/testsdk/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from .sdk import Testsdk -from .net.environment import Environment diff --git a/packages/sdk/output/python/src/testsdk/hooks/__init__.py b/packages/sdk/output/python/src/testsdk/hooks/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/sdk/output/python/src/testsdk/hooks/hook.py b/packages/sdk/output/python/src/testsdk/hooks/hook.py deleted file mode 100644 index 8b1378917..000000000 --- a/packages/sdk/output/python/src/testsdk/hooks/hook.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/packages/sdk/output/python/src/testsdk/models/ContactControllerAddContactsRequest.py b/packages/sdk/output/python/src/testsdk/models/ContactControllerAddContactsRequest.py deleted file mode 100644 index d97225297..000000000 --- a/packages/sdk/output/python/src/testsdk/models/ContactControllerAddContactsRequest.py +++ /dev/null @@ -1,5 +0,0 @@ -from __future__ import annotations -from typing import List -from .UnifiedContactInput import UnifiedContactInput - -ContactControllerAddContactsRequest = List[UnifiedContactInput] diff --git a/packages/sdk/output/python/src/testsdk/models/CreateLinkedUserDto.py b/packages/sdk/output/python/src/testsdk/models/CreateLinkedUserDto.py deleted file mode 100644 index 5efed374b..000000000 --- a/packages/sdk/output/python/src/testsdk/models/CreateLinkedUserDto.py +++ /dev/null @@ -1,18 +0,0 @@ -from .base import BaseModel - - -class CreateLinkedUserDto(BaseModel): - def __init__( - self, id_project: str, alias: str, linked_user_origin_id: str, **kwargs - ): - """ - Initialize CreateLinkedUserDto - Parameters: - ---------- - id_project: str - alias: str - linked_user_origin_id: str - """ - self.id_project = id_project - self.alias = alias - self.linked_user_origin_id = linked_user_origin_id diff --git a/packages/sdk/output/python/src/testsdk/models/CreateMagicLinkDto.py b/packages/sdk/output/python/src/testsdk/models/CreateMagicLinkDto.py deleted file mode 100644 index 5b283df6b..000000000 --- a/packages/sdk/output/python/src/testsdk/models/CreateMagicLinkDto.py +++ /dev/null @@ -1,25 +0,0 @@ -from .base import BaseModel - - -class CreateMagicLinkDto(BaseModel): - def __init__( - self, - id_project: str, - alias: str, - email: str, - linked_user_origin_id: str, - **kwargs, - ): - """ - Initialize CreateMagicLinkDto - Parameters: - ---------- - id_project: str - alias: str - email: str - linked_user_origin_id: str - """ - self.id_project = id_project - self.alias = alias - self.email = email - self.linked_user_origin_id = linked_user_origin_id diff --git a/packages/sdk/output/python/src/testsdk/models/CreateOrganizationDto.py b/packages/sdk/output/python/src/testsdk/models/CreateOrganizationDto.py deleted file mode 100644 index dd13d6e6d..000000000 --- a/packages/sdk/output/python/src/testsdk/models/CreateOrganizationDto.py +++ /dev/null @@ -1,14 +0,0 @@ -from .base import BaseModel - - -class CreateOrganizationDto(BaseModel): - def __init__(self, stripe_customer_id: str, name: str, **kwargs): - """ - Initialize CreateOrganizationDto - Parameters: - ---------- - stripe_customer_id: str - name: str - """ - self.stripe_customer_id = stripe_customer_id - self.name = name diff --git a/packages/sdk/output/python/src/testsdk/models/CreateProjectDto.py b/packages/sdk/output/python/src/testsdk/models/CreateProjectDto.py deleted file mode 100644 index e3a90e626..000000000 --- a/packages/sdk/output/python/src/testsdk/models/CreateProjectDto.py +++ /dev/null @@ -1,14 +0,0 @@ -from .base import BaseModel - - -class CreateProjectDto(BaseModel): - def __init__(self, id_organization: str, name: str, **kwargs): - """ - Initialize CreateProjectDto - Parameters: - ---------- - id_organization: str - name: str - """ - self.id_organization = id_organization - self.name = name diff --git a/packages/sdk/output/python/src/testsdk/models/CreateUserDto.py b/packages/sdk/output/python/src/testsdk/models/CreateUserDto.py deleted file mode 100644 index 95136a327..000000000 --- a/packages/sdk/output/python/src/testsdk/models/CreateUserDto.py +++ /dev/null @@ -1,20 +0,0 @@ -from .base import BaseModel - - -class CreateUserDto(BaseModel): - def __init__( - self, password_hash: str, email: str, last_name: str, first_name: str, **kwargs - ): - """ - Initialize CreateUserDto - Parameters: - ---------- - password_hash: str - email: str - last_name: str - first_name: str - """ - self.password_hash = password_hash - self.email = email - self.last_name = last_name - self.first_name = first_name diff --git a/packages/sdk/output/python/src/testsdk/models/DefineTargetFieldDto.py b/packages/sdk/output/python/src/testsdk/models/DefineTargetFieldDto.py deleted file mode 100644 index cea2f9abb..000000000 --- a/packages/sdk/output/python/src/testsdk/models/DefineTargetFieldDto.py +++ /dev/null @@ -1,30 +0,0 @@ -from .base import BaseModel - - -class ObjectTypeOwner(dict): - def __init__(self, *args, **kwargs): - dict.__init__(self, *args, **kwargs) - - -class DefineTargetFieldDto(BaseModel): - def __init__( - self, - data_type: str, - description: str, - name: str, - object_type_owner: ObjectTypeOwner, - **kwargs, - ): - """ - Initialize DefineTargetFieldDto - Parameters: - ---------- - data_type: str - description: str - name: str - object_type_owner: ObjectTypeOwner - """ - self.data_type = data_type - self.description = description - self.name = name - self.object_type_owner = object_type_owner diff --git a/packages/sdk/output/python/src/testsdk/models/LoginCredentials.py b/packages/sdk/output/python/src/testsdk/models/LoginCredentials.py deleted file mode 100644 index eed55b529..000000000 --- a/packages/sdk/output/python/src/testsdk/models/LoginCredentials.py +++ /dev/null @@ -1,20 +0,0 @@ -from .base import BaseModel - - -class LoginCredentials(BaseModel): - def __init__( - self, password_hash: str, id_user: str = None, email: str = None, **kwargs - ): - """ - Initialize LoginCredentials - Parameters: - ---------- - password_hash: str - id_user: str - email: str - """ - self.password_hash = password_hash - if id_user is not None: - self.id_user = id_user - if email is not None: - self.email = email diff --git a/packages/sdk/output/python/src/testsdk/models/MapFieldToProviderDto.py b/packages/sdk/output/python/src/testsdk/models/MapFieldToProviderDto.py deleted file mode 100644 index 3617e2d54..000000000 --- a/packages/sdk/output/python/src/testsdk/models/MapFieldToProviderDto.py +++ /dev/null @@ -1,25 +0,0 @@ -from .base import BaseModel - - -class MapFieldToProviderDto(BaseModel): - def __init__( - self, - linked_user_id: str, - source_provider: str, - source_custom_field_id: str, - attributeId: str, - **kwargs, - ): - """ - Initialize MapFieldToProviderDto - Parameters: - ---------- - linked_user_id: str - source_provider: str - source_custom_field_id: str - attributeId: str - """ - self.linked_user_id = linked_user_id - self.source_provider = source_provider - self.source_custom_field_id = source_custom_field_id - self.attributeId = attributeId diff --git a/packages/sdk/output/python/src/testsdk/models/PassThroughRequestDto.py b/packages/sdk/output/python/src/testsdk/models/PassThroughRequestDto.py deleted file mode 100644 index 846406a59..000000000 --- a/packages/sdk/output/python/src/testsdk/models/PassThroughRequestDto.py +++ /dev/null @@ -1,49 +0,0 @@ -from .base import BaseModel -from enum import Enum - - -class Method(Enum): - GET = "GET" - POST = "POST" - PATCH = "PATCH" - DELETE = "DELETE" - PUT = "PUT" - - def list(): - return list(map(lambda x: x.value, Method._member_map_.values())) - - -class Data(dict): - def __init__(self, *args, **kwargs): - dict.__init__(self, *args, **kwargs) - - -class Headers(dict): - def __init__(self, *args, **kwargs): - dict.__init__(self, *args, **kwargs) - - -class PassThroughRequestDto(BaseModel): - def __init__( - self, - path: str, - method: Method, - data: Data = None, - headers_: Headers = None, - **kwargs, - ): - """ - Initialize PassThroughRequestDto - Parameters: - ---------- - path: str - method: str - data: Data - headers_: Headers - """ - self.path = path - self.method = self._enum_matching(method, Method.list(), "method") - if data is not None: - self.data = data - if headers_ is not None: - self.headers_ = headers_ diff --git a/packages/sdk/output/python/src/testsdk/models/PassThroughResponse.py b/packages/sdk/output/python/src/testsdk/models/PassThroughResponse.py deleted file mode 100644 index a98099d15..000000000 --- a/packages/sdk/output/python/src/testsdk/models/PassThroughResponse.py +++ /dev/null @@ -1,21 +0,0 @@ -from .base import BaseModel - - -class Data(dict): - def __init__(self, *args, **kwargs): - dict.__init__(self, *args, **kwargs) - - -class PassThroughResponse(BaseModel): - def __init__(self, data: Data, status: float, url: str, **kwargs): - """ - Initialize PassThroughResponse - Parameters: - ---------- - data: Data - status: float - url: str - """ - self.data = data - self.status = status - self.url = url diff --git a/packages/sdk/output/python/src/testsdk/models/README.md b/packages/sdk/output/python/src/testsdk/models/README.md deleted file mode 100644 index 345d84cfc..000000000 --- a/packages/sdk/output/python/src/testsdk/models/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# Testsdk Models - -A list of all models. -- [ContactControllerAddContactsRequest](#contactcontrolleraddcontactsrequest) -- [CreateUserDto](#createuserdto) -- [LoginCredentials](#logincredentials) -- [WebhookDto](#webhookdto) -- [CreateLinkedUserDto](#createlinkeduserdto) -- [CreateOrganizationDto](#createorganizationdto) -- [CreateProjectDto](#createprojectdto) -- [DefineTargetFieldDto](#definetargetfielddto) -- [MapFieldToProviderDto](#mapfieldtoproviderdto) -- [CreateMagicLinkDto](#createmagiclinkdto) -- [PassThroughRequestDto](#passthroughrequestdto) -- [PassThroughResponse](#passthroughresponse) -- [UnifiedContactInput](#unifiedcontactinput) - -## ContactControllerAddContactsRequest - -## CreateUserDto - -## LoginCredentials - -## WebhookDto - -## CreateLinkedUserDto - -## CreateOrganizationDto - -## CreateProjectDto - -## DefineTargetFieldDto - -## MapFieldToProviderDto - -## CreateMagicLinkDto - -## PassThroughRequestDto - -## PassThroughResponse - -## UnifiedContactInput - - - diff --git a/packages/sdk/output/python/src/testsdk/models/UnifiedContactInput.py b/packages/sdk/output/python/src/testsdk/models/UnifiedContactInput.py deleted file mode 100644 index fb17de04e..000000000 --- a/packages/sdk/output/python/src/testsdk/models/UnifiedContactInput.py +++ /dev/null @@ -1 +0,0 @@ -UnifiedContactInput = dict diff --git a/packages/sdk/output/python/src/testsdk/models/WebhookDto.py b/packages/sdk/output/python/src/testsdk/models/WebhookDto.py deleted file mode 100644 index 4e54a34da..000000000 --- a/packages/sdk/output/python/src/testsdk/models/WebhookDto.py +++ /dev/null @@ -1,21 +0,0 @@ -from .base import BaseModel - - -class WebhookDto(BaseModel): - def __init__( - self, scope: str, id_project: str, url: str, description: str = None, **kwargs - ): - """ - Initialize WebhookDto - Parameters: - ---------- - scope: str - id_project: str - url: str - description: str - """ - self.scope = scope - self.id_project = id_project - self.url = url - if description is not None: - self.description = description diff --git a/packages/sdk/output/python/src/testsdk/models/__init__.py b/packages/sdk/output/python/src/testsdk/models/__init__.py deleted file mode 100644 index 7efad7d36..000000000 --- a/packages/sdk/output/python/src/testsdk/models/__init__.py +++ /dev/null @@ -1,13 +0,0 @@ -from .ContactControllerAddContactsRequest import ContactControllerAddContactsRequest -from .CreateUserDto import CreateUserDto -from .LoginCredentials import LoginCredentials -from .WebhookDto import WebhookDto -from .CreateLinkedUserDto import CreateLinkedUserDto -from .CreateOrganizationDto import CreateOrganizationDto -from .CreateProjectDto import CreateProjectDto -from .DefineTargetFieldDto import DefineTargetFieldDto -from .MapFieldToProviderDto import MapFieldToProviderDto -from .CreateMagicLinkDto import CreateMagicLinkDto -from .PassThroughRequestDto import PassThroughRequestDto -from .PassThroughResponse import PassThroughResponse -from .UnifiedContactInput import UnifiedContactInput diff --git a/packages/sdk/output/python/src/testsdk/models/base.py b/packages/sdk/output/python/src/testsdk/models/base.py deleted file mode 100644 index 341c6a611..000000000 --- a/packages/sdk/output/python/src/testsdk/models/base.py +++ /dev/null @@ -1,60 +0,0 @@ -import re -from typing import List, Union -from enum import Enum - - -class BaseModel: - """ - A base class that all models in the SDK inherit from (expect for Enum models). - - Methods - ------- - _pattern_matching(cls, value: str, pattern: str, variable_name: str) -> str: - Checks if a value matches a regex pattern. - Returns the value if there's a match, otherwise throws an error. - _enum_matching(cls, value: Union[str,Enum], enum_values: List[str], variable_name: str) -> str: - Checks if a value (str or enum) matches the required enum values. - Returns the value if there's a match, otherwise throws an error. - _one_of(cls, required_array, all_array, functions_array, input_data): - Validates whether an input_data satisfies the oneOf requirements. - """ - - def __init__(self): - pass - - def _pattern_matching(cls, value: str, pattern: str, variable_name: str): - if re.match(r"{}".format(pattern), value): - return value - else: - raise ValueError(f"Invalid value for {variable_name}: must match {pattern}") - - def _enum_matching( - cls, value: Union[str, Enum], enum_values: List[str], variable_name: str - ): - str_value = value.value if isinstance(value, Enum) else value - if str_value in enum_values: - return value - else: - raise ValueError( - f"Invalid value for {variable_name}: must match one of {enum_values}" - ) - - @classmethod - def _one_of(cls, required_array, all_array, functions_array, input_data): - input_array = list(input_data.keys()) - for model, fields in required_array.items(): - input_copy = input_array.copy() - matches_required = True - for param in fields: - if param not in input_copy: - matches_required = False - break - input_copy.remove(param) - if matches_required: - matches_all = True - for input in input_copy: - if input not in all_array[model]: - matches_all = False - break - if matches_all: - return functions_array[model](input_data) diff --git a/packages/sdk/output/python/src/testsdk/net/__init__.py b/packages/sdk/output/python/src/testsdk/net/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/sdk/output/python/src/testsdk/net/environment.py b/packages/sdk/output/python/src/testsdk/net/environment.py deleted file mode 100644 index 834ae6561..000000000 --- a/packages/sdk/output/python/src/testsdk/net/environment.py +++ /dev/null @@ -1,11 +0,0 @@ -""" -An enum class containing all the possible environments that -a user can switch between in this SDK. -""" -from enum import Enum - - -class Environment(Enum): - """The environments available for this SDK""" - - DEFAULT = "http://api.example.com" diff --git a/packages/sdk/output/python/src/testsdk/net/http_client.py b/packages/sdk/output/python/src/testsdk/net/http_client.py deleted file mode 100644 index 869fd4f37..000000000 --- a/packages/sdk/output/python/src/testsdk/net/http_client.py +++ /dev/null @@ -1,275 +0,0 @@ -from time import sleep -import requests -from http_exceptions import HTTPException, client_exceptions, server_exceptions -from json import JSONDecodeError -from .http_content_types import multipart_form_data_request -from .utils import to_serialize, rename_reserved_keys, rename_to_reserved_keys - - -class HTTPClient: - """ - Provides functionality for invoking HTTP-based API calls to web services. - """ - - _retry_codes = [500, 503, 504] - """list[int]: A list of status codes that invoke a retry.""" - - _initial_delay = 150 - """int: The delay (in milliseconds) before performing a retry.""" - - _max_retries = 3 - """int: The maximum number of retries.""" - - def __init__(self, hook): - self._hook = hook - - def _make_http_request(self, method, endpoint_url, headers, body_input): - """ - Places API calls according to the HTTP method and content type. - - Parameters: - ---------- - method : str - The type of http call to perform - endpoint_url : url - The endpoint url to make the http call on - headers : dict - The http call's headers - body_input : Any - The request's body - """ - request_method = getattr(requests, method) - serialized_body = rename_to_reserved_keys(to_serialize(body_input)) - if "Content-type" in headers: - data_type, subtype = headers["Content-type"].split("/") - if data_type == "multipart": - return multipart_form_data_request( - method, endpoint_url, headers, serialized_body - ) - if data_type in ["text", "image"]: - return request_method( - endpoint_url, headers=headers, data=serialized_body - ) - if not serialized_body or method in {"get", "delete"}: - return request_method(endpoint_url, headers=headers) - return request_method(endpoint_url, headers=headers, json=serialized_body) - - def delete(self, endpoint_url: str, headers: dict, retry: bool = True): - """ - Places API DELETE request and handles errors - - Parameters: - ---------- - endpoint_url : str - The endpoint url to make the http call on - headers : dict - The http call's headers - retry : bool - A boolean representing wether to attempt a retry - """ - - response = self._make_http_request("delete", endpoint_url, headers, None) - if response.status_code in self._retry_codes and retry: - try_cnt = 1 - while ( - response.status_code in self._retry_codes - and try_cnt - 1 < self._max_retries - ): - sleep(self._initial_delay ** (try_cnt - 1) / 1000) - response = self._make_http_request( - "delete", endpoint_url, headers, None - ) - try_cnt += 1 - - return self._handle_response(response) - - def get(self, endpoint_url: str, headers: dict, retry: bool = True): - """ - Places an API GET request and handles errors - - Parameters: - ---------- - endpoint_url : str - The endpoint url to make the http call on - headers : dict - The http call's headers - retry : bool - A boolean representing wether to attempt a retry - """ - - response = self._make_http_request("get", endpoint_url, headers, None) - if response.status_code in self._retry_codes and retry: - try_cnt = 1 - while ( - response.status_code in self._retry_codes - and try_cnt - 1 < self._max_retries - ): - sleep(self._initial_delay ** (try_cnt - 1) / 1000) - response = self._make_http_request("get", endpoint_url, headers, None) - try_cnt += 1 - - return self._handle_response(response) - - def patch(self, endpoint_url: str, headers: dict, body_input, retry: bool = True): - """ - Places an API PATCH request and handles errors - - Parameters: - ---------- - endpoint_url : str - The endpoint url to make the http call on - headers : dict - The http call's headers - body_input: - The patch request body - retry : bool - A boolean representing wether to attempt a retry - """ - - response = self._make_http_request("patch", endpoint_url, headers, body_input) - if response.status_code in self._retry_codes and retry: - try_cnt = 1 - while ( - response.status_code in self._retry_codes - and try_cnt - 1 < self._max_retries - ): - sleep(self._initial_delay ** (try_cnt - 1) / 1000) - response = self._make_http_request( - "patch", endpoint_url, headers, body_input - ) - try_cnt += 1 - - return self._handle_response(response) - - def post(self, endpoint_url: str, headers: dict, body_input, retry: bool = True): - """ - Places an API POST request and handles errors - - Parameters: - ---------- - endpoint_url : str - The endpoint url to make the http call on - headers : dict - The http call's headers - body_input: - The post request body - retry : bool - A boolean representing wether to attempt a retry - """ - - response = self._make_http_request("post", endpoint_url, headers, body_input) - if response.status_code in self._retry_codes and retry: - try_cnt = 1 - while ( - response.status_code in self._retry_codes - and try_cnt - 1 < self._max_retries - ): - sleep(self._initial_delay ** (try_cnt - 1) / 1000) - response = self._make_http_request( - "post", endpoint_url, headers, body_input - ) - try_cnt += 1 - - return self._handle_response(response) - - def put(self, endpoint_url: str, headers: dict, body_input, retry: bool = True): - """ - Places an API PUT request and handles errors - - Parameters: - ---------- - endpoint_url : str - The endpoint url to make the http call on - headers : dict - The http call's headers - body_input: - The put request body - retry : bool - A boolean representing whether to attempt a retry - """ - - response = self._make_http_request("put", endpoint_url, headers, body_input) - if response.status_code in self._retry_codes and retry: - try_cnt = 1 - while ( - response.status_code in self._retry_codes - and try_cnt - 1 < self._max_retries - ): - sleep(self._initial_delay ** (try_cnt - 1) / 1000) - response = self._make_http_request( - "put", endpoint_url, headers, body_input - ) - try_cnt += 1 - - return self._handle_response(response) - - def _create_exception_message(self, response, header: str) -> str: - """ - Creates an exception message using a specific header - - Parameters: - ---------- - response: - Response data received from an http request - header : str - Header name for the created exception - """ - if header in response.headers: - return f"{response.text}, Headers {header}: {response.headers[header]}" - return response.text - - def _handle_response(self, response: dict): - """ - Handles a response from an API call - - Parameters: - ---------- - response: - Response data received from an http request - """ - if response.status_code >= 200 and response.status_code < 400: - try: - return rename_reserved_keys(response.json()) - except JSONDecodeError: - return response - else: - self._raise_from_status(response) - - def _raise_from_status(self, response) -> None: - """ - Raises exception based response status, with additional information appended if useful - - Parameters: - ---------- - response: - Response data received from an http request - """ - if response.status_code == 401: - raise client_exceptions.UnauthorizedException( - message=self._create_exception_message(response, "WWW-Authenticate") - ) - elif response.status_code == 405: - # this indicates a bug in the spec if it allows a method that the server rejects - raise client_exceptions.MethodNotAllowedException( - message=self._create_exception_message(response, "Allow") - ) - elif response.status_code == 407: - raise client_exceptions.ProxyAuthenticationRequiredException( - message=self._create_exception_message(response, "Proxy-Authenticate") - ) - elif response.status_code == 413: - raise client_exceptions.PayloadTooLargeException( - message=self._create_exception_message(response, "Retry-After") - ) - elif response.status_code == 429: - raise client_exceptions.TooManyRequestsException( - message=self._create_exception_message(response, "Retry-After") - ) - elif response.status_code == 503: - raise server_exceptions.ServiceUnavailableException( - message=self._create_exception_message(response, "Retry-After") - ) - else: - raise HTTPException.from_status_code(status_code=response.status_code)( - message=response.text - ) diff --git a/packages/sdk/output/python/src/testsdk/net/http_content_types.py b/packages/sdk/output/python/src/testsdk/net/http_content_types.py deleted file mode 100644 index 4b2b8f864..000000000 --- a/packages/sdk/output/python/src/testsdk/net/http_content_types.py +++ /dev/null @@ -1,42 +0,0 @@ -""" -Collection of API calls according to the HTTP method and content type. - -Functions: - multipart_form_data_request -""" -import requests -import io -from mimetypes import guess_type - - -def multipart_form_data_request(method, endpoint_url, headers, body_input): - """ - Places a multipart/formdata http request. - - Parameters: - ---------- - method : str - The type of http call to perform - endpoint_url : url - The endpoint url to make the http call on - headers : dict - The http call's headers - body_input : Any - The request's body - """ - data = {} - files = {} - request_method = getattr(requests, method) - del headers["Content-type"] - for key, value in body_input.items(): - if isinstance(value, (io.TextIOWrapper, io.BufferedIOBase)): - mime_type, encoding = guess_type(value.name) - file_tuple = ( - (value.name, value, mime_type) if mime_type else (value.name, value) - ) - files[key] = file_tuple - else: - data[key] = value - if files: - return request_method(endpoint_url, headers=headers, files=files, data=data) - return request_method(endpoint_url, headers=headers, data=data) diff --git a/packages/sdk/output/python/src/testsdk/net/query_serializer.py b/packages/sdk/output/python/src/testsdk/net/query_serializer.py deleted file mode 100644 index 093136d20..000000000 --- a/packages/sdk/output/python/src/testsdk/net/query_serializer.py +++ /dev/null @@ -1,80 +0,0 @@ -from typing import Any, Dict, List -from enum import Enum - -explode = bool - - -def simple(value: Any, explode: bool) -> str: - if value is None: - return "null" - - if isinstance(value, Enum): - return str(value.value) - - if isinstance(value, bool): - return str(value).lower() - - if isinstance(value, list): - serialized_list = [simple(item, explode) for item in value] - return ",".join(serialized_list) - - if isinstance(value, dict): - if explode: - # Serialize object with exploded format: "key=value,key2=value2" - return ",".join([f"{k}={simple(v, explode)}" for k, v in value.items()]) - else: - # Serialize object with non-exploded format: "key,value,key2,value2" - return ",".join( - [simple(item, explode) for sublist in value.items() for item in sublist] - ) - - return str(value) - - -def form(parameter_name: str, parameter_value: Any, explode: bool) -> str: - if isinstance(parameter_value, Enum): - return f"{parameter_name}=" + str(parameter_value.value) - - if isinstance(parameter_value, list): - return ( - "&".join([f"{parameter_name}={v}" for v in parameter_value]) - if explode - else f"{parameter_name}=" + ",".join([str(v) for v in parameter_value]) - ) - - if isinstance(parameter_value, dict): - if explode: - # Serialize object with exploded format: "key1=value1&key2=value2" - return "&".join([f"{k}={v}" for k, v in parameter_value.items()]) - else: - # Serialize object with non-exploded format: "key=key1,value1,key2,value2" - return f"{parameter_name}=" + ",".join( - [str(item) for sublist in parameter_value.items() for item in sublist] - ) - - return f"{parameter_name}=" + str(parameter_value) - - -style_methods = { - "simple": simple, - "form": form, -} - - -def serialize_query(parameter_style, explode, key: str, parameter_value: Any) -> str: - method = style_methods.get(parameter_style) - return method(key, parameter_value, explode) if method else "" - - -def serialize_path( - parameter_style, explode: bool, parameter_value: Any, parameter_key=None -): - method = style_methods.get(parameter_style) - if not method: - return "" - - # The `simple` and `label` styles do not require a `parameter_key` - if not parameter_key: - return method(parameter_value, explode) - else: - return method(parameter_key, parameter_value, explode) diff --git a/packages/sdk/output/python/src/testsdk/net/utils.py b/packages/sdk/output/python/src/testsdk/net/utils.py deleted file mode 100644 index e1d27fc28..000000000 --- a/packages/sdk/output/python/src/testsdk/net/utils.py +++ /dev/null @@ -1,65 +0,0 @@ -""" -Helper functions for http calls. - -Functions: - to_serialize -""" - -import io -from enum import Enum - - -def to_serialize(obj): - """ - Recursively converts objects into dictionaries. - - Parameters: - ---------- - obj: - The object to transform into a dictionary. - """ - result = {} - if not hasattr(obj, "__dict__") or isinstance( - obj, (io.TextIOWrapper, io.BufferedIOBase) - ): - return obj - iter_obj = obj.__dict__.items() if hasattr(obj, "__dict__") else obj.items() - for key, value in iter_obj: - if isinstance(value, (io.TextIOWrapper, io.BufferedIOBase)): - result[key] = value - elif isinstance(value, Enum): - result[key] = value.value - elif isinstance(value, (list, set, tuple)): - for i in range(len(value)): - value[i] = to_serialize(value[i]) - result[key] = value - elif hasattr(value, "__dict__"): - result[key] = to_serialize(value) - else: - result[key] = value - return result - - -response_mapper = {"headers": "headers_"} -request_mapper = {"headers_": "headers"} - - -def rename_keys(data, mapper): - if isinstance(data, dict): - new_data = {} - for key, value in data.items(): - new_key = mapper[key] if key in mapper else key - new_data[new_key] = rename_keys(value, mapper) - return new_data - elif isinstance(data, list): - return [rename_keys(item, mapper) for item in data] - else: - return data - - -def rename_reserved_keys(data): - return rename_keys(data, response_mapper) - - -def rename_to_reserved_keys(data): - return rename_keys(data, request_mapper) diff --git a/packages/sdk/output/python/src/testsdk/sdk.py b/packages/sdk/output/python/src/testsdk/sdk.py deleted file mode 100644 index 49efa070a..000000000 --- a/packages/sdk/output/python/src/testsdk/sdk.py +++ /dev/null @@ -1,118 +0,0 @@ -""" -Creates a Testsdk class. -Generates the main SDK with all available queries as attributes. - -Class: - Testsdk -""" -from .net.environment import Environment - -from .services.auth import Auth -from .services.connections import Connections -from .services.crm_contact import CrmContact -from .services.events import Events -from .services.field_mapping import FieldMapping -from .services.linked_users import LinkedUsers -from .services.magic_link import MagicLink -from .services.main import Main -from .services.organisations import Organisations -from .services.passthrough import Passthrough -from .services.projects import Projects -from .services.webhook import Webhook - - -class Testsdk: - """ - A class representing the full Testsdk SDK - - Attributes - ---------- - auth : Auth - connections : Connections - crm_contact : CrmContact - events : Events - field_mapping : FieldMapping - linked_users : LinkedUsers - magic_link : MagicLink - main : Main - organisations : Organisations - passthrough : Passthrough - projects : Projects - webhook : Webhook - - Methods - ------- - set_base_url(url: str) - Sets the end URL - set_access_token(access_token) - Set the access token - """ - - def __init__(self, access_token="", environment=Environment.DEFAULT) -> None: - """ - Initializes the Testsdk SDK class. - Parameters - ---------- - environment: str - The environment that the SDK is accessing - access_token : str - The access token - """ - self.auth = Auth(access_token) - self.connections = Connections(access_token) - self.crm_contact = CrmContact(access_token) - self.events = Events(access_token) - self.field_mapping = FieldMapping(access_token) - self.linked_users = LinkedUsers(access_token) - self.magic_link = MagicLink(access_token) - self.main = Main(access_token) - self.organisations = Organisations(access_token) - self.passthrough = Passthrough(access_token) - self.projects = Projects(access_token) - self.webhook = Webhook(access_token) - - self.set_base_url(environment.value) - - def set_base_url(self, url: str) -> None: - """ - Sets the end URL - - Parameters - ---------- - url: - The end URL - """ - self.auth.set_base_url(url) - self.connections.set_base_url(url) - self.crm_contact.set_base_url(url) - self.events.set_base_url(url) - self.field_mapping.set_base_url(url) - self.linked_users.set_base_url(url) - self.magic_link.set_base_url(url) - self.main.set_base_url(url) - self.organisations.set_base_url(url) - self.passthrough.set_base_url(url) - self.projects.set_base_url(url) - self.webhook.set_base_url(url) - - def set_access_token(self, token: str) -> None: - """ - Sets auth token key - - Parameters - ---------- - token: string - Auth token value - """ - self.auth.set_access_token(token) - self.connections.set_access_token(token) - self.crm_contact.set_access_token(token) - self.events.set_access_token(token) - self.field_mapping.set_access_token(token) - self.linked_users.set_access_token(token) - self.magic_link.set_access_token(token) - self.main.set_access_token(token) - self.organisations.set_access_token(token) - self.passthrough.set_access_token(token) - self.projects.set_access_token(token) - self.webhook.set_access_token(token) diff --git a/packages/sdk/output/python/src/testsdk/services/README.md b/packages/sdk/output/python/src/testsdk/services/README.md deleted file mode 100644 index 9978b3627..000000000 --- a/packages/sdk/output/python/src/testsdk/services/README.md +++ /dev/null @@ -1,1122 +0,0 @@ -# Testsdk Services -A list of all services and services methods. -- Services - - - [Main](#main) - - - [Auth](#auth) - - - [Connections](#connections) - - - [Webhook](#webhook) - - - [LinkedUsers](#linkedusers) - - - [Organisations](#organisations) - - - [Projects](#projects) - - - [FieldMapping](#fieldmapping) - - - [Events](#events) - - - [MagicLink](#magiclink) - - - [Passthrough](#passthrough) - - - [CrmContact](#crmcontact) -- [All Methods](#all-methods) - - -## Main - -| Method | Description| -| :-------- | :----------| -| [app_controller_get_hello](#app_controller_get_hello) | | - - -## Auth - -| Method | Description| -| :-------- | :----------| -| [auth_controller_register_user](#auth_controller_register_user) | | -| [auth_controller_login](#auth_controller_login) | | -| [auth_controller_users](#auth_controller_users) | | -| [auth_controller_api_keys](#auth_controller_api_keys) | | -| [auth_controller_generate_api_key](#auth_controller_generate_api_key) | | - - -## Connections - -| Method | Description| -| :-------- | :----------| -| [connections_controller_handle_callback](#connections_controller_handle_callback) | | -| [connections_controller_get_connections](#connections_controller_get_connections) | | - - -## Webhook - -| Method | Description| -| :-------- | :----------| -| [webhook_controller_add_webhook](#webhook_controller_add_webhook) | | -| [webhook_controller_get_webhooks](#webhook_controller_get_webhooks) | | -| [webhook_controller_update_webhook_status](#webhook_controller_update_webhook_status) | | - - -## LinkedUsers - -| Method | Description| -| :-------- | :----------| -| [linked_users_controller_add_linked_user](#linked_users_controller_add_linked_user) | | -| [linked_users_controller_get_linked_users](#linked_users_controller_get_linked_users) | | -| [linked_users_controller_get_linked_user](#linked_users_controller_get_linked_user) | | - - -## Organisations - -| Method | Description| -| :-------- | :----------| -| [organisations_controller_get_oragnisations](#organisations_controller_get_oragnisations) | | -| [organisations_controller_create_org](#organisations_controller_create_org) | | - - -## Projects - -| Method | Description| -| :-------- | :----------| -| [projects_controller_get_projects](#projects_controller_get_projects) | | -| [projects_controller_create_project](#projects_controller_create_project) | | - - -## FieldMapping - -| Method | Description| -| :-------- | :----------| -| [field_mapping_controller_get_entities](#field_mapping_controller_get_entities) | | -| [field_mapping_controller_get_attributes](#field_mapping_controller_get_attributes) | | -| [field_mapping_controller_get_values](#field_mapping_controller_get_values) | | -| [field_mapping_controller_define_target_field](#field_mapping_controller_define_target_field) | | -| [field_mapping_controller_map_field_to_provider](#field_mapping_controller_map_field_to_provider) | | -| [field_mapping_controller_get_custom_properties](#field_mapping_controller_get_custom_properties) | | - - -## Events - -| Method | Description| -| :-------- | :----------| -| [events_controller_get_events](#events_controller_get_events) | | - - -## MagicLink - -| Method | Description| -| :-------- | :----------| -| [magic_link_controller_create_link](#magic_link_controller_create_link) | | -| [magic_link_controller_get_magic_links](#magic_link_controller_get_magic_links) | | -| [magic_link_controller_get_magic_link](#magic_link_controller_get_magic_link) | | - - -## Passthrough - -| Method | Description| -| :-------- | :----------| -| [passthrough_controller_passthrough_request](#passthrough_controller_passthrough_request) | | - - -## CrmContact - -| Method | Description| -| :-------- | :----------| -| [contact_controller_add_contacts](#contact_controller_add_contacts) | | -| [contact_controller_get_contacts](#contact_controller_get_contacts) | | -| [contact_controller_update_contact](#contact_controller_update_contact) | | -| [contact_controller_get_contact](#contact_controller_get_contact) | | - - - - -## All Methods - - -### **app_controller_get_hello** - -- HTTP Method: GET -- Endpoint: / - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.main.app_controller_get_hello() - -pprint(vars(results)) - -``` - - -### **auth_controller_register_user** - -- HTTP Method: POST -- Endpoint: /auth/register - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateUserDto](/src/testsdk/models/README.md#createuserdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'email': 'email', - 'first_name': 'first_name', - 'last_name': 'last_name', - 'password_hash': 'password_hash' -} -results = sdk.auth.auth_controller_register_user(request_input = request_body) - -pprint(vars(results)) - -``` - -### **auth_controller_login** - -- HTTP Method: POST -- Endpoint: /auth/login - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [LoginCredentials](/src/testsdk/models/README.md#logincredentials) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'email': 'email', - 'id_user': 'id_user', - 'password_hash': 'password_hash' -} -results = sdk.auth.auth_controller_login(request_input = request_body) - -pprint(vars(results)) - -``` - -### **auth_controller_users** - -- HTTP Method: GET -- Endpoint: /auth/users - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.auth.auth_controller_users() - -pprint(vars(results)) - -``` - -### **auth_controller_api_keys** - -- HTTP Method: GET -- Endpoint: /auth/api-keys - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.auth.auth_controller_api_keys() - -pprint(vars(results)) - -``` - -### **auth_controller_generate_api_key** - -- HTTP Method: POST -- Endpoint: /auth/generate-apikey - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | object | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = {} -results = sdk.auth.auth_controller_generate_api_key(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **connections_controller_handle_callback** - -- HTTP Method: GET -- Endpoint: /connections/oauth/callback - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| state | str | Required | | -| code | str | Required | | -| location | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.connections.connections_controller_handle_callback( - state = 'state', - code = 'code', - location = 'location' -) - -pprint(vars(results)) - -``` - -### **connections_controller_get_connections** - -- HTTP Method: GET -- Endpoint: /connections - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.connections.connections_controller_get_connections() - -pprint(vars(results)) - -``` - - -### **webhook_controller_add_webhook** - -- HTTP Method: POST -- Endpoint: /webhook - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [WebhookDto](/src/testsdk/models/README.md#webhookdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'description': 'description', - 'id_project': 'id_project', - 'scope': 'scope', - 'url': 'url' -} -results = sdk.webhook.webhook_controller_add_webhook(request_input = request_body) - -pprint(vars(results)) - -``` - -### **webhook_controller_get_webhooks** - -- HTTP Method: GET -- Endpoint: /webhook - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.webhook.webhook_controller_get_webhooks() - -pprint(vars(results)) - -``` - -### **webhook_controller_update_webhook_status** - -- HTTP Method: PUT -- Endpoint: /webhook/{id} - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.webhook.webhook_controller_update_webhook_status(id = 'id') - -pprint(vars(results)) - -``` - - -### **linked_users_controller_add_linked_user** - -- HTTP Method: POST -- Endpoint: /linked-users/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateLinkedUserDto](/src/testsdk/models/README.md#createlinkeduserdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'alias': 'alias', - 'id_project': 'id_project', - 'linked_user_origin_id': 'linked_user_origin_id' -} -results = sdk.linked_users.linked_users_controller_add_linked_user(request_input = request_body) - -pprint(vars(results)) - -``` - -### **linked_users_controller_get_linked_users** - -- HTTP Method: GET -- Endpoint: /linked-users - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.linked_users.linked_users_controller_get_linked_users() - -pprint(vars(results)) - -``` - -### **linked_users_controller_get_linked_user** - -- HTTP Method: GET -- Endpoint: /linked-users/single - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.linked_users.linked_users_controller_get_linked_user(id = 'id') - -pprint(vars(results)) - -``` - - -### **organisations_controller_get_oragnisations** - -- HTTP Method: GET -- Endpoint: /organisations - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.organisations.organisations_controller_get_oragnisations() - -pprint(vars(results)) - -``` - -### **organisations_controller_create_org** - -- HTTP Method: POST -- Endpoint: /organisations/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateOrganizationDto](/src/testsdk/models/README.md#createorganizationdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'name': 'name', - 'stripe_customer_id': 'stripe_customer_id' -} -results = sdk.organisations.organisations_controller_create_org(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **projects_controller_get_projects** - -- HTTP Method: GET -- Endpoint: /projects - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.projects.projects_controller_get_projects() - -pprint(vars(results)) - -``` - -### **projects_controller_create_project** - -- HTTP Method: POST -- Endpoint: /projects/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateProjectDto](/src/testsdk/models/README.md#createprojectdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'id_organization': 'id_organization', - 'name': 'name' -} -results = sdk.projects.projects_controller_create_project(request_input = request_body) - -pprint(vars(results)) - -``` - - -### **field_mapping_controller_get_entities** - -- HTTP Method: GET -- Endpoint: /field-mapping/entities - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_entities() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_attributes** - -- HTTP Method: GET -- Endpoint: /field-mapping/attribute - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_attributes() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_values** - -- HTTP Method: GET -- Endpoint: /field-mapping/value - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_values() - -pprint(vars(results)) - -``` - -### **field_mapping_controller_define_target_field** - -- HTTP Method: POST -- Endpoint: /field-mapping/define - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [DefineTargetFieldDto](/src/testsdk/models/README.md#definetargetfielddto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'data_type': 'data_type', - 'description': 'description', - 'name': 'name', - 'object_type_owner': {} -} -results = sdk.field_mapping.field_mapping_controller_define_target_field(request_input = request_body) - -pprint(vars(results)) - -``` - -### **field_mapping_controller_map_field_to_provider** - -- HTTP Method: POST -- Endpoint: /field-mapping/map - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [MapFieldToProviderDto](/src/testsdk/models/README.md#mapfieldtoproviderdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'attributeId': 'attributeId', - 'linked_user_id': 'linked_user_id', - 'source_custom_field_id': 'source_custom_field_id', - 'source_provider': 'source_provider' -} -results = sdk.field_mapping.field_mapping_controller_map_field_to_provider(request_input = request_body) - -pprint(vars(results)) - -``` - -### **field_mapping_controller_get_custom_properties** - -- HTTP Method: GET -- Endpoint: /field-mapping/properties - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| linked_user_id | str | Required | | -| provider_id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.field_mapping.field_mapping_controller_get_custom_properties( - linked_user_id = 'linkedUserId', - provider_id = 'providerId' -) - -pprint(vars(results)) - -``` - - -### **events_controller_get_events** - -- HTTP Method: GET -- Endpoint: /events - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.events.events_controller_get_events() - -pprint(vars(results)) - -``` - - -### **magic_link_controller_create_link** - -- HTTP Method: POST -- Endpoint: /magic-link/create - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| request_input | [CreateMagicLinkDto](/src/testsdk/models/README.md#createmagiclinkdto) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'alias': 'alias', - 'email': 'email', - 'id_project': 'id_project', - 'linked_user_origin_id': 'linked_user_origin_id' -} -results = sdk.magic_link.magic_link_controller_create_link(request_input = request_body) - -pprint(vars(results)) - -``` - -### **magic_link_controller_get_magic_links** - -- HTTP Method: GET -- Endpoint: /magic-link - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.magic_link.magic_link_controller_get_magic_links() - -pprint(vars(results)) - -``` - -### **magic_link_controller_get_magic_link** - -- HTTP Method: GET -- Endpoint: /magic-link/single - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.magic_link.magic_link_controller_get_magic_link(id = 'id') - -pprint(vars(results)) - -``` - - -### **passthrough_controller_passthrough_request** - -- HTTP Method: POST -- Endpoint: /passthrough - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| request_input | [PassThroughRequestDto](/src/testsdk/models/README.md#passthroughrequestdto) | Required | Request body. | - -**Return Type** - -[PassThroughResponse](/src/testsdk/models/README.md#passthroughresponse) - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = { - 'data': {}, - 'headers_': {}, - 'method': 'POST', - 'path': 'path' -} -results = sdk.passthrough.passthrough_controller_passthrough_request( - request_input = request_body, - integration_id = 'integrationId', - linked_user_id = 'linkedUserId' -) - -pprint(vars(results)) - -``` - - -### **contact_controller_add_contacts** - -- HTTP Method: POST -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| remote_data | bool | Optional | | -| request_input | [ContactControllerAddContactsRequest](/src/testsdk/models/README.md#contactcontrolleraddcontactsrequest) | Required | Request body. | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -request_body = [{},{}] -results = sdk.crm_contact.contact_controller_add_contacts( - request_input = request_body, - integration_id = 'integrationId', - linked_user_id = 'linkedUserId', - remote_data = True -) - -pprint(vars(results)) - -``` - -### **contact_controller_get_contacts** - -- HTTP Method: GET -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| integration_id | str | Required | | -| linked_user_id | str | Required | | -| remote_data | bool | Optional | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_get_contacts( - integration_id = 'integrationId', - linked_user_id = 'linkedUserId', - remote_data = True -) - -pprint(vars(results)) - -``` - -### **contact_controller_update_contact** - -- HTTP Method: PATCH -- Endpoint: /crm/contact - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_update_contact(id = 'id') - -pprint(vars(results)) - -``` - -### **contact_controller_get_contact** - -- HTTP Method: GET -- Endpoint: /crm/contact/{id} - -**Parameters** -| Name | Type| Required | Description | -| :-------- | :----------| :----------| :----------| -| id | str | Required | | -| remote_data | bool | Optional | | - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Python -from os import getenv -from pprint import pprint -from testsdk import Testsdk -sdk = Testsdk() -sdk.set_access_token(getenv("TESTSDK_ACCESS_TOKEN")) -results = sdk.crm_contact.contact_controller_get_contact( - id = 'id', - remote_data = True -) - -pprint(vars(results)) - -``` - - - - diff --git a/packages/sdk/output/python/src/testsdk/services/__init__.py b/packages/sdk/output/python/src/testsdk/services/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/sdk/output/python/src/testsdk/services/auth.py b/packages/sdk/output/python/src/testsdk/services/auth.py deleted file mode 100644 index d9cf987bc..000000000 --- a/packages/sdk/output/python/src/testsdk/services/auth.py +++ /dev/null @@ -1,52 +0,0 @@ -from urllib.parse import quote - -from .base import BaseService -from ..models.CreateUserDto import CreateUserDto as CreateUserDtoModel -from ..models.LoginCredentials import LoginCredentials as LoginCredentialsModel - - -class Auth(BaseService): - def auth_controller_register_user(self, request_input: CreateUserDtoModel): - url_endpoint = "/auth/register" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res - - def auth_controller_login(self, request_input: LoginCredentialsModel): - url_endpoint = "/auth/login" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res - - def auth_controller_users(self): - url_endpoint = "/auth/users" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def auth_controller_api_keys(self): - url_endpoint = "/auth/api-keys" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def auth_controller_generate_api_key(self, request_input: str): - url_endpoint = "/auth/generate-apikey" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/base.py b/packages/sdk/output/python/src/testsdk/services/base.py deleted file mode 100644 index df7c1caed..000000000 --- a/packages/sdk/output/python/src/testsdk/services/base.py +++ /dev/null @@ -1,98 +0,0 @@ -""" -Creates a BaseService class. -Performs API calls,sets authentication tokens and handles http exceptions. - -Class: - BaseService -""" -from typing import List, Union -from enum import Enum -import re -from ..net.http_client import HTTPClient - - -class BaseService: - """ - A class to represent a base serivce - - Attributes - ---------- - _url_prefix : str - The base URL - - Methods - ------- - set_access_token(token: str) -> None: - Sets bearer token key - def _add_required_headers(headers: dict): - Request authorization headers - def set_base_url(url: str): - Sets the base url - """ - - _url_prefix = "http://api.example.com" - - _http = HTTPClient(None) - - def __init__(self, access_token: str = "") -> None: - """ - Initialize client - - Parameters: - ---------- - access_token : str - A Access access token - """ - self._access_token = access_token - - def _pattern_matching(cls, value: str, pattern: str, variable_name: str): - if re.match(r"{}".format(pattern), value): - return value - else: - raise ValueError(f"Invalid value for {variable_name}: must match {pattern}") - - def _enum_matching( - cls, value: Union[str, Enum], enum_values: List[str], variable_name: str - ): - str_value = value.value if isinstance(value, Enum) else value - if str_value in enum_values: - return value - else: - raise ValueError( - f"Invalid value for {variable_name}: must match one of {enum_values}" - ) - - def set_base_url(self, url: str) -> None: - """ - Sets the base URL - - Parameters: - ---------- - url: - The base URL - """ - self._url_prefix = url - - def set_access_token(self, token: str) -> None: - """ - Sets access token key - - Parameters - ---------- - token: string - Access token value - """ - self._access_token = token - - def _add_required_headers(self, headers: dict): - """ - Request authorization headers - - Parameters - ---------- - headers: dict - Headers dict to add auth headers to - """ - headers["User-Agent"] = "liblab/0.1.28 Testsdk/1.0.0 python/2.7" - headers["Authorization"] = f"Bearer {self._access_token}" - return headers diff --git a/packages/sdk/output/python/src/testsdk/services/connections.py b/packages/sdk/output/python/src/testsdk/services/connections.py deleted file mode 100644 index 019fd90ad..000000000 --- a/packages/sdk/output/python/src/testsdk/services/connections.py +++ /dev/null @@ -1,42 +0,0 @@ -from urllib.parse import quote -from ..net import query_serializer -from .base import BaseService - - -class Connections(BaseService): - def connections_controller_handle_callback( - self, location: str, code: str, state: str - ): - url_endpoint = "/connections/oauth/callback" - headers = {} - query_params = [] - self._add_required_headers(headers) - if not state: - raise ValueError("Parameter state is required, cannot be empty or blank.") - query_params.append( - query_serializer.serialize_query("form", False, "state", state) - ) - if not code: - raise ValueError("Parameter code is required, cannot be empty or blank.") - query_params.append( - query_serializer.serialize_query("form", False, "code", code) - ) - if not location: - raise ValueError( - "Parameter location is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query("form", False, "location", location) - ) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.get(final_url, headers, True) - return res - - def connections_controller_get_connections(self): - url_endpoint = "/connections" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/crm_contact.py b/packages/sdk/output/python/src/testsdk/services/crm_contact.py deleted file mode 100644 index 9e35381e8..000000000 --- a/packages/sdk/output/python/src/testsdk/services/crm_contact.py +++ /dev/null @@ -1,117 +0,0 @@ -from urllib.parse import quote -from ..net import query_serializer -from .base import BaseService -from ..models.ContactControllerAddContactsRequest import ( - ContactControllerAddContactsRequest as ContactControllerAddContactsRequestModel, -) - - -class CrmContact(BaseService): - def contact_controller_get_contacts( - self, linked_user_id: str, integration_id: str, remote_data: bool = None - ): - url_endpoint = "/crm/contact" - headers = {} - query_params = [] - self._add_required_headers(headers) - if not integration_id: - raise ValueError( - "Parameter integration_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query( - "form", False, "integrationId", integration_id - ) - ) - if not linked_user_id: - raise ValueError( - "Parameter linked_user_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query( - "form", False, "linkedUserId", linked_user_id - ) - ) - if remote_data: - query_params.append( - query_serializer.serialize_query( - "form", False, "remote_data", remote_data - ) - ) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.get(final_url, headers, True) - return res - - def contact_controller_add_contacts( - self, - request_input: ContactControllerAddContactsRequestModel, - linked_user_id: str, - integration_id: str, - remote_data: bool = None, - ): - url_endpoint = "/crm/contact" - headers = {"Content-type": "application/json"} - query_params = [] - self._add_required_headers(headers) - if not integration_id: - raise ValueError( - "Parameter integration_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query( - "form", False, "integrationId", integration_id - ) - ) - if not linked_user_id: - raise ValueError( - "Parameter linked_user_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query( - "form", False, "linkedUserId", linked_user_id - ) - ) - if remote_data: - query_params.append( - query_serializer.serialize_query( - "form", False, "remote_data", remote_data - ) - ) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.post(final_url, headers, request_input, True) - return res - - def contact_controller_update_contact(self, id: str): - url_endpoint = "/crm/contact" - headers = {} - query_params = [] - self._add_required_headers(headers) - if not id: - raise ValueError("Parameter id is required, cannot be empty or blank.") - query_params.append(query_serializer.serialize_query("form", False, "id", id)) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.patch(final_url, headers, {}, True) - return res - - def contact_controller_get_contact(self, id: str, remote_data: bool = None): - url_endpoint = "/crm/contact/{id}" - headers = {} - query_params = [] - self._add_required_headers(headers) - if not id: - raise ValueError("Parameter id is required, cannot be empty or blank.") - url_endpoint = url_endpoint.replace( - "{id}", - quote(str(query_serializer.serialize_path("simple", False, id, None))), - ) - if remote_data: - query_params.append( - query_serializer.serialize_query( - "form", False, "remote_data", remote_data - ) - ) - final_url = self._url_prefix + url_endpoint - if len(query_params) > 0: - final_url += "?" + "&".join(query_params) - res = self._http.get(final_url, headers, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/events.py b/packages/sdk/output/python/src/testsdk/services/events.py deleted file mode 100644 index 2382bb3af..000000000 --- a/packages/sdk/output/python/src/testsdk/services/events.py +++ /dev/null @@ -1,14 +0,0 @@ -from urllib.parse import quote - -from .base import BaseService - - -class Events(BaseService): - def events_controller_get_events(self): - url_endpoint = "/events" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/field_mapping.py b/packages/sdk/output/python/src/testsdk/services/field_mapping.py deleted file mode 100644 index f7ac8655a..000000000 --- a/packages/sdk/output/python/src/testsdk/services/field_mapping.py +++ /dev/null @@ -1,87 +0,0 @@ -from urllib.parse import quote -from ..net import query_serializer -from .base import BaseService -from ..models.DefineTargetFieldDto import ( - DefineTargetFieldDto as DefineTargetFieldDtoModel, -) -from ..models.MapFieldToProviderDto import ( - MapFieldToProviderDto as MapFieldToProviderDtoModel, -) - - -class FieldMapping(BaseService): - def field_mapping_controller_get_entities(self): - url_endpoint = "/field-mapping/entities" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def field_mapping_controller_get_attributes(self): - url_endpoint = "/field-mapping/attribute" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def field_mapping_controller_get_values(self): - url_endpoint = "/field-mapping/value" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def field_mapping_controller_define_target_field( - self, request_input: DefineTargetFieldDtoModel - ): - url_endpoint = "/field-mapping/define" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res - - def field_mapping_controller_map_field_to_provider( - self, request_input: MapFieldToProviderDtoModel - ): - url_endpoint = "/field-mapping/map" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res - - def field_mapping_controller_get_custom_properties( - self, provider_id: str, linked_user_id: str - ): - url_endpoint = "/field-mapping/properties" - headers = {} - query_params = [] - self._add_required_headers(headers) - if not linked_user_id: - raise ValueError( - "Parameter linked_user_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query( - "form", False, "linkedUserId", linked_user_id - ) - ) - if not provider_id: - raise ValueError( - "Parameter provider_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query("form", False, "providerId", provider_id) - ) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.get(final_url, headers, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/linked_users.py b/packages/sdk/output/python/src/testsdk/services/linked_users.py deleted file mode 100644 index e2c25b139..000000000 --- a/packages/sdk/output/python/src/testsdk/services/linked_users.py +++ /dev/null @@ -1,38 +0,0 @@ -from urllib.parse import quote -from ..net import query_serializer -from .base import BaseService -from ..models.CreateLinkedUserDto import CreateLinkedUserDto as CreateLinkedUserDtoModel - - -class LinkedUsers(BaseService): - def linked_users_controller_add_linked_user( - self, request_input: CreateLinkedUserDtoModel - ): - url_endpoint = "/linked-users/create" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res - - def linked_users_controller_get_linked_users(self): - url_endpoint = "/linked-users" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def linked_users_controller_get_linked_user(self, id: str): - url_endpoint = "/linked-users/single" - headers = {} - query_params = [] - self._add_required_headers(headers) - if not id: - raise ValueError("Parameter id is required, cannot be empty or blank.") - query_params.append(query_serializer.serialize_query("form", False, "id", id)) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.get(final_url, headers, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/magic_link.py b/packages/sdk/output/python/src/testsdk/services/magic_link.py deleted file mode 100644 index bd28ce7ae..000000000 --- a/packages/sdk/output/python/src/testsdk/services/magic_link.py +++ /dev/null @@ -1,36 +0,0 @@ -from urllib.parse import quote -from ..net import query_serializer -from .base import BaseService -from ..models.CreateMagicLinkDto import CreateMagicLinkDto as CreateMagicLinkDtoModel - - -class MagicLink(BaseService): - def magic_link_controller_create_link(self, request_input: CreateMagicLinkDtoModel): - url_endpoint = "/magic-link/create" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res - - def magic_link_controller_get_magic_links(self): - url_endpoint = "/magic-link" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def magic_link_controller_get_magic_link(self, id: str): - url_endpoint = "/magic-link/single" - headers = {} - query_params = [] - self._add_required_headers(headers) - if not id: - raise ValueError("Parameter id is required, cannot be empty or blank.") - query_params.append(query_serializer.serialize_query("form", False, "id", id)) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.get(final_url, headers, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/main.py b/packages/sdk/output/python/src/testsdk/services/main.py deleted file mode 100644 index df53b1625..000000000 --- a/packages/sdk/output/python/src/testsdk/services/main.py +++ /dev/null @@ -1,14 +0,0 @@ -from urllib.parse import quote - -from .base import BaseService - - -class Main(BaseService): - def app_controller_get_hello(self): - url_endpoint = "/" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/organisations.py b/packages/sdk/output/python/src/testsdk/services/organisations.py deleted file mode 100644 index 031d1e3a5..000000000 --- a/packages/sdk/output/python/src/testsdk/services/organisations.py +++ /dev/null @@ -1,28 +0,0 @@ -from urllib.parse import quote - -from .base import BaseService -from ..models.CreateOrganizationDto import ( - CreateOrganizationDto as CreateOrganizationDtoModel, -) - - -class Organisations(BaseService): - def organisations_controller_get_oragnisations(self): - url_endpoint = "/organisations" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def organisations_controller_create_org( - self, request_input: CreateOrganizationDtoModel - ): - url_endpoint = "/organisations/create" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/passthrough.py b/packages/sdk/output/python/src/testsdk/services/passthrough.py deleted file mode 100644 index 542cbc665..000000000 --- a/packages/sdk/output/python/src/testsdk/services/passthrough.py +++ /dev/null @@ -1,43 +0,0 @@ -from urllib.parse import quote -from ..net import query_serializer -from .base import BaseService -from ..models.PassThroughRequestDto import ( - PassThroughRequestDto as PassThroughRequestDtoModel, -) -from ..models.PassThroughResponse import PassThroughResponse as PassThroughResponseModel - - -class Passthrough(BaseService): - def passthrough_controller_passthrough_request( - self, - request_input: PassThroughRequestDtoModel, - linked_user_id: str, - integration_id: str, - ) -> PassThroughResponseModel: - url_endpoint = "/passthrough" - headers = {"Content-type": "application/json"} - query_params = [] - self._add_required_headers(headers) - if not integration_id: - raise ValueError( - "Parameter integration_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query( - "form", False, "integrationId", integration_id - ) - ) - if not linked_user_id: - raise ValueError( - "Parameter linked_user_id is required, cannot be empty or blank." - ) - query_params.append( - query_serializer.serialize_query( - "form", False, "linkedUserId", linked_user_id - ) - ) - final_url = self._url_prefix + url_endpoint + "?" + "&".join(query_params) - res = self._http.post(final_url, headers, request_input, True) - if res and isinstance(res, dict): - return PassThroughResponseModel(**res) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/projects.py b/packages/sdk/output/python/src/testsdk/services/projects.py deleted file mode 100644 index 1f2120af8..000000000 --- a/packages/sdk/output/python/src/testsdk/services/projects.py +++ /dev/null @@ -1,24 +0,0 @@ -from urllib.parse import quote - -from .base import BaseService -from ..models.CreateProjectDto import CreateProjectDto as CreateProjectDtoModel - - -class Projects(BaseService): - def projects_controller_get_projects(self): - url_endpoint = "/projects" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def projects_controller_create_project(self, request_input: CreateProjectDtoModel): - url_endpoint = "/projects/create" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/services/webhook.py b/packages/sdk/output/python/src/testsdk/services/webhook.py deleted file mode 100644 index e6731781d..000000000 --- a/packages/sdk/output/python/src/testsdk/services/webhook.py +++ /dev/null @@ -1,38 +0,0 @@ -from urllib.parse import quote -from ..net import query_serializer -from .base import BaseService -from ..models.WebhookDto import WebhookDto as WebhookDtoModel - - -class Webhook(BaseService): - def webhook_controller_get_webhooks(self): - url_endpoint = "/webhook" - headers = {} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.get(final_url, headers, True) - return res - - def webhook_controller_add_webhook(self, request_input: WebhookDtoModel): - url_endpoint = "/webhook" - headers = {"Content-type": "application/json"} - self._add_required_headers(headers) - - final_url = self._url_prefix + url_endpoint - res = self._http.post(final_url, headers, request_input, True) - return res - - def webhook_controller_update_webhook_status(self, id: str): - url_endpoint = "/webhook/{id}" - headers = {} - self._add_required_headers(headers) - if not id: - raise ValueError("Parameter id is required, cannot be empty or blank.") - url_endpoint = url_endpoint.replace( - "{id}", - quote(str(query_serializer.serialize_path("simple", False, id, None))), - ) - final_url = self._url_prefix + url_endpoint - res = self._http.put(final_url, headers, {}, True) - return res diff --git a/packages/sdk/output/python/src/testsdk/setup.py b/packages/sdk/output/python/src/testsdk/setup.py deleted file mode 100644 index 6ffa3bff9..000000000 --- a/packages/sdk/output/python/src/testsdk/setup.py +++ /dev/null @@ -1,9 +0,0 @@ -import setuptools - -setuptools.setup( - name="Testsdk", - version="1.0.0", - description="""The Panora API description""", - license="MIT", - packages=setuptools.find_packages(), -) diff --git a/packages/sdk/output/python/test/__init__.py b/packages/sdk/output/python/test/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/sdk/output/python/test/models/__init__.py b/packages/sdk/output/python/test/models/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/sdk/output/python/test/models/test_base.py b/packages/sdk/output/python/test/models/test_base.py deleted file mode 100644 index e0f8f84d4..000000000 --- a/packages/sdk/output/python/test/models/test_base.py +++ /dev/null @@ -1,14 +0,0 @@ -import unittest -import responses -from http import HTTPStatus -from src.testsdk.models.base import BaseModel -from http_exceptions import ClientException - - -class TestBaseModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_create_linked_user_dto.py b/packages/sdk/output/python/test/models/test_create_linked_user_dto.py deleted file mode 100644 index cfb81a106..000000000 --- a/packages/sdk/output/python/test/models/test_create_linked_user_dto.py +++ /dev/null @@ -1,25 +0,0 @@ -import unittest -from src.testsdk.models.CreateLinkedUserDto import CreateLinkedUserDto - - -class TestCreateLinkedUserDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_create_linked_user_dto(self): - # Create CreateLinkedUserDto class instance - test_model = CreateLinkedUserDto( - id_project="beatae", alias="est", linked_user_origin_id="laboriosam" - ) - self.assertEqual(test_model.id_project, "beatae") - self.assertEqual(test_model.alias, "est") - self.assertEqual(test_model.linked_user_origin_id, "laboriosam") - - def test_create_linked_user_dto_required_fields_missing(self): - # Assert CreateLinkedUserDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = CreateLinkedUserDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_create_magic_link_dto.py b/packages/sdk/output/python/test/models/test_create_magic_link_dto.py deleted file mode 100644 index 669f509a5..000000000 --- a/packages/sdk/output/python/test/models/test_create_magic_link_dto.py +++ /dev/null @@ -1,29 +0,0 @@ -import unittest -from src.testsdk.models.CreateMagicLinkDto import CreateMagicLinkDto - - -class TestCreateMagicLinkDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_create_magic_link_dto(self): - # Create CreateMagicLinkDto class instance - test_model = CreateMagicLinkDto( - id_project="laborum", - alias="ratione", - email="dolor", - linked_user_origin_id="voluptatibus", - ) - self.assertEqual(test_model.id_project, "laborum") - self.assertEqual(test_model.alias, "ratione") - self.assertEqual(test_model.email, "dolor") - self.assertEqual(test_model.linked_user_origin_id, "voluptatibus") - - def test_create_magic_link_dto_required_fields_missing(self): - # Assert CreateMagicLinkDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = CreateMagicLinkDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_create_organization_dto.py b/packages/sdk/output/python/test/models/test_create_organization_dto.py deleted file mode 100644 index e1886d2bb..000000000 --- a/packages/sdk/output/python/test/models/test_create_organization_dto.py +++ /dev/null @@ -1,22 +0,0 @@ -import unittest -from src.testsdk.models.CreateOrganizationDto import CreateOrganizationDto - - -class TestCreateOrganizationDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_create_organization_dto(self): - # Create CreateOrganizationDto class instance - test_model = CreateOrganizationDto(stripe_customer_id="iste", name="quis") - self.assertEqual(test_model.stripe_customer_id, "iste") - self.assertEqual(test_model.name, "quis") - - def test_create_organization_dto_required_fields_missing(self): - # Assert CreateOrganizationDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = CreateOrganizationDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_create_project_dto.py b/packages/sdk/output/python/test/models/test_create_project_dto.py deleted file mode 100644 index a66ed0315..000000000 --- a/packages/sdk/output/python/test/models/test_create_project_dto.py +++ /dev/null @@ -1,22 +0,0 @@ -import unittest -from src.testsdk.models.CreateProjectDto import CreateProjectDto - - -class TestCreateProjectDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_create_project_dto(self): - # Create CreateProjectDto class instance - test_model = CreateProjectDto(id_organization="ullam", name="unde") - self.assertEqual(test_model.id_organization, "ullam") - self.assertEqual(test_model.name, "unde") - - def test_create_project_dto_required_fields_missing(self): - # Assert CreateProjectDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = CreateProjectDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_create_user_dto.py b/packages/sdk/output/python/test/models/test_create_user_dto.py deleted file mode 100644 index bd9b4fe8b..000000000 --- a/packages/sdk/output/python/test/models/test_create_user_dto.py +++ /dev/null @@ -1,26 +0,0 @@ -import unittest -from src.testsdk.models.CreateUserDto import CreateUserDto - - -class TestCreateUserDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_create_user_dto(self): - # Create CreateUserDto class instance - test_model = CreateUserDto( - password_hash="unde", email="eius", last_name="saepe", first_name="itaque" - ) - self.assertEqual(test_model.password_hash, "unde") - self.assertEqual(test_model.email, "eius") - self.assertEqual(test_model.last_name, "saepe") - self.assertEqual(test_model.first_name, "itaque") - - def test_create_user_dto_required_fields_missing(self): - # Assert CreateUserDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = CreateUserDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_define_target_field_dto.py b/packages/sdk/output/python/test/models/test_define_target_field_dto.py deleted file mode 100644 index bc80b41c1..000000000 --- a/packages/sdk/output/python/test/models/test_define_target_field_dto.py +++ /dev/null @@ -1,29 +0,0 @@ -import unittest -from src.testsdk.models.DefineTargetFieldDto import DefineTargetFieldDto - - -class TestDefineTargetFieldDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_define_target_field_dto(self): - # Create DefineTargetFieldDto class instance - test_model = DefineTargetFieldDto( - data_type="quas", - description="consectetur", - name="asperiores", - object_type_owner={"ex": 9}, - ) - self.assertEqual(test_model.data_type, "quas") - self.assertEqual(test_model.description, "consectetur") - self.assertEqual(test_model.name, "asperiores") - self.assertEqual(test_model.object_type_owner, {"ex": 9}) - - def test_define_target_field_dto_required_fields_missing(self): - # Assert DefineTargetFieldDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = DefineTargetFieldDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_login_credentials.py b/packages/sdk/output/python/test/models/test_login_credentials.py deleted file mode 100644 index 62ab61bec..000000000 --- a/packages/sdk/output/python/test/models/test_login_credentials.py +++ /dev/null @@ -1,25 +0,0 @@ -import unittest -from src.testsdk.models.LoginCredentials import LoginCredentials - - -class TestLoginCredentialsModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_login_credentials(self): - # Create LoginCredentials class instance - test_model = LoginCredentials( - password_hash="nihil", id_user="commodi", email="id" - ) - self.assertEqual(test_model.password_hash, "nihil") - self.assertEqual(test_model.id_user, "commodi") - self.assertEqual(test_model.email, "id") - - def test_login_credentials_required_fields_missing(self): - # Assert LoginCredentials class generation fails without required fields - with self.assertRaises(TypeError): - test_model = LoginCredentials() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_map_field_to_provider_dto.py b/packages/sdk/output/python/test/models/test_map_field_to_provider_dto.py deleted file mode 100644 index 0d3d1e691..000000000 --- a/packages/sdk/output/python/test/models/test_map_field_to_provider_dto.py +++ /dev/null @@ -1,29 +0,0 @@ -import unittest -from src.testsdk.models.MapFieldToProviderDto import MapFieldToProviderDto - - -class TestMapFieldToProviderDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_map_field_to_provider_dto(self): - # Create MapFieldToProviderDto class instance - test_model = MapFieldToProviderDto( - linked_user_id="dicta", - source_provider="2268232130", - source_custom_field_id="aperiam", - attributeId="consequatur", - ) - self.assertEqual(test_model.linked_user_id, "dicta") - self.assertEqual(test_model.source_provider, "2268232130") - self.assertEqual(test_model.source_custom_field_id, "aperiam") - self.assertEqual(test_model.attributeId, "consequatur") - - def test_map_field_to_provider_dto_required_fields_missing(self): - # Assert MapFieldToProviderDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = MapFieldToProviderDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_pass_through_request_dto.py b/packages/sdk/output/python/test/models/test_pass_through_request_dto.py deleted file mode 100644 index 7cf95c37b..000000000 --- a/packages/sdk/output/python/test/models/test_pass_through_request_dto.py +++ /dev/null @@ -1,26 +0,0 @@ -import unittest -from src.testsdk.models.PassThroughRequestDto import PassThroughRequestDto - - -class TestPassThroughRequestDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_pass_through_request_dto(self): - # Create PassThroughRequestDto class instance - test_model = PassThroughRequestDto( - path="repellendus", method="GET", data={"esse": 4}, headers_={"magni": 2} - ) - self.assertEqual(test_model.path, "repellendus") - self.assertEqual(test_model.method, "GET") - self.assertEqual(test_model.data, {"esse": 4}) - self.assertEqual(test_model.headers_, {"magni": 2}) - - def test_pass_through_request_dto_required_fields_missing(self): - # Assert PassThroughRequestDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = PassThroughRequestDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_pass_through_response.py b/packages/sdk/output/python/test/models/test_pass_through_response.py deleted file mode 100644 index 4b470bdae..000000000 --- a/packages/sdk/output/python/test/models/test_pass_through_response.py +++ /dev/null @@ -1,25 +0,0 @@ -import unittest -from src.testsdk.models.PassThroughResponse import PassThroughResponse - - -class TestPassThroughResponseModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_pass_through_response(self): - # Create PassThroughResponse class instance - test_model = PassThroughResponse( - data={"pariatur": 1}, status=4, url="praesentium" - ) - self.assertEqual(test_model.data, {"pariatur": 1}) - self.assertEqual(test_model.status, 4) - self.assertEqual(test_model.url, "praesentium") - - def test_pass_through_response_required_fields_missing(self): - # Assert PassThroughResponse class generation fails without required fields - with self.assertRaises(TypeError): - test_model = PassThroughResponse() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_unified_contact_input.py b/packages/sdk/output/python/test/models/test_unified_contact_input.py deleted file mode 100644 index 3306ffba8..000000000 --- a/packages/sdk/output/python/test/models/test_unified_contact_input.py +++ /dev/null @@ -1,15 +0,0 @@ -import unittest -from src.testsdk.models.UnifiedContactInput import UnifiedContactInput - - -class TestUnifiedContactInputModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_unified_contact_input(self): - # Create UnifiedContactInput class instance - test_model = UnifiedContactInput() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/models/test_webhook_dto.py b/packages/sdk/output/python/test/models/test_webhook_dto.py deleted file mode 100644 index c2e30b646..000000000 --- a/packages/sdk/output/python/test/models/test_webhook_dto.py +++ /dev/null @@ -1,26 +0,0 @@ -import unittest -from src.testsdk.models.WebhookDto import WebhookDto - - -class TestWebhookDtoModel(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - def test_webhook_dto(self): - # Create WebhookDto class instance - test_model = WebhookDto( - scope="tempore", id_project="quo", url="assumenda", description="esse" - ) - self.assertEqual(test_model.scope, "tempore") - self.assertEqual(test_model.id_project, "quo") - self.assertEqual(test_model.url, "assumenda") - self.assertEqual(test_model.description, "esse") - - def test_webhook_dto_required_fields_missing(self): - # Assert WebhookDto class generation fails without required fields - with self.assertRaises(TypeError): - test_model = WebhookDto() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/__init__.py b/packages/sdk/output/python/test/services/__init__.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/sdk/output/python/test/services/test_auth.py b/packages/sdk/output/python/test/services/test_auth.py deleted file mode 100644 index 4a26663c1..000000000 --- a/packages/sdk/output/python/test/services/test_auth.py +++ /dev/null @@ -1,113 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.auth import Auth - - -class TestAuth_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_auth_controller_register_user(self): - # Mock the API response - responses.post("http://api.example.com/auth/register", json={}, status=200) - # call the method to test - test_service = Auth("testkey") - response = test_service.auth_controller_register_user({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_auth_controller_register_user_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/auth/register", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Auth("testkey") - test_service.auth_controller_register_user({}) - responses.reset() - - @responses.activate - def test_auth_controller_login(self): - # Mock the API response - responses.post("http://api.example.com/auth/login", json={}, status=200) - # call the method to test - test_service = Auth("testkey") - response = test_service.auth_controller_login({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_auth_controller_login_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/auth/login", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Auth("testkey") - test_service.auth_controller_login({}) - responses.reset() - - @responses.activate - def test_auth_controller_users(self): - # Mock the API response - responses.get("http://api.example.com/auth/users", json={}, status=200) - # call the method to test - test_service = Auth("testkey") - response = test_service.auth_controller_users() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_auth_controller_users_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/auth/users", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Auth("testkey") - test_service.auth_controller_users() - responses.reset() - - @responses.activate - def test_auth_controller_api_keys(self): - # Mock the API response - responses.get("http://api.example.com/auth/api-keys", json={}, status=200) - # call the method to test - test_service = Auth("testkey") - response = test_service.auth_controller_api_keys() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_auth_controller_api_keys_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/auth/api-keys", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Auth("testkey") - test_service.auth_controller_api_keys() - responses.reset() - - @responses.activate - def test_auth_controller_generate_api_key(self): - # Mock the API response - responses.post( - "http://api.example.com/auth/generate-apikey", json={}, status=200 - ) - # call the method to test - test_service = Auth("testkey") - response = test_service.auth_controller_generate_api_key({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_auth_controller_generate_api_key_error_on_non_200(self): - # Mock the API response - responses.post( - "http://api.example.com/auth/generate-apikey", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = Auth("testkey") - test_service.auth_controller_generate_api_key({}) - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_base.py b/packages/sdk/output/python/test/services/test_base.py deleted file mode 100644 index c593490c9..000000000 --- a/packages/sdk/output/python/test/services/test_base.py +++ /dev/null @@ -1,14 +0,0 @@ -import unittest -import responses -from http import HTTPStatus -from src.testsdk.services.base import BaseService -from http_exceptions import ClientException - - -class TestBaseService(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_connections.py b/packages/sdk/output/python/test/services/test_connections.py deleted file mode 100644 index 90431b2f7..000000000 --- a/packages/sdk/output/python/test/services/test_connections.py +++ /dev/null @@ -1,71 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.connections import Connections - - -class TestConnections_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_connections_controller_handle_callback(self): - # Mock the API response - responses.get( - "http://api.example.com/connections/oauth/callback", json={}, status=200 - ) - # call the method to test - test_service = Connections("testkey") - response = test_service.connections_controller_handle_callback( - "explicabo", "magnam", "rem" - ) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_connections_controller_handle_callback_required_fields_missing(self): - # Mock the API response - responses.get( - "http://api.example.com/connections/oauth/callback", json={}, status=202 - ) - with self.assertRaises(TypeError): - test_service = Connections("testkey") - test_service.connections_controller_handle_callback() - responses.reset(), - - @responses.activate - def test_connections_controller_handle_callback_error_on_non_200(self): - # Mock the API response - responses.get( - "http://api.example.com/connections/oauth/callback", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = Connections("testkey") - test_service.connections_controller_handle_callback( - "inventore", "deleniti", "soluta" - ) - responses.reset() - - @responses.activate - def test_connections_controller_get_connections(self): - # Mock the API response - responses.get("http://api.example.com/connections", json={}, status=200) - # call the method to test - test_service = Connections("testkey") - response = test_service.connections_controller_get_connections() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_connections_controller_get_connections_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/connections", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Connections("testkey") - test_service.connections_controller_get_connections() - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_crm_contact.py b/packages/sdk/output/python/test/services/test_crm_contact.py deleted file mode 100644 index 7ed02b347..000000000 --- a/packages/sdk/output/python/test/services/test_crm_contact.py +++ /dev/null @@ -1,140 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.crm_contact import CrmContact - - -class TestCrmContact_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_contact_controller_get_contacts(self): - # Mock the API response - responses.get("http://api.example.com/crm/contact", json={}, status=200) - # call the method to test - test_service = CrmContact("testkey") - response = test_service.contact_controller_get_contacts( - "8370091872", "4831362244", True - ) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_contact_controller_get_contacts_required_fields_missing(self): - # Mock the API response - responses.get("http://api.example.com/crm/contact", json={}, status=202) - with self.assertRaises(TypeError): - test_service = CrmContact("testkey") - test_service.contact_controller_get_contacts() - responses.reset(), - - @responses.activate - def test_contact_controller_get_contacts_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/crm/contact", json={}, status=404) - with self.assertRaises(ClientException): - test_service = CrmContact("testkey") - test_service.contact_controller_get_contacts( - "7513499459", "1366154757", True - ) - responses.reset() - - @responses.activate - def test_contact_controller_add_contacts(self): - # Mock the API response - responses.post("http://api.example.com/crm/contact", json={}, status=200) - # call the method to test - test_service = CrmContact("testkey") - response = test_service.contact_controller_add_contacts( - {}, "2764670262", "1885567456", True - ) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_contact_controller_add_contacts_required_fields_missing(self): - # Mock the API response - responses.post("http://api.example.com/crm/contact", json={}, status=202) - with self.assertRaises(TypeError): - test_service = CrmContact("testkey") - test_service.contact_controller_add_contacts() - responses.reset(), - - @responses.activate - def test_contact_controller_add_contacts_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/crm/contact", json={}, status=404) - with self.assertRaises(ClientException): - test_service = CrmContact("testkey") - test_service.contact_controller_add_contacts( - {}, "7661519231", "7475748474", True - ) - responses.reset() - - @responses.activate - def test_contact_controller_update_contact(self): - # Mock the API response - responses.patch("http://api.example.com/crm/contact", json={}, status=200) - # call the method to test - test_service = CrmContact("testkey") - response = test_service.contact_controller_update_contact("3314436272") - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_contact_controller_update_contact_required_fields_missing(self): - # Mock the API response - responses.patch("http://api.example.com/crm/contact", json={}, status=202) - with self.assertRaises(TypeError): - test_service = CrmContact("testkey") - test_service.contact_controller_update_contact() - responses.reset(), - - @responses.activate - def test_contact_controller_update_contact_error_on_non_200(self): - # Mock the API response - responses.patch("http://api.example.com/crm/contact", json={}, status=404) - with self.assertRaises(ClientException): - test_service = CrmContact("testkey") - test_service.contact_controller_update_contact("5838330951") - responses.reset() - - @responses.activate - def test_contact_controller_get_contact(self): - # Mock the API response - responses.get( - "http://api.example.com/crm/contact/4658895433", json={}, status=200 - ) - # call the method to test - test_service = CrmContact("testkey") - response = test_service.contact_controller_get_contact("4658895433", True) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_contact_controller_get_contact_required_fields_missing(self): - # Mock the API response - responses.get( - "http://api.example.com/crm/contact/3207892354", json={}, status=202 - ) - with self.assertRaises(TypeError): - test_service = CrmContact("testkey") - test_service.contact_controller_get_contact() - responses.reset(), - - @responses.activate - def test_contact_controller_get_contact_error_on_non_200(self): - # Mock the API response - responses.get( - "http://api.example.com/crm/contact/1238718850", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = CrmContact("testkey") - test_service.contact_controller_get_contact("1238718850", True) - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_events.py b/packages/sdk/output/python/test/services/test_events.py deleted file mode 100644 index afa5a6a5a..000000000 --- a/packages/sdk/output/python/test/services/test_events.py +++ /dev/null @@ -1,33 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.events import Events - - -class TestEvents_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_events_controller_get_events(self): - # Mock the API response - responses.get("http://api.example.com/events", json={}, status=200) - # call the method to test - test_service = Events("testkey") - response = test_service.events_controller_get_events() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_events_controller_get_events_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/events", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Events("testkey") - test_service.events_controller_get_events() - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_field_mapping.py b/packages/sdk/output/python/test/services/test_field_mapping.py deleted file mode 100644 index aa8d9034f..000000000 --- a/packages/sdk/output/python/test/services/test_field_mapping.py +++ /dev/null @@ -1,161 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.field_mapping import FieldMapping - - -class TestFieldMapping_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_field_mapping_controller_get_entities(self): - # Mock the API response - responses.get( - "http://api.example.com/field-mapping/entities", json={}, status=200 - ) - # call the method to test - test_service = FieldMapping("testkey") - response = test_service.field_mapping_controller_get_entities() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_field_mapping_controller_get_entities_error_on_non_200(self): - # Mock the API response - responses.get( - "http://api.example.com/field-mapping/entities", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = FieldMapping("testkey") - test_service.field_mapping_controller_get_entities() - responses.reset() - - @responses.activate - def test_field_mapping_controller_get_attributes(self): - # Mock the API response - responses.get( - "http://api.example.com/field-mapping/attribute", json={}, status=200 - ) - # call the method to test - test_service = FieldMapping("testkey") - response = test_service.field_mapping_controller_get_attributes() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_field_mapping_controller_get_attributes_error_on_non_200(self): - # Mock the API response - responses.get( - "http://api.example.com/field-mapping/attribute", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = FieldMapping("testkey") - test_service.field_mapping_controller_get_attributes() - responses.reset() - - @responses.activate - def test_field_mapping_controller_get_values(self): - # Mock the API response - responses.get("http://api.example.com/field-mapping/value", json={}, status=200) - # call the method to test - test_service = FieldMapping("testkey") - response = test_service.field_mapping_controller_get_values() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_field_mapping_controller_get_values_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/field-mapping/value", json={}, status=404) - with self.assertRaises(ClientException): - test_service = FieldMapping("testkey") - test_service.field_mapping_controller_get_values() - responses.reset() - - @responses.activate - def test_field_mapping_controller_define_target_field(self): - # Mock the API response - responses.post( - "http://api.example.com/field-mapping/define", json={}, status=200 - ) - # call the method to test - test_service = FieldMapping("testkey") - response = test_service.field_mapping_controller_define_target_field({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_field_mapping_controller_define_target_field_error_on_non_200(self): - # Mock the API response - responses.post( - "http://api.example.com/field-mapping/define", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = FieldMapping("testkey") - test_service.field_mapping_controller_define_target_field({}) - responses.reset() - - @responses.activate - def test_field_mapping_controller_map_field_to_provider(self): - # Mock the API response - responses.post("http://api.example.com/field-mapping/map", json={}, status=200) - # call the method to test - test_service = FieldMapping("testkey") - response = test_service.field_mapping_controller_map_field_to_provider({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_field_mapping_controller_map_field_to_provider_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/field-mapping/map", json={}, status=404) - with self.assertRaises(ClientException): - test_service = FieldMapping("testkey") - test_service.field_mapping_controller_map_field_to_provider({}) - responses.reset() - - @responses.activate - def test_field_mapping_controller_get_custom_properties(self): - # Mock the API response - responses.get( - "http://api.example.com/field-mapping/properties", json={}, status=200 - ) - # call the method to test - test_service = FieldMapping("testkey") - response = test_service.field_mapping_controller_get_custom_properties( - "5832991987", "1688907611" - ) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_field_mapping_controller_get_custom_properties_required_fields_missing( - self, - ): - # Mock the API response - responses.get( - "http://api.example.com/field-mapping/properties", json={}, status=202 - ) - with self.assertRaises(TypeError): - test_service = FieldMapping("testkey") - test_service.field_mapping_controller_get_custom_properties() - responses.reset(), - - @responses.activate - def test_field_mapping_controller_get_custom_properties_error_on_non_200(self): - # Mock the API response - responses.get( - "http://api.example.com/field-mapping/properties", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = FieldMapping("testkey") - test_service.field_mapping_controller_get_custom_properties( - "4350887327", "7929775168" - ) - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_linked_users.py b/packages/sdk/output/python/test/services/test_linked_users.py deleted file mode 100644 index 50b4f0af9..000000000 --- a/packages/sdk/output/python/test/services/test_linked_users.py +++ /dev/null @@ -1,84 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.linked_users import LinkedUsers - - -class TestLinkedUsers_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_linked_users_controller_add_linked_user(self): - # Mock the API response - responses.post( - "http://api.example.com/linked-users/create", json={}, status=200 - ) - # call the method to test - test_service = LinkedUsers("testkey") - response = test_service.linked_users_controller_add_linked_user({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_linked_users_controller_add_linked_user_error_on_non_200(self): - # Mock the API response - responses.post( - "http://api.example.com/linked-users/create", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = LinkedUsers("testkey") - test_service.linked_users_controller_add_linked_user({}) - responses.reset() - - @responses.activate - def test_linked_users_controller_get_linked_users(self): - # Mock the API response - responses.get("http://api.example.com/linked-users", json={}, status=200) - # call the method to test - test_service = LinkedUsers("testkey") - response = test_service.linked_users_controller_get_linked_users() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_linked_users_controller_get_linked_users_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/linked-users", json={}, status=404) - with self.assertRaises(ClientException): - test_service = LinkedUsers("testkey") - test_service.linked_users_controller_get_linked_users() - responses.reset() - - @responses.activate - def test_linked_users_controller_get_linked_user(self): - # Mock the API response - responses.get("http://api.example.com/linked-users/single", json={}, status=200) - # call the method to test - test_service = LinkedUsers("testkey") - response = test_service.linked_users_controller_get_linked_user("4717047622") - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_linked_users_controller_get_linked_user_required_fields_missing(self): - # Mock the API response - responses.get("http://api.example.com/linked-users/single", json={}, status=202) - with self.assertRaises(TypeError): - test_service = LinkedUsers("testkey") - test_service.linked_users_controller_get_linked_user() - responses.reset(), - - @responses.activate - def test_linked_users_controller_get_linked_user_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/linked-users/single", json={}, status=404) - with self.assertRaises(ClientException): - test_service = LinkedUsers("testkey") - test_service.linked_users_controller_get_linked_user("6478475263") - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_magic_link.py b/packages/sdk/output/python/test/services/test_magic_link.py deleted file mode 100644 index fbd60b2e9..000000000 --- a/packages/sdk/output/python/test/services/test_magic_link.py +++ /dev/null @@ -1,80 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.magic_link import MagicLink - - -class TestMagicLink_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_magic_link_controller_create_link(self): - # Mock the API response - responses.post("http://api.example.com/magic-link/create", json={}, status=200) - # call the method to test - test_service = MagicLink("testkey") - response = test_service.magic_link_controller_create_link({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_magic_link_controller_create_link_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/magic-link/create", json={}, status=404) - with self.assertRaises(ClientException): - test_service = MagicLink("testkey") - test_service.magic_link_controller_create_link({}) - responses.reset() - - @responses.activate - def test_magic_link_controller_get_magic_links(self): - # Mock the API response - responses.get("http://api.example.com/magic-link", json={}, status=200) - # call the method to test - test_service = MagicLink("testkey") - response = test_service.magic_link_controller_get_magic_links() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_magic_link_controller_get_magic_links_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/magic-link", json={}, status=404) - with self.assertRaises(ClientException): - test_service = MagicLink("testkey") - test_service.magic_link_controller_get_magic_links() - responses.reset() - - @responses.activate - def test_magic_link_controller_get_magic_link(self): - # Mock the API response - responses.get("http://api.example.com/magic-link/single", json={}, status=200) - # call the method to test - test_service = MagicLink("testkey") - response = test_service.magic_link_controller_get_magic_link("1229720622") - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_magic_link_controller_get_magic_link_required_fields_missing(self): - # Mock the API response - responses.get("http://api.example.com/magic-link/single", json={}, status=202) - with self.assertRaises(TypeError): - test_service = MagicLink("testkey") - test_service.magic_link_controller_get_magic_link() - responses.reset(), - - @responses.activate - def test_magic_link_controller_get_magic_link_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/magic-link/single", json={}, status=404) - with self.assertRaises(ClientException): - test_service = MagicLink("testkey") - test_service.magic_link_controller_get_magic_link("1834466376") - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_main.py b/packages/sdk/output/python/test/services/test_main.py deleted file mode 100644 index 9351a7af7..000000000 --- a/packages/sdk/output/python/test/services/test_main.py +++ /dev/null @@ -1,33 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.main import Main - - -class TestMain_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_app_controller_get_hello(self): - # Mock the API response - responses.get("http://api.example.com/", json={}, status=200) - # call the method to test - test_service = Main("testkey") - response = test_service.app_controller_get_hello() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_app_controller_get_hello_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Main("testkey") - test_service.app_controller_get_hello() - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_organisations.py b/packages/sdk/output/python/test/services/test_organisations.py deleted file mode 100644 index 911751a28..000000000 --- a/packages/sdk/output/python/test/services/test_organisations.py +++ /dev/null @@ -1,56 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.organisations import Organisations - - -class TestOrganisations_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_organisations_controller_get_oragnisations(self): - # Mock the API response - responses.get("http://api.example.com/organisations", json={}, status=200) - # call the method to test - test_service = Organisations("testkey") - response = test_service.organisations_controller_get_oragnisations() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_organisations_controller_get_oragnisations_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/organisations", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Organisations("testkey") - test_service.organisations_controller_get_oragnisations() - responses.reset() - - @responses.activate - def test_organisations_controller_create_org(self): - # Mock the API response - responses.post( - "http://api.example.com/organisations/create", json={}, status=200 - ) - # call the method to test - test_service = Organisations("testkey") - response = test_service.organisations_controller_create_org({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_organisations_controller_create_org_error_on_non_200(self): - # Mock the API response - responses.post( - "http://api.example.com/organisations/create", json={}, status=404 - ) - with self.assertRaises(ClientException): - test_service = Organisations("testkey") - test_service.organisations_controller_create_org({}) - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_passthrough.py b/packages/sdk/output/python/test/services/test_passthrough.py deleted file mode 100644 index 576645326..000000000 --- a/packages/sdk/output/python/test/services/test_passthrough.py +++ /dev/null @@ -1,46 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.passthrough import Passthrough - - -class TestPassthrough_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_passthrough_controller_passthrough_request(self): - # Mock the API response - responses.post("http://api.example.com/passthrough", json={}, status=200) - # call the method to test - test_service = Passthrough("testkey") - response = test_service.passthrough_controller_passthrough_request( - {}, "8534536748", "3306308170" - ) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_passthrough_controller_passthrough_request_required_fields_missing(self): - # Mock the API response - responses.post("http://api.example.com/passthrough", json={}, status=202) - with self.assertRaises(TypeError): - test_service = Passthrough("testkey") - test_service.passthrough_controller_passthrough_request() - responses.reset(), - - @responses.activate - def test_passthrough_controller_passthrough_request_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/passthrough", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Passthrough("testkey") - test_service.passthrough_controller_passthrough_request( - {}, "6889035785", "8275637669" - ) - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_projects.py b/packages/sdk/output/python/test/services/test_projects.py deleted file mode 100644 index a6dbfec44..000000000 --- a/packages/sdk/output/python/test/services/test_projects.py +++ /dev/null @@ -1,52 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.projects import Projects - - -class TestProjects_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_projects_controller_get_projects(self): - # Mock the API response - responses.get("http://api.example.com/projects", json={}, status=200) - # call the method to test - test_service = Projects("testkey") - response = test_service.projects_controller_get_projects() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_projects_controller_get_projects_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/projects", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Projects("testkey") - test_service.projects_controller_get_projects() - responses.reset() - - @responses.activate - def test_projects_controller_create_project(self): - # Mock the API response - responses.post("http://api.example.com/projects/create", json={}, status=200) - # call the method to test - test_service = Projects("testkey") - response = test_service.projects_controller_create_project({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_projects_controller_create_project_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/projects/create", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Projects("testkey") - test_service.projects_controller_create_project({}) - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/python/test/services/test_webhook.py b/packages/sdk/output/python/test/services/test_webhook.py deleted file mode 100644 index e9ee6fc09..000000000 --- a/packages/sdk/output/python/test/services/test_webhook.py +++ /dev/null @@ -1,80 +0,0 @@ -import unittest -import responses -from src.testsdk.net.http_client import HTTPClient -from http_exceptions import ClientException -from src.testsdk.services.webhook import Webhook - - -class TestWebhook_(unittest.TestCase): - def test_true(self): - self.assertTrue(True) - - @responses.activate - def test_webhook_controller_get_webhooks(self): - # Mock the API response - responses.get("http://api.example.com/webhook", json={}, status=200) - # call the method to test - test_service = Webhook("testkey") - response = test_service.webhook_controller_get_webhooks() - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_webhook_controller_get_webhooks_error_on_non_200(self): - # Mock the API response - responses.get("http://api.example.com/webhook", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Webhook("testkey") - test_service.webhook_controller_get_webhooks() - responses.reset() - - @responses.activate - def test_webhook_controller_add_webhook(self): - # Mock the API response - responses.post("http://api.example.com/webhook", json={}, status=200) - # call the method to test - test_service = Webhook("testkey") - response = test_service.webhook_controller_add_webhook({}) - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_webhook_controller_add_webhook_error_on_non_200(self): - # Mock the API response - responses.post("http://api.example.com/webhook", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Webhook("testkey") - test_service.webhook_controller_add_webhook({}) - responses.reset() - - @responses.activate - def test_webhook_controller_update_webhook_status(self): - # Mock the API response - responses.put("http://api.example.com/webhook/4042696984", json={}, status=200) - # call the method to test - test_service = Webhook("testkey") - response = test_service.webhook_controller_update_webhook_status("4042696984") - self.assertEqual(response, {}) - responses.reset(), - - @responses.activate - def test_webhook_controller_update_webhook_status_required_fields_missing(self): - # Mock the API response - responses.put("http://api.example.com/webhook/8525511821", json={}, status=202) - with self.assertRaises(TypeError): - test_service = Webhook("testkey") - test_service.webhook_controller_update_webhook_status() - responses.reset(), - - @responses.activate - def test_webhook_controller_update_webhook_status_error_on_non_200(self): - # Mock the API response - responses.put("http://api.example.com/webhook/9638434724", json={}, status=404) - with self.assertRaises(ClientException): - test_service = Webhook("testkey") - test_service.webhook_controller_update_webhook_status("9638434724") - responses.reset() - - -if __name__ == "__main__": - unittest.main() diff --git a/packages/sdk/output/typescript/.eslintrc.json b/packages/sdk/output/typescript/.eslintrc.json deleted file mode 100644 index 36d76d7d7..000000000 --- a/packages/sdk/output/typescript/.eslintrc.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "env": { - "browser": true, - "commonjs": true, - "es2021": true - }, - "extends": [ - "airbnb-base", - "airbnb-typescript/base", - "prettier" - ], - "parser": "@typescript-eslint/parser", - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module", - "project": "./tsconfig.eslint.json" - }, - "plugins": [ - "@typescript-eslint", - "prettier" - ], - "rules": { - "no-console": "off", - "max-len": [ - "error", - { - "code": 150, - "ignoreComments": true, - "ignoreRegExpLiterals": true, - "ignoreStrings": true, - "ignoreTemplateLiterals": true - } - ], - "prettier/prettier": "error", - "@typescript-eslint/dot-notation": "off", - "import/prefer-default-export": "off" - }, - "settings": { - "import/resolver": { - "node": { - "extensions": [ - ".js", - ".jsx", - ".ts", - ".tsx" - ] - } - } - } -} diff --git a/packages/sdk/output/typescript/.github/PROTECTED_BRANCHES b/packages/sdk/output/typescript/.github/PROTECTED_BRANCHES deleted file mode 100644 index ba2906d06..000000000 --- a/packages/sdk/output/typescript/.github/PROTECTED_BRANCHES +++ /dev/null @@ -1 +0,0 @@ -main diff --git a/packages/sdk/output/typescript/.github/workflows/build-checks.yml b/packages/sdk/output/typescript/.github/workflows/build-checks.yml deleted file mode 100644 index 10aff5cad..000000000 --- a/packages/sdk/output/typescript/.github/workflows/build-checks.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Release Checks - -on: - push: - branches: - - main - -jobs: - github-publish: - runs-on: ubuntu-latest - - steps: - - - name: Checkout Repository & Submo - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '16' - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - - - name: Install dependencies - run: npm install - - # TODO: Finish fixing eslint issues - # - name: Run ESLint check - # run: npm run lint:ci - - - name: Run Test & Coverage check - run: npm run test - diff --git a/packages/sdk/output/typescript/.github/workflows/pr-checks.yml b/packages/sdk/output/typescript/.github/workflows/pr-checks.yml deleted file mode 100644 index 7aaa36517..000000000 --- a/packages/sdk/output/typescript/.github/workflows/pr-checks.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Pull Request Checks - -on: [pull_request] - -jobs: - linting-and-testing: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: '16' - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - - - name: Install dependencies - run: npm install - - # TODO: Finish fixing eslint issues - # - name: Run ESLint check - # run: npm run lint:ci - - - name: Run Test & Coverage check - run: npm run test diff --git a/packages/sdk/output/typescript/.github/workflows/release-checks.yml b/packages/sdk/output/typescript/.github/workflows/release-checks.yml deleted file mode 100644 index 2467c2837..000000000 --- a/packages/sdk/output/typescript/.github/workflows/release-checks.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Release Checks - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '16' - cache: 'npm' - - run: npm ci - - run: npm run test - - npm-publish: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: '16' - registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - diff --git a/packages/sdk/output/typescript/.gitignore b/packages/sdk/output/typescript/.gitignore deleted file mode 100644 index 4d73d47b6..000000000 --- a/packages/sdk/output/typescript/.gitignore +++ /dev/null @@ -1,132 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# vuepress v2.x temp and cache directory -.temp -.cache - -# Docusaurus cache and generated files -.docusaurus - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -.parcel-cache diff --git a/packages/sdk/output/typescript/.prettierrc.json b/packages/sdk/output/typescript/.prettierrc.json deleted file mode 100644 index b09cba128..000000000 --- a/packages/sdk/output/typescript/.prettierrc.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "printWidth": 100, - "tabWidth": 2, - "useTabs": false, - "semi": true, - "singleQuote": true, - "quoteProps": "as-needed", - "jsxSingleQuote": false, - "trailingComma": "all", - "bracketSpacing": true, - "arrowParens": "always", - "overrides": [ - { - "files": ".editorconfig", - "options": { - "parser": "yaml" - } - }, - { - "files": "LICENSE", - "options": { - "parser": "markdown" - } - } - ] -} diff --git a/packages/sdk/output/typescript/LICENSE b/packages/sdk/output/typescript/LICENSE deleted file mode 100644 index cb511c80b..000000000 --- a/packages/sdk/output/typescript/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2023 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE -OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/packages/sdk/output/typescript/README.md b/packages/sdk/output/typescript/README.md deleted file mode 100644 index c8e598d82..000000000 --- a/packages/sdk/output/typescript/README.md +++ /dev/null @@ -1,1208 +0,0 @@ -# Testsdk Typescript SDK 1.0.0 -The Typescript SDK for Testsdk. -- API version: 1.0.0 -- SDK version: 1.0.0 -## Table of Contents -- [About the API](#requirements) -- [Installation](#installation) -- [Authentication](#authentication) - - [Access Token](#access-token) -- [API Endpoint Services](#api-endpoint-services) -- [API Models](#api-models) -- [Sample Usage](#sample-usage) -- [Testsdk Services](#testsdk-services) -- [License](#license) -## About the API -The Panora API description -## Installation -```sh -npm install testsdk -``` -## Authentication -To see whether an endpoint needs a specific type of authentication check the endpoint's documentation. -### Access Token -The Testsdk API uses access tokens as a form of authentication. You can set the access token when initializing the SDK through the constructor: -``` -const sdk = new Testsdk('YOUR_ACCESS_TOKEN') -``` -Or through the `setAccessToken` method: -``` -const sdk = new Testsdk() -sdk.setAccessToken('YOUR_ACCESS_TOKEN') -``` -You can also set it for each service individually: -``` -const sdk = new Testsdk() -sdk.main.setAccessToken('YOUR_ACCESS_TOKEN') -``` -## Sample Usage -Here is a simple program demonstrating usage of this SDK. It can also be found in the `examples/src/index.ts` file in this directory. - -When running the sample make sure to use `npm install` to install all the dependencies. - -```Typescript -import { Testsdk } from 'testsdk'; - - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.main - .appControllerGetHello(); - console.log(result); -})(); - - -``` -# Testsdk Services -A list of all services and services methods. -- Services - - - [Main](#main) - - - [Auth](#auth) - - - [Connections](#connections) - - - [Webhook](#webhook) - - - [LinkedUsers](#linkedusers) - - - [Organisations](#organisations) - - - [Projects](#projects) - - - [FieldMapping](#fieldmapping) - - - [Events](#events) - - - [MagicLink](#magiclink) - - - [Passthrough](#passthrough) - - - [CrmContact](#crmcontact) -- [All Methods](#all-methods) - - -## Main - -| Method | Description| -| :-------- | :----------| -| [appControllerGetHello](#appcontrollergethello) | | - - -## Auth - -| Method | Description| -| :-------- | :----------| -| [authControllerRegisterUser](#authcontrollerregisteruser) | | -| [authControllerLogin](#authcontrollerlogin) | | -| [authControllerUsers](#authcontrollerusers) | | -| [authControllerApiKeys](#authcontrollerapikeys) | | -| [authControllerGenerateApiKey](#authcontrollergenerateapikey) | | - - -## Connections - -| Method | Description| -| :-------- | :----------| -| [connectionsControllerHandleCallback](#connectionscontrollerhandlecallback) | | -| [connectionsControllerGetConnections](#connectionscontrollergetconnections) | | - - -## Webhook - -| Method | Description| -| :-------- | :----------| -| [webhookControllerAddWebhook](#webhookcontrolleraddwebhook) | | -| [webhookControllerGetWebhooks](#webhookcontrollergetwebhooks) | | -| [webhookControllerUpdateWebhookStatus](#webhookcontrollerupdatewebhookstatus) | | - - -## LinkedUsers - -| Method | Description| -| :-------- | :----------| -| [linkedUsersControllerAddLinkedUser](#linkeduserscontrolleraddlinkeduser) | | -| [linkedUsersControllerGetLinkedUsers](#linkeduserscontrollergetlinkedusers) | | -| [linkedUsersControllerGetLinkedUser](#linkeduserscontrollergetlinkeduser) | | - - -## Organisations - -| Method | Description| -| :-------- | :----------| -| [organisationsControllerGetOragnisations](#organisationscontrollergetoragnisations) | | -| [organisationsControllerCreateOrg](#organisationscontrollercreateorg) | | - - -## Projects - -| Method | Description| -| :-------- | :----------| -| [projectsControllerGetProjects](#projectscontrollergetprojects) | | -| [projectsControllerCreateProject](#projectscontrollercreateproject) | | - - -## FieldMapping - -| Method | Description| -| :-------- | :----------| -| [fieldMappingControllerGetEntities](#fieldmappingcontrollergetentities) | | -| [fieldMappingControllerGetAttributes](#fieldmappingcontrollergetattributes) | | -| [fieldMappingControllerGetValues](#fieldmappingcontrollergetvalues) | | -| [fieldMappingControllerDefineTargetField](#fieldmappingcontrollerdefinetargetfield) | | -| [fieldMappingControllerMapFieldToProvider](#fieldmappingcontrollermapfieldtoprovider) | | -| [fieldMappingControllerGetCustomProperties](#fieldmappingcontrollergetcustomproperties) | | - - -## Events - -| Method | Description| -| :-------- | :----------| -| [eventsControllerGetEvents](#eventscontrollergetevents) | | - - -## MagicLink - -| Method | Description| -| :-------- | :----------| -| [magicLinkControllerCreateLink](#magiclinkcontrollercreatelink) | | -| [magicLinkControllerGetMagicLinks](#magiclinkcontrollergetmagiclinks) | | -| [magicLinkControllerGetMagicLink](#magiclinkcontrollergetmagiclink) | | - - -## Passthrough - -| Method | Description| -| :-------- | :----------| -| [passthroughControllerPassthroughRequest](#passthroughcontrollerpassthroughrequest) | | - - -## CrmContact - -| Method | Description| -| :-------- | :----------| -| [contactControllerAddContacts](#contactcontrolleraddcontacts) | | -| [contactControllerGetContacts](#contactcontrollergetcontacts) | | -| [contactControllerUpdateContact](#contactcontrollerupdatecontact) | | -| [contactControllerGetContact](#contactcontrollergetcontact) | | - - - - -## All Methods - - -### **appControllerGetHello** - -- HTTP Method: GET -- Endpoint: / - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.main.appControllerGetHello(); - console.log(result); -})(); - -``` - - -### **authControllerRegisterUser** - -- HTTP Method: POST -- Endpoint: /auth/register - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - email: 'email', - first_name: 'first_name', - last_name: 'last_name', - password_hash: 'password_hash', - }; - const result = await sdk.auth.authControllerRegisterUser(input); - console.log(result); -})(); - -``` - -### **authControllerLogin** - -- HTTP Method: POST -- Endpoint: /auth/login - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { email: 'email', id_user: 'id_user', password_hash: 'password_hash' }; - const result = await sdk.auth.authControllerLogin(input); - console.log(result); -})(); - -``` - -### **authControllerUsers** - -- HTTP Method: GET -- Endpoint: /auth/users - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.auth.authControllerUsers(); - console.log(result); -})(); - -``` - -### **authControllerApiKeys** - -- HTTP Method: GET -- Endpoint: /auth/api-keys - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.auth.authControllerApiKeys(); - console.log(result); -})(); - -``` - -### **authControllerGenerateApiKey** - -- HTTP Method: POST -- Endpoint: /auth/generate-apikey - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = {}; - const result = await sdk.auth.authControllerGenerateApiKey(input); - console.log(result); -})(); - -``` - - -### **connectionsControllerHandleCallback** - -- HTTP Method: GET -- Endpoint: /connections/oauth/callback - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| state | string | | -| code | string | | -| location | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.connections.connectionsControllerHandleCallback( - 'state', - 'code', - 'location', - ); - console.log(result); -})(); - -``` - -### **connectionsControllerGetConnections** - -- HTTP Method: GET -- Endpoint: /connections - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.connections.connectionsControllerGetConnections(); - console.log(result); -})(); - -``` - - -### **webhookControllerAddWebhook** - -- HTTP Method: POST -- Endpoint: /webhook - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - description: 'description', - id_project: 'id_project', - scope: 'scope', - url: 'url', - }; - const result = await sdk.webhook.webhookControllerAddWebhook(input); - console.log(result); -})(); - -``` - -### **webhookControllerGetWebhooks** - -- HTTP Method: GET -- Endpoint: /webhook - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.webhook.webhookControllerGetWebhooks(); - console.log(result); -})(); - -``` - -### **webhookControllerUpdateWebhookStatus** - -- HTTP Method: PUT -- Endpoint: /webhook/{id} - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.webhook.webhookControllerUpdateWebhookStatus('id'); - console.log(result); -})(); - -``` - - -### **linkedUsersControllerAddLinkedUser** - -- HTTP Method: POST -- Endpoint: /linked-users/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - alias: 'alias', - id_project: 'id_project', - linked_user_origin_id: 'linked_user_origin_id', - }; - const result = await sdk.linkedUsers.linkedUsersControllerAddLinkedUser(input); - console.log(result); -})(); - -``` - -### **linkedUsersControllerGetLinkedUsers** - -- HTTP Method: GET -- Endpoint: /linked-users - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.linkedUsers.linkedUsersControllerGetLinkedUsers(); - console.log(result); -})(); - -``` - -### **linkedUsersControllerGetLinkedUser** - -- HTTP Method: GET -- Endpoint: /linked-users/single - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.linkedUsers.linkedUsersControllerGetLinkedUser('id'); - console.log(result); -})(); - -``` - - -### **organisationsControllerGetOragnisations** - -- HTTP Method: GET -- Endpoint: /organisations - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.organisations.organisationsControllerGetOragnisations(); - console.log(result); -})(); - -``` - -### **organisationsControllerCreateOrg** - -- HTTP Method: POST -- Endpoint: /organisations/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { name: 'name', stripe_customer_id: 'stripe_customer_id' }; - const result = await sdk.organisations.organisationsControllerCreateOrg(input); - console.log(result); -})(); - -``` - - -### **projectsControllerGetProjects** - -- HTTP Method: GET -- Endpoint: /projects - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.projects.projectsControllerGetProjects(); - console.log(result); -})(); - -``` - -### **projectsControllerCreateProject** - -- HTTP Method: POST -- Endpoint: /projects/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { id_organization: 'id_organization', name: 'name' }; - const result = await sdk.projects.projectsControllerCreateProject(input); - console.log(result); -})(); - -``` - - -### **fieldMappingControllerGetEntities** - -- HTTP Method: GET -- Endpoint: /field-mapping/entities - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetEntities(); - console.log(result); -})(); - -``` - -### **fieldMappingControllerGetAttributes** - -- HTTP Method: GET -- Endpoint: /field-mapping/attribute - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetAttributes(); - console.log(result); -})(); - -``` - -### **fieldMappingControllerGetValues** - -- HTTP Method: GET -- Endpoint: /field-mapping/value - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetValues(); - console.log(result); -})(); - -``` - -### **fieldMappingControllerDefineTargetField** - -- HTTP Method: POST -- Endpoint: /field-mapping/define - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - data_type: 'data_type', - description: 'description', - name: 'name', - object_type_owner: {}, - }; - const result = await sdk.fieldMapping.fieldMappingControllerDefineTargetField(input); - console.log(result); -})(); - -``` - -### **fieldMappingControllerMapFieldToProvider** - -- HTTP Method: POST -- Endpoint: /field-mapping/map - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - attributeId: 'attributeId', - linked_user_id: 'linked_user_id', - source_custom_field_id: 'source_custom_field_id', - source_provider: 'source_provider', - }; - const result = await sdk.fieldMapping.fieldMappingControllerMapFieldToProvider(input); - console.log(result); -})(); - -``` - -### **fieldMappingControllerGetCustomProperties** - -- HTTP Method: GET -- Endpoint: /field-mapping/properties - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| linkedUserId | string | | -| providerId | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetCustomProperties( - 'linkedUserId', - 'providerId', - ); - console.log(result); -})(); - -``` - - -### **eventsControllerGetEvents** - -- HTTP Method: GET -- Endpoint: /events - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.events.eventsControllerGetEvents(); - console.log(result); -})(); - -``` - - -### **magicLinkControllerCreateLink** - -- HTTP Method: POST -- Endpoint: /magic-link/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - alias: 'alias', - email: 'email', - id_project: 'id_project', - linked_user_origin_id: 'linked_user_origin_id', - }; - const result = await sdk.magicLink.magicLinkControllerCreateLink(input); - console.log(result); -})(); - -``` - -### **magicLinkControllerGetMagicLinks** - -- HTTP Method: GET -- Endpoint: /magic-link - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.magicLink.magicLinkControllerGetMagicLinks(); - console.log(result); -})(); - -``` - -### **magicLinkControllerGetMagicLink** - -- HTTP Method: GET -- Endpoint: /magic-link/single - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.magicLink.magicLinkControllerGetMagicLink('id'); - console.log(result); -})(); - -``` - - -### **passthroughControllerPassthroughRequest** - -- HTTP Method: POST -- Endpoint: /passthrough - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| integrationId | string | | -| linkedUserId | string | | -| input | object | Request body. | - - - -**Return Type** - -PassThroughResponse - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { data: {}, headers_: {}, method: 'GET', path: 'path' }; - const result = await sdk.passthrough.passthroughControllerPassthroughRequest( - input, - 'integrationId', - 'linkedUserId', - ); - console.log(result); -})(); - -``` - - -### **contactControllerAddContacts** - -- HTTP Method: POST -- Endpoint: /crm/contact - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| integrationId | string | | -| linkedUserId | string | | -| input | object | Request body. | - -**Optional Parameters** - -Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'} - -| Name | Type| Description | -| :-------- | :----------| :----------| -| remoteData | boolean | | - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = [{}, {}]; - const result = await sdk.crmContact.contactControllerAddContacts( - input, - 'integrationId', - 'linkedUserId', - { remoteData: true }, - ); - console.log(result); -})(); - -``` - -### **contactControllerGetContacts** - -- HTTP Method: GET -- Endpoint: /crm/contact - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| integrationId | string | | -| linkedUserId | string | | - -**Optional Parameters** - -Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'} - -| Name | Type| Description | -| :-------- | :----------| :----------| -| remoteData | boolean | | - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.crmContact.contactControllerGetContacts( - 'integrationId', - 'linkedUserId', - { remoteData: true }, - ); - console.log(result); -})(); - -``` - -### **contactControllerUpdateContact** - -- HTTP Method: PATCH -- Endpoint: /crm/contact - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.crmContact.contactControllerUpdateContact('id'); - console.log(result); -})(); - -``` - -### **contactControllerGetContact** - -- HTTP Method: GET -- Endpoint: /crm/contact/{id} - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - -**Optional Parameters** - -Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'} - -| Name | Type| Description | -| :-------- | :----------| :----------| -| remoteData | boolean | | - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.crmContact.contactControllerGetContact('id', { remoteData: true }); - console.log(result); -})(); - -``` - - - - -## License -License: MIT. See license in LICENSE. - diff --git a/packages/sdk/output/typescript/examples/.env.example b/packages/sdk/output/typescript/examples/.env.example deleted file mode 100644 index 811d7911a..000000000 --- a/packages/sdk/output/typescript/examples/.env.example +++ /dev/null @@ -1 +0,0 @@ -TESTSDK_TOKEN= diff --git a/packages/sdk/output/typescript/examples/README.md b/packages/sdk/output/typescript/examples/README.md deleted file mode 100644 index e67600da6..000000000 --- a/packages/sdk/output/typescript/examples/README.md +++ /dev/null @@ -1,23 +0,0 @@ -# testsdk-example -A basic example of how to use the testsdk package. - -## Installation - -In the event `testsdk` is not published to npm, you can install it locally by running the following command in the examples folder: -```sh -npm run setup -``` - -This will rebuild the parent package and install it locally. - -Otherwise you can install it from npm: -```sh -npm install testsdk -``` - -## Usage - -To run the example, run the following command in the examples folder: -```sh -npm run start -``` diff --git a/packages/sdk/output/typescript/examples/package.json b/packages/sdk/output/typescript/examples/package.json deleted file mode 100644 index 22a80b614..000000000 --- a/packages/sdk/output/typescript/examples/package.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "testsdk-example", - "version": "1.0.0", - "private": true, - "dependencies": { - "testsdk": "file:../" - }, - "scripts": { - "setup": "npm --prefix ../ install && npm --prefix ../ run build && npm install", - "start": "tsc && node -r dotenv/config dist/index.js", - "dev": "ts-node src/index.ts" - }, - "devDependencies": { - "ts-node": "^10.9.1", - "typescript": "4.8.4", - "dotenv": "^8.2.0" - } -} diff --git a/packages/sdk/output/typescript/examples/src/index.ts b/packages/sdk/output/typescript/examples/src/index.ts deleted file mode 100644 index f306502b7..000000000 --- a/packages/sdk/output/typescript/examples/src/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Testsdk } from 'testsdk'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.main.appControllerGetHello(); - console.log(result); -})(); diff --git a/packages/sdk/output/typescript/examples/tsconfig.json b/packages/sdk/output/typescript/examples/tsconfig.json deleted file mode 100644 index 6cb81edc5..000000000 --- a/packages/sdk/output/typescript/examples/tsconfig.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "compilerOptions": { - /* Visit https://aka.ms/tsconfig to read more about this file */ - - /* Projects */ - // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ - // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ - // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ - // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ - // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ - // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ - - /* Language and Environment */ - "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ - // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ - // "jsx": "preserve", /* Specify what JSX code is generated. */ - // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ - // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ - // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ - // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ - // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ - // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ - // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ - // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ - // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ - - /* Modules */ - "module": "commonjs", /* Specify what module code is generated. */ - "rootDir": "./src", /* Specify the root folder within your source files. */ - // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ - // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ - // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ - // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ - // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ - // "types": [], /* Specify type package names to be included without being referenced in a source file. */ - // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ - // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ - // "resolveJsonModule": true, /* Enable importing .json files. */ - // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ - - /* JavaScript Support */ - // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ - // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ - // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ - - /* Emit */ - // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ - // "declarationMap": true, /* Create sourcemaps for d.ts files. */ - // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ - // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ - // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ - "outDir": "./dist", /* Specify an output folder for all emitted files. */ - // "removeComments": true, /* Disable emitting comments. */ - // "noEmit": true, /* Disable emitting files from a compilation. */ - // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ - // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ - // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ - // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ - // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ - // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ - // "newLine": "crlf", /* Set the newline character for emitting files. */ - // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ - // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ - // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ - // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ - // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ - // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ - - /* Interop Constraints */ - // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ - // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ - "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ - // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ - "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ - - /* Type Checking */ - "strict": true, /* Enable all strict type-checking options. */ - // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ - // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ - // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ - // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ - // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ - // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ - // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ - // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ - // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ - // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ - // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ - // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ - // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ - // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ - // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ - // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ - // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ - - /* Completeness */ - // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ - "skipLibCheck": true /* Skip type checking all .d.ts files. */ - } -} diff --git a/packages/sdk/output/typescript/install.sh b/packages/sdk/output/typescript/install.sh deleted file mode 100644 index 188562687..000000000 --- a/packages/sdk/output/typescript/install.sh +++ /dev/null @@ -1,2 +0,0 @@ -npm install -npm run test diff --git a/packages/sdk/output/typescript/jest.config.json b/packages/sdk/output/typescript/jest.config.json deleted file mode 100644 index 2717f5891..000000000 --- a/packages/sdk/output/typescript/jest.config.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "preset": "ts-jest", - "testEnvironment": "node" -} diff --git a/packages/sdk/output/typescript/package-lock.json b/packages/sdk/output/typescript/package-lock.json deleted file mode 100644 index 85d2c9a93..000000000 --- a/packages/sdk/output/typescript/package-lock.json +++ /dev/null @@ -1,6197 +0,0 @@ -{ - "name": "testsdk", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "name": "testsdk", - "version": "1.0.0", - "license": "MIT", - "dependencies": { - "axios": "^1.5.1" - }, - "devDependencies": { - "@types/jest": "^29.5.6", - "@types/node": "^17.0.23", - "@typescript-eslint/eslint-plugin": "^5.43.0", - "@typescript-eslint/parser": "^5.43.0", - "eslint": "^8.20.0", - "eslint-config-airbnb-base": "^15.0.0", - "eslint-config-airbnb-typescript": "^17.0.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-prettier": "^4.2.1", - "jest": "^29.7.0", - "nock": "^13.2.4", - "prettier": "^2.6.2", - "ts-jest": "^29.1.1", - "typescript": "4.8.4" - } - }, - "node_modules/@aashutoshrathi/word-wrap": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz", - "integrity": "sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.23.5.tgz", - "integrity": "sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.23.4", - "chalk": "^2.4.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/code-frame/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/code-frame/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/code-frame/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", - "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.23.6.tgz", - "integrity": "sha512-FxpRyGjrMJXh7X3wGLGhNDCRiwpWEF74sKjTLDJSG5Kyvow3QZaG0Adbqzi9ZrVjTWpsX+2cxWXD71NMg93kdw==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.23.6", - "@babel/parser": "^7.23.6", - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.6", - "@babel/types": "^7.23.6", - "convert-source-map": "^2.0.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.3", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/generator": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.6.tgz", - "integrity": "sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.23.6", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", - "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-validator-option": "^7.23.5", - "browserslist": "^4.22.2", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.23.4.tgz", - "integrity": "sha512-803gmbQdqwdf4olxrX4AJyFBV/RTr3rSmOj0rKwesmzlfhYNDEs+/iOcznzpNWlJlIlTJC2QfPFcHB6DlzdVLQ==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.23.6.tgz", - "integrity": "sha512-wCfsbN4nBidDRhpDhvcKlzHWCTlgJYUUdSJfzXb2NuBssDSIjc3xcb+znA7l+zYsFljAcGM0aFkN40cR3lXiGA==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/traverse": "^7.23.6", - "@babel/types": "^7.23.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.23.4.tgz", - "integrity": "sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/parser": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.6.tgz", - "integrity": "sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==", - "dev": true, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", - "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", - "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.6.tgz", - "integrity": "sha512-czastdK1e8YByZqezMPFiZ8ahwVMh/ESl9vPgvgdB9AmFMGP5jfpFax74AQgl5zj4XHzqeYAg2l8PuUeRS1MgQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/generator": "^7.23.6", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.6", - "@babel/types": "^7.23.6", - "debug": "^4.3.1", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/types": { - "version": "7.23.6", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.6.tgz", - "integrity": "sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==", - "dev": true, - "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "node_modules/@eslint-community/eslint-utils": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz", - "integrity": "sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" - } - }, - "node_modules/@eslint-community/regexpp": { - "version": "4.10.0", - "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz", - "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==", - "dev": true, - "engines": { - "node": "^12.0.0 || ^14.0.0 || >=16.0.0" - } - }, - "node_modules/@eslint/eslintrc": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", - "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", - "dev": true, - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.6.0", - "globals": "^13.19.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/@eslint/js": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.56.0.tgz", - "integrity": "sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.13", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.13.tgz", - "integrity": "sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==", - "dev": true, - "dependencies": { - "@humanwhocodes/object-schema": "^2.0.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", - "dev": true, - "engines": { - "node": ">=12.22" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" - } - }, - "node_modules/@humanwhocodes/object-schema": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.1.tgz", - "integrity": "sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==", - "dev": true - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", - "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", - "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/reporters": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.7.0", - "jest-config": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-resolve-dependencies": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "jest-watcher": "^29.7.0", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", - "dev": true, - "dependencies": { - "expect": "^29.7.0", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", - "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.6.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", - "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/types": "^29.6.3", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", - "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", - "dev": true, - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^6.0.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/source-map": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", - "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-result": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", - "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", - "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", - "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.3", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", - "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.20", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz", - "integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.1.0", - "@jridgewell/sourcemap-codec": "^1.4.14" - } - }, - "node_modules/@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "dev": true, - "dependencies": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true - }, - "node_modules/@sinonjs/commons": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", - "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", - "dev": true, - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "node_modules/@types/babel__core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", - "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.8", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", - "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.4", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", - "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.4", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.4.tgz", - "integrity": "sha512-mSM/iKUk5fDDrEV/e83qY+Cr3I1+Q3qqTuEn++HAWYjEa1+NxZr6CNrcJGf2ZTnq4HoFGC3zaTPZTobCzCFukA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.9", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", - "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", - "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", - "dev": true - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", - "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", - "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "29.5.11", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.11.tgz", - "integrity": "sha512-S2mHmYIVe13vrm6q4kN6fLYYAka15ALQki/vgDC3mIukEOx8WJlv0kQPM+d4w8Gp6u0uSdKND04IlTXBv0rwnQ==", - "dev": true, - "dependencies": { - "expect": "^29.0.0", - "pretty-format": "^29.0.0" - } - }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "dev": true - }, - "node_modules/@types/json5": { - "version": "0.0.29", - "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", - "dev": true - }, - "node_modules/@types/node": { - "version": "17.0.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.45.tgz", - "integrity": "sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==", - "dev": true - }, - "node_modules/@types/semver": { - "version": "7.5.6", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.6.tgz", - "integrity": "sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==", - "dev": true - }, - "node_modules/@types/stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", - "dev": true - }, - "node_modules/@types/yargs": { - "version": "17.0.32", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", - "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.3", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", - "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", - "dev": true - }, - "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.62.0.tgz", - "integrity": "sha512-TiZzBSJja/LbhNPvk6yc0JrX9XqhQ0hdh6M2svYfsHGejaKFIAGd9MQ+ERIMzLGlN/kZoYIgdxFV0PuljTKXag==", - "dev": true, - "dependencies": { - "@eslint-community/regexpp": "^4.4.0", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/type-utils": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "natural-compare-lite": "^1.4.0", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "@typescript-eslint/parser": "^5.0.0", - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/parser": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.62.0.tgz", - "integrity": "sha512-VlJEV0fOQ7BExOsHYAGrgbEiZoi8D+Bl2+f6V2RrXerRSylnp+ZBHmPvaIa8cz0Ajx7WO7Z5RqfgYg7ED1nRhA==", - "dev": true, - "dependencies": { - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "debug": "^4.3.4" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz", - "integrity": "sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/type-utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.62.0.tgz", - "integrity": "sha512-xsSQreu+VnfbqQpW5vnCJdq1Z3Q0U31qiWmRhr98ONQmcp/yhiPJFPq8MXiJVLiksmOKSjIldZzkebzHuCGzew==", - "dev": true, - "dependencies": { - "@typescript-eslint/typescript-estree": "5.62.0", - "@typescript-eslint/utils": "5.62.0", - "debug": "^4.3.4", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "*" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/types": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.62.0.tgz", - "integrity": "sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz", - "integrity": "sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/visitor-keys": "5.62.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@typescript-eslint/utils": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.62.0.tgz", - "integrity": "sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.62.0", - "@typescript-eslint/types": "5.62.0", - "@typescript-eslint/typescript-estree": "5.62.0", - "eslint-scope": "^5.1.1", - "semver": "^7.3.7" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.62.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz", - "integrity": "sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw==", - "dev": true, - "dependencies": { - "@typescript-eslint/types": "5.62.0", - "eslint-visitor-keys": "^3.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - } - }, - "node_modules/@ungap/structured-clone": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", - "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", - "dev": true - }, - "node_modules/acorn": { - "version": "8.11.2", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz", - "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "dev": true, - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-escapes/node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.0.tgz", - "integrity": "sha512-LPuwb2P+NrQw3XhxGc36+XSvuBPopovXYTR9Ew++Du9Yb/bx5AzBfrIsBoj0EZUifjQU+sHL21sseZ3jerWO/A==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "is-array-buffer": "^3.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-includes": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/array-includes/-/array-includes-3.1.7.tgz", - "integrity": "sha512-dlcsNBIiWhPkHdOEEKnehA+RNUWDc4UqFtnIXU4uuYDPtA4LDkr7qip2p0VvFAEXNDr0yWZ9PJyIRiGjRLQzwQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "is-string": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/array.prototype.findlastindex": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz", - "integrity": "sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0", - "get-intrinsic": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flat": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz", - "integrity": "sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/array.prototype.flatmap": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/array.prototype.flatmap/-/array.prototype.flatmap-1.3.2.tgz", - "integrity": "sha512-Ewyx0c9PmpcsByhSW4r+9zDU7sGjFc86qf/kKtuSCRdhfbk0SNLLkaT5qvcHnRGgc5NP/ly/y+qkXkqONX54CQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "es-shim-unscopables": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.2.tgz", - "integrity": "sha512-yMBKppFur/fbHu9/6USUe03bZ4knMYiwFBcyiaXB8Go0qNehwX6inYPzK9U0NeQvGxKthcmHcaR8P5MStSRBAw==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1", - "is-array-buffer": "^3.0.2", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "node_modules/available-typed-arrays": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", - "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/axios": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", - "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, - "node_modules/babel-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", - "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", - "dev": true, - "dependencies": { - "@jest/transform": "^29.7.0", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.6.3", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", - "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", - "dev": true, - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-preset-jest": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", - "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.22.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.2.tgz", - "integrity": "sha512-0UgcrvQmBDvZHFGdYUehrCNIazki7/lUP3kkoi/r3YB2amZbFM9J43ZRkJTXBUZK4gmx56+Sqk9+Vs9mwZx9+A==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001565", - "electron-to-chromium": "^1.4.601", - "node-releases": "^2.0.14", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/call-bind": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.5.tgz", - "integrity": "sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.1", - "set-function-length": "^1.1.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001570", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001570.tgz", - "integrity": "sha512-+3e0ASu4sw1SWaoCtvPeyXp+5PsjigkSt8OXZbF9StH5pQWbxEjLAZE3n8Aup5udop1uRiKA7a4utUk/uoSpUw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", - "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", - "dev": true - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true - }, - "node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", - "dev": true - }, - "node_modules/confusing-browser-globals": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz", - "integrity": "sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==", - "dev": true - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/create-jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", - "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "prompts": "^2.0.1" - }, - "bin": { - "create-jest": "bin/create-jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/dedent": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.1.tgz", - "integrity": "sha512-+LxW+KLWxu3HW3M2w2ympwtqPrqYRzU8fqi6Fhd18fBALe15blJPI/I4+UHveMVG6lJqB4JNd4UG0S5cnVHwIg==", - "dev": true, - "peerDependencies": { - "babel-plugin-macros": "^3.1.0" - }, - "peerDependenciesMeta": { - "babel-plugin-macros": { - "optional": true - } - } - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/deepmerge": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", - "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/define-data-property": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.1.tgz", - "integrity": "sha512-E7uGkTzkk1d0ByLeSc6ZsFS79Axg+m1P/VsgYsxHgiuc3tFSj+MjMIwe90FC4lOAZzNBdY7kkO2P2wKdsQ1vgQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/diff-sequences": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", - "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/doctrine": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", - "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.614", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.614.tgz", - "integrity": "sha512-X4ze/9Sc3QWs6h92yerwqv7aB/uU8vCjZcrMjA8N9R1pjMFRe44dLsck5FzLilOYvcXuDn93B+bpGYyufc70gQ==", - "dev": true - }, - "node_modules/emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-abstract": { - "version": "1.22.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.22.3.tgz", - "integrity": "sha512-eiiY8HQeYfYH2Con2berK+To6GrK2RxbPawDkGq4UiCQQfZHb6wX9qQqkbpPqaxQFcl8d9QzZqo0tGE0VcrdwA==", - "dev": true, - "dependencies": { - "array-buffer-byte-length": "^1.0.0", - "arraybuffer.prototype.slice": "^1.0.2", - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.5", - "es-set-tostringtag": "^2.0.1", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.2", - "get-symbol-description": "^1.0.0", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0", - "internal-slot": "^1.0.5", - "is-array-buffer": "^3.0.2", - "is-callable": "^1.2.7", - "is-negative-zero": "^2.0.2", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.2", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.12", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.4", - "regexp.prototype.flags": "^1.5.1", - "safe-array-concat": "^1.0.1", - "safe-regex-test": "^1.0.0", - "string.prototype.trim": "^1.2.8", - "string.prototype.trimend": "^1.0.7", - "string.prototype.trimstart": "^1.0.7", - "typed-array-buffer": "^1.0.0", - "typed-array-byte-length": "^1.0.0", - "typed-array-byte-offset": "^1.0.0", - "typed-array-length": "^1.0.4", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz", - "integrity": "sha512-BuDyupZt65P9D2D2vA/zqcI3G5xRsklm5N3xCwuiy+/vKy8i0ifdsQP1sLgO4tZDSCaQUSnmC48khknGMV3D2Q==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.2", - "has-tostringtag": "^1.0.0", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" - } - }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/eslint": { - "version": "8.56.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.56.0.tgz", - "integrity": "sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ==", - "dev": true, - "dependencies": { - "@eslint-community/eslint-utils": "^4.2.0", - "@eslint-community/regexpp": "^4.6.1", - "@eslint/eslintrc": "^2.1.4", - "@eslint/js": "8.56.0", - "@humanwhocodes/config-array": "^0.11.13", - "@humanwhocodes/module-importer": "^1.0.1", - "@nodelib/fs.walk": "^1.2.8", - "@ungap/structured-clone": "^1.2.0", - "ajv": "^6.12.4", - "chalk": "^4.0.0", - "cross-spawn": "^7.0.2", - "debug": "^4.3.2", - "doctrine": "^3.0.0", - "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.2.2", - "eslint-visitor-keys": "^3.4.3", - "espree": "^9.6.1", - "esquery": "^1.4.2", - "esutils": "^2.0.2", - "fast-deep-equal": "^3.1.3", - "file-entry-cache": "^6.0.1", - "find-up": "^5.0.0", - "glob-parent": "^6.0.2", - "globals": "^13.19.0", - "graphemer": "^1.4.0", - "ignore": "^5.2.0", - "imurmurhash": "^0.1.4", - "is-glob": "^4.0.0", - "is-path-inside": "^3.0.3", - "js-yaml": "^4.1.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.4.1", - "lodash.merge": "^4.6.2", - "minimatch": "^3.1.2", - "natural-compare": "^1.4.0", - "optionator": "^0.9.3", - "strip-ansi": "^6.0.1", - "text-table": "^0.2.0" - }, - "bin": { - "eslint": "bin/eslint.js" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint-config-airbnb-base": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz", - "integrity": "sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==", - "dev": true, - "dependencies": { - "confusing-browser-globals": "^1.0.10", - "object.assign": "^4.1.2", - "object.entries": "^1.1.5", - "semver": "^6.3.0" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - }, - "peerDependencies": { - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.2" - } - }, - "node_modules/eslint-config-airbnb-base/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-config-airbnb-typescript": { - "version": "17.1.0", - "resolved": "https://registry.npmjs.org/eslint-config-airbnb-typescript/-/eslint-config-airbnb-typescript-17.1.0.tgz", - "integrity": "sha512-GPxI5URre6dDpJ0CtcthSZVBAfI+Uw7un5OYNVxP2EYi3H81Jw701yFP7AU+/vCE7xBtFmjge7kfhhk4+RAiig==", - "dev": true, - "dependencies": { - "eslint-config-airbnb-base": "^15.0.0" - }, - "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.13.0 || ^6.0.0", - "@typescript-eslint/parser": "^5.0.0 || ^6.0.0", - "eslint": "^7.32.0 || ^8.2.0", - "eslint-plugin-import": "^2.25.3" - } - }, - "node_modules/eslint-config-prettier": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz", - "integrity": "sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==", - "dev": true, - "bin": { - "eslint-config-prettier": "bin/cli.js" - }, - "peerDependencies": { - "eslint": ">=7.0.0" - } - }, - "node_modules/eslint-import-resolver-node": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz", - "integrity": "sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==", - "dev": true, - "dependencies": { - "debug": "^3.2.7", - "is-core-module": "^2.13.0", - "resolve": "^1.22.4" - } - }, - "node_modules/eslint-import-resolver-node/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-module-utils": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/eslint-module-utils/-/eslint-module-utils-2.8.0.tgz", - "integrity": "sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==", - "dev": true, - "dependencies": { - "debug": "^3.2.7" - }, - "engines": { - "node": ">=4" - }, - "peerDependenciesMeta": { - "eslint": { - "optional": true - } - } - }, - "node_modules/eslint-module-utils/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import": { - "version": "2.29.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz", - "integrity": "sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw==", - "dev": true, - "dependencies": { - "array-includes": "^3.1.7", - "array.prototype.findlastindex": "^1.2.3", - "array.prototype.flat": "^1.3.2", - "array.prototype.flatmap": "^1.3.2", - "debug": "^3.2.7", - "doctrine": "^2.1.0", - "eslint-import-resolver-node": "^0.3.9", - "eslint-module-utils": "^2.8.0", - "hasown": "^2.0.0", - "is-core-module": "^2.13.1", - "is-glob": "^4.0.3", - "minimatch": "^3.1.2", - "object.fromentries": "^2.0.7", - "object.groupby": "^1.0.1", - "object.values": "^1.1.7", - "semver": "^6.3.1", - "tsconfig-paths": "^3.15.0" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" - } - }, - "node_modules/eslint-plugin-import/node_modules/debug": { - "version": "3.2.7", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", - "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", - "dev": true, - "dependencies": { - "ms": "^2.1.1" - } - }, - "node_modules/eslint-plugin-import/node_modules/doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "dependencies": { - "esutils": "^2.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/eslint-plugin-import/node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", - "dev": true, - "dependencies": { - "prettier-linter-helpers": "^1.0.0" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" - }, - "peerDependenciesMeta": { - "eslint-config-prettier": { - "optional": true - } - } - }, - "node_modules/eslint-scope": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", - "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^4.1.1" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", - "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", - "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", - "dev": true, - "dependencies": { - "esrecurse": "^4.3.0", - "estraverse": "^5.2.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/eslint/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/esquery": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", - "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", - "dev": true, - "dependencies": { - "estraverse": "^5.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/esquery/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", - "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", - "dev": true, - "dependencies": { - "estraverse": "^5.2.0" - }, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esrecurse/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expect": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", - "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", - "dev": true, - "dependencies": { - "@jest/expect-utils": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-diff": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.3.0.tgz", - "integrity": "sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-glob/node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", - "dev": true, - "dependencies": { - "reusify": "^1.0.4" - } - }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/file-entry-cache": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", - "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", - "dev": true, - "dependencies": { - "flat-cache": "^3.0.4" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat-cache": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz", - "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", - "dev": true, - "dependencies": { - "flatted": "^3.2.9", - "keyv": "^4.5.3", - "rimraf": "^3.0.2" - }, - "engines": { - "node": "^10.12.0 || >=12.0.0" - } - }, - "node_modules/flatted": { - "version": "3.2.9", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.9.tgz", - "integrity": "sha512-36yxDn5H7OFZQla0/jFJmbIKTdZAQHngCedGxiMmpNfEZM0sdEeT+WczLQrjK6D7o2aiyLYDnkw0R3JK0Qv1RQ==", - "dev": true - }, - "node_modules/follow-redirects": { - "version": "1.15.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.3.tgz", - "integrity": "sha512-1VzOtuEM8pC9SFU1E+8KfTjZyMztRsgEfwQl44z8A25uy13jSzTj6dyK2Df52iV0vgHCfBwLhDWevLn95w5v6Q==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } - }, - "node_modules/for-each": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", - "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.3" - } - }, - "node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.2.tgz", - "integrity": "sha512-0gSo4ml/0j98Y3lngkFEot/zhiCeWsbYIlZ+uZOVgzLyLaUw7wxUL+nCTP0XJvJg1AXulJRI3UJi8GsbDuxdGA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.0.tgz", - "integrity": "sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", - "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", - "dev": true, - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/globals": { - "version": "13.24.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", - "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.20.2" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, - "node_modules/graphemer": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", - "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", - "dev": true - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", - "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", - "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.0.tgz", - "integrity": "sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz", - "integrity": "sha512-vUptKVTpIJhcczKBbgnS+RtcuYMB8+oNzPK2/Hp3hanz8JmpATdmmgLgSaadVREkDm+e2giHwY3ZRkyjSIDDFA==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/ignore": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.0.tgz", - "integrity": "sha512-g7dmpshy+gD7mh88OC9NwSGTKoc3kyLAZQRU1mt53Aw/vnvfXnbC+F/7F7QoYVKbV+KNvJx8wArewKy1vXMtlg==", - "dev": true, - "engines": { - "node": ">= 4" - } - }, - "node_modules/import-fresh": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", - "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", - "dev": true, - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/internal-slot": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.6.tgz", - "integrity": "sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.2.2", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.2.tgz", - "integrity": "sha512-y+FyyR/w8vfIRq4eQcM1EYgSTnmHXPqaF+IgzgraytCFq5Xh8lllDVmAZolPJiZttZLeFSINPYMaEJ7/vWUa1w==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.0", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-core-module": { - "version": "2.13.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", - "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dev": true, - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", - "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.2.tgz", - "integrity": "sha512-sqN2UDu1/0y6uvXyStCOzyhAjCSlHceFoMKJW8W9EU9cvic/QdsZ0kEU93HEy3IUEFZIiH/3w+AH/UQbPHNdhA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.12.tgz", - "integrity": "sha512-Z14TF2JNG8Lss5/HMqt0//T9JeHXttXy5pH/DBU4vi98ozO2btxzq9MwYDZYnKwU8nRsz/+GVFVRDq3DkVuSPg==", - "dev": true, - "dependencies": { - "which-typed-array": "^1.1.11" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", - "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.1.tgz", - "integrity": "sha512-EAMEJBsYuyyztxMxW3g7ugGPkrZsV57v0Hmv3mm1uQsmB+QnZuepg731CRaIgeUVSdmsTngOkSnauNF8p7FIhA==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", - "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^4.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-reports": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", - "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", - "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", - "dev": true, - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/types": "^29.6.3", - "import-local": "^3.0.2", - "jest-cli": "^29.7.0" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-changed-files": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", - "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", - "dev": true, - "dependencies": { - "execa": "^5.0.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", - "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/expect": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^1.0.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.7.0", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "p-limit": "^3.1.0", - "pretty-format": "^29.7.0", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-cli": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", - "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", - "dev": true, - "dependencies": { - "@jest/core": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "create-jest": "^29.7.0", - "exit": "^0.1.2", - "import-local": "^3.0.2", - "jest-config": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-config": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", - "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-jest": "^29.7.0", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-runner": "^29.7.0", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/jest-diff": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", - "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.6.3", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-docblock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", - "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", - "dev": true, - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", - "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "jest-util": "^29.7.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-environment-node": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", - "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", - "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-haste-map": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", - "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.6.3", - "jest-util": "^29.7.0", - "jest-worker": "^29.7.0", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "node_modules/jest-leak-detector": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", - "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", - "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", - "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", - "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.7.0", - "jest-validate": "^29.7.0", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", - "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", - "dev": true, - "dependencies": { - "jest-regex-util": "^29.6.3", - "jest-snapshot": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runner": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", - "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", - "dev": true, - "dependencies": { - "@jest/console": "^29.7.0", - "@jest/environment": "^29.7.0", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.7.0", - "jest-environment-node": "^29.7.0", - "jest-haste-map": "^29.7.0", - "jest-leak-detector": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-resolve": "^29.7.0", - "jest-runtime": "^29.7.0", - "jest-util": "^29.7.0", - "jest-watcher": "^29.7.0", - "jest-worker": "^29.7.0", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runtime": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", - "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/globals": "^29.7.0", - "@jest/source-map": "^29.6.3", - "@jest/test-result": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-regex-util": "^29.6.3", - "jest-resolve": "^29.7.0", - "jest-snapshot": "^29.7.0", - "jest-util": "^29.7.0", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", - "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.7.0", - "@jest/transform": "^29.7.0", - "@jest/types": "^29.6.3", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.7.0", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.7.0", - "jest-get-type": "^29.6.3", - "jest-matcher-utils": "^29.7.0", - "jest-message-util": "^29.7.0", - "jest-util": "^29.7.0", - "natural-compare": "^1.4.0", - "pretty-format": "^29.7.0", - "semver": "^7.5.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", - "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.6.3", - "leven": "^3.1.0", - "pretty-format": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-watcher": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", - "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.7.0", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", - "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", - "dev": true, - "dependencies": { - "@types/node": "*", - "jest-util": "^29.7.0", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", - "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", - "dev": true - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "node_modules/json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", - "dev": true - }, - "node_modules/json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/keyv": { - "version": "4.5.4", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", - "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", - "dev": true, - "dependencies": { - "json-buffer": "3.0.1" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/levn": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", - "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1", - "type-check": "~0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", - "dev": true - }, - "node_modules/lodash.merge": { - "version": "4.6.2", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", - "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/make-dir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", - "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", - "dev": true, - "dependencies": { - "semver": "^7.5.3" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", - "dev": true, - "dependencies": { - "braces": "^3.0.2", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/natural-compare-lite": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare-lite/-/natural-compare-lite-1.4.0.tgz", - "integrity": "sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==", - "dev": true - }, - "node_modules/nock": { - "version": "13.4.0", - "resolved": "https://registry.npmjs.org/nock/-/nock-13.4.0.tgz", - "integrity": "sha512-W8NVHjO/LCTNA64yxAPHV/K47LpGYcVzgKd3Q0n6owhwvD0Dgoterc25R4rnZbckJEb6Loxz1f5QMuJpJnbSyQ==", - "dev": true, - "dependencies": { - "debug": "^4.1.0", - "json-stringify-safe": "^5.0.1", - "propagate": "^2.0.0" - }, - "engines": { - "node": ">= 10.13" - } - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", - "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", - "dev": true - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.entries": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/object.entries/-/object.entries-1.1.7.tgz", - "integrity": "sha512-jCBs/0plmPsOnrKAfFQXRG2NFjlhZgjjcBLSmTnEhU8U6vVTsVe8ANeQJCHTl3gSsI4J+0emOoCgoKlmQPMgmA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object.fromentries": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/object.fromentries/-/object.fromentries-2.0.7.tgz", - "integrity": "sha512-UPbPHML6sL8PI/mOqPwsH4G6iyXcCGzLin8KvEPenOZN5lpCNBZZQ+V62vdjB1mQHrmqGQt5/OJzemUA+KJmEA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object.groupby": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object.groupby/-/object.groupby-1.0.1.tgz", - "integrity": "sha512-HqaQtqLnp/8Bn4GL16cj+CUYbnpe1bh0TtEaWvybszDG4tgxCJuRpV8VGuvNaI1fAnI4lUJzDG55MXcOH4JZcQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "get-intrinsic": "^1.2.1" - } - }, - "node_modules/object.values": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.7.tgz", - "integrity": "sha512-aU6xnDFYT3x17e/f0IiiwlGPTy2jzMySGfUB4fq6z7CV8l85CWHDk5ErhyhpfDHhrOMwGFhSQkhMGHaIotA6Ng==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz", - "integrity": "sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==", - "dev": true, - "dependencies": { - "@aashutoshrathi/word-wrap": "^1.2.3", - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/pkg-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/pkg-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/prelude-ls": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", - "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/prettier-linter-helpers": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz", - "integrity": "sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==", - "dev": true, - "dependencies": { - "fast-diff": "^1.1.2" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/propagate": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", - "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/pure-rand": { - "version": "6.0.4", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.4.tgz", - "integrity": "sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ] - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.1.tgz", - "integrity": "sha512-sy6TXMN+hnP/wMy+ISxg3krXx7BAtWVO4UouuCN/ziM9UEne0euamVNafDfvC83bRNr95y0V5iijeDQFUNpvrg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "set-function-name": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/resolve": { - "version": "1.22.8", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", - "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", - "dev": true, - "dependencies": { - "is-core-module": "^2.13.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-cwd/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/resolve.exports": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", - "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true, - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.0.1.tgz", - "integrity": "sha512-6XbUAseYE2KtOuGueyeobCySj9L4+66Tn6KQMOPQJrAJEowYKW/YR/MGJZl7FdydUdaFu4LYyDZjxf4/Nmo23Q==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-regex-test": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", - "integrity": "sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/semver/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/set-function-length": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.1.1.tgz", - "integrity": "sha512-VoaqjbBJKiWtg4yRcKBQ7g7wnGnLV3M8oLvVWwOk2PdYY6PEFegR1vezXR0tw6fZGF9csVakIRjrJiy2veSBFQ==", - "dev": true, - "dependencies": { - "define-data-property": "^1.1.1", - "get-intrinsic": "^1.2.1", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", - "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", - "dev": true, - "dependencies": { - "define-data-property": "^1.0.1", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.8.tgz", - "integrity": "sha512-lfjY4HcixfQXOfaqCvcBuOIapyaroTXhbkfJN3gcB1OtyupngWK4sEET9Knd0cXd28kTUqu/kHoV4HKSJdnjiQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.7.tgz", - "integrity": "sha512-Ni79DqeB72ZFq1uH/L6zJ+DKZTkOtPIHovb3YZHQViE+HDouuU4mBrLOLDn5Dde3RF8qw5qVETEjhu9locMLvA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.7.tgz", - "integrity": "sha512-NGhtDFu3jCEm7B4Fy0DpLewdJQOZcQ0rGbwQ/+stjnrp2i+rlKeCvos9hOIeCmqwratM47OBxY7uFZzjxHXmrg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", - "dev": true - }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/ts-jest": { - "version": "29.1.1", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", - "integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==", - "dev": true, - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^29.0.0", - "json5": "^2.2.3", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "^7.5.3", - "yargs-parser": "^21.0.1" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@jest/types": "^29.0.0", - "babel-jest": "^29.0.0", - "jest": "^29.0.0", - "typescript": ">=4.3 <6" - }, - "peerDependenciesMeta": { - "@babel/core": { - "optional": true - }, - "@jest/types": { - "optional": true - }, - "babel-jest": { - "optional": true - }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/tsconfig-paths": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz", - "integrity": "sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==", - "dev": true, - "dependencies": { - "@types/json5": "^0.0.29", - "json5": "^1.0.2", - "minimist": "^1.2.6", - "strip-bom": "^3.0.0" - } - }, - "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", - "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", - "dev": true, - "dependencies": { - "minimist": "^1.2.0" - }, - "bin": { - "json5": "lib/cli.js" - } - }, - "node_modules/tsconfig-paths/node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/type-check": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", - "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", - "dev": true, - "dependencies": { - "prelude-ls": "^1.2.1" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.0.tgz", - "integrity": "sha512-Y8KTSIglk9OZEr8zywiIHG/kmQ7KWyjseXs1CbSo8vC42w7hg2HgYTxSWwP0+is7bWDc1H+Fo026CpHFwm8tkw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.0.tgz", - "integrity": "sha512-Or/+kvLxNpeQ9DtSydonMxCx+9ZXOswtwJn17SNLvhptaXYDJvkFFP5zbfU/uLmvnBJlI4yrnXRxpdWH/M5tNA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.0.tgz", - "integrity": "sha512-RD97prjEt9EL8YgAgpOkf3O4IF9lhJFr9g0htQkm0rchFp/Vx7LW5Q8fSXXub7BXAODyUQohRMyOc3faCPd0hg==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "has-proto": "^1.0.1", - "is-typed-array": "^1.1.10" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", - "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "for-each": "^0.3.3", - "is-typed-array": "^1.1.9" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dev": true, - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/v8-to-istanbul": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", - "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^2.0.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "dependencies": { - "makeerror": "1.0.12" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.13", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz", - "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.5", - "call-bind": "^1.0.4", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", - "dev": true - }, - "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/packages/sdk/output/typescript/package.json b/packages/sdk/output/typescript/package.json deleted file mode 100644 index b4fe85b42..000000000 --- a/packages/sdk/output/typescript/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "source": "./src/index.ts", - "exports": { - "require": "./dist/commonjs/index.js", - "types": "./dist/commonjs/index.d.ts", - "default": "./dist/esm/index.js" - }, - "main": "./dist/commonjs/index.js", - "module": "./dist/esm/index.js", - "browser": "./dist/index.umd.js", - "unpkg": "./dist/index.umd.js", - "types": "./dist/commonjs/index.d.ts", - "files": [ - "dist", - "README.md" - ], - "devDependencies": { - "@typescript-eslint/eslint-plugin": "^5.43.0", - "@typescript-eslint/parser": "^5.43.0", - "@types/node": "^17.0.23", - "@types/jest": "^29.5.6", - "eslint": "^8.20.0", - "eslint-config-airbnb-base": "^15.0.0", - "eslint-config-airbnb-typescript": "^17.0.0", - "eslint-config-prettier": "^8.5.0", - "eslint-plugin-import": "^2.26.0", - "eslint-plugin-prettier": "^4.2.1", - "jest": "^29.7.0", - "nock": "^13.2.4", - "prettier": "^2.6.2", - "ts-jest": "^29.1.1", - "typescript": "4.8.4" - }, - "scripts": { - "build": "npm run build:all", - "build:cjs": "tsc --module commonjs --outDir dist/commonjs", - "build:esm": "tsc --module esnext --outDir dist/esm", - "build:umd": "tsc --module umd --outDir dist/umd", - "build:all": "npm run build:cjs && npm run build:esm && npm run build:umd", - "lint": "eslint --ext .ts,.js ./src/ --resolve-plugins-relative-to .", - "lint:ci": "eslint --ext .ts,.js ./src/ --resolve-plugins-relative-to . --cache --quiet", - "lint:fix": "eslint --ext .ts,.js ./src/ --resolve-plugins-relative-to . --cache --fix", - "rebuild": "rm -rf dist/ && tsc", - "test": "jest --detectOpenHandles", - "watch": "rm -rf dist/ && tsc -w", - "version": "tsc --version", - "prepublishOnly": "npm run build" - }, - "name": "testsdk", - "description": "Testsdk - The Panora API description", - "version": "1.0.0", - "author": "Testsdk", - "dependencies": { - "axios": "^1.5.1" - }, - "license": "MIT" -} diff --git a/packages/sdk/output/typescript/src/BaseService.ts b/packages/sdk/output/typescript/src/BaseService.ts deleted file mode 100644 index 528923a79..000000000 --- a/packages/sdk/output/typescript/src/BaseService.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Environment } from './http/Environment'; -import HTTPLibrary from './http/HTTPLibrary'; -import { Headers } from './http/HTTPClient'; - -export default class BaseService { - public baseUrl: string = Environment.DEFAULT; - - public httpClient = new HTTPLibrary(); - - private accessToken: string = ''; - - private accessTokenPrefix: string = 'Bearer'; - - setAccessToken(accessToken: string): void { - this.accessToken = accessToken; - } - - getAuthorizationHeader(): Headers { - const accessTokenAuth = { Authorization: `${this.accessTokenPrefix} ${this.accessToken}` }; - - return { ...accessTokenAuth }; - } - - setBaseUrl(url: string): void { - this.baseUrl = url; - } - - constructor(accessToken: string = '') { - this.setAccessToken(accessToken); - } - - static patternMatching(value: string, pattern: string, variableName: string): string { - if (!value) { - throw new Error(`${variableName} cannot be null or undefined`); - } - if (!value.match(new RegExp(pattern))) { - throw new Error(`Invalid value for ${variableName}: must match ${pattern}`); - } - return value; - } - - static urlEncode = (input: { [key: string]: any }): string => - Object.keys(input) - .map((key) => `${key}=${encodeURIComponent(input[key])}`) - .join('&'); -} diff --git a/packages/sdk/output/typescript/src/hooks/Hook.ts b/packages/sdk/output/typescript/src/hooks/Hook.ts deleted file mode 100644 index 443030bed..000000000 --- a/packages/sdk/output/typescript/src/hooks/Hook.ts +++ /dev/null @@ -1,28 +0,0 @@ -export interface Request { - method: string; - url: string; - input?: object; - headers: object; -} - -export interface Response { - data: object; - headers: object; - status: number; -} - -export interface Exception extends Error { - title: string; - type?: string; - detail?: string; - instance?: string; - statusCode: number; -} - -export interface Hook { - beforeRequest(request: Request): Promise; - - afterResponse(request: Request, response: Response): Promise; - - onError(error: Exception): Promise; -} diff --git a/packages/sdk/output/typescript/src/http/Environment.ts b/packages/sdk/output/typescript/src/http/Environment.ts deleted file mode 100644 index 91d159346..000000000 --- a/packages/sdk/output/typescript/src/http/Environment.ts +++ /dev/null @@ -1,3 +0,0 @@ -export enum Environment { - DEFAULT = 'http://api.example.com', -} diff --git a/packages/sdk/output/typescript/src/http/HTTPClient.ts b/packages/sdk/output/typescript/src/http/HTTPClient.ts deleted file mode 100644 index 2a37df8eb..000000000 --- a/packages/sdk/output/typescript/src/http/HTTPClient.ts +++ /dev/null @@ -1,12 +0,0 @@ -export interface Headers extends Record {} - -/** - * Defines the basic operations for an HTTP client. - */ -export default interface HTTPClient { - get(url: string, input: any, headers: Headers, retry?: boolean): Promise; - post(url: string, input: any, headers: Headers, retry?: boolean): Promise; - delete(url: string, input: any, headers: Headers, retry?: boolean): Promise; - put(url: string, input: any, headers: Headers, retry?: boolean): Promise; - patch(url: string, input: any, headers: Headers, retry?: boolean): Promise; -} diff --git a/packages/sdk/output/typescript/src/http/HTTPLibrary.ts b/packages/sdk/output/typescript/src/http/HTTPLibrary.ts deleted file mode 100644 index e915e0885..000000000 --- a/packages/sdk/output/typescript/src/http/HTTPLibrary.ts +++ /dev/null @@ -1,159 +0,0 @@ -import axios, { AxiosError } from 'axios'; - -import HTTPClient, { Headers } from './HTTPClient'; -import throwHttpError from './httpExceptions'; - -export default class HTTPLibrary implements HTTPClient { - readonly userAgentHeader: Headers = { - 'User-Agent': 'liblab/0.1.28 Testsdk/1.0.0 typescript/5.3.2', - }; - - readonly retryAttempts: number = 3; - - readonly retryDelayMs: number = 150; - - private static readonly responseMapper: Map = new Map([ - ['headers', 'headers_'], - ]); - - private readonly requestMapper: Map = new Map([ - ['headers_', 'headers'], - ]); - - async get(url: string, input: any, headers: Headers, retry: boolean = false): Promise { - const request = () => - axios.get(url, { - headers: { ...headers, ...this.getUserAgentHeader() }, - data: - Object.keys(input).length > 0 - ? HTTPLibrary.convertKeysWithMapper(input, this.requestMapper) - : undefined, - }); - - const response = retry - ? await this.retry(this.retryAttempts, request, this.retryDelayMs) - : await request(); - return HTTPLibrary.handleResponse(response); - } - - async post(url: string, input: any, headers: Headers, retry: boolean = false): Promise { - const request = () => - axios.post(url, HTTPLibrary.convertKeysWithMapper(input, this.requestMapper), { - headers: { ...headers, ...this.getUserAgentHeader() }, - }); - - const response = retry - ? await this.retry(this.retryAttempts, request, this.retryDelayMs) - : await request(); - - return HTTPLibrary.handleResponse(response); - } - - async delete(url: string, input: any, headers: Headers, retry: boolean = false): Promise { - const request = () => - axios.delete(url, { - headers: { ...headers, ...this.getUserAgentHeader() }, - data: HTTPLibrary.convertKeysWithMapper(input, this.requestMapper), - }); - - const response = retry - ? await this.retry(this.retryAttempts, request, this.retryDelayMs) - : await request(); - - return HTTPLibrary.handleResponse(response); - } - - async put(url: string, input: any, headers: Headers, retry: boolean = false): Promise { - const request = () => - axios.put(url, HTTPLibrary.convertKeysWithMapper(input, this.requestMapper), { - headers: { ...headers, ...this.getUserAgentHeader() }, - }); - - const response = retry - ? await this.retry(this.retryAttempts, request, this.retryDelayMs) - : await request(); - - return HTTPLibrary.handleResponse(response); - } - - async patch(url: string, input: any, headers: Headers, retry: boolean = false): Promise { - const request = () => - axios.patch(url, HTTPLibrary.convertKeysWithMapper(input, this.requestMapper), { - headers: { ...headers, ...this.getUserAgentHeader() }, - }); - - const response = retry - ? await this.retry(this.retryAttempts, request, this.retryDelayMs) - : await request(); - - return HTTPLibrary.handleResponse(response); - } - - async retry(retries: number, callbackFn: () => any, delay: number): Promise { - let result: any; - - try { - result = await callbackFn(); - } catch (e: any) { - if ((e as AxiosError).isAxiosError) { - if (e.response) { - if (![500, 503, 504].includes(e.response.status)) { - return e.response; - } - } - } - if (retries > 1) { - // eslint-disable-next-line no-promise-executor-return - await new Promise((resolve) => setTimeout(resolve, delay)); - result = await this.retry(retries - 1, callbackFn, delay * 2); - } else { - throw e; - } - } - - return result; - } - - private static handleResponse(response: any) { - if (response.status >= 400) { - throwHttpError(response); - } - - response.data = HTTPLibrary.convertKeysWithMapper(response.data, this.responseMapper); - - return response; - } - - private getUserAgentHeader(): Headers { - if (typeof window !== 'undefined') { - return {}; - } - return this.userAgentHeader; - } - - /** - *Converts keys in an object using a provided JSON mapper. - * @param {any} obj - The object to convert keys for. - * @param {Object} jsonMapper - The JSON mapper containing key mappings. - * @returns {any} - The object with converted keys. - */ - private static convertKeysWithMapper(obj: T, jsonMapper: Map): any { - if (!obj || typeof obj !== 'object') { - return obj; - } - - if (Array.isArray(obj)) { - return obj.map((item) => HTTPLibrary.convertKeysWithMapper(item, jsonMapper)); - } - - const convertedObj: Record = {}; - Object.entries(obj).forEach(([key, value]) => { - if (value !== undefined) { - const convertedKey = jsonMapper.get(key) || key; - convertedObj[convertedKey] = HTTPLibrary.convertKeysWithMapper(value, jsonMapper); - } - }); - - return convertedObj; - } -} diff --git a/packages/sdk/output/typescript/src/http/QuerySerializer.ts b/packages/sdk/output/typescript/src/http/QuerySerializer.ts deleted file mode 100644 index 7803158f2..000000000 --- a/packages/sdk/output/typescript/src/http/QuerySerializer.ts +++ /dev/null @@ -1,82 +0,0 @@ -export type Explode = boolean; -export type QueryStyles = 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject'; -export type PathStyles = 'simple' | 'label' | 'matrix'; - -const styleMethods: Record = { - simple: (value: unknown, explode: boolean) => { - // Check if the value is an array - if (Array.isArray(value)) { - return explode ? value.join(',') : value.join(); - } - - // Check if the value is an object - if (typeof value === 'object' && value !== null) { - if (explode) { - // Serialize object with exploded format: "key=value,key2=value2" - return Object.entries(value) - .map(([parameterName, parameterValue]) => `${parameterName}=${parameterValue}`) - .join(','); - } - // Serialize object with non-exploded format: "key,value,key2,value2" - return Object.entries(value) - .flatMap(([parameterName, parameterValue]) => [parameterName, parameterValue]) - .join(','); - } - - // For primitive values - return String(value); - }, - - form: (parameterName: string, parameterValue: unknown, explode: boolean) => { - // Check if the parameterValue is an array - if (Array.isArray(parameterValue)) { - return explode - ? parameterValue.map((value) => `${parameterName}=${value}`).join('&') - : `${parameterName}=${parameterValue.join(',')}`; - } - - // Check if the parameterValue is an object - if (typeof parameterValue === 'object' && parameterValue !== null) { - if (explode) { - // Serialize object with exploded format: "key1=value1&key2=value2" - return Object.entries(parameterValue) - .map(([name, value]) => `${name}=${value}`) - .join('&'); - } - // Serialize object with non-exploded format: "key=key1,value1,key2,value2" - return `${parameterName}=${Object.entries(parameterValue) - .flatMap(([name, value]) => [name, value]) - .join(',')}`; - } - - // For primitive values - return `${parameterName}=${parameterValue}`; - }, -}; - -export function serializeQuery( - style: QueryStyles, - explode: Explode, - key: string, - value: unknown, -): string { - const method = styleMethods[style]; - if (!method) return ''; - return method(key, value, explode); -} - -export function serializePath( - style: PathStyles, - explode: Explode, - value: unknown, - key?: string, -): string { - const method = styleMethods[style]; - if (!method) return ''; - // The `simple` and `label` styles do not require a `key` - if (!key) { - return method(value, explode); - } else { - return method(key, value, explode); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/BadGateway.ts b/packages/sdk/output/typescript/src/http/errors/BadGateway.ts deleted file mode 100644 index 9c6d289cb..000000000 --- a/packages/sdk/output/typescript/src/http/errors/BadGateway.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class BadGateway extends BaseHTTPError { - statusCode = 502; - - title = 'Bad Gateway'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/BadRequest.ts b/packages/sdk/output/typescript/src/http/errors/BadRequest.ts deleted file mode 100644 index 7df6dd0e6..000000000 --- a/packages/sdk/output/typescript/src/http/errors/BadRequest.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class BadRequest extends BaseHTTPError { - statusCode = 400; - - title = 'Bad Request'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/Conflict.ts b/packages/sdk/output/typescript/src/http/errors/Conflict.ts deleted file mode 100644 index 9f5a75089..000000000 --- a/packages/sdk/output/typescript/src/http/errors/Conflict.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class Conflict extends BaseHTTPError { - statusCode = 409; - - title = 'Conflict'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/ExpectationFailed.ts b/packages/sdk/output/typescript/src/http/errors/ExpectationFailed.ts deleted file mode 100644 index 22299f5ba..000000000 --- a/packages/sdk/output/typescript/src/http/errors/ExpectationFailed.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class ExpectationFailed extends BaseHTTPError { - statusCode = 417; - - title = 'Expectation Failed'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/FailedDependency.ts b/packages/sdk/output/typescript/src/http/errors/FailedDependency.ts deleted file mode 100644 index ea99d2cac..000000000 --- a/packages/sdk/output/typescript/src/http/errors/FailedDependency.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class FailedDependency extends BaseHTTPError { - statusCode = 424; - - title = 'Failed Dependency'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/Forbidden.ts b/packages/sdk/output/typescript/src/http/errors/Forbidden.ts deleted file mode 100644 index 82ee93475..000000000 --- a/packages/sdk/output/typescript/src/http/errors/Forbidden.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class Forbidden extends BaseHTTPError { - statusCode = 403; - - title = 'Forbidden'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/GatewayTimeout.ts b/packages/sdk/output/typescript/src/http/errors/GatewayTimeout.ts deleted file mode 100644 index daa7af67f..000000000 --- a/packages/sdk/output/typescript/src/http/errors/GatewayTimeout.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class GatewayTimeout extends BaseHTTPError { - statusCode = 504; - - title = 'Gateway Timeout'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/Gone.ts b/packages/sdk/output/typescript/src/http/errors/Gone.ts deleted file mode 100644 index a113c4d34..000000000 --- a/packages/sdk/output/typescript/src/http/errors/Gone.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class Gone extends BaseHTTPError { - statusCode = 410; - - title = 'Gone'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/HttpVersionNotSupported.ts b/packages/sdk/output/typescript/src/http/errors/HttpVersionNotSupported.ts deleted file mode 100644 index 4fb6f4686..000000000 --- a/packages/sdk/output/typescript/src/http/errors/HttpVersionNotSupported.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class HttpVersionNotSupported extends BaseHTTPError { - statusCode = 505; - - title = 'HTTP Version Not Supported'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/InternalServerError.ts b/packages/sdk/output/typescript/src/http/errors/InternalServerError.ts deleted file mode 100644 index a06205a73..000000000 --- a/packages/sdk/output/typescript/src/http/errors/InternalServerError.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class InternalServerError extends BaseHTTPError { - statusCode = 500; - - title = 'Internal Server Error'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/LengthRequired.ts b/packages/sdk/output/typescript/src/http/errors/LengthRequired.ts deleted file mode 100644 index 5fe594849..000000000 --- a/packages/sdk/output/typescript/src/http/errors/LengthRequired.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class LengthRequired extends BaseHTTPError { - statusCode = 411; - - title = 'LengthRequired'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/Locked.ts b/packages/sdk/output/typescript/src/http/errors/Locked.ts deleted file mode 100644 index 7ef8fd9a4..000000000 --- a/packages/sdk/output/typescript/src/http/errors/Locked.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class Locked extends BaseHTTPError { - statusCode = 423; - - title = 'Locked'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/LoopDetected.ts b/packages/sdk/output/typescript/src/http/errors/LoopDetected.ts deleted file mode 100644 index dfb598a8a..000000000 --- a/packages/sdk/output/typescript/src/http/errors/LoopDetected.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class LoopDetected extends BaseHTTPError { - statusCode = 508; - - title = 'Loop Detected'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/MethodNotAllowed.ts b/packages/sdk/output/typescript/src/http/errors/MethodNotAllowed.ts deleted file mode 100644 index 870e5c321..000000000 --- a/packages/sdk/output/typescript/src/http/errors/MethodNotAllowed.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class MethodNotAllowed extends BaseHTTPError { - statusCode = 405; - - title = 'Method Not Allowed'; - - allow?: string[]; - - constructor(detail: string = '', allow?: string[]) { - super(detail); - this.allow = allow; - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/MisdirectedRequest.ts b/packages/sdk/output/typescript/src/http/errors/MisdirectedRequest.ts deleted file mode 100644 index f00f21246..000000000 --- a/packages/sdk/output/typescript/src/http/errors/MisdirectedRequest.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class MisdirectedRequest extends BaseHTTPError { - statusCode = 421; - - title = 'Misdirected Request'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/NetworkAuthenticationRequired.ts b/packages/sdk/output/typescript/src/http/errors/NetworkAuthenticationRequired.ts deleted file mode 100644 index 29267f39d..000000000 --- a/packages/sdk/output/typescript/src/http/errors/NetworkAuthenticationRequired.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class NetworkAuthenticationRequired extends BaseHTTPError { - statusCode = 511; - - title = 'Network Authentication Required'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/NotAcceptable.ts b/packages/sdk/output/typescript/src/http/errors/NotAcceptable.ts deleted file mode 100644 index c2ad2e27a..000000000 --- a/packages/sdk/output/typescript/src/http/errors/NotAcceptable.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class NotAcceptable extends BaseHTTPError { - statusCode = 406; - - title = 'Not Acceptable'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/NotExtended.ts b/packages/sdk/output/typescript/src/http/errors/NotExtended.ts deleted file mode 100644 index a13783408..000000000 --- a/packages/sdk/output/typescript/src/http/errors/NotExtended.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class NotExtended extends BaseHTTPError { - statusCode = 510; - - title = 'Not Extended'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/NotFound.ts b/packages/sdk/output/typescript/src/http/errors/NotFound.ts deleted file mode 100644 index 0df322b8b..000000000 --- a/packages/sdk/output/typescript/src/http/errors/NotFound.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class NotFound extends BaseHTTPError { - statusCode = 404; - - title = 'Not Found'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/NotImplemented.ts b/packages/sdk/output/typescript/src/http/errors/NotImplemented.ts deleted file mode 100644 index 0e9e9e96e..000000000 --- a/packages/sdk/output/typescript/src/http/errors/NotImplemented.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class NotImplemented extends BaseHTTPError { - statusCode = 501; - - title = 'Not Implemented'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/PayloadTooLarge.ts b/packages/sdk/output/typescript/src/http/errors/PayloadTooLarge.ts deleted file mode 100644 index ca40131e1..000000000 --- a/packages/sdk/output/typescript/src/http/errors/PayloadTooLarge.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class PayloadTooLarge extends BaseHTTPError { - statusCode = 413; - - title = 'Payload Too Large'; - - retryAfter: number | null; - - constructor(detail: string = '', retryAfter: number | null = null) { - super(detail); - this.retryAfter = retryAfter; - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/PaymentRequired.ts b/packages/sdk/output/typescript/src/http/errors/PaymentRequired.ts deleted file mode 100644 index abbabbb8e..000000000 --- a/packages/sdk/output/typescript/src/http/errors/PaymentRequired.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class PaymentRequired extends BaseHTTPError { - statusCode = 402; - - title = 'Payment Required'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/PreconditionFailed.ts b/packages/sdk/output/typescript/src/http/errors/PreconditionFailed.ts deleted file mode 100644 index 2e0b8f950..000000000 --- a/packages/sdk/output/typescript/src/http/errors/PreconditionFailed.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class PreconditionFailed extends BaseHTTPError { - statusCode = 412; - - title = 'PreconditionFailed'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/PreconditionRequired.ts b/packages/sdk/output/typescript/src/http/errors/PreconditionRequired.ts deleted file mode 100644 index 9d7b83eea..000000000 --- a/packages/sdk/output/typescript/src/http/errors/PreconditionRequired.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class PreconditionRequired extends BaseHTTPError { - statusCode = 428; - - title = 'Precondition Required'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/ProxyAuthenticationRequired.ts b/packages/sdk/output/typescript/src/http/errors/ProxyAuthenticationRequired.ts deleted file mode 100644 index 26e1bd51f..000000000 --- a/packages/sdk/output/typescript/src/http/errors/ProxyAuthenticationRequired.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AuthenticateChallenge, BaseHTTPError } from './base'; - -export default class ProxyAuthenticationRequired extends BaseHTTPError { - statusCode = 407; - - title = 'Proxy Authentication Required'; - - proxyAuthenticate?: AuthenticateChallenge; - - constructor(detail: string = '', proxyAuthenticate?: AuthenticateChallenge) { - super(detail); - this.proxyAuthenticate = proxyAuthenticate; - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/RangeNotSatisfiable.ts b/packages/sdk/output/typescript/src/http/errors/RangeNotSatisfiable.ts deleted file mode 100644 index 704e4ec04..000000000 --- a/packages/sdk/output/typescript/src/http/errors/RangeNotSatisfiable.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class RangeNotSatisfiable extends BaseHTTPError { - statusCode = 416; - - title = 'Range Not Satisfiable'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/RequestHeaderFieldsTooLarge.ts b/packages/sdk/output/typescript/src/http/errors/RequestHeaderFieldsTooLarge.ts deleted file mode 100644 index 4a34fb083..000000000 --- a/packages/sdk/output/typescript/src/http/errors/RequestHeaderFieldsTooLarge.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class RequestHeaderFieldsTooLarge extends BaseHTTPError { - statusCode = 431; - - title = 'Request Header Fields Too Large'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/RequestTimeout.ts b/packages/sdk/output/typescript/src/http/errors/RequestTimeout.ts deleted file mode 100644 index ba1a5c3a6..000000000 --- a/packages/sdk/output/typescript/src/http/errors/RequestTimeout.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class RequestTimeout extends BaseHTTPError { - statusCode = 408; - - title = 'Request Timeout'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/ServiceUnavailable.ts b/packages/sdk/output/typescript/src/http/errors/ServiceUnavailable.ts deleted file mode 100644 index 8cd62e80b..000000000 --- a/packages/sdk/output/typescript/src/http/errors/ServiceUnavailable.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class ServiceUnavailable extends BaseHTTPError { - statusCode = 503; - - title = 'Service Unavailable'; - - retryAfter: number | null; - - constructor(detail: string = '', retryAfter: number | null = null) { - super(detail); - this.retryAfter = retryAfter; - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/TooEarly.ts b/packages/sdk/output/typescript/src/http/errors/TooEarly.ts deleted file mode 100644 index b7f99c635..000000000 --- a/packages/sdk/output/typescript/src/http/errors/TooEarly.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class TooEarly extends BaseHTTPError { - statusCode = 425; - - title = 'Too Early'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/TooManyRequests.ts b/packages/sdk/output/typescript/src/http/errors/TooManyRequests.ts deleted file mode 100644 index eb5280d5e..000000000 --- a/packages/sdk/output/typescript/src/http/errors/TooManyRequests.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class TooManyRequests extends BaseHTTPError { - statusCode = 429; - - title = 'Too Many Requests'; - - retryAfter: number | null; - - constructor(detail: string = '', retryAfter: number | null = null) { - super(detail); - this.retryAfter = retryAfter; - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/Unauthorized.ts b/packages/sdk/output/typescript/src/http/errors/Unauthorized.ts deleted file mode 100644 index 15da735bb..000000000 --- a/packages/sdk/output/typescript/src/http/errors/Unauthorized.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AuthenticateChallenge, BaseHTTPError } from './base'; - -export default class Unauthorized extends BaseHTTPError { - statusCode = 401; - - title = 'Unauthorized'; - - wwwAuthenticate?: AuthenticateChallenge; - - constructor(detail: string = '', wwwAuthenticate?: AuthenticateChallenge) { - super(detail); - this.wwwAuthenticate = wwwAuthenticate; - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/UnavailableForLegalReasons.ts b/packages/sdk/output/typescript/src/http/errors/UnavailableForLegalReasons.ts deleted file mode 100644 index 70e6d0735..000000000 --- a/packages/sdk/output/typescript/src/http/errors/UnavailableForLegalReasons.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class UnavailableForLegalReasons extends BaseHTTPError { - statusCode = 451; - - title = 'Unavailable For Legal Reasons'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/UnprocessableEntity.ts b/packages/sdk/output/typescript/src/http/errors/UnprocessableEntity.ts deleted file mode 100644 index 70000c19f..000000000 --- a/packages/sdk/output/typescript/src/http/errors/UnprocessableEntity.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class UnprocessableEntity extends BaseHTTPError { - statusCode = 422; - - title = 'Unprocessable Entity'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/UnsufficientStorage.ts b/packages/sdk/output/typescript/src/http/errors/UnsufficientStorage.ts deleted file mode 100644 index e61e12c31..000000000 --- a/packages/sdk/output/typescript/src/http/errors/UnsufficientStorage.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class UnsufficientStorage extends BaseHTTPError { - statusCode = 507; - - title = 'Unsufficient Storage'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/UnsupportedMediaType.ts b/packages/sdk/output/typescript/src/http/errors/UnsupportedMediaType.ts deleted file mode 100644 index a27f24281..000000000 --- a/packages/sdk/output/typescript/src/http/errors/UnsupportedMediaType.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class UnsupportedMediaType extends BaseHTTPError { - statusCode = 415; - - title = 'Unsupported Media Type'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/UpgradeRequired.ts b/packages/sdk/output/typescript/src/http/errors/UpgradeRequired.ts deleted file mode 100644 index 0ac17436d..000000000 --- a/packages/sdk/output/typescript/src/http/errors/UpgradeRequired.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class UpgradeRequired extends BaseHTTPError { - statusCode = 426; - - title = 'Upgrade Required'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/UriTooLong.ts b/packages/sdk/output/typescript/src/http/errors/UriTooLong.ts deleted file mode 100644 index 56eca8b7e..000000000 --- a/packages/sdk/output/typescript/src/http/errors/UriTooLong.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class UriTooLong extends BaseHTTPError { - statusCode = 414; - - title = 'URI Too Long'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/VariantAlsoNegotiates.ts b/packages/sdk/output/typescript/src/http/errors/VariantAlsoNegotiates.ts deleted file mode 100644 index 079df291a..000000000 --- a/packages/sdk/output/typescript/src/http/errors/VariantAlsoNegotiates.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseHTTPError } from './base'; - -export default class VariantAlsoNegotiates extends BaseHTTPError { - statusCode = 506; - - title = 'Variant Also Negotiates'; - - constructor(detail: string = '') { - super(detail); - } -} diff --git a/packages/sdk/output/typescript/src/http/errors/base.ts b/packages/sdk/output/typescript/src/http/errors/base.ts deleted file mode 100644 index f5ebd46fd..000000000 --- a/packages/sdk/output/typescript/src/http/errors/base.ts +++ /dev/null @@ -1,52 +0,0 @@ -export interface IHTTPError extends Error { - statusCode: number; -} - -export interface IHTTPErrorDescription extends IHTTPError { - type?: string; - title: string; - detail?: string; - instance?: string; -} - -export function isHTTPError(error: unknown): error is IHTTPError { - if (!error) { - return false; - } - return Number.isInteger((error as IHTTPError).statusCode); -} - -export function isHTTPIssue(error: unknown): error is IHTTPErrorDescription { - if (!error) { - return false; - } - return (error as IHTTPErrorDescription).title !== undefined && isHTTPError(error); -} - -export class BaseHTTPError extends Error implements IHTTPError { - public type?: string; - - public title: string = 'Internal Server Error'; - - public detail?: string; - - public instance?: string; - - public statusCode: number = 500; - - constructor(detail: string = '') { - super(detail || 'An Unknown HTTP Error Occurred'); - this.detail = detail; - this.stack = (new Error()).stack; - } -} - -export function isClientError(error: Error): boolean { - return isHTTPError(error); -} - -export function isServerError(e: Error): boolean { - return isHTTPError(e) && e.statusCode >= 500 && e.statusCode <= 599; -} - -export type AuthenticateChallenge = string | string[]; diff --git a/packages/sdk/output/typescript/src/http/errors/index.ts b/packages/sdk/output/typescript/src/http/errors/index.ts deleted file mode 100644 index 0f98f742d..000000000 --- a/packages/sdk/output/typescript/src/http/errors/index.ts +++ /dev/null @@ -1,83 +0,0 @@ -import BadRequest from './BadRequest'; -import Unauthorized from './Unauthorized'; -import PaymentRequired from './PaymentRequired'; -import Forbidden from './Forbidden'; -import NotFound from './NotFound'; -import MethodNotAllowed from './MethodNotAllowed'; -import NotAcceptable from './NotAcceptable'; -import ProxyAuthenticationRequired from './ProxyAuthenticationRequired'; -import RequestTimeout from './RequestTimeout'; -import Conflict from './Conflict'; -import Gone from './Gone'; -import LengthRequired from './LengthRequired'; -import PreconditionFailed from './PreconditionFailed'; -import PayloadTooLarge from './PayloadTooLarge'; -import UriTooLong from './UriTooLong'; -import UnsupportedMediaType from './UnsupportedMediaType'; -import RangeNotSatisfiable from './RangeNotSatisfiable'; -import ExpectationFailed from './ExpectationFailed'; -import MisdirectedRequest from './MisdirectedRequest'; -import UnprocessableEntity from './UnprocessableEntity'; -import Locked from './Locked'; -import FailedDependency from './FailedDependency'; -import TooEarly from './TooEarly'; -import UpgradeRequired from './UpgradeRequired'; -import PreconditionRequired from './PreconditionRequired'; -import TooManyRequests from './TooManyRequests'; -import RequestHeaderFieldsTooLarge from './RequestHeaderFieldsTooLarge'; -import UnavailableForLegalReasons from './UnavailableForLegalReasons'; -import InternalServerError from './InternalServerError'; -import NotImplemented from './NotImplemented'; -import BadGateway from './BadGateway'; -import ServiceUnavailable from './ServiceUnavailable'; -import GatewayTimeout from './GatewayTimeout'; -import HttpVersionNotSupported from './HttpVersionNotSupported'; -import VariantAlsoNegotiates from './VariantAlsoNegotiates'; -import UnsufficientStorage from './UnsufficientStorage'; -import LoopDetected from './LoopDetected'; -import NotExtended from './NotExtended'; -import NetworkAuthenticationRequired from './NetworkAuthenticationRequired'; -import { BaseHTTPError } from './base'; - -export { - BaseHTTPError, - BadRequest, - Unauthorized, - PaymentRequired, - Forbidden, - NotFound, - MethodNotAllowed, - NotAcceptable, - ProxyAuthenticationRequired, - RequestTimeout, - Conflict, - Gone, - LengthRequired, - PreconditionFailed, - PayloadTooLarge, - UriTooLong, - UnsupportedMediaType, - RangeNotSatisfiable, - ExpectationFailed, - MisdirectedRequest, - UnprocessableEntity, - Locked, - FailedDependency, - TooEarly, - UpgradeRequired, - PreconditionRequired, - TooManyRequests, - RequestHeaderFieldsTooLarge, - UnavailableForLegalReasons, - InternalServerError, - NotImplemented, - BadGateway, - ServiceUnavailable, - GatewayTimeout, - HttpVersionNotSupported, - VariantAlsoNegotiates, - UnsufficientStorage, - LoopDetected, - NotExtended, - NetworkAuthenticationRequired, -}; diff --git a/packages/sdk/output/typescript/src/http/httpExceptions.ts b/packages/sdk/output/typescript/src/http/httpExceptions.ts deleted file mode 100644 index 45c8fe169..000000000 --- a/packages/sdk/output/typescript/src/http/httpExceptions.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { - BaseHTTPError, - BadRequest, - Unauthorized, - PaymentRequired, - Forbidden, - NotFound, - MethodNotAllowed, - NotAcceptable, - ProxyAuthenticationRequired, - RequestTimeout, - Conflict, - Gone, - LengthRequired, - PreconditionFailed, - PayloadTooLarge, - UriTooLong, - UnsupportedMediaType, - RangeNotSatisfiable, - ExpectationFailed, - MisdirectedRequest, - UnprocessableEntity, - Locked, - FailedDependency, - TooEarly, - UpgradeRequired, - PreconditionRequired, - TooManyRequests, - RequestHeaderFieldsTooLarge, - UnavailableForLegalReasons, - InternalServerError, - NotImplemented, - BadGateway, - ServiceUnavailable, - GatewayTimeout, - HttpVersionNotSupported, - VariantAlsoNegotiates, - UnsufficientStorage, - LoopDetected, - NotExtended, - NetworkAuthenticationRequired, -} from './errors'; - -interface HttpResponseWithError { - status: number; - headers: any; - data?: any; -} - -interface NumberToClass { - [key: number]: any; -} - -const statusCodeToErrorFunction: NumberToClass = { - 400: BadRequest, - 401: Unauthorized, - 402: PaymentRequired, - 403: Forbidden, - 404: NotFound, - 405: MethodNotAllowed, - 406: NotAcceptable, - 407: ProxyAuthenticationRequired, - 408: RequestTimeout, - 409: Conflict, - 410: Gone, - 411: LengthRequired, - 412: PreconditionFailed, - 413: PayloadTooLarge, - 414: UriTooLong, - 415: UnsupportedMediaType, - 416: RangeNotSatisfiable, - 417: ExpectationFailed, - 421: MisdirectedRequest, - 422: UnprocessableEntity, - 423: Locked, - 424: FailedDependency, - 425: TooEarly, - 426: UpgradeRequired, - 428: PreconditionRequired, - 429: TooManyRequests, - 431: RequestHeaderFieldsTooLarge, - 451: UnavailableForLegalReasons, - 500: InternalServerError, - 501: NotImplemented, - 502: BadGateway, - 503: ServiceUnavailable, - 504: GatewayTimeout, - 505: HttpVersionNotSupported, - 506: VariantAlsoNegotiates, - 507: UnsufficientStorage, - 508: LoopDetected, - 510: NotExtended, - 511: NetworkAuthenticationRequired, -}; - -/** - * @summary This function will throw an error. - * - * @param {HttpResponseWithError} response - the response from a request, must contain a status and data fields - * @throws {Error} - an http error - */ -export default function throwHttpError(response: HttpResponseWithError): never { - let error: BaseHTTPError = new BaseHTTPError(response.data); - switch (response.status) { - case 401: - error = new Unauthorized(response.data, response.headers['WWW-Authenticate']); - case 405: - // this indicates a bug in the spec if it allows a method that the server rejects - error = new MethodNotAllowed(response.data, response.headers.allowed); - case 407: - error = new ProxyAuthenticationRequired( - response.data, - response.headers['Proxy-Authenticate'], - ); - case 413: - error = new PayloadTooLarge(response.data, response.headers['Retry-After']); - case 429: - error = new TooManyRequests(response.data, response.headers['Retry-After']); - case 503: - error = new ServiceUnavailable(response.data, response.headers['Retry-After']); - default: - if (response.status in statusCodeToErrorFunction) { - error = new statusCodeToErrorFunction[response.status](response.data); - } else { - const error = new BaseHTTPError(response.data); - error.statusCode = response.status; - error.title = 'unknown error'; - } - } - - throw error; -} diff --git a/packages/sdk/output/typescript/src/index.ts b/packages/sdk/output/typescript/src/index.ts deleted file mode 100644 index 99f5e7743..000000000 --- a/packages/sdk/output/typescript/src/index.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { AuthService } from './services/auth/Auth'; -import { ConnectionsService } from './services/connections/Connections'; -import { CrmContactService } from './services/crmContact/CrmContact'; -import { EventsService } from './services/events/Events'; -import { FieldMappingService } from './services/fieldMapping/FieldMapping'; -import { LinkedUsersService } from './services/linkedUsers/LinkedUsers'; -import { MagicLinkService } from './services/magicLink/MagicLink'; -import { MainService } from './services/main/Main'; -import { OrganisationsService } from './services/organisations/Organisations'; -import { PassthroughService } from './services/passthrough/Passthrough'; -import { ProjectsService } from './services/projects/Projects'; -import { WebhookService } from './services/webhook/Webhook'; - -export * from './models'; - -export * as AuthModels from './services/auth'; -export * as CrmContactModels from './services/crmContact'; -export * as FieldMappingModels from './services/fieldMapping'; -export * as LinkedUsersModels from './services/linkedUsers'; -export * as MagicLinkModels from './services/magicLink'; -export * as OrganisationsModels from './services/organisations'; -export * as PassthroughModels from './services/passthrough'; -export * as ProjectsModels from './services/projects'; -export * as WebhookModels from './services/webhook'; - -type Config = { - accessToken?: string; -}; - -export * from './http/errors'; - -/** - * The Panora API description - */ -export class Testsdk { - public auth: AuthService; - public connections: ConnectionsService; - public crmContact: CrmContactService; - public events: EventsService; - public fieldMapping: FieldMappingService; - public linkedUsers: LinkedUsersService; - public magicLink: MagicLinkService; - public main: MainService; - public organisations: OrganisationsService; - public passthrough: PassthroughService; - public projects: ProjectsService; - public webhook: WebhookService; - - constructor({ accessToken = '' }: Config) { - this.auth = new AuthService(accessToken); - this.connections = new ConnectionsService(accessToken); - this.crmContact = new CrmContactService(accessToken); - this.events = new EventsService(accessToken); - this.fieldMapping = new FieldMappingService(accessToken); - this.linkedUsers = new LinkedUsersService(accessToken); - this.magicLink = new MagicLinkService(accessToken); - this.main = new MainService(accessToken); - this.organisations = new OrganisationsService(accessToken); - this.passthrough = new PassthroughService(accessToken); - this.projects = new ProjectsService(accessToken); - this.webhook = new WebhookService(accessToken); - } - - /** - * Sets the baseUrl that the SDK will use for its requests. - * @param {string} url - */ - setBaseUrl(url: string): void { - this.auth.setBaseUrl(url); - this.connections.setBaseUrl(url); - this.crmContact.setBaseUrl(url); - this.events.setBaseUrl(url); - this.fieldMapping.setBaseUrl(url); - this.linkedUsers.setBaseUrl(url); - this.magicLink.setBaseUrl(url); - this.main.setBaseUrl(url); - this.organisations.setBaseUrl(url); - this.passthrough.setBaseUrl(url); - this.projects.setBaseUrl(url); - this.webhook.setBaseUrl(url); - } - - /** - * Sets the access token used to authenticate. - * @param {string} accessToken - */ - setAccessToken(accessToken: string) { - this.auth.setAccessToken(accessToken); - this.connections.setAccessToken(accessToken); - this.crmContact.setAccessToken(accessToken); - this.events.setAccessToken(accessToken); - this.fieldMapping.setAccessToken(accessToken); - this.linkedUsers.setAccessToken(accessToken); - this.magicLink.setAccessToken(accessToken); - this.main.setAccessToken(accessToken); - this.organisations.setAccessToken(accessToken); - this.passthrough.setAccessToken(accessToken); - this.projects.setAccessToken(accessToken); - this.webhook.setAccessToken(accessToken); - } -} diff --git a/packages/sdk/output/typescript/src/models.ts b/packages/sdk/output/typescript/src/models.ts deleted file mode 100644 index 1c3c3470d..000000000 --- a/packages/sdk/output/typescript/src/models.ts +++ /dev/null @@ -1,13 +0,0 @@ -export type { ContactControllerAddContactsRequest } from './services/crmContact/models/ContactControllerAddContactsRequest'; -export type { CreateLinkedUserDto } from './services/linkedUsers/models/CreateLinkedUserDto'; -export type { CreateMagicLinkDto } from './services/magicLink/models/CreateMagicLinkDto'; -export type { CreateOrganizationDto } from './services/organisations/models/CreateOrganizationDto'; -export type { CreateProjectDto } from './services/projects/models/CreateProjectDto'; -export type { CreateUserDto } from './services/auth/models/CreateUserDto'; -export type { DefineTargetFieldDto } from './services/fieldMapping/models/DefineTargetFieldDto'; -export type { LoginCredentials } from './services/auth/models/LoginCredentials'; -export type { MapFieldToProviderDto } from './services/fieldMapping/models/MapFieldToProviderDto'; -export type { PassThroughRequestDto } from './services/passthrough/models/PassThroughRequestDto'; -export type { PassThroughResponse } from './services/passthrough/models/PassThroughResponse'; -export type { UnifiedContactInput } from './services/crmContact/models/UnifiedContactInput'; -export type { WebhookDto } from './services/webhook/models/WebhookDto'; diff --git a/packages/sdk/output/typescript/src/services/README.md b/packages/sdk/output/typescript/src/services/README.md deleted file mode 100644 index cc2e6100c..000000000 --- a/packages/sdk/output/typescript/src/services/README.md +++ /dev/null @@ -1,1149 +0,0 @@ -# Testsdk Services -A list of all services and services methods. -- Services - - - [Main](#main) - - - [Auth](#auth) - - - [Connections](#connections) - - - [Webhook](#webhook) - - - [LinkedUsers](#linkedusers) - - - [Organisations](#organisations) - - - [Projects](#projects) - - - [FieldMapping](#fieldmapping) - - - [Events](#events) - - - [MagicLink](#magiclink) - - - [Passthrough](#passthrough) - - - [CrmContact](#crmcontact) -- [All Methods](#all-methods) - - -## Main - -| Method | Description| -| :-------- | :----------| -| [appControllerGetHello](#appcontrollergethello) | | - - -## Auth - -| Method | Description| -| :-------- | :----------| -| [authControllerRegisterUser](#authcontrollerregisteruser) | | -| [authControllerLogin](#authcontrollerlogin) | | -| [authControllerUsers](#authcontrollerusers) | | -| [authControllerApiKeys](#authcontrollerapikeys) | | -| [authControllerGenerateApiKey](#authcontrollergenerateapikey) | | - - -## Connections - -| Method | Description| -| :-------- | :----------| -| [connectionsControllerHandleCallback](#connectionscontrollerhandlecallback) | | -| [connectionsControllerGetConnections](#connectionscontrollergetconnections) | | - - -## Webhook - -| Method | Description| -| :-------- | :----------| -| [webhookControllerAddWebhook](#webhookcontrolleraddwebhook) | | -| [webhookControllerGetWebhooks](#webhookcontrollergetwebhooks) | | -| [webhookControllerUpdateWebhookStatus](#webhookcontrollerupdatewebhookstatus) | | - - -## LinkedUsers - -| Method | Description| -| :-------- | :----------| -| [linkedUsersControllerAddLinkedUser](#linkeduserscontrolleraddlinkeduser) | | -| [linkedUsersControllerGetLinkedUsers](#linkeduserscontrollergetlinkedusers) | | -| [linkedUsersControllerGetLinkedUser](#linkeduserscontrollergetlinkeduser) | | - - -## Organisations - -| Method | Description| -| :-------- | :----------| -| [organisationsControllerGetOragnisations](#organisationscontrollergetoragnisations) | | -| [organisationsControllerCreateOrg](#organisationscontrollercreateorg) | | - - -## Projects - -| Method | Description| -| :-------- | :----------| -| [projectsControllerGetProjects](#projectscontrollergetprojects) | | -| [projectsControllerCreateProject](#projectscontrollercreateproject) | | - - -## FieldMapping - -| Method | Description| -| :-------- | :----------| -| [fieldMappingControllerGetEntities](#fieldmappingcontrollergetentities) | | -| [fieldMappingControllerGetAttributes](#fieldmappingcontrollergetattributes) | | -| [fieldMappingControllerGetValues](#fieldmappingcontrollergetvalues) | | -| [fieldMappingControllerDefineTargetField](#fieldmappingcontrollerdefinetargetfield) | | -| [fieldMappingControllerMapFieldToProvider](#fieldmappingcontrollermapfieldtoprovider) | | -| [fieldMappingControllerGetCustomProperties](#fieldmappingcontrollergetcustomproperties) | | - - -## Events - -| Method | Description| -| :-------- | :----------| -| [eventsControllerGetEvents](#eventscontrollergetevents) | | - - -## MagicLink - -| Method | Description| -| :-------- | :----------| -| [magicLinkControllerCreateLink](#magiclinkcontrollercreatelink) | | -| [magicLinkControllerGetMagicLinks](#magiclinkcontrollergetmagiclinks) | | -| [magicLinkControllerGetMagicLink](#magiclinkcontrollergetmagiclink) | | - - -## Passthrough - -| Method | Description| -| :-------- | :----------| -| [passthroughControllerPassthroughRequest](#passthroughcontrollerpassthroughrequest) | | - - -## CrmContact - -| Method | Description| -| :-------- | :----------| -| [contactControllerAddContacts](#contactcontrolleraddcontacts) | | -| [contactControllerGetContacts](#contactcontrollergetcontacts) | | -| [contactControllerUpdateContact](#contactcontrollerupdatecontact) | | -| [contactControllerGetContact](#contactcontrollergetcontact) | | - - - - -## All Methods - - -### **appControllerGetHello** - -- HTTP Method: GET -- Endpoint: / - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.main.appControllerGetHello(); - console.log(result); -})(); - -``` - - -### **authControllerRegisterUser** - -- HTTP Method: POST -- Endpoint: /auth/register - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - email: 'email', - first_name: 'first_name', - last_name: 'last_name', - password_hash: 'password_hash', - }; - const result = await sdk.auth.authControllerRegisterUser(input); - console.log(result); -})(); - -``` - -### **authControllerLogin** - -- HTTP Method: POST -- Endpoint: /auth/login - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { email: 'email', id_user: 'id_user', password_hash: 'password_hash' }; - const result = await sdk.auth.authControllerLogin(input); - console.log(result); -})(); - -``` - -### **authControllerUsers** - -- HTTP Method: GET -- Endpoint: /auth/users - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.auth.authControllerUsers(); - console.log(result); -})(); - -``` - -### **authControllerApiKeys** - -- HTTP Method: GET -- Endpoint: /auth/api-keys - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.auth.authControllerApiKeys(); - console.log(result); -})(); - -``` - -### **authControllerGenerateApiKey** - -- HTTP Method: POST -- Endpoint: /auth/generate-apikey - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = {}; - const result = await sdk.auth.authControllerGenerateApiKey(input); - console.log(result); -})(); - -``` - - -### **connectionsControllerHandleCallback** - -- HTTP Method: GET -- Endpoint: /connections/oauth/callback - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| state | string | | -| code | string | | -| location | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.connections.connectionsControllerHandleCallback( - 'state', - 'code', - 'location', - ); - console.log(result); -})(); - -``` - -### **connectionsControllerGetConnections** - -- HTTP Method: GET -- Endpoint: /connections - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.connections.connectionsControllerGetConnections(); - console.log(result); -})(); - -``` - - -### **webhookControllerAddWebhook** - -- HTTP Method: POST -- Endpoint: /webhook - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - description: 'description', - id_project: 'id_project', - scope: 'scope', - url: 'url', - }; - const result = await sdk.webhook.webhookControllerAddWebhook(input); - console.log(result); -})(); - -``` - -### **webhookControllerGetWebhooks** - -- HTTP Method: GET -- Endpoint: /webhook - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.webhook.webhookControllerGetWebhooks(); - console.log(result); -})(); - -``` - -### **webhookControllerUpdateWebhookStatus** - -- HTTP Method: PUT -- Endpoint: /webhook/{id} - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.webhook.webhookControllerUpdateWebhookStatus('id'); - console.log(result); -})(); - -``` - - -### **linkedUsersControllerAddLinkedUser** - -- HTTP Method: POST -- Endpoint: /linked-users/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - alias: 'alias', - id_project: 'id_project', - linked_user_origin_id: 'linked_user_origin_id', - }; - const result = await sdk.linkedUsers.linkedUsersControllerAddLinkedUser(input); - console.log(result); -})(); - -``` - -### **linkedUsersControllerGetLinkedUsers** - -- HTTP Method: GET -- Endpoint: /linked-users - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.linkedUsers.linkedUsersControllerGetLinkedUsers(); - console.log(result); -})(); - -``` - -### **linkedUsersControllerGetLinkedUser** - -- HTTP Method: GET -- Endpoint: /linked-users/single - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.linkedUsers.linkedUsersControllerGetLinkedUser('id'); - console.log(result); -})(); - -``` - - -### **organisationsControllerGetOragnisations** - -- HTTP Method: GET -- Endpoint: /organisations - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.organisations.organisationsControllerGetOragnisations(); - console.log(result); -})(); - -``` - -### **organisationsControllerCreateOrg** - -- HTTP Method: POST -- Endpoint: /organisations/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { name: 'name', stripe_customer_id: 'stripe_customer_id' }; - const result = await sdk.organisations.organisationsControllerCreateOrg(input); - console.log(result); -})(); - -``` - - -### **projectsControllerGetProjects** - -- HTTP Method: GET -- Endpoint: /projects - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.projects.projectsControllerGetProjects(); - console.log(result); -})(); - -``` - -### **projectsControllerCreateProject** - -- HTTP Method: POST -- Endpoint: /projects/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { id_organization: 'id_organization', name: 'name' }; - const result = await sdk.projects.projectsControllerCreateProject(input); - console.log(result); -})(); - -``` - - -### **fieldMappingControllerGetEntities** - -- HTTP Method: GET -- Endpoint: /field-mapping/entities - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetEntities(); - console.log(result); -})(); - -``` - -### **fieldMappingControllerGetAttributes** - -- HTTP Method: GET -- Endpoint: /field-mapping/attribute - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetAttributes(); - console.log(result); -})(); - -``` - -### **fieldMappingControllerGetValues** - -- HTTP Method: GET -- Endpoint: /field-mapping/value - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetValues(); - console.log(result); -})(); - -``` - -### **fieldMappingControllerDefineTargetField** - -- HTTP Method: POST -- Endpoint: /field-mapping/define - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - data_type: 'data_type', - description: 'description', - name: 'name', - object_type_owner: {}, - }; - const result = await sdk.fieldMapping.fieldMappingControllerDefineTargetField(input); - console.log(result); -})(); - -``` - -### **fieldMappingControllerMapFieldToProvider** - -- HTTP Method: POST -- Endpoint: /field-mapping/map - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - attributeId: 'attributeId', - linked_user_id: 'linked_user_id', - source_custom_field_id: 'source_custom_field_id', - source_provider: 'source_provider', - }; - const result = await sdk.fieldMapping.fieldMappingControllerMapFieldToProvider(input); - console.log(result); -})(); - -``` - -### **fieldMappingControllerGetCustomProperties** - -- HTTP Method: GET -- Endpoint: /field-mapping/properties - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| linkedUserId | string | | -| providerId | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.fieldMapping.fieldMappingControllerGetCustomProperties( - 'linkedUserId', - 'providerId', - ); - console.log(result); -})(); - -``` - - -### **eventsControllerGetEvents** - -- HTTP Method: GET -- Endpoint: /events - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.events.eventsControllerGetEvents(); - console.log(result); -})(); - -``` - - -### **magicLinkControllerCreateLink** - -- HTTP Method: POST -- Endpoint: /magic-link/create - -**Required Parameters** - -| input | object | Request body. | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { - alias: 'alias', - email: 'email', - id_project: 'id_project', - linked_user_origin_id: 'linked_user_origin_id', - }; - const result = await sdk.magicLink.magicLinkControllerCreateLink(input); - console.log(result); -})(); - -``` - -### **magicLinkControllerGetMagicLinks** - -- HTTP Method: GET -- Endpoint: /magic-link - - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.magicLink.magicLinkControllerGetMagicLinks(); - console.log(result); -})(); - -``` - -### **magicLinkControllerGetMagicLink** - -- HTTP Method: GET -- Endpoint: /magic-link/single - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.magicLink.magicLinkControllerGetMagicLink('id'); - console.log(result); -})(); - -``` - - -### **passthroughControllerPassthroughRequest** - -- HTTP Method: POST -- Endpoint: /passthrough - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| integrationId | string | | -| linkedUserId | string | | -| input | object | Request body. | - - - -**Return Type** - -PassThroughResponse - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = { data: {}, headers_: {}, method: 'GET', path: 'path' }; - const result = await sdk.passthrough.passthroughControllerPassthroughRequest( - input, - 'integrationId', - 'linkedUserId', - ); - console.log(result); -})(); - -``` - - -### **contactControllerAddContacts** - -- HTTP Method: POST -- Endpoint: /crm/contact - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| integrationId | string | | -| linkedUserId | string | | -| input | object | Request body. | - -**Optional Parameters** - -Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'} - -| Name | Type| Description | -| :-------- | :----------| :----------| -| remoteData | boolean | | - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const input = [{}, {}]; - const result = await sdk.crmContact.contactControllerAddContacts( - input, - 'integrationId', - 'linkedUserId', - { remoteData: true }, - ); - console.log(result); -})(); - -``` - -### **contactControllerGetContacts** - -- HTTP Method: GET -- Endpoint: /crm/contact - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| integrationId | string | | -| linkedUserId | string | | - -**Optional Parameters** - -Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'} - -| Name | Type| Description | -| :-------- | :----------| :----------| -| remoteData | boolean | | - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.crmContact.contactControllerGetContacts( - 'integrationId', - 'linkedUserId', - { remoteData: true }, - ); - console.log(result); -})(); - -``` - -### **contactControllerUpdateContact** - -- HTTP Method: PATCH -- Endpoint: /crm/contact - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.crmContact.contactControllerUpdateContact('id'); - console.log(result); -})(); - -``` - -### **contactControllerGetContact** - -- HTTP Method: GET -- Endpoint: /crm/contact/{id} - -**Required Parameters** - -| Name | Type| Description | -| :-------- | :----------| :----------| -| id | string | | - -**Optional Parameters** - -Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'} - -| Name | Type| Description | -| :-------- | :----------| :----------| -| remoteData | boolean | | - - -**Return Type** - -Returns a dict object. - -**Example Usage Code Snippet** -```Typescript -import { Testsdk } from './src'; - -const sdk = new Testsdk({ accessToken: process.env.TESTSDK_ACCESS_TOKEN }); - -(async () => { - const result = await sdk.crmContact.contactControllerGetContact('id', { remoteData: true }); - console.log(result); -})(); - -``` - - - - diff --git a/packages/sdk/output/typescript/src/services/auth/Auth.ts b/packages/sdk/output/typescript/src/services/auth/Auth.ts deleted file mode 100644 index 18be4e14c..000000000 --- a/packages/sdk/output/typescript/src/services/auth/Auth.ts +++ /dev/null @@ -1,87 +0,0 @@ -import BaseService from '../../BaseService'; - -import { CreateUserDto } from './models/CreateUserDto'; -import { LoginCredentials } from './models/LoginCredentials'; - -export class AuthService extends BaseService { - async authControllerRegisterUser(input: CreateUserDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/auth/register'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async authControllerLogin(input: LoginCredentials): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/auth/login'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async authControllerUsers(): Promise { - const urlEndpoint = '/auth/users'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async authControllerApiKeys(): Promise { - const urlEndpoint = '/auth/api-keys'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async authControllerGenerateApiKey(input: any): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/auth/generate-apikey'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/auth/index.ts b/packages/sdk/output/typescript/src/services/auth/index.ts deleted file mode 100644 index 7ec9c3a0f..000000000 --- a/packages/sdk/output/typescript/src/services/auth/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { CreateUserDto } from './models/CreateUserDto'; -export type { LoginCredentials } from './models/LoginCredentials'; diff --git a/packages/sdk/output/typescript/src/services/auth/models/CreateUserDto.ts b/packages/sdk/output/typescript/src/services/auth/models/CreateUserDto.ts deleted file mode 100644 index 40064c55a..000000000 --- a/packages/sdk/output/typescript/src/services/auth/models/CreateUserDto.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface CreateUserDto { - first_name: string; - last_name: string; - email: string; - password_hash: string; -} diff --git a/packages/sdk/output/typescript/src/services/auth/models/LoginCredentials.ts b/packages/sdk/output/typescript/src/services/auth/models/LoginCredentials.ts deleted file mode 100644 index e47e0221e..000000000 --- a/packages/sdk/output/typescript/src/services/auth/models/LoginCredentials.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface LoginCredentials { - id_user?: string; - email?: string; - password_hash: string; -} diff --git a/packages/sdk/output/typescript/src/services/connections/Connections.ts b/packages/sdk/output/typescript/src/services/connections/Connections.ts deleted file mode 100644 index e26010b56..000000000 --- a/packages/sdk/output/typescript/src/services/connections/Connections.ts +++ /dev/null @@ -1,54 +0,0 @@ -import BaseService from '../../BaseService'; - -import { serializeQuery } from '../../http/QuerySerializer'; - -export class ConnectionsService extends BaseService { - async connectionsControllerHandleCallback( - state: string, - code: string, - location: string, - ): Promise { - if (state === undefined || code === undefined || location === undefined) { - throw new Error( - 'The following are required parameters: state,code,location, cannot be empty or blank', - ); - } - const queryParams: string[] = []; - if (state) { - queryParams.push(serializeQuery('form', true, 'state', state)); - } - if (code) { - queryParams.push(serializeQuery('form', true, 'code', code)); - } - if (location) { - queryParams.push(serializeQuery('form', true, 'location', location)); - } - const urlEndpoint = '/connections/oauth/callback'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}?${queryParams.join('&')}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async connectionsControllerGetConnections(): Promise { - const urlEndpoint = '/connections'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/crmContact/CrmContact.ts b/packages/sdk/output/typescript/src/services/crmContact/CrmContact.ts deleted file mode 100644 index cd0739d04..000000000 --- a/packages/sdk/output/typescript/src/services/crmContact/CrmContact.ts +++ /dev/null @@ -1,132 +0,0 @@ -import BaseService from '../../BaseService'; - -import { ContactControllerAddContactsRequest } from './models/ContactControllerAddContactsRequest'; - -import { serializeQuery, serializePath } from '../../http/QuerySerializer'; - -export class CrmContactService extends BaseService { - async contactControllerGetContacts( - integrationId: string, - linkedUserId: string, - optionalParams: { remoteData?: boolean } = {}, - ): Promise { - const { remoteData } = optionalParams; - if (integrationId === undefined || linkedUserId === undefined) { - throw new Error( - 'The following are required parameters: integrationId,linkedUserId, cannot be empty or blank', - ); - } - const queryParams: string[] = []; - if (integrationId) { - queryParams.push(serializeQuery('form', true, 'integrationId', integrationId)); - } - if (linkedUserId) { - queryParams.push(serializeQuery('form', true, 'linkedUserId', linkedUserId)); - } - if (remoteData) { - queryParams.push(serializeQuery('form', true, 'remote_data', remoteData)); - } - const urlEndpoint = '/crm/contact'; - const urlParams = queryParams.length > 0 ? `?${queryParams.join('&')}` : ''; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}${urlParams}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async contactControllerAddContacts( - input: ContactControllerAddContactsRequest, - integrationId: string, - linkedUserId: string, - optionalParams: { remoteData?: boolean } = {}, - ): Promise { - const { remoteData } = optionalParams; - if (integrationId === undefined || linkedUserId === undefined) { - throw new Error( - 'The following are required parameters: integrationId,linkedUserId, cannot be empty or blank', - ); - } - const queryParams: string[] = []; - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - if (integrationId) { - queryParams.push(serializeQuery('form', true, 'integrationId', integrationId)); - } - if (linkedUserId) { - queryParams.push(serializeQuery('form', true, 'linkedUserId', linkedUserId)); - } - if (remoteData) { - queryParams.push(serializeQuery('form', true, 'remote_data', remoteData)); - } - const urlEndpoint = '/crm/contact'; - const urlParams = queryParams.length > 0 ? `?${queryParams.join('&')}` : ''; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}${urlParams}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async contactControllerUpdateContact(id: string): Promise { - if (id === undefined) { - throw new Error('The following parameter is required: id, cannot be empty or blank'); - } - const queryParams: string[] = []; - if (id) { - queryParams.push(serializeQuery('form', true, 'id', id)); - } - const urlEndpoint = '/crm/contact'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}?${queryParams.join('&')}`); - const response: any = await this.httpClient.patch( - finalUrl, - { id }, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async contactControllerGetContact( - id: string, - optionalParams: { remoteData?: boolean } = {}, - ): Promise { - const { remoteData } = optionalParams; - if (id === undefined) { - throw new Error('The following parameter is required: id, cannot be empty or blank'); - } - const queryParams: string[] = []; - let urlEndpoint = '/crm/contact/{id}'; - urlEndpoint = urlEndpoint.replace('{id}', serializePath('simple', false, id, undefined)); - if (remoteData) { - queryParams.push(serializeQuery('form', true, 'remote_data', remoteData)); - } - const urlParams = queryParams.length > 0 ? `?${queryParams.join('&')}` : ''; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}${urlParams}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/crmContact/index.ts b/packages/sdk/output/typescript/src/services/crmContact/index.ts deleted file mode 100644 index 205c9c387..000000000 --- a/packages/sdk/output/typescript/src/services/crmContact/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { ContactControllerAddContactsRequest } from './models/ContactControllerAddContactsRequest'; diff --git a/packages/sdk/output/typescript/src/services/crmContact/models/ContactControllerAddContactsRequest.ts b/packages/sdk/output/typescript/src/services/crmContact/models/ContactControllerAddContactsRequest.ts deleted file mode 100644 index 488794cba..000000000 --- a/packages/sdk/output/typescript/src/services/crmContact/models/ContactControllerAddContactsRequest.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { UnifiedContactInput } from './UnifiedContactInput'; - -export type ContactControllerAddContactsRequest = UnifiedContactInput[]; diff --git a/packages/sdk/output/typescript/src/services/crmContact/models/UnifiedContactInput.ts b/packages/sdk/output/typescript/src/services/crmContact/models/UnifiedContactInput.ts deleted file mode 100644 index dfb3f0389..000000000 --- a/packages/sdk/output/typescript/src/services/crmContact/models/UnifiedContactInput.ts +++ /dev/null @@ -1 +0,0 @@ -export interface UnifiedContactInput {} diff --git a/packages/sdk/output/typescript/src/services/events/Events.ts b/packages/sdk/output/typescript/src/services/events/Events.ts deleted file mode 100644 index 37877bd78..000000000 --- a/packages/sdk/output/typescript/src/services/events/Events.ts +++ /dev/null @@ -1,18 +0,0 @@ -import BaseService from '../../BaseService'; - -export class EventsService extends BaseService { - async eventsControllerGetEvents(): Promise { - const urlEndpoint = '/events'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/fieldMapping/FieldMapping.ts b/packages/sdk/output/typescript/src/services/fieldMapping/FieldMapping.ts deleted file mode 100644 index 47e15bb4c..000000000 --- a/packages/sdk/output/typescript/src/services/fieldMapping/FieldMapping.ts +++ /dev/null @@ -1,117 +0,0 @@ -import BaseService from '../../BaseService'; - -import { DefineTargetFieldDto } from './models/DefineTargetFieldDto'; -import { MapFieldToProviderDto } from './models/MapFieldToProviderDto'; - -import { serializeQuery } from '../../http/QuerySerializer'; - -export class FieldMappingService extends BaseService { - async fieldMappingControllerGetEntities(): Promise { - const urlEndpoint = '/field-mapping/entities'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async fieldMappingControllerGetAttributes(): Promise { - const urlEndpoint = '/field-mapping/attribute'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async fieldMappingControllerGetValues(): Promise { - const urlEndpoint = '/field-mapping/value'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async fieldMappingControllerDefineTargetField(input: DefineTargetFieldDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/field-mapping/define'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async fieldMappingControllerMapFieldToProvider(input: MapFieldToProviderDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/field-mapping/map'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async fieldMappingControllerGetCustomProperties( - linkedUserId: string, - providerId: string, - ): Promise { - if (linkedUserId === undefined || providerId === undefined) { - throw new Error( - 'The following are required parameters: linkedUserId,providerId, cannot be empty or blank', - ); - } - const queryParams: string[] = []; - if (linkedUserId) { - queryParams.push(serializeQuery('form', true, 'linkedUserId', linkedUserId)); - } - if (providerId) { - queryParams.push(serializeQuery('form', true, 'providerId', providerId)); - } - const urlEndpoint = '/field-mapping/properties'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}?${queryParams.join('&')}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/fieldMapping/index.ts b/packages/sdk/output/typescript/src/services/fieldMapping/index.ts deleted file mode 100644 index dbf615565..000000000 --- a/packages/sdk/output/typescript/src/services/fieldMapping/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { DefineTargetFieldDto } from './models/DefineTargetFieldDto'; -export type { MapFieldToProviderDto } from './models/MapFieldToProviderDto'; diff --git a/packages/sdk/output/typescript/src/services/fieldMapping/models/DefineTargetFieldDto.ts b/packages/sdk/output/typescript/src/services/fieldMapping/models/DefineTargetFieldDto.ts deleted file mode 100644 index 3a805e3c2..000000000 --- a/packages/sdk/output/typescript/src/services/fieldMapping/models/DefineTargetFieldDto.ts +++ /dev/null @@ -1,9 +0,0 @@ -export interface DefineTargetFieldDto { - object_type_owner: ObjectTypeOwner; - name: string; - description: string; - data_type: string; -} -interface ObjectTypeOwner { - [k: string]: unknown; -} diff --git a/packages/sdk/output/typescript/src/services/fieldMapping/models/MapFieldToProviderDto.ts b/packages/sdk/output/typescript/src/services/fieldMapping/models/MapFieldToProviderDto.ts deleted file mode 100644 index c43b1e0d7..000000000 --- a/packages/sdk/output/typescript/src/services/fieldMapping/models/MapFieldToProviderDto.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface MapFieldToProviderDto { - attributeId: string; - source_custom_field_id: string; - source_provider: string; - linked_user_id: string; -} diff --git a/packages/sdk/output/typescript/src/services/linkedUsers/LinkedUsers.ts b/packages/sdk/output/typescript/src/services/linkedUsers/LinkedUsers.ts deleted file mode 100644 index a676ad64e..000000000 --- a/packages/sdk/output/typescript/src/services/linkedUsers/LinkedUsers.ts +++ /dev/null @@ -1,61 +0,0 @@ -import BaseService from '../../BaseService'; - -import { CreateLinkedUserDto } from './models/CreateLinkedUserDto'; - -import { serializeQuery } from '../../http/QuerySerializer'; - -export class LinkedUsersService extends BaseService { - async linkedUsersControllerAddLinkedUser(input: CreateLinkedUserDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/linked-users/create'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async linkedUsersControllerGetLinkedUsers(): Promise { - const urlEndpoint = '/linked-users'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async linkedUsersControllerGetLinkedUser(id: string): Promise { - if (id === undefined) { - throw new Error('The following parameter is required: id, cannot be empty or blank'); - } - const queryParams: string[] = []; - if (id) { - queryParams.push(serializeQuery('form', true, 'id', id)); - } - const urlEndpoint = '/linked-users/single'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}?${queryParams.join('&')}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/linkedUsers/index.ts b/packages/sdk/output/typescript/src/services/linkedUsers/index.ts deleted file mode 100644 index 7788f1666..000000000 --- a/packages/sdk/output/typescript/src/services/linkedUsers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { CreateLinkedUserDto } from './models/CreateLinkedUserDto'; diff --git a/packages/sdk/output/typescript/src/services/linkedUsers/models/CreateLinkedUserDto.ts b/packages/sdk/output/typescript/src/services/linkedUsers/models/CreateLinkedUserDto.ts deleted file mode 100644 index 49ac498b1..000000000 --- a/packages/sdk/output/typescript/src/services/linkedUsers/models/CreateLinkedUserDto.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface CreateLinkedUserDto { - linked_user_origin_id: string; - alias: string; - id_project: string; -} diff --git a/packages/sdk/output/typescript/src/services/magicLink/MagicLink.ts b/packages/sdk/output/typescript/src/services/magicLink/MagicLink.ts deleted file mode 100644 index 8914ec605..000000000 --- a/packages/sdk/output/typescript/src/services/magicLink/MagicLink.ts +++ /dev/null @@ -1,61 +0,0 @@ -import BaseService from '../../BaseService'; - -import { CreateMagicLinkDto } from './models/CreateMagicLinkDto'; - -import { serializeQuery } from '../../http/QuerySerializer'; - -export class MagicLinkService extends BaseService { - async magicLinkControllerCreateLink(input: CreateMagicLinkDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/magic-link/create'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async magicLinkControllerGetMagicLinks(): Promise { - const urlEndpoint = '/magic-link'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async magicLinkControllerGetMagicLink(id: string): Promise { - if (id === undefined) { - throw new Error('The following parameter is required: id, cannot be empty or blank'); - } - const queryParams: string[] = []; - if (id) { - queryParams.push(serializeQuery('form', true, 'id', id)); - } - const urlEndpoint = '/magic-link/single'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}?${queryParams.join('&')}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/magicLink/index.ts b/packages/sdk/output/typescript/src/services/magicLink/index.ts deleted file mode 100644 index 4ae2db8f5..000000000 --- a/packages/sdk/output/typescript/src/services/magicLink/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { CreateMagicLinkDto } from './models/CreateMagicLinkDto'; diff --git a/packages/sdk/output/typescript/src/services/magicLink/models/CreateMagicLinkDto.ts b/packages/sdk/output/typescript/src/services/magicLink/models/CreateMagicLinkDto.ts deleted file mode 100644 index 0c3830716..000000000 --- a/packages/sdk/output/typescript/src/services/magicLink/models/CreateMagicLinkDto.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface CreateMagicLinkDto { - linked_user_origin_id: string; - email: string; - alias: string; - id_project: string; -} diff --git a/packages/sdk/output/typescript/src/services/main/Main.ts b/packages/sdk/output/typescript/src/services/main/Main.ts deleted file mode 100644 index 2b6902449..000000000 --- a/packages/sdk/output/typescript/src/services/main/Main.ts +++ /dev/null @@ -1,18 +0,0 @@ -import BaseService from '../../BaseService'; - -export class MainService extends BaseService { - async appControllerGetHello(): Promise { - const urlEndpoint = '/'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/organisations/Organisations.ts b/packages/sdk/output/typescript/src/services/organisations/Organisations.ts deleted file mode 100644 index 5a0d4d4a6..000000000 --- a/packages/sdk/output/typescript/src/services/organisations/Organisations.ts +++ /dev/null @@ -1,37 +0,0 @@ -import BaseService from '../../BaseService'; - -import { CreateOrganizationDto } from './models/CreateOrganizationDto'; - -export class OrganisationsService extends BaseService { - async organisationsControllerGetOragnisations(): Promise { - const urlEndpoint = '/organisations'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async organisationsControllerCreateOrg(input: CreateOrganizationDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/organisations/create'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/organisations/index.ts b/packages/sdk/output/typescript/src/services/organisations/index.ts deleted file mode 100644 index f25975c05..000000000 --- a/packages/sdk/output/typescript/src/services/organisations/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { CreateOrganizationDto } from './models/CreateOrganizationDto'; diff --git a/packages/sdk/output/typescript/src/services/organisations/models/CreateOrganizationDto.ts b/packages/sdk/output/typescript/src/services/organisations/models/CreateOrganizationDto.ts deleted file mode 100644 index 5cfa0419f..000000000 --- a/packages/sdk/output/typescript/src/services/organisations/models/CreateOrganizationDto.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface CreateOrganizationDto { - name: string; - stripe_customer_id: string; -} diff --git a/packages/sdk/output/typescript/src/services/passthrough/Passthrough.ts b/packages/sdk/output/typescript/src/services/passthrough/Passthrough.ts deleted file mode 100644 index 9ef282327..000000000 --- a/packages/sdk/output/typescript/src/services/passthrough/Passthrough.ts +++ /dev/null @@ -1,41 +0,0 @@ -import BaseService from '../../BaseService'; - -import { PassThroughResponse } from './models/PassThroughResponse'; -import { PassThroughRequestDto } from './models/PassThroughRequestDto'; - -import { serializeQuery } from '../../http/QuerySerializer'; - -export class PassthroughService extends BaseService { - async passthroughControllerPassthroughRequest( - input: PassThroughRequestDto, - integrationId: string, - linkedUserId: string, - ): Promise { - if (integrationId === undefined || linkedUserId === undefined) { - throw new Error( - 'The following are required parameters: integrationId,linkedUserId, cannot be empty or blank', - ); - } - const queryParams: string[] = []; - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - if (integrationId) { - queryParams.push(serializeQuery('form', true, 'integrationId', integrationId)); - } - if (linkedUserId) { - queryParams.push(serializeQuery('form', true, 'linkedUserId', linkedUserId)); - } - const urlEndpoint = '/passthrough'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}?${queryParams.join('&')}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data as PassThroughResponse; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/passthrough/index.ts b/packages/sdk/output/typescript/src/services/passthrough/index.ts deleted file mode 100644 index 0e1136bb5..000000000 --- a/packages/sdk/output/typescript/src/services/passthrough/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export type { PassThroughRequestDto } from './models/PassThroughRequestDto'; -export type { PassThroughResponse } from './models/PassThroughResponse'; diff --git a/packages/sdk/output/typescript/src/services/passthrough/models/PassThroughRequestDto.ts b/packages/sdk/output/typescript/src/services/passthrough/models/PassThroughRequestDto.ts deleted file mode 100644 index 96d7f51f9..000000000 --- a/packages/sdk/output/typescript/src/services/passthrough/models/PassThroughRequestDto.ts +++ /dev/null @@ -1,14 +0,0 @@ -type Method = 'GET' | 'POST' | 'PATCH' | 'DELETE' | 'PUT'; - -export interface PassThroughRequestDto { - method: Method; - path: string; - data?: Data; - headers_?: Headers_; -} -interface Data { - [k: string]: unknown; -} -interface Headers_ { - [k: string]: unknown; -} diff --git a/packages/sdk/output/typescript/src/services/passthrough/models/PassThroughResponse.ts b/packages/sdk/output/typescript/src/services/passthrough/models/PassThroughResponse.ts deleted file mode 100644 index 1e374b691..000000000 --- a/packages/sdk/output/typescript/src/services/passthrough/models/PassThroughResponse.ts +++ /dev/null @@ -1,8 +0,0 @@ -export interface PassThroughResponse { - url: string; - status: number; - data: Data; -} -interface Data { - [k: string]: unknown; -} diff --git a/packages/sdk/output/typescript/src/services/projects/Projects.ts b/packages/sdk/output/typescript/src/services/projects/Projects.ts deleted file mode 100644 index cf3ca8dba..000000000 --- a/packages/sdk/output/typescript/src/services/projects/Projects.ts +++ /dev/null @@ -1,37 +0,0 @@ -import BaseService from '../../BaseService'; - -import { CreateProjectDto } from './models/CreateProjectDto'; - -export class ProjectsService extends BaseService { - async projectsControllerGetProjects(): Promise { - const urlEndpoint = '/projects'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async projectsControllerCreateProject(input: CreateProjectDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/projects/create'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/projects/index.ts b/packages/sdk/output/typescript/src/services/projects/index.ts deleted file mode 100644 index b8575052f..000000000 --- a/packages/sdk/output/typescript/src/services/projects/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { CreateProjectDto } from './models/CreateProjectDto'; diff --git a/packages/sdk/output/typescript/src/services/projects/models/CreateProjectDto.ts b/packages/sdk/output/typescript/src/services/projects/models/CreateProjectDto.ts deleted file mode 100644 index b5cc2ecc6..000000000 --- a/packages/sdk/output/typescript/src/services/projects/models/CreateProjectDto.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface CreateProjectDto { - name: string; - id_organization: string; -} diff --git a/packages/sdk/output/typescript/src/services/webhook/Webhook.ts b/packages/sdk/output/typescript/src/services/webhook/Webhook.ts deleted file mode 100644 index cffb8a627..000000000 --- a/packages/sdk/output/typescript/src/services/webhook/Webhook.ts +++ /dev/null @@ -1,58 +0,0 @@ -import BaseService from '../../BaseService'; - -import { WebhookDto } from './models/WebhookDto'; - -import { serializePath } from '../../http/QuerySerializer'; - -export class WebhookService extends BaseService { - async webhookControllerGetWebhooks(): Promise { - const urlEndpoint = '/webhook'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.get( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async webhookControllerAddWebhook(input: WebhookDto): Promise { - const headers: { [key: string]: string } = { 'Content-type': 'application/json' }; - const urlEndpoint = '/webhook'; - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.post( - finalUrl, - input, - { - ...headers, - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } - - async webhookControllerUpdateWebhookStatus(id: string): Promise { - if (id === undefined) { - throw new Error('The following parameter is required: id, cannot be empty or blank'); - } - let urlEndpoint = '/webhook/{id}'; - urlEndpoint = urlEndpoint.replace('{id}', serializePath('simple', false, id, undefined)); - const finalUrl = encodeURI(`${this.baseUrl + urlEndpoint}`); - const response: any = await this.httpClient.put( - finalUrl, - {}, - { - ...this.getAuthorizationHeader(), - }, - true, - ); - const responseModel = response.data; - return responseModel; - } -} diff --git a/packages/sdk/output/typescript/src/services/webhook/index.ts b/packages/sdk/output/typescript/src/services/webhook/index.ts deleted file mode 100644 index ffb8287cc..000000000 --- a/packages/sdk/output/typescript/src/services/webhook/index.ts +++ /dev/null @@ -1 +0,0 @@ -export type { WebhookDto } from './models/WebhookDto'; diff --git a/packages/sdk/output/typescript/src/services/webhook/models/WebhookDto.ts b/packages/sdk/output/typescript/src/services/webhook/models/WebhookDto.ts deleted file mode 100644 index fce2e450a..000000000 --- a/packages/sdk/output/typescript/src/services/webhook/models/WebhookDto.ts +++ /dev/null @@ -1,6 +0,0 @@ -export interface WebhookDto { - url: string; - description?: string; - id_project: string; - scope: string; -} diff --git a/packages/sdk/output/typescript/test/services/auth/Auth.test.ts b/packages/sdk/output/typescript/test/services/auth/Auth.test.ts deleted file mode 100644 index 70a54825c..000000000 --- a/packages/sdk/output/typescript/test/services/auth/Auth.test.ts +++ /dev/null @@ -1,58 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { AuthService } from '../../../src/services/auth/Auth'; - -describe('test AuthService object', () => { - it('should be an object', () => { - expect(typeof AuthService).toBe('function'); - }); -}); - -describe('test Auth', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test authControllerRegisterUser', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').post('/auth/register').reply(200, { data: {} }); - return sdk.auth.authControllerRegisterUser({}).then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test authControllerLogin', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').post('/auth/login').reply(200, { data: {} }); - return sdk.auth.authControllerLogin({}).then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test authControllerUsers', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/auth/users').reply(200, { data: {} }); - return sdk.auth.authControllerUsers().then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test authControllerApiKeys', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/auth/api-keys').reply(200, { data: {} }); - return sdk.auth.authControllerApiKeys().then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test authControllerGenerateApiKey', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/auth/generate-apikey') - .reply(200, { data: {} }); - return sdk.auth.authControllerGenerateApiKey({}).then((r: any) => expect(r.data).toEqual({})); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/connections/Connections.test.ts b/packages/sdk/output/typescript/test/services/connections/Connections.test.ts deleted file mode 100644 index 0d3fca895..000000000 --- a/packages/sdk/output/typescript/test/services/connections/Connections.test.ts +++ /dev/null @@ -1,64 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { ConnectionsService } from '../../../src/services/connections/Connections'; - -describe('test ConnectionsService object', () => { - it('should be an object', () => { - expect(typeof ConnectionsService).toBe('function'); - }); -}); - -describe('test Connections', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test connectionsControllerHandleCallback', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/connections/oauth/callback?state=omnis&code=accusantium&location=a') - .reply(200, { data: {} }); - return sdk.connections - .connectionsControllerHandleCallback('omnis', 'accusantium', 'a') - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .get('/connections/oauth/callback?state=facilis&code=unde&location=fugiat') - .reply(200, { data: {} }); - return expect( - async () => await sdk.connections.connectionsControllerHandleCallback(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .get('/connections/oauth/callback?state=nemo&code=illum&location=perspiciatis') - .reply(404, { data: {} }); - return expect( - async () => - await sdk.connections.connectionsControllerHandleCallback( - 'nemo', - 'illum', - 'perspiciatis', - ), - ).rejects.toThrow(); - }); - }); - - describe('test connectionsControllerGetConnections', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/connections').reply(200, { data: {} }); - return sdk.connections - .connectionsControllerGetConnections() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/crmContact/CrmContact.test.ts b/packages/sdk/output/typescript/test/services/crmContact/CrmContact.test.ts deleted file mode 100644 index 6d7bcfabb..000000000 --- a/packages/sdk/output/typescript/test/services/crmContact/CrmContact.test.ts +++ /dev/null @@ -1,142 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { CrmContactService } from '../../../src/services/crmContact/CrmContact'; - -describe('test CrmContactService object', () => { - it('should be an object', () => { - expect(typeof CrmContactService).toBe('function'); - }); -}); - -describe('test CrmContact', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test contactControllerGetContacts', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/crm/contact?integrationId=sequi&linkedUserId=possimus&remote_data=true') - .reply(200, { data: {} }); - return sdk.crmContact - .contactControllerGetContacts('sequi', 'possimus', { remoteData: true }) - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .get('/crm/contact?integrationId=esse&linkedUserId=consequuntur&remote_data=true') - .reply(200, { data: {} }); - return expect( - async () => await sdk.crmContact.contactControllerGetContacts(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .get('/crm/contact?integrationId=culpa&linkedUserId=hic&remote_data=true') - .reply(404, { data: {} }); - return expect( - async () => - await sdk.crmContact.contactControllerGetContacts('culpa', 'hic', { remoteData: true }), - ).rejects.toThrow(); - }); - }); - - describe('test contactControllerAddContacts', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/crm/contact?integrationId=eaque&linkedUserId=nesciunt&remote_data=true') - .reply(200, { data: {} }); - return sdk.crmContact - .contactControllerAddContacts({}, 'eaque', 'nesciunt', { remoteData: true }) - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .post('/crm/contact?integrationId=suscipit&linkedUserId=ipsa&remote_data=true') - .reply(200, { data: {} }); - return expect( - async () => await sdk.crmContact.contactControllerAddContacts(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .post('/crm/contact?integrationId=delectus&linkedUserId=accusamus&remote_data=true') - .reply(404, { data: {} }); - return expect( - async () => - await sdk.crmContact.contactControllerAddContacts({}, 'delectus', 'accusamus', { - remoteData: true, - }), - ).rejects.toThrow(); - }); - }); - - describe('test contactControllerUpdateContact', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .patch('/crm/contact?id=5736120745') - .reply(200, { data: {} }); - return sdk.crmContact - .contactControllerUpdateContact('5736120745') - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .patch('/crm/contact?id=9900368907') - .reply(200, { data: {} }); - return expect( - async () => await sdk.crmContact.contactControllerUpdateContact(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .patch('/crm/contact?id=8266024676') - .reply(404, { data: {} }); - return expect( - async () => await sdk.crmContact.contactControllerUpdateContact('8266024676'), - ).rejects.toThrow(); - }); - }); - - describe('test contactControllerGetContact', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/crm/contact/5281087660?remote_data=true') - .reply(200, { data: {} }); - return sdk.crmContact - .contactControllerGetContact('5281087660', { remoteData: true }) - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .get('/crm/contact/8073472005?remote_data=true') - .reply(200, { data: {} }); - return expect( - async () => await sdk.crmContact.contactControllerGetContact(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .get('/crm/contact/2246703175?remote_data=true') - .reply(404, { data: {} }); - return expect( - async () => - await sdk.crmContact.contactControllerGetContact('2246703175', { remoteData: true }), - ).rejects.toThrow(); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/events/Events.test.ts b/packages/sdk/output/typescript/test/services/events/Events.test.ts deleted file mode 100644 index 2a9dd29c8..000000000 --- a/packages/sdk/output/typescript/test/services/events/Events.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { EventsService } from '../../../src/services/events/Events'; - -describe('test EventsService object', () => { - it('should be an object', () => { - expect(typeof EventsService).toBe('function'); - }); -}); - -describe('test Events', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test eventsControllerGetEvents', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/events').reply(200, { data: {} }); - return sdk.events.eventsControllerGetEvents().then((r: any) => expect(r.data).toEqual({})); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/fieldMapping/FieldMapping.test.ts b/packages/sdk/output/typescript/test/services/fieldMapping/FieldMapping.test.ts deleted file mode 100644 index 648fb1593..000000000 --- a/packages/sdk/output/typescript/test/services/fieldMapping/FieldMapping.test.ts +++ /dev/null @@ -1,106 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { FieldMappingService } from '../../../src/services/fieldMapping/FieldMapping'; - -describe('test FieldMappingService object', () => { - it('should be an object', () => { - expect(typeof FieldMappingService).toBe('function'); - }); -}); - -describe('test FieldMapping', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test fieldMappingControllerGetEntities', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/field-mapping/entities') - .reply(200, { data: {} }); - return sdk.fieldMapping - .fieldMappingControllerGetEntities() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test fieldMappingControllerGetAttributes', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/field-mapping/attribute') - .reply(200, { data: {} }); - return sdk.fieldMapping - .fieldMappingControllerGetAttributes() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test fieldMappingControllerGetValues', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/field-mapping/value') - .reply(200, { data: {} }); - return sdk.fieldMapping - .fieldMappingControllerGetValues() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test fieldMappingControllerDefineTargetField', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/field-mapping/define') - .reply(200, { data: {} }); - return sdk.fieldMapping - .fieldMappingControllerDefineTargetField({}) - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test fieldMappingControllerMapFieldToProvider', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/field-mapping/map') - .reply(200, { data: {} }); - return sdk.fieldMapping - .fieldMappingControllerMapFieldToProvider({}) - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test fieldMappingControllerGetCustomProperties', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/field-mapping/properties?linkedUserId=sapiente&providerId=1519266763') - .reply(200, { data: {} }); - return sdk.fieldMapping - .fieldMappingControllerGetCustomProperties('sapiente', '1519266763') - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .get('/field-mapping/properties?linkedUserId=distinctio&providerId=9158364132') - .reply(200, { data: {} }); - return expect( - async () => await sdk.fieldMapping.fieldMappingControllerGetCustomProperties(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .get('/field-mapping/properties?linkedUserId=et&providerId=9578828306') - .reply(404, { data: {} }); - return expect( - async () => - await sdk.fieldMapping.fieldMappingControllerGetCustomProperties('et', '9578828306'), - ).rejects.toThrow(); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/linkedUsers/LinkedUsers.test.ts b/packages/sdk/output/typescript/test/services/linkedUsers/LinkedUsers.test.ts deleted file mode 100644 index f20c83967..000000000 --- a/packages/sdk/output/typescript/test/services/linkedUsers/LinkedUsers.test.ts +++ /dev/null @@ -1,70 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { LinkedUsersService } from '../../../src/services/linkedUsers/LinkedUsers'; - -describe('test LinkedUsersService object', () => { - it('should be an object', () => { - expect(typeof LinkedUsersService).toBe('function'); - }); -}); - -describe('test LinkedUsers', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test linkedUsersControllerAddLinkedUser', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/linked-users/create') - .reply(200, { data: {} }); - return sdk.linkedUsers - .linkedUsersControllerAddLinkedUser({}) - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test linkedUsersControllerGetLinkedUsers', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/linked-users').reply(200, { data: {} }); - return sdk.linkedUsers - .linkedUsersControllerGetLinkedUsers() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test linkedUsersControllerGetLinkedUser', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/linked-users/single?id=2330477156') - .reply(200, { data: {} }); - return sdk.linkedUsers - .linkedUsersControllerGetLinkedUser('2330477156') - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .get('/linked-users/single?id=9019964766') - .reply(200, { data: {} }); - return expect( - async () => await sdk.linkedUsers.linkedUsersControllerGetLinkedUser(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .get('/linked-users/single?id=3751442506') - .reply(404, { data: {} }); - return expect( - async () => await sdk.linkedUsers.linkedUsersControllerGetLinkedUser('3751442506'), - ).rejects.toThrow(); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/magicLink/MagicLink.test.ts b/packages/sdk/output/typescript/test/services/magicLink/MagicLink.test.ts deleted file mode 100644 index 9f4af1fd0..000000000 --- a/packages/sdk/output/typescript/test/services/magicLink/MagicLink.test.ts +++ /dev/null @@ -1,70 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { MagicLinkService } from '../../../src/services/magicLink/MagicLink'; - -describe('test MagicLinkService object', () => { - it('should be an object', () => { - expect(typeof MagicLinkService).toBe('function'); - }); -}); - -describe('test MagicLink', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test magicLinkControllerCreateLink', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/magic-link/create') - .reply(200, { data: {} }); - return sdk.magicLink - .magicLinkControllerCreateLink({}) - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test magicLinkControllerGetMagicLinks', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/magic-link').reply(200, { data: {} }); - return sdk.magicLink - .magicLinkControllerGetMagicLinks() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test magicLinkControllerGetMagicLink', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .get('/magic-link/single?id=5585664733') - .reply(200, { data: {} }); - return sdk.magicLink - .magicLinkControllerGetMagicLink('5585664733') - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .get('/magic-link/single?id=6005345069') - .reply(200, { data: {} }); - return expect( - async () => await sdk.magicLink.magicLinkControllerGetMagicLink(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .get('/magic-link/single?id=9348347296') - .reply(404, { data: {} }); - return expect( - async () => await sdk.magicLink.magicLinkControllerGetMagicLink('9348347296'), - ).rejects.toThrow(); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/main/Main.test.ts b/packages/sdk/output/typescript/test/services/main/Main.test.ts deleted file mode 100644 index beaab28d6..000000000 --- a/packages/sdk/output/typescript/test/services/main/Main.test.ts +++ /dev/null @@ -1,28 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { MainService } from '../../../src/services/main/Main'; - -describe('test MainService object', () => { - it('should be an object', () => { - expect(typeof MainService).toBe('function'); - }); -}); - -describe('test Main', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test appControllerGetHello', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/').reply(200, { data: {} }); - return sdk.main.appControllerGetHello().then((r: any) => expect(r.data).toEqual({})); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/organisations/Organisations.test.ts b/packages/sdk/output/typescript/test/services/organisations/Organisations.test.ts deleted file mode 100644 index 267eba0bf..000000000 --- a/packages/sdk/output/typescript/test/services/organisations/Organisations.test.ts +++ /dev/null @@ -1,41 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { OrganisationsService } from '../../../src/services/organisations/Organisations'; - -describe('test OrganisationsService object', () => { - it('should be an object', () => { - expect(typeof OrganisationsService).toBe('function'); - }); -}); - -describe('test Organisations', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test organisationsControllerGetOragnisations', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/organisations').reply(200, { data: {} }); - return sdk.organisations - .organisationsControllerGetOragnisations() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test organisationsControllerCreateOrg', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/organisations/create') - .reply(200, { data: {} }); - return sdk.organisations - .organisationsControllerCreateOrg({}) - .then((r: any) => expect(r.data).toEqual({})); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/passthrough/Passthrough.test.ts b/packages/sdk/output/typescript/test/services/passthrough/Passthrough.test.ts deleted file mode 100644 index b5f99efd8..000000000 --- a/packages/sdk/output/typescript/test/services/passthrough/Passthrough.test.ts +++ /dev/null @@ -1,51 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { PassthroughService } from '../../../src/services/passthrough/Passthrough'; - -describe('test PassthroughService object', () => { - it('should be an object', () => { - expect(typeof PassthroughService).toBe('function'); - }); -}); - -describe('test Passthrough', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test passthroughControllerPassthroughRequest', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/passthrough?integrationId=cum&linkedUserId=rem') - .reply(200, { data: {} }); - return sdk.passthrough - .passthroughControllerPassthroughRequest({}, 'cum', 'rem') - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .post('/passthrough?integrationId=excepturi&linkedUserId=cupiditate') - .reply(200, { data: {} }); - return expect( - async () => await sdk.passthrough.passthroughControllerPassthroughRequest(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .post('/passthrough?integrationId=velit&linkedUserId=recusandae') - .reply(404, { data: {} }); - return expect( - async () => - await sdk.passthrough.passthroughControllerPassthroughRequest({}, 'velit', 'recusandae'), - ).rejects.toThrow(); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/projects/Projects.test.ts b/packages/sdk/output/typescript/test/services/projects/Projects.test.ts deleted file mode 100644 index 9516e50c0..000000000 --- a/packages/sdk/output/typescript/test/services/projects/Projects.test.ts +++ /dev/null @@ -1,41 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { ProjectsService } from '../../../src/services/projects/Projects'; - -describe('test ProjectsService object', () => { - it('should be an object', () => { - expect(typeof ProjectsService).toBe('function'); - }); -}); - -describe('test Projects', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test projectsControllerGetProjects', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/projects').reply(200, { data: {} }); - return sdk.projects - .projectsControllerGetProjects() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test projectsControllerCreateProject', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .post('/projects/create') - .reply(200, { data: {} }); - return sdk.projects - .projectsControllerCreateProject({}) - .then((r: any) => expect(r.data).toEqual({})); - }); - }); -}); diff --git a/packages/sdk/output/typescript/test/services/webhook/Webhook.test.ts b/packages/sdk/output/typescript/test/services/webhook/Webhook.test.ts deleted file mode 100644 index da5213b21..000000000 --- a/packages/sdk/output/typescript/test/services/webhook/Webhook.test.ts +++ /dev/null @@ -1,68 +0,0 @@ -import nock from 'nock'; - -import { Testsdk } from '../../../src'; - -import { WebhookService } from '../../../src/services/webhook/Webhook'; - -describe('test WebhookService object', () => { - it('should be an object', () => { - expect(typeof WebhookService).toBe('function'); - }); -}); - -describe('test Webhook', () => { - let sdk: any; - - beforeEach(() => { - sdk = new Testsdk({}); - - nock.cleanAll(); - }); - - describe('test webhookControllerGetWebhooks', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').get('/webhook').reply(200, { data: {} }); - return sdk.webhook - .webhookControllerGetWebhooks() - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test webhookControllerAddWebhook', () => { - test('test api call', () => { - const scope = nock('http://api.example.com').post('/webhook').reply(200, { data: {} }); - return sdk.webhook - .webhookControllerAddWebhook({}) - .then((r: any) => expect(r.data).toEqual({})); - }); - }); - - describe('test webhookControllerUpdateWebhookStatus', () => { - test('test api call', () => { - const scope = nock('http://api.example.com') - .put('/webhook/2578090855') - .reply(200, { data: {} }); - return sdk.webhook - .webhookControllerUpdateWebhookStatus('2578090855') - .then((r: any) => expect(r.data).toEqual({})); - }); - - test('test will throw error if required fields missing', () => { - const scope = nock('http://api.example.com') - .put('/webhook/9823959652') - .reply(200, { data: {} }); - return expect( - async () => await sdk.webhook.webhookControllerUpdateWebhookStatus(), - ).rejects.toThrow(); - }); - - test('test will throw error on a non-200 response', () => { - const scope = nock('http://api.example.com') - .put('/webhook/8383133423') - .reply(404, { data: {} }); - return expect( - async () => await sdk.webhook.webhookControllerUpdateWebhookStatus('8383133423'), - ).rejects.toThrow(); - }); - }); -}); diff --git a/packages/sdk/output/typescript/tsconfig.eslint.json b/packages/sdk/output/typescript/tsconfig.eslint.json deleted file mode 100644 index af9d6881c..000000000 --- a/packages/sdk/output/typescript/tsconfig.eslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "include": [ - "./src", "./test", "./examples" - ] -} diff --git a/packages/sdk/output/typescript/tsconfig.json b/packages/sdk/output/typescript/tsconfig.json deleted file mode 100644 index 651d48fdb..000000000 --- a/packages/sdk/output/typescript/tsconfig.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "compilerOptions": { - "target": "es2018", - "module": "commonjs", - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "strict": true, - "skipLibCheck": true, - "outDir": "./dist", - "rootDir": "./src", - "noImplicitAny": true, - "baseUrl": "./", - "declaration": true, - "moduleResolution": "node", - "isolatedModules": true, - "allowSyntheticDefaultImports": true, - "declarationMap": true, - "lib": ["ES2021.String", "dom", "esnext"], - "sourceMap": true - }, - "include": [ - "./src/" - ], - "exclude": [ - "src/client/@custom_types" - ] -}