@kard-financial/sdk 4.7.0 → 4.8.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 (41) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/users/resources/rewards/client/requests/GetLocationsByUserRequest.d.ts +1 -1
  3. package/dist/cjs/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.ts +1 -1
  4. package/dist/cjs/api/resources/users/resources/rewards/types/ButtonStyle.d.ts +1 -0
  5. package/dist/cjs/api/resources/users/resources/rewards/types/ButtonStyle.js +1 -0
  6. package/dist/cjs/api/resources/users/resources/rewards/types/ComponentType.d.ts +2 -0
  7. package/dist/cjs/api/resources/users/resources/rewards/types/ComponentType.js +2 -0
  8. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlare.d.ts +10 -0
  9. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlare.js +3 -0
  10. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadge.d.ts +10 -0
  11. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadge.js +3 -0
  12. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.d.ts +8 -0
  13. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.js +11 -0
  14. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBorderColor.d.ts +6 -0
  15. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBorderColor.js +9 -0
  16. package/dist/cjs/api/resources/users/resources/rewards/types/OfferComponents.d.ts +4 -0
  17. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +4 -0
  18. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +4 -0
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/BaseClient.mjs +2 -2
  22. package/dist/esm/api/resources/users/resources/rewards/client/requests/GetLocationsByUserRequest.d.mts +1 -1
  23. package/dist/esm/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.mts +1 -1
  24. package/dist/esm/api/resources/users/resources/rewards/types/ButtonStyle.d.mts +1 -0
  25. package/dist/esm/api/resources/users/resources/rewards/types/ButtonStyle.mjs +1 -0
  26. package/dist/esm/api/resources/users/resources/rewards/types/ComponentType.d.mts +2 -0
  27. package/dist/esm/api/resources/users/resources/rewards/types/ComponentType.mjs +2 -0
  28. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlare.d.mts +10 -0
  29. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlare.mjs +2 -0
  30. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadge.d.mts +10 -0
  31. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadge.mjs +2 -0
  32. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.d.mts +8 -0
  33. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.mjs +8 -0
  34. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBorderColor.d.mts +6 -0
  35. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBorderColor.mjs +6 -0
  36. package/dist/esm/api/resources/users/resources/rewards/types/OfferComponents.d.mts +4 -0
  37. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +4 -0
  38. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +4 -0
  39. package/dist/esm/version.d.mts +1 -1
  40. package/dist/esm/version.mjs +1 -1
  41. package/package.json +1 -1
@@ -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.7.0",
47
- "User-Agent": "@kard-financial/sdk/4.7.0",
46
+ "X-Fern-SDK-Version": "4.8.0",
47
+ "User-Agent": "@kard-financial/sdk/4.8.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);
@@ -25,6 +25,6 @@ export interface GetLocationsByUserRequest {
25
25
  sort?: KardApi.users.LocationSortOptions | KardApi.users.LocationSortOptions[];
26
26
  /** CSV list of included resources in the response (e.g "offers,categories"). Allowed values are `offers` and `categories`. */
27
27
  include?: string | string[];
28
- /** UI component types to include in included offers. Valid values are shortDescription, longDescription, cta, tags, and detailTags. */
28
+ /** UI component types to include in included offers. */
29
29
  supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
30
30
  }
@@ -18,6 +18,6 @@ export interface GetOffersByUserRequest {
18
18
  sort?: KardApi.users.OfferSortOptions | KardApi.users.OfferSortOptions[];
19
19
  /** CSV list of included resources in the response (e.g "categories"). Allowed value is `categories`. */
20
20
  include?: string | string[];
21
- /** UI component types to include in the response. Valid values are shortDescription, longDescription, cta, tags, and detailTags. */
21
+ /** UI component types to include in the response. */
22
22
  supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
23
23
  }
@@ -1,6 +1,7 @@
1
1
  /** Available button styles for CTA components */
2
2
  export declare const ButtonStyle: {
3
3
  readonly Primary: "PRIMARY";
4
+ readonly Secondary: "SECONDARY";
4
5
  readonly Disabled: "DISABLED";
5
6
  };
6
7
  export type ButtonStyle = (typeof ButtonStyle)[keyof typeof ButtonStyle];
@@ -5,5 +5,6 @@ exports.ButtonStyle = void 0;
5
5
  /** Available button styles for CTA components */
