@kard-financial/sdk 5.0.0 → 5.1.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": "5.0.0",
47
- "User-Agent": "@kard-financial/sdk/5.0.0",
46
+ "X-Fern-SDK-Version": "5.1.0",
47
+ "User-Agent": "@kard-financial/sdk/5.1.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);
@@ -8,5 +8,6 @@ export declare const ComponentType: {
8
8
  readonly Tags: "tags";
9
9
  readonly DetailTags: "detailTags";
10
10
  readonly LogoFlare: "logoFlare";
11
+ readonly ProgressBar: "progressBar";
11
12
  };
12
13
  export type ComponentType = (typeof ComponentType)[keyof typeof ComponentType];
@@ -12,4 +12,5 @@ exports.ComponentType = {
12
12
  Tags: "tags",
13
13
  DetailTags: "detailTags",
14
14
  LogoFlare: "logoFlare",
15
+ ProgressBar: "progressBar",
15
16
  };
@@ -19,4 +19,6 @@ export interface OfferComponents {
19
19
  detailTags?: string[];
20
20
  /** Logo flare configuration for the offer */
21
21
  logoFlare?: KardApi.users.LogoFlare;
22
+ /** Progress bar component for tracking offer redemptions */
23
+ progressBar?: KardApi.users.ProgressBar;
22
24
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Progress bar component for tracking offer redemption progress
3
+ */
4
+ export interface ProgressBar {
5
+ /** Total number of redemptions allowed */
6
+ total: number;
7
+ /** Number of redemptions the user has completed */
8
+ currentProgress: number;
9
+ /** Formatted label for the progress bar */
10
+ label: string;
11
+ /** Whether the progress bar should be displayed as segmented */
12
+ segmented: boolean;
13
+ }
@@ -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 });
@@ -36,6 +36,7 @@ export * from "./OffersResponseObject.js";
36
36
  export * from "./OperationHours.js";
37
37
  export * from "./OperationPeriod.js";
38
38
  export * from "./OperationTime.js";
39
+ export * from "./ProgressBar.js";
39
40
  export * from "./StandardOffer.js";
40
41
  export * from "./StandardOfferCore.js";
41
42
  export * from "./StandardOfferFields.js";
@@ -52,6 +52,7 @@ __exportStar(require("./OffersResponseObject.js"), exports);
52
52
  __exportStar(require("./OperationHours.js"), exports);
53
53
  __exportStar(require("./OperationPeriod.js"), exports);
54
54
  __exportStar(require("./OperationTime.js"), exports);
55
+ __exportStar(require("./ProgressBar.js"), exports);
55
56
  __exportStar(require("./StandardOffer.js"), exports);
56
57
  __exportStar(require("./StandardOfferCore.js"), exports);
57
58
  __exportStar(require("./StandardOfferFields.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.0.0";
1
+ export declare const SDK_VERSION = "5.1.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 = "5.0.0";
4
+ exports.SDK_VERSION = "5.1.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": "5.0.0",
10
- "User-Agent": "@kard-financial/sdk/5.0.0",
9
+ "X-Fern-SDK-Version": "5.1.0",
10
+ "User-Agent": "@kard-financial/sdk/5.1.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);
@@ -8,5 +8,6 @@ export declare const ComponentType: {
8
8
  readonly Tags: "tags";
9
9
  readonly DetailTags: "detailTags";
10
10
  readonly LogoFlare: "logoFlare";
11
+ readonly ProgressBar: "progressBar";
11
12
  };
12
13
  export type ComponentType = (typeof ComponentType)[keyof typeof ComponentType];
@@ -9,4 +9,5 @@ export const ComponentType = {
9
9
  Tags: "tags",
10
10
  DetailTags: "detailTags",
11
11
  LogoFlare: "logoFlare",
12
+ ProgressBar: "progressBar",
12
13
  };
@@ -19,4 +19,6 @@ export interface OfferComponents {
19
19
  detailTags?: string[];
20
20
  /** Logo flare configuration for the offer */
21
21
  logoFlare?: KardApi.users.LogoFlare;
22
+ /** Progress bar component for tracking offer redemptions */
23
+ progressBar?: KardApi.users.ProgressBar;
22
24
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Progress bar component for tracking offer redemption progress
3
+ */
4
+ export interface ProgressBar {
5
+ /** Total number of redemptions allowed */
6
+ total: number;
7
+ /** Number of redemptions the user has completed */
8
+ currentProgress: number;
9
+ /** Formatted label for the progress bar */
10
+ label: string;
11
+ /** Whether the progress bar should be displayed as segmented */
12
+ segmented: boolean;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -36,6 +36,7 @@ export * from "./OffersResponseObject.mjs";
36
36
  export * from "./OperationHours.mjs";
37
37
  export * from "./OperationPeriod.mjs";
38
38
  export * from "./OperationTime.mjs";
39
+ export * from "./ProgressBar.mjs";
39
40
  export * from "./StandardOffer.mjs";
40
41
  export * from "./StandardOfferCore.mjs";
41
42
  export * from "./StandardOfferFields.mjs";
@@ -36,6 +36,7 @@ export * from "./OffersResponseObject.mjs";
36
36
  export * from "./OperationHours.mjs";
37
37
  export * from "./OperationPeriod.mjs";
38
38
  export * from "./OperationTime.mjs";
39
+ export * from "./ProgressBar.mjs";
39
40
  export * from "./StandardOffer.mjs";
40
41
  export * from "./StandardOfferCore.mjs";
41
42
  export * from "./StandardOfferFields.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.0.0";
1
+ export declare const SDK_VERSION = "5.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.0.0";
1
+ export const SDK_VERSION = "5.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",