celitech-sdk 1.3.56 → 1.3.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -30
- package/dist/index.d.ts +691 -912
- package/dist/index.js +619 -1216
- package/dist/index.mjs +619 -1216
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -247,36 +247,36 @@ declare class BaseService {
|
|
247
247
|
* The shape of the model inside the application code - what the users use
|
248
248
|
*/
|
249
249
|
declare const listDestinationsOkResponse: z.ZodLazy<z.ZodObject<{
|
250
|
-
destinations: z.
|
251
|
-
name: z.
|
252
|
-
destination: z.
|
253
|
-
destinationIso2: z.
|
254
|
-
supportedCountries: z.
|
250
|
+
destinations: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
251
|
+
name: z.ZodString;
|
252
|
+
destination: z.ZodString;
|
253
|
+
destinationIso2: z.ZodString;
|
254
|
+
supportedCountries: z.ZodArray<z.ZodString, "many">;
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
256
|
-
name
|
257
|
-
destination
|
258
|
-
destinationIso2
|
259
|
-
supportedCountries
|
256
|
+
name: string;
|
257
|
+
destination: string;
|
258
|
+
destinationIso2: string;
|
259
|
+
supportedCountries: string[];
|
260
260
|
}, {
|
261
|
-
name
|
262
|
-
destination
|
263
|
-
destinationIso2
|
264
|
-
supportedCountries
|
265
|
-
}>>, "many"
|
261
|
+
name: string;
|
262
|
+
destination: string;
|
263
|
+
destinationIso2: string;
|
264
|
+
supportedCountries: string[];
|
265
|
+
}>>, "many">;
|
266
266
|
}, "strip", z.ZodTypeAny, {
|
267
|
-
destinations
|
268
|
-
name
|
269
|
-
destination
|
270
|
-
destinationIso2
|
271
|
-
supportedCountries
|
272
|
-
}[]
|
267
|
+
destinations: {
|
268
|
+
name: string;
|
269
|
+
destination: string;
|
270
|
+
destinationIso2: string;
|
271
|
+
supportedCountries: string[];
|
272
|
+
}[];
|
273
273
|
}, {
|
274
|
-
destinations
|
275
|
-
name
|
276
|
-
destination
|
277
|
-
destinationIso2
|
278
|
-
supportedCountries
|
279
|
-
}[]
|
274
|
+
destinations: {
|
275
|
+
name: string;
|
276
|
+
destination: string;
|
277
|
+
destinationIso2: string;
|
278
|
+
supportedCountries: string[];
|
279
|
+
}[];
|
280
280
|
}>>;
|
281
281
|
/**
|
282
282
|
*
|
@@ -298,20 +298,20 @@ declare class DestinationsService extends BaseService {
|
|
298
298
|
* The shape of the model inside the application code - what the users use
|
299
299
|
*/
|
300
300
|
declare const destinations: z.ZodLazy<z.ZodObject<{
|
301
|
-
name: z.
|
302
|
-
destination: z.
|
303
|
-
destinationIso2: z.
|
304
|
-
supportedCountries: z.
|
301
|
+
name: z.ZodString;
|
302
|
+
destination: z.ZodString;
|
303
|
+
destinationIso2: z.ZodString;
|
304
|
+
supportedCountries: z.ZodArray<z.ZodString, "many">;
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
306
|
-
name
|
307
|
-
destination
|
308
|
-
destinationIso2
|
309
|
-
supportedCountries
|
306
|
+
name: string;
|
307
|
+
destination: string;
|
308
|
+
destinationIso2: string;
|
309
|
+
supportedCountries: string[];
|
310
310
|
}, {
|
311
|
-
name
|
312
|
-
destination
|
313
|
-
destinationIso2
|
314
|
-
supportedCountries
|
311
|
+
name: string;
|
312
|
+
destination: string;
|
313
|
+
destinationIso2: string;
|
314
|
+
supportedCountries: string[];
|
315
315
|
}>>;
|
316
316
|
/**
|
317
317
|
*
|
@@ -323,72 +323,58 @@ declare const destinations: z.ZodLazy<z.ZodObject<{
|
|
323
323
|
*/
|
324
324
|
type Destinations = z.infer<typeof destinations>;
|
325
325
|
|
326
|
-
declare class __ extends ThrowableError {
|
327
|
-
message: string;
|
328
|
-
protected response?: unknown;
|
329
|
-
constructor(message: string, response?: unknown);
|
330
|
-
throw(): void;
|
331
|
-
}
|
332
|
-
|
333
|
-
declare class _1 extends ThrowableError {
|
334
|
-
message: string;
|
335
|
-
protected response?: unknown;
|
336
|
-
constructor(message: string, response?: unknown);
|
337
|
-
throw(): void;
|
338
|
-
}
|
339
|
-
|
340
326
|
/**
|
341
327
|
* The shape of the model inside the application code - what the users use
|
342
328
|
*/
|
343
329
|
declare const listPackagesOkResponse: z.ZodLazy<z.ZodObject<{
|
344
|
-
packages: z.
|
345
|
-
id: z.
|
346
|
-
destination: z.
|
347
|
-
destinationIso2: z.
|
348
|
-
dataLimitInBytes: z.
|
349
|
-
minDays: z.
|
350
|
-
maxDays: z.
|
351
|
-
priceInCents: z.
|
330
|
+
packages: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
331
|
+
id: z.ZodString;
|
332
|
+
destination: z.ZodString;
|
333
|
+
destinationIso2: z.ZodString;
|
334
|
+
dataLimitInBytes: z.ZodNumber;
|
335
|
+
minDays: z.ZodNumber;
|
336
|
+
maxDays: z.ZodNumber;
|
337
|
+
priceInCents: z.ZodNumber;
|
352
338
|
}, "strip", z.ZodTypeAny, {
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
dataLimitInBytes
|
357
|
-
minDays
|
358
|
-
maxDays
|
359
|
-
priceInCents
|
339
|
+
destination: string;
|
340
|
+
destinationIso2: string;
|
341
|
+
id: string;
|
342
|
+
dataLimitInBytes: number;
|
343
|
+
minDays: number;
|
344
|
+
maxDays: number;
|
345
|
+
priceInCents: number;
|
360
346
|
}, {
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
dataLimitInBytes
|
365
|
-
minDays
|
366
|
-
maxDays
|
367
|
-
priceInCents
|
368
|
-
}>>, "many"
|
369
|
-
afterCursor: z.ZodNullable<z.
|
347
|
+
destination: string;
|
348
|
+
destinationIso2: string;
|
349
|
+
id: string;
|
350
|
+
dataLimitInBytes: number;
|
351
|
+
minDays: number;
|
352
|
+
maxDays: number;
|
353
|
+
priceInCents: number;
|
354
|
+
}>>, "many">;
|
355
|
+
afterCursor: z.ZodNullable<z.ZodString>;
|
370
356
|
}, "strip", z.ZodTypeAny, {
|
371
|
-
packages
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
dataLimitInBytes
|
376
|
-
minDays
|
377
|
-
maxDays
|
378
|
-
priceInCents
|
379
|
-
}[]
|
380
|
-
afterCursor
|
357
|
+
packages: {
|
358
|
+
destination: string;
|
359
|
+
destinationIso2: string;
|
360
|
+
id: string;
|
361
|
+
dataLimitInBytes: number;
|
362
|
+
minDays: number;
|
363
|
+
maxDays: number;
|
364
|
+
priceInCents: number;
|
365
|
+
}[];
|
366
|
+
afterCursor: string | null;
|
381
367
|
}, {
|
382
|
-
packages
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
dataLimitInBytes
|
387
|
-
minDays
|
388
|
-
maxDays
|
389
|
-
priceInCents
|
390
|
-
}[]
|
391
|
-
afterCursor
|
368
|
+
packages: {
|
369
|
+
destination: string;
|
370
|
+
destinationIso2: string;
|
371
|
+
id: string;
|
372
|
+
dataLimitInBytes: number;
|
373
|
+
minDays: number;
|
374
|
+
maxDays: number;
|
375
|
+
priceInCents: number;
|
376
|
+
}[];
|
377
|
+
afterCursor: string | null;
|
392
378
|
}>>;
|
393
379
|
/**
|
394
380
|
*
|
@@ -430,29 +416,29 @@ declare class PackagesService extends BaseService {
|
|
430
416
|
* The shape of the model inside the application code - what the users use
|
431
417
|
*/
|
432
418
|
declare const packages: z.ZodLazy<z.ZodObject<{
|
433
|
-
id: z.
|
434
|
-
destination: z.
|
435
|
-
destinationIso2: z.
|
436
|
-
dataLimitInBytes: z.
|
437
|
-
minDays: z.
|
438
|
-
maxDays: z.
|
439
|
-
priceInCents: z.
|
419
|
+
id: z.ZodString;
|
420
|
+
destination: z.ZodString;
|
421
|
+
destinationIso2: z.ZodString;
|
422
|
+
dataLimitInBytes: z.ZodNumber;
|
423
|
+
minDays: z.ZodNumber;
|
424
|
+
maxDays: z.ZodNumber;
|
425
|
+
priceInCents: z.ZodNumber;
|
440
426
|
}, "strip", z.ZodTypeAny, {
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
dataLimitInBytes
|
445
|
-
minDays
|
446
|
-
maxDays
|
447
|
-
priceInCents
|
427
|
+
destination: string;
|
428
|
+
destinationIso2: string;
|
429
|
+
id: string;
|
430
|
+
dataLimitInBytes: number;
|
431
|
+
minDays: number;
|
432
|
+
maxDays: number;
|
433
|
+
priceInCents: number;
|
448
434
|
}, {
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
dataLimitInBytes
|
453
|
-
minDays
|
454
|
-
maxDays
|
455
|
-
priceInCents
|
435
|
+
destination: string;
|
436
|
+
destinationIso2: string;
|
437
|
+
id: string;
|
438
|
+
dataLimitInBytes: number;
|
439
|
+
minDays: number;
|
440
|
+
maxDays: number;
|
441
|
+
priceInCents: number;
|
456
442
|
}>>;
|
457
443
|
/**
|
458
444
|
*
|
@@ -467,20 +453,6 @@ declare const packages: z.ZodLazy<z.ZodObject<{
|
|
467
453
|
*/
|
468
454
|
type Packages = z.infer<typeof packages>;
|
469
455
|
|
470
|
-
declare class _2 extends ThrowableError {
|
471
|
-
message: string;
|
472
|
-
protected response?: unknown;
|
473
|
-
constructor(message: string, response?: unknown);
|
474
|
-
throw(): void;
|
475
|
-
}
|
476
|
-
|
477
|
-
declare class _3 extends ThrowableError {
|
478
|
-
message: string;
|
479
|
-
protected response?: unknown;
|
480
|
-
constructor(message: string, response?: unknown);
|
481
|
-
throw(): void;
|
482
|
-
}
|
483
|
-
|
484
456
|
/**
|
485
457
|
* The shape of the model inside the application code - what the users use
|
486
458
|
*/
|
@@ -534,54 +506,54 @@ type CreatePurchaseV2Request = z.infer<typeof createPurchaseV2Request>;
|
|
534
506
|
* The shape of the model inside the application code - what the users use
|
535
507
|
*/
|
536
508
|
declare const createPurchaseV2OkResponse: z.ZodLazy<z.ZodObject<{
|
537
|
-
purchase: z.
|
538
|
-
id: z.
|
539
|
-
packageId: z.
|
540
|
-
createdDate: z.
|
509
|
+
purchase: z.ZodLazy<z.ZodObject<{
|
510
|
+
id: z.ZodString;
|
511
|
+
packageId: z.ZodString;
|
512
|
+
createdDate: z.ZodString;
|
541
513
|
}, "strip", z.ZodTypeAny, {
|
542
|
-
id
|
543
|
-
packageId
|
544
|
-
createdDate
|
514
|
+
id: string;
|
515
|
+
packageId: string;
|
516
|
+
createdDate: string;
|
545
517
|
}, {
|
546
|
-
id
|
547
|
-
packageId
|
548
|
-
createdDate
|
549
|
-
}
|
550
|
-
profile: z.
|
551
|
-
iccid: z.
|
552
|
-
activationCode: z.
|
553
|
-
manualActivationCode: z.
|
518
|
+
id: string;
|
519
|
+
packageId: string;
|
520
|
+
createdDate: string;
|
521
|
+
}>>;
|
522
|
+
profile: z.ZodLazy<z.ZodObject<{
|
523
|
+
iccid: z.ZodString;
|
524
|
+
activationCode: z.ZodString;
|
525
|
+
manualActivationCode: z.ZodString;
|
554
526
|
}, "strip", z.ZodTypeAny, {
|
555
|
-
iccid
|
556
|
-
activationCode
|
557
|
-
manualActivationCode
|
527
|
+
iccid: string;
|
528
|
+
activationCode: string;
|
529
|
+
manualActivationCode: string;
|
558
530
|
}, {
|
559
|
-
iccid
|
560
|
-
activationCode
|
561
|
-
manualActivationCode
|
562
|
-
}
|
531
|
+
iccid: string;
|
532
|
+
activationCode: string;
|
533
|
+
manualActivationCode: string;
|
534
|
+
}>>;
|
563
535
|
}, "strip", z.ZodTypeAny, {
|
564
|
-
purchase
|
565
|
-
id
|
566
|
-
packageId
|
567
|
-
createdDate
|
568
|
-
}
|
569
|
-
profile
|
570
|
-
iccid
|
571
|
-
activationCode
|
572
|
-
manualActivationCode
|
573
|
-
}
|
536
|
+
purchase: {
|
537
|
+
id: string;
|
538
|
+
packageId: string;
|
539
|
+
createdDate: string;
|
540
|
+
};
|
541
|
+
profile: {
|
542
|
+
iccid: string;
|
543
|
+
activationCode: string;
|
544
|
+
manualActivationCode: string;
|
545
|
+
};
|
574
546
|
}, {
|
575
|
-
purchase
|
576
|
-
id
|
577
|
-
packageId
|
578
|
-
createdDate
|
579
|
-
}
|
580
|
-
profile
|
581
|
-
iccid
|
582
|
-
activationCode
|
583
|
-
manualActivationCode
|
584
|
-
}
|
547
|
+
purchase: {
|
548
|
+
id: string;
|
549
|
+
packageId: string;
|
550
|
+
createdDate: string;
|
551
|
+
};
|
552
|
+
profile: {
|
553
|
+
iccid: string;
|
554
|
+
activationCode: string;
|
555
|
+
manualActivationCode: string;
|
556
|
+
};
|
585
557
|
}>>;
|
586
558
|
/**
|
587
559
|
*
|
@@ -595,142 +567,142 @@ type CreatePurchaseV2OkResponse = z.infer<typeof createPurchaseV2OkResponse>;
|
|
595
567
|
* The shape of the model inside the application code - what the users use
|
596
568
|
*/
|
597
569
|
declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
|
598
|
-
purchases: z.
|
599
|
-
id: z.
|
600
|
-
startDate: z.
|
601
|
-
endDate: z.
|
602
|
-
createdDate: z.
|
570
|
+
purchases: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
571
|
+
id: z.ZodString;
|
572
|
+
startDate: z.ZodString;
|
573
|
+
endDate: z.ZodString;
|
574
|
+
createdDate: z.ZodString;
|
603
575
|
startTime: z.ZodOptional<z.ZodNumber>;
|
604
576
|
endTime: z.ZodOptional<z.ZodNumber>;
|
605
577
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
606
|
-
package: z.
|
607
|
-
id: z.
|
608
|
-
dataLimitInBytes: z.
|
609
|
-
destination: z.
|
610
|
-
destinationIso2: z.
|
611
|
-
destinationName: z.
|
612
|
-
priceInCents: z.
|
578
|
+
package: z.ZodLazy<z.ZodObject<{
|
579
|
+
id: z.ZodString;
|
580
|
+
dataLimitInBytes: z.ZodNumber;
|
581
|
+
destination: z.ZodString;
|
582
|
+
destinationIso2: z.ZodString;
|
583
|
+
destinationName: z.ZodString;
|
584
|
+
priceInCents: z.ZodNumber;
|
613
585
|
}, "strip", z.ZodTypeAny, {
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
586
|
+
destination: string;
|
587
|
+
destinationIso2: string;
|
588
|
+
id: string;
|
589
|
+
dataLimitInBytes: number;
|
590
|
+
priceInCents: number;
|
591
|
+
destinationName: string;
|
620
592
|
}, {
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
}
|
628
|
-
esim: z.
|
629
|
-
iccid: z.
|
593
|
+
destination: string;
|
594
|
+
destinationIso2: string;
|
595
|
+
id: string;
|
596
|
+
dataLimitInBytes: number;
|
597
|
+
priceInCents: number;
|
598
|
+
destinationName: string;
|
599
|
+
}>>;
|
600
|
+
esim: z.ZodLazy<z.ZodObject<{
|
601
|
+
iccid: z.ZodString;
|
630
602
|
}, "strip", z.ZodTypeAny, {
|
631
|
-
iccid
|
603
|
+
iccid: string;
|
632
604
|
}, {
|
633
|
-
iccid
|
634
|
-
}
|
635
|
-
source: z.
|
636
|
-
purchaseType: z.
|
605
|
+
iccid: string;
|
606
|
+
}>>;
|
607
|
+
source: z.ZodString;
|
608
|
+
purchaseType: z.ZodString;
|
637
609
|
referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
638
610
|
}, "strip", z.ZodTypeAny, {
|
639
|
-
id
|
640
|
-
startDate
|
641
|
-
endDate
|
642
|
-
createdDate
|
611
|
+
id: string;
|
612
|
+
startDate: string;
|
613
|
+
endDate: string;
|
614
|
+
createdDate: string;
|
615
|
+
package: {
|
616
|
+
destination: string;
|
617
|
+
destinationIso2: string;
|
618
|
+
id: string;
|
619
|
+
dataLimitInBytes: number;
|
620
|
+
priceInCents: number;
|
621
|
+
destinationName: string;
|
622
|
+
};
|
623
|
+
esim: {
|
624
|
+
iccid: string;
|
625
|
+
};
|
626
|
+
source: string;
|
627
|
+
purchaseType: string;
|
643
628
|
startTime?: number | undefined;
|
644
629
|
endTime?: number | undefined;
|
645
630
|
createdAt?: number | undefined;
|
646
|
-
package?: {
|
647
|
-
id?: string | undefined;
|
648
|
-
dataLimitInBytes?: number | undefined;
|
649
|
-
destination?: string | undefined;
|
650
|
-
destinationIso2?: string | undefined;
|
651
|
-
destinationName?: string | undefined;
|
652
|
-
priceInCents?: number | undefined;
|
653
|
-
} | undefined;
|
654
|
-
esim?: {
|
655
|
-
iccid?: string | undefined;
|
656
|
-
} | undefined;
|
657
|
-
source?: string | undefined;
|
658
|
-
purchaseType?: string | undefined;
|
659
631
|
referenceId?: string | null | undefined;
|
660
632
|
}, {
|
661
|
-
id
|
662
|
-
startDate
|
663
|
-
endDate
|
664
|
-
createdDate
|
633
|
+
id: string;
|
634
|
+
startDate: string;
|
635
|
+
endDate: string;
|
636
|
+
createdDate: string;
|
637
|
+
package: {
|
638
|
+
destination: string;
|
639
|
+
destinationIso2: string;
|
640
|
+
id: string;
|
641
|
+
dataLimitInBytes: number;
|
642
|
+
priceInCents: number;
|
643
|
+
destinationName: string;
|
644
|
+
};
|
645
|
+
esim: {
|
646
|
+
iccid: string;
|
647
|
+
};
|
648
|
+
source: string;
|
649
|
+
purchaseType: string;
|
665
650
|
startTime?: number | undefined;
|
666
651
|
endTime?: number | undefined;
|
667
652
|
createdAt?: number | undefined;
|
668
|
-
package?: {
|
669
|
-
id?: string | undefined;
|
670
|
-
dataLimitInBytes?: number | undefined;
|
671
|
-
destination?: string | undefined;
|
672
|
-
destinationIso2?: string | undefined;
|
673
|
-
destinationName?: string | undefined;
|
674
|
-
priceInCents?: number | undefined;
|
675
|
-
} | undefined;
|
676
|
-
esim?: {
|
677
|
-
iccid?: string | undefined;
|
678
|
-
} | undefined;
|
679
|
-
source?: string | undefined;
|
680
|
-
purchaseType?: string | undefined;
|
681
653
|
referenceId?: string | null | undefined;
|
682
|
-
}>>, "many"
|
683
|
-
afterCursor: z.ZodNullable<z.
|
654
|
+
}>>, "many">;
|
655
|
+
afterCursor: z.ZodNullable<z.ZodString>;
|
684
656
|
}, "strip", z.ZodTypeAny, {
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
657
|
+
afterCursor: string | null;
|
658
|
+
purchases: {
|
659
|
+
id: string;
|
660
|
+
startDate: string;
|
661
|
+
endDate: string;
|
662
|
+
createdDate: string;
|
663
|
+
package: {
|
664
|
+
destination: string;
|
665
|
+
destinationIso2: string;
|
666
|
+
id: string;
|
667
|
+
dataLimitInBytes: number;
|
668
|
+
priceInCents: number;
|
669
|
+
destinationName: string;
|
670
|
+
};
|
671
|
+
esim: {
|
672
|
+
iccid: string;
|
673
|
+
};
|
674
|
+
source: string;
|
675
|
+
purchaseType: string;
|
690
676
|
startTime?: number | undefined;
|
691
677
|
endTime?: number | undefined;
|
692
678
|
createdAt?: number | undefined;
|
693
|
-
package?: {
|
694
|
-
id?: string | undefined;
|
695
|
-
dataLimitInBytes?: number | undefined;
|
696
|
-
destination?: string | undefined;
|
697
|
-
destinationIso2?: string | undefined;
|
698
|
-
destinationName?: string | undefined;
|
699
|
-
priceInCents?: number | undefined;
|
700
|
-
} | undefined;
|
701
|
-
esim?: {
|
702
|
-
iccid?: string | undefined;
|
703
|
-
} | undefined;
|
704
|
-
source?: string | undefined;
|
705
|
-
purchaseType?: string | undefined;
|
706
679
|
referenceId?: string | null | undefined;
|
707
|
-
}[]
|
708
|
-
afterCursor?: string | null | undefined;
|
680
|
+
}[];
|
709
681
|
}, {
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
682
|
+
afterCursor: string | null;
|
683
|
+
purchases: {
|
684
|
+
id: string;
|
685
|
+
startDate: string;
|
686
|
+
endDate: string;
|
687
|
+
createdDate: string;
|
688
|
+
package: {
|
689
|
+
destination: string;
|
690
|
+
destinationIso2: string;
|
691
|
+
id: string;
|
692
|
+
dataLimitInBytes: number;
|
693
|
+
priceInCents: number;
|
694
|
+
destinationName: string;
|
695
|
+
};
|
696
|
+
esim: {
|
697
|
+
iccid: string;
|
698
|
+
};
|
699
|
+
source: string;
|
700
|
+
purchaseType: string;
|
715
701
|
startTime?: number | undefined;
|
716
702
|
endTime?: number | undefined;
|
717
703
|
createdAt?: number | undefined;
|
718
|
-
package?: {
|
719
|
-
id?: string | undefined;
|
720
|
-
dataLimitInBytes?: number | undefined;
|
721
|
-
destination?: string | undefined;
|
722
|
-
destinationIso2?: string | undefined;
|
723
|
-
destinationName?: string | undefined;
|
724
|
-
priceInCents?: number | undefined;
|
725
|
-
} | undefined;
|
726
|
-
esim?: {
|
727
|
-
iccid?: string | undefined;
|
728
|
-
} | undefined;
|
729
|
-
source?: string | undefined;
|
730
|
-
purchaseType?: string | undefined;
|
731
704
|
referenceId?: string | null | undefined;
|
732
|
-
}[]
|
733
|
-
afterCursor?: string | null | undefined;
|
705
|
+
}[];
|
734
706
|
}>>;
|
735
707
|
/**
|
736
708
|
*
|
@@ -809,74 +781,74 @@ type CreatePurchaseRequest = z.infer<typeof createPurchaseRequest>;
|
|
809
781
|
* The shape of the model inside the application code - what the users use
|
810
782
|
*/
|
811
783
|
declare const createPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
812
|
-
purchase: z.
|
813
|
-
id: z.
|
814
|
-
packageId: z.
|
815
|
-
startDate: z.
|
816
|
-
endDate: z.
|
817
|
-
createdDate: z.
|
784
|
+
purchase: z.ZodLazy<z.ZodObject<{
|
785
|
+
id: z.ZodString;
|
786
|
+
packageId: z.ZodString;
|
787
|
+
startDate: z.ZodString;
|
788
|
+
endDate: z.ZodString;
|
789
|
+
createdDate: z.ZodString;
|
818
790
|
startTime: z.ZodOptional<z.ZodNumber>;
|
819
791
|
endTime: z.ZodOptional<z.ZodNumber>;
|
820
792
|
}, "strip", z.ZodTypeAny, {
|
821
|
-
id
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
createdDate
|
793
|
+
id: string;
|
794
|
+
startDate: string;
|
795
|
+
endDate: string;
|
796
|
+
packageId: string;
|
797
|
+
createdDate: string;
|
826
798
|
startTime?: number | undefined;
|
827
799
|
endTime?: number | undefined;
|
828
800
|
}, {
|
829
|
-
id
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
createdDate
|
801
|
+
id: string;
|
802
|
+
startDate: string;
|
803
|
+
endDate: string;
|
804
|
+
packageId: string;
|
805
|
+
createdDate: string;
|
834
806
|
startTime?: number | undefined;
|
835
807
|
endTime?: number | undefined;
|
836
|
-
}
|
837
|
-
profile: z.
|
838
|
-
iccid: z.
|
839
|
-
activationCode: z.
|
840
|
-
manualActivationCode: z.
|
808
|
+
}>>;
|
809
|
+
profile: z.ZodLazy<z.ZodObject<{
|
810
|
+
iccid: z.ZodString;
|
811
|
+
activationCode: z.ZodString;
|
812
|
+
manualActivationCode: z.ZodString;
|
841
813
|
}, "strip", z.ZodTypeAny, {
|
842
|
-
iccid
|
843
|
-
activationCode
|
844
|
-
manualActivationCode
|
814
|
+
iccid: string;
|
815
|
+
activationCode: string;
|
816
|
+
manualActivationCode: string;
|
845
817
|
}, {
|
846
|
-
iccid
|
847
|
-
activationCode
|
848
|
-
manualActivationCode
|
849
|
-
}
|
818
|
+
iccid: string;
|
819
|
+
activationCode: string;
|
820
|
+
manualActivationCode: string;
|
821
|
+
}>>;
|
850
822
|
}, "strip", z.ZodTypeAny, {
|
851
|
-
purchase
|
852
|
-
id
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
createdDate
|
823
|
+
purchase: {
|
824
|
+
id: string;
|
825
|
+
startDate: string;
|
826
|
+
endDate: string;
|
827
|
+
packageId: string;
|
828
|
+
createdDate: string;
|
857
829
|
startTime?: number | undefined;
|
858
830
|
endTime?: number | undefined;
|
859
|
-
}
|
860
|
-
profile
|
861
|
-
iccid
|
862
|
-
activationCode
|
863
|
-
manualActivationCode
|
864
|
-
}
|
831
|
+
};
|
832
|
+
profile: {
|
833
|
+
iccid: string;
|
834
|
+
activationCode: string;
|
835
|
+
manualActivationCode: string;
|
836
|
+
};
|
865
837
|
}, {
|
866
|
-
purchase
|
867
|
-
id
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
createdDate
|
838
|
+
purchase: {
|
839
|
+
id: string;
|
840
|
+
startDate: string;
|
841
|
+
endDate: string;
|
842
|
+
packageId: string;
|
843
|
+
createdDate: string;
|
872
844
|
startTime?: number | undefined;
|
873
845
|
endTime?: number | undefined;
|
874
|
-
}
|
875
|
-
profile
|
876
|
-
iccid
|
877
|
-
activationCode
|
878
|
-
manualActivationCode
|
879
|
-
}
|
846
|
+
};
|
847
|
+
profile: {
|
848
|
+
iccid: string;
|
849
|
+
activationCode: string;
|
850
|
+
manualActivationCode: string;
|
851
|
+
};
|
880
852
|
}>>;
|
881
853
|
/**
|
882
854
|
*
|
@@ -939,64 +911,64 @@ type TopUpEsimRequest = z.infer<typeof topUpEsimRequest>;
|
|
939
911
|
* The shape of the model inside the application code - what the users use
|
940
912
|
*/
|
941
913
|
declare const topUpEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
942
|
-
purchase: z.
|
943
|
-
id: z.
|
944
|
-
packageId: z.
|
945
|
-
startDate: z.
|
946
|
-
endDate: z.
|
947
|
-
createdDate: z.
|
914
|
+
purchase: z.ZodLazy<z.ZodObject<{
|
915
|
+
id: z.ZodString;
|
916
|
+
packageId: z.ZodString;
|
917
|
+
startDate: z.ZodString;
|
918
|
+
endDate: z.ZodString;
|
919
|
+
createdDate: z.ZodString;
|
948
920
|
startTime: z.ZodOptional<z.ZodNumber>;
|
949
921
|
endTime: z.ZodOptional<z.ZodNumber>;
|
950
922
|
}, "strip", z.ZodTypeAny, {
|
951
|
-
id
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
createdDate
|
923
|
+
id: string;
|
924
|
+
startDate: string;
|
925
|
+
endDate: string;
|
926
|
+
packageId: string;
|
927
|
+
createdDate: string;
|
956
928
|
startTime?: number | undefined;
|
957
929
|
endTime?: number | undefined;
|
958
930
|
}, {
|
959
|
-
id
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
createdDate
|
931
|
+
id: string;
|
932
|
+
startDate: string;
|
933
|
+
endDate: string;
|
934
|
+
packageId: string;
|
935
|
+
createdDate: string;
|
964
936
|
startTime?: number | undefined;
|
965
937
|
endTime?: number | undefined;
|
966
|
-
}
|
967
|
-
profile: z.
|
968
|
-
iccid: z.
|
938
|
+
}>>;
|
939
|
+
profile: z.ZodLazy<z.ZodObject<{
|
940
|
+
iccid: z.ZodString;
|
969
941
|
}, "strip", z.ZodTypeAny, {
|
970
|
-
iccid
|
942
|
+
iccid: string;
|
971
943
|
}, {
|
972
|
-
iccid
|
973
|
-
}
|
944
|
+
iccid: string;
|
945
|
+
}>>;
|
974
946
|
}, "strip", z.ZodTypeAny, {
|
975
|
-
purchase
|
976
|
-
id
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
createdDate
|
947
|
+
purchase: {
|
948
|
+
id: string;
|
949
|
+
startDate: string;
|
950
|
+
endDate: string;
|
951
|
+
packageId: string;
|
952
|
+
createdDate: string;
|
981
953
|
startTime?: number | undefined;
|
982
954
|
endTime?: number | undefined;
|
983
|
-
}
|
984
|
-
profile
|
985
|
-
iccid
|
986
|
-
}
|
955
|
+
};
|
956
|
+
profile: {
|
957
|
+
iccid: string;
|
958
|
+
};
|
987
959
|
}, {
|
988
|
-
purchase
|
989
|
-
id
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
createdDate
|
960
|
+
purchase: {
|
961
|
+
id: string;
|
962
|
+
startDate: string;
|
963
|
+
endDate: string;
|
964
|
+
packageId: string;
|
965
|
+
createdDate: string;
|
994
966
|
startTime?: number | undefined;
|
995
967
|
endTime?: number | undefined;
|
996
|
-
}
|
997
|
-
profile
|
998
|
-
iccid
|
999
|
-
}
|
968
|
+
};
|
969
|
+
profile: {
|
970
|
+
iccid: string;
|
971
|
+
};
|
1000
972
|
}>>;
|
1001
973
|
/**
|
1002
974
|
*
|
@@ -1043,21 +1015,21 @@ type EditPurchaseRequest = z.infer<typeof editPurchaseRequest>;
|
|
1043
1015
|
* The shape of the model inside the application code - what the users use
|
1044
1016
|
*/
|
1045
1017
|
declare const editPurchaseOkResponse: z.ZodLazy<z.ZodObject<{
|
1046
|
-
purchaseId: z.
|
1047
|
-
newStartDate: z.
|
1048
|
-
newEndDate: z.
|
1018
|
+
purchaseId: z.ZodString;
|
1019
|
+
newStartDate: z.ZodString;
|
1020
|
+
newEndDate: z.ZodString;
|
1049
1021
|
newStartTime: z.ZodOptional<z.ZodNumber>;
|
1050
1022
|
newEndTime: z.ZodOptional<z.ZodNumber>;
|
1051
1023
|
}, "strip", z.ZodTypeAny, {
|
1052
|
-
purchaseId
|
1053
|
-
newStartDate
|
1054
|
-
newEndDate
|
1024
|
+
purchaseId: string;
|
1025
|
+
newStartDate: string;
|
1026
|
+
newEndDate: string;
|
1055
1027
|
newStartTime?: number | undefined;
|
1056
1028
|
newEndTime?: number | undefined;
|
1057
1029
|
}, {
|
1058
|
-
purchaseId
|
1059
|
-
newStartDate
|
1060
|
-
newEndDate
|
1030
|
+
purchaseId: string;
|
1031
|
+
newStartDate: string;
|
1032
|
+
newEndDate: string;
|
1061
1033
|
newStartTime?: number | undefined;
|
1062
1034
|
newEndTime?: number | undefined;
|
1063
1035
|
}>>;
|
@@ -1076,14 +1048,14 @@ type EditPurchaseOkResponse = z.infer<typeof editPurchaseOkResponse>;
|
|
1076
1048
|
* The shape of the model inside the application code - what the users use
|
1077
1049
|
*/
|
1078
1050
|
declare const getPurchaseConsumptionOkResponse: z.ZodLazy<z.ZodObject<{
|
1079
|
-
dataUsageRemainingInBytes: z.
|
1080
|
-
status: z.
|
1051
|
+
dataUsageRemainingInBytes: z.ZodNumber;
|
1052
|
+
status: z.ZodString;
|
1081
1053
|
}, "strip", z.ZodTypeAny, {
|
1082
|
-
|
1083
|
-
|
1054
|
+
status: string;
|
1055
|
+
dataUsageRemainingInBytes: number;
|
1084
1056
|
}, {
|
1085
|
-
|
1086
|
-
|
1057
|
+
status: string;
|
1058
|
+
dataUsageRemainingInBytes: number;
|
1087
1059
|
}>>;
|
1088
1060
|
/**
|
1089
1061
|
*
|
@@ -1128,10 +1100,17 @@ declare class PurchasesService extends BaseService {
|
|
1128
1100
|
*/
|
1129
1101
|
topUpEsim(body: TopUpEsimRequest, requestConfig?: RequestConfig): Promise<HttpResponse<TopUpEsimOkResponse>>;
|
1130
1102
|
/**
|
1131
|
-
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1103
|
+
* This endpoint allows you to modify the validity dates of an existing purchase.
|
1104
|
+
**Behavior:**
|
1105
|
+
- If the purchase has **not yet been activated**, both the start and end dates can be updated.
|
1106
|
+
- If the purchase is **already active**, only the **end date** can be updated, while the **start date must remain unchanged** (and should be passed as originally set).
|
1107
|
+
- Updates must comply with the same pricing structure; the modification cannot alter the package size or change its duration category.
|
1108
|
+
|
1109
|
+
The end date can be extended or shortened as long as it adheres to the same pricing category and does not exceed the allowed duration limits.
|
1110
|
+
|
1111
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1112
|
+
* @returns {Promise<HttpResponse<EditPurchaseOkResponse>>} Successful Response
|
1113
|
+
*/
|
1135
1114
|
editPurchase(body: EditPurchaseRequest, requestConfig?: RequestConfig): Promise<HttpResponse<EditPurchaseOkResponse>>;
|
1136
1115
|
/**
|
1137
1116
|
* This endpoint can be called for consumption notifications (e.g. every 1 hour or when the user clicks a button). It returns the data balance (consumption) of purchased packages.
|
@@ -1146,17 +1125,17 @@ declare class PurchasesService extends BaseService {
|
|
1146
1125
|
* The shape of the model inside the application code - what the users use
|
1147
1126
|
*/
|
1148
1127
|
declare const createPurchaseV2OkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
1149
|
-
id: z.
|
1150
|
-
packageId: z.
|
1151
|
-
createdDate: z.
|
1128
|
+
id: z.ZodString;
|
1129
|
+
packageId: z.ZodString;
|
1130
|
+
createdDate: z.ZodString;
|
1152
1131
|
}, "strip", z.ZodTypeAny, {
|
1153
|
-
id
|
1154
|
-
packageId
|
1155
|
-
createdDate
|
1132
|
+
id: string;
|
1133
|
+
packageId: string;
|
1134
|
+
createdDate: string;
|
1156
1135
|
}, {
|
1157
|
-
id
|
1158
|
-
packageId
|
1159
|
-
createdDate
|
1136
|
+
id: string;
|
1137
|
+
packageId: string;
|
1138
|
+
createdDate: string;
|
1160
1139
|
}>>;
|
1161
1140
|
/**
|
1162
1141
|
*
|
@@ -1171,17 +1150,17 @@ type CreatePurchaseV2OkResponsePurchase = z.infer<typeof createPurchaseV2OkRespo
|
|
1171
1150
|
* The shape of the model inside the application code - what the users use
|
1172
1151
|
*/
|
1173
1152
|
declare const createPurchaseV2OkResponseProfile: z.ZodLazy<z.ZodObject<{
|
1174
|
-
iccid: z.
|
1175
|
-
activationCode: z.
|
1176
|
-
manualActivationCode: z.
|
1153
|
+
iccid: z.ZodString;
|
1154
|
+
activationCode: z.ZodString;
|
1155
|
+
manualActivationCode: z.ZodString;
|
1177
1156
|
}, "strip", z.ZodTypeAny, {
|
1178
|
-
iccid
|
1179
|
-
activationCode
|
1180
|
-
manualActivationCode
|
1157
|
+
iccid: string;
|
1158
|
+
activationCode: string;
|
1159
|
+
manualActivationCode: string;
|
1181
1160
|
}, {
|
1182
|
-
iccid
|
1183
|
-
activationCode
|
1184
|
-
manualActivationCode
|
1161
|
+
iccid: string;
|
1162
|
+
activationCode: string;
|
1163
|
+
manualActivationCode: string;
|
1185
1164
|
}>>;
|
1186
1165
|
/**
|
1187
1166
|
*
|
@@ -1196,88 +1175,88 @@ type CreatePurchaseV2OkResponseProfile = z.infer<typeof createPurchaseV2OkRespon
|
|
1196
1175
|
* The shape of the model inside the application code - what the users use
|
1197
1176
|
*/
|
1198
1177
|
declare const purchases: z.ZodLazy<z.ZodObject<{
|
1199
|
-
id: z.
|
1200
|
-
startDate: z.
|
1201
|
-
endDate: z.
|
1202
|
-
createdDate: z.
|
1178
|
+
id: z.ZodString;
|
1179
|
+
startDate: z.ZodString;
|
1180
|
+
endDate: z.ZodString;
|
1181
|
+
createdDate: z.ZodString;
|
1203
1182
|
startTime: z.ZodOptional<z.ZodNumber>;
|
1204
1183
|
endTime: z.ZodOptional<z.ZodNumber>;
|
1205
1184
|
createdAt: z.ZodOptional<z.ZodNumber>;
|
1206
|
-
package: z.
|
1207
|
-
id: z.
|
1208
|
-
dataLimitInBytes: z.
|
1209
|
-
destination: z.
|
1210
|
-
destinationIso2: z.
|
1211
|
-
destinationName: z.
|
1212
|
-
priceInCents: z.
|
1185
|
+
package: z.ZodLazy<z.ZodObject<{
|
1186
|
+
id: z.ZodString;
|
1187
|
+
dataLimitInBytes: z.ZodNumber;
|
1188
|
+
destination: z.ZodString;
|
1189
|
+
destinationIso2: z.ZodString;
|
1190
|
+
destinationName: z.ZodString;
|
1191
|
+
priceInCents: z.ZodNumber;
|
1213
1192
|
}, "strip", z.ZodTypeAny, {
|
1214
|
-
|
1215
|
-
|
1216
|
-
|
1217
|
-
|
1218
|
-
|
1219
|
-
|
1193
|
+
destination: string;
|
1194
|
+
destinationIso2: string;
|
1195
|
+
id: string;
|
1196
|
+
dataLimitInBytes: number;
|
1197
|
+
priceInCents: number;
|
1198
|
+
destinationName: string;
|
1220
1199
|
}, {
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
}
|
1228
|
-
esim: z.
|
1229
|
-
iccid: z.
|
1200
|
+
destination: string;
|
1201
|
+
destinationIso2: string;
|
1202
|
+
id: string;
|
1203
|
+
dataLimitInBytes: number;
|
1204
|
+
priceInCents: number;
|
1205
|
+
destinationName: string;
|
1206
|
+
}>>;
|
1207
|
+
esim: z.ZodLazy<z.ZodObject<{
|
1208
|
+
iccid: z.ZodString;
|
1230
1209
|
}, "strip", z.ZodTypeAny, {
|
1231
|
-
iccid
|
1210
|
+
iccid: string;
|
1232
1211
|
}, {
|
1233
|
-
iccid
|
1234
|
-
}
|
1235
|
-
source: z.
|
1236
|
-
purchaseType: z.
|
1212
|
+
iccid: string;
|
1213
|
+
}>>;
|
1214
|
+
source: z.ZodString;
|
1215
|
+
purchaseType: z.ZodString;
|
1237
1216
|
referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
1238
1217
|
}, "strip", z.ZodTypeAny, {
|
1239
|
-
id
|
1240
|
-
startDate
|
1241
|
-
endDate
|
1242
|
-
createdDate
|
1218
|
+
id: string;
|
1219
|
+
startDate: string;
|
1220
|
+
endDate: string;
|
1221
|
+
createdDate: string;
|
1222
|
+
package: {
|
1223
|
+
destination: string;
|
1224
|
+
destinationIso2: string;
|
1225
|
+
id: string;
|
1226
|
+
dataLimitInBytes: number;
|
1227
|
+
priceInCents: number;
|
1228
|
+
destinationName: string;
|
1229
|
+
};
|
1230
|
+
esim: {
|
1231
|
+
iccid: string;
|
1232
|
+
};
|
1233
|
+
source: string;
|
1234
|
+
purchaseType: string;
|
1243
1235
|
startTime?: number | undefined;
|
1244
1236
|
endTime?: number | undefined;
|
1245
1237
|
createdAt?: number | undefined;
|
1246
|
-
package?: {
|
1247
|
-
id?: string | undefined;
|
1248
|
-
dataLimitInBytes?: number | undefined;
|
1249
|
-
destination?: string | undefined;
|
1250
|
-
destinationIso2?: string | undefined;
|
1251
|
-
destinationName?: string | undefined;
|
1252
|
-
priceInCents?: number | undefined;
|
1253
|
-
} | undefined;
|
1254
|
-
esim?: {
|
1255
|
-
iccid?: string | undefined;
|
1256
|
-
} | undefined;
|
1257
|
-
source?: string | undefined;
|
1258
|
-
purchaseType?: string | undefined;
|
1259
1238
|
referenceId?: string | null | undefined;
|
1260
1239
|
}, {
|
1261
|
-
id
|
1262
|
-
startDate
|
1263
|
-
endDate
|
1264
|
-
createdDate
|
1240
|
+
id: string;
|
1241
|
+
startDate: string;
|
1242
|
+
endDate: string;
|
1243
|
+
createdDate: string;
|
1244
|
+
package: {
|
1245
|
+
destination: string;
|
1246
|
+
destinationIso2: string;
|
1247
|
+
id: string;
|
1248
|
+
dataLimitInBytes: number;
|
1249
|
+
priceInCents: number;
|
1250
|
+
destinationName: string;
|
1251
|
+
};
|
1252
|
+
esim: {
|
1253
|
+
iccid: string;
|
1254
|
+
};
|
1255
|
+
source: string;
|
1256
|
+
purchaseType: string;
|
1265
1257
|
startTime?: number | undefined;
|
1266
1258
|
endTime?: number | undefined;
|
1267
1259
|
createdAt?: number | undefined;
|
1268
|
-
package?: {
|
1269
|
-
id?: string | undefined;
|
1270
|
-
dataLimitInBytes?: number | undefined;
|
1271
|
-
destination?: string | undefined;
|
1272
|
-
destinationIso2?: string | undefined;
|
1273
|
-
destinationName?: string | undefined;
|
1274
|
-
priceInCents?: number | undefined;
|
1275
|
-
} | undefined;
|
1276
|
-
esim?: {
|
1277
|
-
iccid?: string | undefined;
|
1278
|
-
} | undefined;
|
1279
|
-
source?: string | undefined;
|
1280
|
-
purchaseType?: string | undefined;
|
1281
1260
|
referenceId?: string | null | undefined;
|
1282
1261
|
}>>;
|
1283
1262
|
/**
|
@@ -1302,26 +1281,26 @@ type Purchases = z.infer<typeof purchases>;
|
|
1302
1281
|
* The shape of the model inside the application code - what the users use
|
1303
1282
|
*/
|
1304
1283
|
declare const package_: z.ZodLazy<z.ZodObject<{
|
1305
|
-
id: z.
|
1306
|
-
dataLimitInBytes: z.
|
1307
|
-
destination: z.
|
1308
|
-
destinationIso2: z.
|
1309
|
-
destinationName: z.
|
1310
|
-
priceInCents: z.
|
1284
|
+
id: z.ZodString;
|
1285
|
+
dataLimitInBytes: z.ZodNumber;
|
1286
|
+
destination: z.ZodString;
|
1287
|
+
destinationIso2: z.ZodString;
|
1288
|
+
destinationName: z.ZodString;
|
1289
|
+
priceInCents: z.ZodNumber;
|
1311
1290
|
}, "strip", z.ZodTypeAny, {
|
1312
|
-
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1291
|
+
destination: string;
|
1292
|
+
destinationIso2: string;
|
1293
|
+
id: string;
|
1294
|
+
dataLimitInBytes: number;
|
1295
|
+
priceInCents: number;
|
1296
|
+
destinationName: string;
|
1318
1297
|
}, {
|
1319
|
-
|
1320
|
-
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1298
|
+
destination: string;
|
1299
|
+
destinationIso2: string;
|
1300
|
+
id: string;
|
1301
|
+
dataLimitInBytes: number;
|
1302
|
+
priceInCents: number;
|
1303
|
+
destinationName: string;
|
1325
1304
|
}>>;
|
1326
1305
|
/**
|
1327
1306
|
*
|
@@ -1339,11 +1318,11 @@ type Package_ = z.infer<typeof package_>;
|
|
1339
1318
|
* The shape of the model inside the application code - what the users use
|
1340
1319
|
*/
|
1341
1320
|
declare const purchasesEsim: z.ZodLazy<z.ZodObject<{
|
1342
|
-
iccid: z.
|
1321
|
+
iccid: z.ZodString;
|
1343
1322
|
}, "strip", z.ZodTypeAny, {
|
1344
|
-
iccid
|
1323
|
+
iccid: string;
|
1345
1324
|
}, {
|
1346
|
-
iccid
|
1325
|
+
iccid: string;
|
1347
1326
|
}>>;
|
1348
1327
|
/**
|
1349
1328
|
*
|
@@ -1356,27 +1335,27 @@ type PurchasesEsim = z.infer<typeof purchasesEsim>;
|
|
1356
1335
|
* The shape of the model inside the application code - what the users use
|
1357
1336
|
*/
|
1358
1337
|
declare const createPurchaseOkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
1359
|
-
id: z.
|
1360
|
-
packageId: z.
|
1361
|
-
startDate: z.
|
1362
|
-
endDate: z.
|
1363
|
-
createdDate: z.
|
1338
|
+
id: z.ZodString;
|
1339
|
+
packageId: z.ZodString;
|
1340
|
+
startDate: z.ZodString;
|
1341
|
+
endDate: z.ZodString;
|
1342
|
+
createdDate: z.ZodString;
|
1364
1343
|
startTime: z.ZodOptional<z.ZodNumber>;
|
1365
1344
|
endTime: z.ZodOptional<z.ZodNumber>;
|
1366
1345
|
}, "strip", z.ZodTypeAny, {
|
1367
|
-
id
|
1368
|
-
|
1369
|
-
|
1370
|
-
|
1371
|
-
createdDate
|
1346
|
+
id: string;
|
1347
|
+
startDate: string;
|
1348
|
+
endDate: string;
|
1349
|
+
packageId: string;
|
1350
|
+
createdDate: string;
|
1372
1351
|
startTime?: number | undefined;
|
1373
1352
|
endTime?: number | undefined;
|
1374
1353
|
}, {
|
1375
|
-
id
|
1376
|
-
|
1377
|
-
|
1378
|
-
|
1379
|
-
createdDate
|
1354
|
+
id: string;
|
1355
|
+
startDate: string;
|
1356
|
+
endDate: string;
|
1357
|
+
packageId: string;
|
1358
|
+
createdDate: string;
|
1380
1359
|
startTime?: number | undefined;
|
1381
1360
|
endTime?: number | undefined;
|
1382
1361
|
}>>;
|
@@ -1397,17 +1376,17 @@ type CreatePurchaseOkResponsePurchase = z.infer<typeof createPurchaseOkResponseP
|
|
1397
1376
|
* The shape of the model inside the application code - what the users use
|
1398
1377
|
*/
|
1399
1378
|
declare const createPurchaseOkResponseProfile: z.ZodLazy<z.ZodObject<{
|
1400
|
-
iccid: z.
|
1401
|
-
activationCode: z.
|
1402
|
-
manualActivationCode: z.
|
1379
|
+
iccid: z.ZodString;
|
1380
|
+
activationCode: z.ZodString;
|
1381
|
+
manualActivationCode: z.ZodString;
|
1403
1382
|
}, "strip", z.ZodTypeAny, {
|
1404
|
-
iccid
|
1405
|
-
activationCode
|
1406
|
-
manualActivationCode
|
1383
|
+
iccid: string;
|
1384
|
+
activationCode: string;
|
1385
|
+
manualActivationCode: string;
|
1407
1386
|
}, {
|
1408
|
-
iccid
|
1409
|
-
activationCode
|
1410
|
-
manualActivationCode
|
1387
|
+
iccid: string;
|
1388
|
+
activationCode: string;
|
1389
|
+
manualActivationCode: string;
|
1411
1390
|
}>>;
|
1412
1391
|
/**
|
1413
1392
|
*
|
@@ -1422,27 +1401,27 @@ type CreatePurchaseOkResponseProfile = z.infer<typeof createPurchaseOkResponsePr
|
|
1422
1401
|
* The shape of the model inside the application code - what the users use
|
1423
1402
|
*/
|
1424
1403
|
declare const topUpEsimOkResponsePurchase: z.ZodLazy<z.ZodObject<{
|
1425
|
-
id: z.
|
1426
|
-
packageId: z.
|
1427
|
-
startDate: z.
|
1428
|
-
endDate: z.
|
1429
|
-
createdDate: z.
|
1404
|
+
id: z.ZodString;
|
1405
|
+
packageId: z.ZodString;
|
1406
|
+
startDate: z.ZodString;
|
1407
|
+
endDate: z.ZodString;
|
1408
|
+
createdDate: z.ZodString;
|
1430
1409
|
startTime: z.ZodOptional<z.ZodNumber>;
|
1431
1410
|
endTime: z.ZodOptional<z.ZodNumber>;
|
1432
1411
|
}, "strip", z.ZodTypeAny, {
|
1433
|
-
id
|
1434
|
-
|
1435
|
-
|
1436
|
-
|
1437
|
-
createdDate
|
1412
|
+
id: string;
|
1413
|
+
startDate: string;
|
1414
|
+
endDate: string;
|
1415
|
+
packageId: string;
|
1416
|
+
createdDate: string;
|
1438
1417
|
startTime?: number | undefined;
|
1439
1418
|
endTime?: number | undefined;
|
1440
1419
|
}, {
|
1441
|
-
id
|
1442
|
-
|
1443
|
-
|
1444
|
-
|
1445
|
-
createdDate
|
1420
|
+
id: string;
|
1421
|
+
startDate: string;
|
1422
|
+
endDate: string;
|
1423
|
+
packageId: string;
|
1424
|
+
createdDate: string;
|
1446
1425
|
startTime?: number | undefined;
|
1447
1426
|
endTime?: number | undefined;
|
1448
1427
|
}>>;
|
@@ -1463,11 +1442,11 @@ type TopUpEsimOkResponsePurchase = z.infer<typeof topUpEsimOkResponsePurchase>;
|
|
1463
1442
|
* The shape of the model inside the application code - what the users use
|
1464
1443
|
*/
|
1465
1444
|
declare const topUpEsimOkResponseProfile: z.ZodLazy<z.ZodObject<{
|
1466
|
-
iccid: z.
|
1445
|
+
iccid: z.ZodString;
|
1467
1446
|
}, "strip", z.ZodTypeAny, {
|
1468
|
-
iccid
|
1447
|
+
iccid: string;
|
1469
1448
|
}, {
|
1470
|
-
iccid
|
1449
|
+
iccid: string;
|
1471
1450
|
}>>;
|
1472
1451
|
/**
|
1473
1452
|
*
|
@@ -1476,129 +1455,50 @@ declare const topUpEsimOkResponseProfile: z.ZodLazy<z.ZodObject<{
|
|
1476
1455
|
*/
|
1477
1456
|
type TopUpEsimOkResponseProfile = z.infer<typeof topUpEsimOkResponseProfile>;
|
1478
1457
|
|
1479
|
-
declare class _4 extends ThrowableError {
|
1480
|
-
message: string;
|
1481
|
-
protected response?: unknown;
|
1482
|
-
constructor(message: string, response?: unknown);
|
1483
|
-
throw(): void;
|
1484
|
-
}
|
1485
|
-
|
1486
|
-
declare class _5 extends ThrowableError {
|
1487
|
-
message: string;
|
1488
|
-
protected response?: unknown;
|
1489
|
-
constructor(message: string, response?: unknown);
|
1490
|
-
throw(): void;
|
1491
|
-
}
|
1492
|
-
|
1493
|
-
declare class _6 extends ThrowableError {
|
1494
|
-
message: string;
|
1495
|
-
protected response?: unknown;
|
1496
|
-
constructor(message: string, response?: unknown);
|
1497
|
-
throw(): void;
|
1498
|
-
}
|
1499
|
-
|
1500
|
-
declare class _7 extends ThrowableError {
|
1501
|
-
message: string;
|
1502
|
-
protected response?: unknown;
|
1503
|
-
constructor(message: string, response?: unknown);
|
1504
|
-
throw(): void;
|
1505
|
-
}
|
1506
|
-
|
1507
|
-
declare class _8 extends ThrowableError {
|
1508
|
-
message: string;
|
1509
|
-
protected response?: unknown;
|
1510
|
-
constructor(message: string, response?: unknown);
|
1511
|
-
throw(): void;
|
1512
|
-
}
|
1513
|
-
|
1514
|
-
declare class _9 extends ThrowableError {
|
1515
|
-
message: string;
|
1516
|
-
protected response?: unknown;
|
1517
|
-
constructor(message: string, response?: unknown);
|
1518
|
-
throw(): void;
|
1519
|
-
}
|
1520
|
-
|
1521
|
-
declare class _10 extends ThrowableError {
|
1522
|
-
message: string;
|
1523
|
-
protected response?: unknown;
|
1524
|
-
constructor(message: string, response?: unknown);
|
1525
|
-
throw(): void;
|
1526
|
-
}
|
1527
|
-
|
1528
|
-
declare class _11 extends ThrowableError {
|
1529
|
-
message: string;
|
1530
|
-
protected response?: unknown;
|
1531
|
-
constructor(message: string, response?: unknown);
|
1532
|
-
throw(): void;
|
1533
|
-
}
|
1534
|
-
|
1535
|
-
declare class _12 extends ThrowableError {
|
1536
|
-
message: string;
|
1537
|
-
protected response?: unknown;
|
1538
|
-
constructor(message: string, response?: unknown);
|
1539
|
-
throw(): void;
|
1540
|
-
}
|
1541
|
-
|
1542
|
-
declare class _13 extends ThrowableError {
|
1543
|
-
message: string;
|
1544
|
-
protected response?: unknown;
|
1545
|
-
constructor(message: string, response?: unknown);
|
1546
|
-
throw(): void;
|
1547
|
-
}
|
1548
|
-
|
1549
|
-
declare class _14 extends ThrowableError {
|
1550
|
-
message: string;
|
1551
|
-
protected response?: unknown;
|
1552
|
-
constructor(message: string, response?: unknown);
|
1553
|
-
throw(): void;
|
1554
|
-
}
|
1555
|
-
|
1556
|
-
declare class _15 extends ThrowableError {
|
1557
|
-
message: string;
|
1558
|
-
protected response?: unknown;
|
1559
|
-
constructor(message: string, response?: unknown);
|
1560
|
-
throw(): void;
|
1561
|
-
}
|
1562
|
-
|
1563
1458
|
/**
|
1564
1459
|
* The shape of the model inside the application code - what the users use
|
1565
1460
|
*/
|
1566
1461
|
declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
|
1567
|
-
esim: z.
|
1568
|
-
iccid: z.
|
1569
|
-
smdpAddress: z.
|
1570
|
-
|
1571
|
-
|
1572
|
-
|
1462
|
+
esim: z.ZodLazy<z.ZodObject<{
|
1463
|
+
iccid: z.ZodString;
|
1464
|
+
smdpAddress: z.ZodString;
|
1465
|
+
activationCode: z.ZodString;
|
1466
|
+
manualActivationCode: z.ZodString;
|
1467
|
+
status: z.ZodString;
|
1468
|
+
isTopUpAllowed: z.ZodBoolean;
|
1573
1469
|
}, "strip", z.ZodTypeAny, {
|
1574
|
-
|
1575
|
-
|
1576
|
-
|
1577
|
-
|
1578
|
-
|
1470
|
+
status: string;
|
1471
|
+
iccid: string;
|
1472
|
+
activationCode: string;
|
1473
|
+
manualActivationCode: string;
|
1474
|
+
smdpAddress: string;
|
1475
|
+
isTopUpAllowed: boolean;
|
1579
1476
|
}, {
|
1580
|
-
|
1581
|
-
|
1582
|
-
|
1583
|
-
|
1584
|
-
|
1585
|
-
|
1477
|
+
status: string;
|
1478
|
+
iccid: string;
|
1479
|
+
activationCode: string;
|
1480
|
+
manualActivationCode: string;
|
1481
|
+
smdpAddress: string;
|
1482
|
+
isTopUpAllowed: boolean;
|
1483
|
+
}>>;
|
1586
1484
|
}, "strip", z.ZodTypeAny, {
|
1587
|
-
esim
|
1588
|
-
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1485
|
+
esim: {
|
1486
|
+
status: string;
|
1487
|
+
iccid: string;
|
1488
|
+
activationCode: string;
|
1489
|
+
manualActivationCode: string;
|
1490
|
+
smdpAddress: string;
|
1491
|
+
isTopUpAllowed: boolean;
|
1492
|
+
};
|
1594
1493
|
}, {
|
1595
|
-
esim
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1494
|
+
esim: {
|
1495
|
+
status: string;
|
1496
|
+
iccid: string;
|
1497
|
+
activationCode: string;
|
1498
|
+
manualActivationCode: string;
|
1499
|
+
smdpAddress: string;
|
1500
|
+
isTopUpAllowed: boolean;
|
1501
|
+
};
|
1602
1502
|
}>>;
|
1603
1503
|
/**
|
1604
1504
|
*
|
@@ -1615,36 +1515,36 @@ interface GetEsimParams {
|
|
1615
1515
|
* The shape of the model inside the application code - what the users use
|
1616
1516
|
*/
|
1617
1517
|
declare const getEsimDeviceOkResponse: z.ZodLazy<z.ZodObject<{
|
1618
|
-
device: z.
|
1619
|
-
oem: z.
|
1620
|
-
hardwareName: z.
|
1621
|
-
hardwareModel: z.
|
1622
|
-
eid: z.
|
1518
|
+
device: z.ZodLazy<z.ZodObject<{
|
1519
|
+
oem: z.ZodString;
|
1520
|
+
hardwareName: z.ZodString;
|
1521
|
+
hardwareModel: z.ZodString;
|
1522
|
+
eid: z.ZodString;
|
1623
1523
|
}, "strip", z.ZodTypeAny, {
|
1624
|
-
oem
|
1625
|
-
hardwareName
|
1626
|
-
hardwareModel
|
1627
|
-
eid
|
1524
|
+
oem: string;
|
1525
|
+
hardwareName: string;
|
1526
|
+
hardwareModel: string;
|
1527
|
+
eid: string;
|
1628
1528
|
}, {
|
1629
|
-
oem
|
1630
|
-
hardwareName
|
1631
|
-
hardwareModel
|
1632
|
-
eid
|
1633
|
-
}
|
1529
|
+
oem: string;
|
1530
|
+
hardwareName: string;
|
1531
|
+
hardwareModel: string;
|
1532
|
+
eid: string;
|
1533
|
+
}>>;
|
1634
1534
|
}, "strip", z.ZodTypeAny, {
|
1635
|
-
device
|
1636
|
-
oem
|
1637
|
-
hardwareName
|
1638
|
-
hardwareModel
|
1639
|
-
eid
|
1640
|
-
}
|
1535
|
+
device: {
|
1536
|
+
oem: string;
|
1537
|
+
hardwareName: string;
|
1538
|
+
hardwareModel: string;
|
1539
|
+
eid: string;
|
1540
|
+
};
|
1641
1541
|
}, {
|
1642
|
-
device
|
1643
|
-
oem
|
1644
|
-
hardwareName
|
1645
|
-
hardwareModel
|
1646
|
-
eid
|
1647
|
-
}
|
1542
|
+
device: {
|
1543
|
+
oem: string;
|
1544
|
+
hardwareName: string;
|
1545
|
+
hardwareModel: string;
|
1546
|
+
eid: string;
|
1547
|
+
};
|
1648
1548
|
}>>;
|
1649
1549
|
/**
|
1650
1550
|
*
|
@@ -1657,54 +1557,54 @@ type GetEsimDeviceOkResponse = z.infer<typeof getEsimDeviceOkResponse>;
|
|
1657
1557
|
* The shape of the model inside the application code - what the users use
|
1658
1558
|
*/
|
1659
1559
|
declare const getEsimHistoryOkResponse: z.ZodLazy<z.ZodObject<{
|
1660
|
-
esim: z.
|
1661
|
-
iccid: z.
|
1662
|
-
history: z.
|
1663
|
-
status: z.
|
1664
|
-
statusDate: z.
|
1560
|
+
esim: z.ZodLazy<z.ZodObject<{
|
1561
|
+
iccid: z.ZodString;
|
1562
|
+
history: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
1563
|
+
status: z.ZodString;
|
1564
|
+
statusDate: z.ZodString;
|
1665
1565
|
date: z.ZodOptional<z.ZodNumber>;
|
1666
1566
|
}, "strip", z.ZodTypeAny, {
|
1667
|
-
status
|
1668
|
-
statusDate
|
1567
|
+
status: string;
|
1568
|
+
statusDate: string;
|
1669
1569
|
date?: number | undefined;
|
1670
1570
|
}, {
|
1671
|
-
status
|
1672
|
-
statusDate
|
1571
|
+
status: string;
|
1572
|
+
statusDate: string;
|
1673
1573
|
date?: number | undefined;
|
1674
|
-
}>>, "many"
|
1574
|
+
}>>, "many">;
|
1675
1575
|
}, "strip", z.ZodTypeAny, {
|
1676
|
-
iccid
|
1677
|
-
history
|
1678
|
-
status
|
1679
|
-
statusDate
|
1576
|
+
iccid: string;
|
1577
|
+
history: {
|
1578
|
+
status: string;
|
1579
|
+
statusDate: string;
|
1680
1580
|
date?: number | undefined;
|
1681
|
-
}[]
|
1581
|
+
}[];
|
1682
1582
|
}, {
|
1683
|
-
iccid
|
1684
|
-
history
|
1685
|
-
status
|
1686
|
-
statusDate
|
1583
|
+
iccid: string;
|
1584
|
+
history: {
|
1585
|
+
status: string;
|
1586
|
+
statusDate: string;
|
1687
1587
|
date?: number | undefined;
|
1688
|
-
}[]
|
1689
|
-
}
|
1588
|
+
}[];
|
1589
|
+
}>>;
|
1690
1590
|
}, "strip", z.ZodTypeAny, {
|
1691
|
-
esim
|
1692
|
-
iccid
|
1693
|
-
history
|
1694
|
-
status
|
1695
|
-
statusDate
|
1591
|
+
esim: {
|
1592
|
+
iccid: string;
|
1593
|
+
history: {
|
1594
|
+
status: string;
|
1595
|
+
statusDate: string;
|
1696
1596
|
date?: number | undefined;
|
1697
|
-
}[]
|
1698
|
-
}
|
1597
|
+
}[];
|
1598
|
+
};
|
1699
1599
|
}, {
|
1700
|
-
esim
|
1701
|
-
iccid
|
1702
|
-
history
|
1703
|
-
status
|
1704
|
-
statusDate
|
1600
|
+
esim: {
|
1601
|
+
iccid: string;
|
1602
|
+
history: {
|
1603
|
+
status: string;
|
1604
|
+
statusDate: string;
|
1705
1605
|
date?: number | undefined;
|
1706
|
-
}[]
|
1707
|
-
}
|
1606
|
+
}[];
|
1607
|
+
};
|
1708
1608
|
}>>;
|
1709
1609
|
/**
|
1710
1610
|
*
|
@@ -1713,46 +1613,9 @@ declare const getEsimHistoryOkResponse: z.ZodLazy<z.ZodObject<{
|
|
1713
1613
|
*/
|
1714
1614
|
type GetEsimHistoryOkResponse = z.infer<typeof getEsimHistoryOkResponse>;
|
1715
1615
|
|
1716
|
-
/**
|
1717
|
-
* The shape of the model inside the application code - what the users use
|
1718
|
-
*/
|
1719
|
-
declare const getEsimMacOkResponse: z.ZodLazy<z.ZodObject<{
|
1720
|
-
esim: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
1721
|
-
iccid: z.ZodOptional<z.ZodString>;
|
1722
|
-
smdpAddress: z.ZodOptional<z.ZodString>;
|
1723
|
-
manualActivationCode: z.ZodOptional<z.ZodString>;
|
1724
|
-
}, "strip", z.ZodTypeAny, {
|
1725
|
-
iccid?: string | undefined;
|
1726
|
-
smdpAddress?: string | undefined;
|
1727
|
-
manualActivationCode?: string | undefined;
|
1728
|
-
}, {
|
1729
|
-
iccid?: string | undefined;
|
1730
|
-
smdpAddress?: string | undefined;
|
1731
|
-
manualActivationCode?: string | undefined;
|
1732
|
-
}>>>;
|
1733
|
-
}, "strip", z.ZodTypeAny, {
|
1734
|
-
esim?: {
|
1735
|
-
iccid?: string | undefined;
|
1736
|
-
smdpAddress?: string | undefined;
|
1737
|
-
manualActivationCode?: string | undefined;
|
1738
|
-
} | undefined;
|
1739
|
-
}, {
|
1740
|
-
esim?: {
|
1741
|
-
iccid?: string | undefined;
|
1742
|
-
smdpAddress?: string | undefined;
|
1743
|
-
manualActivationCode?: string | undefined;
|
1744
|
-
} | undefined;
|
1745
|
-
}>>;
|
1746
|
-
/**
|
1747
|
-
*
|
1748
|
-
* @typedef {GetEsimMacOkResponse} getEsimMacOkResponse
|
1749
|
-
* @property {GetEsimMacOkResponseEsim}
|
1750
|
-
*/
|
1751
|
-
type GetEsimMacOkResponse = z.infer<typeof getEsimMacOkResponse>;
|
1752
|
-
|
1753
1616
|
declare class ESimService extends BaseService {
|
1754
1617
|
/**
|
1755
|
-
* Get eSIM
|
1618
|
+
* Get eSIM
|
1756
1619
|
* @param {string} iccid - ID of the eSIM
|
1757
1620
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1758
1621
|
* @returns {Promise<HttpResponse<GetEsimOkResponse>>} Successful Response
|
@@ -1772,42 +1635,39 @@ declare class ESimService extends BaseService {
|
|
1772
1635
|
* @returns {Promise<HttpResponse<GetEsimHistoryOkResponse>>} Successful Response
|
1773
1636
|
*/
|
1774
1637
|
getEsimHistory(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimHistoryOkResponse>>;
|
1775
|
-
/**
|
1776
|
-
* Get eSIM MAC
|
1777
|
-
* @param {string} iccid - ID of the eSIM
|
1778
|
-
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
1779
|
-
* @returns {Promise<HttpResponse<GetEsimMacOkResponse>>} Successful Response
|
1780
|
-
*/
|
1781
|
-
getEsimMac(iccid: string, requestConfig?: RequestConfig): Promise<HttpResponse<GetEsimMacOkResponse>>;
|
1782
1638
|
}
|
1783
1639
|
|
1784
1640
|
/**
|
1785
1641
|
* The shape of the model inside the application code - what the users use
|
1786
1642
|
*/
|
1787
1643
|
declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
1788
|
-
iccid: z.
|
1789
|
-
smdpAddress: z.
|
1790
|
-
|
1791
|
-
|
1792
|
-
|
1644
|
+
iccid: z.ZodString;
|
1645
|
+
smdpAddress: z.ZodString;
|
1646
|
+
activationCode: z.ZodString;
|
1647
|
+
manualActivationCode: z.ZodString;
|
1648
|
+
status: z.ZodString;
|
1649
|
+
isTopUpAllowed: z.ZodBoolean;
|
1793
1650
|
}, "strip", z.ZodTypeAny, {
|
1794
|
-
|
1795
|
-
|
1796
|
-
|
1797
|
-
|
1798
|
-
|
1651
|
+
status: string;
|
1652
|
+
iccid: string;
|
1653
|
+
activationCode: string;
|
1654
|
+
manualActivationCode: string;
|
1655
|
+
smdpAddress: string;
|
1656
|
+
isTopUpAllowed: boolean;
|
1799
1657
|
}, {
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1658
|
+
status: string;
|
1659
|
+
iccid: string;
|
1660
|
+
activationCode: string;
|
1661
|
+
manualActivationCode: string;
|
1662
|
+
smdpAddress: string;
|
1663
|
+
isTopUpAllowed: boolean;
|
1805
1664
|
}>>;
|
1806
1665
|
/**
|
1807
1666
|
*
|
1808
1667
|
* @typedef {GetEsimOkResponseEsim} getEsimOkResponseEsim
|
1809
1668
|
* @property {string} - ID of the eSIM
|
1810
1669
|
* @property {string} - SM-DP+ Address
|
1670
|
+
* @property {string} - QR Code of the eSIM as base64
|
1811
1671
|
* @property {string} - The manual activation code
|
1812
1672
|
* @property {string} - Status of the eSIM, possible values are 'RELEASED', 'DOWNLOADED', 'INSTALLED', 'ENABLED', 'DELETED', or 'ERROR'
|
1813
1673
|
* @property {boolean} - Indicates whether the eSIM is currently eligible for a top-up. This flag should be checked before attempting a top-up request.
|
@@ -1818,20 +1678,20 @@ type GetEsimOkResponseEsim = z.infer<typeof getEsimOkResponseEsim>;
|
|
1818
1678
|
* The shape of the model inside the application code - what the users use
|
1819
1679
|
*/
|
1820
1680
|
declare const device: z.ZodLazy<z.ZodObject<{
|
1821
|
-
oem: z.
|
1822
|
-
hardwareName: z.
|
1823
|
-
hardwareModel: z.
|
1824
|
-
eid: z.
|
1681
|
+
oem: z.ZodString;
|
1682
|
+
hardwareName: z.ZodString;
|
1683
|
+
hardwareModel: z.ZodString;
|
1684
|
+
eid: z.ZodString;
|
1825
1685
|
}, "strip", z.ZodTypeAny, {
|
1826
|
-
oem
|
1827
|
-
hardwareName
|
1828
|
-
hardwareModel
|
1829
|
-
eid
|
1686
|
+
oem: string;
|
1687
|
+
hardwareName: string;
|
1688
|
+
hardwareModel: string;
|
1689
|
+
eid: string;
|
1830
1690
|
}, {
|
1831
|
-
oem
|
1832
|
-
hardwareName
|
1833
|
-
hardwareModel
|
1834
|
-
eid
|
1691
|
+
oem: string;
|
1692
|
+
hardwareName: string;
|
1693
|
+
hardwareModel: string;
|
1694
|
+
eid: string;
|
1835
1695
|
}>>;
|
1836
1696
|
/**
|
1837
1697
|
*
|
@@ -1847,34 +1707,34 @@ type Device = z.infer<typeof device>;
|
|
1847
1707
|
* The shape of the model inside the application code - what the users use
|
1848
1708
|
*/
|
1849
1709
|
declare const getEsimHistoryOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
1850
|
-
iccid: z.
|
1851
|
-
history: z.
|
1852
|
-
status: z.
|
1853
|
-
statusDate: z.
|
1710
|
+
iccid: z.ZodString;
|
1711
|
+
history: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
1712
|
+
status: z.ZodString;
|
1713
|
+
statusDate: z.ZodString;
|
1854
1714
|
date: z.ZodOptional<z.ZodNumber>;
|
1855
1715
|
}, "strip", z.ZodTypeAny, {
|
1856
|
-
status
|
1857
|
-
statusDate
|
1716
|
+
status: string;
|
1717
|
+
statusDate: string;
|
1858
1718
|
date?: number | undefined;
|
1859
1719
|
}, {
|
1860
|
-
status
|
1861
|
-
statusDate
|
1720
|
+
status: string;
|
1721
|
+
statusDate: string;
|
1862
1722
|
date?: number | undefined;
|
1863
|
-
}>>, "many"
|
1723
|
+
}>>, "many">;
|
1864
1724
|
}, "strip", z.ZodTypeAny, {
|
1865
|
-
iccid
|
1866
|
-
history
|
1867
|
-
status
|
1868
|
-
statusDate
|
1725
|
+
iccid: string;
|
1726
|
+
history: {
|
1727
|
+
status: string;
|
1728
|
+
statusDate: string;
|
1869
1729
|
date?: number | undefined;
|
1870
|
-
}[]
|
1730
|
+
}[];
|
1871
1731
|
}, {
|
1872
|
-
iccid
|
1873
|
-
history
|
1874
|
-
status
|
1875
|
-
statusDate
|
1732
|
+
iccid: string;
|
1733
|
+
history: {
|
1734
|
+
status: string;
|
1735
|
+
statusDate: string;
|
1876
1736
|
date?: number | undefined;
|
1877
|
-
}[]
|
1737
|
+
}[];
|
1878
1738
|
}>>;
|
1879
1739
|
/**
|
1880
1740
|
*
|
@@ -1888,16 +1748,16 @@ type GetEsimHistoryOkResponseEsim = z.infer<typeof getEsimHistoryOkResponseEsim>
|
|
1888
1748
|
* The shape of the model inside the application code - what the users use
|
1889
1749
|
*/
|
1890
1750
|
declare const history: z.ZodLazy<z.ZodObject<{
|
1891
|
-
status: z.
|
1892
|
-
statusDate: z.
|
1751
|
+
status: z.ZodString;
|
1752
|
+
statusDate: z.ZodString;
|
1893
1753
|
date: z.ZodOptional<z.ZodNumber>;
|
1894
1754
|
}, "strip", z.ZodTypeAny, {
|
1895
|
-
status
|
1896
|
-
statusDate
|
1755
|
+
status: string;
|
1756
|
+
statusDate: string;
|
1897
1757
|
date?: number | undefined;
|
1898
1758
|
}, {
|
1899
|
-
status
|
1900
|
-
statusDate
|
1759
|
+
status: string;
|
1760
|
+
statusDate: string;
|
1901
1761
|
date?: number | undefined;
|
1902
1762
|
}>>;
|
1903
1763
|
/**
|
@@ -1909,96 +1769,15 @@ declare const history: z.ZodLazy<z.ZodObject<{
|
|
1909
1769
|
*/
|
1910
1770
|
type History = z.infer<typeof history>;
|
1911
1771
|
|
1912
|
-
/**
|
1913
|
-
* The shape of the model inside the application code - what the users use
|
1914
|
-
*/
|
1915
|
-
declare const getEsimMacOkResponseEsim: z.ZodLazy<z.ZodObject<{
|
1916
|
-
iccid: z.ZodOptional<z.ZodString>;
|
1917
|
-
smdpAddress: z.ZodOptional<z.ZodString>;
|
1918
|
-
manualActivationCode: z.ZodOptional<z.ZodString>;
|
1919
|
-
}, "strip", z.ZodTypeAny, {
|
1920
|
-
iccid?: string | undefined;
|
1921
|
-
smdpAddress?: string | undefined;
|
1922
|
-
manualActivationCode?: string | undefined;
|
1923
|
-
}, {
|
1924
|
-
iccid?: string | undefined;
|
1925
|
-
smdpAddress?: string | undefined;
|
1926
|
-
manualActivationCode?: string | undefined;
|
1927
|
-
}>>;
|
1928
|
-
/**
|
1929
|
-
*
|
1930
|
-
* @typedef {GetEsimMacOkResponseEsim} getEsimMacOkResponseEsim
|
1931
|
-
* @property {string} - ID of the eSIM
|
1932
|
-
* @property {string} - SM-DP+ Address
|
1933
|
-
* @property {string} - The manual activation code
|
1934
|
-
*/
|
1935
|
-
type GetEsimMacOkResponseEsim = z.infer<typeof getEsimMacOkResponseEsim>;
|
1936
|
-
|
1937
|
-
declare class _16 extends ThrowableError {
|
1938
|
-
message: string;
|
1939
|
-
protected response?: unknown;
|
1940
|
-
constructor(message: string, response?: unknown);
|
1941
|
-
throw(): void;
|
1942
|
-
}
|
1943
|
-
|
1944
|
-
declare class _17 extends ThrowableError {
|
1945
|
-
message: string;
|
1946
|
-
protected response?: unknown;
|
1947
|
-
constructor(message: string, response?: unknown);
|
1948
|
-
throw(): void;
|
1949
|
-
}
|
1950
|
-
|
1951
|
-
declare class _18 extends ThrowableError {
|
1952
|
-
message: string;
|
1953
|
-
protected response?: unknown;
|
1954
|
-
constructor(message: string, response?: unknown);
|
1955
|
-
throw(): void;
|
1956
|
-
}
|
1957
|
-
|
1958
|
-
declare class _19 extends ThrowableError {
|
1959
|
-
message: string;
|
1960
|
-
protected response?: unknown;
|
1961
|
-
constructor(message: string, response?: unknown);
|
1962
|
-
throw(): void;
|
1963
|
-
}
|
1964
|
-
|
1965
|
-
declare class _20 extends ThrowableError {
|
1966
|
-
message: string;
|
1967
|
-
protected response?: unknown;
|
1968
|
-
constructor(message: string, response?: unknown);
|
1969
|
-
throw(): void;
|
1970
|
-
}
|
1971
|
-
|
1972
|
-
declare class _21 extends ThrowableError {
|
1973
|
-
message: string;
|
1974
|
-
protected response?: unknown;
|
1975
|
-
constructor(message: string, response?: unknown);
|
1976
|
-
throw(): void;
|
1977
|
-
}
|
1978
|
-
|
1979
|
-
declare class _22 extends ThrowableError {
|
1980
|
-
message: string;
|
1981
|
-
protected response?: unknown;
|
1982
|
-
constructor(message: string, response?: unknown);
|
1983
|
-
throw(): void;
|
1984
|
-
}
|
1985
|
-
|
1986
|
-
declare class _23 extends ThrowableError {
|
1987
|
-
message: string;
|
1988
|
-
protected response?: unknown;
|
1989
|
-
constructor(message: string, response?: unknown);
|
1990
|
-
throw(): void;
|
1991
|
-
}
|
1992
|
-
|
1993
1772
|
/**
|
1994
1773
|
* The shape of the model inside the application code - what the users use
|
1995
1774
|
*/
|
1996
1775
|
declare const tokenOkResponse: z.ZodLazy<z.ZodObject<{
|
1997
|
-
token: z.
|
1776
|
+
token: z.ZodString;
|
1998
1777
|
}, "strip", z.ZodTypeAny, {
|
1999
|
-
token
|
1778
|
+
token: string;
|
2000
1779
|
}, {
|
2001
|
-
token
|
1780
|
+
token: string;
|
2002
1781
|
}>>;
|
2003
1782
|
/**
|
2004
1783
|
*
|
@@ -2016,20 +1795,6 @@ declare class IFrameService extends BaseService {
|
|
2016
1795
|
token(requestConfig?: RequestConfig): Promise<HttpResponse<TokenOkResponse>>;
|
2017
1796
|
}
|
2018
1797
|
|
2019
|
-
declare class _24 extends ThrowableError {
|
2020
|
-
message: string;
|
2021
|
-
protected response?: unknown;
|
2022
|
-
constructor(message: string, response?: unknown);
|
2023
|
-
throw(): void;
|
2024
|
-
}
|
2025
|
-
|
2026
|
-
declare class _25 extends ThrowableError {
|
2027
|
-
message: string;
|
2028
|
-
protected response?: unknown;
|
2029
|
-
constructor(message: string, response?: unknown);
|
2030
|
-
throw(): void;
|
2031
|
-
}
|
2032
|
-
|
2033
1798
|
/**
|
2034
1799
|
* The shape of the model inside the application code - what the users use
|
2035
1800
|
*/
|
@@ -2093,6 +1858,20 @@ declare enum GrantType {
|
|
2093
1858
|
CLIENT_CREDENTIALS = "client_credentials"
|
2094
1859
|
}
|
2095
1860
|
|
1861
|
+
declare class BadRequest extends ThrowableError {
|
1862
|
+
message: string;
|
1863
|
+
protected response?: unknown;
|
1864
|
+
constructor(message: string, response?: unknown);
|
1865
|
+
throw(): void;
|
1866
|
+
}
|
1867
|
+
|
1868
|
+
declare class Unauthorized extends ThrowableError {
|
1869
|
+
message: string;
|
1870
|
+
protected response?: unknown;
|
1871
|
+
constructor(message: string, response?: unknown);
|
1872
|
+
throw(): void;
|
1873
|
+
}
|
1874
|
+
|
2096
1875
|
declare class Celitech {
|
2097
1876
|
config: SdkConfig;
|
2098
1877
|
readonly destinations: DestinationsService;
|
@@ -2111,4 +1890,4 @@ declare class Celitech {
|
|
2111
1890
|
set accessToken(accessToken: string);
|
2112
1891
|
}
|
2113
1892
|
|
2114
|
-
export { Celitech, CreatePurchaseOkResponse, CreatePurchaseOkResponseProfile, CreatePurchaseOkResponsePurchase, CreatePurchaseRequest, CreatePurchaseV2OkResponse, CreatePurchaseV2OkResponseProfile, CreatePurchaseV2OkResponsePurchase, CreatePurchaseV2Request, Destinations, DestinationsService, Device, ESimService, EditPurchaseOkResponse, EditPurchaseRequest, Environment, GetAccessTokenOkResponse, GetAccessTokenRequest, GetEsimDeviceOkResponse, GetEsimHistoryOkResponse, GetEsimHistoryOkResponseEsim,
|
1893
|
+
export { BadRequest, Celitech, CreatePurchaseOkResponse, CreatePurchaseOkResponseProfile, CreatePurchaseOkResponsePurchase, CreatePurchaseRequest, CreatePurchaseV2OkResponse, CreatePurchaseV2OkResponseProfile, CreatePurchaseV2OkResponsePurchase, CreatePurchaseV2Request, Destinations, DestinationsService, Device, ESimService, EditPurchaseOkResponse, EditPurchaseRequest, Environment, GetAccessTokenOkResponse, GetAccessTokenRequest, GetEsimDeviceOkResponse, GetEsimHistoryOkResponse, GetEsimHistoryOkResponseEsim, GetEsimOkResponse, GetEsimOkResponseEsim, GetPurchaseConsumptionOkResponse, GrantType, History, HttpError, HttpMetadata, HttpMethod, HttpResponse, IFrameService, ListDestinationsOkResponse, ListPackagesOkResponse, ListPurchasesOkResponse, OAuthService, Package_, Packages, PackagesService, Purchases, PurchasesEsim, PurchasesService, RequestConfig, RetryOptions, SdkConfig, TokenOkResponse, TopUpEsimOkResponse, TopUpEsimOkResponseProfile, TopUpEsimOkResponsePurchase, TopUpEsimRequest, Unauthorized, ValidationOptions };
|