celitech-sdk 1.1.84 → 1.1.86
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +4 -18
- package/dist/index.d.ts +1503 -12
- package/dist/index.js +2140 -76
- package/dist/index.mjs +2102 -0
- package/package.json +22 -5
- package/.devcontainer/devcontainer.json +0 -24
- package/.github/workflows/publish_npmjs.yml +0 -32
- package/.manifest.json +0 -256
- package/dist/http/client.d.ts +0 -14
- package/dist/http/client.d.ts.map +0 -1
- package/dist/http/client.js +0 -36
- package/dist/http/client.js.map +0 -1
- package/dist/http/environment.d.ts +0 -4
- package/dist/http/environment.d.ts.map +0 -1
- package/dist/http/environment.js +0 -8
- package/dist/http/environment.js.map +0 -1
- package/dist/http/error.d.ts +0 -7
- package/dist/http/error.d.ts.map +0 -1
- package/dist/http/error.js +0 -12
- package/dist/http/error.js.map +0 -1
- package/dist/http/handlers/handler-chain.d.ts +0 -8
- package/dist/http/handlers/handler-chain.d.ts.map +0 -1
- package/dist/http/handlers/handler-chain.js +0 -34
- package/dist/http/handlers/handler-chain.js.map +0 -1
- package/dist/http/handlers/hook-handler.d.ts +0 -12
- package/dist/http/handlers/hook-handler.d.ts.map +0 -1
- package/dist/http/handlers/hook-handler.js +0 -49
- package/dist/http/handlers/hook-handler.js.map +0 -1
- package/dist/http/handlers/request-validation-handler.d.ts +0 -9
- package/dist/http/handlers/request-validation-handler.d.ts.map +0 -1
- package/dist/http/handlers/request-validation-handler.js +0 -78
- package/dist/http/handlers/request-validation-handler.js.map +0 -1
- package/dist/http/handlers/response-validation-handler.d.ts +0 -11
- package/dist/http/handlers/response-validation-handler.d.ts.map +0 -1
- package/dist/http/handlers/response-validation-handler.js +0 -89
- package/dist/http/handlers/response-validation-handler.js.map +0 -1
- package/dist/http/handlers/retry-handler.d.ts +0 -9
- package/dist/http/handlers/retry-handler.d.ts.map +0 -1
- package/dist/http/handlers/retry-handler.js +0 -47
- package/dist/http/handlers/retry-handler.js.map +0 -1
- package/dist/http/handlers/terminating-handler.d.ts +0 -8
- package/dist/http/handlers/terminating-handler.d.ts.map +0 -1
- package/dist/http/handlers/terminating-handler.js +0 -45
- package/dist/http/handlers/terminating-handler.js.map +0 -1
- package/dist/http/hooks/custom-hook.d.ts +0 -9
- package/dist/http/hooks/custom-hook.d.ts.map +0 -1
- package/dist/http/hooks/custom-hook.js +0 -89
- package/dist/http/hooks/custom-hook.js.map +0 -1
- package/dist/http/hooks/hook.d.ts +0 -31
- package/dist/http/hooks/hook.d.ts.map +0 -1
- package/dist/http/hooks/hook.js +0 -3
- package/dist/http/hooks/hook.js.map +0 -1
- package/dist/http/serializer.d.ts +0 -13
- package/dist/http/serializer.d.ts.map +0 -1
- package/dist/http/serializer.js +0 -150
- package/dist/http/serializer.js.map +0 -1
- package/dist/http/transport/request-builder.d.ts +0 -24
- package/dist/http/transport/request-builder.d.ts.map +0 -1
- package/dist/http/transport/request-builder.js +0 -130
- package/dist/http/transport/request-builder.js.map +0 -1
- package/dist/http/transport/request.d.ts +0 -53
- package/dist/http/transport/request.d.ts.map +0 -1
- package/dist/http/transport/request.js +0 -116
- package/dist/http/transport/request.js.map +0 -1
- package/dist/http/types.d.ts +0 -60
- package/dist/http/types.d.ts.map +0 -1
- package/dist/http/types.js +0 -16
- package/dist/http/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/services/base-service.d.ts +0 -14
- package/dist/services/base-service.d.ts.map +0 -1
- package/dist/services/base-service.js +0 -27
- package/dist/services/base-service.js.map +0 -1
- package/dist/services/destinations/destinations.d.ts +0 -11
- package/dist/services/destinations/destinations.d.ts.map +0 -1
- package/dist/services/destinations/destinations.js +0 -43
- package/dist/services/destinations/destinations.js.map +0 -1
- package/dist/services/destinations/index.d.ts +0 -2
- package/dist/services/destinations/index.d.ts.map +0 -1
- package/dist/services/destinations/index.js +0 -6
- package/dist/services/destinations/index.js.map +0 -1
- package/dist/services/destinations/models/destinations.d.ts +0 -76
- package/dist/services/destinations/models/destinations.d.ts.map +0 -1
- package/dist/services/destinations/models/destinations.js +0 -49
- package/dist/services/destinations/models/destinations.js.map +0 -1
- package/dist/services/destinations/models/index.d.ts +0 -3
- package/dist/services/destinations/models/index.d.ts.map +0 -1
- package/dist/services/destinations/models/index.js +0 -3
- package/dist/services/destinations/models/index.js.map +0 -1
- package/dist/services/destinations/models/list-destinations-ok-response.d.ts +0 -140
- package/dist/services/destinations/models/list-destinations-ok-response.d.ts.map +0 -1
- package/dist/services/destinations/models/list-destinations-ok-response.js +0 -36
- package/dist/services/destinations/models/list-destinations-ok-response.js.map +0 -1
- package/dist/services/e-sim/e-sim.d.ts +0 -34
- package/dist/services/e-sim/e-sim.d.ts.map +0 -1
- package/dist/services/e-sim/e-sim.js +0 -120
- package/dist/services/e-sim/e-sim.js.map +0 -1
- package/dist/services/e-sim/index.d.ts +0 -2
- package/dist/services/e-sim/index.d.ts.map +0 -1
- package/dist/services/e-sim/index.js +0 -6
- package/dist/services/e-sim/index.js.map +0 -1
- package/dist/services/e-sim/models/device.d.ts +0 -90
- package/dist/services/e-sim/models/device.d.ts.map +0 -1
- package/dist/services/e-sim/models/device.js +0 -54
- package/dist/services/e-sim/models/device.js.map +0 -1
- package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts +0 -163
- package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts.map +0 -1
- package/dist/services/e-sim/models/get-esim-device-ok-response.js +0 -36
- package/dist/services/e-sim/models/get-esim-device-ok-response.js.map +0 -1
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts +0 -154
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts.map +0 -1
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js +0 -40
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js.map +0 -1
- package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts +0 -249
- package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts.map +0 -1
- package/dist/services/e-sim/models/get-esim-history-ok-response.js +0 -36
- package/dist/services/e-sim/models/get-esim-history-ok-response.js.map +0 -1
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts +0 -76
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts.map +0 -1
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js +0 -49
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js.map +0 -1
- package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts +0 -140
- package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts.map +0 -1
- package/dist/services/e-sim/models/get-esim-mac-ok-response.js +0 -36
- package/dist/services/e-sim/models/get-esim-mac-ok-response.js.map +0 -1
- package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts +0 -90
- package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts.map +0 -1
- package/dist/services/e-sim/models/get-esim-ok-response-esim.js +0 -54
- package/dist/services/e-sim/models/get-esim-ok-response-esim.js.map +0 -1
- package/dist/services/e-sim/models/get-esim-ok-response.d.ts +0 -163
- package/dist/services/e-sim/models/get-esim-ok-response.d.ts.map +0 -1
- package/dist/services/e-sim/models/get-esim-ok-response.js +0 -36
- package/dist/services/e-sim/models/get-esim-ok-response.js.map +0 -1
- package/dist/services/e-sim/models/history.d.ts +0 -76
- package/dist/services/e-sim/models/history.d.ts.map +0 -1
- package/dist/services/e-sim/models/history.js +0 -45
- package/dist/services/e-sim/models/history.js.map +0 -1
- package/dist/services/e-sim/models/index.d.ts +0 -10
- package/dist/services/e-sim/models/index.d.ts.map +0 -1
- package/dist/services/e-sim/models/index.js +0 -3
- package/dist/services/e-sim/models/index.js.map +0 -1
- package/dist/services/e-sim/request-params.d.ts +0 -4
- package/dist/services/e-sim/request-params.d.ts.map +0 -1
- package/dist/services/e-sim/request-params.js +0 -3
- package/dist/services/e-sim/request-params.js.map +0 -1
- package/dist/services/packages/index.d.ts +0 -2
- package/dist/services/packages/index.d.ts.map +0 -1
- package/dist/services/packages/index.js +0 -6
- package/dist/services/packages/index.js.map +0 -1
- package/dist/services/packages/models/index.d.ts +0 -3
- package/dist/services/packages/models/index.d.ts.map +0 -1
- package/dist/services/packages/models/index.js +0 -3
- package/dist/services/packages/models/index.js.map +0 -1
- package/dist/services/packages/models/list-packages-ok-response.d.ts +0 -223
- package/dist/services/packages/models/list-packages-ok-response.d.ts.map +0 -1
- package/dist/services/packages/models/list-packages-ok-response.js +0 -42
- package/dist/services/packages/models/list-packages-ok-response.js.map +0 -1
- package/dist/services/packages/models/packages.d.ts +0 -118
- package/dist/services/packages/models/packages.d.ts.map +0 -1
- package/dist/services/packages/models/packages.js +0 -64
- package/dist/services/packages/models/packages.js.map +0 -1
- package/dist/services/packages/packages.d.ts +0 -20
- package/dist/services/packages/packages.d.ts.map +0 -1
- package/dist/services/packages/packages.js +0 -59
- package/dist/services/packages/packages.js.map +0 -1
- package/dist/services/packages/request-params.d.ts +0 -11
- package/dist/services/packages/request-params.d.ts.map +0 -1
- package/dist/services/packages/request-params.js +0 -3
- package/dist/services/packages/request-params.js.map +0 -1
- package/dist/services/purchases/index.d.ts +0 -2
- package/dist/services/purchases/index.d.ts.map +0 -1
- package/dist/services/purchases/index.js +0 -6
- package/dist/services/purchases/index.js.map +0 -1
- package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts +0 -62
- package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts.map +0 -1
- package/dist/services/purchases/models/create-purchase-ok-response-profile.js +0 -39
- package/dist/services/purchases/models/create-purchase-ok-response-profile.js.map +0 -1
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts +0 -132
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts.map +0 -1
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.js +0 -69
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.js.map +0 -1
- package/dist/services/purchases/models/create-purchase-ok-response.d.ts +0 -315
- package/dist/services/purchases/models/create-purchase-ok-response.d.ts.map +0 -1
- package/dist/services/purchases/models/create-purchase-ok-response.js +0 -46
- package/dist/services/purchases/models/create-purchase-ok-response.js.map +0 -1
- package/dist/services/purchases/models/create-purchase-request.d.ts +0 -160
- package/dist/services/purchases/models/create-purchase-request.d.ts.map +0 -1
- package/dist/services/purchases/models/create-purchase-request.js +0 -79
- package/dist/services/purchases/models/create-purchase-request.js.map +0 -1
- package/dist/services/purchases/models/edit-purchase-ok-response.d.ts +0 -104
- package/dist/services/purchases/models/edit-purchase-ok-response.d.ts.map +0 -1
- package/dist/services/purchases/models/edit-purchase-ok-response.js +0 -59
- package/dist/services/purchases/models/edit-purchase-ok-response.js.map +0 -1
- package/dist/services/purchases/models/edit-purchase-request.d.ts +0 -104
- package/dist/services/purchases/models/edit-purchase-request.d.ts.map +0 -1
- package/dist/services/purchases/models/edit-purchase-request.js +0 -59
- package/dist/services/purchases/models/edit-purchase-request.js.map +0 -1
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts +0 -62
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts.map +0 -1
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.js +0 -41
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.js.map +0 -1
- package/dist/services/purchases/models/index.d.ts +0 -16
- package/dist/services/purchases/models/index.d.ts.map +0 -1
- package/dist/services/purchases/models/index.js +0 -3
- package/dist/services/purchases/models/index.js.map +0 -1
- package/dist/services/purchases/models/list-purchases-ok-response.d.ts +0 -622
- package/dist/services/purchases/models/list-purchases-ok-response.d.ts.map +0 -1
- package/dist/services/purchases/models/list-purchases-ok-response.js +0 -42
- package/dist/services/purchases/models/list-purchases-ok-response.js.map +0 -1
- package/dist/services/purchases/models/package_.d.ts +0 -104
- package/dist/services/purchases/models/package_.d.ts.map +0 -1
- package/dist/services/purchases/models/package_.js +0 -59
- package/dist/services/purchases/models/package_.js.map +0 -1
- package/dist/services/purchases/models/purchases-esim.d.ts +0 -48
- package/dist/services/purchases/models/purchases-esim.d.ts.map +0 -1
- package/dist/services/purchases/models/purchases-esim.js +0 -35
- package/dist/services/purchases/models/purchases-esim.js.map +0 -1
- package/dist/services/purchases/models/purchases.d.ts +0 -372
- package/dist/services/purchases/models/purchases.d.ts.map +0 -1
- package/dist/services/purchases/models/purchases.js +0 -91
- package/dist/services/purchases/models/purchases.js.map +0 -1
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts +0 -48
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts.map +0 -1
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.js +0 -35
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.js.map +0 -1
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts +0 -132
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts.map +0 -1
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js +0 -69
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js.map +0 -1
- package/dist/services/purchases/models/top-up-esim-ok-response.d.ts +0 -292
- package/dist/services/purchases/models/top-up-esim-ok-response.d.ts.map +0 -1
- package/dist/services/purchases/models/top-up-esim-ok-response.js +0 -46
- package/dist/services/purchases/models/top-up-esim-ok-response.js.map +0 -1
- package/dist/services/purchases/models/top-up-esim-request.d.ts +0 -146
- package/dist/services/purchases/models/top-up-esim-request.d.ts.map +0 -1
- package/dist/services/purchases/models/top-up-esim-request.js +0 -74
- package/dist/services/purchases/models/top-up-esim-request.js.map +0 -1
- package/dist/services/purchases/purchases.d.ts +0 -48
- package/dist/services/purchases/purchases.d.ts.map +0 -1
- package/dist/services/purchases/purchases.js +0 -162
- package/dist/services/purchases/purchases.js.map +0 -1
- package/dist/services/purchases/request-params.d.ts +0 -11
- package/dist/services/purchases/request-params.d.ts.map +0 -1
- package/dist/services/purchases/request-params.js +0 -3
- package/dist/services/purchases/request-params.js.map +0 -1
- package/documentation/models/CreatePurchaseOkResponse.md +0 -31
- package/documentation/models/CreatePurchaseRequest.md +0 -15
- package/documentation/models/EditPurchaseOkResponse.md +0 -11
- package/documentation/models/EditPurchaseRequest.md +0 -11
- package/documentation/models/GetEsimDeviceOkResponse.md +0 -18
- package/documentation/models/GetEsimHistoryOkResponse.md +0 -26
- package/documentation/models/GetEsimMacOkResponse.md +0 -17
- package/documentation/models/GetEsimOkResponse.md +0 -18
- package/documentation/models/GetPurchaseConsumptionOkResponse.md +0 -8
- package/documentation/models/ListDestinationsOkResponse.md +0 -17
- package/documentation/models/ListPackagesOkResponse.md +0 -21
- package/documentation/models/ListPurchasesOkResponse.md +0 -46
- package/documentation/models/TopUpEsimOkResponse.md +0 -30
- package/documentation/models/TopUpEsimRequest.md +0 -14
- package/documentation/services/DestinationsService.md +0 -35
- package/documentation/services/ESimService.md +0 -148
- package/documentation/services/PackagesService.md +0 -48
- package/documentation/services/PurchasesService.md +0 -219
- package/documentation/snippets/destinations-get.md +0 -14
- package/documentation/snippets/esim-get.md +0 -16
- package/documentation/snippets/esim-{iccid}-device-get.md +0 -14
- package/documentation/snippets/esim-{iccid}-history-get.md +0 -14
- package/documentation/snippets/esim-{iccid}-mac-get.md +0 -14
- package/documentation/snippets/packages-get.md +0 -14
- package/documentation/snippets/purchases-edit-post.md +0 -22
- package/documentation/snippets/purchases-get.md +0 -14
- package/documentation/snippets/purchases-post.md +0 -26
- package/documentation/snippets/purchases-topup-post.md +0 -25
- package/documentation/snippets/purchases-{purchaseId}-consumption-get.md +0 -14
- package/examples/README.md +0 -27
- package/examples/package.json +0 -18
- package/examples/src/index.ts +0 -12
- package/examples/tsconfig.json +0 -22
- package/src/http/client.ts +0 -46
- package/src/http/environment.ts +0 -3
- package/src/http/error.ts +0 -12
- package/src/http/handlers/handler-chain.ts +0 -22
- package/src/http/handlers/hook-handler.ts +0 -47
- package/src/http/handlers/request-validation-handler.ts +0 -72
- package/src/http/handlers/response-validation-handler.ts +0 -106
- package/src/http/handlers/retry-handler.ts +0 -40
- package/src/http/handlers/terminating-handler.ts +0 -38
- package/src/http/hooks/custom-hook.ts +0 -100
- package/src/http/hooks/hook.ts +0 -40
- package/src/http/serializer.ts +0 -183
- package/src/http/transport/request-builder.ts +0 -145
- package/src/http/transport/request.ts +0 -178
- package/src/http/types.ts +0 -70
- package/src/index.ts +0 -73
- package/src/services/base-service.ts +0 -29
- package/src/services/destinations/destinations.ts +0 -28
- package/src/services/destinations/index.ts +0 -1
- package/src/services/destinations/models/destinations.ts +0 -57
- package/src/services/destinations/models/index.ts +0 -2
- package/src/services/destinations/models/list-destinations-ok-response.ts +0 -42
- package/src/services/e-sim/e-sim.ts +0 -103
- package/src/services/e-sim/index.ts +0 -1
- package/src/services/e-sim/models/device.ts +0 -63
- package/src/services/e-sim/models/get-esim-device-ok-response.ts +0 -42
- package/src/services/e-sim/models/get-esim-history-ok-response-esim.ts +0 -47
- package/src/services/e-sim/models/get-esim-history-ok-response.ts +0 -46
- package/src/services/e-sim/models/get-esim-mac-ok-response-esim.ts +0 -57
- package/src/services/e-sim/models/get-esim-mac-ok-response.ts +0 -46
- package/src/services/e-sim/models/get-esim-ok-response-esim.ts +0 -63
- package/src/services/e-sim/models/get-esim-ok-response.ts +0 -46
- package/src/services/e-sim/models/history.ts +0 -53
- package/src/services/e-sim/models/index.ts +0 -9
- package/src/services/e-sim/request-params.ts +0 -3
- package/src/services/packages/index.ts +0 -1
- package/src/services/packages/models/index.ts +0 -2
- package/src/services/packages/models/list-packages-ok-response.ts +0 -49
- package/src/services/packages/models/packages.ts +0 -75
- package/src/services/packages/packages.ts +0 -48
- package/src/services/packages/request-params.ts +0 -10
- package/src/services/purchases/index.ts +0 -1
- package/src/services/purchases/models/create-purchase-ok-response-profile.ts +0 -46
- package/src/services/purchases/models/create-purchase-ok-response-purchase.ts +0 -81
- package/src/services/purchases/models/create-purchase-ok-response.ts +0 -61
- package/src/services/purchases/models/create-purchase-request.ts +0 -93
- package/src/services/purchases/models/edit-purchase-ok-response.ts +0 -69
- package/src/services/purchases/models/edit-purchase-request.ts +0 -69
- package/src/services/purchases/models/get-purchase-consumption-ok-response.ts +0 -48
- package/src/services/purchases/models/index.ts +0 -15
- package/src/services/purchases/models/list-purchases-ok-response.ts +0 -49
- package/src/services/purchases/models/package_.ts +0 -69
- package/src/services/purchases/models/purchases-esim.ts +0 -41
- package/src/services/purchases/models/purchases.ts +0 -107
- package/src/services/purchases/models/top-up-esim-ok-response-profile.ts +0 -41
- package/src/services/purchases/models/top-up-esim-ok-response-purchase.ts +0 -81
- package/src/services/purchases/models/top-up-esim-ok-response.ts +0 -61
- package/src/services/purchases/models/top-up-esim-request.ts +0 -87
- package/src/services/purchases/purchases.ts +0 -159
- package/src/services/purchases/request-params.ts +0 -10
- package/tsconfig.json +0 -22
@@ -1,162 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.PurchasesService = void 0;
|
13
|
-
const zod_1 = require("zod");
|
14
|
-
const base_service_1 = require("../base-service");
|
15
|
-
const types_1 = require("../../http/types");
|
16
|
-
const request_builder_1 = require("../../http/transport/request-builder");
|
17
|
-
const list_purchases_ok_response_1 = require("./models/list-purchases-ok-response");
|
18
|
-
const create_purchase_request_1 = require("./models/create-purchase-request");
|
19
|
-
const create_purchase_ok_response_1 = require("./models/create-purchase-ok-response");
|
20
|
-
const top_up_esim_request_1 = require("./models/top-up-esim-request");
|
21
|
-
const top_up_esim_ok_response_1 = require("./models/top-up-esim-ok-response");
|
22
|
-
const edit_purchase_request_1 = require("./models/edit-purchase-request");
|
23
|
-
const edit_purchase_ok_response_1 = require("./models/edit-purchase-ok-response");
|
24
|
-
const get_purchase_consumption_ok_response_1 = require("./models/get-purchase-consumption-ok-response");
|
25
|
-
class PurchasesService extends base_service_1.BaseService {
|
26
|
-
/**
|
27
|
-
* This endpoint can be used to list all the successful purchases made between a given interval.
|
28
|
-
* @param {string} [iccid] - ID of the eSIM
|
29
|
-
* @param {string} [afterDate] - Start date of the interval for filtering purchases in the format 'yyyy-MM-dd'
|
30
|
-
* @param {string} [beforeDate] - End date of the interval for filtering purchases in the format 'yyyy-MM-dd'
|
31
|
-
* @param {string} [referenceId] - The referenceId that was provided by the partner during the purchase or topup flow.
|
32
|
-
* @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.
|
33
|
-
* @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
|
34
|
-
* @param {number} [after] - Epoch value representing the start of the time interval for filtering purchases
|
35
|
-
* @param {number} [before] - Epoch value representing the end of the time interval for filtering purchases
|
36
|
-
* @returns {Promise<HttpResponse<ListPurchasesOkResponse>>} Successful Response
|
37
|
-
*/
|
38
|
-
listPurchases(params, requestConfig) {
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
40
|
-
const request = new request_builder_1.RequestBuilder()
|
41
|
-
.setConfig(this.config)
|
42
|
-
.setBaseUrl(this.config)
|
43
|
-
.setMethod('GET')
|
44
|
-
.setPath('/purchases')
|
45
|
-
.setRequestSchema(zod_1.z.any())
|
46
|
-
.setResponseSchema(list_purchases_ok_response_1.listPurchasesOkResponseResponse)
|
47
|
-
.setRequestContentType(types_1.ContentType.Json)
|
48
|
-
.setResponseContentType(types_1.ContentType.Json)
|
49
|
-
.setRetryAttempts(this.config, requestConfig)
|
50
|
-
.setRetryDelayMs(this.config, requestConfig)
|
51
|
-
.setResponseValidation(this.config, requestConfig)
|
52
|
-
.addQueryParam('iccid', params === null || params === void 0 ? void 0 : params.iccid)
|
53
|
-
.addQueryParam('afterDate', params === null || params === void 0 ? void 0 : params.afterDate)
|
54
|
-
.addQueryParam('beforeDate', params === null || params === void 0 ? void 0 : params.beforeDate)
|
55
|
-
.addQueryParam('referenceId', params === null || params === void 0 ? void 0 : params.referenceId)
|
56
|
-
.addQueryParam('afterCursor', params === null || params === void 0 ? void 0 : params.afterCursor)
|
57
|
-
.addQueryParam('limit', params === null || params === void 0 ? void 0 : params.limit)
|
58
|
-
.addQueryParam('after', params === null || params === void 0 ? void 0 : params.after)
|
59
|
-
.addQueryParam('before', params === null || params === void 0 ? void 0 : params.before)
|
60
|
-
.build();
|
61
|
-
return this.client.call(request);
|
62
|
-
});
|
63
|
-
}
|
64
|
-
/**
|
65
|
-
* This endpoint is used to purchase a new eSIM by providing the package details.
|
66
|
-
* @returns {Promise<HttpResponse<CreatePurchaseOkResponse>>} Successful Response
|
67
|
-
*/
|
68
|
-
createPurchase(body, requestConfig) {
|
69
|
-
return __awaiter(this, void 0, void 0, function* () {
|
70
|
-
const request = new request_builder_1.RequestBuilder()
|
71
|
-
.setConfig(this.config)
|
72
|
-
.setBaseUrl(this.config)
|
73
|
-
.setMethod('POST')
|
74
|
-
.setPath('/purchases')
|
75
|
-
.setRequestSchema(create_purchase_request_1.createPurchaseRequestRequest)
|
76
|
-
.setResponseSchema(create_purchase_ok_response_1.createPurchaseOkResponseResponse)
|
77
|
-
.setRequestContentType(types_1.ContentType.Json)
|
78
|
-
.setResponseContentType(types_1.ContentType.Json)
|
79
|
-
.setRetryAttempts(this.config, requestConfig)
|
80
|
-
.setRetryDelayMs(this.config, requestConfig)
|
81
|
-
.setResponseValidation(this.config, requestConfig)
|
82
|
-
.addHeaderParam('Content-Type', 'application/json')
|
83
|
-
.addBody(body)
|
84
|
-
.build();
|
85
|
-
return this.client.call(request);
|
86
|
-
});
|
87
|
-
}
|
88
|
-
/**
|
89
|
-
* 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.
|
90
|
-
* @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
|
91
|
-
*/
|
92
|
-
topUpEsim(body, requestConfig) {
|
93
|
-
return __awaiter(this, void 0, void 0, function* () {
|
94
|
-
const request = new request_builder_1.RequestBuilder()
|
95
|
-
.setConfig(this.config)
|
96
|
-
.setBaseUrl(this.config)
|
97
|
-
.setMethod('POST')
|
98
|
-
.setPath('/purchases/topup')
|
99
|
-
.setRequestSchema(top_up_esim_request_1.topUpEsimRequestRequest)
|
100
|
-
.setResponseSchema(top_up_esim_ok_response_1.topUpEsimOkResponseResponse)
|
101
|
-
.setRequestContentType(types_1.ContentType.Json)
|
102
|
-
.setResponseContentType(types_1.ContentType.Json)
|
103
|
-
.setRetryAttempts(this.config, requestConfig)
|
104
|
-
.setRetryDelayMs(this.config, requestConfig)
|
105
|
-
.setResponseValidation(this.config, requestConfig)
|
106
|
-
.addHeaderParam('Content-Type', 'application/json')
|
107
|
-
.addBody(body)
|
108
|
-
.build();
|
109
|
-
return this.client.call(request);
|
110
|
-
});
|
111
|
-
}
|
112
|
-
/**
|
113
|
-
* 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.
|
114
|
-
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
115
|
-
*/
|
116
|
-
editPurchase(body, requestConfig) {
|
117
|
-
return __awaiter(this, void 0, void 0, function* () {
|
118
|
-
const request = new request_builder_1.RequestBuilder()
|
119
|
-
.setConfig(this.config)
|
120
|
-
.setBaseUrl(this.config)
|
121
|
-
.setMethod('POST')
|
122
|
-
.setPath('/purchases/edit')
|
123
|
-
.setRequestSchema(edit_purchase_request_1.editPurchaseRequestRequest)
|
124
|
-
.setResponseSchema(edit_purchase_ok_response_1.editPurchaseOkResponseResponse)
|
125
|
-
.setRequestContentType(types_1.ContentType.Json)
|
126
|
-
.setResponseContentType(types_1.ContentType.Json)
|
127
|
-
.setRetryAttempts(this.config, requestConfig)
|
128
|
-
.setRetryDelayMs(this.config, requestConfig)
|
129
|
-
.setResponseValidation(this.config, requestConfig)
|
130
|
-
.addHeaderParam('Content-Type', 'application/json')
|
131
|
-
.addBody(body)
|
132
|
-
.build();
|
133
|
-
return this.client.call(request);
|
134
|
-
});
|
135
|
-
}
|
136
|
-
/**
|
137
|
-
* 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.
|
138
|
-
* @param {string} purchaseId - ID of the purchase
|
139
|
-
* @returns {Promise<HttpResponse<GetPurchaseConsumptionOkResponse>>} Successful Response
|
140
|
-
*/
|
141
|
-
getPurchaseConsumption(purchaseId, requestConfig) {
|
142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
143
|
-
const request = new request_builder_1.RequestBuilder()
|
144
|
-
.setConfig(this.config)
|
145
|
-
.setBaseUrl(this.config)
|
146
|
-
.setMethod('GET')
|
147
|
-
.setPath('/purchases/{purchaseId}/consumption')
|
148
|
-
.setRequestSchema(zod_1.z.any())
|
149
|
-
.setResponseSchema(get_purchase_consumption_ok_response_1.getPurchaseConsumptionOkResponseResponse)
|
150
|
-
.setRequestContentType(types_1.ContentType.Json)
|
151
|
-
.setResponseContentType(types_1.ContentType.Json)
|
152
|
-
.setRetryAttempts(this.config, requestConfig)
|
153
|
-
.setRetryDelayMs(this.config, requestConfig)
|
154
|
-
.setResponseValidation(this.config, requestConfig)
|
155
|
-
.addPathParam('purchaseId', purchaseId)
|
156
|
-
.build();
|
157
|
-
return this.client.call(request);
|
158
|
-
});
|
159
|
-
}
|
160
|
-
}
|
161
|
-
exports.PurchasesService = PurchasesService;
|
162
|
-
//# sourceMappingURL=purchases.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"purchases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e,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;iBAC3C,qBAAqB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;iBACjD,cAAc,CAAC,cAAc,EAAE,kBAAkB,CAAC;iBAClD,OAAO,CAAC,IAAI,CAAC;iBACb,KAAK,EAAE,CAAC;YACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAyB,OAAO,CAAC,CAAC;QAC3D,CAAC;KAAA;IAED;;;;OAIG;IACG,sBAAsB,CAC1B,UAAkB,EAClB,aAA6B;;YAE7B,MAAM,OAAO,GAAG,IAAI,gCAAc,EAAoC;iBACnE,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;iBACtB,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;iBACvB,SAAS,CAAC,KAAK,CAAC;iBAChB,OAAO,CAAC,qCAAqC,CAAC;iBAC9C,gBAAgB,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC;iBACzB,iBAAiB,CAAC,+EAAwC,CAAC;iBAC3D,qBAAqB,CAAC,mBAAW,CAAC,IAAI,CAAC;iBACvC,sBAAsB,CAAC,mBAAW,CAAC,IAAI,CAAC;iBACxC,gBAAgB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;iBAC5C,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;iBAC3C,qBAAqB,CAAC,IAAI,CAAC,MAAM,EAAE,aAAa,CAAC;iBACjD,YAAY,CAAC,YAAY,EAAE,UAAU,CAAC;iBACtC,KAAK,EAAE,CAAC;YACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAmC,OAAO,CAAC,CAAC;QACrE,CAAC;KAAA;CACF;AA7ID,4CA6IC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"request-params.d.ts","sourceRoot":"","sources":["../../../src/services/purchases/request-params.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"request-params.js","sourceRoot":"","sources":["../../../src/services/purchases/request-params.ts"],"names":[],"mappings":""}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
# CreatePurchaseOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :------- | :------------------------------- | :------- | :---------- |
|
7
|
-
| purchase | CreatePurchaseOkResponsePurchase | ❌ | |
|
8
|
-
| profile | CreatePurchaseOkResponseProfile | ❌ | |
|
9
|
-
|
10
|
-
# CreatePurchaseOkResponsePurchase
|
11
|
-
|
12
|
-
**Properties**
|
13
|
-
|
14
|
-
| Name | Type | Required | Description |
|
15
|
-
| :---------- | :----- | :------- | :------------------------------------------------------------------------- |
|
16
|
-
| id | string | ❌ | ID of the purchase |
|
17
|
-
| packageId | string | ❌ | ID of the package |
|
18
|
-
| startDate | string | ❌ | Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
19
|
-
| endDate | string | ❌ | End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
20
|
-
| createdDate | string | ❌ | Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
21
|
-
| startTime | number | ❌ | Epoch value representing the start time of the package's validity |
|
22
|
-
| endTime | number | ❌ | Epoch value representing the end time of the package's validity |
|
23
|
-
|
24
|
-
# CreatePurchaseOkResponseProfile
|
25
|
-
|
26
|
-
**Properties**
|
27
|
-
|
28
|
-
| Name | Type | Required | Description |
|
29
|
-
| :------------- | :----- | :------- | :---------------------------- |
|
30
|
-
| iccid | string | ❌ | ID of the eSIM |
|
31
|
-
| activationCode | string | ❌ | QR Code of the eSIM as base64 |
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# CreatePurchaseRequest
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :------------ | :----- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
7
|
-
| destination | string | ✅ | ISO representation of the package's destination |
|
8
|
-
| dataLimitInGb | number | ✅ | Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB |
|
9
|
-
| startDate | 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. |
|
10
|
-
| endDate | string | ✅ | End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date. |
|
11
|
-
| email | string | ❌ | Email address where the purchase confirmation email will be sent (including QR Code & activation steps) |
|
12
|
-
| referenceId | string | ❌ | An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes. |
|
13
|
-
| networkBrand | string | ❌ | Customize the network brand of the issued eSIM. This parameter is accessible to platforms with Diamond tier and requires an alphanumeric string of up to 15 characters |
|
14
|
-
| startTime | 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. |
|
15
|
-
| endTime | number | ❌ | Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time. |
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# EditPurchaseOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :----------- | :----- | :------- | :------------------------------------------------------------------------- |
|
7
|
-
| purchaseId | string | ❌ | ID of the purchase |
|
8
|
-
| newStartDate | string | ❌ | Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
9
|
-
| newEndDate | string | ❌ | End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
10
|
-
| newStartTime | number | ❌ | Epoch value representing the new start time of the package's validity |
|
11
|
-
| newEndTime | number | ❌ | Epoch value representing the new end time of the package's validity |
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# EditPurchaseRequest
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :--------- | :----- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
7
|
-
| purchaseId | string | ✅ | ID of the purchase |
|
8
|
-
| startDate | 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. |
|
9
|
-
| endDate | string | ✅ | End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date. |
|
10
|
-
| startTime | 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. |
|
11
|
-
| endTime | number | ❌ | Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time. |
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# GetEsimDeviceOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :----- | :----- | :------- | :---------- |
|
7
|
-
| device | Device | ❌ | |
|
8
|
-
|
9
|
-
# Device
|
10
|
-
|
11
|
-
**Properties**
|
12
|
-
|
13
|
-
| Name | Type | Required | Description |
|
14
|
-
| :------------ | :----- | :------- | :------------------------ |
|
15
|
-
| oem | string | ❌ | Name of the OEM |
|
16
|
-
| hardwareName | string | ❌ | Name of the Device |
|
17
|
-
| hardwareModel | string | ❌ | Model of the Device |
|
18
|
-
| eid | string | ❌ | Serial Number of the eSIM |
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# GetEsimHistoryOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :--- | :--------------------------- | :------- | :---------- |
|
7
|
-
| esim | GetEsimHistoryOkResponseEsim | ❌ | |
|
8
|
-
|
9
|
-
# GetEsimHistoryOkResponseEsim
|
10
|
-
|
11
|
-
**Properties**
|
12
|
-
|
13
|
-
| Name | Type | Required | Description |
|
14
|
-
| :------ | :-------- | :------- | :------------- |
|
15
|
-
| iccid | string | ❌ | ID of the eSIM |
|
16
|
-
| history | History[] | ❌ | |
|
17
|
-
|
18
|
-
# History
|
19
|
-
|
20
|
-
**Properties**
|
21
|
-
|
22
|
-
| Name | Type | Required | Description |
|
23
|
-
| :--------- | :----- | :------- | :---------------------------------------------------------------------------------------------------------------------------------- |
|
24
|
-
| status | string | ❌ | The status of the eSIM at a given time, possible values are 'RELEASED', 'DOWNLOADED', 'INSTALLED', 'ENABLED', 'DELETED', or 'ERROR' |
|
25
|
-
| statusDate | string | ❌ | The date when the eSIM status changed in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
26
|
-
| date | number | ❌ | Epoch value representing the date when the eSIM status changed |
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# GetEsimMacOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :--- | :----------------------- | :------- | :---------- |
|
7
|
-
| esim | GetEsimMacOkResponseEsim | ❌ | |
|
8
|
-
|
9
|
-
# GetEsimMacOkResponseEsim
|
10
|
-
|
11
|
-
**Properties**
|
12
|
-
|
13
|
-
| Name | Type | Required | Description |
|
14
|
-
| :------------------- | :----- | :------- | :------------------------- |
|
15
|
-
| iccid | string | ❌ | ID of the eSIM |
|
16
|
-
| smdpAddress | string | ❌ | SM-DP+ Address |
|
17
|
-
| manualActivationCode | string | ❌ | The manual activation code |
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# GetEsimOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :--- | :-------------------- | :------- | :---------- |
|
7
|
-
| esim | GetEsimOkResponseEsim | ❌ | |
|
8
|
-
|
9
|
-
# GetEsimOkResponseEsim
|
10
|
-
|
11
|
-
**Properties**
|
12
|
-
|
13
|
-
| Name | Type | Required | Description |
|
14
|
-
| :------------------- | :----- | :------- | :-------------------------------------------------------------------------------------------------------------- |
|
15
|
-
| iccid | string | ❌ | ID of the eSIM |
|
16
|
-
| smdpAddress | string | ❌ | SM-DP+ Address |
|
17
|
-
| manualActivationCode | string | ❌ | The manual activation code |
|
18
|
-
| status | string | ❌ | Status of the eSIM, possible values are 'RELEASED', 'DOWNLOADED', 'INSTALLED', 'ENABLED', 'DELETED', or 'ERROR' |
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# GetPurchaseConsumptionOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :------------------------ | :----- | :------- | :----------------------------------------------------------------------- |
|
7
|
-
| dataUsageRemainingInBytes | number | ❌ | Remaining balance of the package in bytes |
|
8
|
-
| status | string | ❌ | Status of the connectivity, possible values are 'ACTIVE' or 'NOT_ACTIVE' |
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# ListDestinationsOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :----------- | :------------- | :------- | :---------- |
|
7
|
-
| destinations | Destinations[] | ❌ | |
|
8
|
-
|
9
|
-
# Destinations
|
10
|
-
|
11
|
-
**Properties**
|
12
|
-
|
13
|
-
| Name | Type | Required | Description |
|
14
|
-
| :----------------- | :------- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
15
|
-
| name | string | ❌ | Name of the destination |
|
16
|
-
| destination | string | ❌ | ISO representation of the destination |
|
17
|
-
| supportedCountries | string[] | ❌ | This array indicates the geographical area covered by a specific destination. If the destination represents a single country, the array will include that country. However, if the destination represents a broader regional scope, the array will be populated with the names of the countries belonging to that region. |
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# ListPackagesOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :---------- | :--------- | :------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
7
|
-
| packages | Packages[] | ❌ | |
|
8
|
-
| afterCursor | string | ❌ | The cursor value representing the end of the current page of results. Use this cursor value as the "afterCursor" parameter in your next request to retrieve the subsequent page of results. It ensures that you continue fetching data from where you left off, facilitating smooth pagination |
|
9
|
-
|
10
|
-
# Packages
|
11
|
-
|
12
|
-
**Properties**
|
13
|
-
|
14
|
-
| Name | Type | Required | Description |
|
15
|
-
| :--------------- | :----- | :------- | :---------------------------------------------- |
|
16
|
-
| id | string | ❌ | ID of the package |
|
17
|
-
| destination | string | ❌ | ISO representation of the package's destination |
|
18
|
-
| dataLimitInBytes | number | ❌ | Size of the package in Bytes |
|
19
|
-
| minDays | number | ❌ | Min number of days for the package |
|
20
|
-
| maxDays | number | ❌ | Max number of days for the package |
|
21
|
-
| priceInCents | number | ❌ | Price of the package in cents |
|
@@ -1,46 +0,0 @@
|
|
1
|
-
# ListPurchasesOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :---------- | :---------- | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
7
|
-
| purchases | Purchases[] | ❌ | |
|
8
|
-
| afterCursor | string | ❌ | The cursor value representing the end of the current page of results. Use this cursor value as the "afterCursor" parameter in your next request to retrieve the subsequent page of results. It ensures that you continue fetching data from where you left off, facilitating smooth pagination. |
|
9
|
-
|
10
|
-
# Purchases
|
11
|
-
|
12
|
-
**Properties**
|
13
|
-
|
14
|
-
| Name | Type | Required | Description |
|
15
|
-
| :---------- | :------------ | :------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
16
|
-
| id | string | ❌ | ID of the purchase |
|
17
|
-
| startDate | string | ❌ | Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
18
|
-
| endDate | string | ❌ | End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
19
|
-
| createdDate | string | ❌ | Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
20
|
-
| startTime | number | ❌ | Epoch value representing the start time of the package's validity |
|
21
|
-
| endTime | number | ❌ | Epoch value representing the end time of the package's validity |
|
22
|
-
| createdAt | number | ❌ | Epoch value representing the date of creation of the purchase |
|
23
|
-
| package | Package\_ | ❌ | |
|
24
|
-
| esim | PurchasesEsim | ❌ | |
|
25
|
-
| source | 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'. |
|
26
|
-
| referenceId | 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. |
|
27
|
-
|
28
|
-
# Package\_
|
29
|
-
|
30
|
-
**Properties**
|
31
|
-
|
32
|
-
| Name | Type | Required | Description |
|
33
|
-
| :--------------- | :----- | :------- | :---------------------------------------------- |
|
34
|
-
| id | string | ❌ | ID of the package |
|
35
|
-
| dataLimitInBytes | number | ❌ | Size of the package in Bytes |
|
36
|
-
| destination | string | ❌ | ISO representation of the package's destination |
|
37
|
-
| destinationName | string | ❌ | Name of the package's destination |
|
38
|
-
| priceInCents | number | ❌ | Price of the package in cents |
|
39
|
-
|
40
|
-
# PurchasesEsim
|
41
|
-
|
42
|
-
**Properties**
|
43
|
-
|
44
|
-
| Name | Type | Required | Description |
|
45
|
-
| :---- | :----- | :------- | :------------- |
|
46
|
-
| iccid | string | ❌ | ID of the eSIM |
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# TopUpEsimOkResponse
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :------- | :-------------------------- | :------- | :---------- |
|
7
|
-
| purchase | TopUpEsimOkResponsePurchase | ❌ | |
|
8
|
-
| profile | TopUpEsimOkResponseProfile | ❌ | |
|
9
|
-
|
10
|
-
# TopUpEsimOkResponsePurchase
|
11
|
-
|
12
|
-
**Properties**
|
13
|
-
|
14
|
-
| Name | Type | Required | Description |
|
15
|
-
| :---------- | :----- | :------- | :------------------------------------------------------------------------- |
|
16
|
-
| id | string | ❌ | ID of the purchase |
|
17
|
-
| packageId | string | ❌ | ID of the package |
|
18
|
-
| startDate | string | ❌ | Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
19
|
-
| endDate | string | ❌ | End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
20
|
-
| createdDate | string | ❌ | Creation date of the purchase in the format 'yyyy-MM-ddThh:mm:ssZZ' |
|
21
|
-
| startTime | number | ❌ | Epoch value representing the start time of the package's validity |
|
22
|
-
| endTime | number | ❌ | Epoch value representing the end time of the package's validity |
|
23
|
-
|
24
|
-
# TopUpEsimOkResponseProfile
|
25
|
-
|
26
|
-
**Properties**
|
27
|
-
|
28
|
-
| Name | Type | Required | Description |
|
29
|
-
| :---- | :----- | :------- | :------------- |
|
30
|
-
| iccid | string | ❌ | ID of the eSIM |
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# TopUpEsimRequest
|
2
|
-
|
3
|
-
**Properties**
|
4
|
-
|
5
|
-
| Name | Type | Required | Description |
|
6
|
-
| :------------ | :----- | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
7
|
-
| iccid | string | ✅ | ID of the eSIM |
|
8
|
-
| dataLimitInGb | number | ✅ | Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB |
|
9
|
-
| startDate | 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. |
|
10
|
-
| endDate | string | ✅ | End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date. |
|
11
|
-
| email | string | ❌ | Email address where the purchase confirmation email will be sent (excluding QR Code & activation steps) |
|
12
|
-
| referenceId | string | ❌ | An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes. |
|
13
|
-
| startTime | 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. |
|
14
|
-
| endTime | number | ❌ | Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time. |
|
@@ -1,35 +0,0 @@
|
|
1
|
-
# DestinationsService
|
2
|
-
|
3
|
-
A list of all methods in the `DestinationsService` service. Click on the method name to view detailed information about that method.
|
4
|
-
|
5
|
-
| Methods | Description |
|
6
|
-
| :------------------------------------ | :---------------- |
|
7
|
-
| [listDestinations](#listdestinations) | List Destinations |
|
8
|
-
|
9
|
-
## listDestinations
|
10
|
-
|
11
|
-
List Destinations
|
12
|
-
|
13
|
-
- HTTP Method: `GET`
|
14
|
-
- Endpoint: `/destinations`
|
15
|
-
|
16
|
-
**Return Type**
|
17
|
-
|
18
|
-
`ListDestinationsOkResponse`
|
19
|
-
|
20
|
-
**Example Usage Code Snippet**
|
21
|
-
|
22
|
-
```typescript
|
23
|
-
import { Celitech } from 'celitech-sdk';
|
24
|
-
|
25
|
-
(async () => {
|
26
|
-
const celitech = new Celitech({
|
27
|
-
clientId: 'client-id',
|
28
|
-
clientSecret: 'client-secret',
|
29
|
-
});
|
30
|
-
|
31
|
-
const { data } = await celitech.destinations.listDestinations();
|
32
|
-
|
33
|
-
console.log(data);
|
34
|
-
})();
|
35
|
-
```
|