celitech-sdk 1.1.72 → 1.1.73

Sign up to get free protection for your applications and to get access to all the features.
Files changed (250) hide show
  1. package/.github/workflows/publish_npmjs.yml +1 -0
  2. package/.manifest.json +9 -9
  3. package/README.md +2 -2
  4. package/dist/http/client.d.ts +14 -0
  5. package/dist/http/client.d.ts.map +1 -0
  6. package/dist/http/client.js +36 -0
  7. package/dist/http/client.js.map +1 -0
  8. package/dist/http/environment.d.ts +4 -0
  9. package/dist/http/environment.d.ts.map +1 -0
  10. package/dist/http/environment.js +8 -0
  11. package/dist/http/environment.js.map +1 -0
  12. package/dist/http/error.d.ts +7 -0
  13. package/dist/http/error.d.ts.map +1 -0
  14. package/dist/http/error.js +12 -0
  15. package/dist/http/error.js.map +1 -0
  16. package/dist/http/handlers/handler-chain.d.ts +8 -0
  17. package/dist/http/handlers/handler-chain.d.ts.map +1 -0
  18. package/dist/http/handlers/handler-chain.js +34 -0
  19. package/dist/http/handlers/handler-chain.js.map +1 -0
  20. package/dist/http/handlers/hook-handler.d.ts +12 -0
  21. package/dist/http/handlers/hook-handler.d.ts.map +1 -0
  22. package/dist/http/handlers/hook-handler.js +49 -0
  23. package/dist/http/handlers/hook-handler.js.map +1 -0
  24. package/dist/http/handlers/request-validation-handler.d.ts +9 -0
  25. package/dist/http/handlers/request-validation-handler.d.ts.map +1 -0
  26. package/dist/http/handlers/request-validation-handler.js +78 -0
  27. package/dist/http/handlers/request-validation-handler.js.map +1 -0
  28. package/dist/http/handlers/response-validation-handler.d.ts +11 -0
  29. package/dist/http/handlers/response-validation-handler.d.ts.map +1 -0
  30. package/dist/http/handlers/response-validation-handler.js +89 -0
  31. package/dist/http/handlers/response-validation-handler.js.map +1 -0
  32. package/dist/http/handlers/retry-handler.d.ts +9 -0
  33. package/dist/http/handlers/retry-handler.d.ts.map +1 -0
  34. package/dist/http/handlers/retry-handler.js +47 -0
  35. package/dist/http/handlers/retry-handler.js.map +1 -0
  36. package/dist/http/handlers/terminating-handler.d.ts +8 -0
  37. package/dist/http/handlers/terminating-handler.d.ts.map +1 -0
  38. package/dist/http/handlers/terminating-handler.js +45 -0
  39. package/dist/http/handlers/terminating-handler.js.map +1 -0
  40. package/dist/http/hooks/custom-hook.d.ts +9 -0
  41. package/dist/http/hooks/custom-hook.d.ts.map +1 -0
  42. package/dist/http/hooks/custom-hook.js +84 -0
  43. package/dist/http/hooks/custom-hook.js.map +1 -0
  44. package/dist/http/hooks/hook.d.ts +31 -0
  45. package/dist/http/hooks/hook.d.ts.map +1 -0
  46. package/dist/http/hooks/hook.js +3 -0
  47. package/dist/http/hooks/hook.js.map +1 -0
  48. package/dist/http/index.d.ts +5 -0
  49. package/dist/http/index.d.ts.map +1 -0
  50. package/dist/http/index.js +21 -0
  51. package/dist/http/index.js.map +1 -0
  52. package/dist/http/serializer.d.ts +13 -0
  53. package/dist/http/serializer.d.ts.map +1 -0
  54. package/dist/http/serializer.js +150 -0
  55. package/dist/http/serializer.js.map +1 -0
  56. package/dist/http/transport/request-builder.d.ts +24 -0
  57. package/dist/http/transport/request-builder.d.ts.map +1 -0
  58. package/dist/http/transport/request-builder.js +130 -0
  59. package/dist/http/transport/request-builder.js.map +1 -0
  60. package/dist/http/transport/request.d.ts +53 -0
  61. package/dist/http/transport/request.d.ts.map +1 -0
  62. package/dist/http/transport/request.js +116 -0
  63. package/dist/http/transport/request.js.map +1 -0
  64. package/dist/http/types.d.ts +60 -0
  65. package/dist/http/types.d.ts.map +1 -0
  66. package/dist/http/types.js +16 -0
  67. package/dist/http/types.js.map +1 -0
  68. package/dist/index.d.ts +20 -0
  69. package/dist/index.d.ts.map +1 -0
  70. package/dist/index.js +52 -0
  71. package/dist/index.js.map +1 -0
  72. package/dist/services/base-service.d.ts +14 -0
  73. package/dist/services/base-service.d.ts.map +1 -0
  74. package/dist/services/base-service.js +27 -0
  75. package/dist/services/base-service.js.map +1 -0
  76. package/dist/services/destinations/destinations.d.ts +12 -0
  77. package/dist/services/destinations/destinations.d.ts.map +1 -0
  78. package/dist/services/destinations/destinations.js +43 -0
  79. package/dist/services/destinations/destinations.js.map +1 -0
  80. package/dist/services/destinations/index.d.ts +2 -0
  81. package/dist/services/destinations/index.d.ts.map +1 -0
  82. package/dist/services/destinations/index.js +18 -0
  83. package/dist/services/destinations/index.js.map +1 -0
  84. package/dist/services/destinations/models/destinations.d.ts +76 -0
  85. package/dist/services/destinations/models/destinations.d.ts.map +1 -0
  86. package/dist/services/destinations/models/destinations.js +49 -0
  87. package/dist/services/destinations/models/destinations.js.map +1 -0
  88. package/dist/services/destinations/models/index.d.ts +3 -0
  89. package/dist/services/destinations/models/index.d.ts.map +1 -0
  90. package/dist/services/destinations/models/index.js +19 -0
  91. package/dist/services/destinations/models/index.js.map +1 -0
  92. package/dist/services/destinations/models/list-destinations-ok-response.d.ts +140 -0
  93. package/dist/services/destinations/models/list-destinations-ok-response.d.ts.map +1 -0
  94. package/dist/services/destinations/models/list-destinations-ok-response.js +36 -0
  95. package/dist/services/destinations/models/list-destinations-ok-response.js.map +1 -0
  96. package/dist/services/e-sim/e-sim.d.ts +35 -0
  97. package/dist/services/e-sim/e-sim.d.ts.map +1 -0
  98. package/dist/services/e-sim/e-sim.js +120 -0
  99. package/dist/services/e-sim/e-sim.js.map +1 -0
  100. package/dist/services/e-sim/index.d.ts +2 -0
  101. package/dist/services/e-sim/index.d.ts.map +1 -0
  102. package/dist/services/e-sim/index.js +18 -0
  103. package/dist/services/e-sim/index.js.map +1 -0
  104. package/dist/services/e-sim/models/device.d.ts +90 -0
  105. package/dist/services/e-sim/models/device.d.ts.map +1 -0
  106. package/dist/services/e-sim/models/device.js +54 -0
  107. package/dist/services/e-sim/models/device.js.map +1 -0
  108. package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts +163 -0
  109. package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts.map +1 -0
  110. package/dist/services/e-sim/models/get-esim-device-ok-response.js +36 -0
  111. package/dist/services/e-sim/models/get-esim-device-ok-response.js.map +1 -0
  112. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts +154 -0
  113. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts.map +1 -0
  114. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js +40 -0
  115. package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js.map +1 -0
  116. package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts +249 -0
  117. package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts.map +1 -0
  118. package/dist/services/e-sim/models/get-esim-history-ok-response.js +36 -0
  119. package/dist/services/e-sim/models/get-esim-history-ok-response.js.map +1 -0
  120. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts +76 -0
  121. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts.map +1 -0
  122. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js +49 -0
  123. package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js.map +1 -0
  124. package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts +140 -0
  125. package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts.map +1 -0
  126. package/dist/services/e-sim/models/get-esim-mac-ok-response.js +36 -0
  127. package/dist/services/e-sim/models/get-esim-mac-ok-response.js.map +1 -0
  128. package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts +90 -0
  129. package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts.map +1 -0
  130. package/dist/services/e-sim/models/get-esim-ok-response-esim.js +54 -0
  131. package/dist/services/e-sim/models/get-esim-ok-response-esim.js.map +1 -0
  132. package/dist/services/e-sim/models/get-esim-ok-response.d.ts +163 -0
  133. package/dist/services/e-sim/models/get-esim-ok-response.d.ts.map +1 -0
  134. package/dist/services/e-sim/models/get-esim-ok-response.js +36 -0
  135. package/dist/services/e-sim/models/get-esim-ok-response.js.map +1 -0
  136. package/dist/services/e-sim/models/history.d.ts +76 -0
  137. package/dist/services/e-sim/models/history.d.ts.map +1 -0
  138. package/dist/services/e-sim/models/history.js +45 -0
  139. package/dist/services/e-sim/models/history.js.map +1 -0
  140. package/dist/services/e-sim/models/index.d.ts +10 -0
  141. package/dist/services/e-sim/models/index.d.ts.map +1 -0
  142. package/dist/services/e-sim/models/index.js +26 -0
  143. package/dist/services/e-sim/models/index.js.map +1 -0
  144. package/dist/services/e-sim/request-params.d.ts +4 -0
  145. package/dist/services/e-sim/request-params.d.ts.map +1 -0
  146. package/dist/services/e-sim/request-params.js +3 -0
  147. package/dist/services/e-sim/request-params.js.map +1 -0
  148. package/dist/services/packages/index.d.ts +2 -0
  149. package/dist/services/packages/index.d.ts.map +1 -0
  150. package/dist/services/packages/index.js +18 -0
  151. package/dist/services/packages/index.js.map +1 -0
  152. package/dist/services/packages/models/index.d.ts +3 -0
  153. package/dist/services/packages/models/index.d.ts.map +1 -0
  154. package/dist/services/packages/models/index.js +19 -0
  155. package/dist/services/packages/models/index.js.map +1 -0
  156. package/dist/services/packages/models/list-packages-ok-response.d.ts +223 -0
  157. package/dist/services/packages/models/list-packages-ok-response.d.ts.map +1 -0
  158. package/dist/services/packages/models/list-packages-ok-response.js +42 -0
  159. package/dist/services/packages/models/list-packages-ok-response.js.map +1 -0
  160. package/dist/services/packages/models/packages.d.ts +118 -0
  161. package/dist/services/packages/models/packages.d.ts.map +1 -0
  162. package/dist/services/packages/models/packages.js +64 -0
  163. package/dist/services/packages/models/packages.js.map +1 -0
  164. package/dist/services/packages/packages.d.ts +21 -0
  165. package/dist/services/packages/packages.d.ts.map +1 -0
  166. package/dist/services/packages/packages.js +59 -0
  167. package/dist/services/packages/packages.js.map +1 -0
  168. package/dist/services/packages/request-params.d.ts +11 -0
  169. package/dist/services/packages/request-params.d.ts.map +1 -0
  170. package/dist/services/packages/request-params.js +3 -0
  171. package/dist/services/packages/request-params.js.map +1 -0
  172. package/dist/services/purchases/index.d.ts +2 -0
  173. package/dist/services/purchases/index.d.ts.map +1 -0
  174. package/dist/services/purchases/index.js +18 -0
  175. package/dist/services/purchases/index.js.map +1 -0
  176. package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts +62 -0
  177. package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts.map +1 -0
  178. package/dist/services/purchases/models/create-purchase-ok-response-profile.js +39 -0
  179. package/dist/services/purchases/models/create-purchase-ok-response-profile.js.map +1 -0
  180. package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts +132 -0
  181. package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts.map +1 -0
  182. package/dist/services/purchases/models/create-purchase-ok-response-purchase.js +69 -0
  183. package/dist/services/purchases/models/create-purchase-ok-response-purchase.js.map +1 -0
  184. package/dist/services/purchases/models/create-purchase-ok-response.d.ts +315 -0
  185. package/dist/services/purchases/models/create-purchase-ok-response.d.ts.map +1 -0
  186. package/dist/services/purchases/models/create-purchase-ok-response.js +46 -0
  187. package/dist/services/purchases/models/create-purchase-ok-response.js.map +1 -0
  188. package/dist/services/purchases/models/create-purchase-request.d.ts +160 -0
  189. package/dist/services/purchases/models/create-purchase-request.d.ts.map +1 -0
  190. package/dist/services/purchases/models/create-purchase-request.js +79 -0
  191. package/dist/services/purchases/models/create-purchase-request.js.map +1 -0
  192. package/dist/services/purchases/models/edit-purchase-ok-response.d.ts +104 -0
  193. package/dist/services/purchases/models/edit-purchase-ok-response.d.ts.map +1 -0
  194. package/dist/services/purchases/models/edit-purchase-ok-response.js +59 -0
  195. package/dist/services/purchases/models/edit-purchase-ok-response.js.map +1 -0
  196. package/dist/services/purchases/models/edit-purchase-request.d.ts +104 -0
  197. package/dist/services/purchases/models/edit-purchase-request.d.ts.map +1 -0
  198. package/dist/services/purchases/models/edit-purchase-request.js +59 -0
  199. package/dist/services/purchases/models/edit-purchase-request.js.map +1 -0
  200. package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts +62 -0
  201. package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts.map +1 -0
  202. package/dist/services/purchases/models/get-purchase-consumption-ok-response.js +41 -0
  203. package/dist/services/purchases/models/get-purchase-consumption-ok-response.js.map +1 -0
  204. package/dist/services/purchases/models/index.d.ts +16 -0
  205. package/dist/services/purchases/models/index.d.ts.map +1 -0
  206. package/dist/services/purchases/models/index.js +32 -0
  207. package/dist/services/purchases/models/index.js.map +1 -0
  208. package/dist/services/purchases/models/list-purchases-ok-response.d.ts +622 -0
  209. package/dist/services/purchases/models/list-purchases-ok-response.d.ts.map +1 -0
  210. package/dist/services/purchases/models/list-purchases-ok-response.js +42 -0
  211. package/dist/services/purchases/models/list-purchases-ok-response.js.map +1 -0
  212. package/dist/services/purchases/models/package_.d.ts +104 -0
  213. package/dist/services/purchases/models/package_.d.ts.map +1 -0
  214. package/dist/services/purchases/models/package_.js +59 -0
  215. package/dist/services/purchases/models/package_.js.map +1 -0
  216. package/dist/services/purchases/models/purchases-esim.d.ts +48 -0
  217. package/dist/services/purchases/models/purchases-esim.d.ts.map +1 -0
  218. package/dist/services/purchases/models/purchases-esim.js +35 -0
  219. package/dist/services/purchases/models/purchases-esim.js.map +1 -0
  220. package/dist/services/purchases/models/purchases.d.ts +372 -0
  221. package/dist/services/purchases/models/purchases.d.ts.map +1 -0
  222. package/dist/services/purchases/models/purchases.js +91 -0
  223. package/dist/services/purchases/models/purchases.js.map +1 -0
  224. package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts +48 -0
  225. package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts.map +1 -0
  226. package/dist/services/purchases/models/top-up-esim-ok-response-profile.js +35 -0
  227. package/dist/services/purchases/models/top-up-esim-ok-response-profile.js.map +1 -0
  228. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts +132 -0
  229. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts.map +1 -0
  230. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js +69 -0
  231. package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js.map +1 -0
  232. package/dist/services/purchases/models/top-up-esim-ok-response.d.ts +292 -0
  233. package/dist/services/purchases/models/top-up-esim-ok-response.d.ts.map +1 -0
  234. package/dist/services/purchases/models/top-up-esim-ok-response.js +46 -0
  235. package/dist/services/purchases/models/top-up-esim-ok-response.js.map +1 -0
  236. package/dist/services/purchases/models/top-up-esim-request.d.ts +146 -0
  237. package/dist/services/purchases/models/top-up-esim-request.d.ts.map +1 -0
  238. package/dist/services/purchases/models/top-up-esim-request.js +74 -0
  239. package/dist/services/purchases/models/top-up-esim-request.js.map +1 -0
  240. package/dist/services/purchases/purchases.d.ts +49 -0
  241. package/dist/services/purchases/purchases.d.ts.map +1 -0
  242. package/dist/services/purchases/purchases.js +162 -0
  243. package/dist/services/purchases/purchases.js.map +1 -0
  244. package/dist/services/purchases/request-params.d.ts +11 -0
  245. package/dist/services/purchases/request-params.d.ts.map +1 -0
  246. package/dist/services/purchases/request-params.js +3 -0
  247. package/dist/services/purchases/request-params.js.map +1 -0
  248. package/documentation/services/PurchasesService.md +6 -6
  249. package/examples/package.json +1 -1
  250. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPurchaseOkResponseRequest = exports.createPurchaseOkResponseResponse = exports.createPurchaseOkResponse = void 0;
