@kard-financial/sdk 21.0.0 → 22.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.
Files changed (51) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.ts +2 -2
  5. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.ts +1 -1
  6. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategySort.d.ts +8 -0
  7. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/{ContentStrategyFilter.js → ContentStrategySort.js} +3 -3
  8. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.d.ts +3 -3
  9. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.d.ts +1 -1
  10. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.d.ts +3 -3
  11. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/index.d.ts +1 -1
  12. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/index.js +1 -1
  13. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegment.d.ts +6 -0
  14. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.d.ts +9 -0
  15. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.js +3 -0
  16. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.d.ts +10 -0
  17. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.js +13 -0
  18. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.d.ts +5 -0
  19. package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.js +8 -0
  20. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +3 -0
  21. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +3 -0
  22. package/dist/cjs/version.d.ts +1 -1
  23. package/dist/cjs/version.js +1 -1
  24. package/dist/esm/BaseClient.mjs +2 -2
  25. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/Client.d.mts +1 -1
  26. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/Client.mjs +1 -1
  27. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.mts +2 -2
  28. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.mts +1 -1
  29. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategySort.d.mts +8 -0
  30. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategySort.mjs +8 -0
  31. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.d.mts +3 -3
  32. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.d.mts +1 -1
  33. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.d.mts +3 -3
  34. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/index.d.mts +1 -1
  35. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/index.mjs +1 -1
  36. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegment.d.mts +6 -0
  37. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.d.mts +9 -0
  38. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.mjs +2 -0
  39. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.d.mts +10 -0
  40. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.mjs +10 -0
  41. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.d.mts +5 -0
  42. package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.mjs +5 -0
  43. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +3 -0
  44. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +3 -0
  45. package/dist/esm/version.d.mts +1 -1
  46. package/dist/esm/version.mjs +1 -1
  47. package/package.json +1 -1
  48. package/reference.md +1 -1
  49. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.d.ts +0 -8
  50. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.d.mts +0 -8
  51. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.mjs +0 -8
