celitech-sdk 1.3.55 → 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.55
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.55`
10
- - SDK version: `1.3.55`
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
@@ -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
  *
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
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "celitech-sdk",
3
- "version": "1.3.55",
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",