celitech-sdk 1.3.54 → 1.3.56

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.54
1
+ # Celitech TypeScript SDK 1.3.56
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.54`
10
- - SDK version: `1.3.54`
9
+ - API version: `1.3.56`
10
+ - SDK version: `1.3.56`
11
11
 
12
12
  ## About the API
13
13
 
package/dist/index.d.ts CHANGED
@@ -634,7 +634,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
634
634
  }>>>;
635
635
  source: z.ZodOptional<z.ZodString>;
636
636
  purchaseType: z.ZodOptional<z.ZodString>;
637
- referenceId: z.ZodOptional<z.ZodString>;
637
+ referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
638
638
  }, "strip", z.ZodTypeAny, {
639
639
  id?: string | undefined;
640
640
  startDate?: string | undefined;
@@ -656,7 +656,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
656
656
  } | undefined;
657
657
  source?: string | undefined;
658
658
  purchaseType?: string | undefined;
659
- referenceId?: string | undefined;
659
+ referenceId?: string | null | undefined;
660
660
  }, {
661
661
  id?: string | undefined;
662
662
  startDate?: string | undefined;
@@ -678,7 +678,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
678
678
  } | undefined;
679
679
  source?: string | undefined;
680
680
  purchaseType?: string | undefined;
681
- referenceId?: string | undefined;
681
+ referenceId?: string | null | undefined;
682
682
  }>>, "many">>;
683
683
  afterCursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
684
684
  }, "strip", z.ZodTypeAny, {
@@ -703,7 +703,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
703
703
  } | undefined;
704
704
  source?: string | undefined;
705
705
  purchaseType?: string | undefined;
706
- referenceId?: string | undefined;
706
+ referenceId?: string | null | undefined;
707
707
  }[] | undefined;
708
708
  afterCursor?: string | null | undefined;
709
709
  }, {
@@ -728,7 +728,7 @@ declare const listPurchasesOkResponse: z.ZodLazy<z.ZodObject<{
728
728
  } | undefined;
729
729
  source?: string | undefined;
730
730
  purchaseType?: string | undefined;
731
- referenceId?: string | undefined;
731
+ referenceId?: string | null | undefined;
732
732
  }[] | undefined;
733
733
  afterCursor?: string | null | undefined;
734
734
  }>>;
@@ -744,6 +744,7 @@ interface ListPurchasesParams {
744
744
  iccid?: string;
745
745
  afterDate?: string;
746
746
  beforeDate?: string;
747
+ email?: string;
747
748
  referenceId?: string;
748
749
  afterCursor?: string;
749
750
  limit?: number;
@@ -1104,6 +1105,7 @@ declare class PurchasesService extends BaseService {
1104
1105
  * @param {string} [params.iccid] - ID of the eSIM
1105
1106
  * @param {string} [params.afterDate] - Start date of the interval for filtering purchases in the format 'yyyy-MM-dd'
1106
1107
  * @param {string} [params.beforeDate] - End date of the interval for filtering purchases in the format 'yyyy-MM-dd'
1108
+ * @param {string} [params.email] - Email associated to the purchase.
1107
1109
  * @param {string} [params.referenceId] - The referenceId that was provided by the partner during the purchase or topup flow.
1108
1110
  * @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.
1109
1111
  * @param {number} [params.limit] - Maximum number of purchases to be returned in the response. The value must be greater than 0 and less than or equal to 100. If not provided, the default value is 20
@@ -1120,7 +1122,7 @@ declare class PurchasesService extends BaseService {
1120
1122
  */
1121
1123
  createPurchase(body: CreatePurchaseRequest, requestConfig?: RequestConfig): Promise<HttpResponse<CreatePurchaseOkResponse>>;
1122
1124
  /**
1123
- * This endpoint is used to top-up an eSIM with the previously associated destination by providing an existing ICCID and the package details. The top-up is only feasible for eSIMs in "ENABLED" or "INSTALLED" state. You can check this state using the Get eSIM Status endpoint.
1125
+ * This endpoint is used to top-up an existing eSIM with the previously associated destination by providing its ICCID and package details. To determine if an eSIM can be topped up, use the Get eSIM Status endpoint, which returns the `isTopUpAllowed` flag.
1124
1126
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
1125
1127
  * @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
1126
1128
  */
@@ -1232,7 +1234,7 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1232
1234
  }>>>;
1233
1235
  source: z.ZodOptional<z.ZodString>;
1234
1236
  purchaseType: z.ZodOptional<z.ZodString>;
1235
- referenceId: z.ZodOptional<z.ZodString>;
1237
+ referenceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1236
1238
  }, "strip", z.ZodTypeAny, {
1237
1239
  id?: string | undefined;
1238
1240
  startDate?: string | undefined;
@@ -1254,7 +1256,7 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1254
1256
  } | undefined;
1255
1257
  source?: string | undefined;
1256
1258
  purchaseType?: string | undefined;
1257
- referenceId?: string | undefined;
1259
+ referenceId?: string | null | undefined;
1258
1260
  }, {
1259
1261
  id?: string | undefined;
1260
1262
  startDate?: string | undefined;
@@ -1276,7 +1278,7 @@ declare const purchases: z.ZodLazy<z.ZodObject<{
1276
1278
  } | undefined;
1277
1279
  source?: string | undefined;
1278
1280
  purchaseType?: string | undefined;
1279
- referenceId?: string | undefined;
1281
+ referenceId?: string | null | undefined;
1280
1282
  }>>;
1281
1283
  /**
1282
1284
  *
@@ -1567,16 +1569,19 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
1567
1569
  smdpAddress: z.ZodOptional<z.ZodString>;
1568
1570
  manualActivationCode: z.ZodOptional<z.ZodString>;
1569
1571
  status: z.ZodOptional<z.ZodString>;
1572
+ isTopUpAllowed: z.ZodOptional<z.ZodBoolean>;
1570
1573
  }, "strip", z.ZodTypeAny, {
1571
1574
  iccid?: string | undefined;
1572
1575
  smdpAddress?: string | undefined;
1573
1576
  manualActivationCode?: string | undefined;
1574
1577
  status?: string | undefined;
1578
+ isTopUpAllowed?: boolean | undefined;
1575
1579
  }, {
1576
1580
  iccid?: string | undefined;
1577
1581
  smdpAddress?: string | undefined;
1578
1582
  manualActivationCode?: string | undefined;
1579
1583
  status?: string | undefined;
1584
+ isTopUpAllowed?: boolean | undefined;
1580
1585
  }>>>;
1581
1586
  }, "strip", z.ZodTypeAny, {
1582
1587
  esim?: {
@@ -1584,6 +1589,7 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
1584
1589
  smdpAddress?: string | undefined;
1585
1590
  manualActivationCode?: string | undefined;
1586
1591
  status?: string | undefined;
1592
+ isTopUpAllowed?: boolean | undefined;
1587
1593
  } | undefined;
1588
1594
  }, {
1589
1595
  esim?: {
@@ -1591,6 +1597,7 @@ declare const getEsimOkResponse: z.ZodLazy<z.ZodObject<{
1591
1597
  smdpAddress?: string | undefined;
1592
1598
  manualActivationCode?: string | undefined;
1593
1599
  status?: string | undefined;
1600
+ isTopUpAllowed?: boolean | undefined;
1594
1601
  } | undefined;
1595
1602
  }>>;
1596
1603
  /**
@@ -1782,16 +1789,19 @@ declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
1782
1789
  smdpAddress: z.ZodOptional<z.ZodString>;
1783
1790
  manualActivationCode: z.ZodOptional<z.ZodString>;
1784
1791
  status: z.ZodOptional<z.ZodString>;
1792
+ isTopUpAllowed: z.ZodOptional<z.ZodBoolean>;
1785
1793
  }, "strip", z.ZodTypeAny, {
1786
1794
  iccid?: string | undefined;
1787
1795
  smdpAddress?: string | undefined;
1788
1796
  manualActivationCode?: string | undefined;
1789
1797
  status?: string | undefined;
1798
+ isTopUpAllowed?: boolean | undefined;
1790
1799
  }, {
1791
1800
  iccid?: string | undefined;
1792
1801
  smdpAddress?: string | undefined;
1793
1802
  manualActivationCode?: string | undefined;
1794
1803
  status?: string | undefined;
1804
+ isTopUpAllowed?: boolean | undefined;
1795
1805
  }>>;
1796
1806
  /**
1797
1807
  *
@@ -1800,6 +1810,7 @@ declare const getEsimOkResponseEsim: z.ZodLazy<z.ZodObject<{
1800
1810
  * @property {string} - SM-DP+ Address
1801
1811
  * @property {string} - The manual activation code
1802
1812
  * @property {string} - Status of the eSIM, possible values are 'RELEASED', 'DOWNLOADED', 'INSTALLED', 'ENABLED', 'DELETED', or 'ERROR'
1813
+ * @property {boolean} - Indicates whether the eSIM is currently eligible for a top-up. This flag should be checked before attempting a top-up request.
1803
1814
  */
1804
1815
  type GetEsimOkResponseEsim = z.infer<typeof getEsimOkResponseEsim>;
1805
1816
 
package/dist/index.js CHANGED
@@ -2134,7 +2134,7 @@ var purchases = import_zod24.z.lazy(() => {
2134
2134
  esim: purchasesEsim.optional(),
2135
2135
  source: import_zod24.z.string().optional(),
2136
2136
  purchaseType: import_zod24.z.string().optional(),
2137
- referenceId: import_zod24.z.string().optional()
2137
+ referenceId: import_zod24.z.string().optional().nullable()
2138
2138
  });
2139
2139
  });
2140
2140
  var purchasesResponse = import_zod24.z.lazy(() => {
@@ -2150,7 +2150,7 @@ var purchasesResponse = import_zod24.z.lazy(() => {
2150
2150
  esim: purchasesEsimResponse.optional(),
2151
2151
  source: import_zod24.z.string().optional(),
2152
2152
  purchaseType: import_zod24.z.string().optional(),
2153
- referenceId: import_zod24.z.string().optional()
2153
+ referenceId: import_zod24.z.string().optional().nullable()
2154
2154
  }).transform((data) => ({
2155
2155
  id: data["id"],
2156
2156
  startDate: data["startDate"],
@@ -2179,7 +2179,7 @@ var purchasesRequest = import_zod24.z.lazy(() => {
2179
2179
  esim: purchasesEsimRequest.optional(),
2180
2180
  source: import_zod24.z.string().optional(),
2181
2181
  purchaseType: import_zod24.z.string().optional(),
2182
- referenceId: import_zod24.z.string().optional()
2182
+ referenceId: import_zod24.z.string().optional().nullable()
2183
2183
  }).transform((data) => ({
2184
2184
  id: data["id"],
2185
2185
  startDate: data["startDate"],
@@ -2926,6 +2926,7 @@ var PurchasesService = class extends BaseService {
2926
2926
  * @param {string} [params.iccid] - ID of the eSIM
2927
2927
  * @param {string} [params.afterDate] - Start date of the interval for filtering purchases in the format 'yyyy-MM-dd'
2928
2928
  * @param {string} [params.beforeDate] - End date of the interval for filtering purchases in the format 'yyyy-MM-dd'
2929
+ * @param {string} [params.email] - Email associated to the purchase.
2929
2930
  * @param {string} [params.referenceId] - The referenceId that was provided by the partner during the purchase or topup flow.
2930
2931
  * @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.
2931
2932
  * @param {number} [params.limit] - Maximum number of purchases to be returned in the response. The value must be greater than 0 and less than or equal to 100. If not provided, the default value is 20
@@ -2956,6 +2957,9 @@ var PurchasesService = class extends BaseService {
2956
2957
  }).addQueryParam({
2957
2958
  key: "beforeDate",
2958
2959
  value: params == null ? void 0 : params.beforeDate
2960
+ }).addQueryParam({
2961
+ key: "email",
2962
+ value: params == null ? void 0 : params.email
2959
2963
  }).addQueryParam({
2960
2964
  key: "referenceId",
2961
2965
  value: params == null ? void 0 : params.referenceId
@@ -2996,7 +3000,7 @@ var PurchasesService = class extends BaseService {
2996
3000
  return this.client.call(request);
2997
3001
  }
2998
3002
  /**
2999
- * This endpoint is used to top-up an eSIM with the previously associated destination by providing an existing ICCID and the package details. The top-up is only feasible for eSIMs in "ENABLED" or "INSTALLED" state. You can check this state using the Get eSIM Status endpoint.
3003
+ * This endpoint is used to top-up an existing eSIM with the previously associated destination by providing its ICCID and package details. To determine if an eSIM can be topped up, use the Get eSIM Status endpoint, which returns the `isTopUpAllowed` flag.
3000
3004
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
3001
3005
  * @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
3002
3006
  */
@@ -3077,7 +3081,8 @@ var getEsimOkResponseEsim = import_zod48.z.lazy(() => {
3077
3081
  iccid: import_zod48.z.string().min(18).max(22).optional(),
3078
3082
  smdpAddress: import_zod48.z.string().optional(),
3079
3083
  manualActivationCode: import_zod48.z.string().optional(),
3080
- status: import_zod48.z.string().optional()
3084
+ status: import_zod48.z.string().optional(),
3085
+ isTopUpAllowed: import_zod48.z.boolean().optional()
3081
3086
  });
3082
3087
  });
3083
3088
  var getEsimOkResponseEsimResponse = import_zod48.z.lazy(() => {
@@ -3085,12 +3090,14 @@ var getEsimOkResponseEsimResponse = import_zod48.z.lazy(() => {
3085
3090
  iccid: import_zod48.z.string().min(18).max(22).optional(),
3086
3091
  smdpAddress: import_zod48.z.string().optional(),
3087
3092
  manualActivationCode: import_zod48.z.string().optional(),
3088
- status: import_zod48.z.string().optional()
3093
+ status: import_zod48.z.string().optional(),
3094
+ isTopUpAllowed: import_zod48.z.boolean().optional()
3089
3095
  }).transform((data) => ({
3090
3096
  iccid: data["iccid"],
3091
3097
  smdpAddress: data["smdpAddress"],
3092
3098
  manualActivationCode: data["manualActivationCode"],
3093
- status: data["status"]
3099
+ status: data["status"],
3100
+ isTopUpAllowed: data["isTopUpAllowed"]
3094
3101
  }));
3095
3102
  });
3096
3103
  var getEsimOkResponseEsimRequest = import_zod48.z.lazy(() => {
@@ -3098,12 +3105,14 @@ var getEsimOkResponseEsimRequest = import_zod48.z.lazy(() => {
3098
3105
  iccid: import_zod48.z.string().min(18).max(22).optional(),
3099
3106
  smdpAddress: import_zod48.z.string().optional(),
3100
3107
  manualActivationCode: import_zod48.z.string().optional(),
3101
- status: import_zod48.z.string().optional()
3108
+ status: import_zod48.z.string().optional(),
3109
+ isTopUpAllowed: import_zod48.z.boolean().optional()
3102
3110
  }).transform((data) => ({
3103
3111
  iccid: data["iccid"],
3104
3112
  smdpAddress: data["smdpAddress"],
3105
3113
  manualActivationCode: data["manualActivationCode"],
3106
- status: data["status"]
3114
+ status: data["status"],
3115
+ isTopUpAllowed: data["isTopUpAllowed"]
3107
3116
  }));
3108
3117
  });
3109
3118
 
package/dist/index.mjs CHANGED
@@ -2090,7 +2090,7 @@ var purchases = z22.lazy(() => {
2090
2090
  esim: purchasesEsim.optional(),
2091
2091
  source: z22.string().optional(),
2092
2092
  purchaseType: z22.string().optional(),
2093
- referenceId: z22.string().optional()
2093
+ referenceId: z22.string().optional().nullable()
2094
2094
  });
2095
2095
  });
2096
2096
  var purchasesResponse = z22.lazy(() => {
@@ -2106,7 +2106,7 @@ var purchasesResponse = z22.lazy(() => {
2106
2106
  esim: purchasesEsimResponse.optional(),
2107
2107
  source: z22.string().optional(),
2108
2108
  purchaseType: z22.string().optional(),
2109
- referenceId: z22.string().optional()
2109
+ referenceId: z22.string().optional().nullable()
2110
2110
  }).transform((data) => ({
2111
2111
  id: data["id"],
2112
2112
  startDate: data["startDate"],
@@ -2135,7 +2135,7 @@ var purchasesRequest = z22.lazy(() => {
2135
2135
  esim: purchasesEsimRequest.optional(),
2136
2136
  source: z22.string().optional(),
2137
2137
  purchaseType: z22.string().optional(),
2138
- referenceId: z22.string().optional()
2138
+ referenceId: z22.string().optional().nullable()
2139
2139
  }).transform((data) => ({
2140
2140
  id: data["id"],
2141
2141
  startDate: data["startDate"],
@@ -2882,6 +2882,7 @@ var PurchasesService = class extends BaseService {
2882
2882
  * @param {string} [params.iccid] - ID of the eSIM
2883
2883
  * @param {string} [params.afterDate] - Start date of the interval for filtering purchases in the format 'yyyy-MM-dd'
2884
2884
  * @param {string} [params.beforeDate] - End date of the interval for filtering purchases in the format 'yyyy-MM-dd'
2885
+ * @param {string} [params.email] - Email associated to the purchase.
2885
2886
  * @param {string} [params.referenceId] - The referenceId that was provided by the partner during the purchase or topup flow.
2886
2887
  * @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.
2887
2888
  * @param {number} [params.limit] - Maximum number of purchases to be returned in the response. The value must be greater than 0 and less than or equal to 100. If not provided, the default value is 20
@@ -2912,6 +2913,9 @@ var PurchasesService = class extends BaseService {
2912
2913
  }).addQueryParam({
2913
2914
  key: "beforeDate",
2914
2915
  value: params == null ? void 0 : params.beforeDate
2916
+ }).addQueryParam({
2917
+ key: "email",
2918
+ value: params == null ? void 0 : params.email
2915
2919
  }).addQueryParam({
2916
2920
  key: "referenceId",
2917
2921
  value: params == null ? void 0 : params.referenceId
@@ -2952,7 +2956,7 @@ var PurchasesService = class extends BaseService {
2952
2956
  return this.client.call(request);
2953
2957
  }
2954
2958
  /**
2955
- * This endpoint is used to top-up an eSIM with the previously associated destination by providing an existing ICCID and the package details. The top-up is only feasible for eSIMs in "ENABLED" or "INSTALLED" state. You can check this state using the Get eSIM Status endpoint.
2959
+ * This endpoint is used to top-up an existing eSIM with the previously associated destination by providing its ICCID and package details. To determine if an eSIM can be topped up, use the Get eSIM Status endpoint, which returns the `isTopUpAllowed` flag.
2956
2960
  * @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
2957
2961
  * @returns {Promise<HttpResponse<TopUpEsimOkResponse>>} Successful Response
2958
2962
  */
@@ -3033,7 +3037,8 @@ var getEsimOkResponseEsim = z46.lazy(() => {
3033
3037
  iccid: z46.string().min(18).max(22).optional(),
3034
3038
  smdpAddress: z46.string().optional(),
3035
3039
  manualActivationCode: z46.string().optional(),
3036
- status: z46.string().optional()
3040
+ status: z46.string().optional(),
3041
+ isTopUpAllowed: z46.boolean().optional()
3037
3042
  });
3038
3043
  });
3039
3044
  var getEsimOkResponseEsimResponse = z46.lazy(() => {
@@ -3041,12 +3046,14 @@ var getEsimOkResponseEsimResponse = z46.lazy(() => {
3041
3046
  iccid: z46.string().min(18).max(22).optional(),
3042
3047
  smdpAddress: z46.string().optional(),
3043
3048
  manualActivationCode: z46.string().optional(),
3044
- status: z46.string().optional()
3049
+ status: z46.string().optional(),
3050
+ isTopUpAllowed: z46.boolean().optional()
3045
3051
  }).transform((data) => ({
3046
3052
  iccid: data["iccid"],
3047
3053
  smdpAddress: data["smdpAddress"],
3048
3054
  manualActivationCode: data["manualActivationCode"],
3049
- status: data["status"]
3055
+ status: data["status"],
3056
+ isTopUpAllowed: data["isTopUpAllowed"]
3050
3057
  }));
3051
3058
  });
3052
3059
  var getEsimOkResponseEsimRequest = z46.lazy(() => {
@@ -3054,12 +3061,14 @@ var getEsimOkResponseEsimRequest = z46.lazy(() => {
3054
3061
  iccid: z46.string().min(18).max(22).optional(),
3055
3062
  smdpAddress: z46.string().optional(),
3056
3063
  manualActivationCode: z46.string().optional(),
3057
- status: z46.string().optional()
3064
+ status: z46.string().optional(),
3065
+ isTopUpAllowed: z46.boolean().optional()
3058
3066
  }).transform((data) => ({
3059
3067
  iccid: data["iccid"],
3060
3068
  smdpAddress: data["smdpAddress"],
3061
3069
  manualActivationCode: data["manualActivationCode"],
3062
- status: data["status"]
3070
+ status: data["status"],
3071
+ isTopUpAllowed: data["isTopUpAllowed"]
3063
3072
  }));
3064
3073
  });
3065
3074
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "celitech-sdk",
3
- "version": "1.3.54",
3
+ "version": "1.3.56",
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",