@@ -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": "21.0.0",
47
- "User-Agent": "@kard-financial/sdk/21.0.0",
46
+ "X-Fern-SDK-Version": "22.1.0",
47
+ "User-Agent": "@kard-financial/sdk/22.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);
@@ -30,7 +30,7 @@ export declare class ContentStrategiesClient {
30
30
  * type: "contentStrategy",
31
31
  * attributes: {
32
32
  * name: "Featured Travel",
33
- * filter: "HIGHEST_CASHBACK",
33
+ * sort: "HIGHEST_CASHBACK",
34
34
  * categories: ["Travel"],
35
35
  * categoryExclusions: ["Gas"],
36
36
  * merchantExclusions: ["merchant-abc"]
@@ -75,7 +75,7 @@ class ContentStrategiesClient {
75
75
  * type: "contentStrategy",
76
76
  * attributes: {
77
77
  * name: "Featured Travel",
78
- * filter: "HIGHEST_CASHBACK",
78
+ * sort: "HIGHEST_CASHBACK",
79
79
  * categories: ["Travel"],
80
80
  * categoryExclusions: ["Gas"],
81
81
  * merchantExclusions: ["merchant-abc"]
@@ -7,8 +7,8 @@ export interface ContentStrategyAttributes {
7
7
  name: string;
8
8
  /** ID of the organization this content strategy belongs to */
9
9
  organizationId: string;
10
- /** Filter applied when selecting offers for the strategy */
11
- filter?: KardApi.organizations.ContentStrategyFilter | undefined;
10
+ /** Sort applied when selecting offers for the strategy */
11
+ sort?: KardApi.organizations.ContentStrategySort | undefined;
12
12
  /** Merchant categories to include */
13
13
  categories: KardApi.CategoryOption[];
14
14
  /** Merchant categories to exclude */
@@ -9,7 +9,7 @@ import type * as KardApi from "../../../../../index.js";
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
11
  * organizationId: "org-123",
12
- * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
12
+ * sort: KardApi.organizations.ContentStrategySort.HighestCashback,
13
13
  * categories: [KardApi.CategoryOption.Travel],
14
14
  * categoryExclusions: [KardApi.CategoryOption.Gas],
15
15
  * merchantExclusions: ["merchant-abc"]
@@ -0,0 +1,8 @@
1
+ /** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
+ export declare const ContentStrategySort: {
3
+ readonly NewlyLive: "NEWLY_LIVE";
4
+ readonly ExpiringSoon: "EXPIRING_SOON";
5
+ readonly HighestCashback: "HIGHEST_CASHBACK";
6
+ readonly Personalized: "PERSONALIZED";
7
+ };
8
+ export type ContentStrategySort = (typeof ContentStrategySort)[keyof typeof ContentStrategySort];
@@ -1,9 +1,9 @@
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.ContentStrategyFilter = void 0;
5
- /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
6
- exports.ContentStrategyFilter = {
4
+ exports.ContentStrategySort = void 0;
5
+ /** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
6
+ exports.ContentStrategySort = {
7
7
  NewlyLive: "NEWLY_LIVE",
8
8
  ExpiringSoon: "EXPIRING_SOON",
9
9
  HighestCashback: "HIGHEST_CASHBACK",
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.js";
5
5
  * @example
6
6
  * {
7
7
  * name: "Featured Travel",
8
- * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
8
+ * sort: KardApi.organizations.ContentStrategySort.HighestCashback,
9
9
  * categories: [KardApi.CategoryOption.Travel],
10
10
  * categoryExclusions: [KardApi.CategoryOption.Gas],
11
11
  * merchantExclusions: ["merchant-abc"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.js";
14
14
  export interface CreateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filter applied when selecting offers for the strategy */
18
- filter?: KardApi.organizations.ContentStrategyFilter | undefined;
17
+ /** Sort applied when selecting offers for the strategy */
18
+ sort?: KardApi.organizations.ContentStrategySort | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -8,7 +8,7 @@ import type * as KardApi from "../../../../../index.js";
8
8
  * type: "contentStrategy",
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
- * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
11
+ * sort: KardApi.organizations.ContentStrategySort.HighestCashback,
12
12
  * categories: [KardApi.CategoryOption.Travel],
13
13
  * categoryExclusions: [KardApi.CategoryOption.Gas],
14
14
  * merchantExclusions: ["merchant-abc"]
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.js";
5
5
  * @example
6
6
  * {
7
7
  * name: "Updated Travel Strategy",
8
- * filter: KardApi.organizations.ContentStrategyFilter.ExpiringSoon,
8
+ * sort: KardApi.organizations.ContentStrategySort.ExpiringSoon,
9
9
  * categories: [KardApi.CategoryOption.Travel, KardApi.CategoryOption.FoodBeverage],
10
10
  * categoryExclusions: [],
11
11
  * merchantExclusions: ["merchant-xyz"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.js";
14
14
  export interface UpdateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filter applied when selecting offers for the strategy */
18
- filter?: KardApi.organizations.ContentStrategyFilter | undefined;
17
+ /** Sort applied when selecting offers for the strategy */
18
+ sort?: KardApi.organizations.ContentStrategySort | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -1,7 +1,7 @@
1
1
  export * from "./ContentStrategyAttributes.js";
2
- export * from "./ContentStrategyFilter.js";
3
2
  export * from "./ContentStrategyListResponse.js";
4
3
  export * from "./ContentStrategyResponse.js";
4
+ export * from "./ContentStrategySort.js";
5
5
  export * from "./CreateContentStrategyAttributes.js";
6
6
  export * from "./CreateContentStrategyRequestBody.js";
7
7
  export * from "./CreateContentStrategyRequestData.js";
@@ -15,9 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ContentStrategyAttributes.js"), exports);
18
- __exportStar(require("./ContentStrategyFilter.js"), exports);
19
18
  __exportStar(require("./ContentStrategyListResponse.js"), exports);
20
19
  __exportStar(require("./ContentStrategyResponse.js"), exports);
20
+ __exportStar(require("./ContentStrategySort.js"), exports);
21
21
  __exportStar(require("./CreateContentStrategyAttributes.js"), exports);
22
22
  __exportStar(require("./CreateContentStrategyRequestBody.js"), exports);
23
23
  __exportStar(require("./CreateContentStrategyRequestData.js"), exports);
@@ -7,4 +7,10 @@ export interface ProgressBarSegment {
7
7
  icon?: string | undefined;
8
8
  /** Position of the segment within the layout */
9
9
  position: KardApi.users.ProgressBarSegmentPosition;
10
+ /** Separator style to render between segment nodes */
11
+ separator?: KardApi.users.ProgressBarSegmentSeparator | undefined;
12
+ /** Label configuration for each node in the segment */
13
+ labels?: KardApi.users.ProgressBarSegmentLabel[] | undefined;
14
+ /** Which segment nodes the UI should render as selected based on currentProgress */
15
+ selection?: KardApi.users.ProgressBarSegmentSelection | undefined;
10
16
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Label configuration for a single node within a segment
3
+ */
4
+ export interface ProgressBarSegmentLabel {
5
+ /** Title text for the segment node */
6
+ title: string;
7
+ /** Description text for the segment node */
8
+ description: string;
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 });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Supported selection strategies for highlighting segment nodes.
3
+ * - CURRENT: select only the segment at currentProgress
4
+ * - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
5
+ */
6
+ export declare const ProgressBarSegmentSelection: {
7
+ readonly Current: "CURRENT";
8
+ readonly CurrentAndBelow: "CURRENT_AND_BELOW";
9
+ };
10
+ export type ProgressBarSegmentSelection = (typeof ProgressBarSegmentSelection)[keyof typeof ProgressBarSegmentSelection];
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProgressBarSegmentSelection = void 0;
5
+ /**
6
+ * Supported selection strategies for highlighting segment nodes.
7
+ * - CURRENT: select only the segment at currentProgress
8
+ * - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
9
+ */
10
+ exports.ProgressBarSegmentSelection = {
11
+ Current: "CURRENT",
12
+ CurrentAndBelow: "CURRENT_AND_BELOW",
13
+ };
@@ -0,0 +1,5 @@
1
+ /** Supported separator styles between segment nodes */
2
+ export declare const ProgressBarSegmentSeparator: {
3
+ readonly Line: "LINE";
4
+ };
5
+ export type ProgressBarSegmentSeparator = (typeof ProgressBarSegmentSeparator)[keyof typeof ProgressBarSegmentSeparator];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ProgressBarSegmentSeparator = void 0;
5
+ /** Supported separator styles between segment nodes */
6
+ exports.ProgressBarSegmentSeparator = {
7
+ Line: "LINE",
8
+ };
@@ -42,7 +42,10 @@ export * from "./ProgressBar.js";
42
42
  export * from "./ProgressBarLabelPair.js";
43
43
  export * from "./ProgressBarLabels.js";
44
44
  export * from "./ProgressBarSegment.js";
45
+ export * from "./ProgressBarSegmentLabel.js";
45
46
  export * from "./ProgressBarSegmentPosition.js";
47
+ export * from "./ProgressBarSegmentSelection.js";
48
+ export * from "./ProgressBarSegmentSeparator.js";
46
49
  export * from "./ProgressBarSegments.js";
47
50
  export * from "./StandardOffer.js";
48
51
  export * from "./StandardOfferCore.js";
@@ -58,7 +58,10 @@ __exportStar(require("./ProgressBar.js"), exports);
58
58
  __exportStar(require("./ProgressBarLabelPair.js"), exports);
59
59
  __exportStar(require("./ProgressBarLabels.js"), exports);
60
60
  __exportStar(require("./ProgressBarSegment.js"), exports);
61
+ __exportStar(require("./ProgressBarSegmentLabel.js"), exports);
61
62
  __exportStar(require("./ProgressBarSegmentPosition.js"), exports);
63
+ __exportStar(require("./ProgressBarSegmentSelection.js"), exports);
64
+ __exportStar(require("./ProgressBarSegmentSeparator.js"), exports);
62
65
  __exportStar(require("./ProgressBarSegments.js"), exports);
63
66
  __exportStar(require("./StandardOffer.js"), exports);
64
67
  __exportStar(require("./StandardOfferCore.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "21.0.0";
1
+ export declare const SDK_VERSION = "22.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 = "21.0.0";
4
+ exports.SDK_VERSION = "22.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": "21.0.0",
10
- "User-Agent": "@kard-financial/sdk/21.0.0",
9
+ "X-Fern-SDK-Version": "22.1.0",
10
+ "User-Agent": "@kard-financial/sdk/22.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);
@@ -30,7 +30,7 @@ export declare class ContentStrategiesClient {
30
30
  * type: "contentStrategy",
31
31
  * attributes: {
32
32
  * name: "Featured Travel",
33
- * filter: "HIGHEST_CASHBACK",
33
+ * sort: "HIGHEST_CASHBACK",
34
34
  * categories: ["Travel"],
35
35
  * categoryExclusions: ["Gas"],
36
36
  * merchantExclusions: ["merchant-abc"]
@@ -39,7 +39,7 @@ export class ContentStrategiesClient {
39
39
  * type: "contentStrategy",
40
40
  * attributes: {
41
41
  * name: "Featured Travel",
42
- * filter: "HIGHEST_CASHBACK",
42
+ * sort: "HIGHEST_CASHBACK",
43
43
  * categories: ["Travel"],
44
44
  * categoryExclusions: ["Gas"],
45
45
  * merchantExclusions: ["merchant-abc"]
@@ -7,8 +7,8 @@ export interface ContentStrategyAttributes {
7
7
  name: string;
8
8
  /** ID of the organization this content strategy belongs to */
9
9
  organizationId: string;
10
- /** Filter applied when selecting offers for the strategy */
11
- filter?: KardApi.organizations.ContentStrategyFilter | undefined;
10
+ /** Sort applied when selecting offers for the strategy */
11
+ sort?: KardApi.organizations.ContentStrategySort | undefined;
12
12
  /** Merchant categories to include */
13
13
  categories: KardApi.CategoryOption[];
14
14
  /** Merchant categories to exclude */
@@ -9,7 +9,7 @@ import type * as KardApi from "../../../../../index.mjs";
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
11
  * organizationId: "org-123",
12
- * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
12
+ * sort: KardApi.organizations.ContentStrategySort.HighestCashback,
13
13
  * categories: [KardApi.CategoryOption.Travel],
14
14
  * categoryExclusions: [KardApi.CategoryOption.Gas],
15
15
  * merchantExclusions: ["merchant-abc"]
@@ -0,0 +1,8 @@
1
+ /** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
+ export declare const ContentStrategySort: {
3
+ readonly NewlyLive: "NEWLY_LIVE";
4
+ readonly ExpiringSoon: "EXPIRING_SOON";
5
+ readonly HighestCashback: "HIGHEST_CASHBACK";
6
+ readonly Personalized: "PERSONALIZED";
7
+ };
8
+ export type ContentStrategySort = (typeof ContentStrategySort)[keyof typeof ContentStrategySort];
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
3
+ export const ContentStrategySort = {
4
+ NewlyLive: "NEWLY_LIVE",
5
+ ExpiringSoon: "EXPIRING_SOON",
6
+ HighestCashback: "HIGHEST_CASHBACK",
7
+ Personalized: "PERSONALIZED",
8
+ };
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.mjs";
5
5
  * @example
6
6
  * {
7
7
  * name: "Featured Travel",
8
- * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
8
+ * sort: KardApi.organizations.ContentStrategySort.HighestCashback,
9
9
  * categories: [KardApi.CategoryOption.Travel],
10
10
  * categoryExclusions: [KardApi.CategoryOption.Gas],
11
11
  * merchantExclusions: ["merchant-abc"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.mjs";
14
14
  export interface CreateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filter applied when selecting offers for the strategy */
18
- filter?: KardApi.organizations.ContentStrategyFilter | undefined;
17
+ /** Sort applied when selecting offers for the strategy */
18
+ sort?: KardApi.organizations.ContentStrategySort | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -8,7 +8,7 @@ import type * as KardApi from "../../../../../index.mjs";
8
8
  * type: "contentStrategy",
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
- * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
11
+ * sort: KardApi.organizations.ContentStrategySort.HighestCashback,
12
12
  * categories: [KardApi.CategoryOption.Travel],
13
13
  * categoryExclusions: [KardApi.CategoryOption.Gas],
14
14
  * merchantExclusions: ["merchant-abc"]
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.mjs";
5
5
  * @example
6
6
  * {
7
7
  * name: "Updated Travel Strategy",
8
- * filter: KardApi.organizations.ContentStrategyFilter.ExpiringSoon,
8
+ * sort: KardApi.organizations.ContentStrategySort.ExpiringSoon,
9
9
  * categories: [KardApi.CategoryOption.Travel, KardApi.CategoryOption.FoodBeverage],
10
10
  * categoryExclusions: [],
11
11
  * merchantExclusions: ["merchant-xyz"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.mjs";
14
14
  export interface UpdateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filter applied when selecting offers for the strategy */
18
- filter?: KardApi.organizations.ContentStrategyFilter | undefined;
17
+ /** Sort applied when selecting offers for the strategy */
18
+ sort?: KardApi.organizations.ContentStrategySort | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -1,7 +1,7 @@
1
1
  export * from "./ContentStrategyAttributes.mjs";
2
- export * from "./ContentStrategyFilter.mjs";
3
2
  export * from "./ContentStrategyListResponse.mjs";
4
3
  export * from "./ContentStrategyResponse.mjs";
4
+ export * from "./ContentStrategySort.mjs";
5
5
  export * from "./CreateContentStrategyAttributes.mjs";
6
6
  export * from "./CreateContentStrategyRequestBody.mjs";
7
7
  export * from "./CreateContentStrategyRequestData.mjs";
@@ -1,7 +1,7 @@
1
1
  export * from "./ContentStrategyAttributes.mjs";
2
- export * from "./ContentStrategyFilter.mjs";
3
2
  export * from "./ContentStrategyListResponse.mjs";
4
3
  export * from "./ContentStrategyResponse.mjs";
4
+ export * from "./ContentStrategySort.mjs";
5
5
  export * from "./CreateContentStrategyAttributes.mjs";
6
6
  export * from "./CreateContentStrategyRequestBody.mjs";
7
7
  export * from "./CreateContentStrategyRequestData.mjs";
@@ -7,4 +7,10 @@ export interface ProgressBarSegment {
7
7
  icon?: string | undefined;
8
8
  /** Position of the segment within the layout */
9
9
  position: KardApi.users.ProgressBarSegmentPosition;
10
+ /** Separator style to render between segment nodes */
11
+ separator?: KardApi.users.ProgressBarSegmentSeparator | undefined;
12
+ /** Label configuration for each node in the segment */
13
+ labels?: KardApi.users.ProgressBarSegmentLabel[] | undefined;
14
+ /** Which segment nodes the UI should render as selected based on currentProgress */
15
+ selection?: KardApi.users.ProgressBarSegmentSelection | undefined;
10
16
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Label configuration for a single node within a segment
3
+ */
4
+ export interface ProgressBarSegmentLabel {
5
+ /** Title text for the segment node */
6
+ title: string;
7
+ /** Description text for the segment node */
8
+ description: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Supported selection strategies for highlighting segment nodes.
3
+ * - CURRENT: select only the segment at currentProgress
4
+ * - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
5
+ */
6
+ export declare const ProgressBarSegmentSelection: {
7
+ readonly Current: "CURRENT";
8
+ readonly CurrentAndBelow: "CURRENT_AND_BELOW";
9
+ };
10
+ export type ProgressBarSegmentSelection = (typeof ProgressBarSegmentSelection)[keyof typeof ProgressBarSegmentSelection];
@@ -0,0 +1,10 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /**
3
+ * Supported selection strategies for highlighting segment nodes.
4
+ * - CURRENT: select only the segment at currentProgress
5
+ * - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
6
+ */
7
+ export const ProgressBarSegmentSelection = {
8
+ Current: "CURRENT",
9
+ CurrentAndBelow: "CURRENT_AND_BELOW",
10
+ };
@@ -0,0 +1,5 @@
1
+ /** Supported separator styles between segment nodes */
2
+ export declare const ProgressBarSegmentSeparator: {
3
+ readonly Line: "LINE";
4
+ };
5
+ export type ProgressBarSegmentSeparator = (typeof ProgressBarSegmentSeparator)[keyof typeof ProgressBarSegmentSeparator];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Supported separator styles between segment nodes */
3
+ export const ProgressBarSegmentSeparator = {
4
+ Line: "LINE",
5
+ };
@@ -42,7 +42,10 @@ export * from "./ProgressBar.mjs";
42
42
  export * from "./ProgressBarLabelPair.mjs";
43
43
  export * from "./ProgressBarLabels.mjs";
44
44
  export * from "./ProgressBarSegment.mjs";
45
+ export * from "./ProgressBarSegmentLabel.mjs";
45
46
  export * from "./ProgressBarSegmentPosition.mjs";
47
+ export * from "./ProgressBarSegmentSelection.mjs";
48
+ export * from "./ProgressBarSegmentSeparator.mjs";
46
49
  export * from "./ProgressBarSegments.mjs";
47
50
  export * from "./StandardOffer.mjs";
48
51
  export * from "./StandardOfferCore.mjs";
@@ -42,7 +42,10 @@ export * from "./ProgressBar.mjs";
42
42
  export * from "./ProgressBarLabelPair.mjs";
43
43
  export * from "./ProgressBarLabels.mjs";
44
44
  export * from "./ProgressBarSegment.mjs";
45
+ export * from "./ProgressBarSegmentLabel.mjs";
45
46
  export * from "./ProgressBarSegmentPosition.mjs";
47
+ export * from "./ProgressBarSegmentSelection.mjs";
48
+ export * from "./ProgressBarSegmentSeparator.mjs";
46
49
  export * from "./ProgressBarSegments.mjs";
47
50
  export * from "./StandardOffer.mjs";
48
51
  export * from "./StandardOfferCore.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "21.0.0";
1
+ export declare const SDK_VERSION = "22.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "21.0.0";
1
+ export const SDK_VERSION = "22.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "21.0.0",
3
+ "version": "22.1.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -841,7 +841,7 @@ await client.organizations.contentStrategies.create("org-123", {
841
841
  type: "contentStrategy",
842
842
  attributes: {
843
843
  name: "Featured Travel",
844
- filter: "HIGHEST_CASHBACK",
844
+ sort: "HIGHEST_CASHBACK",
845
845
  categories: ["Travel"],
846
846
  categoryExclusions: ["Gas"],
847
847
  merchantExclusions: ["merchant-abc"]
@@ -1,8 +0,0 @@
1
- /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
- export declare const ContentStrategyFilter: {
3
- readonly NewlyLive: "NEWLY_LIVE";
4
- readonly ExpiringSoon: "EXPIRING_SOON";
5
- readonly HighestCashback: "HIGHEST_CASHBACK";
6
- readonly Personalized: "PERSONALIZED";
7
- };
8
- export type ContentStrategyFilter = (typeof ContentStrategyFilter)[keyof typeof ContentStrategyFilter];
@@ -1,8 +0,0 @@
1
- /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
- export declare const ContentStrategyFilter: {
3
- readonly NewlyLive: "NEWLY_LIVE";
4
- readonly ExpiringSoon: "EXPIRING_SOON";
5
- readonly HighestCashback: "HIGHEST_CASHBACK";
6
- readonly Personalized: "PERSONALIZED";
7
- };
8
- export type ContentStrategyFilter = (typeof ContentStrategyFilter)[keyof typeof ContentStrategyFilter];
@@ -1,8 +0,0 @@
1
- // This file was auto-generated by Fern from our API Definition.
2
- /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
3
- export const ContentStrategyFilter = {
4
- NewlyLive: "NEWLY_LIVE",
5
- ExpiringSoon: "EXPIRING_SOON",
6
- HighestCashback: "HIGHEST_CASHBACK",
7
- Personalized: "PERSONALIZED",
8
- };