6
6
  exports.ButtonStyle = {
7
7
  Primary: "PRIMARY",
8
+ Secondary: "SECONDARY",
8
9
  Disabled: "DISABLED",
9
10
  };
@@ -3,8 +3,10 @@ export declare const ComponentType: {
3
3
  readonly ShortDescription: "shortDescription";
4
4
  readonly LongDescription: "longDescription";
5
5
  readonly BaseReward: "baseReward";
6
+ readonly BoostedReward: "boostedReward";
6
7
  readonly Cta: "cta";
7
8
  readonly Tags: "tags";
8
9
  readonly DetailTags: "detailTags";
10
+ readonly LogoFlare: "logoFlare";
9
11
  };
10
12
  export type ComponentType = (typeof ComponentType)[keyof typeof ComponentType];
@@ -7,7 +7,9 @@ exports.ComponentType = {
7
7
  ShortDescription: "shortDescription",
8
8
  LongDescription: "longDescription",
9
9
  BaseReward: "baseReward",
10
+ BoostedReward: "boostedReward",
10
11
  Cta: "cta",
11
12
  Tags: "tags",
12
13
  DetailTags: "detailTags",
14
+ LogoFlare: "logoFlare",
13
15
  };
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Logo flare configuration for offer display
4
+ */
5
+ export interface LogoFlare {
6
+ /** Border color style for the logo flare */
7
+ borderColor: KardApi.users.LogoFlareBorderColor;
8
+ /** Optional badge to display on the logo */
9
+ badge?: KardApi.users.LogoFlareBadge;
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,10 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ /**
3
+ * Badge configuration for logo flare
4
+ */
5
+ export interface LogoFlareBadge {
6
+ /** Icon identifier for the badge */
7
+ icon: string;
8
+ /** Position of the badge on the logo */
9
+ position: KardApi.users.LogoFlareBadgePosition;
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,8 @@
1
+ /** Available positions for the logo flare badge */
2
+ export declare const LogoFlareBadgePosition: {
3
+ readonly TopRight: "TOP_RIGHT";
4
+ readonly TopLeft: "TOP_LEFT";
5
+ readonly BottomRight: "BOTTOM_RIGHT";
6
+ readonly BottomLeft: "BOTTOM_LEFT";
7
+ };
8
+ export type LogoFlareBadgePosition = (typeof LogoFlareBadgePosition)[keyof typeof LogoFlareBadgePosition];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LogoFlareBadgePosition = void 0;
5
+ /** Available positions for the logo flare badge */
6
+ exports.LogoFlareBadgePosition = {
7
+ TopRight: "TOP_RIGHT",
8
+ TopLeft: "TOP_LEFT",
9
+ BottomRight: "BOTTOM_RIGHT",
10
+ BottomLeft: "BOTTOM_LEFT",
11
+ };
@@ -0,0 +1,6 @@
1
+ /** Available border color options for logo flare */
2
+ export declare const LogoFlareBorderColor: {
3
+ readonly Primary: "PRIMARY";
4
+ readonly Secondary: "SECONDARY";
5
+ };
6
+ export type LogoFlareBorderColor = (typeof LogoFlareBorderColor)[keyof typeof LogoFlareBorderColor];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LogoFlareBorderColor = void 0;
5
+ /** Available border color options for logo flare */
6
+ exports.LogoFlareBorderColor = {
7
+ Primary: "PRIMARY",
8
+ Secondary: "SECONDARY",
9
+ };
@@ -9,10 +9,14 @@ export interface OfferComponents {
9
9
  longDescription?: string;
10
10
  /** Formatted reward string */
11
11
  baseReward?: string;
12
+ /** Formatted boosted reward string */
13
+ boostedReward?: string;
12
14
  /** Call-to-action button component */
13
15
  cta?: KardApi.users.CtaComponent;
14
16
  /** Tags for the offer */
15
17
  tags?: string[];
16
18
  /** Detail tags for the offer */
17
19
  detailTags?: string[];
20
+ /** Logo flare configuration for the offer */
21
+ logoFlare?: KardApi.users.LogoFlare;
18
22
  }
@@ -22,6 +22,10 @@ export * from "./LocationData.js";
22
22
  export * from "./LocationRelationships.js";
23
23
  export * from "./LocationSortOptions.js";
24
24
  export * from "./LocationsResponseObject.js";
25
+ export * from "./LogoFlare.js";
26
+ export * from "./LogoFlareBadge.js";
27
+ export * from "./LogoFlareBadgePosition.js";
28
+ export * from "./LogoFlareBorderColor.js";
25
29
  export * from "./OfferCommonFields.js";
26
30
  export * from "./OfferComponents.js";
27
31
  export * from "./OfferDataUnion.js";
@@ -38,6 +38,10 @@ __exportStar(require("./LocationData.js"), exports);
38
38
  __exportStar(require("./LocationRelationships.js"), exports);
39
39
  __exportStar(require("./LocationSortOptions.js"), exports);
40
40
  __exportStar(require("./LocationsResponseObject.js"), exports);
41
+ __exportStar(require("./LogoFlare.js"), exports);
42
+ __exportStar(require("./LogoFlareBadge.js"), exports);
43
+ __exportStar(require("./LogoFlareBadgePosition.js"), exports);
44
+ __exportStar(require("./LogoFlareBorderColor.js"), exports);
41
45
  __exportStar(require("./OfferCommonFields.js"), exports);
42
46
  __exportStar(require("./OfferComponents.js"), exports);
43
47
  __exportStar(require("./OfferDataUnion.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.7.0";
1
+ export declare const SDK_VERSION = "4.8.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.7.0";
4
+ exports.SDK_VERSION = "4.8.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.7.0",
10
- "User-Agent": "@kard-financial/sdk/4.7.0",
9
+ "X-Fern-SDK-Version": "4.8.0",
10
+ "User-Agent": "@kard-financial/sdk/4.8.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);
@@ -25,6 +25,6 @@ export interface GetLocationsByUserRequest {
25
25
  sort?: KardApi.users.LocationSortOptions | KardApi.users.LocationSortOptions[];
26
26
  /** CSV list of included resources in the response (e.g "offers,categories"). Allowed values are `offers` and `categories`. */
27
27
  include?: string | string[];
28
- /** UI component types to include in included offers. Valid values are shortDescription, longDescription, cta, tags, and detailTags. */
28
+ /** UI component types to include in included offers. */
29
29
  supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
30
30
  }
@@ -18,6 +18,6 @@ export interface GetOffersByUserRequest {
18
18
  sort?: KardApi.users.OfferSortOptions | KardApi.users.OfferSortOptions[];
19
19
  /** CSV list of included resources in the response (e.g "categories"). Allowed value is `categories`. */
20
20
  include?: string | string[];
21
- /** UI component types to include in the response. Valid values are shortDescription, longDescription, cta, tags, and detailTags. */
21
+ /** UI component types to include in the response. */
22
22
  supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
23
23
  }
@@ -1,6 +1,7 @@
1
1
  /** Available button styles for CTA components */
2
2
  export declare const ButtonStyle: {
3
3
  readonly Primary: "PRIMARY";
4
+ readonly Secondary: "SECONDARY";
4
5
  readonly Disabled: "DISABLED";
5
6
  };
6
7
  export type ButtonStyle = (typeof ButtonStyle)[keyof typeof ButtonStyle];
@@ -2,5 +2,6 @@
2
2
  /** Available button styles for CTA components */
3
3
  export const ButtonStyle = {
4
4
  Primary: "PRIMARY",
5
+ Secondary: "SECONDARY",
5
6
  Disabled: "DISABLED",
6
7
  };
@@ -3,8 +3,10 @@ export declare const ComponentType: {
3
3
  readonly ShortDescription: "shortDescription";
4
4
  readonly LongDescription: "longDescription";
5
5
  readonly BaseReward: "baseReward";
6
+ readonly BoostedReward: "boostedReward";
6
7
  readonly Cta: "cta";
7
8
  readonly Tags: "tags";
8
9
  readonly DetailTags: "detailTags";
10
+ readonly LogoFlare: "logoFlare";
9
11
  };
10
12
  export type ComponentType = (typeof ComponentType)[keyof typeof ComponentType];
@@ -4,7 +4,9 @@ export const ComponentType = {
4
4
  ShortDescription: "shortDescription",
5
5
  LongDescription: "longDescription",
6
6
  BaseReward: "baseReward",
7
+ BoostedReward: "boostedReward",
7
8
  Cta: "cta",
8
9
  Tags: "tags",
9
10
  DetailTags: "detailTags",
11
+ LogoFlare: "logoFlare",
10
12
  };
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Logo flare configuration for offer display
4
+ */
5
+ export interface LogoFlare {
6
+ /** Border color style for the logo flare */
7
+ borderColor: KardApi.users.LogoFlareBorderColor;
8
+ /** Optional badge to display on the logo */
9
+ badge?: KardApi.users.LogoFlareBadge;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,10 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ /**
3
+ * Badge configuration for logo flare
4
+ */
5
+ export interface LogoFlareBadge {
6
+ /** Icon identifier for the badge */
7
+ icon: string;
8
+ /** Position of the badge on the logo */
9
+ position: KardApi.users.LogoFlareBadgePosition;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ /** Available positions for the logo flare badge */
2
+ export declare const LogoFlareBadgePosition: {
3
+ readonly TopRight: "TOP_RIGHT";
4
+ readonly TopLeft: "TOP_LEFT";
5
+ readonly BottomRight: "BOTTOM_RIGHT";
6
+ readonly BottomLeft: "BOTTOM_LEFT";
7
+ };
8
+ export type LogoFlareBadgePosition = (typeof LogoFlareBadgePosition)[keyof typeof LogoFlareBadgePosition];
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Available positions for the logo flare badge */
3
+ export const LogoFlareBadgePosition = {
4
+ TopRight: "TOP_RIGHT",
5
+ TopLeft: "TOP_LEFT",
6
+ BottomRight: "BOTTOM_RIGHT",
7
+ BottomLeft: "BOTTOM_LEFT",
8
+ };
@@ -0,0 +1,6 @@
1
+ /** Available border color options for logo flare */
2
+ export declare const LogoFlareBorderColor: {
3
+ readonly Primary: "PRIMARY";
4
+ readonly Secondary: "SECONDARY";
5
+ };
6
+ export type LogoFlareBorderColor = (typeof LogoFlareBorderColor)[keyof typeof LogoFlareBorderColor];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Available border color options for logo flare */
3
+ export const LogoFlareBorderColor = {
4
+ Primary: "PRIMARY",
5
+ Secondary: "SECONDARY",
6
+ };
@@ -9,10 +9,14 @@ export interface OfferComponents {
9
9
  longDescription?: string;
10
10
  /** Formatted reward string */
11
11
  baseReward?: string;
12
+ /** Formatted boosted reward string */
13
+ boostedReward?: string;
12
14
  /** Call-to-action button component */
13
15
  cta?: KardApi.users.CtaComponent;
14
16
  /** Tags for the offer */
15
17
  tags?: string[];
16
18
  /** Detail tags for the offer */
17
19
  detailTags?: string[];
20
+ /** Logo flare configuration for the offer */
21
+ logoFlare?: KardApi.users.LogoFlare;
18
22
  }
@@ -22,6 +22,10 @@ export * from "./LocationData.mjs";
22
22
  export * from "./LocationRelationships.mjs";
23
23
  export * from "./LocationSortOptions.mjs";
24
24
  export * from "./LocationsResponseObject.mjs";
25
+ export * from "./LogoFlare.mjs";
26
+ export * from "./LogoFlareBadge.mjs";
27
+ export * from "./LogoFlareBadgePosition.mjs";
28
+ export * from "./LogoFlareBorderColor.mjs";
25
29
  export * from "./OfferCommonFields.mjs";
26
30
  export * from "./OfferComponents.mjs";
27
31
  export * from "./OfferDataUnion.mjs";
@@ -22,6 +22,10 @@ export * from "./LocationData.mjs";
22
22
  export * from "./LocationRelationships.mjs";
23
23
  export * from "./LocationSortOptions.mjs";
24
24
  export * from "./LocationsResponseObject.mjs";
25
+ export * from "./LogoFlare.mjs";
26
+ export * from "./LogoFlareBadge.mjs";
27
+ export * from "./LogoFlareBadgePosition.mjs";
28
+ export * from "./LogoFlareBorderColor.mjs";
25
29
  export * from "./OfferCommonFields.mjs";
26
30
  export * from "./OfferComponents.mjs";
27
31
  export * from "./OfferDataUnion.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "4.7.0";
1
+ export declare const SDK_VERSION = "4.8.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "4.7.0";
1
+ export const SDK_VERSION = "4.8.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "4.7.0",
3
+ "version": "4.8.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",