@kard-financial/sdk 6.0.0 → 7.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.
Files changed (36) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBar.d.ts +2 -2
  3. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarLabelPair.d.ts +9 -0
  4. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarLabels.d.ts +2 -2
  5. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegment.d.ts +10 -0
  6. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegment.js +3 -0
  7. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentPosition.d.ts +7 -0
  8. package/dist/cjs/api/resources/users/resources/rewards/types/{ProgressBarLabelPosition.js → ProgressBarSegmentPosition.js} +4 -3
  9. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegments.d.ts +10 -0
  10. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegments.js +3 -0
  11. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +4 -2
  12. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +4 -2
  13. package/dist/cjs/version.d.ts +1 -1
  14. package/dist/cjs/version.js +1 -1
  15. package/dist/esm/BaseClient.mjs +2 -2
  16. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBar.d.mts +2 -2
  17. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarLabelPair.d.mts +9 -0
  18. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarLabels.d.mts +2 -2
  19. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegment.d.mts +10 -0
  20. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegment.mjs +2 -0
  21. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentPosition.d.mts +7 -0
  22. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentPosition.mjs +7 -0
  23. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegments.d.mts +10 -0
  24. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegments.mjs +2 -0
  25. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +4 -2
  26. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +4 -2
  27. package/dist/esm/version.d.mts +1 -1
  28. package/dist/esm/version.mjs +1 -1
  29. package/package.json +1 -1
  30. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarLabel.d.ts +0 -10
  31. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarLabelPosition.d.ts +0 -6
  32. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarLabel.d.mts +0 -10
  33. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarLabelPosition.d.mts +0 -6
  34. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarLabelPosition.mjs +0 -6
  35. /package/dist/cjs/api/resources/users/resources/rewards/types/{ProgressBarLabel.js → ProgressBarLabelPair.js} +0 -0
  36. /package/dist/esm/api/resources/users/resources/rewards/types/{ProgressBarLabel.mjs → ProgressBarLabelPair.mjs} +0 -0
@@ -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": "6.0.0",
47
- "User-Agent": "@kard-financial/sdk/6.0.0",
46
+ "X-Fern-SDK-Version": "7.0.0",
47
+ "User-Agent": "@kard-financial/sdk/7.0.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Kard-Target-Issuer": options === null || options === void 0 ? void 0 : options.xKardTargetIssuer,
@@ -11,8 +11,8 @@ export interface ProgressBar {
11
11
  label: string;
12
12
  /** Whether the progress bar should be displayed as segmented */
13
13
  segmented: boolean;
14
- /** SVG icon to use for each segment when the progress bar is segmented */
15
- segmentIcon?: string;
14
+ /** Segment configuration for the progress bar in different layouts */
15
+ segments?: KardApi.users.ProgressBarSegments;
16
16
  /** Labels to render around the progress bar in different layouts */
17
17
  labels: KardApi.users.ProgressBarLabels;
18
18
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Left and right label configuration for a specific layout
3
+ */
4
+ export interface ProgressBarLabelPair {
5
+ /** Text content for the left label */
6
+ left?: string;
7
+ /** Text content for the right label */
8
+ right?: string;
9
+ }
@@ -4,7 +4,7 @@ import type * as KardApi from "../../../../../index.js";
4
4
  */
5
5
  export interface ProgressBarLabels {
6
6
  /** Label configuration for the details view */
7
- details: KardApi.users.ProgressBarLabel;
7
+ details?: KardApi.users.ProgressBarLabelPair;
8
8
  /** Label configuration for the default view */
9
- default: KardApi.users.ProgressBarLabel;
9
+ default: KardApi.users.ProgressBarLabelPair;
10
10
  }
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Segment configuration for a specific layout
4
+ */
5
+ export interface ProgressBarSegment {
6
+ /** SVG icon to use for each segment */
7
+ icon?: string;
8
+ /** Position of the segment within the layout */
9
+ position: KardApi.users.ProgressBarSegmentPosition;
10
+ }
@@ -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 });
@@ -0,0 +1,7 @@
1
+ /** Supported segment positions */
2
+ export declare const ProgressBarSegmentPosition: {
3
+ readonly Left: "LEFT";
4
+ readonly Right: "RIGHT";
5
+ readonly FullWidth: "FULL_WIDTH";
6
+ };
7
+ export type ProgressBarSegmentPosition = (typeof ProgressBarSegmentPosition)[keyof typeof ProgressBarSegmentPosition];
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.ProgressBarLabelPosition = void 0;
5
- /** Supported progress bar label positions */
6
- exports.ProgressBarLabelPosition = {
4
+ exports.ProgressBarSegmentPosition = void 0;
5
+ /** Supported segment positions */
6
+ exports.ProgressBarSegmentPosition = {
7
7
  Left: "LEFT",
8
8
  Right: "RIGHT",
9
+ FullWidth: "FULL_WIDTH",
9
10
  };
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Segment configuration for the progress bar in different layouts
4
+ */
5
+ export interface ProgressBarSegments {
6
+ /** Segment configuration for the details view */
7
+ details?: KardApi.users.ProgressBarSegment;
8
+ /** Segment configuration for the default view */
9
+ default: KardApi.users.ProgressBarSegment;
10
+ }
@@ -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 });
@@ -37,9 +37,11 @@ export * from "./OperationHours.js";
37
37
  export * from "./OperationPeriod.js";
