celitech-sdk 1.1.85 → 1.1.87

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. package/README.md +24 -18
  2. package/dist/index.d.ts +1503 -12
  3. package/dist/index.js +2152 -76
  4. package/dist/index.mjs +2114 -0
  5. package/package.json +25 -6
  6. package/.devcontainer/devcontainer.json +0 -24
  7. package/.github/workflows/publish_npmjs.yml +0 -32
  8. package/.manifest.json +0 -256
  9. package/dist/http/client.d.ts +0 -14
  10. package/dist/http/client.d.ts.map +0 -1
  11. package/dist/http/client.js +0 -36
  12. package/dist/http/client.js.map +0 -1
  13. package/dist/http/environment.d.ts +0 -4
  14. package/dist/http/environment.d.ts.map +0 -1
  15. package/dist/http/environment.js +0 -8
  16. package/dist/http/environment.js.map +0 -1
  17. package/dist/http/error.d.ts +0 -7
  18. package/dist/http/error.d.ts.map +0 -1
  19. package/dist/http/error.js +0 -12
  20. package/dist/http/error.js.map +0 -1
  21. package/dist/http/handlers/handler-chain.d.ts +0 -8
  22. package/dist/http/handlers/handler-chain.d.ts.map +0 -1
  23. package/dist/http/handlers/handler-chain.js +0 -34
  24. package/dist/http/handlers/handler-chain.js.map +0 -1
  25. package/dist/http/handlers/hook-handler.d.ts +0 -12
  26. package/dist/http/handlers/hook-handler.d.ts.map +0 -1
  27. package/dist/http/handlers/hook-handler.js +0 -49
  28. package/dist/http/handlers/hook-handler.js.map +0 -1
  29. package/dist/http/handlers/request-validation-handler.d.ts +0 -9
  30. package/dist/http/handlers/request-validation-handler.d.ts.map +0 -1
  31. package/dist/http/handlers/request-validation-handler.js +0 -78
  32. package/dist/http/handlers/request-validation-handler.js.map +0 -1
  33. package/dist/http/handlers/response-validation-handler.d.ts +0 -11
  34. package/dist/http/handlers/response-validation-handler.d.ts.map +0 -1
  35. package/dist/http/handlers/response-validation-handler.js +0 -89
  36. package/dist/http/handlers/response-validation-handler.js.map +0 -1
  37. package/dist/http/handlers/retry-handler.d.ts +0 -9
  38. package/dist/http/handlers/retry-handler.d.ts.map +0 -1
  39. package/dist/http/handlers/retry-handler.js +0 -47
  40. package/dist/http/handlers/retry-handler.js.map +0 -1
  41. package/dist/http/handlers/terminating-handler.d.ts +0 -8
  42. package/dist/http/handlers/terminating-handler.d.ts.map +0 -1
  43. package/dist/http/handlers/terminating-handler.js +0 -45
  44. package/dist/http/handlers/terminating-handler.js.map +0 -1
  45. package/dist/http/hooks/custom-hook.d.ts +0 -8
  46. package/dist/http/hooks/custom-hook.d.ts.map +0 -1
  47. package/dist/http/hooks/custom-hook.js +0 -37
  48. package/dist/http/hooks/custom-hook.js.map +0 -1
  49. package/dist/http/hooks/hook.d.ts +0 -31
  50. package/dist/http/hooks/hook.d.ts.map +0 -1
  51. package/dist/http/hooks/hook.js +0 -3
  52. package/dist/http/hooks/hook.js.map +0 -1
  53. package/dist/http/serializer.d.ts +0 -13
  54. package/dist/http/serializer.d.ts.map +0 -1
  55. package/dist/http/serializer.js +0 -150
  56. package/dist/http/serializer.js.map +0 -1
  57. package/dist/http/transport/request-builder.d.ts +0 -24
  58. package/dist/http/transport/request-builder.d.ts.map +0 -1
  59. package/dist/http/transport/request-builder.js +0 -130
  60. package/dist/http/transport/request-builder.js.map +0 -1
  61. package/dist/http/transport/request.d.ts +0 -53
  62. package/dist/http/transport/request.d.ts.map +0 -1
  63. package/dist/http/transport/request.js +0 -116
  64. package/dist/http/transport/request.js.map +0 -1
  65. package/dist/http/types.d.ts +0 -60
  66. package/dist/http/types.d.ts.map +0 -1
  67. package/dist/http/types.js +0 -16
  68. package/dist/http/types.js.map +0 -1
  69. package/dist/index.d.ts.map +0 -1
  70. package/dist/index.js.map +0 -1
  71. package/dist/services/base-service.d.ts +0 -14
  72. package/dist/services/base-service.d.ts.map +0 -1
  73. package/dist/services/base-service.js +0 -27
  74. package/dist/services/base-service.js.map +0 -1
  75. package/dist/services/destinations/destinations.d.ts +0 -11
  76. package/dist/services/destinations/destinations.d.ts.map +0 -1
  77. package/dist/services/destinations/destinations.js +0 -43
  78. package/dist/services/destinations/destinations.js.map +0 -1
  79. package/dist/services/destinations/index.d.ts +0 -3
  80. package/dist/services/destinations/index.d.ts.map +0 -1
  81. package/dist/services/destinations/index.js +0 -21
  82. package/dist/services/destinations/index.js.map +0 -1
  83. package/dist/services/destinations/models/destinations.d.ts +0 -76
  84. package/dist/services/destinations/models/destinations.d.ts.map +0 -1
  85. package/dist/services/destinations/models/destinations.js +0 -49
  86. package/dist/services/destinations/models/destinations.js.map +0 -1
  87. package/dist/services/destinations/models/index.d.ts +0 -3
  88. package/dist/services/destinations/models/index.d.ts.map +0 -1
  89. package/dist/services/destinations/models/index.js +0 -3
  90. package/dist/services/destinations/models/index.js.map +0 -1
  91. package/dist/services/destinations/models/list-destinations-ok-response.d.ts +0 -140
  92. package/dist/services/destinations/models/list-destinations-ok-response.d.ts.map +0 -1
  93. package/dist/services/destinations/models/list-destinations-ok-response.js +0 -36
  94. package/dist/services/destinations/models/list-destinations-ok-response.js.map +0 -1
  95. package/dist/services/e-sim/e-sim.d.ts +0 -34
  96. package/dist/services/e-sim/e-sim.d.ts.map +0 -1
  97. package/dist/services/e-sim/e-sim.js +0 -120
  98. package/dist/services/e-sim/e-sim.js.map +0 -1
  99. package/dist/services/e-sim/index.d.ts +0 -3
  100. package/dist/services/e-sim/index.d.ts.map +0 -1
  101. package/dist/services/e-sim/index.js +0 -21
  102. package/dist/services/e-sim/index.js.map +0 -1
  103. package/dist/services/e-sim/models/device.d.ts +0 -90
  104. package/dist/services/e-sim/models/device.d.ts.map +0 -1
  105. package/dist/services/e-sim/models/device.js +0 -54
  106. package/dist/services/e-sim/models/device.js.map +0 -1
  107. package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts +0 -163
  108. package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts.map +0 -1
  109. package/dist/services/e-sim/models/get-esim-device-ok-response.js +0 -36
  110. package/dist/services/e-sim/models/get-esim-device-ok-response.js.map +0 -1
  111. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts +0 -154
  112. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts.map +0 -1
  113. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js +0 -40
  114. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js.map +0 -1
  115. package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts +0 -249
  116. package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts.map +0 -1
  117. package/dist/services/e-sim/models/get-esim-history-ok-response.js +0 -36
  118. package/dist/services/e-sim/models/get-esim-history-ok-response.js.map +0 -1
  119. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts +0 -76
  120. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts.map +0 -1
  121. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js +0 -49
  122. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js.map +0 -1
  123. package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts +0 -140
  124. package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts.map +0 -1
  125. package/dist/services/e-sim/models/get-esim-mac-ok-response.js +0 -36
  126. package/dist/services/e-sim/models/get-esim-mac-ok-response.js.map +0 -1
  127. package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts +0 -90
  128. package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts.map +0 -1
  129. package/dist/services/e-sim/models/get-esim-ok-response-esim.js +0 -54
  130. package/dist/services/e-sim/models/get-esim-ok-response-esim.js.map +0 -1
  131. package/dist/services/e-sim/models/get-esim-ok-response.d.ts +0 -163
  132. package/dist/services/e-sim/models/get-esim-ok-response.d.ts.map +0 -1
  133. package/dist/services/e-sim/models/get-esim-ok-response.js +0 -36
  134. package/dist/services/e-sim/models/get-esim-ok-response.js.map +0 -1
  135. package/dist/services/e-sim/models/history.d.ts +0 -76
  136. package/dist/services/e-sim/models/history.d.ts.map +0 -1
  137. package/dist/services/e-sim/models/history.js +0 -45
  138. package/dist/services/e-sim/models/history.js.map +0 -1
  139. package/dist/services/e-sim/models/index.d.ts +0 -10
  140. package/dist/services/e-sim/models/index.d.ts.map +0 -1
  141. package/dist/services/e-sim/models/index.js +0 -3
  142. package/dist/services/e-sim/models/index.js.map +0 -1
  143. package/dist/services/e-sim/request-params.d.ts +0 -4
  144. package/dist/services/e-sim/request-params.d.ts.map +0 -1
  145. package/dist/services/e-sim/request-params.js +0 -3
  146. package/dist/services/e-sim/request-params.js.map +0 -1
  147. package/dist/services/packages/index.d.ts +0 -3
  148. package/dist/services/packages/index.d.ts.map +0 -1
  149. package/dist/services/packages/index.js +0 -21
  150. package/dist/services/packages/index.js.map +0 -1
  151. package/dist/services/packages/models/index.d.ts +0 -3
  152. package/dist/services/packages/models/index.d.ts.map +0 -1
  153. package/dist/services/packages/models/index.js +0 -3
  154. package/dist/services/packages/models/index.js.map +0 -1
  155. package/dist/services/packages/models/list-packages-ok-response.d.ts +0 -223
  156. package/dist/services/packages/models/list-packages-ok-response.d.ts.map +0 -1
  157. package/dist/services/packages/models/list-packages-ok-response.js +0 -42
  158. package/dist/services/packages/models/list-packages-ok-response.js.map +0 -1
  159. package/dist/services/packages/models/packages.d.ts +0 -118
  160. package/dist/services/packages/models/packages.d.ts.map +0 -1
  161. package/dist/services/packages/models/packages.js +0 -64
  162. package/dist/services/packages/models/packages.js.map +0 -1
  163. package/dist/services/packages/packages.d.ts +0 -20
  164. package/dist/services/packages/packages.d.ts.map +0 -1
  165. package/dist/services/packages/packages.js +0 -59
  166. package/dist/services/packages/packages.js.map +0 -1
  167. package/dist/services/packages/request-params.d.ts +0 -11
  168. package/dist/services/packages/request-params.d.ts.map +0 -1
  169. package/dist/services/packages/request-params.js +0 -3
  170. package/dist/services/packages/request-params.js.map +0 -1
  171. package/dist/services/purchases/index.d.ts +0 -3
  172. package/dist/services/purchases/index.d.ts.map +0 -1
  173. package/dist/services/purchases/index.js +0 -21
  174. package/dist/services/purchases/index.js.map +0 -1
  175. package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts +0 -62
  176. package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts.map +0 -1
  177. package/dist/services/purchases/models/create-purchase-ok-response-profile.js +0 -39
  178. package/dist/services/purchases/models/create-purchase-ok-response-profile.js.map +0 -1
  179. package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts +0 -132
  180. package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts.map +0 -1
  181. package/dist/services/purchases/models/create-purchase-ok-response-purchase.js +0 -69
  182. package/dist/services/purchases/models/create-purchase-ok-response-purchase.js.map +0 -1
  183. package/dist/services/purchases/models/create-purchase-ok-response.d.ts +0 -315
  184. package/dist/services/purchases/models/create-purchase-ok-response.d.ts.map +0 -1
  185. package/dist/services/purchases/models/create-purchase-ok-response.js +0 -46
  186. package/dist/services/purchases/models/create-purchase-ok-response.js.map +0 -1
  187. package/dist/services/purchases/models/create-purchase-request.d.ts +0 -160
  188. package/dist/services/purchases/models/create-purchase-request.d.ts.map +0 -1
  189. package/dist/services/purchases/models/create-purchase-request.js +0 -79
  190. package/dist/services/purchases/models/create-purchase-request.js.map +0 -1
  191. package/dist/services/purchases/models/edit-purchase-ok-response.d.ts +0 -104
  192. package/dist/services/purchases/models/edit-purchase-ok-response.d.ts.map +0 -1
  193. package/dist/services/purchases/models/edit-purchase-ok-response.js +0 -59
  194. package/dist/services/purchases/models/edit-purchase-ok-response.js.map +0 -1
  195. package/dist/services/purchases/models/edit-purchase-request.d.ts +0 -104
  196. package/dist/services/purchases/models/edit-purchase-request.d.ts.map +0 -1
  197. package/dist/services/purchases/models/edit-purchase-request.js +0 -59
  198. package/dist/services/purchases/models/edit-purchase-request.js.map +0 -1
  199. package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts +0 -62
  200. package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts.map +0 -1
  201. package/dist/services/purchases/models/get-purchase-consumption-ok-response.js +0 -41
  202. package/dist/services/purchases/models/get-purchase-consumption-ok-response.js.map +0 -1
  203. package/dist/services/purchases/models/index.d.ts +0 -16
  204. package/dist/services/purchases/models/index.d.ts.map +0 -1
  205. package/dist/services/purchases/models/index.js +0 -3
  206. package/dist/services/purchases/models/index.js.map +0 -1
  207. package/dist/services/purchases/models/list-purchases-ok-response.d.ts +0 -622
  208. package/dist/services/purchases/models/list-purchases-ok-response.d.ts.map +0 -1
  209. package/dist/services/purchases/models/list-purchases-ok-response.js +0 -42
  210. package/dist/services/purchases/models/list-purchases-ok-response.js.map +0 -1
  211. package/dist/services/purchases/models/package_.d.ts +0 -104
  212. package/dist/services/purchases/models/package_.d.ts.map +0 -1
  213. package/dist/services/purchases/models/package_.js +0 -59
  214. package/dist/services/purchases/models/package_.js.map +0 -1
  215. package/dist/services/purchases/models/purchases-esim.d.ts +0 -48
  216. package/dist/services/purchases/models/purchases-esim.d.ts.map +0 -1
  217. package/dist/services/purchases/models/purchases-esim.js +0 -35
  218. package/dist/services/purchases/models/purchases-esim.js.map +0 -1
  219. package/dist/services/purchases/models/purchases.d.ts +0 -372
  220. package/dist/services/purchases/models/purchases.d.ts.map +0 -1
  221. package/dist/services/purchases/models/purchases.js +0 -91
  222. package/dist/services/purchases/models/purchases.js.map +0 -1
  223. package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts +0 -48
  224. package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts.map +0 -1
  225. package/dist/services/purchases/models/top-up-esim-ok-response-profile.js +0 -35
  226. package/dist/services/purchases/models/top-up-esim-ok-response-profile.js.map +0 -1
  227. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts +0 -132
  228. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts.map +0 -1
  229. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js +0 -69
  230. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js.map +0 -1
  231. package/dist/services/purchases/models/top-up-esim-ok-response.d.ts +0 -292
  232. package/dist/services/purchases/models/top-up-esim-ok-response.d.ts.map +0 -1
  233. package/dist/services/purchases/models/top-up-esim-ok-response.js +0 -46
  234. package/dist/services/purchases/models/top-up-esim-ok-response.js.map +0 -1
  235. package/dist/services/purchases/models/top-up-esim-request.d.ts +0 -146
  236. package/dist/services/purchases/models/top-up-esim-request.d.ts.map +0 -1
  237. package/dist/services/purchases/models/top-up-esim-request.js +0 -74
  238. package/dist/services/purchases/models/top-up-esim-request.js.map +0 -1
  239. package/dist/services/purchases/purchases.d.ts +0 -48
  240. package/dist/services/purchases/purchases.d.ts.map +0 -1
  241. package/dist/services/purchases/purchases.js +0 -162
  242. package/dist/services/purchases/purchases.js.map +0 -1
  243. package/dist/services/purchases/request-params.d.ts +0 -11
  244. package/dist/services/purchases/request-params.d.ts.map +0 -1
  245. package/dist/services/purchases/request-params.js +0 -3
  246. package/dist/services/purchases/request-params.js.map +0 -1
  247. package/documentation/models/CreatePurchaseOkResponse.md +0 -31
  248. package/documentation/models/CreatePurchaseRequest.md +0 -15
  249. package/documentation/models/EditPurchaseOkResponse.md +0 -11
  250. package/documentation/models/EditPurchaseRequest.md +0 -11
  251. package/documentation/models/GetEsimDeviceOkResponse.md +0 -18
  252. package/documentation/models/GetEsimHistoryOkResponse.md +0 -26
  253. package/documentation/models/GetEsimMacOkResponse.md +0 -17
  254. package/documentation/models/GetEsimOkResponse.md +0 -18
  255. package/documentation/models/GetPurchaseConsumptionOkResponse.md +0 -8
  256. package/documentation/models/ListDestinationsOkResponse.md +0 -17
  257. package/documentation/models/ListPackagesOkResponse.md +0 -21
  258. package/documentation/models/ListPurchasesOkResponse.md +0 -46
  259. package/documentation/models/TopUpEsimOkResponse.md +0 -30
  260. package/documentation/models/TopUpEsimRequest.md +0 -14
  261. package/documentation/services/DestinationsService.md +0 -35
  262. package/documentation/services/ESimService.md +0 -148
  263. package/documentation/services/PackagesService.md +0 -48
  264. package/documentation/services/PurchasesService.md +0 -222
  265. package/documentation/snippets/destinations-get.md +0 -14
  266. package/documentation/snippets/esim-get.md +0 -16
  267. package/documentation/snippets/esim-{iccid}-device-get.md +0 -14
  268. package/documentation/snippets/esim-{iccid}-history-get.md +0 -14
  269. package/documentation/snippets/esim-{iccid}-mac-get.md +0 -14
  270. package/documentation/snippets/packages-get.md +0 -14
  271. package/documentation/snippets/purchases-edit-post.md +0 -23
  272. package/documentation/snippets/purchases-get.md +0 -14
  273. package/documentation/snippets/purchases-post.md +0 -27
  274. package/documentation/snippets/purchases-topup-post.md +0 -26
  275. package/documentation/snippets/purchases-{purchaseId}-consumption-get.md +0 -14
  276. package/examples/README.md +0 -27
  277. package/examples/package.json +0 -18
  278. package/examples/src/index.ts +0 -12
  279. package/examples/tsconfig.json +0 -22
  280. package/src/http/client.ts +0 -46
  281. package/src/http/environment.ts +0 -3
  282. package/src/http/error.ts +0 -12
  283. package/src/http/handlers/handler-chain.ts +0 -22
  284. package/src/http/handlers/hook-handler.ts +0 -47
  285. package/src/http/handlers/request-validation-handler.ts +0 -72
  286. package/src/http/handlers/response-validation-handler.ts +0 -106
  287. package/src/http/handlers/retry-handler.ts +0 -40
  288. package/src/http/handlers/terminating-handler.ts +0 -38
  289. package/src/http/hooks/custom-hook.ts +0 -32
  290. package/src/http/hooks/hook.ts +0 -40
  291. package/src/http/serializer.ts +0 -183
  292. package/src/http/transport/request-builder.ts +0 -145
  293. package/src/http/transport/request.ts +0 -178
  294. package/src/http/types.ts +0 -70
  295. package/src/index.ts +0 -73
  296. package/src/services/base-service.ts +0 -29
  297. package/src/services/destinations/destinations.ts +0 -28
  298. package/src/services/destinations/index.ts +0 -2
  299. package/src/services/destinations/models/destinations.ts +0 -57
  300. package/src/services/destinations/models/index.ts +0 -2
  301. package/src/services/destinations/models/list-destinations-ok-response.ts +0 -42
  302. package/src/services/e-sim/e-sim.ts +0 -103
  303. package/src/services/e-sim/index.ts +0 -2
  304. package/src/services/e-sim/models/device.ts +0 -63
  305. package/src/services/e-sim/models/get-esim-device-ok-response.ts +0 -42
  306. package/src/services/e-sim/models/get-esim-history-ok-response-esim.ts +0 -47
  307. package/src/services/e-sim/models/get-esim-history-ok-response.ts +0 -46
  308. package/src/services/e-sim/models/get-esim-mac-ok-response-esim.ts +0 -57
  309. package/src/services/e-sim/models/get-esim-mac-ok-response.ts +0 -46
  310. package/src/services/e-sim/models/get-esim-ok-response-esim.ts +0 -63
  311. package/src/services/e-sim/models/get-esim-ok-response.ts +0 -46
  312. package/src/services/e-sim/models/history.ts +0 -53
  313. package/src/services/e-sim/models/index.ts +0 -9
  314. package/src/services/e-sim/request-params.ts +0 -3
  315. package/src/services/packages/index.ts +0 -2
  316. package/src/services/packages/models/index.ts +0 -2
  317. package/src/services/packages/models/list-packages-ok-response.ts +0 -49
  318. package/src/services/packages/models/packages.ts +0 -75
  319. package/src/services/packages/packages.ts +0 -48
  320. package/src/services/packages/request-params.ts +0 -10
  321. package/src/services/purchases/index.ts +0 -2
  322. package/src/services/purchases/models/create-purchase-ok-response-profile.ts +0 -46
  323. package/src/services/purchases/models/create-purchase-ok-response-purchase.ts +0 -81
  324. package/src/services/purchases/models/create-purchase-ok-response.ts +0 -61
  325. package/src/services/purchases/models/create-purchase-request.ts +0 -93
  326. package/src/services/purchases/models/edit-purchase-ok-response.ts +0 -69
  327. package/src/services/purchases/models/edit-purchase-request.ts +0 -69
  328. package/src/services/purchases/models/get-purchase-consumption-ok-response.ts +0 -48
  329. package/src/services/purchases/models/index.ts +0 -15
  330. package/src/services/purchases/models/list-purchases-ok-response.ts +0 -49
  331. package/src/services/purchases/models/package_.ts +0 -69
  332. package/src/services/purchases/models/purchases-esim.ts +0 -41
  333. package/src/services/purchases/models/purchases.ts +0 -107
  334. package/src/services/purchases/models/top-up-esim-ok-response-profile.ts +0 -41
  335. package/src/services/purchases/models/top-up-esim-ok-response-purchase.ts +0 -81
  336. package/src/services/purchases/models/top-up-esim-ok-response.ts +0 -61
  337. package/src/services/purchases/models/top-up-esim-request.ts +0 -87
  338. package/src/services/purchases/purchases.ts +0 -159
  339. package/src/services/purchases/request-params.ts +0 -10
  340. 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.js","sourceRoot":"","sources":["../../../src/services/purchases/purchases.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACxB,kDAA8C;AAC9C,4CAA4E;AAC5E,0EAAsE;AACtE,oFAA+G;AAE/G,8EAAuG;AACv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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,11 +0,0 @@
1
- export interface ListPurchasesParams {
2
- iccid?: string;
3
- afterDate?: string;
4
- beforeDate?: string;
5
- referenceId?: string;
6
- afterCursor?: string;
7
- limit?: number;
8
- after?: number;
9
- before?: number;
10
- }
11
- //# sourceMappingURL=request-params.d.ts.map
@@ -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,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=request-params.js.map
@@ -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
- ```