@kard-financial/sdk 4.9.0 → 4.10.0

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.
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@kard-financial/sdk",
46
- "X-Fern-SDK-Version": "4.8.0",
47
- "User-Agent": "@kard-financial/sdk/4.8.0",
46
+ "X-Fern-SDK-Version": "4.10.0",
47
+ "User-Agent": "@kard-financial/sdk/4.10.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Metadata about the full result set across all pages
4
+ */
5
+ export interface OffersMeta {
6
+ /** All distinct categories available across the entire filtered result set, not just the current page */
7
+ availableCategories?: KardApi.users.CategoryIncluded[];
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -73,6 +73,21 @@ import type * as KardApi from "../../../../../index.js";
73
73
  * links: {
74
74
  * self: "/v2/issuers/{organizationId}/users/{userId}/offers?page[size]=1?sort=-startDate",
75
75
  * next: "/v2/issuers/{organizationId}/users/{userId}/offers?page[after]=NDMyNzQyODI3OTQw&page[size]=1?&sort=-startDate"
76
+ * },
77
+ * meta: {
78
+ * availableCategories: [{
79
+ * type: "category",
80
+ * id: "65920081b524d126068de24a",
81
+ * attributes: {
82
+ * name: KardApi.CategoryOption.FoodBeverage
83
+ * }
84
+ * }, {
85
+ * type: "category",
86
+ * id: "65920081b524d126068de24c",
87
+ * attributes: {
88
+ * name: KardApi.CategoryOption.DepartmentStores
89
+ * }
90
+ * }]
76
91
  * }
77
92
  * }
78
93
  */
@@ -80,4 +95,5 @@ export interface OffersResponseObject {
80
95
  data: KardApi.users.OfferDataUnion[];
81
96
  links: KardApi.Links;
82
97
  included?: KardApi.users.EligibilityOfferIncluded[];
98
+ meta?: KardApi.users.OffersMeta;
83
99
  }
@@ -31,6 +31,7 @@ export * from "./OfferComponents.js";
31
31
  export * from "./OfferDataUnion.js";
32
32
  export * from "./OfferRelationship.js";
33
33
  export * from "./OfferSortOptions.js";
34
+ export * from "./OffersMeta.js";
34
35
  export * from "./OffersResponseObject.js";
35
36
  export * from "./OperationHours.js";
36
37
  export * from "./OperationPeriod.js";
@@ -47,6 +47,7 @@ __exportStar(require("./OfferComponents.js"), exports);
47
47
  __exportStar(require("./OfferDataUnion.js"), exports);
48
48
  __exportStar(require("./OfferRelationship.js"), exports);
49
49
  __exportStar(require("./OfferSortOptions.js"), exports);
50
+ __exportStar(require("./OffersMeta.js"), exports);
50
51
  __exportStar(require("./OffersResponseObject.js"), exports);
51
52
  __exportStar(require("./OperationHours.js"), exports);
52
53
  __exportStar(require("./OperationPeriod.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.8.0";
1
+ export declare const SDK_VERSION = "4.10.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "4.8.0";
4
+ exports.SDK_VERSION = "4.10.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@kard-financial/sdk",
9
- "X-Fern-SDK-Version": "4.8.0",
10
- "User-Agent": "@kard-financial/sdk/4.8.0",
9
+ "X-Fern-SDK-Version": "4.10.0",
10
+ "User-Agent": "@kard-financial/sdk/4.10.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -0,0 +1,8 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Metadata about the full result set across all pages
4
+ */
5
+ export interface OffersMeta {
6
+ /** All distinct categories available across the entire filtered result set, not just the current page */
7
+ availableCategories?: KardApi.users.CategoryIncluded[];
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -73,6 +73,21 @@ import type * as KardApi from "../../../../../index.mjs";
73
73
  * links: {
74
74
  * self: "/v2/issuers/{organizationId}/users/{userId}/offers?page[size]=1?sort=-startDate",
75
75
  * next: "/v2/issuers/{organizationId}/users/{userId}/offers?page[after]=NDMyNzQyODI3OTQw&page[size]=1?&sort=-startDate"
76
+ * },
77
+ * meta: {
78
+ * availableCategories: [{
79
+ * type: "category",
80
+ * id: "65920081b524d126068de24a",
81
+ * attributes: {
82
+ * name: KardApi.CategoryOption.FoodBeverage
83
+ * }
84
+ * }, {
85
+ * type: "category",
86
+ * id: "65920081b524d126068de24c",
87
+ * attributes: {
88
+ * name: KardApi.CategoryOption.DepartmentStores
89
+ * }
90
+ * }]
76
91
  * }
77
92
  * }
78
93
  */
@@ -80,4 +95,5 @@ export interface OffersResponseObject {
80
95
  data: KardApi.users.OfferDataUnion[];
81
96
  links: KardApi.Links;
82
97
  included?: KardApi.users.EligibilityOfferIncluded[];
98
+ meta?: KardApi.users.OffersMeta;
83
99
  }
@@ -31,6 +31,7 @@ export * from "./OfferComponents.mjs";
31
31
  export * from "./OfferDataUnion.mjs";
32
32
  export * from "./OfferRelationship.mjs";
33
33
  export * from "./OfferSortOptions.mjs";
34
+ export * from "./OffersMeta.mjs";
34
35
  export * from "./OffersResponseObject.mjs";
35
36
  export * from "./OperationHours.mjs";
36
37
  export * from "./OperationPeriod.mjs";
@@ -31,6 +31,7 @@ export * from "./OfferComponents.mjs";
31
31
  export * from "./OfferDataUnion.mjs";
32
32
  export * from "./OfferRelationship.mjs";
33
33
  export * from "./OfferSortOptions.mjs";
34
+ export * from "./OffersMeta.mjs";
34
35
  export * from "./OffersResponseObject.mjs";
35
36
  export * from "./OperationHours.mjs";
36
37
  export * from "./OperationPeriod.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.8.0";
1
+ export declare const SDK_VERSION = "4.10.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.8.0";
1
+ export const SDK_VERSION = "4.10.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",