38
38
  export * from "./OperationTime.js";
39
39
  export * from "./ProgressBar.js";
40
- export * from "./ProgressBarLabel.js";
41
- export * from "./ProgressBarLabelPosition.js";
40
+ export * from "./ProgressBarLabelPair.js";
42
41
  export * from "./ProgressBarLabels.js";
42
+ export * from "./ProgressBarSegment.js";
43
+ export * from "./ProgressBarSegmentPosition.js";
44
+ export * from "./ProgressBarSegments.js";
43
45
  export * from "./StandardOffer.js";
44
46
  export * from "./StandardOfferCore.js";
45
47
  export * from "./StandardOfferFields.js";
@@ -53,9 +53,11 @@ __exportStar(require("./OperationHours.js"), exports);
53
53
  __exportStar(require("./OperationPeriod.js"), exports);
54
54
  __exportStar(require("./OperationTime.js"), exports);
55
55
  __exportStar(require("./ProgressBar.js"), exports);
56
- __exportStar(require("./ProgressBarLabel.js"), exports);
57
- __exportStar(require("./ProgressBarLabelPosition.js"), exports);
56
+ __exportStar(require("./ProgressBarLabelPair.js"), exports);
58
57
  __exportStar(require("./ProgressBarLabels.js"), exports);
58
+ __exportStar(require("./ProgressBarSegment.js"), exports);
59
+ __exportStar(require("./ProgressBarSegmentPosition.js"), exports);
60
+ __exportStar(require("./ProgressBarSegments.js"), exports);
59
61
  __exportStar(require("./StandardOffer.js"), exports);
60
62
  __exportStar(require("./StandardOfferCore.js"), exports);
