@kard-financial/sdk 30.2.0 → 31.0.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": "30.2.0",
47
- "User-Agent": "@kard-financial/sdk/30.2.0",
46
+ "X-Fern-SDK-Version": "31.0.0",
47
+ "User-Agent": "@kard-financial/sdk/31.0.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);
@@ -11,7 +11,7 @@ export interface GetOffersByUserRequest {
11
11
  "page[size]"?: number;
12
12
  "page[after]"?: string;
13
13
  "page[before]"?: string;
14
- /** Case-insensitive search string to filter offers by merchant name */
14
+ /** Case-insensitive substring search. Returns offers whose offer name or category name contains the search string. */
15
15
  "filter[search]"?: string;
16
16
  "filter[purchaseChannel]"?: KardApi.PurchaseChannel[];
17
17
  "filter[category]"?: KardApi.CategoryOption;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Fill state of a single segment node, expressed as completed of total.
3
+ */
4
+ export interface ProgressBarSegmentProgress {
5
+ /** Units completed within the current segment. */
6
+ completed: number;
7
+ /** Total units required to complete the current segment. */
8
+ total: number;
9
+ }
@@ -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 });
@@ -7,4 +7,6 @@ export interface ProgressBarSegments {
7
7
  details?: KardApi.users.ProgressBarSegment | undefined;
8
8
  /** Segment configuration for the default view */
9
9
  default: KardApi.users.ProgressBarSegment;
10
+ /** Per-segment fill state: one entry per segment node, index-aligned with the nodes (length equals the progress bar total). Reached nodes report 1 of 1 and not-yet-reached nodes 0 of 1; for a punch-card offer the in-progress node reports qualifying-purchase progress toward the next reward (Q mod N of N). */
11
+ progress: KardApi.users.ProgressBarSegmentProgress[];
10
12
  }
@@ -49,6 +49,7 @@ export * from "./ProgressBarLabels.js";
49
49
  export * from "./ProgressBarSegment.js";
50
50
  export * from "./ProgressBarSegmentLabel.js";
51
51
  export * from "./ProgressBarSegmentPosition.js";
52
+ export * from "./ProgressBarSegmentProgress.js";
52
53
  export * from "./ProgressBarSegmentSelection.js";
53
54
  export * from "./ProgressBarSegmentSeparator.js";
54
55
  export * from "./ProgressBarSegments.js";
@@ -65,6 +65,7 @@ __exportStar(require("./ProgressBarLabels.js"), exports);
65
65
  __exportStar(require("./ProgressBarSegment.js"), exports);
66
66
  __exportStar(require("./ProgressBarSegmentLabel.js"), exports);
67
67
  __exportStar(require("./ProgressBarSegmentPosition.js"), exports);
68
+ __exportStar(require("./ProgressBarSegmentProgress.js"), exports);
68
69
  __exportStar(require("./ProgressBarSegmentSelection.js"), exports);
69
70
  __exportStar(require("./ProgressBarSegmentSeparator.js"), exports);
70
71
  __exportStar(require("./ProgressBarSegments.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "30.2.0";
1
+ export declare const SDK_VERSION = "31.0.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 = "30.2.0";
4
+ exports.SDK_VERSION = "31.0.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": "30.2.0",
10
- "User-Agent": "@kard-financial/sdk/30.2.0",
9
+ "X-Fern-SDK-Version": "31.0.0",
10
+ "User-Agent": "@kard-financial/sdk/31.0.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);
@@ -11,7 +11,7 @@ export interface GetOffersByUserRequest {
11
11
  "page[size]"?: number;
12
12
  "page[after]"?: string;
13
13
  "page[before]"?: string;
14
- /** Case-insensitive search string to filter offers by merchant name */
14
+ /** Case-insensitive substring search. Returns offers whose offer name or category name contains the search string. */
15
15
  "filter[search]"?: string;
16
16
  "filter[purchaseChannel]"?: KardApi.PurchaseChannel[];
17
17
  "filter[category]"?: KardApi.CategoryOption;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Fill state of a single segment node, expressed as completed of total.
3
+ */
4
+ export interface ProgressBarSegmentProgress {
5
+ /** Units completed within the current segment. */
6
+ completed: number;
7
+ /** Total units required to complete the current segment. */
8
+ total: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -7,4 +7,6 @@ export interface ProgressBarSegments {
7
7
  details?: KardApi.users.ProgressBarSegment | undefined;
8
8
  /** Segment configuration for the default view */
9
9
  default: KardApi.users.ProgressBarSegment;
10
+ /** Per-segment fill state: one entry per segment node, index-aligned with the nodes (length equals the progress bar total). Reached nodes report 1 of 1 and not-yet-reached nodes 0 of 1; for a punch-card offer the in-progress node reports qualifying-purchase progress toward the next reward (Q mod N of N). */
11
+ progress: KardApi.users.ProgressBarSegmentProgress[];
10
12
  }
@@ -49,6 +49,7 @@ export * from "./ProgressBarLabels.mjs";
49
49
  export * from "./ProgressBarSegment.mjs";
50
50
  export * from "./ProgressBarSegmentLabel.mjs";
51
51
  export * from "./ProgressBarSegmentPosition.mjs";
52
+ export * from "./ProgressBarSegmentProgress.mjs";
52
53
  export * from "./ProgressBarSegmentSelection.mjs";
53
54
  export * from "./ProgressBarSegmentSeparator.mjs";
54
55
  export * from "./ProgressBarSegments.mjs";
@@ -49,6 +49,7 @@ export * from "./ProgressBarLabels.mjs";
49
49
  export * from "./ProgressBarSegment.mjs";
50
50
  export * from "./ProgressBarSegmentLabel.mjs";
51
51
  export * from "./ProgressBarSegmentPosition.mjs";
52
+ export * from "./ProgressBarSegmentProgress.mjs";
52
53
  export * from "./ProgressBarSegmentSelection.mjs";
53
54
  export * from "./ProgressBarSegmentSeparator.mjs";
54
55
  export * from "./ProgressBarSegments.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "30.2.0";
1
+ export declare const SDK_VERSION = "31.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "30.2.0";
1
+ export const SDK_VERSION = "31.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "30.2.0",
3
+ "version": "31.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",