celitech-sdk 1.1.71 → 1.1.73
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/workflows/publish_npmjs.yml +1 -0
- package/.manifest.json +12 -12
- package/README.md +2 -2
- package/dist/http/client.d.ts +14 -0
- package/dist/http/client.d.ts.map +1 -0
- package/dist/http/client.js +36 -0
- package/dist/http/client.js.map +1 -0
- package/dist/http/environment.d.ts +4 -0
- package/dist/http/environment.d.ts.map +1 -0
- package/dist/http/environment.js +8 -0
- package/dist/http/environment.js.map +1 -0
- package/dist/http/error.d.ts +7 -0
- package/dist/http/error.d.ts.map +1 -0
- package/dist/http/error.js +12 -0
- package/dist/http/error.js.map +1 -0
- package/dist/http/handlers/handler-chain.d.ts +8 -0
- package/dist/http/handlers/handler-chain.d.ts.map +1 -0
- package/dist/http/handlers/handler-chain.js +34 -0
- package/dist/http/handlers/handler-chain.js.map +1 -0
- package/dist/http/handlers/hook-handler.d.ts +12 -0
- package/dist/http/handlers/hook-handler.d.ts.map +1 -0
- package/dist/http/handlers/hook-handler.js +49 -0
- package/dist/http/handlers/hook-handler.js.map +1 -0
- package/dist/http/handlers/request-validation-handler.d.ts +9 -0
- package/dist/http/handlers/request-validation-handler.d.ts.map +1 -0
- package/dist/http/handlers/request-validation-handler.js +78 -0
- package/dist/http/handlers/request-validation-handler.js.map +1 -0
- package/dist/http/handlers/response-validation-handler.d.ts +11 -0
- package/dist/http/handlers/response-validation-handler.d.ts.map +1 -0
- package/dist/http/handlers/response-validation-handler.js +89 -0
- package/dist/http/handlers/response-validation-handler.js.map +1 -0
- package/dist/http/handlers/retry-handler.d.ts +9 -0
- package/dist/http/handlers/retry-handler.d.ts.map +1 -0
- package/dist/http/handlers/retry-handler.js +47 -0
- package/dist/http/handlers/retry-handler.js.map +1 -0
- package/dist/http/handlers/terminating-handler.d.ts +8 -0
- package/dist/http/handlers/terminating-handler.d.ts.map +1 -0
- package/dist/http/handlers/terminating-handler.js +45 -0
- package/dist/http/handlers/terminating-handler.js.map +1 -0
- package/dist/http/hooks/custom-hook.d.ts +9 -0
- package/dist/http/hooks/custom-hook.d.ts.map +1 -0
- package/dist/http/hooks/custom-hook.js +84 -0
- package/dist/http/hooks/custom-hook.js.map +1 -0
- package/dist/http/hooks/hook.d.ts +31 -0
- package/dist/http/hooks/hook.d.ts.map +1 -0
- package/dist/http/hooks/hook.js +3 -0
- package/dist/http/hooks/hook.js.map +1 -0
- package/dist/http/index.d.ts +5 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +21 -0
- package/dist/http/index.js.map +1 -0
- package/dist/http/serializer.d.ts +13 -0
- package/dist/http/serializer.d.ts.map +1 -0
- package/dist/http/serializer.js +150 -0
- package/dist/http/serializer.js.map +1 -0
- package/dist/http/transport/request-builder.d.ts +24 -0
- package/dist/http/transport/request-builder.d.ts.map +1 -0
- package/dist/http/transport/request-builder.js +130 -0
- package/dist/http/transport/request-builder.js.map +1 -0
- package/dist/http/transport/request.d.ts +53 -0
- package/dist/http/transport/request.d.ts.map +1 -0
- package/dist/http/transport/request.js +116 -0
- package/dist/http/transport/request.js.map +1 -0
- package/dist/http/types.d.ts +60 -0
- package/dist/http/types.d.ts.map +1 -0
- package/dist/http/types.js +16 -0
- package/dist/http/types.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +52 -0
- package/dist/index.js.map +1 -0
- package/dist/services/base-service.d.ts +14 -0
- package/dist/services/base-service.d.ts.map +1 -0
- package/dist/services/base-service.js +27 -0
- package/dist/services/base-service.js.map +1 -0
- package/dist/services/destinations/destinations.d.ts +12 -0
- package/dist/services/destinations/destinations.d.ts.map +1 -0
- package/dist/services/destinations/destinations.js +43 -0
- package/dist/services/destinations/destinations.js.map +1 -0
- package/dist/services/destinations/index.d.ts +2 -0
- package/dist/services/destinations/index.d.ts.map +1 -0
- package/dist/services/destinations/index.js +18 -0
- package/dist/services/destinations/index.js.map +1 -0
- package/dist/services/destinations/models/destinations.d.ts +76 -0
- package/dist/services/destinations/models/destinations.d.ts.map +1 -0
- package/dist/services/destinations/models/destinations.js +49 -0
- package/dist/services/destinations/models/destinations.js.map +1 -0
- package/dist/services/destinations/models/index.d.ts +3 -0
- package/dist/services/destinations/models/index.d.ts.map +1 -0
- package/dist/services/destinations/models/index.js +19 -0
- package/dist/services/destinations/models/index.js.map +1 -0
- package/dist/services/destinations/models/list-destinations-ok-response.d.ts +140 -0
- package/dist/services/destinations/models/list-destinations-ok-response.d.ts.map +1 -0
- package/dist/services/destinations/models/list-destinations-ok-response.js +36 -0
- package/dist/services/destinations/models/list-destinations-ok-response.js.map +1 -0
- package/dist/services/e-sim/e-sim.d.ts +35 -0
- package/dist/services/e-sim/e-sim.d.ts.map +1 -0
- package/dist/services/e-sim/e-sim.js +120 -0
- package/dist/services/e-sim/e-sim.js.map +1 -0
- package/dist/services/e-sim/index.d.ts +2 -0
- package/dist/services/e-sim/index.d.ts.map +1 -0
- package/dist/services/e-sim/index.js +18 -0
- package/dist/services/e-sim/index.js.map +1 -0
- package/dist/services/e-sim/models/device.d.ts +90 -0
- package/dist/services/e-sim/models/device.d.ts.map +1 -0
- package/dist/services/e-sim/models/device.js +54 -0
- package/dist/services/e-sim/models/device.js.map +1 -0
- package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts +163 -0
- package/dist/services/e-sim/models/get-esim-device-ok-response.d.ts.map +1 -0
- package/dist/services/e-sim/models/get-esim-device-ok-response.js +36 -0
- package/dist/services/e-sim/models/get-esim-device-ok-response.js.map +1 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts +154 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.d.ts.map +1 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js +40 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response-esim.js.map +1 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts +249 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response.d.ts.map +1 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response.js +36 -0
- package/dist/services/e-sim/models/get-esim-history-ok-response.js.map +1 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts +76 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.d.ts.map +1 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js +49 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response-esim.js.map +1 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts +140 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response.d.ts.map +1 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response.js +36 -0
- package/dist/services/e-sim/models/get-esim-mac-ok-response.js.map +1 -0
- package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts +90 -0
- package/dist/services/e-sim/models/get-esim-ok-response-esim.d.ts.map +1 -0
- package/dist/services/e-sim/models/get-esim-ok-response-esim.js +54 -0
- package/dist/services/e-sim/models/get-esim-ok-response-esim.js.map +1 -0
- package/dist/services/e-sim/models/get-esim-ok-response.d.ts +163 -0
- package/dist/services/e-sim/models/get-esim-ok-response.d.ts.map +1 -0
- package/dist/services/e-sim/models/get-esim-ok-response.js +36 -0
- package/dist/services/e-sim/models/get-esim-ok-response.js.map +1 -0
- package/dist/services/e-sim/models/history.d.ts +76 -0
- package/dist/services/e-sim/models/history.d.ts.map +1 -0
- package/dist/services/e-sim/models/history.js +45 -0
- package/dist/services/e-sim/models/history.js.map +1 -0
- package/dist/services/e-sim/models/index.d.ts +10 -0
- package/dist/services/e-sim/models/index.d.ts.map +1 -0
- package/dist/services/e-sim/models/index.js +26 -0
- package/dist/services/e-sim/models/index.js.map +1 -0
- package/dist/services/e-sim/request-params.d.ts +4 -0
- package/dist/services/e-sim/request-params.d.ts.map +1 -0
- package/dist/services/e-sim/request-params.js +3 -0
- package/dist/services/e-sim/request-params.js.map +1 -0
- package/dist/services/packages/index.d.ts +2 -0
- package/dist/services/packages/index.d.ts.map +1 -0
- package/dist/services/packages/index.js +18 -0
- package/dist/services/packages/index.js.map +1 -0
- package/dist/services/packages/models/index.d.ts +3 -0
- package/dist/services/packages/models/index.d.ts.map +1 -0
- package/dist/services/packages/models/index.js +19 -0
- package/dist/services/packages/models/index.js.map +1 -0
- package/dist/services/packages/models/list-packages-ok-response.d.ts +223 -0
- package/dist/services/packages/models/list-packages-ok-response.d.ts.map +1 -0
- package/dist/services/packages/models/list-packages-ok-response.js +42 -0
- package/dist/services/packages/models/list-packages-ok-response.js.map +1 -0
- package/dist/services/packages/models/packages.d.ts +118 -0
- package/dist/services/packages/models/packages.d.ts.map +1 -0
- package/dist/services/packages/models/packages.js +64 -0
- package/dist/services/packages/models/packages.js.map +1 -0
- package/dist/services/packages/packages.d.ts +21 -0
- package/dist/services/packages/packages.d.ts.map +1 -0
- package/dist/services/packages/packages.js +59 -0
- package/dist/services/packages/packages.js.map +1 -0
- package/dist/services/packages/request-params.d.ts +11 -0
- package/dist/services/packages/request-params.d.ts.map +1 -0
- package/dist/services/packages/request-params.js +3 -0
- package/dist/services/packages/request-params.js.map +1 -0
- package/dist/services/purchases/index.d.ts +2 -0
- package/dist/services/purchases/index.d.ts.map +1 -0
- package/dist/services/purchases/index.js +18 -0
- package/dist/services/purchases/index.js.map +1 -0
- package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts +62 -0
- package/dist/services/purchases/models/create-purchase-ok-response-profile.d.ts.map +1 -0
- package/dist/services/purchases/models/create-purchase-ok-response-profile.js +39 -0
- package/dist/services/purchases/models/create-purchase-ok-response-profile.js.map +1 -0
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts +132 -0
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.d.ts.map +1 -0
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.js +69 -0
- package/dist/services/purchases/models/create-purchase-ok-response-purchase.js.map +1 -0
- package/dist/services/purchases/models/create-purchase-ok-response.d.ts +315 -0
- package/dist/services/purchases/models/create-purchase-ok-response.d.ts.map +1 -0
- package/dist/services/purchases/models/create-purchase-ok-response.js +46 -0
- package/dist/services/purchases/models/create-purchase-ok-response.js.map +1 -0
- package/dist/services/purchases/models/create-purchase-request.d.ts +160 -0
- package/dist/services/purchases/models/create-purchase-request.d.ts.map +1 -0
- package/dist/services/purchases/models/create-purchase-request.js +79 -0
- package/dist/services/purchases/models/create-purchase-request.js.map +1 -0
- package/dist/services/purchases/models/edit-purchase-ok-response.d.ts +104 -0
- package/dist/services/purchases/models/edit-purchase-ok-response.d.ts.map +1 -0
- package/dist/services/purchases/models/edit-purchase-ok-response.js +59 -0
- package/dist/services/purchases/models/edit-purchase-ok-response.js.map +1 -0
- package/dist/services/purchases/models/edit-purchase-request.d.ts +104 -0
- package/dist/services/purchases/models/edit-purchase-request.d.ts.map +1 -0
- package/dist/services/purchases/models/edit-purchase-request.js +59 -0
- package/dist/services/purchases/models/edit-purchase-request.js.map +1 -0
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts +62 -0
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.d.ts.map +1 -0
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.js +41 -0
- package/dist/services/purchases/models/get-purchase-consumption-ok-response.js.map +1 -0
- package/dist/services/purchases/models/index.d.ts +16 -0
- package/dist/services/purchases/models/index.d.ts.map +1 -0
- package/dist/services/purchases/models/index.js +32 -0
- package/dist/services/purchases/models/index.js.map +1 -0
- package/dist/services/purchases/models/list-purchases-ok-response.d.ts +622 -0
- package/dist/services/purchases/models/list-purchases-ok-response.d.ts.map +1 -0
- package/dist/services/purchases/models/list-purchases-ok-response.js +42 -0
- package/dist/services/purchases/models/list-purchases-ok-response.js.map +1 -0
- package/dist/services/purchases/models/package_.d.ts +104 -0
- package/dist/services/purchases/models/package_.d.ts.map +1 -0
- package/dist/services/purchases/models/package_.js +59 -0
- package/dist/services/purchases/models/package_.js.map +1 -0
- package/dist/services/purchases/models/purchases-esim.d.ts +48 -0
- package/dist/services/purchases/models/purchases-esim.d.ts.map +1 -0
- package/dist/services/purchases/models/purchases-esim.js +35 -0
- package/dist/services/purchases/models/purchases-esim.js.map +1 -0
- package/dist/services/purchases/models/purchases.d.ts +372 -0
- package/dist/services/purchases/models/purchases.d.ts.map +1 -0
- package/dist/services/purchases/models/purchases.js +91 -0
- package/dist/services/purchases/models/purchases.js.map +1 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts +48 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.d.ts.map +1 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.js +35 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-profile.js.map +1 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts +132 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.d.ts.map +1 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js +69 -0
- package/dist/services/purchases/models/top-up-esim-ok-response-purchase.js.map +1 -0
- package/dist/services/purchases/models/top-up-esim-ok-response.d.ts +292 -0
- package/dist/services/purchases/models/top-up-esim-ok-response.d.ts.map +1 -0
- package/dist/services/purchases/models/top-up-esim-ok-response.js +46 -0
- package/dist/services/purchases/models/top-up-esim-ok-response.js.map +1 -0
- package/dist/services/purchases/models/top-up-esim-request.d.ts +146 -0
- package/dist/services/purchases/models/top-up-esim-request.d.ts.map +1 -0
- package/dist/services/purchases/models/top-up-esim-request.js +74 -0
- package/dist/services/purchases/models/top-up-esim-request.js.map +1 -0
- package/dist/services/purchases/purchases.d.ts +49 -0
- package/dist/services/purchases/purchases.d.ts.map +1 -0
- package/dist/services/purchases/purchases.js +162 -0
- package/dist/services/purchases/purchases.js.map +1 -0
- package/dist/services/purchases/request-params.d.ts +11 -0
- package/dist/services/purchases/request-params.d.ts.map +1 -0
- package/dist/services/purchases/request-params.js +3 -0
- package/dist/services/purchases/request-params.js.map +1 -0
- package/examples/package.json +1 -1
- package/package.json +1 -1
- package/src/http/handlers/hook-handler.ts +6 -4
- package/src/http/handlers/response-validation-handler.ts +1 -1
- package/src/http/handlers/retry-handler.ts +8 -5
- package/src/http/hooks/hook.ts +3 -2
- package/src/http/serializer.ts +7 -4
- package/src/http/transport/request-builder.ts +145 -0
- package/src/http/transport/request.ts +45 -36
- package/src/services/destinations/destinations.ts +14 -11
- package/src/services/destinations/models/destinations.ts +3 -3
- package/src/services/destinations/models/list-destinations-ok-response.ts +3 -3
- package/src/services/e-sim/e-sim.ts +57 -45
- package/src/services/e-sim/models/device.ts +3 -3
- package/src/services/e-sim/models/get-esim-device-ok-response.ts +3 -3
- package/src/services/e-sim/models/get-esim-history-ok-response-esim.ts +3 -3
- package/src/services/e-sim/models/get-esim-history-ok-response.ts +3 -3
- package/src/services/e-sim/models/get-esim-mac-ok-response-esim.ts +3 -3
- package/src/services/e-sim/models/get-esim-mac-ok-response.ts +3 -3
- package/src/services/e-sim/models/get-esim-ok-response-esim.ts +3 -3
- package/src/services/e-sim/models/get-esim-ok-response.ts +3 -3
- package/src/services/e-sim/models/history.ts +3 -3
- package/src/services/packages/models/list-packages-ok-response.ts +3 -3
- package/src/services/packages/models/packages.ts +3 -3
- package/src/services/packages/packages.ts +22 -19
- package/src/services/purchases/models/create-purchase-ok-response-profile.ts +3 -3
- package/src/services/purchases/models/create-purchase-ok-response-purchase.ts +3 -3
- package/src/services/purchases/models/create-purchase-ok-response.ts +3 -3
- package/src/services/purchases/models/create-purchase-request.ts +3 -3
- package/src/services/purchases/models/edit-purchase-ok-response.ts +3 -3
- package/src/services/purchases/models/edit-purchase-request.ts +3 -3
- package/src/services/purchases/models/get-purchase-consumption-ok-response.ts +3 -3
- package/src/services/purchases/models/list-purchases-ok-response.ts +3 -3
- package/src/services/purchases/models/package_.ts +3 -3
- package/src/services/purchases/models/purchases-esim.ts +3 -3
- package/src/services/purchases/models/purchases.ts +3 -3
- package/src/services/purchases/models/top-up-esim-ok-response-profile.ts +3 -3
- package/src/services/purchases/models/top-up-esim-ok-response-purchase.ts +3 -3
- package/src/services/purchases/models/top-up-esim-ok-response.ts +3 -3
- package/src/services/purchases/models/top-up-esim-request.ts +3 -3
- package/src/services/purchases/purchases.ts +81 -66
- package/.github/PROTECTED_BRANCHES.txt +0 -1
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./list-destinations-ok-response"), exports);
|
18
|
+
__exportStar(require("./destinations"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/destinations/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,iDAA+B"}
|
@@ -0,0 +1,140 @@
|
|
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 listDestinationsOkResponse: z.ZodLazy<z.ZodObject<{
|
6
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
7
|
+
name: z.ZodOptional<z.ZodString>;
|
8
|
+
destination: z.ZodOptional<z.ZodString>;
|
9
|
+
supportedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
name?: string | undefined;
|
12
|
+
destination?: string | undefined;
|
13
|
+
supportedCountries?: string[] | undefined;
|
14
|
+
}, {
|
15
|
+
name?: string | undefined;
|
16
|
+
destination?: string | undefined;
|
17
|
+
supportedCountries?: string[] | undefined;
|
18
|
+
}>>, "many">>;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
destinations?: {
|
21
|
+
name?: string | undefined;
|
22
|
+
destination?: string | undefined;
|
23
|
+
supportedCountries?: string[] | undefined;
|
24
|
+
}[] | undefined;
|
25
|
+
}, {
|
26
|
+
destinations?: {
|
27
|
+
name?: string | undefined;
|
28
|
+
destination?: string | undefined;
|
29
|
+
supportedCountries?: string[] | undefined;
|
30
|
+
}[] | undefined;
|
31
|
+
}>>;
|
32
|
+
/**
|
33
|
+
*
|
34
|
+
* @typedef {ListDestinationsOkResponse} listDestinationsOkResponse
|
35
|
+
* @property {Destinations[]}
|
36
|
+
*/
|
37
|
+
export type ListDestinationsOkResponse = z.infer<typeof listDestinationsOkResponse>;
|
38
|
+
/**
|
39
|
+
* The shape of the model mapping from the api schema into the application shape.
|
40
|
+
* Is equal to application shape if all property names match the api schema
|
41
|
+
*/
|
42
|
+
export declare const listDestinationsOkResponseResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
43
|
+
destinations: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
44
|
+
name: z.ZodOptional<z.ZodString>;
|
45
|
+
destination: z.ZodOptional<z.ZodString>;
|
46
|
+
supportedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
48
|
+
name?: string | undefined;
|
49
|
+
destination?: string | undefined;
|
50
|
+
supportedCountries?: string[] | undefined;
|
51
|
+
}, {
|
52
|
+
name?: string | undefined;
|
53
|
+
destination?: string | undefined;
|
54
|
+
supportedCountries?: string[] | undefined;
|
55
|
+
}>, {
|
56
|
+
name: string | undefined;
|
57
|
+
destination: string | undefined;
|
58
|
+
supportedCountries: string[] | undefined;
|
59
|
+
}, {
|
60
|
+
name?: string | undefined;
|
61
|
+
destination?: string | undefined;
|
62
|
+
supportedCountries?: string[] | undefined;
|
63
|
+
}>>, "many">>;
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
65
|
+
destinations?: {
|
66
|
+
name: string | undefined;
|
67
|
+
destination: string | undefined;
|
68
|
+
supportedCountries: string[] | undefined;
|
69
|
+
}[] | undefined;
|
70
|
+
}, {
|
71
|
+
destinations?: {
|
72
|
+
name?: string | undefined;
|
73
|
+
destination?: string | undefined;
|
74
|
+
supportedCountries?: string[] | undefined;
|
75
|
+
}[] | undefined;
|
76
|
+
}>, {
|
77
|
+
destinations: {
|
78
|
+
name: string | undefined;
|
79
|
+
destination: string | undefined;
|
80
|
+
supportedCountries: string[] | undefined;
|
81
|
+
}[] | undefined;
|
82
|
+
}, {
|
83
|
+
destinations?: {
|
84
|
+
name?: string | undefined;
|
85
|
+
destination?: string | undefined;
|
86
|
+
supportedCountries?: string[] | undefined;
|
87
|
+
}[] | undefined;
|
88
|
+
}>>;
|
89
|
+
/**
|
90
|
+
* The shape of the model mapping from the application shape into the api schema.
|
91
|
+
* Is equal to application shape if all property names match the api schema
|
92
|
+
*/
|
93
|
+
export declare const listDestinationsOkResponseRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
94
|
+
destinations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
95
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
96
|
+
destination: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
97
|
+
supportedCountries: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
99
|
+
name?: string | null | undefined;
|
100
|
+
destination?: string | null | undefined;
|
101
|
+
supportedCountries?: string[] | null | undefined;
|
102
|
+
}, {
|
103
|
+
name?: string | null | undefined;
|
104
|
+
destination?: string | null | undefined;
|
105
|
+
supportedCountries?: string[] | null | undefined;
|
106
|
+
}>, {
|
107
|
+
name: string | null | undefined;
|
108
|
+
destination: string | null | undefined;
|
109
|
+
supportedCountries: string[] | null | undefined;
|
110
|
+
}, {
|
111
|
+
name?: string | null | undefined;
|
112
|
+
destination?: string | null | undefined;
|
113
|
+
supportedCountries?: string[] | null | undefined;
|
114
|
+
}>>, "many">>>;
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
116
|
+
destinations?: {
|
117
|
+
name: string | null | undefined;
|
118
|
+
destination: string | null | undefined;
|
119
|
+
supportedCountries: string[] | null | undefined;
|
120
|
+
}[] | null | undefined;
|
121
|
+
}, {
|
122
|
+
destinations?: {
|
123
|
+
name?: string | null | undefined;
|
124
|
+
destination?: string | null | undefined;
|
125
|
+
supportedCountries?: string[] | null | undefined;
|
126
|
+
}[] | null | undefined;
|
127
|
+
}>, {
|
128
|
+
destinations: {
|
129
|
+
name: string | null | undefined;
|
130
|
+
destination: string | null | undefined;
|
131
|
+
supportedCountries: string[] | null | undefined;
|
132
|
+
}[] | null | undefined;
|
133
|
+
}, {
|
134
|
+
destinations?: {
|
135
|
+
name?: string | null | undefined;
|
136
|
+
destination?: string | null | undefined;
|
137
|
+
supportedCountries?: string[] | null | undefined;
|
138
|
+
}[] | null | undefined;
|
139
|
+
}>>;
|
140
|
+
//# sourceMappingURL=list-destinations-ok-response.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-destinations-ok-response.d.ts","sourceRoot":"","sources":["../../../../src/services/destinations/models/list-destinations-ok-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;GAIrC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQ7C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI5C,CAAC"}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.listDestinationsOkResponseRequest = exports.listDestinationsOkResponseResponse = exports.listDestinationsOkResponse = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const destinations_1 = require("./destinations");
|
6
|
+
/**
|
7
|
+
* The shape of the model inside the application code - what the users use
|
8
|
+
*/
|
9
|
+
exports.listDestinationsOkResponse = zod_1.z.lazy(() => {
|
10
|
+
return zod_1.z.object({
|
11
|
+
destinations: zod_1.z.array(destinations_1.destinations).optional(),
|
12
|
+
});
|
13
|
+
});
|
14
|
+
/**
|
15
|
+
* The shape of the model mapping from the api schema into the application shape.
|
16
|
+
* Is equal to application shape if all property names match the api schema
|
17
|
+
*/
|
18
|
+
exports.listDestinationsOkResponseResponse = zod_1.z.lazy(() => {
|
19
|
+
return zod_1.z
|
20
|
+
.object({
|
21
|
+
destinations: zod_1.z.array(destinations_1.destinationsResponse).optional(),
|
22
|
+
})
|
23
|
+
.transform((data) => ({
|
24
|
+
destinations: data['destinations'],
|
25
|
+
}));
|
26
|
+
});
|
27
|
+
/**
|
28
|
+
* The shape of the model mapping from the application shape into the api schema.
|
29
|
+
* Is equal to application shape if all property names match the api schema
|
30
|
+
*/
|
31
|
+
exports.listDestinationsOkResponseRequest = zod_1.z.lazy(() => {
|
32
|
+
return zod_1.z.object({ destinations: zod_1.z.array(destinations_1.destinationsRequest).nullish() }).transform((data) => ({
|
33
|
+
destinations: data['destinations'],
|
34
|
+
}));
|
35
|
+
});
|
36
|
+
//# sourceMappingURL=list-destinations-ok-response.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"list-destinations-ok-response.js","sourceRoot":"","sources":["../../../../src/services/destinations/models/list-destinations-ok-response.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,iDAAyF;AAEzF;;GAEG;AACU,QAAA,0BAA0B,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACpD,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,2BAAY,CAAC,CAAC,QAAQ,EAAE;KAC/C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH;;;GAGG;AACU,QAAA,kCAAkC,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC5D,OAAO,OAAC;SACL,MAAM,CAAC;QACN,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,mCAAoB,CAAC,CAAC,QAAQ,EAAE;KACvD,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,iCAAiC,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC3D,OAAO,OAAC,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE,OAAC,CAAC,KAAK,CAAC,kCAAmB,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QAC7F,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC;KACnC,CAAC,CAAC,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { BaseService } from '../base-service';
|
2
|
+
import { HttpResponse } from '../../http';
|
3
|
+
import { RequestConfig } from '../../http/types';
|
4
|
+
import { GetEsimOkResponse } from './models/get-esim-ok-response';
|
5
|
+
import { GetEsimParams } from './request-params';
|
6
|
+
import { GetEsimDeviceOkResponse } from './models/get-esim-device-ok-response';
|
7
|
+
import { GetEsimHistoryOkResponse } from './models/get-esim-history-ok-response';
|
8
|
+
import { GetEsimMacOkResponse } from './models/get-esim-mac-ok-response';
|
9
|
+
export declare class ESimService extends BaseService {
|
10
|
+
/**
|
11
|
+
* Get eSIM Status
|
12
|
+
* @param {string} iccid - ID of the eSIM
|
13
|
+
* @returns {Promise<HttpResponse<GetEsimOkResponse>>} Successful Response
|
14
|
+
*/
|
15
|
+
getEsim(params: GetEsimParams, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimOkResponse>>;
|
16
|
+
/**
|
17
|
+
* Get eSIM Device
|
18
|
+
* @param {string} iccid - ID of the eSIM
|
19
|
+
* @returns {Promise<HttpResponse<GetEsimDeviceOkResponse>>} Successful Response
|
20
|
+
*/
|
21
|
+
getEsimDevice(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimDeviceOkResponse>>;
|
22
|
+
/**
|
23
|
+
* Get eSIM History
|
24
|
+
* @param {string} iccid - ID of the eSIM
|
25
|
+
* @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} Successful Response
|
26
|
+
*/
|
27
|
+
getEsimHistory(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimHistoryOkResponse>>;
|
28
|
+
/**
|
29
|
+
* Get eSIM MAC
|
30
|
+
* @param {string} iccid - ID of the eSIM
|
31
|
+
* @returns {Promise<HttpResponse<GetEsimMacOkResponse>>} Successful Response
|
32
|
+
*/
|
33
|
+
getEsimMac(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimMacOkResponse>>;
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=e-sim.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"e-sim.d.ts","sourceRoot":"","sources":["../../../src/services/e-sim/e-sim.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAe,YAAY,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAA6B,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAmC,MAAM,sCAAsC,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAAoC,MAAM,uCAAuC,CAAC;AACnH,OAAO,EAAE,oBAAoB,EAAgC,MAAM,mCAAmC,CAAC;AAEvG,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;OAIG;IACG,OAAO,CAAC,MAAM,EAAE,aAAa,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAkB7G;;;;OAIG;IACG,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;IAkBjH;;;;OAIG;IACG,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,wBAAwB,CAAC,CAAC;IAkBnH;;;;OAIG;IACG,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;CAiB5G"}
|
@@ -0,0 +1,120 @@
|
|
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.ESimService = void 0;
|
13
|
+
const zod_1 = require("zod");
|
14
|
+
const base_service_1 = require("../base-service");
|
15
|
+
const http_1 = require("../../http");
|
16
|
+
const request_builder_1 = require("../../http/transport/request-builder");
|
17
|
+
const get_esim_ok_response_1 = require("./models/get-esim-ok-response");
|
18
|
+
const get_esim_device_ok_response_1 = require("./models/get-esim-device-ok-response");
|
19
|
+
const get_esim_history_ok_response_1 = require("./models/get-esim-history-ok-response");
|
20
|
+
const get_esim_mac_ok_response_1 = require("./models/get-esim-mac-ok-response");
|
21
|
+
class ESimService extends base_service_1.BaseService {
|
22
|
+
/**
|
23
|
+
* Get eSIM Status
|
24
|
+
* @param {string} iccid - ID of the eSIM
|
25
|
+
* @returns {Promise<HttpResponse<GetEsimOkResponse>>} Successful Response
|
26
|
+
*/
|
27
|
+
getEsim(params, requestConfig) {
|
28
|
+
return __awaiter(this, void 0, void 0, function* () {
|
29
|
+
const request = new request_builder_1.RequestBuilder()
|
30
|
+
.setConfig(this.config)
|
31
|
+
.setBaseUrl(this.config)
|
32
|
+
.setMethod('GET')
|
33
|
+
.setPath('/esim')
|
34
|
+
.setRequestSchema(zod_1.z.any())
|
35
|
+
.setResponseSchema(get_esim_ok_response_1.getEsimOkResponseResponse)
|
36
|
+
.setRequestContentType(http_1.ContentType.Json)
|
37
|
+
.setResponseContentType(http_1.ContentType.Json)
|
38
|
+
.setRetryAttempts(this.config, requestConfig)
|
39
|
+
.setRetryDelayMs(this.config, requestConfig)
|
40
|
+
.setResponseValidation(this.config, requestConfig)
|
41
|
+
.addQueryParam('iccid', params === null || params === void 0 ? void 0 : params.iccid)
|
42
|
+
.build();
|
43
|
+
return this.client.call(request);
|
44
|
+
});
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Get eSIM Device
|
48
|
+
* @param {string} iccid - ID of the eSIM
|
49
|
+
* @returns {Promise<HttpResponse<GetEsimDeviceOkResponse>>} Successful Response
|
50
|
+
*/
|
51
|
+
getEsimDevice(iccid, requestConfig) {
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
53
|
+
const request = new request_builder_1.RequestBuilder()
|
54
|
+
.setConfig(this.config)
|
55
|
+
.setBaseUrl(this.config)
|
56
|
+
.setMethod('GET')
|
57
|
+
.setPath('/esim/{iccid}/device')
|
58
|
+
.setRequestSchema(zod_1.z.any())
|
59
|
+
.setResponseSchema(get_esim_device_ok_response_1.getEsimDeviceOkResponseResponse)
|
60
|
+
.setRequestContentType(http_1.ContentType.Json)
|
61
|
+
.setResponseContentType(http_1.ContentType.Json)
|
62
|
+
.setRetryAttempts(this.config, requestConfig)
|
63
|
+
.setRetryDelayMs(this.config, requestConfig)
|
64
|
+
.setResponseValidation(this.config, requestConfig)
|
65
|
+
.addPathParam('iccid', iccid)
|
66
|
+
.build();
|
67
|
+
return this.client.call(request);
|
68
|
+
});
|
69
|
+
}
|
70
|
+
/**
|
71
|
+
* Get eSIM History
|
72
|
+
* @param {string} iccid - ID of the eSIM
|
73
|
+
* @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} Successful Response
|
74
|
+
*/
|
75
|
+
getEsimHistory(iccid, requestConfig) {
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
77
|
+
const request = new request_builder_1.RequestBuilder()
|
78
|
+
.setConfig(this.config)
|
79
|
+
.setBaseUrl(this.config)
|
80
|
+
.setMethod('GET')
|
81
|
+
.setPath('/esim/{iccid}/history')
|
82
|
+
.setRequestSchema(zod_1.z.any())
|
83
|
+
.setResponseSchema(get_esim_history_ok_response_1.getEsimHistoryOkResponseResponse)
|
84
|
+
.setRequestContentType(http_1.ContentType.Json)
|
85
|
+
.setResponseContentType(http_1.ContentType.Json)
|
86
|
+
.setRetryAttempts(this.config, requestConfig)
|
87
|
+
.setRetryDelayMs(this.config, requestConfig)
|
88
|
+
.setResponseValidation(this.config, requestConfig)
|
89
|
+
.addPathParam('iccid', iccid)
|
90
|
+
.build();
|
91
|
+
return this.client.call(request);
|
92
|
+
});
|
93
|
+
}
|
94
|
+
/**
|
95
|
+
* Get eSIM MAC
|
96
|
+
* @param {string} iccid - ID of the eSIM
|
97
|
+
* @returns {Promise<HttpResponse<GetEsimMacOkResponse>>} Successful Response
|
98
|
+
*/
|
99
|
+
getEsimMac(iccid, requestConfig) {
|
100
|
+
return __awaiter(this, void 0, void 0, function* () {
|
101
|
+
const request = new request_builder_1.RequestBuilder()
|
102
|
+
.setConfig(this.config)
|
103
|
+
.setBaseUrl(this.config)
|
104
|
+
.setMethod('GET')
|
105
|
+
.setPath('/esim/{iccid}/mac')
|
106
|
+
.setRequestSchema(zod_1.z.any())
|
107
|
+
.setResponseSchema(get_esim_mac_ok_response_1.getEsimMacOkResponseResponse)
|
108
|
+
.setRequestContentType(http_1.ContentType.Json)
|
109
|
+
.setResponseContentType(http_1.ContentType.Json)
|
110
|
+
.setRetryAttempts(this.config, requestConfig)
|
111
|
+
.setRetryDelayMs(this.config, requestConfig)
|
112
|
+
.setResponseValidation(this.config, requestConfig)
|
113
|
+
.addPathParam('iccid', iccid)
|
114
|
+
.build();
|
115
|
+
return this.client.call(request);
|
116
|
+
});
|
117
|
+
}
|
118
|
+
}
|
119
|
+
exports.ESimService = ESimService;
|
120
|
+
//# sourceMappingURL=e-sim.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"e-sim.js","sourceRoot":"","sources":["../../../src/services/e-sim/e-sim.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6BAAwB;AACx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G;IACG,UAAU,CAAC,KAAa,EAAE,aAA6B;;YAC3D,MAAM,OAAO,GAAG,IAAI,gCAAc,EAAwB;iBACvD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC;iBACtB,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;iBACvB,SAAS,CAAC,KAAK,CAAC;iBAChB,OAAO,CAAC,mBAAmB,CAAC;iBAC5B,gBAAgB,CAAC,OAAC,CAAC,GAAG,EAAE,CAAC;iBACzB,iBAAiB,CAAC,uDAA4B,CAAC;iBAC/C,qBAAqB,CAAC,kBAAW,CAAC,IAAI,CAAC;iBACvC,sBAAsB,CAAC,kBAAW,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,OAAO,EAAE,KAAK,CAAC;iBAC5B,KAAK,EAAE,CAAC;YACX,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAuB,OAAO,CAAC,CAAC;QACzD,CAAC;KAAA;CACF;AA5FD,kCA4FC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/e-sim/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./e-sim"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/e-sim/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB"}
|
@@ -0,0 +1,90 @@
|
|
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 device: z.ZodLazy<z.ZodObject<{
|
6
|
+
oem: z.ZodOptional<z.ZodString>;
|
7
|
+
hardwareName: z.ZodOptional<z.ZodString>;
|
8
|
+
hardwareModel: z.ZodOptional<z.ZodString>;
|
9
|
+
eid: z.ZodOptional<z.ZodString>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
oem?: string | undefined;
|
12
|
+
hardwareName?: string | undefined;
|
13
|
+
hardwareModel?: string | undefined;
|
14
|
+
eid?: string | undefined;
|
15
|
+
}, {
|
16
|
+
oem?: string | undefined;
|
17
|
+
hardwareName?: string | undefined;
|
18
|
+
hardwareModel?: string | undefined;
|
19
|
+
eid?: string | undefined;
|
20
|
+
}>>;
|
21
|
+
/**
|
22
|
+
*
|
23
|
+
* @typedef {Device} device
|
24
|
+
* @property {string} - Name of the OEM
|
25
|
+
* @property {string} - Name of the Device
|
26
|
+
* @property {string} - Model of the Device
|
27
|
+
* @property {string} - Serial Number of the eSIM
|
28
|
+
*/
|
29
|
+
export type Device = z.infer<typeof device>;
|
30
|
+
/**
|
31
|
+
* The shape of the model mapping from the api schema into the application shape.
|
32
|
+
* Is equal to application shape if all property names match the api schema
|
33
|
+
*/
|
34
|
+
export declare const deviceResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
35
|
+
oem: z.ZodOptional<z.ZodString>;
|
36
|
+
hardwareName: z.ZodOptional<z.ZodString>;
|
37
|
+
hardwareModel: z.ZodOptional<z.ZodString>;
|
38
|
+
eid: z.ZodOptional<z.ZodString>;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
oem?: string | undefined;
|
41
|
+
hardwareName?: string | undefined;
|
42
|
+
hardwareModel?: string | undefined;
|
43
|
+
eid?: string | undefined;
|
44
|
+
}, {
|
45
|
+
oem?: string | undefined;
|
46
|
+
hardwareName?: string | undefined;
|
47
|
+
hardwareModel?: string | undefined;
|
48
|
+
eid?: string | undefined;
|
49
|
+
}>, {
|
50
|
+
oem: string | undefined;
|
51
|
+
hardwareName: string | undefined;
|
52
|
+
hardwareModel: string | undefined;
|
53
|
+
eid: string | undefined;
|
54
|
+
}, {
|
55
|
+
oem?: string | undefined;
|
56
|
+
hardwareName?: string | undefined;
|
57
|
+
hardwareModel?: string | undefined;
|
58
|
+
eid?: string | undefined;
|
59
|
+
}>>;
|
60
|
+
/**
|
61
|
+
* The shape of the model mapping from the application shape into the api schema.
|
62
|
+
* Is equal to application shape if all property names match the api schema
|
63
|
+
*/
|
64
|
+
export declare const deviceRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
65
|
+
oem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
66
|
+
hardwareName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
67
|
+
hardwareModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
68
|
+
eid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
70
|
+
oem?: string | null | undefined;
|
71
|
+
hardwareName?: string | null | undefined;
|
72
|
+
hardwareModel?: string | null | undefined;
|
73
|
+
eid?: string | null | undefined;
|
74
|
+
}, {
|
75
|
+
oem?: string | null | undefined;
|
76
|
+
hardwareName?: string | null | undefined;
|
77
|
+
hardwareModel?: string | null | undefined;
|
78
|
+
eid?: string | null | undefined;
|
79
|
+
}>, {
|
80
|
+
oem: string | null | undefined;
|
81
|
+
hardwareName: string | null | undefined;
|
82
|
+
hardwareModel: string | null | undefined;
|
83
|
+
eid: string | null | undefined;
|
84
|
+
}, {
|
85
|
+
oem?: string | null | undefined;
|
86
|
+
hardwareName?: string | null | undefined;
|
87
|
+
hardwareModel?: string | null | undefined;
|
88
|
+
eid?: string | null | undefined;
|
89
|
+
}>>;
|
90
|
+
//# sourceMappingURL=device.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../../../src/services/e-sim/models/device.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;GAOjB,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;GAczB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;GAcxB,CAAC"}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.deviceRequest = exports.deviceResponse = exports.device = 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.device = zod_1.z.lazy(() => {
|
9
|
+
return zod_1.z.object({
|
10
|
+
oem: zod_1.z.string().optional(),
|
11
|
+
hardwareName: zod_1.z.string().optional(),
|
12
|
+
hardwareModel: zod_1.z.string().optional(),
|
13
|
+
eid: zod_1.z.string().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.deviceResponse = zod_1.z.lazy(() => {
|
21
|
+
return zod_1.z
|
22
|
+
.object({
|
23
|
+
oem: zod_1.z.string().optional(),
|
24
|
+
hardwareName: zod_1.z.string().optional(),
|
25
|
+
hardwareModel: zod_1.z.string().optional(),
|
26
|
+
eid: zod_1.z.string().optional(),
|
27
|
+
})
|
28
|
+
.transform((data) => ({
|
29
|
+
oem: data['oem'],
|
30
|
+
hardwareName: data['hardwareName'],
|
31
|
+
hardwareModel: data['hardwareModel'],
|
32
|
+
eid: data['eid'],
|
33
|
+
}));
|
34
|
+
});
|
35
|
+
/**
|
36
|
+
* The shape of the model mapping from the application shape into the api schema.
|
37
|
+
* Is equal to application shape if all property names match the api schema
|
38
|
+
*/
|
39
|
+
exports.deviceRequest = zod_1.z.lazy(() => {
|
40
|
+
return zod_1.z
|
41
|
+
.object({
|
42
|
+
oem: zod_1.z.string().nullish(),
|
43
|
+
hardwareName: zod_1.z.string().nullish(),
|
44
|
+
hardwareModel: zod_1.z.string().nullish(),
|
45
|
+
eid: zod_1.z.string().nullish(),
|
46
|
+
})
|
47
|
+
.transform((data) => ({
|
48
|
+
oem: data['oem'],
|
49
|
+
hardwareName: data['hardwareName'],
|
50
|
+
hardwareModel: data['hardwareModel'],
|
51
|
+
eid: data['eid'],
|
52
|
+
}));
|
53
|
+
});
|
54
|
+
//# sourceMappingURL=device.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"device.js","sourceRoot":"","sources":["../../../../src/services/e-sim/models/device.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,MAAM,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,E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