celitech-sdk 1.1.68 → 1.1.72
Sign up to get free protection for your applications and to get access to all the features.
- package/.devcontainer/devcontainer.json +24 -0
- package/.github/workflows/publish_npmjs.yml +31 -0
- package/.manifest.json +245 -0
- package/LICENSE +9 -7
- package/README.md +86 -459
- package/documentation/models/CreatePurchaseOkResponse.md +31 -0
- package/documentation/models/CreatePurchaseRequest.md +15 -0
- package/documentation/models/EditPurchaseOkResponse.md +11 -0
- package/documentation/models/EditPurchaseRequest.md +11 -0
- package/documentation/models/GetEsimDeviceOkResponse.md +18 -0
- package/documentation/models/GetEsimHistoryOkResponse.md +26 -0
- package/documentation/models/GetEsimMacOkResponse.md +17 -0
- package/documentation/models/GetEsimOkResponse.md +18 -0
- package/documentation/models/GetPurchaseConsumptionOkResponse.md +8 -0
- package/documentation/models/ListDestinationsOkResponse.md +17 -0
- package/documentation/models/ListPackagesOkResponse.md +21 -0
- package/documentation/models/ListPurchasesOkResponse.md +46 -0
- package/documentation/models/TopUpEsimOkResponse.md +30 -0
- package/documentation/models/TopUpEsimRequest.md +14 -0
- package/documentation/services/DestinationsService.md +35 -0
- package/documentation/services/ESimService.md +148 -0
- package/documentation/services/PackagesService.md +48 -0
- package/documentation/services/PurchasesService.md +219 -0
- package/examples/README.md +27 -0
- package/examples/package.json +18 -0
- package/examples/src/index.ts +12 -0
- package/examples/tsconfig.json +22 -0
- package/package.json +17 -50
- package/src/http/client.ts +46 -0
- package/src/http/environment.ts +3 -0
- package/src/http/error.ts +12 -0
- package/src/http/handlers/handler-chain.ts +22 -0
- package/src/http/handlers/hook-handler.ts +47 -0
- package/src/http/handlers/request-validation-handler.ts +72 -0
- package/src/http/handlers/response-validation-handler.ts +106 -0
- package/src/http/handlers/retry-handler.ts +40 -0
- package/src/http/handlers/terminating-handler.ts +38 -0
- package/src/http/hooks/custom-hook.ts +87 -0
- package/src/http/hooks/hook.ts +40 -0
- package/src/http/index.ts +4 -0
- package/src/http/serializer.ts +183 -0
- package/src/http/transport/request-builder.ts +145 -0
- package/src/http/transport/request.ts +178 -0
- package/src/http/types.ts +70 -0
- package/src/index.ts +68 -0
- package/src/services/base-service.ts +29 -0
- package/src/services/destinations/destinations.ts +29 -0
- package/src/services/destinations/index.ts +1 -0
- package/src/services/destinations/models/destinations.ts +57 -0
- package/src/services/destinations/models/index.ts +2 -0
- package/src/services/destinations/models/list-destinations-ok-response.ts +42 -0
- package/src/services/e-sim/e-sim.ts +104 -0
- package/src/services/e-sim/index.ts +1 -0
- package/src/services/e-sim/models/device.ts +63 -0
- package/src/services/e-sim/models/get-esim-device-ok-response.ts +42 -0
- package/src/services/e-sim/models/get-esim-history-ok-response-esim.ts +47 -0
- package/src/services/e-sim/models/get-esim-history-ok-response.ts +46 -0
- package/src/services/e-sim/models/get-esim-mac-ok-response-esim.ts +57 -0
- package/src/services/e-sim/models/get-esim-mac-ok-response.ts +46 -0
- package/src/services/e-sim/models/get-esim-ok-response-esim.ts +63 -0
- package/src/services/e-sim/models/get-esim-ok-response.ts +46 -0
- package/src/services/e-sim/models/history.ts +53 -0
- package/src/services/e-sim/models/index.ts +9 -0
- package/src/services/e-sim/request-params.ts +3 -0
- package/src/services/packages/index.ts +1 -0
- package/src/services/packages/models/index.ts +2 -0
- package/src/services/packages/models/list-packages-ok-response.ts +49 -0
- package/src/services/packages/models/packages.ts +75 -0
- package/src/services/packages/packages.ts +49 -0
- package/src/services/packages/request-params.ts +10 -0
- package/src/services/purchases/index.ts +1 -0
- package/src/services/purchases/models/create-purchase-ok-response-profile.ts +46 -0
- package/src/services/purchases/models/create-purchase-ok-response-purchase.ts +81 -0
- package/src/services/purchases/models/create-purchase-ok-response.ts +61 -0
- package/src/services/purchases/models/create-purchase-request.ts +93 -0
- package/src/services/purchases/models/edit-purchase-ok-response.ts +69 -0
- package/src/services/purchases/models/edit-purchase-request.ts +69 -0
- package/src/services/purchases/models/get-purchase-consumption-ok-response.ts +48 -0
- package/src/services/purchases/models/index.ts +15 -0
- package/src/services/purchases/models/list-purchases-ok-response.ts +49 -0
- package/src/services/purchases/models/package_.ts +69 -0
- package/src/services/purchases/models/purchases-esim.ts +41 -0
- package/src/services/purchases/models/purchases.ts +107 -0
- package/src/services/purchases/models/top-up-esim-ok-response-profile.ts +41 -0
- package/src/services/purchases/models/top-up-esim-ok-response-purchase.ts +81 -0
- package/src/services/purchases/models/top-up-esim-ok-response.ts +61 -0
- package/src/services/purchases/models/top-up-esim-request.ts +87 -0
- package/src/services/purchases/purchases.ts +160 -0
- package/src/services/purchases/request-params.ts +10 -0
- package/tsconfig.json +22 -0
- package/dist/commonjs/BaseService.d.ts +0 -11
- package/dist/commonjs/BaseService.d.ts.map +0 -1
- package/dist/commonjs/BaseService.js +0 -30
- package/dist/commonjs/BaseService.js.map +0 -1
- package/dist/commonjs/hooks/CustomHook.d.ts +0 -59
- package/dist/commonjs/hooks/CustomHook.d.ts.map +0 -1
- package/dist/commonjs/hooks/CustomHook.js +0 -74
- package/dist/commonjs/hooks/CustomHook.js.map +0 -1
- package/dist/commonjs/hooks/Hook.d.ts +0 -24
- package/dist/commonjs/hooks/Hook.d.ts.map +0 -1
- package/dist/commonjs/hooks/Hook.js +0 -3
- package/dist/commonjs/hooks/Hook.js.map +0 -1
- package/dist/commonjs/http/Environment.d.ts +0 -4
- package/dist/commonjs/http/Environment.d.ts.map +0 -1
- package/dist/commonjs/http/Environment.js +0 -8
- package/dist/commonjs/http/Environment.js.map +0 -1
- package/dist/commonjs/http/HTTPClient.d.ts +0 -13
- package/dist/commonjs/http/HTTPClient.d.ts.map +0 -1
- package/dist/commonjs/http/HTTPClient.js +0 -3
- package/dist/commonjs/http/HTTPClient.js.map +0 -1
- package/dist/commonjs/http/HTTPLibrary.d.ts +0 -23
- package/dist/commonjs/http/HTTPLibrary.d.ts.map +0 -1
- package/dist/commonjs/http/HTTPLibrary.js +0 -143
- package/dist/commonjs/http/HTTPLibrary.js.map +0 -1
- package/dist/commonjs/http/QuerySerializer.d.ts +0 -6
- package/dist/commonjs/http/QuerySerializer.d.ts.map +0 -1
- package/dist/commonjs/http/QuerySerializer.js +0 -70
- package/dist/commonjs/http/QuerySerializer.js.map +0 -1
- package/dist/commonjs/http/errors/BadGateway.d.ts +0 -7
- package/dist/commonjs/http/errors/BadGateway.d.ts.map +0 -1
- package/dist/commonjs/http/errors/BadGateway.js +0 -12
- package/dist/commonjs/http/errors/BadGateway.js.map +0 -1
- package/dist/commonjs/http/errors/BadRequest.d.ts +0 -7
- package/dist/commonjs/http/errors/BadRequest.d.ts.map +0 -1
- package/dist/commonjs/http/errors/BadRequest.js +0 -12
- package/dist/commonjs/http/errors/BadRequest.js.map +0 -1
- package/dist/commonjs/http/errors/Conflict.d.ts +0 -7
- package/dist/commonjs/http/errors/Conflict.d.ts.map +0 -1
- package/dist/commonjs/http/errors/Conflict.js +0 -12
- package/dist/commonjs/http/errors/Conflict.js.map +0 -1
- package/dist/commonjs/http/errors/ExpectationFailed.d.ts +0 -7
- package/dist/commonjs/http/errors/ExpectationFailed.d.ts.map +0 -1
- package/dist/commonjs/http/errors/ExpectationFailed.js +0 -12
- package/dist/commonjs/http/errors/ExpectationFailed.js.map +0 -1
- package/dist/commonjs/http/errors/FailedDependency.d.ts +0 -7
- package/dist/commonjs/http/errors/FailedDependency.d.ts.map +0 -1
- package/dist/commonjs/http/errors/FailedDependency.js +0 -12
- package/dist/commonjs/http/errors/FailedDependency.js.map +0 -1
- package/dist/commonjs/http/errors/Forbidden.d.ts +0 -7
- package/dist/commonjs/http/errors/Forbidden.d.ts.map +0 -1
- package/dist/commonjs/http/errors/Forbidden.js +0 -12
- package/dist/commonjs/http/errors/Forbidden.js.map +0 -1
- package/dist/commonjs/http/errors/GatewayTimeout.d.ts +0 -7
- package/dist/commonjs/http/errors/GatewayTimeout.d.ts.map +0 -1
- package/dist/commonjs/http/errors/GatewayTimeout.js +0 -12
- package/dist/commonjs/http/errors/GatewayTimeout.js.map +0 -1
- package/dist/commonjs/http/errors/Gone.d.ts +0 -7
- package/dist/commonjs/http/errors/Gone.d.ts.map +0 -1
- package/dist/commonjs/http/errors/Gone.js +0 -12
- package/dist/commonjs/http/errors/Gone.js.map +0 -1
- package/dist/commonjs/http/errors/HttpVersionNotSupported.d.ts +0 -7
- package/dist/commonjs/http/errors/HttpVersionNotSupported.d.ts.map +0 -1
- package/dist/commonjs/http/errors/HttpVersionNotSupported.js +0 -12
- package/dist/commonjs/http/errors/HttpVersionNotSupported.js.map +0 -1
- package/dist/commonjs/http/errors/InternalServerError.d.ts +0 -7
- package/dist/commonjs/http/errors/InternalServerError.d.ts.map +0 -1
- package/dist/commonjs/http/errors/InternalServerError.js +0 -12
- package/dist/commonjs/http/errors/InternalServerError.js.map +0 -1
- package/dist/commonjs/http/errors/LengthRequired.d.ts +0 -7
- package/dist/commonjs/http/errors/LengthRequired.d.ts.map +0 -1
- package/dist/commonjs/http/errors/LengthRequired.js +0 -12
- package/dist/commonjs/http/errors/LengthRequired.js.map +0 -1
- package/dist/commonjs/http/errors/Locked.d.ts +0 -7
- package/dist/commonjs/http/errors/Locked.d.ts.map +0 -1
- package/dist/commonjs/http/errors/Locked.js +0 -12
- package/dist/commonjs/http/errors/Locked.js.map +0 -1
- package/dist/commonjs/http/errors/LoopDetected.d.ts +0 -7
- package/dist/commonjs/http/errors/LoopDetected.d.ts.map +0 -1
- package/dist/commonjs/http/errors/LoopDetected.js +0 -12
- package/dist/commonjs/http/errors/LoopDetected.js.map +0 -1
- package/dist/commonjs/http/errors/MethodNotAllowed.d.ts +0 -8
- package/dist/commonjs/http/errors/MethodNotAllowed.d.ts.map +0 -1
- package/dist/commonjs/http/errors/MethodNotAllowed.js +0 -13
- package/dist/commonjs/http/errors/MethodNotAllowed.js.map +0 -1
- package/dist/commonjs/http/errors/MisdirectedRequest.d.ts +0 -7
- package/dist/commonjs/http/errors/MisdirectedRequest.d.ts.map +0 -1
- package/dist/commonjs/http/errors/MisdirectedRequest.js +0 -12
- package/dist/commonjs/http/errors/MisdirectedRequest.js.map +0 -1
- package/dist/commonjs/http/errors/NetworkAuthenticationRequired.d.ts +0 -7
- package/dist/commonjs/http/errors/NetworkAuthenticationRequired.d.ts.map +0 -1
- package/dist/commonjs/http/errors/NetworkAuthenticationRequired.js +0 -12
- package/dist/commonjs/http/errors/NetworkAuthenticationRequired.js.map +0 -1
- package/dist/commonjs/http/errors/NotAcceptable.d.ts +0 -7
- package/dist/commonjs/http/errors/NotAcceptable.d.ts.map +0 -1
- package/dist/commonjs/http/errors/NotAcceptable.js +0 -12
- package/dist/commonjs/http/errors/NotAcceptable.js.map +0 -1
- package/dist/commonjs/http/errors/NotExtended.d.ts +0 -7
- package/dist/commonjs/http/errors/NotExtended.d.ts.map +0 -1
- package/dist/commonjs/http/errors/NotExtended.js +0 -12
- package/dist/commonjs/http/errors/NotExtended.js.map +0 -1
- package/dist/commonjs/http/errors/NotFound.d.ts +0 -7
- package/dist/commonjs/http/errors/NotFound.d.ts.map +0 -1
- package/dist/commonjs/http/errors/NotFound.js +0 -12
- package/dist/commonjs/http/errors/NotFound.js.map +0 -1
- package/dist/commonjs/http/errors/NotImplemented.d.ts +0 -7
- package/dist/commonjs/http/errors/NotImplemented.d.ts.map +0 -1
- package/dist/commonjs/http/errors/NotImplemented.js +0 -12
- package/dist/commonjs/http/errors/NotImplemented.js.map +0 -1
- package/dist/commonjs/http/errors/PayloadTooLarge.d.ts +0 -8
- package/dist/commonjs/http/errors/PayloadTooLarge.d.ts.map +0 -1
- package/dist/commonjs/http/errors/PayloadTooLarge.js +0 -13
- package/dist/commonjs/http/errors/PayloadTooLarge.js.map +0 -1
- package/dist/commonjs/http/errors/PaymentRequired.d.ts +0 -7
- package/dist/commonjs/http/errors/PaymentRequired.d.ts.map +0 -1
- package/dist/commonjs/http/errors/PaymentRequired.js +0 -12
- package/dist/commonjs/http/errors/PaymentRequired.js.map +0 -1
- package/dist/commonjs/http/errors/PreconditionFailed.d.ts +0 -7
- package/dist/commonjs/http/errors/PreconditionFailed.d.ts.map +0 -1
- package/dist/commonjs/http/errors/PreconditionFailed.js +0 -12
- package/dist/commonjs/http/errors/PreconditionFailed.js.map +0 -1
- package/dist/commonjs/http/errors/PreconditionRequired.d.ts +0 -7
- package/dist/commonjs/http/errors/PreconditionRequired.d.ts.map +0 -1
- package/dist/commonjs/http/errors/PreconditionRequired.js +0 -12
- package/dist/commonjs/http/errors/PreconditionRequired.js.map +0 -1
- package/dist/commonjs/http/errors/ProxyAuthenticationRequired.d.ts +0 -8
- package/dist/commonjs/http/errors/ProxyAuthenticationRequired.d.ts.map +0 -1
- package/dist/commonjs/http/errors/ProxyAuthenticationRequired.js +0 -13
- package/dist/commonjs/http/errors/ProxyAuthenticationRequired.js.map +0 -1
- package/dist/commonjs/http/errors/RangeNotSatisfiable.d.ts +0 -7
- package/dist/commonjs/http/errors/RangeNotSatisfiable.d.ts.map +0 -1
- package/dist/commonjs/http/errors/RangeNotSatisfiable.js +0 -12
- package/dist/commonjs/http/errors/RangeNotSatisfiable.js.map +0 -1
- package/dist/commonjs/http/errors/RequestHeaderFieldsTooLarge.d.ts +0 -7
- package/dist/commonjs/http/errors/RequestHeaderFieldsTooLarge.d.ts.map +0 -1
- package/dist/commonjs/http/errors/RequestHeaderFieldsTooLarge.js +0 -12
- package/dist/commonjs/http/errors/RequestHeaderFieldsTooLarge.js.map +0 -1
- package/dist/commonjs/http/errors/RequestTimeout.d.ts +0 -7
- package/dist/commonjs/http/errors/RequestTimeout.d.ts.map +0 -1
- package/dist/commonjs/http/errors/RequestTimeout.js +0 -12
- package/dist/commonjs/http/errors/RequestTimeout.js.map +0 -1
- package/dist/commonjs/http/errors/ServiceUnavailable.d.ts +0 -8
- package/dist/commonjs/http/errors/ServiceUnavailable.d.ts.map +0 -1
- package/dist/commonjs/http/errors/ServiceUnavailable.js +0 -13
- package/dist/commonjs/http/errors/ServiceUnavailable.js.map +0 -1
- package/dist/commonjs/http/errors/TooEarly.d.ts +0 -7
- package/dist/commonjs/http/errors/TooEarly.d.ts.map +0 -1
- package/dist/commonjs/http/errors/TooEarly.js +0 -12
- package/dist/commonjs/http/errors/TooEarly.js.map +0 -1
- package/dist/commonjs/http/errors/TooManyRequests.d.ts +0 -8
- package/dist/commonjs/http/errors/TooManyRequests.d.ts.map +0 -1
- package/dist/commonjs/http/errors/TooManyRequests.js +0 -13
- package/dist/commonjs/http/errors/TooManyRequests.js.map +0 -1
- package/dist/commonjs/http/errors/Unauthorized.d.ts +0 -8
- package/dist/commonjs/http/errors/Unauthorized.d.ts.map +0 -1
- package/dist/commonjs/http/errors/Unauthorized.js +0 -13
- package/dist/commonjs/http/errors/Unauthorized.js.map +0 -1
- package/dist/commonjs/http/errors/UnavailableForLegalReasons.d.ts +0 -7
- package/dist/commonjs/http/errors/UnavailableForLegalReasons.d.ts.map +0 -1
- package/dist/commonjs/http/errors/UnavailableForLegalReasons.js +0 -12
- package/dist/commonjs/http/errors/UnavailableForLegalReasons.js.map +0 -1
- package/dist/commonjs/http/errors/UnprocessableEntity.d.ts +0 -7
- package/dist/commonjs/http/errors/UnprocessableEntity.d.ts.map +0 -1
- package/dist/commonjs/http/errors/UnprocessableEntity.js +0 -12
- package/dist/commonjs/http/errors/UnprocessableEntity.js.map +0 -1
- package/dist/commonjs/http/errors/UnsufficientStorage.d.ts +0 -7
- package/dist/commonjs/http/errors/UnsufficientStorage.d.ts.map +0 -1
- package/dist/commonjs/http/errors/UnsufficientStorage.js +0 -12
- package/dist/commonjs/http/errors/UnsufficientStorage.js.map +0 -1
- package/dist/commonjs/http/errors/UnsupportedMediaType.d.ts +0 -7
- package/dist/commonjs/http/errors/UnsupportedMediaType.d.ts.map +0 -1
- package/dist/commonjs/http/errors/UnsupportedMediaType.js +0 -12
- package/dist/commonjs/http/errors/UnsupportedMediaType.js.map +0 -1
- package/dist/commonjs/http/errors/UpgradeRequired.d.ts +0 -7
- package/dist/commonjs/http/errors/UpgradeRequired.d.ts.map +0 -1
- package/dist/commonjs/http/errors/UpgradeRequired.js +0 -12
- package/dist/commonjs/http/errors/UpgradeRequired.js.map +0 -1
- package/dist/commonjs/http/errors/UriTooLong.d.ts +0 -7
- package/dist/commonjs/http/errors/UriTooLong.d.ts.map +0 -1
- package/dist/commonjs/http/errors/UriTooLong.js +0 -12
- package/dist/commonjs/http/errors/UriTooLong.js.map +0 -1
- package/dist/commonjs/http/errors/VariantAlsoNegotiates.d.ts +0 -7
- package/dist/commonjs/http/errors/VariantAlsoNegotiates.d.ts.map +0 -1
- package/dist/commonjs/http/errors/VariantAlsoNegotiates.js +0 -12
- package/dist/commonjs/http/errors/VariantAlsoNegotiates.js.map +0 -1
- package/dist/commonjs/http/errors/base.d.ts +0 -23
- package/dist/commonjs/http/errors/base.d.ts.map +0 -1
- package/dist/commonjs/http/errors/base.js +0 -36
- package/dist/commonjs/http/errors/base.js.map +0 -1
- package/dist/commonjs/http/errors/index.d.ts +0 -42
- package/dist/commonjs/http/errors/index.d.ts.map +0 -1
- package/dist/commonjs/http/errors/index.js +0 -87
- package/dist/commonjs/http/errors/index.js.map +0 -1
- package/dist/commonjs/http/httpExceptions.d.ts +0 -14
- package/dist/commonjs/http/httpExceptions.d.ts.map +0 -1
- package/dist/commonjs/http/httpExceptions.js +0 -92
- package/dist/commonjs/http/httpExceptions.js.map +0 -1
- package/dist/commonjs/index.d.ts +0 -26
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/index.js +0 -63
- package/dist/commonjs/index.js.map +0 -1
- package/dist/commonjs/models.d.ts +0 -15
- package/dist/commonjs/models.d.ts.map +0 -1
- package/dist/commonjs/models.js +0 -3
- package/dist/commonjs/models.js.map +0 -1
- package/dist/commonjs/services/destinations/Destinations.d.ts +0 -12
- package/dist/commonjs/services/destinations/Destinations.d.ts.map +0 -1
- package/dist/commonjs/services/destinations/Destinations.js +0 -32
- package/dist/commonjs/services/destinations/Destinations.js.map +0 -1
- package/dist/commonjs/services/destinations/index.d.ts +0 -2
- package/dist/commonjs/services/destinations/index.d.ts.map +0 -1
- package/dist/commonjs/services/destinations/index.js +0 -3
- package/dist/commonjs/services/destinations/index.js.map +0 -1
- package/dist/commonjs/services/destinations/models/ListDestinationsResponse.d.ts +0 -17
- package/dist/commonjs/services/destinations/models/ListDestinationsResponse.d.ts.map +0 -1
- package/dist/commonjs/services/destinations/models/ListDestinationsResponse.js +0 -3
- package/dist/commonjs/services/destinations/models/ListDestinationsResponse.js.map +0 -1
- package/dist/commonjs/services/eSim/ESim.d.ts +0 -40
- package/dist/commonjs/services/eSim/ESim.d.ts.map +0 -1
- package/dist/commonjs/services/eSim/ESim.js +0 -113
- package/dist/commonjs/services/eSim/ESim.js.map +0 -1
- package/dist/commonjs/services/eSim/index.d.ts +0 -5
- package/dist/commonjs/services/eSim/index.d.ts.map +0 -1
- package/dist/commonjs/services/eSim/index.js +0 -3
- package/dist/commonjs/services/eSim/index.js.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimDeviceResponse.d.ts +0 -23
- package/dist/commonjs/services/eSim/models/GetEsimDeviceResponse.d.ts.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimDeviceResponse.js +0 -3
- package/dist/commonjs/services/eSim/models/GetEsimDeviceResponse.js.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimHistoryResponse.d.ts +0 -26
- package/dist/commonjs/services/eSim/models/GetEsimHistoryResponse.d.ts.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimHistoryResponse.js +0 -3
- package/dist/commonjs/services/eSim/models/GetEsimHistoryResponse.js.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimMacResponse.d.ts +0 -19
- package/dist/commonjs/services/eSim/models/GetEsimMacResponse.d.ts.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimMacResponse.js +0 -3
- package/dist/commonjs/services/eSim/models/GetEsimMacResponse.js.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimResponse.d.ts +0 -23
- package/dist/commonjs/services/eSim/models/GetEsimResponse.d.ts.map +0 -1
- package/dist/commonjs/services/eSim/models/GetEsimResponse.js +0 -3
- package/dist/commonjs/services/eSim/models/GetEsimResponse.js.map +0 -1
- package/dist/commonjs/services/packages/Packages.d.ts +0 -30
- package/dist/commonjs/services/packages/Packages.d.ts.map +0 -1
- package/dist/commonjs/services/packages/Packages.js +0 -69
- package/dist/commonjs/services/packages/Packages.js.map +0 -1
- package/dist/commonjs/services/packages/index.d.ts +0 -2
- package/dist/commonjs/services/packages/index.d.ts.map +0 -1
- package/dist/commonjs/services/packages/index.js +0 -3
- package/dist/commonjs/services/packages/index.js.map +0 -1
- package/dist/commonjs/services/packages/models/ListPackagesResponse.d.ts +0 -30
- package/dist/commonjs/services/packages/models/ListPackagesResponse.d.ts.map +0 -1
- package/dist/commonjs/services/packages/models/ListPackagesResponse.js +0 -3
- package/dist/commonjs/services/packages/models/ListPackagesResponse.js.map +0 -1
- package/dist/commonjs/services/purchases/Purchases.d.ts +0 -66
- package/dist/commonjs/services/purchases/Purchases.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/Purchases.js +0 -150
- package/dist/commonjs/services/purchases/Purchases.js.map +0 -1
- package/dist/commonjs/services/purchases/index.d.ts +0 -9
- package/dist/commonjs/services/purchases/index.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/index.js +0 -3
- package/dist/commonjs/services/purchases/index.js.map +0 -1
- package/dist/commonjs/services/purchases/models/CreatePurchaseRequest.d.ts +0 -41
- package/dist/commonjs/services/purchases/models/CreatePurchaseRequest.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/CreatePurchaseRequest.js +0 -3
- package/dist/commonjs/services/purchases/models/CreatePurchaseRequest.js.map +0 -1
- package/dist/commonjs/services/purchases/models/CreatePurchaseResponse.d.ts +0 -48
- package/dist/commonjs/services/purchases/models/CreatePurchaseResponse.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/CreatePurchaseResponse.js +0 -3
- package/dist/commonjs/services/purchases/models/CreatePurchaseResponse.js.map +0 -1
- package/dist/commonjs/services/purchases/models/EditPurchaseRequest.d.ts +0 -25
- package/dist/commonjs/services/purchases/models/EditPurchaseRequest.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/EditPurchaseRequest.js +0 -3
- package/dist/commonjs/services/purchases/models/EditPurchaseRequest.js.map +0 -1
- package/dist/commonjs/services/purchases/models/EditPurchaseResponse.d.ts +0 -25
- package/dist/commonjs/services/purchases/models/EditPurchaseResponse.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/EditPurchaseResponse.js +0 -3
- package/dist/commonjs/services/purchases/models/EditPurchaseResponse.js.map +0 -1
- package/dist/commonjs/services/purchases/models/GetPurchaseConsumptionResponse.d.ts +0 -11
- package/dist/commonjs/services/purchases/models/GetPurchaseConsumptionResponse.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/GetPurchaseConsumptionResponse.js +0 -3
- package/dist/commonjs/services/purchases/models/GetPurchaseConsumptionResponse.js.map +0 -1
- package/dist/commonjs/services/purchases/models/ListPurchasesResponse.d.ts +0 -76
- package/dist/commonjs/services/purchases/models/ListPurchasesResponse.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/ListPurchasesResponse.js +0 -3
- package/dist/commonjs/services/purchases/models/ListPurchasesResponse.js.map +0 -1
- package/dist/commonjs/services/purchases/models/TopUpEsimRequest.d.ts +0 -37
- package/dist/commonjs/services/purchases/models/TopUpEsimRequest.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/TopUpEsimRequest.js +0 -3
- package/dist/commonjs/services/purchases/models/TopUpEsimRequest.js.map +0 -1
- package/dist/commonjs/services/purchases/models/TopUpEsimResponse.d.ts +0 -44
- package/dist/commonjs/services/purchases/models/TopUpEsimResponse.d.ts.map +0 -1
- package/dist/commonjs/services/purchases/models/TopUpEsimResponse.js +0 -3
- package/dist/commonjs/services/purchases/models/TopUpEsimResponse.js.map +0 -1
- package/dist/esm/BaseService.d.ts +0 -11
- package/dist/esm/BaseService.d.ts.map +0 -1
- package/dist/esm/BaseService.js +0 -24
- package/dist/esm/BaseService.js.map +0 -1
- package/dist/esm/hooks/CustomHook.d.ts +0 -59
- package/dist/esm/hooks/CustomHook.d.ts.map +0 -1
- package/dist/esm/hooks/CustomHook.js +0 -68
- package/dist/esm/hooks/CustomHook.js.map +0 -1
- package/dist/esm/hooks/Hook.d.ts +0 -24
- package/dist/esm/hooks/Hook.d.ts.map +0 -1
- package/dist/esm/hooks/Hook.js +0 -2
- package/dist/esm/hooks/Hook.js.map +0 -1
- package/dist/esm/http/Environment.d.ts +0 -4
- package/dist/esm/http/Environment.d.ts.map +0 -1
- package/dist/esm/http/Environment.js +0 -5
- package/dist/esm/http/Environment.js.map +0 -1
- package/dist/esm/http/HTTPClient.d.ts +0 -13
- package/dist/esm/http/HTTPClient.d.ts.map +0 -1
- package/dist/esm/http/HTTPClient.js +0 -2
- package/dist/esm/http/HTTPClient.js.map +0 -1
- package/dist/esm/http/HTTPLibrary.d.ts +0 -23
- package/dist/esm/http/HTTPLibrary.d.ts.map +0 -1
- package/dist/esm/http/HTTPLibrary.js +0 -137
- package/dist/esm/http/HTTPLibrary.js.map +0 -1
- package/dist/esm/http/QuerySerializer.d.ts +0 -6
- package/dist/esm/http/QuerySerializer.d.ts.map +0 -1
- package/dist/esm/http/QuerySerializer.js +0 -65
- package/dist/esm/http/QuerySerializer.js.map +0 -1
- package/dist/esm/http/errors/BadGateway.d.ts +0 -7
- package/dist/esm/http/errors/BadGateway.d.ts.map +0 -1
- package/dist/esm/http/errors/BadGateway.js +0 -9
- package/dist/esm/http/errors/BadGateway.js.map +0 -1
- package/dist/esm/http/errors/BadRequest.d.ts +0 -7
- package/dist/esm/http/errors/BadRequest.d.ts.map +0 -1
- package/dist/esm/http/errors/BadRequest.js +0 -9
- package/dist/esm/http/errors/BadRequest.js.map +0 -1
- package/dist/esm/http/errors/Conflict.d.ts +0 -7
- package/dist/esm/http/errors/Conflict.d.ts.map +0 -1
- package/dist/esm/http/errors/Conflict.js +0 -9
- package/dist/esm/http/errors/Conflict.js.map +0 -1
- package/dist/esm/http/errors/ExpectationFailed.d.ts +0 -7
- package/dist/esm/http/errors/ExpectationFailed.d.ts.map +0 -1
- package/dist/esm/http/errors/ExpectationFailed.js +0 -9
- package/dist/esm/http/errors/ExpectationFailed.js.map +0 -1
- package/dist/esm/http/errors/FailedDependency.d.ts +0 -7
- package/dist/esm/http/errors/FailedDependency.d.ts.map +0 -1
- package/dist/esm/http/errors/FailedDependency.js +0 -9
- package/dist/esm/http/errors/FailedDependency.js.map +0 -1
- package/dist/esm/http/errors/Forbidden.d.ts +0 -7
- package/dist/esm/http/errors/Forbidden.d.ts.map +0 -1
- package/dist/esm/http/errors/Forbidden.js +0 -9
- package/dist/esm/http/errors/Forbidden.js.map +0 -1
- package/dist/esm/http/errors/GatewayTimeout.d.ts +0 -7
- package/dist/esm/http/errors/GatewayTimeout.d.ts.map +0 -1
- package/dist/esm/http/errors/GatewayTimeout.js +0 -9
- package/dist/esm/http/errors/GatewayTimeout.js.map +0 -1
- package/dist/esm/http/errors/Gone.d.ts +0 -7
- package/dist/esm/http/errors/Gone.d.ts.map +0 -1
- package/dist/esm/http/errors/Gone.js +0 -9
- package/dist/esm/http/errors/Gone.js.map +0 -1
- package/dist/esm/http/errors/HttpVersionNotSupported.d.ts +0 -7
- package/dist/esm/http/errors/HttpVersionNotSupported.d.ts.map +0 -1
- package/dist/esm/http/errors/HttpVersionNotSupported.js +0 -9
- package/dist/esm/http/errors/HttpVersionNotSupported.js.map +0 -1
- package/dist/esm/http/errors/InternalServerError.d.ts +0 -7
- package/dist/esm/http/errors/InternalServerError.d.ts.map +0 -1
- package/dist/esm/http/errors/InternalServerError.js +0 -9
- package/dist/esm/http/errors/InternalServerError.js.map +0 -1
- package/dist/esm/http/errors/LengthRequired.d.ts +0 -7
- package/dist/esm/http/errors/LengthRequired.d.ts.map +0 -1
- package/dist/esm/http/errors/LengthRequired.js +0 -9
- package/dist/esm/http/errors/LengthRequired.js.map +0 -1
- package/dist/esm/http/errors/Locked.d.ts +0 -7
- package/dist/esm/http/errors/Locked.d.ts.map +0 -1
- package/dist/esm/http/errors/Locked.js +0 -9
- package/dist/esm/http/errors/Locked.js.map +0 -1
- package/dist/esm/http/errors/LoopDetected.d.ts +0 -7
- package/dist/esm/http/errors/LoopDetected.d.ts.map +0 -1
- package/dist/esm/http/errors/LoopDetected.js +0 -9
- package/dist/esm/http/errors/LoopDetected.js.map +0 -1
- package/dist/esm/http/errors/MethodNotAllowed.d.ts +0 -8
- package/dist/esm/http/errors/MethodNotAllowed.d.ts.map +0 -1
- package/dist/esm/http/errors/MethodNotAllowed.js +0 -10
- package/dist/esm/http/errors/MethodNotAllowed.js.map +0 -1
- package/dist/esm/http/errors/MisdirectedRequest.d.ts +0 -7
- package/dist/esm/http/errors/MisdirectedRequest.d.ts.map +0 -1
- package/dist/esm/http/errors/MisdirectedRequest.js +0 -9
- package/dist/esm/http/errors/MisdirectedRequest.js.map +0 -1
- package/dist/esm/http/errors/NetworkAuthenticationRequired.d.ts +0 -7
- package/dist/esm/http/errors/NetworkAuthenticationRequired.d.ts.map +0 -1
- package/dist/esm/http/errors/NetworkAuthenticationRequired.js +0 -9
- package/dist/esm/http/errors/NetworkAuthenticationRequired.js.map +0 -1
- package/dist/esm/http/errors/NotAcceptable.d.ts +0 -7
- package/dist/esm/http/errors/NotAcceptable.d.ts.map +0 -1
- package/dist/esm/http/errors/NotAcceptable.js +0 -9
- package/dist/esm/http/errors/NotAcceptable.js.map +0 -1
- package/dist/esm/http/errors/NotExtended.d.ts +0 -7
- package/dist/esm/http/errors/NotExtended.d.ts.map +0 -1
- package/dist/esm/http/errors/NotExtended.js +0 -9
- package/dist/esm/http/errors/NotExtended.js.map +0 -1
- package/dist/esm/http/errors/NotFound.d.ts +0 -7
- package/dist/esm/http/errors/NotFound.d.ts.map +0 -1
- package/dist/esm/http/errors/NotFound.js +0 -9
- package/dist/esm/http/errors/NotFound.js.map +0 -1
- package/dist/esm/http/errors/NotImplemented.d.ts +0 -7
- package/dist/esm/http/errors/NotImplemented.d.ts.map +0 -1
- package/dist/esm/http/errors/NotImplemented.js +0 -9
- package/dist/esm/http/errors/NotImplemented.js.map +0 -1
- package/dist/esm/http/errors/PayloadTooLarge.d.ts +0 -8
- package/dist/esm/http/errors/PayloadTooLarge.d.ts.map +0 -1
- package/dist/esm/http/errors/PayloadTooLarge.js +0 -10
- package/dist/esm/http/errors/PayloadTooLarge.js.map +0 -1
- package/dist/esm/http/errors/PaymentRequired.d.ts +0 -7
- package/dist/esm/http/errors/PaymentRequired.d.ts.map +0 -1
- package/dist/esm/http/errors/PaymentRequired.js +0 -9
- package/dist/esm/http/errors/PaymentRequired.js.map +0 -1
- package/dist/esm/http/errors/PreconditionFailed.d.ts +0 -7
- package/dist/esm/http/errors/PreconditionFailed.d.ts.map +0 -1
- package/dist/esm/http/errors/PreconditionFailed.js +0 -9
- package/dist/esm/http/errors/PreconditionFailed.js.map +0 -1
- package/dist/esm/http/errors/PreconditionRequired.d.ts +0 -7
- package/dist/esm/http/errors/PreconditionRequired.d.ts.map +0 -1
- package/dist/esm/http/errors/PreconditionRequired.js +0 -9
- package/dist/esm/http/errors/PreconditionRequired.js.map +0 -1
- package/dist/esm/http/errors/ProxyAuthenticationRequired.d.ts +0 -8
- package/dist/esm/http/errors/ProxyAuthenticationRequired.d.ts.map +0 -1
- package/dist/esm/http/errors/ProxyAuthenticationRequired.js +0 -10
- package/dist/esm/http/errors/ProxyAuthenticationRequired.js.map +0 -1
- package/dist/esm/http/errors/RangeNotSatisfiable.d.ts +0 -7
- package/dist/esm/http/errors/RangeNotSatisfiable.d.ts.map +0 -1
- package/dist/esm/http/errors/RangeNotSatisfiable.js +0 -9
- package/dist/esm/http/errors/RangeNotSatisfiable.js.map +0 -1
- package/dist/esm/http/errors/RequestHeaderFieldsTooLarge.d.ts +0 -7
- package/dist/esm/http/errors/RequestHeaderFieldsTooLarge.d.ts.map +0 -1
- package/dist/esm/http/errors/RequestHeaderFieldsTooLarge.js +0 -9
- package/dist/esm/http/errors/RequestHeaderFieldsTooLarge.js.map +0 -1
- package/dist/esm/http/errors/RequestTimeout.d.ts +0 -7
- package/dist/esm/http/errors/RequestTimeout.d.ts.map +0 -1
- package/dist/esm/http/errors/RequestTimeout.js +0 -9
- package/dist/esm/http/errors/RequestTimeout.js.map +0 -1
- package/dist/esm/http/errors/ServiceUnavailable.d.ts +0 -8
- package/dist/esm/http/errors/ServiceUnavailable.d.ts.map +0 -1
- package/dist/esm/http/errors/ServiceUnavailable.js +0 -10
- package/dist/esm/http/errors/ServiceUnavailable.js.map +0 -1
- package/dist/esm/http/errors/TooEarly.d.ts +0 -7
- package/dist/esm/http/errors/TooEarly.d.ts.map +0 -1
- package/dist/esm/http/errors/TooEarly.js +0 -9
- package/dist/esm/http/errors/TooEarly.js.map +0 -1
- package/dist/esm/http/errors/TooManyRequests.d.ts +0 -8
- package/dist/esm/http/errors/TooManyRequests.d.ts.map +0 -1
- package/dist/esm/http/errors/TooManyRequests.js +0 -10
- package/dist/esm/http/errors/TooManyRequests.js.map +0 -1
- package/dist/esm/http/errors/Unauthorized.d.ts +0 -8
- package/dist/esm/http/errors/Unauthorized.d.ts.map +0 -1
- package/dist/esm/http/errors/Unauthorized.js +0 -10
- package/dist/esm/http/errors/Unauthorized.js.map +0 -1
- package/dist/esm/http/errors/UnavailableForLegalReasons.d.ts +0 -7
- package/dist/esm/http/errors/UnavailableForLegalReasons.d.ts.map +0 -1
- package/dist/esm/http/errors/UnavailableForLegalReasons.js +0 -9
- package/dist/esm/http/errors/UnavailableForLegalReasons.js.map +0 -1
- package/dist/esm/http/errors/UnprocessableEntity.d.ts +0 -7
- package/dist/esm/http/errors/UnprocessableEntity.d.ts.map +0 -1
- package/dist/esm/http/errors/UnprocessableEntity.js +0 -9
- package/dist/esm/http/errors/UnprocessableEntity.js.map +0 -1
- package/dist/esm/http/errors/UnsufficientStorage.d.ts +0 -7
- package/dist/esm/http/errors/UnsufficientStorage.d.ts.map +0 -1
- package/dist/esm/http/errors/UnsufficientStorage.js +0 -9
- package/dist/esm/http/errors/UnsufficientStorage.js.map +0 -1
- package/dist/esm/http/errors/UnsupportedMediaType.d.ts +0 -7
- package/dist/esm/http/errors/UnsupportedMediaType.d.ts.map +0 -1
- package/dist/esm/http/errors/UnsupportedMediaType.js +0 -9
- package/dist/esm/http/errors/UnsupportedMediaType.js.map +0 -1
- package/dist/esm/http/errors/UpgradeRequired.d.ts +0 -7
- package/dist/esm/http/errors/UpgradeRequired.d.ts.map +0 -1
- package/dist/esm/http/errors/UpgradeRequired.js +0 -9
- package/dist/esm/http/errors/UpgradeRequired.js.map +0 -1
- package/dist/esm/http/errors/UriTooLong.d.ts +0 -7
- package/dist/esm/http/errors/UriTooLong.d.ts.map +0 -1
- package/dist/esm/http/errors/UriTooLong.js +0 -9
- package/dist/esm/http/errors/UriTooLong.js.map +0 -1
- package/dist/esm/http/errors/VariantAlsoNegotiates.d.ts +0 -7
- package/dist/esm/http/errors/VariantAlsoNegotiates.d.ts.map +0 -1
- package/dist/esm/http/errors/VariantAlsoNegotiates.js +0 -9
- package/dist/esm/http/errors/VariantAlsoNegotiates.js.map +0 -1
- package/dist/esm/http/errors/base.d.ts +0 -23
- package/dist/esm/http/errors/base.d.ts.map +0 -1
- package/dist/esm/http/errors/base.js +0 -28
- package/dist/esm/http/errors/base.js.map +0 -1
- package/dist/esm/http/errors/index.d.ts +0 -42
- package/dist/esm/http/errors/index.d.ts.map +0 -1
- package/dist/esm/http/errors/index.js +0 -42
- package/dist/esm/http/errors/index.js.map +0 -1
- package/dist/esm/http/httpExceptions.d.ts +0 -14
- package/dist/esm/http/httpExceptions.d.ts.map +0 -1
- package/dist/esm/http/httpExceptions.js +0 -86
- package/dist/esm/http/httpExceptions.js.map +0 -1
- package/dist/esm/index.d.ts +0 -26
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/index.js +0 -33
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/models.d.ts +0 -15
- package/dist/esm/models.d.ts.map +0 -1
- package/dist/esm/models.js +0 -2
- package/dist/esm/models.js.map +0 -1
- package/dist/esm/services/destinations/Destinations.d.ts +0 -12
- package/dist/esm/services/destinations/Destinations.d.ts.map +0 -1
- package/dist/esm/services/destinations/Destinations.js +0 -25
- package/dist/esm/services/destinations/Destinations.js.map +0 -1
- package/dist/esm/services/destinations/index.d.ts +0 -2
- package/dist/esm/services/destinations/index.d.ts.map +0 -1
- package/dist/esm/services/destinations/index.js +0 -2
- package/dist/esm/services/destinations/index.js.map +0 -1
- package/dist/esm/services/destinations/models/ListDestinationsResponse.d.ts +0 -17
- package/dist/esm/services/destinations/models/ListDestinationsResponse.d.ts.map +0 -1
- package/dist/esm/services/destinations/models/ListDestinationsResponse.js +0 -2
- package/dist/esm/services/destinations/models/ListDestinationsResponse.js.map +0 -1
- package/dist/esm/services/eSim/ESim.d.ts +0 -40
- package/dist/esm/services/eSim/ESim.d.ts.map +0 -1
- package/dist/esm/services/eSim/ESim.js +0 -106
- package/dist/esm/services/eSim/ESim.js.map +0 -1
- package/dist/esm/services/eSim/index.d.ts +0 -5
- package/dist/esm/services/eSim/index.d.ts.map +0 -1
- package/dist/esm/services/eSim/index.js +0 -2
- package/dist/esm/services/eSim/index.js.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimDeviceResponse.d.ts +0 -23
- package/dist/esm/services/eSim/models/GetEsimDeviceResponse.d.ts.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimDeviceResponse.js +0 -2
- package/dist/esm/services/eSim/models/GetEsimDeviceResponse.js.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimHistoryResponse.d.ts +0 -26
- package/dist/esm/services/eSim/models/GetEsimHistoryResponse.d.ts.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimHistoryResponse.js +0 -2
- package/dist/esm/services/eSim/models/GetEsimHistoryResponse.js.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimMacResponse.d.ts +0 -19
- package/dist/esm/services/eSim/models/GetEsimMacResponse.d.ts.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimMacResponse.js +0 -2
- package/dist/esm/services/eSim/models/GetEsimMacResponse.js.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimResponse.d.ts +0 -23
- package/dist/esm/services/eSim/models/GetEsimResponse.d.ts.map +0 -1
- package/dist/esm/services/eSim/models/GetEsimResponse.js +0 -2
- package/dist/esm/services/eSim/models/GetEsimResponse.js.map +0 -1
- package/dist/esm/services/packages/Packages.d.ts +0 -30
- package/dist/esm/services/packages/Packages.d.ts.map +0 -1
- package/dist/esm/services/packages/Packages.js +0 -62
- package/dist/esm/services/packages/Packages.js.map +0 -1
- package/dist/esm/services/packages/index.d.ts +0 -2
- package/dist/esm/services/packages/index.d.ts.map +0 -1
- package/dist/esm/services/packages/index.js +0 -2
- package/dist/esm/services/packages/index.js.map +0 -1
- package/dist/esm/services/packages/models/ListPackagesResponse.d.ts +0 -30
- package/dist/esm/services/packages/models/ListPackagesResponse.d.ts.map +0 -1
- package/dist/esm/services/packages/models/ListPackagesResponse.js +0 -2
- package/dist/esm/services/packages/models/ListPackagesResponse.js.map +0 -1
- package/dist/esm/services/purchases/Purchases.d.ts +0 -66
- package/dist/esm/services/purchases/Purchases.d.ts.map +0 -1
- package/dist/esm/services/purchases/Purchases.js +0 -143
- package/dist/esm/services/purchases/Purchases.js.map +0 -1
- package/dist/esm/services/purchases/index.d.ts +0 -9
- package/dist/esm/services/purchases/index.d.ts.map +0 -1
- package/dist/esm/services/purchases/index.js +0 -2
- package/dist/esm/services/purchases/index.js.map +0 -1
- package/dist/esm/services/purchases/models/CreatePurchaseRequest.d.ts +0 -41
- package/dist/esm/services/purchases/models/CreatePurchaseRequest.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/CreatePurchaseRequest.js +0 -2
- package/dist/esm/services/purchases/models/CreatePurchaseRequest.js.map +0 -1
- package/dist/esm/services/purchases/models/CreatePurchaseResponse.d.ts +0 -48
- package/dist/esm/services/purchases/models/CreatePurchaseResponse.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/CreatePurchaseResponse.js +0 -2
- package/dist/esm/services/purchases/models/CreatePurchaseResponse.js.map +0 -1
- package/dist/esm/services/purchases/models/EditPurchaseRequest.d.ts +0 -25
- package/dist/esm/services/purchases/models/EditPurchaseRequest.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/EditPurchaseRequest.js +0 -2
- package/dist/esm/services/purchases/models/EditPurchaseRequest.js.map +0 -1
- package/dist/esm/services/purchases/models/EditPurchaseResponse.d.ts +0 -25
- package/dist/esm/services/purchases/models/EditPurchaseResponse.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/EditPurchaseResponse.js +0 -2
- package/dist/esm/services/purchases/models/EditPurchaseResponse.js.map +0 -1
- package/dist/esm/services/purchases/models/GetPurchaseConsumptionResponse.d.ts +0 -11
- package/dist/esm/services/purchases/models/GetPurchaseConsumptionResponse.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/GetPurchaseConsumptionResponse.js +0 -2
- package/dist/esm/services/purchases/models/GetPurchaseConsumptionResponse.js.map +0 -1
- package/dist/esm/services/purchases/models/ListPurchasesResponse.d.ts +0 -76
- package/dist/esm/services/purchases/models/ListPurchasesResponse.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/ListPurchasesResponse.js +0 -2
- package/dist/esm/services/purchases/models/ListPurchasesResponse.js.map +0 -1
- package/dist/esm/services/purchases/models/TopUpEsimRequest.d.ts +0 -37
- package/dist/esm/services/purchases/models/TopUpEsimRequest.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/TopUpEsimRequest.js +0 -2
- package/dist/esm/services/purchases/models/TopUpEsimRequest.js.map +0 -1
- package/dist/esm/services/purchases/models/TopUpEsimResponse.d.ts +0 -44
- package/dist/esm/services/purchases/models/TopUpEsimResponse.d.ts.map +0 -1
- package/dist/esm/services/purchases/models/TopUpEsimResponse.js +0 -2
- package/dist/esm/services/purchases/models/TopUpEsimResponse.js.map +0 -1
- package/dist/umd/BaseService.d.ts +0 -11
- package/dist/umd/BaseService.d.ts.map +0 -1
- package/dist/umd/BaseService.js +0 -40
- package/dist/umd/BaseService.js.map +0 -1
- package/dist/umd/hooks/CustomHook.d.ts +0 -59
- package/dist/umd/hooks/CustomHook.d.ts.map +0 -1
- package/dist/umd/hooks/CustomHook.js +0 -84
- package/dist/umd/hooks/CustomHook.js.map +0 -1
- package/dist/umd/hooks/Hook.d.ts +0 -24
- package/dist/umd/hooks/Hook.d.ts.map +0 -1
- package/dist/umd/hooks/Hook.js +0 -13
- package/dist/umd/hooks/Hook.js.map +0 -1
- package/dist/umd/http/Environment.d.ts +0 -4
- package/dist/umd/http/Environment.d.ts.map +0 -1
- package/dist/umd/http/Environment.js +0 -18
- package/dist/umd/http/Environment.js.map +0 -1
- package/dist/umd/http/HTTPClient.d.ts +0 -13
- package/dist/umd/http/HTTPClient.d.ts.map +0 -1
- package/dist/umd/http/HTTPClient.js +0 -13
- package/dist/umd/http/HTTPClient.js.map +0 -1
- package/dist/umd/http/HTTPLibrary.d.ts +0 -23
- package/dist/umd/http/HTTPLibrary.d.ts.map +0 -1
- package/dist/umd/http/HTTPLibrary.js +0 -153
- package/dist/umd/http/HTTPLibrary.js.map +0 -1
- package/dist/umd/http/QuerySerializer.d.ts +0 -6
- package/dist/umd/http/QuerySerializer.d.ts.map +0 -1
- package/dist/umd/http/QuerySerializer.js +0 -80
- package/dist/umd/http/QuerySerializer.js.map +0 -1
- package/dist/umd/http/errors/BadGateway.d.ts +0 -7
- package/dist/umd/http/errors/BadGateway.d.ts.map +0 -1
- package/dist/umd/http/errors/BadGateway.js +0 -22
- package/dist/umd/http/errors/BadGateway.js.map +0 -1
- package/dist/umd/http/errors/BadRequest.d.ts +0 -7
- package/dist/umd/http/errors/BadRequest.d.ts.map +0 -1
- package/dist/umd/http/errors/BadRequest.js +0 -22
- package/dist/umd/http/errors/BadRequest.js.map +0 -1
- package/dist/umd/http/errors/Conflict.d.ts +0 -7
- package/dist/umd/http/errors/Conflict.d.ts.map +0 -1
- package/dist/umd/http/errors/Conflict.js +0 -22
- package/dist/umd/http/errors/Conflict.js.map +0 -1
- package/dist/umd/http/errors/ExpectationFailed.d.ts +0 -7
- package/dist/umd/http/errors/ExpectationFailed.d.ts.map +0 -1
- package/dist/umd/http/errors/ExpectationFailed.js +0 -22
- package/dist/umd/http/errors/ExpectationFailed.js.map +0 -1
- package/dist/umd/http/errors/FailedDependency.d.ts +0 -7
- package/dist/umd/http/errors/FailedDependency.d.ts.map +0 -1
- package/dist/umd/http/errors/FailedDependency.js +0 -22
- package/dist/umd/http/errors/FailedDependency.js.map +0 -1
- package/dist/umd/http/errors/Forbidden.d.ts +0 -7
- package/dist/umd/http/errors/Forbidden.d.ts.map +0 -1
- package/dist/umd/http/errors/Forbidden.js +0 -22
- package/dist/umd/http/errors/Forbidden.js.map +0 -1
- package/dist/umd/http/errors/GatewayTimeout.d.ts +0 -7
- package/dist/umd/http/errors/GatewayTimeout.d.ts.map +0 -1
- package/dist/umd/http/errors/GatewayTimeout.js +0 -22
- package/dist/umd/http/errors/GatewayTimeout.js.map +0 -1
- package/dist/umd/http/errors/Gone.d.ts +0 -7
- package/dist/umd/http/errors/Gone.d.ts.map +0 -1
- package/dist/umd/http/errors/Gone.js +0 -22
- package/dist/umd/http/errors/Gone.js.map +0 -1
- package/dist/umd/http/errors/HttpVersionNotSupported.d.ts +0 -7
- package/dist/umd/http/errors/HttpVersionNotSupported.d.ts.map +0 -1
- package/dist/umd/http/errors/HttpVersionNotSupported.js +0 -22
- package/dist/umd/http/errors/HttpVersionNotSupported.js.map +0 -1
- package/dist/umd/http/errors/InternalServerError.d.ts +0 -7
- package/dist/umd/http/errors/InternalServerError.d.ts.map +0 -1
- package/dist/umd/http/errors/InternalServerError.js +0 -22
- package/dist/umd/http/errors/InternalServerError.js.map +0 -1
- package/dist/umd/http/errors/LengthRequired.d.ts +0 -7
- package/dist/umd/http/errors/LengthRequired.d.ts.map +0 -1
- package/dist/umd/http/errors/LengthRequired.js +0 -22
- package/dist/umd/http/errors/LengthRequired.js.map +0 -1
- package/dist/umd/http/errors/Locked.d.ts +0 -7
- package/dist/umd/http/errors/Locked.d.ts.map +0 -1
- package/dist/umd/http/errors/Locked.js +0 -22
- package/dist/umd/http/errors/Locked.js.map +0 -1
- package/dist/umd/http/errors/LoopDetected.d.ts +0 -7
- package/dist/umd/http/errors/LoopDetected.d.ts.map +0 -1
- package/dist/umd/http/errors/LoopDetected.js +0 -22
- package/dist/umd/http/errors/LoopDetected.js.map +0 -1
- package/dist/umd/http/errors/MethodNotAllowed.d.ts +0 -8
- package/dist/umd/http/errors/MethodNotAllowed.d.ts.map +0 -1
- package/dist/umd/http/errors/MethodNotAllowed.js +0 -23
- package/dist/umd/http/errors/MethodNotAllowed.js.map +0 -1
- package/dist/umd/http/errors/MisdirectedRequest.d.ts +0 -7
- package/dist/umd/http/errors/MisdirectedRequest.d.ts.map +0 -1
- package/dist/umd/http/errors/MisdirectedRequest.js +0 -22
- package/dist/umd/http/errors/MisdirectedRequest.js.map +0 -1
- package/dist/umd/http/errors/NetworkAuthenticationRequired.d.ts +0 -7
- package/dist/umd/http/errors/NetworkAuthenticationRequired.d.ts.map +0 -1
- package/dist/umd/http/errors/NetworkAuthenticationRequired.js +0 -22
- package/dist/umd/http/errors/NetworkAuthenticationRequired.js.map +0 -1
- package/dist/umd/http/errors/NotAcceptable.d.ts +0 -7
- package/dist/umd/http/errors/NotAcceptable.d.ts.map +0 -1
- package/dist/umd/http/errors/NotAcceptable.js +0 -22
- package/dist/umd/http/errors/NotAcceptable.js.map +0 -1
- package/dist/umd/http/errors/NotExtended.d.ts +0 -7
- package/dist/umd/http/errors/NotExtended.d.ts.map +0 -1
- package/dist/umd/http/errors/NotExtended.js +0 -22
- package/dist/umd/http/errors/NotExtended.js.map +0 -1
- package/dist/umd/http/errors/NotFound.d.ts +0 -7
- package/dist/umd/http/errors/NotFound.d.ts.map +0 -1
- package/dist/umd/http/errors/NotFound.js +0 -22
- package/dist/umd/http/errors/NotFound.js.map +0 -1
- package/dist/umd/http/errors/NotImplemented.d.ts +0 -7
- package/dist/umd/http/errors/NotImplemented.d.ts.map +0 -1
- package/dist/umd/http/errors/NotImplemented.js +0 -22
- package/dist/umd/http/errors/NotImplemented.js.map +0 -1
- package/dist/umd/http/errors/PayloadTooLarge.d.ts +0 -8
- package/dist/umd/http/errors/PayloadTooLarge.d.ts.map +0 -1
- package/dist/umd/http/errors/PayloadTooLarge.js +0 -23
- package/dist/umd/http/errors/PayloadTooLarge.js.map +0 -1
- package/dist/umd/http/errors/PaymentRequired.d.ts +0 -7
- package/dist/umd/http/errors/PaymentRequired.d.ts.map +0 -1
- package/dist/umd/http/errors/PaymentRequired.js +0 -22
- package/dist/umd/http/errors/PaymentRequired.js.map +0 -1
- package/dist/umd/http/errors/PreconditionFailed.d.ts +0 -7
- package/dist/umd/http/errors/PreconditionFailed.d.ts.map +0 -1
- package/dist/umd/http/errors/PreconditionFailed.js +0 -22
- package/dist/umd/http/errors/PreconditionFailed.js.map +0 -1
- package/dist/umd/http/errors/PreconditionRequired.d.ts +0 -7
- package/dist/umd/http/errors/PreconditionRequired.d.ts.map +0 -1
- package/dist/umd/http/errors/PreconditionRequired.js +0 -22
- package/dist/umd/http/errors/PreconditionRequired.js.map +0 -1
- package/dist/umd/http/errors/ProxyAuthenticationRequired.d.ts +0 -8
- package/dist/umd/http/errors/ProxyAuthenticationRequired.d.ts.map +0 -1
- package/dist/umd/http/errors/ProxyAuthenticationRequired.js +0 -23
- package/dist/umd/http/errors/ProxyAuthenticationRequired.js.map +0 -1
- package/dist/umd/http/errors/RangeNotSatisfiable.d.ts +0 -7
- package/dist/umd/http/errors/RangeNotSatisfiable.d.ts.map +0 -1
- package/dist/umd/http/errors/RangeNotSatisfiable.js +0 -22
- package/dist/umd/http/errors/RangeNotSatisfiable.js.map +0 -1
- package/dist/umd/http/errors/RequestHeaderFieldsTooLarge.d.ts +0 -7
- package/dist/umd/http/errors/RequestHeaderFieldsTooLarge.d.ts.map +0 -1
- package/dist/umd/http/errors/RequestHeaderFieldsTooLarge.js +0 -22
- package/dist/umd/http/errors/RequestHeaderFieldsTooLarge.js.map +0 -1
- package/dist/umd/http/errors/RequestTimeout.d.ts +0 -7
- package/dist/umd/http/errors/RequestTimeout.d.ts.map +0 -1
- package/dist/umd/http/errors/RequestTimeout.js +0 -22
- package/dist/umd/http/errors/RequestTimeout.js.map +0 -1
- package/dist/umd/http/errors/ServiceUnavailable.d.ts +0 -8
- package/dist/umd/http/errors/ServiceUnavailable.d.ts.map +0 -1
- package/dist/umd/http/errors/ServiceUnavailable.js +0 -23
- package/dist/umd/http/errors/ServiceUnavailable.js.map +0 -1
- package/dist/umd/http/errors/TooEarly.d.ts +0 -7
- package/dist/umd/http/errors/TooEarly.d.ts.map +0 -1
- package/dist/umd/http/errors/TooEarly.js +0 -22
- package/dist/umd/http/errors/TooEarly.js.map +0 -1
- package/dist/umd/http/errors/TooManyRequests.d.ts +0 -8
- package/dist/umd/http/errors/TooManyRequests.d.ts.map +0 -1
- package/dist/umd/http/errors/TooManyRequests.js +0 -23
- package/dist/umd/http/errors/TooManyRequests.js.map +0 -1
- package/dist/umd/http/errors/Unauthorized.d.ts +0 -8
- package/dist/umd/http/errors/Unauthorized.d.ts.map +0 -1
- package/dist/umd/http/errors/Unauthorized.js +0 -23
- package/dist/umd/http/errors/Unauthorized.js.map +0 -1
- package/dist/umd/http/errors/UnavailableForLegalReasons.d.ts +0 -7
- package/dist/umd/http/errors/UnavailableForLegalReasons.d.ts.map +0 -1
- package/dist/umd/http/errors/UnavailableForLegalReasons.js +0 -22
- package/dist/umd/http/errors/UnavailableForLegalReasons.js.map +0 -1
- package/dist/umd/http/errors/UnprocessableEntity.d.ts +0 -7
- package/dist/umd/http/errors/UnprocessableEntity.d.ts.map +0 -1
- package/dist/umd/http/errors/UnprocessableEntity.js +0 -22
- package/dist/umd/http/errors/UnprocessableEntity.js.map +0 -1
- package/dist/umd/http/errors/UnsufficientStorage.d.ts +0 -7
- package/dist/umd/http/errors/UnsufficientStorage.d.ts.map +0 -1
- package/dist/umd/http/errors/UnsufficientStorage.js +0 -22
- package/dist/umd/http/errors/UnsufficientStorage.js.map +0 -1
- package/dist/umd/http/errors/UnsupportedMediaType.d.ts +0 -7
- package/dist/umd/http/errors/UnsupportedMediaType.d.ts.map +0 -1
- package/dist/umd/http/errors/UnsupportedMediaType.js +0 -22
- package/dist/umd/http/errors/UnsupportedMediaType.js.map +0 -1
- package/dist/umd/http/errors/UpgradeRequired.d.ts +0 -7
- package/dist/umd/http/errors/UpgradeRequired.d.ts.map +0 -1
- package/dist/umd/http/errors/UpgradeRequired.js +0 -22
- package/dist/umd/http/errors/UpgradeRequired.js.map +0 -1
- package/dist/umd/http/errors/UriTooLong.d.ts +0 -7
- package/dist/umd/http/errors/UriTooLong.d.ts.map +0 -1
- package/dist/umd/http/errors/UriTooLong.js +0 -22
- package/dist/umd/http/errors/UriTooLong.js.map +0 -1
- package/dist/umd/http/errors/VariantAlsoNegotiates.d.ts +0 -7
- package/dist/umd/http/errors/VariantAlsoNegotiates.d.ts.map +0 -1
- package/dist/umd/http/errors/VariantAlsoNegotiates.js +0 -22
- package/dist/umd/http/errors/VariantAlsoNegotiates.js.map +0 -1
- package/dist/umd/http/errors/base.d.ts +0 -23
- package/dist/umd/http/errors/base.d.ts.map +0 -1
- package/dist/umd/http/errors/base.js +0 -46
- package/dist/umd/http/errors/base.js.map +0 -1
- package/dist/umd/http/errors/index.d.ts +0 -42
- package/dist/umd/http/errors/index.d.ts.map +0 -1
- package/dist/umd/http/errors/index.js +0 -97
- package/dist/umd/http/errors/index.js.map +0 -1
- package/dist/umd/http/httpExceptions.d.ts +0 -14
- package/dist/umd/http/httpExceptions.d.ts.map +0 -1
- package/dist/umd/http/httpExceptions.js +0 -102
- package/dist/umd/http/httpExceptions.js.map +0 -1
- package/dist/umd/index.d.ts +0 -26
- package/dist/umd/index.d.ts.map +0 -1
- package/dist/umd/index.js +0 -73
- package/dist/umd/index.js.map +0 -1
- package/dist/umd/models.d.ts +0 -15
- package/dist/umd/models.d.ts.map +0 -1
- package/dist/umd/models.js +0 -13
- package/dist/umd/models.js.map +0 -1
- package/dist/umd/services/destinations/Destinations.d.ts +0 -12
- package/dist/umd/services/destinations/Destinations.d.ts.map +0 -1
- package/dist/umd/services/destinations/Destinations.js +0 -42
- package/dist/umd/services/destinations/Destinations.js.map +0 -1
- package/dist/umd/services/destinations/index.d.ts +0 -2
- package/dist/umd/services/destinations/index.d.ts.map +0 -1
- package/dist/umd/services/destinations/index.js +0 -13
- package/dist/umd/services/destinations/index.js.map +0 -1
- package/dist/umd/services/destinations/models/ListDestinationsResponse.d.ts +0 -17
- package/dist/umd/services/destinations/models/ListDestinationsResponse.d.ts.map +0 -1
- package/dist/umd/services/destinations/models/ListDestinationsResponse.js +0 -13
- package/dist/umd/services/destinations/models/ListDestinationsResponse.js.map +0 -1
- package/dist/umd/services/eSim/ESim.d.ts +0 -40
- package/dist/umd/services/eSim/ESim.d.ts.map +0 -1
- package/dist/umd/services/eSim/ESim.js +0 -123
- package/dist/umd/services/eSim/ESim.js.map +0 -1
- package/dist/umd/services/eSim/index.d.ts +0 -5
- package/dist/umd/services/eSim/index.d.ts.map +0 -1
- package/dist/umd/services/eSim/index.js +0 -13
- package/dist/umd/services/eSim/index.js.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimDeviceResponse.d.ts +0 -23
- package/dist/umd/services/eSim/models/GetEsimDeviceResponse.d.ts.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimDeviceResponse.js +0 -13
- package/dist/umd/services/eSim/models/GetEsimDeviceResponse.js.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimHistoryResponse.d.ts +0 -26
- package/dist/umd/services/eSim/models/GetEsimHistoryResponse.d.ts.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimHistoryResponse.js +0 -13
- package/dist/umd/services/eSim/models/GetEsimHistoryResponse.js.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimMacResponse.d.ts +0 -19
- package/dist/umd/services/eSim/models/GetEsimMacResponse.d.ts.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimMacResponse.js +0 -13
- package/dist/umd/services/eSim/models/GetEsimMacResponse.js.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimResponse.d.ts +0 -23
- package/dist/umd/services/eSim/models/GetEsimResponse.d.ts.map +0 -1
- package/dist/umd/services/eSim/models/GetEsimResponse.js +0 -13
- package/dist/umd/services/eSim/models/GetEsimResponse.js.map +0 -1
- package/dist/umd/services/packages/Packages.d.ts +0 -30
- package/dist/umd/services/packages/Packages.d.ts.map +0 -1
- package/dist/umd/services/packages/Packages.js +0 -79
- package/dist/umd/services/packages/Packages.js.map +0 -1
- package/dist/umd/services/packages/index.d.ts +0 -2
- package/dist/umd/services/packages/index.d.ts.map +0 -1
- package/dist/umd/services/packages/index.js +0 -13
- package/dist/umd/services/packages/index.js.map +0 -1
- package/dist/umd/services/packages/models/ListPackagesResponse.d.ts +0 -30
- package/dist/umd/services/packages/models/ListPackagesResponse.d.ts.map +0 -1
- package/dist/umd/services/packages/models/ListPackagesResponse.js +0 -13
- package/dist/umd/services/packages/models/ListPackagesResponse.js.map +0 -1
- package/dist/umd/services/purchases/Purchases.d.ts +0 -66
- package/dist/umd/services/purchases/Purchases.d.ts.map +0 -1
- package/dist/umd/services/purchases/Purchases.js +0 -160
- package/dist/umd/services/purchases/Purchases.js.map +0 -1
- package/dist/umd/services/purchases/index.d.ts +0 -9
- package/dist/umd/services/purchases/index.d.ts.map +0 -1
- package/dist/umd/services/purchases/index.js +0 -13
- package/dist/umd/services/purchases/index.js.map +0 -1
- package/dist/umd/services/purchases/models/CreatePurchaseRequest.d.ts +0 -41
- package/dist/umd/services/purchases/models/CreatePurchaseRequest.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/CreatePurchaseRequest.js +0 -13
- package/dist/umd/services/purchases/models/CreatePurchaseRequest.js.map +0 -1
- package/dist/umd/services/purchases/models/CreatePurchaseResponse.d.ts +0 -48
- package/dist/umd/services/purchases/models/CreatePurchaseResponse.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/CreatePurchaseResponse.js +0 -13
- package/dist/umd/services/purchases/models/CreatePurchaseResponse.js.map +0 -1
- package/dist/umd/services/purchases/models/EditPurchaseRequest.d.ts +0 -25
- package/dist/umd/services/purchases/models/EditPurchaseRequest.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/EditPurchaseRequest.js +0 -13
- package/dist/umd/services/purchases/models/EditPurchaseRequest.js.map +0 -1
- package/dist/umd/services/purchases/models/EditPurchaseResponse.d.ts +0 -25
- package/dist/umd/services/purchases/models/EditPurchaseResponse.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/EditPurchaseResponse.js +0 -13
- package/dist/umd/services/purchases/models/EditPurchaseResponse.js.map +0 -1
- package/dist/umd/services/purchases/models/GetPurchaseConsumptionResponse.d.ts +0 -11
- package/dist/umd/services/purchases/models/GetPurchaseConsumptionResponse.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/GetPurchaseConsumptionResponse.js +0 -13
- package/dist/umd/services/purchases/models/GetPurchaseConsumptionResponse.js.map +0 -1
- package/dist/umd/services/purchases/models/ListPurchasesResponse.d.ts +0 -76
- package/dist/umd/services/purchases/models/ListPurchasesResponse.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/ListPurchasesResponse.js +0 -13
- package/dist/umd/services/purchases/models/ListPurchasesResponse.js.map +0 -1
- package/dist/umd/services/purchases/models/TopUpEsimRequest.d.ts +0 -37
- package/dist/umd/services/purchases/models/TopUpEsimRequest.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/TopUpEsimRequest.js +0 -13
- package/dist/umd/services/purchases/models/TopUpEsimRequest.js.map +0 -1
- package/dist/umd/services/purchases/models/TopUpEsimResponse.d.ts +0 -44
- package/dist/umd/services/purchases/models/TopUpEsimResponse.d.ts.map +0 -1
- package/dist/umd/services/purchases/models/TopUpEsimResponse.js +0 -13
- package/dist/umd/services/purchases/models/TopUpEsimResponse.js.map +0 -1
@@ -0,0 +1,107 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { packageRequest, packageResponse, package_ } from './package_';
|
3
|
+
import { purchasesEsim, purchasesEsimRequest, purchasesEsimResponse } from './purchases-esim';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* The shape of the model inside the application code - what the users use
|
7
|
+
*/
|
8
|
+
export const purchases = z.lazy(() => {
|
9
|
+
return z.object({
|
10
|
+
id: z.string().optional(),
|
11
|
+
startDate: z.string().optional(),
|
12
|
+
endDate: z.string().optional(),
|
13
|
+
createdDate: z.string().optional(),
|
14
|
+
startTime: z.number().optional(),
|
15
|
+
endTime: z.number().optional(),
|
16
|
+
createdAt: z.number().optional(),
|
17
|
+
package: package_.optional(),
|
18
|
+
esim: purchasesEsim.optional(),
|
19
|
+
source: z.string().optional(),
|
20
|
+
referenceId: z.string().optional(),
|
21
|
+
});
|
22
|
+
});
|
23
|
+
|
24
|
+
/**
|
25
|
+
*
|
26
|
+
* @typedef {Purchases} purchases
|
27
|
+
* @property {string} - ID of the purchase
|
28
|
+
* @property {string} - Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
29
|
+
* @property {string} - End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
30
|
+
* @property {string} - Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
31
|
+
* @property {number} - Epoch value representing the start time of the package's validity
|
32
|
+
* @property {number} - Epoch value representing the end time of the package's validity
|
33
|
+
* @property {number} - Epoch value representing the date of creation of the purchase
|
34
|
+
* @property {Package_}
|
35
|
+
* @property {PurchasesEsim}
|
36
|
+
* @property {string} - The source indicates where the eSIM was purchased, which can be from the API, dashboard, landing-page or promo-page. For purchases made before September 8, 2023, the value will be displayed as 'Not available'.
|
37
|
+
* @property {string} - The referenceId that was provided by the partner during the purchase or topup flow. This identifier can be used for analytics and debugging purposes.
|
38
|
+
*/
|
39
|
+
export type Purchases = z.infer<typeof purchases>;
|
40
|
+
|
41
|
+
/**
|
42
|
+
* The shape of the model mapping from the api schema into the application shape.
|
43
|
+
* Is equal to application shape if all property names match the api schema
|
44
|
+
*/
|
45
|
+
export const purchasesResponse = z.lazy(() => {
|
46
|
+
return z
|
47
|
+
.object({
|
48
|
+
id: z.string().optional(),
|
49
|
+
startDate: z.string().optional(),
|
50
|
+
endDate: z.string().optional(),
|
51
|
+
createdDate: z.string().optional(),
|
52
|
+
startTime: z.number().optional(),
|
53
|
+
endTime: z.number().optional(),
|
54
|
+
createdAt: z.number().optional(),
|
55
|
+
package: packageResponse.optional(),
|
56
|
+
esim: purchasesEsimResponse.optional(),
|
57
|
+
source: z.string().optional(),
|
58
|
+
referenceId: z.string().optional(),
|
59
|
+
})
|
60
|
+
.transform((data) => ({
|
61
|
+
id: data['id'],
|
62
|
+
startDate: data['startDate'],
|
63
|
+
endDate: data['endDate'],
|
64
|
+
createdDate: data['createdDate'],
|
65
|
+
startTime: data['startTime'],
|
66
|
+
endTime: data['endTime'],
|
67
|
+
createdAt: data['createdAt'],
|
68
|
+
package: data['package'],
|
69
|
+
esim: data['esim'],
|
70
|
+
source: data['source'],
|
71
|
+
referenceId: data['referenceId'],
|
72
|
+
}));
|
73
|
+
});
|
74
|
+
|
75
|
+
/**
|
76
|
+
* The shape of the model mapping from the application shape into the api schema.
|
77
|
+
* Is equal to application shape if all property names match the api schema
|
78
|
+
*/
|
79
|
+
export const purchasesRequest = z.lazy(() => {
|
80
|
+
return z
|
81
|
+
.object({
|
82
|
+
id: z.string().nullish(),
|
83
|
+
startDate: z.string().nullish(),
|
84
|
+
endDate: z.string().nullish(),
|
85
|
+
createdDate: z.string().nullish(),
|
86
|
+
startTime: z.number().nullish(),
|
87
|
+
endTime: z.number().nullish(),
|
88
|
+
createdAt: z.number().nullish(),
|
89
|
+
package: packageRequest.nullish(),
|
90
|
+
esim: purchasesEsimRequest.nullish(),
|
91
|
+
source: z.string().nullish(),
|
92
|
+
referenceId: z.string().nullish(),
|
93
|
+
})
|
94
|
+
.transform((data) => ({
|
95
|
+
id: data['id'],
|
96
|
+
startDate: data['startDate'],
|
97
|
+
endDate: data['endDate'],
|
98
|
+
createdDate: data['createdDate'],
|
99
|
+
startTime: data['startTime'],
|
100
|
+
endTime: data['endTime'],
|
101
|
+
createdAt: data['createdAt'],
|
102
|
+
package: data['package'],
|
103
|
+
esim: data['esim'],
|
104
|
+
source: data['source'],
|
105
|
+
referenceId: data['referenceId'],
|
106
|
+
}));
|
107
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The shape of the model inside the application code - what the users use
|
5
|
+
*/
|
6
|
+
export const topUpEsimOkResponseProfile = z.lazy(() => {
|
7
|
+
return z.object({
|
8
|
+
iccid: z.string().min(18).max(22).optional(),
|
9
|
+
});
|
10
|
+
});
|
11
|
+
|
12
|
+
/**
|
13
|
+
*
|
14
|
+
* @typedef {TopUpEsimOkResponseProfile} topUpEsimOkResponseProfile
|
15
|
+
* @property {string} - ID of the eSIM
|
16
|
+
*/
|
17
|
+
export type TopUpEsimOkResponseProfile = z.infer<typeof topUpEsimOkResponseProfile>;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* The shape of the model mapping from the api schema into the application shape.
|
21
|
+
* Is equal to application shape if all property names match the api schema
|
22
|
+
*/
|
23
|
+
export const topUpEsimOkResponseProfileResponse = z.lazy(() => {
|
24
|
+
return z
|
25
|
+
.object({
|
26
|
+
iccid: z.string().min(18).max(22).optional(),
|
27
|
+
})
|
28
|
+
.transform((data) => ({
|
29
|
+
iccid: data['iccid'],
|
30
|
+
}));
|
31
|
+
});
|
32
|
+
|
33
|
+
/**
|
34
|
+
* The shape of the model mapping from the application shape into the api schema.
|
35
|
+
* Is equal to application shape if all property names match the api schema
|
36
|
+
*/
|
37
|
+
export const topUpEsimOkResponseProfileRequest = z.lazy(() => {
|
38
|
+
return z.object({ iccid: z.string().nullish() }).transform((data) => ({
|
39
|
+
iccid: data['iccid'],
|
40
|
+
}));
|
41
|
+
});
|
@@ -0,0 +1,81 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The shape of the model inside the application code - what the users use
|
5
|
+
*/
|
6
|
+
export const topUpEsimOkResponsePurchase = z.lazy(() => {
|
7
|
+
return z.object({
|
8
|
+
id: z.string().optional(),
|
9
|
+
packageId: z.string().optional(),
|
10
|
+
startDate: z.string().optional(),
|
11
|
+
endDate: z.string().optional(),
|
12
|
+
createdDate: z.string().optional(),
|
13
|
+
startTime: z.number().optional(),
|
14
|
+
endTime: z.number().optional(),
|
15
|
+
});
|
16
|
+
});
|
17
|
+
|
18
|
+
/**
|
19
|
+
*
|
20
|
+
* @typedef {TopUpEsimOkResponsePurchase} topUpEsimOkResponsePurchase
|
21
|
+
* @property {string} - ID of the purchase
|
22
|
+
* @property {string} - ID of the package
|
23
|
+
* @property {string} - Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
24
|
+
* @property {string} - End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
25
|
+
* @property {string} - Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ'
|
26
|
+
* @property {number} - Epoch value representing the start time of the package's validity
|
27
|
+
* @property {number} - Epoch value representing the end time of the package's validity
|
28
|
+
*/
|
29
|
+
export type TopUpEsimOkResponsePurchase = z.infer<typeof topUpEsimOkResponsePurchase>;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* The shape of the model mapping from the api schema into the application shape.
|
33
|
+
* Is equal to application shape if all property names match the api schema
|
34
|
+
*/
|
35
|
+
export const topUpEsimOkResponsePurchaseResponse = z.lazy(() => {
|
36
|
+
return z
|
37
|
+
.object({
|
38
|
+
id: z.string().optional(),
|
39
|
+
packageId: z.string().optional(),
|
40
|
+
startDate: z.string().optional(),
|
41
|
+
endDate: z.string().optional(),
|
42
|
+
createdDate: z.string().optional(),
|
43
|
+
startTime: z.number().optional(),
|
44
|
+
endTime: z.number().optional(),
|
45
|
+
})
|
46
|
+
.transform((data) => ({
|
47
|
+
id: data['id'],
|
48
|
+
packageId: data['packageId'],
|
49
|
+
startDate: data['startDate'],
|
50
|
+
endDate: data['endDate'],
|
51
|
+
createdDate: data['createdDate'],
|
52
|
+
startTime: data['startTime'],
|
53
|
+
endTime: data['endTime'],
|
54
|
+
}));
|
55
|
+
});
|
56
|
+
|
57
|
+
/**
|
58
|
+
* The shape of the model mapping from the application shape into the api schema.
|
59
|
+
* Is equal to application shape if all property names match the api schema
|
60
|
+
*/
|
61
|
+
export const topUpEsimOkResponsePurchaseRequest = z.lazy(() => {
|
62
|
+
return z
|
63
|
+
.object({
|
64
|
+
id: z.string().nullish(),
|
65
|
+
packageId: z.string().nullish(),
|
66
|
+
startDate: z.string().nullish(),
|
67
|
+
endDate: z.string().nullish(),
|
68
|
+
createdDate: z.string().nullish(),
|
69
|
+
startTime: z.number().nullish(),
|
70
|
+
endTime: z.number().nullish(),
|
71
|
+
})
|
72
|
+
.transform((data) => ({
|
73
|
+
id: data['id'],
|
74
|
+
packageId: data['packageId'],
|
75
|
+
startDate: data['startDate'],
|
76
|
+
endDate: data['endDate'],
|
77
|
+
createdDate: data['createdDate'],
|
78
|
+
startTime: data['startTime'],
|
79
|
+
endTime: data['endTime'],
|
80
|
+
}));
|
81
|
+
});
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import {
|
3
|
+
topUpEsimOkResponsePurchase,
|
4
|
+
topUpEsimOkResponsePurchaseRequest,
|
5
|
+
topUpEsimOkResponsePurchaseResponse,
|
6
|
+
} from './top-up-esim-ok-response-purchase';
|
7
|
+
import {
|
8
|
+
topUpEsimOkResponseProfile,
|
9
|
+
topUpEsimOkResponseProfileRequest,
|
10
|
+
topUpEsimOkResponseProfileResponse,
|
11
|
+
} from './top-up-esim-ok-response-profile';
|
12
|
+
|
13
|
+
/**
|
14
|
+
* The shape of the model inside the application code - what the users use
|
15
|
+
*/
|
16
|
+
export const topUpEsimOkResponse = z.lazy(() => {
|
17
|
+
return z.object({
|
18
|
+
purchase: topUpEsimOkResponsePurchase.optional(),
|
19
|
+
profile: topUpEsimOkResponseProfile.optional(),
|
20
|
+
});
|
21
|
+
});
|
22
|
+
|
23
|
+
/**
|
24
|
+
*
|
25
|
+
* @typedef {TopUpEsimOkResponse} topUpEsimOkResponse
|
26
|
+
* @property {TopUpEsimOkResponsePurchase}
|
27
|
+
* @property {TopUpEsimOkResponseProfile}
|
28
|
+
*/
|
29
|
+
export type TopUpEsimOkResponse = z.infer<typeof topUpEsimOkResponse>;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* The shape of the model mapping from the api schema into the application shape.
|
33
|
+
* Is equal to application shape if all property names match the api schema
|
34
|
+
*/
|
35
|
+
export const topUpEsimOkResponseResponse = z.lazy(() => {
|
36
|
+
return z
|
37
|
+
.object({
|
38
|
+
purchase: topUpEsimOkResponsePurchaseResponse.optional(),
|
39
|
+
profile: topUpEsimOkResponseProfileResponse.optional(),
|
40
|
+
})
|
41
|
+
.transform((data) => ({
|
42
|
+
purchase: data['purchase'],
|
43
|
+
profile: data['profile'],
|
44
|
+
}));
|
45
|
+
});
|
46
|
+
|
47
|
+
/**
|
48
|
+
* The shape of the model mapping from the application shape into the api schema.
|
49
|
+
* Is equal to application shape if all property names match the api schema
|
50
|
+
*/
|
51
|
+
export const topUpEsimOkResponseRequest = z.lazy(() => {
|
52
|
+
return z
|
53
|
+
.object({
|
54
|
+
purchase: topUpEsimOkResponsePurchaseRequest.nullish(),
|
55
|
+
profile: topUpEsimOkResponseProfileRequest.nullish(),
|
56
|
+
})
|
57
|
+
.transform((data) => ({
|
58
|
+
purchase: data['purchase'],
|
59
|
+
profile: data['profile'],
|
60
|
+
}));
|
61
|
+
});
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The shape of the model inside the application code - what the users use
|
5
|
+
*/
|
6
|
+
export const topUpEsimRequest = z.lazy(() => {
|
7
|
+
return z.object({
|
8
|
+
iccid: z.string().min(18).max(22),
|
9
|
+
dataLimitInGb: z.number(),
|
10
|
+
startDate: z.string(),
|
11
|
+
endDate: z.string(),
|
12
|
+
email: z.string().optional(),
|
13
|
+
referenceId: z.string().optional(),
|
14
|
+
startTime: z.number().optional(),
|
15
|
+
endTime: z.number().optional(),
|
16
|
+
});
|
17
|
+
});
|
18
|
+
|
19
|
+
/**
|
20
|
+
*
|
21
|
+
* @typedef {TopUpEsimRequest} topUpEsimRequest
|
22
|
+
* @property {string} - ID of the eSIM
|
23
|
+
* @property {number} - Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB
|
24
|
+
* @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
|
25
|
+
* @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
|
26
|
+
* @property {string} - Email address where the purchase confirmation email will be sent (excluding QR Code & activation steps)
|
27
|
+
* @property {string} - An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes.
|
28
|
+
* @property {number} - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months.
|
29
|
+
* @property {number} - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time.
|
30
|
+
*/
|
31
|
+
export type TopUpEsimRequest = z.infer<typeof topUpEsimRequest>;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* The shape of the model mapping from the api schema into the application shape.
|
35
|
+
* Is equal to application shape if all property names match the api schema
|
36
|
+
*/
|
37
|
+
export const topUpEsimRequestResponse = z.lazy(() => {
|
38
|
+
return z
|
39
|
+
.object({
|
40
|
+
iccid: z.string().min(18).max(22),
|
41
|
+
dataLimitInGB: z.number(),
|
42
|
+
startDate: z.string(),
|
43
|
+
endDate: z.string(),
|
44
|
+
email: z.string().optional(),
|
45
|
+
referenceId: z.string().optional(),
|
46
|
+
startTime: z.number().optional(),
|
47
|
+
endTime: z.number().optional(),
|
48
|
+
})
|
49
|
+
.transform((data) => ({
|
50
|
+
iccid: data['iccid'],
|
51
|
+
dataLimitInGb: data['dataLimitInGB'],
|
52
|
+
startDate: data['startDate'],
|
53
|
+
endDate: data['endDate'],
|
54
|
+
email: data['email'],
|
55
|
+
referenceId: data['referenceId'],
|
56
|
+
startTime: data['startTime'],
|
57
|
+
endTime: data['endTime'],
|
58
|
+
}));
|
59
|
+
});
|
60
|
+
|
61
|
+
/**
|
62
|
+
* The shape of the model mapping from the application shape into the api schema.
|
63
|
+
* Is equal to application shape if all property names match the api schema
|
64
|
+
*/
|
65
|
+
export const topUpEsimRequestRequest = z.lazy(() => {
|
66
|
+
return z
|
67
|
+
.object({
|
68
|
+
iccid: z.string().nullish(),
|
69
|
+
dataLimitInGb: z.number().nullish(),
|
70
|
+
startDate: z.string().nullish(),
|
71
|
+
endDate: z.string().nullish(),
|
72
|
+
email: z.string().nullish(),
|
73
|
+
referenceId: z.string().nullish(),
|
74
|
+
startTime: z.number().nullish(),
|
75
|
+
endTime: z.number().nullish(),
|
76
|
+
})
|
77
|
+
.transform((data) => ({
|
78
|
+
iccid: data['iccid'],
|
79
|
+
dataLimitInGB: data['dataLimitInGb'],
|
80
|
+
startDate: data['startDate'],
|
81
|
+
endDate: data['endDate'],
|
82
|
+
email: data['email'],
|
83
|
+
referenceId: data['referenceId'],
|
84
|
+
startTime: data['startTime'],
|
85
|
+
endTime: data['endTime'],
|
86
|
+
}));
|
87
|
+
});
|
@@ -0,0 +1,160 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { BaseService } from '../base-service';
|
3
|
+
import { ContentType, HttpResponse } from '../../http';
|
4
|
+
import { RequestConfig } from '../../http/types';
|
5
|
+
import { RequestBuilder } from '../../http/transport/request-builder';
|
6
|
+
import { ListPurchasesOkResponse, listPurchasesOkResponseResponse } from './models/list-purchases-ok-response';
|
7
|
+
import { ListPurchasesParams } from './request-params';
|
8
|
+
import { CreatePurchaseRequest, createPurchaseRequestRequest } from './models/create-purchase-request';
|
9
|
+
import { CreatePurchaseOkResponse, createPurchaseOkResponseResponse } from './models/create-purchase-ok-response';
|
10
|
+
import { TopUpEsimRequest, topUpEsimRequestRequest } from './models/top-up-esim-request';
|
11
|
+
import { TopUpEsimOkResponse, topUpEsimOkResponseResponse } from './models/top-up-esim-ok-response';
|
12
|
+
import { EditPurchaseRequest, editPurchaseRequestRequest } from './models/edit-purchase-request';
|
13
|
+
import { EditPurchaseOkResponse, editPurchaseOkResponseResponse } from './models/edit-purchase-ok-response';
|
14
|
+
import {
|
15
|
+
GetPurchaseConsumptionOkResponse,
|
16
|
+
getPurchaseConsumptionOkResponseResponse,
|
17
|
+
} from './models/get-purchase-consumption-ok-response';
|
18
|
+
|
19
|
+
export class PurchasesService extends BaseService {
|
20
|
+
/**
|
21
|
+
* This endpoint can be used to list all the successful purchases made between a given interval.
|
22
|
+
* @param {string} [iccid] - ID of the eSIM
|
23
|
+
* @param {string} [afterDate] - Start date of the interval for filtering purchases in the format 'yyyy-MM-dd'
|
24
|
+
* @param {string} [beforeDate] - End date of the interval for filtering purchases in the format 'yyyy-MM-dd'
|
25
|
+
* @param {string} [referenceId] - The referenceId that was provided by the partner during the purchase or topup flow.
|
26
|
+
* @param {string} [afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
|
27
|
+
* @param {number} [limit] - Maximum number of purchases to be returned in the response. The value must be greater than 0 and less than or equal to 100. If not provided, the default value is 20
|
28
|
+
* @param {number} [after] - Epoch value representing the start of the time interval for filtering purchases
|
29
|
+
* @param {number} [before] - Epoch value representing the end of the time interval for filtering purchases
|
30
|
+
* @returns {Promise<HttpResponse<ListPurchasesOkResponse>>} Successful Response
|
31
|
+
*/
|
32
|
+
async listPurchases(
|
33
|
+
params?: ListPurchasesParams,
|
34
|
+
requestConfig?: RequestConfig,
|
35
|
+
): Promise<HttpResponse<ListPurchasesOkResponse>> {
|
36
|
+
const request = new RequestBuilder<ListPurchasesOkResponse>()
|
37
|
+
.setConfig(this.config)
|
38
|
+
.setBaseUrl(this.config)
|
39
|
+
.setMethod('GET')
|
40
|
+
.setPath('/purchases')
|
41
|
+
.setRequestSchema(z.any())
|
42
|
+
.setResponseSchema(listPurchasesOkResponseResponse)
|
43
|
+
.setRequestContentType(ContentType.Json)
|
44
|
+
.setResponseContentType(ContentType.Json)
|
45
|
+
.setRetryAttempts(this.config, requestConfig)
|
46
|
+
.setRetryDelayMs(this.config, requestConfig)
|
47
|
+
.setResponseValidation(this.config, requestConfig)
|
48
|
+
.addQueryParam('iccid', params?.iccid)
|
49
|
+
.addQueryParam('afterDate', params?.afterDate)
|
50
|
+
.addQueryParam('beforeDate', params?.beforeDate)
|
51
|
+
.addQueryParam('referenceId', params?.referenceId)
|
52
|
+
.addQueryParam('afterCursor', params?.afterCursor)
|
53
|
+
.addQueryParam('limit', params?.limit)
|
54
|
+
.addQueryParam('after', params?.after)
|
55
|
+
.addQueryParam('before', params?.before)
|
56
|
+
.build();
|
57
|
+
return this.client.call<ListPurchasesOkResponse>(request);
|
58
|
+
}
|
59
|
+
|
60
|
+
/**
|
61
|
+
* This endpoint is used to purchase a new eSIM by providing the package details.
|
62
|
+
* @returns {Promise<HttpResponse<CreatePurchaseOkResponse>>} Successful Response
|
63
|
+
*/
|
64
|
+
async createPurchase(
|
65
|
+
body: CreatePurchaseRequest,
|
66
|
+
requestConfig?: RequestConfig,
|
67
|
+
): Promise<HttpResponse<CreatePurchaseOkResponse>> {
|
68
|
+
const request = new RequestBuilder<CreatePurchaseOkResponse>()
|
69
|
+
.setConfig(this.config)
|
70
|
+
.setBaseUrl(this.config)
|
71
|
+
.setMethod('POST')
|
72
|
+
.setPath('/purchases')
|
73
|
+
.setRequestSchema(createPurchaseRequestRequest)
|
74
|
+
.setResponseSchema(createPurchaseOkResponseResponse)
|
75
|
+
.setRequestContentType(ContentType.Json)
|
76
|
+
.setResponseContentType(ContentType.Json)
|
77
|
+
.setRetryAttempts(this.config, requestConfig)
|
78
|
+
.setRetryDelayMs(this.config, requestConfig)
|
79
|
+
.setResponseValidation(this.config, requestConfig)
|
80
|
+
.addHeaderParam('Content-Type', 'application/json')
|
81
|
+
.addBody(body)
|
82
|
+
.build();
|
83
|
+
return this.client.call<CreatePurchaseOkResponse>(request);
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* This endpoint is used to top-up an eSIM with the previously associated destination by providing an existing ICCID and the package details. The top-up is not feasible for eSIMs in "DELETED" or "ERROR" state.
|
88
|
+
* @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
|
89
|
+
*/
|
90
|
+
async topUpEsim(body: TopUpEsimRequest, requestConfig?: RequestConfig): Promise<HttpResponse<TopUpEsimOkResponse>> {
|
91
|
+
const request = new RequestBuilder<TopUpEsimOkResponse>()
|
92
|
+
.setConfig(this.config)
|
93
|
+
.setBaseUrl(this.config)
|
94
|
+
.setMethod('POST')
|
95
|
+
.setPath('/purchases/topup')
|
96
|
+
.setRequestSchema(topUpEsimRequestRequest)
|
97
|
+
.setResponseSchema(topUpEsimOkResponseResponse)
|
98
|
+
.setRequestContentType(ContentType.Json)
|
99
|
+
.setResponseContentType(ContentType.Json)
|
100
|
+
.setRetryAttempts(this.config, requestConfig)
|
101
|
+
.setRetryDelayMs(this.config, requestConfig)
|
102
|
+
.setResponseValidation(this.config, requestConfig)
|
103
|
+
.addHeaderParam('Content-Type', 'application/json')
|
104
|
+
.addBody(body)
|
105
|
+
.build();
|
106
|
+
return this.client.call<TopUpEsimOkResponse>(request);
|
107
|
+
}
|
108
|
+
|
109
|
+
/**
|
110
|
+
* This endpoint allows you to modify the dates of an existing package with a future activation start time. Editing can only be performed for packages that have not been activated, and it cannot change the package size. The modification must not change the package duration category to ensure pricing consistency.
|
111
|
+
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
112
|
+
*/
|
113
|
+
async editPurchase(
|
114
|
+
body: EditPurchaseRequest,
|
115
|
+
requestConfig?: RequestConfig,
|
116
|
+
): Promise<HttpResponse<EditPurchaseOkResponse>> {
|
117
|
+
const request = new RequestBuilder<EditPurchaseOkResponse>()
|
118
|
+
.setConfig(this.config)
|
119
|
+
.setBaseUrl(this.config)
|
120
|
+
.setMethod('POST')
|
121
|
+
.setPath('/purchases/edit')
|
122
|
+
.setRequestSchema(editPurchaseRequestRequest)
|
123
|
+
.setResponseSchema(editPurchaseOkResponseResponse)
|
124
|
+
.setRequestContentType(ContentType.Json)
|
125
|
+
.setResponseContentType(ContentType.Json)
|
126
|
+
.setRetryAttempts(this.config, requestConfig)
|
127
|
+
.setRetryDelayMs(this.config, requestConfig)
|
128
|
+
.setResponseValidation(this.config, requestConfig)
|
129
|
+
.addHeaderParam('Content-Type', 'application/json')
|
130
|
+
.addBody(body)
|
131
|
+
.build();
|
132
|
+
return this.client.call<EditPurchaseOkResponse>(request);
|
133
|
+
}
|
134
|
+
|
135
|
+
/**
|
136
|
+
* This endpoint can be called for consumption notifications (e.g. every 1 hour or when the user clicks a button). It returns the data balance (consumption) of purchased packages.
|
137
|
+
* @param {string} purchaseId - ID of the purchase
|
138
|
+
* @returns {Promise<HttpResponse<GetPurchaseConsumptionOkResponse>>} Successful Response
|
139
|
+
*/
|
140
|
+
async getPurchaseConsumption(
|
141
|
+
purchaseId: string,
|
142
|
+
requestConfig?: RequestConfig,
|
143
|
+
): Promise<HttpResponse<GetPurchaseConsumptionOkResponse>> {
|
144
|
+
const request = new RequestBuilder<GetPurchaseConsumptionOkResponse>()
|
145
|
+
.setConfig(this.config)
|
146
|
+
.setBaseUrl(this.config)
|
147
|
+
.setMethod('GET')
|
148
|
+
.setPath('/purchases/{purchaseId}/consumption')
|
149
|
+
.setRequestSchema(z.any())
|
150
|
+
.setResponseSchema(getPurchaseConsumptionOkResponseResponse)
|
151
|
+
.setRequestContentType(ContentType.Json)
|
152
|
+
.setResponseContentType(ContentType.Json)
|
153
|
+
.setRetryAttempts(this.config, requestConfig)
|
154
|
+
.setRetryDelayMs(this.config, requestConfig)
|
155
|
+
.setResponseValidation(this.config, requestConfig)
|
156
|
+
.addPathParam('purchaseId', purchaseId)
|
157
|
+
.build();
|
158
|
+
return this.client.call<GetPurchaseConsumptionOkResponse>(request);
|
159
|
+
}
|
160
|
+
}
|
package/tsconfig.json
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
{
|
2
|
+
"compilerOptions": {
|
3
|
+
"target": "es6",
|
4
|
+
"module": "commonjs",
|
5
|
+
"esModuleInterop": true,
|
6
|
+
"forceConsistentCasingInFileNames": true,
|
7
|
+
"strict": true,
|
8
|
+
"skipLibCheck": true,
|
9
|
+
"outDir": "./dist",
|
10
|
+
"rootDir": "./src",
|
11
|
+
"noImplicitAny": true,
|
12
|
+
"baseUrl": "./",
|
13
|
+
"declaration": true,
|
14
|
+
"moduleResolution": "node",
|
15
|
+
"isolatedModules": true,
|
16
|
+
"allowSyntheticDefaultImports": true,
|
17
|
+
"declarationMap": true,
|
18
|
+
"lib": ["es2017", "dom"],
|
19
|
+
"sourceMap": true
|
20
|
+
},
|
21
|
+
"include": ["src/"]
|
22
|
+
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import HTTPLibrary from './http/HTTPLibrary';
|
2
|
-
export default class BaseService {
|
3
|
-
baseUrl: string;
|
4
|
-
httpClient: HTTPLibrary;
|
5
|
-
setBaseUrl(url: string): void;
|
6
|
-
static patternMatching(value: string, pattern: string, variableName: string): string;
|
7
|
-
static urlEncode: (input: {
|
8
|
-
[key: string]: any;
|
9
|
-
}) => string;
|
10
|
-
}
|
11
|
-
//# sourceMappingURL=BaseService.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BaseService.d.ts","sourceRoot":"","sources":["../../src/BaseService.ts"],"names":[],"mappings":"AACA,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,WAAW;IACvB,OAAO,EAAE,MAAM,CAAuB;IAEtC,UAAU,cAAqB;IAEtC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAI7B,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM;IAUpF,MAAM,CAAC,SAAS;;UAAoC,MAAM,CAG3C;CAChB"}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
const Environment_1 = require("./http/Environment");
|
7
|
-
const HTTPLibrary_1 = __importDefault(require("./http/HTTPLibrary"));
|
8
|
-
class BaseService {
|
9
|
-
constructor() {
|
10
|
-
this.baseUrl = Environment_1.Environment.DEFAULT;
|
11
|
-
this.httpClient = new HTTPLibrary_1.default();
|
12
|
-
}
|
13
|
-
setBaseUrl(url) {
|
14
|
-
this.baseUrl = url;
|
15
|
-
}
|
16
|
-
static patternMatching(value, pattern, variableName) {
|
17
|
-
if (!value) {
|
18
|
-
throw new Error(`${variableName} cannot be null or undefined`);
|
19
|
-
}
|
20
|
-
if (!value.match(new RegExp(pattern))) {
|
21
|
-
throw new Error(`Invalid value for ${variableName}: must match ${pattern}`);
|
22
|
-
}
|
23
|
-
return value;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
exports.default = BaseService;
|
27
|
-
BaseService.urlEncode = (input) => Object.keys(input)
|
28
|
-
.map((key) => `${key}=${encodeURIComponent(input[key])}`)
|
29
|
-
.join('&');
|
30
|
-
//# sourceMappingURL=BaseService.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"BaseService.js","sourceRoot":"","sources":["../../src/BaseService.ts"],"names":[],"mappings":";;;;;AAAA,oDAAiD;AACjD,qEAA6C;AAE7C,MAAqB,WAAW;IAAhC;QACS,YAAO,GAAW,yBAAW,CAAC,OAAO,CAAC;QAEtC,eAAU,GAAG,IAAI,qBAAW,EAAE,CAAC;IAoBxC,CAAC;IAlBC,UAAU,CAAC,GAAW;QACpB,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,KAAa,EAAE,OAAe,EAAE,YAAoB;QACzE,IAAI,CAAC,KAAK,EAAE;YACV,MAAM,IAAI,KAAK,CAAC,GAAG,YAAY,8BAA8B,CAAC,CAAC;SAChE;QACD,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,qBAAqB,YAAY,gBAAgB,OAAO,EAAE,CAAC,CAAC;SAC7E;QACD,OAAO,KAAK,CAAC;IACf,CAAC;;AAjBH,8BAuBC;AAJQ,qBAAS,GAAG,CAAC,KAA6B,EAAU,EAAE,CAC3D,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;KACf,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,kBAAkB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;KACxD,IAAI,CAAC,GAAG,CAAC,CAAC"}
|