4
+ const zod_1 = require("zod");
5
+ const create_purchase_ok_response_purchase_1 = require("./create-purchase-ok-response-purchase");
6
+ const create_purchase_ok_response_profile_1 = require("./create-purchase-ok-response-profile");
7
+ /**
8
+ * The shape of the model inside the application code - what the users use
9
+ */
10
+ exports.createPurchaseOkResponse = zod_1.z.lazy(() => {
11
+ return zod_1.z.object({
12
+ purchase: create_purchase_ok_response_purchase_1.createPurchaseOkResponsePurchase.optional(),
13
+ profile: create_purchase_ok_response_profile_1.createPurchaseOkResponseProfile.optional(),
14
+ });
15
+ });
16
+ /**
17
+ * The shape of the model mapping from the api schema into the application shape.
18
+ * Is equal to application shape if all property names match the api schema
19
+ */
20
+ exports.createPurchaseOkResponseResponse = zod_1.z.lazy(() => {
21
+ return zod_1.z
22
+ .object({
23
+ purchase: create_purchase_ok_response_purchase_1.createPurchaseOkResponsePurchaseResponse.optional(),
24
+ profile: create_purchase_ok_response_profile_1.createPurchaseOkResponseProfileResponse.optional(),
25
+ })
26
+ .transform((data) => ({
27
+ purchase: data['purchase'],
28
+ profile: data['profile'],
29
+ }));
30
+ });
31
+ /**
32
+ * The shape of the model mapping from the application shape into the api schema.
33
+ * Is equal to application shape if all property names match the api schema
34
+ */
35
+ exports.createPurchaseOkResponseRequest = zod_1.z.lazy(() => {
36
+ return zod_1.z
37
+ .object({
38
+ purchase: create_purchase_ok_response_purchase_1.createPurchaseOkResponsePurchaseRequest.nullish(),
39
+ profile: create_purchase_ok_response_profile_1.createPurchaseOkResponseProfileRequest.nullish(),
40
+ })
41
+ .transform((data) => ({
42
+ purchase: data['purchase'],
43
+ profile: data['profile'],
44
+ }));
45
+ });
46
+ //# sourceMappingURL=create-purchase-ok-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-purchase-ok-response.js","sourceRoot":"","sources":["../../../../src/services/purchases/models/create-purchase-ok-response.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iGAIgD;AAChD,+FAI+C;AAE/C;;GAEG;AACU,QAAA,wBAAwB,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAClD,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,QAAQ,EAAE,uEAAgC,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,qEAA+B,CAAC,QAAQ,EAAE;KACpD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH;;;GAGG;AACU,QAAA,gCAAgC,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC1D,OAAO,OAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,+EAAwC,CAAC,QAAQ,EAAE;QAC7D,OAAO,EAAE,6EAAuC,CAAC,QAAQ,EAAE;KAC5D,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,+BAA+B,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACzD,OAAO,OAAC;SACL,MAAM,CAAC;QACN,QAAQ,EAAE,8EAAuC,CAAC,OAAO,EAAE;QAC3D,OAAO,EAAE,4EAAsC,CAAC,OAAO,EAAE;KAC1D,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
@@ -0,0 +1,160 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The shape of the model inside the application code - what the users use
4
+ */
5
+ export declare const createPurchaseRequest: z.ZodLazy<z.ZodObject<{
6
+ destination: z.ZodString;
7
+ dataLimitInGb: z.ZodNumber;
8
+ startDate: z.ZodString;
9
+ endDate: z.ZodString;
10
+ email: z.ZodOptional<z.ZodString>;
11
+ referenceId: z.ZodOptional<z.ZodString>;
12
+ networkBrand: z.ZodOptional<z.ZodString>;
13
+ startTime: z.ZodOptional<z.ZodNumber>;
14
+ endTime: z.ZodOptional<z.ZodNumber>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ destination: string;
17
+ startDate: string;
18
+ endDate: string;
19
+ dataLimitInGb: number;
20
+ email?: string | undefined;
21
+ referenceId?: string | undefined;
22
+ networkBrand?: string | undefined;
23
+ startTime?: number | undefined;
24
+ endTime?: number | undefined;
25
+ }, {
26
+ destination: string;
27
+ startDate: string;
28
+ endDate: string;
29
+ dataLimitInGb: number;
30
+ email?: string | undefined;
31
+ referenceId?: string | undefined;
32
+ networkBrand?: string | undefined;
33
+ startTime?: number | undefined;
34
+ endTime?: number | undefined;
35
+ }>>;
36
+ /**
37
+ *
38
+ * @typedef {CreatePurchaseRequest} createPurchaseRequest
39
+ * @property {string} - ISO representation of the package's destination
40
+ * @property {number} - Size of the package in GB. The available options are 1, 2, 3, 5, 8, 20GB
41
+ * @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
42
+ * @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
43
+ * @property {string} - Email address where the purchase confirmation email will be sent (including QR Code & activation steps)
44
+ * @property {string} - An identifier provided by the partner to link this purchase to their booking or transaction for analytics and debugging purposes.
45
+ * @property {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
46
+ * @property {number} - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months.
47
+ * @property {number} - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time.
48
+ */
49
+ export type CreatePurchaseRequest = z.infer<typeof createPurchaseRequest>;
50
+ /**
51
+ * The shape of the model mapping from the api schema into the application shape.
52
+ * Is equal to application shape if all property names match the api schema
53
+ */
54
+ export declare const createPurchaseRequestResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
55
+ destination: z.ZodString;
56
+ dataLimitInGB: z.ZodNumber;
57
+ startDate: z.ZodString;
58
+ endDate: z.ZodString;
59
+ email: z.ZodOptional<z.ZodString>;
60
+ referenceId: z.ZodOptional<z.ZodString>;
61
+ networkBrand: z.ZodOptional<z.ZodString>;
62
+ startTime: z.ZodOptional<z.ZodNumber>;
63
+ endTime: z.ZodOptional<z.ZodNumber>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ destination: string;
66
+ startDate: string;
67
+ endDate: string;
68
+ dataLimitInGB: number;
69
+ email?: string | undefined;
70
+ referenceId?: string | undefined;
71
+ networkBrand?: string | undefined;
72
+ startTime?: number | undefined;
73
+ endTime?: number | undefined;
74
+ }, {
75
+ destination: string;
76
+ startDate: string;
77
+ endDate: string;
78
+ dataLimitInGB: number;
79
+ email?: string | undefined;
80
+ referenceId?: string | undefined;
81
+ networkBrand?: string | undefined;
82
+ startTime?: number | undefined;
83
+ endTime?: number | undefined;
84
+ }>, {
85
+ destination: string;
86
+ dataLimitInGb: number;
87
+ startDate: string;
88
+ endDate: string;
89
+ email: string | undefined;
90
+ referenceId: string | undefined;
91
+ networkBrand: string | undefined;
92
+ startTime: number | undefined;
93
+ endTime: number | undefined;
94
+ }, {
95
+ destination: string;
96
+ startDate: string;
97
+ endDate: string;
98
+ dataLimitInGB: number;
99
+ email?: string | undefined;
100
+ referenceId?: string | undefined;
101
+ networkBrand?: string | undefined;
102
+ startTime?: number | undefined;
103
+ endTime?: number | undefined;
104
+ }>>;
105
+ /**
106
+ * The shape of the model mapping from the application shape into the api schema.
107
+ * Is equal to application shape if all property names match the api schema
108
+ */
109
+ export declare const createPurchaseRequestRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
110
+ destination: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
+ dataLimitInGb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
112
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
+ referenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ networkBrand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ startTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
118
+ endTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
119
+ }, "strip", z.ZodTypeAny, {
120
+ destination?: string | null | undefined;
121
+ dataLimitInGb?: number | null | undefined;
122
+ startDate?: string | null | undefined;
123
+ endDate?: string | null | undefined;
124
+ email?: string | null | undefined;
125
+ referenceId?: string | null | undefined;
126
+ networkBrand?: string | null | undefined;
127
+ startTime?: number | null | undefined;
128
+ endTime?: number | null | undefined;
129
+ }, {
130
+ destination?: string | null | undefined;
131
+ dataLimitInGb?: number | null | undefined;
132
+ startDate?: string | null | undefined;
133
+ endDate?: string | null | undefined;
134
+ email?: string | null | undefined;
135
+ referenceId?: string | null | undefined;
136
+ networkBrand?: string | null | undefined;
137
+ startTime?: number | null | undefined;
138
+ endTime?: number | null | undefined;
139
+ }>, {
140
+ destination: string | null | undefined;
141
+ dataLimitInGB: number | null | undefined;
142
+ startDate: string | null | undefined;
143
+ endDate: string | null | undefined;
144
+ email: string | null | undefined;
145
+ referenceId: string | null | undefined;
146
+ networkBrand: string | null | undefined;
147
+ startTime: number | null | undefined;
148
+ endTime: number | null | undefined;
149
+ }, {
150
+ destination?: string | null | undefined;
151
+ dataLimitInGb?: number | null | undefined;
152
+ startDate?: string | null | undefined;
153
+ endDate?: string | null | undefined;
154
+ email?: string | null | undefined;
155
+ referenceId?: string | null | undefined;
156
+ networkBrand?: string | null | undefined;
157
+ startTime?: number | null | undefined;
158
+ endTime?: number | null | undefined;
159
+ }>>;
160
+ //# sourceMappingURL=create-purchase-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-purchase-request.d.ts","sourceRoot":"","sources":["../../../../src/services/purchases/models/create-purchase-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYhC,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE1E;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwBxC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwBvC,CAAC"}
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPurchaseRequestRequest = exports.createPurchaseRequestResponse = exports.createPurchaseRequest = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * The shape of the model inside the application code - what the users use
7
+ */
8
+ exports.createPurchaseRequest = zod_1.z.lazy(() => {
9
+ return zod_1.z.object({
10
+ destination: zod_1.z.string(),
11
+ dataLimitInGb: zod_1.z.number(),
12
+ startDate: zod_1.z.string(),
13
+ endDate: zod_1.z.string(),
14
+ email: zod_1.z.string().optional(),
15
+ referenceId: zod_1.z.string().optional(),
16
+ networkBrand: zod_1.z.string().optional(),
17
+ startTime: zod_1.z.number().optional(),
18
+ endTime: zod_1.z.number().optional(),
19
+ });
20
+ });
21
+ /**
22
+ * The shape of the model mapping from the api schema into the application shape.
23
+ * Is equal to application shape if all property names match the api schema
24
+ */
25
+ exports.createPurchaseRequestResponse = zod_1.z.lazy(() => {
26
+ return zod_1.z
27
+ .object({
28
+ destination: zod_1.z.string(),
29
+ dataLimitInGB: zod_1.z.number(),
30
+ startDate: zod_1.z.string(),
31
+ endDate: zod_1.z.string(),
32
+ email: zod_1.z.string().optional(),
33
+ referenceId: zod_1.z.string().optional(),
34
+ networkBrand: zod_1.z.string().optional(),
35
+ startTime: zod_1.z.number().optional(),
36
+ endTime: zod_1.z.number().optional(),
37
+ })
38
+ .transform((data) => ({
39
+ destination: data['destination'],
40
+ dataLimitInGb: data['dataLimitInGB'],
41
+ startDate: data['startDate'],
42
+ endDate: data['endDate'],
43
+ email: data['email'],
44
+ referenceId: data['referenceId'],
45
+ networkBrand: data['networkBrand'],
46
+ startTime: data['startTime'],
47
+ endTime: data['endTime'],
48
+ }));
49
+ });
50
+ /**
51
+ * The shape of the model mapping from the application shape into the api schema.
52
+ * Is equal to application shape if all property names match the api schema
53
+ */
54
+ exports.createPurchaseRequestRequest = zod_1.z.lazy(() => {
55
+ return zod_1.z
56
+ .object({
57
+ destination: zod_1.z.string().nullish(),
58
+ dataLimitInGb: zod_1.z.number().nullish(),
59
+ startDate: zod_1.z.string().nullish(),
60
+ endDate: zod_1.z.string().nullish(),
61
+ email: zod_1.z.string().nullish(),
62
+ referenceId: zod_1.z.string().nullish(),
63
+ networkBrand: zod_1.z.string().nullish(),
64
+ startTime: zod_1.z.number().nullish(),
65
+ endTime: zod_1.z.number().nullish(),
66
+ })
67
+ .transform((data) => ({
68
+ destination: data['destination'],
69
+ dataLimitInGB: data['dataLimitInGb'],
70
+ startDate: data['startDate'],
71
+ endDate: data['endDate'],
72
+ email: data['email'],
73
+ referenceId: data['referenceId'],
74
+ networkBrand: data['networkBrand'],
75
+ startTime: data['startTime'],
76
+ endTime: data['endTime'],
77
+ }));
78
+ });
79
+ //# sourceMappingURL=create-purchase-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-purchase-request.js","sourceRoot":"","sources":["../../../../src/services/purchases/models/create-purchase-request.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC/C,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;QACvB,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE;QACzB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAClC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,OAAC,CAAC,MAA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,OAAO,OAAC;SACL,MAAM,CAAC;QACN,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QACjC,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QACnC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAC/B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QACjC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAClC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;QAC/B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;KAC9B,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;QACpC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;QACpB,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;QAChC,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
@@ -0,0 +1,104 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The shape of the model inside the application code - what the users use
4
+ */
5
+ export declare const editPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
6
+ purchaseId: z.ZodOptional<z.ZodString>;
7
+ newStartDate: z.ZodOptional<z.ZodString>;
8
+ newEndDate: z.ZodOptional<z.ZodString>;
9
+ newStartTime: z.ZodOptional<z.ZodNumber>;
10
+ newEndTime: z.ZodOptional<z.ZodNumber>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ purchaseId?: string | undefined;
13
+ newStartDate?: string | undefined;
14
+ newEndDate?: string | undefined;
15
+ newStartTime?: number | undefined;
16
+ newEndTime?: number | undefined;
17
+ }, {
18
+ purchaseId?: string | undefined;
19
+ newStartDate?: string | undefined;
20
+ newEndDate?: string | undefined;
21
+ newStartTime?: number | undefined;
22
+ newEndTime?: number | undefined;
23
+ }>>;
24
+ /**
25
+ *
26
+ * @typedef {EditPurchaseOkResponse} editPurchaseOkResponse
27
+ * @property {string} - ID of the purchase
28
+ * @property {string} - Start date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
29
+ * @property {string} - End date of the package's validity in the format 'yyyy-MM-ddThh:mm:ssZZ'
30
+ * @property {number} - Epoch value representing the new start time of the package's validity
31
+ * @property {number} - Epoch value representing the new end time of the package's validity
32
+ */
33
+ export type EditPurchaseOkResponse = z.infer<typeof editPurchaseOkResponse>;
34
+ /**
35
+ * The shape of the model mapping from the api schema into the application shape.
36
+ * Is equal to application shape if all property names match the api schema
37
+ */
38
+ export declare const editPurchaseOkResponseResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
39
+ purchaseId: z.ZodOptional<z.ZodString>;
40
+ newStartDate: z.ZodOptional<z.ZodString>;
41
+ newEndDate: z.ZodOptional<z.ZodString>;
42
+ newStartTime: z.ZodOptional<z.ZodNumber>;
43
+ newEndTime: z.ZodOptional<z.ZodNumber>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ purchaseId?: string | undefined;
46
+ newStartDate?: string | undefined;
47
+ newEndDate?: string | undefined;
48
+ newStartTime?: number | undefined;
49
+ newEndTime?: number | undefined;
50
+ }, {
51
+ purchaseId?: string | undefined;
52
+ newStartDate?: string | undefined;
53
+ newEndDate?: string | undefined;
54
+ newStartTime?: number | undefined;
55
+ newEndTime?: number | undefined;
56
+ }>, {
57
+ purchaseId: string | undefined;
58
+ newStartDate: string | undefined;
59
+ newEndDate: string | undefined;
60
+ newStartTime: number | undefined;
61
+ newEndTime: number | undefined;
62
+ }, {
63
+ purchaseId?: string | undefined;
64
+ newStartDate?: string | undefined;
65
+ newEndDate?: string | undefined;
66
+ newStartTime?: number | undefined;
67
+ newEndTime?: number | undefined;
68
+ }>>;
69
+ /**
70
+ * The shape of the model mapping from the application shape into the api schema.
71
+ * Is equal to application shape if all property names match the api schema
72
+ */
73
+ export declare const editPurchaseOkResponseRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
74
+ purchaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ newStartDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ newEndDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ newStartTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
+ newEndTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ purchaseId?: string | null | undefined;
81
+ newStartDate?: string | null | undefined;
82
+ newEndDate?: string | null | undefined;
83
+ newStartTime?: number | null | undefined;
84
+ newEndTime?: number | null | undefined;
85
+ }, {
86
+ purchaseId?: string | null | undefined;
87
+ newStartDate?: string | null | undefined;
88
+ newEndDate?: string | null | undefined;
89
+ newStartTime?: number | null | undefined;
90
+ newEndTime?: number | null | undefined;
91
+ }>, {
92
+ purchaseId: string | null | undefined;
93
+ newStartDate: string | null | undefined;
94
+ newEndDate: string | null | undefined;
95
+ newStartTime: number | null | undefined;
96
+ newEndTime: number | null | undefined;
97
+ }, {
98
+ purchaseId?: string | null | undefined;
99
+ newStartDate?: string | null | undefined;
100
+ newEndDate?: string | null | undefined;
101
+ newStartTime?: number | null | undefined;
102
+ newEndTime?: number | null | undefined;
103
+ }>>;
104
+ //# sourceMappingURL=edit-purchase-ok-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-purchase-ok-response.d.ts","sourceRoot":"","sources":["../../../../src/services/purchases/models/edit-purchase-ok-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;GAQjC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBzC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBxC,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.editPurchaseOkResponseRequest = exports.editPurchaseOkResponseResponse = exports.editPurchaseOkResponse = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * The shape of the model inside the application code - what the users use
7
+ */
8
+ exports.editPurchaseOkResponse = zod_1.z.lazy(() => {
9
+ return zod_1.z.object({
10
+ purchaseId: zod_1.z.string().optional(),
11
+ newStartDate: zod_1.z.string().optional(),
12
+ newEndDate: zod_1.z.string().optional(),
13
+ newStartTime: zod_1.z.number().optional(),
14
+ newEndTime: zod_1.z.number().optional(),
15
+ });
16
+ });
17
+ /**
18
+ * The shape of the model mapping from the api schema into the application shape.
19
+ * Is equal to application shape if all property names match the api schema
20
+ */
21
+ exports.editPurchaseOkResponseResponse = zod_1.z.lazy(() => {
22
+ return zod_1.z
23
+ .object({
24
+ purchaseId: zod_1.z.string().optional(),
25
+ newStartDate: zod_1.z.string().optional(),
26
+ newEndDate: zod_1.z.string().optional(),
27
+ newStartTime: zod_1.z.number().optional(),
28
+ newEndTime: zod_1.z.number().optional(),
29
+ })
30
+ .transform((data) => ({
31
+ purchaseId: data['purchaseId'],
32
+ newStartDate: data['newStartDate'],
33
+ newEndDate: data['newEndDate'],
34
+ newStartTime: data['newStartTime'],
35
+ newEndTime: data['newEndTime'],
36
+ }));
37
+ });
38
+ /**
39
+ * The shape of the model mapping from the application shape into the api schema.
40
+ * Is equal to application shape if all property names match the api schema
41
+ */
42
+ exports.editPurchaseOkResponseRequest = zod_1.z.lazy(() => {
43
+ return zod_1.z
44
+ .object({
45
+ purchaseId: zod_1.z.string().nullish(),
46
+ newStartDate: zod_1.z.string().nullish(),
47
+ newEndDate: zod_1.z.string().nullish(),
48
+ newStartTime: zod_1.z.number().nullish(),
49
+ newEndTime: zod_1.z.number().nullish(),
50
+ })
51
+ .transform((data) => ({
52
+ purchaseId: data['purchaseId'],
53
+ newStartDate: data['newStartDate'],
54
+ newEndDate: data['newEndDate'],
55
+ newStartTime: data['newStartTime'],
56
+ newEndTime: data['newEndTime'],
57
+ }));
58
+ });
59
+ //# sourceMappingURL=edit-purchase-ok-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-purchase-ok-response.js","sourceRoot":"","sources":["../../../../src/services/purchases/models/edit-purchase-ok-response.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,sBAAsB,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAChD,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACnC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC,CAA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AAC,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;QAC9B,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;QAClC,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
@@ -0,0 +1,104 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * The shape of the model inside the application code - what the users use
4
+ */
5
+ export declare const editPurchaseRequest: z.ZodLazy<z.ZodObject<{
6
+ purchaseId: z.ZodString;
7
+ startDate: z.ZodString;
8
+ endDate: z.ZodString;
9
+ startTime: z.ZodOptional<z.ZodNumber>;
10
+ endTime: z.ZodOptional<z.ZodNumber>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ startDate: string;
13
+ endDate: string;
14
+ purchaseId: string;
15
+ startTime?: number | undefined;
16
+ endTime?: number | undefined;
17
+ }, {
18
+ startDate: string;
19
+ endDate: string;
20
+ purchaseId: string;
21
+ startTime?: number | undefined;
22
+ endTime?: number | undefined;
23
+ }>>;
24
+ /**
25
+ *
26
+ * @typedef {EditPurchaseRequest} editPurchaseRequest
27
+ * @property {string} - ID of the purchase
28
+ * @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
29
+ * @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
30
+ * @property {number} - Epoch value representing the start time of the package's validity. This timestamp can be set to the current time or any time within the next 12 months.
31
+ * @property {number} - Epoch value representing the end time of the package's validity. End time can be maximum 90 days after Start time.
32
+ */
33
+ export type EditPurchaseRequest = z.infer<typeof editPurchaseRequest>;
34
+ /**
35
+ * The shape of the model mapping from the api schema into the application shape.
36
+ * Is equal to application shape if all property names match the api schema
37
+ */
38
+ export declare const editPurchaseRequestResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
39
+ purchaseId: z.ZodString;
40
+ startDate: z.ZodString;
41
+ endDate: z.ZodString;
42
+ startTime: z.ZodOptional<z.ZodNumber>;
43
+ endTime: z.ZodOptional<z.ZodNumber>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ startDate: string;
46
+ endDate: string;
47
+ purchaseId: string;
48
+ startTime?: number | undefined;
49
+ endTime?: number | undefined;
50
+ }, {
51
+ startDate: string;
52
+ endDate: string;
53
+ purchaseId: string;
54
+ startTime?: number | undefined;
55
+ endTime?: number | undefined;
56
+ }>, {
57
+ purchaseId: string;
58
+ startDate: string;
59
+ endDate: string;
60
+ startTime: number | undefined;
61
+ endTime: number | undefined;
62
+ }, {
63
+ startDate: string;
64
+ endDate: string;
65
+ purchaseId: string;
66
+ startTime?: number | undefined;
67
+ endTime?: number | undefined;
68
+ }>>;
69
+ /**
70
+ * The shape of the model mapping from the application shape into the api schema.
71
+ * Is equal to application shape if all property names match the api schema
72
+ */
73
+ export declare const editPurchaseRequestRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
74
+ purchaseId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ startDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
+ endDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
77
+ startTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
+ endTime: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ purchaseId?: string | null | undefined;
81
+ startDate?: string | null | undefined;
82
+ endDate?: string | null | undefined;
83
+ startTime?: number | null | undefined;
84
+ endTime?: number | null | undefined;
85
+ }, {
86
+ purchaseId?: string | null | undefined;
87
+ startDate?: string | null | undefined;
88
+ endDate?: string | null | undefined;
89
+ startTime?: number | null | undefined;
90
+ endTime?: number | null | undefined;
91
+ }>, {
92
+ purchaseId: string | null | undefined;
93
+ startDate: string | null | undefined;
94
+ endDate: string | null | undefined;
95
+ startTime: number | null | undefined;
96
+ endTime: number | null | undefined;
97
+ }, {
98
+ purchaseId?: string | null | undefined;
99
+ startDate?: string | null | undefined;
100
+ endDate?: string | null | undefined;
101
+ startTime?: number | null | undefined;
102
+ endTime?: number | null | undefined;
103
+ }>>;
104
+ //# sourceMappingURL=edit-purchase-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-purchase-request.d.ts","sourceRoot":"","sources":["../../../../src/services/purchases/models/edit-purchase-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;GAQ9B,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBtC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBrC,CAAC"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.editPurchaseRequestRequest = exports.editPurchaseRequestResponse = exports.editPurchaseRequest = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * The shape of the model inside the application code - what the users use
7
+ */
8
+ exports.editPurchaseRequest = zod_1.z.lazy(() => {
9
+ return zod_1.z.object({
10
+ purchaseId: zod_1.z.string(),
11
+ startDate: zod_1.z.string(),
12
+ endDate: zod_1.z.string(),
13
+ startTime: zod_1.z.number().optional(),
14
+ endTime: zod_1.z.number().optional(),
15
+ });
16
+ });
17
+ /**
18
+ * The shape of the model mapping from the api schema into the application shape.
19
+ * Is equal to application shape if all property names match the api schema
20
+ */
21
+ exports.editPurchaseRequestResponse = zod_1.z.lazy(() => {
22
+ return zod_1.z
23
+ .object({
24
+ purchaseId: zod_1.z.string(),
25
+ startDate: zod_1.z.string(),
26
+ endDate: zod_1.z.string(),
27
+ startTime: zod_1.z.number().optional(),
28
+ endTime: zod_1.z.number().optional(),
29
+ })
30
+ .transform((data) => ({
31
+ purchaseId: data['purchaseId'],
32
+ startDate: data['startDate'],
33
+ endDate: data['endDate'],
34
+ startTime: data['startTime'],
35
+ endTime: data['endTime'],
36
+ }));
37
+ });
38
+ /**
39
+ * The shape of the model mapping from the application shape into the api schema.
40
+ * Is equal to application shape if all property names match the api schema
41
+ */
42
+ exports.editPurchaseRequestRequest = zod_1.z.lazy(() => {
43
+ return zod_1.z
44
+ .object({
45
+ purchaseId: zod_1.z.string().nullish(),
46
+ startDate: zod_1.z.string().nullish(),
47
+ endDate: zod_1.z.string().nullish(),
48
+ startTime: zod_1.z.number().nullish(),
49
+ endTime: zod_1.z.number().nullish(),
50
+ })
51
+ .transform((data) => ({
52
+ purchaseId: data['purchaseId'],
53
+ startDate: data['startDate'],
54
+ endDate: data['endDate'],
55
+ startTime: data['startTime'],
56
+ endTime: data['endTime'],
57
+ }));
58
+ });
59
+ //# sourceMappingURL=edit-purchase-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-purchase-request.js","sourceRoot":"","sources":["../../../../src/services/purchases/models/edit-purchase-request.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC7C,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;QACtB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;QACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;QACnB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAChC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC,C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