celitech-sdk 1.3.49 → 1.3.52

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 CHANGED
@@ -1,4 +1,4 @@
1
- # Celitech TypeScript SDK 1.3.49
1
+ # Celitech TypeScript SDK 1.3.52
2
2
 
3
3
  Welcome to the Celitech SDK documentation. This guide will help you get started with integrating and using the Celitech SDK in your project.
4
4
 
@@ -6,8 +6,8 @@ Welcome to the Celitech SDK documentation. This guide will help you get started
6
6
 
7
7
  ## Versions
8
8
 
9
- - API version: `1.3.49`
10
- - SDK version: `1.3.49`
9
+ - API version: `1.3.52`
10
+ - SDK version: `1.3.52`
11
11
 
12
12
  ## About the API
13
13
 
package/dist/index.d.ts CHANGED
@@ -309,26 +309,31 @@ declare const listDestinationsOkResponse: z.ZodLazy<z.ZodObject<{
309
309
  destinations: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
310
310
  name: z.ZodOptional<z.ZodString>;
311
311
  destination: z.ZodOptional<z.ZodString>;
312
+ destinationIso2: z.ZodOptional<z.ZodString>;
312
313
  supportedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
313
314
  }, "strip", z.ZodTypeAny, {
314
315
  name?: string | undefined;
315
316
  destination?: string | undefined;
317
+ destinationIso2?: string | undefined;
316
318
  supportedCountries?: string[] | undefined;
317
319
  }, {
318
320
  name?: string | undefined;
319
321
  destination?: string | undefined;
322
+ destinationIso2?: string | undefined;
320
323
  supportedCountries?: string[] | undefined;
321
324
  }>>, "many">>;
322
325
  }, "strip", z.ZodTypeAny, {
323
326
  destinations?: {
324
327
  name?: string | undefined;
325
328
  destination?: string | undefined;
329
+ destinationIso2?: string | undefined;
326
330
  supportedCountries?: string[] | undefined;
327
331
  }[] | undefined;
328
332
  }, {
329
333
  destinations?: {
330
334
  name?: string | undefined;
331
335
  destination?: string | undefined;
336
+ destinationIso2?: string | undefined;
332
337
  supportedCountries?: string[] | undefined;
333
338
  }[] | undefined;
334
339
  }>>;