61
63
  __exportStar(require("./StandardOfferFields.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.0.0";
1
+ export declare const SDK_VERSION = "7.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 = "6.0.0";
4
+ exports.SDK_VERSION = "7.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": "6.0.0",
10
- "User-Agent": "@kard-financial/sdk/6.0.0",
9
+ "X-Fern-SDK-Version": "7.0.0",
10
+ "User-Agent": "@kard-financial/sdk/7.0.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Kard-Target-Issuer": options === null || options === void 0 ? void 0 : options.xKardTargetIssuer,
@@ -11,8 +11,8 @@ export interface ProgressBar {
11
11
  label: string;
12
12
  /** Whether the progress bar should be displayed as segmented */
13
13
  segmented: boolean;
14
- /** SVG icon to use for each segment when the progress bar is segmented */
15
- segmentIcon?: string;
14
+ /** Segment configuration for the progress bar in different layouts */
15
+ segments?: KardApi.users.ProgressBarSegments;
16
16
  /** Labels to render around the progress bar in different layouts */
17
17
  labels: KardApi.users.ProgressBarLabels;
18
18
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Left and right label configuration for a specific layout
3
+ */
4
+ export interface ProgressBarLabelPair {
5
+ /** Text content for the left label */
6
+ left?: string;
7
+ /** Text content for the right label */
8
+ right?: string;
9
+ }
@@ -4,7 +4,7 @@ import type * as KardApi from "../../../../../index.mjs";
4
4
  */
5
5
  export interface ProgressBarLabels {
6
6
  /** Label configuration for the details view */
7
- details: KardApi.users.ProgressBarLabel;
7
+ details?: KardApi.users.ProgressBarLabelPair;
8
8
  /** Label configuration for the default view */
9
- default: KardApi.users.ProgressBarLabel;
9
+ default: KardApi.users.ProgressBarLabelPair;
10
10
  }
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Segment configuration for a specific layout
4
+ */
5
+ export interface ProgressBarSegment {
6
+ /** SVG icon to use for each segment */
7
+ icon?: string;
8
+ /** Position of the segment within the layout */
9
+ position: KardApi.users.ProgressBarSegmentPosition;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ /** Supported segment positions */
2
+ export declare const ProgressBarSegmentPosition: {
3
+ readonly Left: "LEFT";
4
+ readonly Right: "RIGHT";
5
+ readonly FullWidth: "FULL_WIDTH";
6
+ };
7
+ export type ProgressBarSegmentPosition = (typeof ProgressBarSegmentPosition)[keyof typeof ProgressBarSegmentPosition];
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Supported segment positions */
3
+ export const ProgressBarSegmentPosition = {
4
+ Left: "LEFT",
5
+ Right: "RIGHT",
6
+ FullWidth: "FULL_WIDTH",
7
+ };
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Segment configuration for the progress bar in different layouts
4
+ */
5
+ export interface ProgressBarSegments {
6
+ /** Segment configuration for the details view */
7
+ details?: KardApi.users.ProgressBarSegment;
8
+ /** Segment configuration for the default view */
9
+ default: KardApi.users.ProgressBarSegment;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -37,9 +37,11 @@ export * from "./OperationHours.mjs";
37
37
  export * from "./OperationPeriod.mjs";
38
38
  export * from "./OperationTime.mjs";
39
39
  export * from "./ProgressBar.mjs";
40
- export * from "./ProgressBarLabel.mjs";
41
- export * from "./ProgressBarLabelPosition.mjs";
40
+ export * from "./ProgressBarLabelPair.mjs";
42
41
  export * from "./ProgressBarLabels.mjs";
42
+ export * from "./ProgressBarSegment.mjs";
43
+ export * from "./ProgressBarSegmentPosition.mjs";
44
+ export * from "./ProgressBarSegments.mjs";
43
45
  export * from "./StandardOffer.mjs";
44
46
  export * from "./StandardOfferCore.mjs";
45
47
  export * from "./StandardOfferFields.mjs";
@@ -37,9 +37,11 @@ export * from "./OperationHours.mjs";
37
37
  export * from "./OperationPeriod.mjs";
38
38
  export * from "./OperationTime.mjs";
39
39
  export * from "./ProgressBar.mjs";
40
- export * from "./ProgressBarLabel.mjs";
41
- export * from "./ProgressBarLabelPosition.mjs";
40
+ export * from "./ProgressBarLabelPair.mjs";
42
41
  export * from "./ProgressBarLabels.mjs";
42
+ export * from "./ProgressBarSegment.mjs";
43
+ export * from "./ProgressBarSegmentPosition.mjs";
44
+ export * from "./ProgressBarSegments.mjs";
43
45
  export * from "./StandardOffer.mjs";
44
46
  export * from "./StandardOfferCore.mjs";
45
47
  export * from "./StandardOfferFields.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "6.0.0";
1
+ export declare const SDK_VERSION = "7.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "6.0.0";
1
+ export const SDK_VERSION = "7.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "6.0.0",
3
+ "version": "7.0.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",
@@ -1,10 +0,0 @@
1
- import type * as KardApi from "../../../../../index.js";
2
- /**
3
- * Progress bar label configuration
4
- */
5
- export interface ProgressBarLabel {
6
- /** Text content for the label */
7
- text: string;
8
- /** Position where the label should render */
9
- position: KardApi.users.ProgressBarLabelPosition;
10
- }
@@ -1,6 +0,0 @@
1
- /** Supported progress bar label positions */
2
- export declare const ProgressBarLabelPosition: {
3
- readonly Left: "LEFT";
4
- readonly Right: "RIGHT";
5
- };
6
- export type ProgressBarLabelPosition = (typeof ProgressBarLabelPosition)[keyof typeof ProgressBarLabelPosition];
@@ -1,10 +0,0 @@
1
- import type * as KardApi from "../../../../../index.mjs";
2
- /**
3
- * Progress bar label configuration
4
- */
5
- export interface ProgressBarLabel {
6
- /** Text content for the label */
7
- text: string;
8
- /** Position where the label should render */
9
- position: KardApi.users.ProgressBarLabelPosition;
10
- }
@@ -1,6 +0,0 @@
1
- /** Supported progress bar label positions */
2
- export declare const ProgressBarLabelPosition: {
3
- readonly Left: "LEFT";
4
- readonly Right: "RIGHT";
5
- };
6
- export type ProgressBarLabelPosition = (typeof ProgressBarLabelPosition)[keyof typeof ProgressBarLabelPosition];
@@ -1,6 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- /** Supported progress bar label positions */
3
- export const ProgressBarLabelPosition = {
4
- Left: "LEFT",
5
- Right: "RIGHT",
6
- };