@@ -354,21 +359,25 @@ declare class DestinationsService extends BaseService {
354
359
  declare const destinations: z.ZodLazy<z.ZodObject<{
355
360
  name: z.ZodOptional<z.ZodString>;
356
361
  destination: z.ZodOptional<z.ZodString>;
362
+ destinationIso2: z.ZodOptional<z.ZodString>;
357
363
  supportedCountries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
358
364
  }, "strip", z.ZodTypeAny, {
359
365
  name?: string | undefined;
360
366
  destination?: string | undefined;
367
+ destinationIso2?: string | undefined;
361
368
  supportedCountries?: string[] | undefined;
362
369
  }, {
363
370
  name?: string | undefined;
364
371
  destination?: string | undefined;
372
+ destinationIso2?: string | undefined;
365
373
  supportedCountries?: string[] | undefined;
366
374
  }>>;
367
375
  /**
368
376
  *
369
377
  * @typedef {Destinations} destinations
370
378
  * @property {string} - Name of the destination
371
- * @property {string} - ISO representation of the destination
379
+ * @property {string} - ISO3 representation of the destination
380
+ * @property {string} - ISO2 representation of the destination
372
381
  * @property {string[]} - This array indicates the geographical area covered by a specific destination. If the destination represents a single country, the array will include that country. However, if the destination represents a broader regional scope, the array will be populated with the names of the countries belonging to that region.
373
382
  */
374
383
  type Destinations = z.infer<typeof destinations>;
@@ -394,6 +403,7 @@ declare const listPackagesOkResponse: z.ZodLazy<z.ZodObject<{
394
403
  packages: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodObject<{
395
404
  id: z.ZodOptional<z.ZodString>;
396
405
  destination: z.ZodOptional<z.ZodString>;
406
+ destinationIso2: z.ZodOptional<z.ZodString>;
397
407
  dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
398
408
  minDays: z.ZodOptional<z.ZodNumber>;
399
409
  maxDays: z.ZodOptional<z.ZodNumber>;
@@ -401,6 +411,7 @@ declare const listPackagesOkResponse: z.ZodLazy<z.ZodObject<{
401
411
  }, "strip", z.ZodTypeAny, {
402
412
  id?: string | undefined;
403
413
  destination?: string | undefined;
414
+ destinationIso2?: string | undefined;
404
415
  dataLimitInBytes?: number | undefined;
405
416
  minDays?: number | undefined;
406
417
  maxDays?: number | undefined;
@@ -408,6 +419,7 @@ declare const listPackagesOkResponse: z.ZodLazy<z.ZodObject<{
408
419
  }, {
409
420
  id?: string | undefined;
410
421
  destination?: string | undefined;
422
+ destinationIso2?: string | undefined;
411
423
  dataLimitInBytes?: number | undefined;
412
424
  minDays?: number | undefined;
413
425
  maxDays?: number | undefined;
@@ -418,6 +430,7 @@ declare const listPackagesOkResponse: z.ZodLazy<z.ZodObject<{
418
430
  packages?: {
419
431
  id?: string | undefined;
420
432
  destination?: string | undefined;
433
+ destinationIso2?: string | undefined;
421
434
  dataLimitInBytes?: number | undefined;
422
435
  minDays?: number | undefined;
423
436
  maxDays?: number | undefined;
@@ -428,6 +441,7 @@ declare const listPackagesOkResponse: z.ZodLazy<z.ZodObject<{
428
441
  packages?: {
429
442
  id?: string | undefined;
430
443
  destination?: string | undefined;
444
+ destinationIso2?: string | undefined;
431
445
  dataLimitInBytes?: number | undefined;
432
446
  minDays?: number | undefined;
433
447
  maxDays?: number | undefined;
@@ -457,7 +471,7 @@ interface ListPackagesParams {
457
471
  declare class PackagesService extends BaseService {
458
472
  /**
459
473
  * List Packages
460
- * @param {string} [params.destination] - ISO representation of the package's destination.
474
+ * @param {string} [params.destination] - ISO representation of the package's destination. Supports both ISO2 (e.g., 'FR') and ISO3 (e.g., 'FRA') country codes.
461
475
  * @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
462
476
  * @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
463
477
  * @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
@@ -477,6 +491,7 @@ declare class PackagesService extends BaseService {
477
491
  declare const packages: z.ZodLazy<z.ZodObject<{
478
492
  id: z.ZodOptional<z.ZodString>;
479
493
  destination: z.ZodOptional<z.ZodString>;
494
+ destinationIso2: z.ZodOptional<z.ZodString>;
480
495
  dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
481
496
  minDays: z.ZodOptional<z.ZodNumber>;
482
497
  maxDays: z.ZodOptional<z.ZodNumber>;
@@ -484,6 +499,7 @@ declare const packages: z.ZodLazy<z.ZodObject<{
484
499
  }, "strip", z.ZodTypeAny, {
485
500
  id?: string | undefined;
486
501
  destination?: string | undefined;
502
+ destinationIso2?: string | undefined;
487
503
  dataLimitInBytes?: number | undefined;
488
504
  minDays?: number | undefined;
489
505
  maxDays?: number | undefined;
@@ -491,6 +507,7 @@ declare const packages: z.ZodLazy<z.ZodObject<{
491
507
  }, {
492
508
  id?: string | undefined;
493
509
  destination?: string | undefined;
510
+ destinationIso2?: string | undefined;
494
511
  dataLimitInBytes?: number | undefined;
495
512
  minDays?: number | undefined;
496
513
  maxDays?: number | undefined;
@@ -500,7 +517,8 @@ declare const packages: z.ZodLazy<z.ZodObject<{
500
517
  *
501
518
  * @typedef {Packages} packages
502
519
  * @property {string} - ID of the package
503
- * @property {string} - ISO representation of the package's destination.
520
+ * @property {string} - ISO3 representation of the package's destination.
521
+ * @property {string} - ISO2 representation of the package's destination.
504
522
  * @property {number} - Size of the package in Bytes
505
523
  * @property {number} - Min number of days for the package
506
524
  * @property {number} - Max number of days for the package
@@ -559,7 +577,7 @@ declare const createPurchaseV2Request: z.ZodLazy<z.ZodObject<{
559
577
  /**
560
578
  *
561
579
  * @typedef {CreatePurchaseV2Request} createPurchaseV2Request
562
- * @property {string} - ISO representation of the package's destination.
580
+ * @property {string} - ISO representation of the package's destination. Supports both ISO2 (e.g., 'FR') and ISO3 (e.g., 'FRA') country codes.
563
581
  * @property {number} - Size of the package in GB. The available options are 0.5, 1, 2, 3, 5, 8, 20GB
564
582
  * @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
565
583
  * @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
@@ -648,18 +666,21 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
648
666
  id: z.ZodOptional<z.ZodString>;
649
667
  dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
650
668
  destination: z.ZodOptional<z.ZodString>;
669
+ destinationIso2: z.ZodOptional<z.ZodString>;
651
670
  destinationName: z.ZodOptional<z.ZodString>;
652
671
  priceInCents: z.ZodOptional<z.ZodNumber>;
653
672
  }, "strip", z.ZodTypeAny, {
654
673
  id?: string | undefined;
655
674
  dataLimitInBytes?: number | undefined;
656
675
  destination?: string | undefined;
676
+ destinationIso2?: string | undefined;
657
677
  destinationName?: string | undefined;
658
678
  priceInCents?: number | undefined;
659
679
  }, {
660
680
  id?: string | undefined;
661
681
  dataLimitInBytes?: number | undefined;
662
682
  destination?: string | undefined;
683
+ destinationIso2?: string | undefined;
663
684
  destinationName?: string | undefined;
664
685
  priceInCents?: number | undefined;
665
686
  }>>>;
@@ -685,6 +706,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
685
706
  id?: string | undefined;
686
707
  dataLimitInBytes?: number | undefined;
687
708
  destination?: string | undefined;
709
+ destinationIso2?: string | undefined;
688
710
  destinationName?: string | undefined;
689
711
  priceInCents?: number | undefined;
690
712
  } | undefined;
@@ -706,6 +728,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
706
728
  id?: string | undefined;
707
729
  dataLimitInBytes?: number | undefined;
708
730
  destination?: string | undefined;
731
+ destinationIso2?: string | undefined;
709
732
  destinationName?: string | undefined;
710
733
  priceInCents?: number | undefined;
711
734
  } | undefined;
@@ -730,6 +753,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
730
753
  id?: string | undefined;
731
754
  dataLimitInBytes?: number | undefined;
732
755
  destination?: string | undefined;
756
+ destinationIso2?: string | undefined;
733
757
  destinationName?: string | undefined;
734
758
  priceInCents?: number | undefined;
735
759
  } | undefined;
@@ -754,6 +778,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
754
778
  id?: string | undefined;
755
779
  dataLimitInBytes?: number | undefined;
756
780
  destination?: string | undefined;
781
+ destinationIso2?: string | undefined;
757
782
  destinationName?: string | undefined;
758
783
  priceInCents?: number | undefined;
759
784
  } | undefined;
@@ -825,7 +850,7 @@ declare const createPurchaseRequest: z.ZodLazy<z.ZodObject<{
825
850
  /**
826
851
  *
827
852
  * @typedef {CreatePurchaseRequest} createPurchaseRequest
828
- * @property {string} - ISO representation of the package's destination.
853
+ * @property {string} - ISO representation of the package's destination. Supports both ISO2 (e.g., 'FR') and ISO3 (e.g., 'FRA') country codes.
829
854
  * @property {number} - Size of the package in GB. The available options are 0.5, 1, 2, 3, 5, 8, 20GB
830
855
  * @property {string} - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
831
856
  * @property {string} - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
@@ -1239,18 +1264,21 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1239
1264
  id: z.ZodOptional<z.ZodString>;
1240
1265
  dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
1241
1266
  destination: z.ZodOptional<z.ZodString>;
1267
+ destinationIso2: z.ZodOptional<z.ZodString>;
1242
1268
  destinationName: z.ZodOptional<z.ZodString>;
1243
1269
  priceInCents: z.ZodOptional<z.ZodNumber>;
1244
1270
  }, "strip", z.ZodTypeAny, {
1245
1271
  id?: string | undefined;
1246
1272
  dataLimitInBytes?: number | undefined;
1247
1273
  destination?: string | undefined;
1274
+ destinationIso2?: string | undefined;
1248
1275
  destinationName?: string | undefined;
1249
1276
  priceInCents?: number | undefined;
1250
1277
  }, {
1251
1278
  id?: string | undefined;
1252
1279
  dataLimitInBytes?: number | undefined;
1253
1280
  destination?: string | undefined;
1281
+ destinationIso2?: string | undefined;
1254
1282
  destinationName?: string | undefined;
1255
1283
  priceInCents?: number | undefined;
1256
1284
  }>>>;
@@ -1276,6 +1304,7 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1276
1304
  id?: string | undefined;
1277
1305
  dataLimitInBytes?: number | undefined;
1278
1306
  destination?: string | undefined;
1307
+ destinationIso2?: string | undefined;
1279
1308
  destinationName?: string | undefined;
1280
1309
  priceInCents?: number | undefined;
1281
1310
  } | undefined;
@@ -1297,6 +1326,7 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1297
1326
  id?: string | undefined;
1298
1327
  dataLimitInBytes?: number | undefined;
1299
1328
  destination?: string | undefined;
1329
+ destinationIso2?: string | undefined;
1300
1330
  destinationName?: string | undefined;
1301
1331
  priceInCents?: number | undefined;
1302
1332
  } | undefined;
@@ -1332,18 +1362,21 @@ declare const package_: z.ZodLazy<z.ZodObject<{
1332
1362
  id: z.ZodOptional<z.ZodString>;
1333
1363
  dataLimitInBytes: z.ZodOptional<z.ZodNumber>;
1334
1364
  destination: z.ZodOptional<z.ZodString>;
1365
+ destinationIso2: z.ZodOptional<z.ZodString>;
1335
1366
  destinationName: z.ZodOptional<z.ZodString>;
1336
1367
  priceInCents: z.ZodOptional<z.ZodNumber>;
1337
1368
  }, "strip", z.ZodTypeAny, {
1338
1369
  id?: string | undefined;
1339
1370
  dataLimitInBytes?: number | undefined;
1340
1371
  destination?: string | undefined;
1372
+ destinationIso2?: string | undefined;
1341
1373
  destinationName?: string | undefined;
1342
1374
  priceInCents?: number | undefined;
1343
1375
  }, {
1344
1376
  id?: string | undefined;
1345
1377
  dataLimitInBytes?: number | undefined;
1346
1378
  destination?: string | undefined;
1379
+ destinationIso2?: string | undefined;
1347
1380
  destinationName?: string | undefined;
1348
1381
  priceInCents?: number | undefined;
1349
1382
  }>>;
@@ -1352,7 +1385,8 @@ declare const package_: z.ZodLazy<z.ZodObject<{
1352
1385
  * @typedef {Package_} package_
1353
1386
  * @property {string} - ID of the package
1354
1387
  * @property {number} - Size of the package in Bytes
1355
- * @property {string} - ISO representation of the package's destination.
1388
+ * @property {string} - ISO3 representation of the package's destination.
1389
+ * @property {string} - ISO2 representation of the package's destination.
1356
1390
  * @property {string} - Name of the package's destination
1357
1391
  * @property {number} - Price of the package in cents
1358
1392
  */
package/dist/index.js CHANGED
@@ -1495,6 +1495,7 @@ var destinations = import_zod6.z.lazy(() => {
1495
1495
  return import_zod6.z.object({
1496
1496
  name: import_zod6.z.string().optional(),
1497
1497
  destination: import_zod6.z.string().optional(),
1498
+ destinationIso2: import_zod6.z.string().optional(),
1498
1499
  supportedCountries: import_zod6.z.array(import_zod6.z.string()).optional()
1499
1500
  });
1500
1501
  });
@@ -1502,10 +1503,12 @@ var destinationsResponse = import_zod6.z.lazy(() => {
1502
1503
  return import_zod6.z.object({
1503
1504
  name: import_zod6.z.string().optional(),
1504
1505
  destination: import_zod6.z.string().optional(),
1506
+ destinationISO2: import_zod6.z.string().optional(),
1505
1507
  supportedCountries: import_zod6.z.array(import_zod6.z.string()).optional()
1506
1508
  }).transform((data) => ({
1507
1509
  name: data["name"],
1508
1510
  destination: data["destination"],
1511
+ destinationIso2: data["destinationISO2"],
1509
1512
  supportedCountries: data["supportedCountries"]
1510
1513
  }));
1511
1514
  });
@@ -1513,10 +1516,12 @@ var destinationsRequest = import_zod6.z.lazy(() => {
1513
1516
  return import_zod6.z.object({
1514
1517
  name: import_zod6.z.string().optional(),
1515
1518
  destination: import_zod6.z.string().optional(),
1519
+ destinationIso2: import_zod6.z.string().optional(),
1516
1520
  supportedCountries: import_zod6.z.array(import_zod6.z.string()).optional()
1517
1521
  }).transform((data) => ({
1518
1522
  name: data["name"],
1519
1523
  destination: data["destination"],
1524
+ destinationISO2: data["destinationIso2"],
1520
1525
  supportedCountries: data["supportedCountries"]
1521
1526
  }));
1522
1527
  });
@@ -1637,6 +1642,7 @@ var packages = import_zod11.z.lazy(() => {
1637
1642
  return import_zod11.z.object({
1638
1643
  id: import_zod11.z.string().optional(),
1639
1644
  destination: import_zod11.z.string().optional(),
1645
+ destinationIso2: import_zod11.z.string().optional(),
1640
1646
  dataLimitInBytes: import_zod11.z.number().optional(),
1641
1647
  minDays: import_zod11.z.number().optional(),
1642
1648
  maxDays: import_zod11.z.number().optional(),
@@ -1647,6 +1653,7 @@ var packagesResponse = import_zod11.z.lazy(() => {
1647
1653
  return import_zod11.z.object({
1648
1654
  id: import_zod11.z.string().optional(),
1649
1655
  destination: import_zod11.z.string().optional(),
1656
+ destinationISO2: import_zod11.z.string().optional(),
1650
1657
  dataLimitInBytes: import_zod11.z.number().optional(),
1651
1658
  minDays: import_zod11.z.number().optional(),
1652
1659
  maxDays: import_zod11.z.number().optional(),
@@ -1654,6 +1661,7 @@ var packagesResponse = import_zod11.z.lazy(() => {
1654
1661
  }).transform((data) => ({
1655
1662
  id: data["id"],
1656
1663
  destination: data["destination"],
1664
+ destinationIso2: data["destinationISO2"],
1657
1665
  dataLimitInBytes: data["dataLimitInBytes"],
1658
1666
  minDays: data["minDays"],
1659
1667
  maxDays: data["maxDays"],
@@ -1664,6 +1672,7 @@ var packagesRequest = import_zod11.z.lazy(() => {
1664
1672
  return import_zod11.z.object({
1665
1673
  id: import_zod11.z.string().optional(),
1666
1674
  destination: import_zod11.z.string().optional(),
1675
+ destinationIso2: import_zod11.z.string().optional(),
1667
1676
  dataLimitInBytes: import_zod11.z.number().optional(),
1668
1677
  minDays: import_zod11.z.number().optional(),
1669
1678
  maxDays: import_zod11.z.number().optional(),
@@ -1671,6 +1680,7 @@ var packagesRequest = import_zod11.z.lazy(() => {
1671
1680
  }).transform((data) => ({
1672
1681
  id: data["id"],
1673
1682
  destination: data["destination"],
1683
+ destinationISO2: data["destinationIso2"],
1674
1684
  dataLimitInBytes: data["dataLimitInBytes"],
1675
1685
  minDays: data["minDays"],
1676
1686
  maxDays: data["maxDays"],
@@ -1752,7 +1762,7 @@ var _3 = class extends ThrowableError {
1752
1762
  var PackagesService = class extends BaseService {
1753
1763
  /**
1754
1764
  * List Packages
1755
- * @param {string} [params.destination] - ISO representation of the package's destination.
1765
+ * @param {string} [params.destination] - ISO representation of the package's destination. Supports both ISO2 (e.g., 'FR') and ISO3 (e.g., 'FRA') country codes.
1756
1766
  * @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
1757
1767
  * @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
1758
1768
  * @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
@@ -2020,6 +2030,7 @@ var package_ = import_zod22.z.lazy(() => {
2020
2030
  id: import_zod22.z.string().optional(),
2021
2031
  dataLimitInBytes: import_zod22.z.number().optional(),
2022
2032
  destination: import_zod22.z.string().optional(),
2033
+ destinationIso2: import_zod22.z.string().optional(),
2023
2034
  destinationName: import_zod22.z.string().optional(),
2024
2035
  priceInCents: import_zod22.z.number().optional()
2025
2036
  });
@@ -2029,12 +2040,14 @@ var packageResponse = import_zod22.z.lazy(() => {
2029
2040
  id: import_zod22.z.string().optional(),
2030
2041
  dataLimitInBytes: import_zod22.z.number().optional(),
2031
2042
  destination: import_zod22.z.string().optional(),
2043
+ destinationISO2: import_zod22.z.string().optional(),
2032
2044
  destinationName: import_zod22.z.string().optional(),
2033
2045
  priceInCents: import_zod22.z.number().optional()
2034
2046
  }).transform((data) => ({
2035
2047
  id: data["id"],
2036
2048
  dataLimitInBytes: data["dataLimitInBytes"],
2037
2049
  destination: data["destination"],
2050
+ destinationIso2: data["destinationISO2"],
2038
2051
  destinationName: data["destinationName"],
2039
2052
  priceInCents: data["priceInCents"]
2040
2053
  }));
@@ -2044,12 +2057,14 @@ var packageRequest = import_zod22.z.lazy(() => {
2044
2057
  id: import_zod22.z.string().optional(),
2045
2058
  dataLimitInBytes: import_zod22.z.number().optional(),
2046
2059
  destination: import_zod22.z.string().optional(),
2060
+ destinationIso2: import_zod22.z.string().optional(),
2047
2061
  destinationName: import_zod22.z.string().optional(),
2048
2062
  priceInCents: import_zod22.z.number().optional()
2049
2063
  }).transform((data) => ({
2050
2064
  id: data["id"],
2051
2065
  dataLimitInBytes: data["dataLimitInBytes"],
2052
2066
  destination: data["destination"],
2067
+ destinationISO2: data["destinationIso2"],
2053
2068
  destinationName: data["destinationName"],
2054
2069
  priceInCents: data["priceInCents"]
2055
2070
  }));
package/dist/index.mjs CHANGED
@@ -1451,6 +1451,7 @@ var destinations = z4.lazy(() => {
1451
1451
  return z4.object({
1452
1452
  name: z4.string().optional(),
1453
1453
  destination: z4.string().optional(),
1454
+ destinationIso2: z4.string().optional(),
1454
1455
  supportedCountries: z4.array(z4.string()).optional()
1455
1456
  });
1456
1457
  });
@@ -1458,10 +1459,12 @@ var destinationsResponse = z4.lazy(() => {
1458
1459
  return z4.object({
1459
1460
  name: z4.string().optional(),
1460
1461
  destination: z4.string().optional(),
1462
+ destinationISO2: z4.string().optional(),
1461
1463
  supportedCountries: z4.array(z4.string()).optional()
1462
1464
  }).transform((data) => ({
1463
1465
  name: data["name"],
1464
1466
  destination: data["destination"],
1467
+ destinationIso2: data["destinationISO2"],
1465
1468
  supportedCountries: data["supportedCountries"]
1466
1469
  }));
1467
1470
  });
@@ -1469,10 +1472,12 @@ var destinationsRequest = z4.lazy(() => {
1469
1472
  return z4.object({
1470
1473
  name: z4.string().optional(),
1471
1474
  destination: z4.string().optional(),
1475
+ destinationIso2: z4.string().optional(),
1472
1476
  supportedCountries: z4.array(z4.string()).optional()
1473
1477
  }).transform((data) => ({
1474
1478
  name: data["name"],
1475
1479
  destination: data["destination"],
1480
+ destinationISO2: data["destinationIso2"],
1476
1481
  supportedCountries: data["supportedCountries"]
1477
1482
  }));
1478
1483
  });
@@ -1593,6 +1598,7 @@ var packages = z9.lazy(() => {
1593
1598
  return z9.object({
1594
1599
  id: z9.string().optional(),
1595
1600
  destination: z9.string().optional(),
1601
+ destinationIso2: z9.string().optional(),
1596
1602
  dataLimitInBytes: z9.number().optional(),
1597
1603
  minDays: z9.number().optional(),
1598
1604
  maxDays: z9.number().optional(),
@@ -1603,6 +1609,7 @@ var packagesResponse = z9.lazy(() => {
1603
1609
  return z9.object({
1604
1610
  id: z9.string().optional(),
1605
1611
  destination: z9.string().optional(),
1612
+ destinationISO2: z9.string().optional(),
1606
1613
  dataLimitInBytes: z9.number().optional(),
1607
1614
  minDays: z9.number().optional(),
1608
1615
  maxDays: z9.number().optional(),
@@ -1610,6 +1617,7 @@ var packagesResponse = z9.lazy(() => {
1610
1617
  }).transform((data) => ({
1611
1618
  id: data["id"],
1612
1619
  destination: data["destination"],
1620
+ destinationIso2: data["destinationISO2"],
1613
1621
  dataLimitInBytes: data["dataLimitInBytes"],
1614
1622
  minDays: data["minDays"],
1615
1623
  maxDays: data["maxDays"],
@@ -1620,6 +1628,7 @@ var packagesRequest = z9.lazy(() => {
1620
1628
  return z9.object({
1621
1629
  id: z9.string().optional(),
1622
1630
  destination: z9.string().optional(),
1631
+ destinationIso2: z9.string().optional(),
1623
1632
  dataLimitInBytes: z9.number().optional(),
1624
1633
  minDays: z9.number().optional(),
1625
1634
  maxDays: z9.number().optional(),
@@ -1627,6 +1636,7 @@ var packagesRequest = z9.lazy(() => {
1627
1636
  }).transform((data) => ({
1628
1637
  id: data["id"],
1629
1638
  destination: data["destination"],
1639
+ destinationISO2: data["destinationIso2"],
1630
1640
  dataLimitInBytes: data["dataLimitInBytes"],
1631
1641
  minDays: data["minDays"],
1632
1642
  maxDays: data["maxDays"],
@@ -1708,7 +1718,7 @@ var _3 = class extends ThrowableError {
1708
1718
  var PackagesService = class extends BaseService {
1709
1719
  /**
1710
1720
  * List Packages
1711
- * @param {string} [params.destination] - ISO representation of the package's destination.
1721
+ * @param {string} [params.destination] - ISO representation of the package's destination. Supports both ISO2 (e.g., 'FR') and ISO3 (e.g., 'FRA') country codes.
1712
1722
  * @param {string} [params.startDate] - Start date of the package's validity in the format 'yyyy-MM-dd'. This date can be set to the current day or any day within the next 12 months.
1713
1723
  * @param {string} [params.endDate] - End date of the package's validity in the format 'yyyy-MM-dd'. End date can be maximum 90 days after Start date.
1714
1724
  * @param {string} [params.afterCursor] - To get the next batch of results, use this parameter. It tells the API where to start fetching data after the last item you received. It helps you avoid repeats and efficiently browse through large sets of data.
@@ -1976,6 +1986,7 @@ var package_ = z20.lazy(() => {
1976
1986
  id: z20.string().optional(),
1977
1987
  dataLimitInBytes: z20.number().optional(),
1978
1988
  destination: z20.string().optional(),
1989
+ destinationIso2: z20.string().optional(),
1979
1990
  destinationName: z20.string().optional(),
1980
1991
  priceInCents: z20.number().optional()
1981
1992
  });
@@ -1985,12 +1996,14 @@ var packageResponse = z20.lazy(() => {
1985
1996
  id: z20.string().optional(),
1986
1997
  dataLimitInBytes: z20.number().optional(),
1987
1998
  destination: z20.string().optional(),
1999
+ destinationISO2: z20.string().optional(),
1988
2000
  destinationName: z20.string().optional(),
1989
2001
  priceInCents: z20.number().optional()
1990
2002
  }).transform((data) => ({
1991
2003
  id: data["id"],
1992
2004
  dataLimitInBytes: data["dataLimitInBytes"],
1993
2005
  destination: data["destination"],
2006
+ destinationIso2: data["destinationISO2"],
1994
2007
  destinationName: data["destinationName"],
1995
2008
  priceInCents: data["priceInCents"]
1996
2009
  }));
@@ -2000,12 +2013,14 @@ var packageRequest = z20.lazy(() => {
2000
2013
  id: z20.string().optional(),
2001
2014
  dataLimitInBytes: z20.number().optional(),
2002
2015
  destination: z20.string().optional(),
2016
+ destinationIso2: z20.string().optional(),
2003
2017
  destinationName: z20.string().optional(),
2004
2018
  priceInCents: z20.number().optional()
2005
2019
  }).transform((data) => ({
2006
2020
  id: data["id"],
2007
2021
  dataLimitInBytes: data["dataLimitInBytes"],
2008
2022
  destination: data["destination"],
2023
+ destinationISO2: data["destinationIso2"],
2009
2024
  destinationName: data["destinationName"],
2010
2025
  priceInCents: data["priceInCents"]
2011
2026
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "celitech-sdk",
3
- "version": "1.3.49",
3
+ "version": "1.3.52",
4
4
  "description": "Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/)",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",