@kard-financial/sdk 4.7.0 → 4.9.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 (45) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/transactions/client/Client.js +2 -2
  3. package/dist/cjs/api/resources/users/resources/rewards/client/Client.js +4 -1
  4. package/dist/cjs/api/resources/users/resources/rewards/client/requests/GetLocationsByUserRequest.d.ts +1 -1
  5. package/dist/cjs/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.ts +3 -1
  6. package/dist/cjs/api/resources/users/resources/rewards/types/ButtonStyle.d.ts +1 -0
  7. package/dist/cjs/api/resources/users/resources/rewards/types/ButtonStyle.js +1 -0
  8. package/dist/cjs/api/resources/users/resources/rewards/types/ComponentType.d.ts +2 -0
  9. package/dist/cjs/api/resources/users/resources/rewards/types/ComponentType.js +2 -0
  10. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlare.d.ts +10 -0
  11. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlare.js +3 -0
  12. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadge.d.ts +10 -0
  13. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadge.js +3 -0
  14. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.d.ts +8 -0
  15. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.js +11 -0
  16. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBorderColor.d.ts +6 -0
  17. package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBorderColor.js +9 -0
  18. package/dist/cjs/api/resources/users/resources/rewards/types/OfferComponents.d.ts +4 -0
  19. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +4 -0
  20. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +4 -0
  21. package/dist/cjs/version.d.ts +1 -1
  22. package/dist/cjs/version.js +1 -1
  23. package/dist/esm/BaseClient.mjs +2 -2
  24. package/dist/esm/api/resources/transactions/client/Client.mjs +2 -2
  25. package/dist/esm/api/resources/users/resources/rewards/client/Client.mjs +4 -1
  26. package/dist/esm/api/resources/users/resources/rewards/client/requests/GetLocationsByUserRequest.d.mts +1 -1
  27. package/dist/esm/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.mts +3 -1
  28. package/dist/esm/api/resources/users/resources/rewards/types/ButtonStyle.d.mts +1 -0
  29. package/dist/esm/api/resources/users/resources/rewards/types/ButtonStyle.mjs +1 -0
  30. package/dist/esm/api/resources/users/resources/rewards/types/ComponentType.d.mts +2 -0
  31. package/dist/esm/api/resources/users/resources/rewards/types/ComponentType.mjs +2 -0
  32. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlare.d.mts +10 -0
  33. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlare.mjs +2 -0
  34. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadge.d.mts +10 -0
  35. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadge.mjs +2 -0
  36. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.d.mts +8 -0
  37. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.mjs +8 -0
  38. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBorderColor.d.mts +6 -0
  39. package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBorderColor.mjs +6 -0
  40. package/dist/esm/api/resources/users/resources/rewards/types/OfferComponents.d.mts +4 -0
  41. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +4 -0
  42. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +4 -0
  43. package/dist/esm/version.d.mts +1 -1
  44. package/dist/esm/version.mjs +1 -1
  45. 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);
@@ -512,7 +512,7 @@ class TransactionsClient {
512
512
  const _authRequest = yield this._options.authProvider.getAuthRequest();
513
513
  const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
514
514
  const _response = yield core.fetcher({
515
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.KardApiEnvironment.Production, `/v2/issuers/${core.url.encodePathParam(organizationId)}/transactions/upload`),
515
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.KardApiEnvironment.Production, `/v2/issuers/${core.url.encodePathParam(organizationId)}/transactions/uploads`),
516
516
  method: "POST",
517
517
  headers: _headers,
518
518
  contentType: "application/json",
@@ -559,7 +559,7 @@ class TransactionsClient {
559
559
  rawResponse: _response.rawResponse,
560
560
  });
561
561
  case "timeout":
562
- throw new errors.KardApiTimeoutError("Timeout exceeded when calling POST /v2/issuers/{organizationId}/transactions/upload.");
562
+ throw new errors.KardApiTimeoutError("Timeout exceeded when calling POST /v2/issuers/{organizationId}/transactions/uploads.");
563
563
  case "unknown":
564
564
  throw new errors.KardApiError({
565
565
  message: _response.error.errorMessage,
@@ -84,7 +84,7 @@ class RewardsClient {
84
84
  __offers(organizationId_1, userId_1) {
85
85
  return __awaiter(this, arguments, void 0, function* (organizationId, userId, request = {}, requestOptions) {
86
86
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
87
- const { "page[size]": pageSize, "page[after]": pageAfter, "page[before]": pageBefore, "filter[purchaseChannel]": filterPurchaseChannel, "filter[category]": filterCategory, "filter[isTargeted]": filterIsTargeted, sort, include, supportedComponents, } = request;
87
+ const { "page[size]": pageSize, "page[after]": pageAfter, "page[before]": pageBefore, "filter[search]": filterSearch, "filter[purchaseChannel]": filterPurchaseChannel, "filter[category]": filterCategory, "filter[isTargeted]": filterIsTargeted, sort, include, supportedComponents, } = request;
88
88
  const _queryParams = {};
89
89
  if (pageSize != null) {
90
90
  _queryParams["page[size]"] = pageSize.toString();
@@ -95,6 +95,9 @@ class RewardsClient {
95
95
  if (pageBefore != null) {
96
96
  _queryParams["page[before]"] = pageBefore;
97
97
  }
98
+ if (filterSearch != null) {
99
+ _queryParams["filter[search]"] = filterSearch;
100
+ }
98
101
  if (filterPurchaseChannel != null) {
99
102
  _queryParams["filter[purchaseChannel]"] = (0, json_js_1.toJson)(filterPurchaseChannel);
100
103
  }
@@ -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
  }
@@ -11,6 +11,8 @@ 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 */
15
+ "filter[search]"?: string;
14
16
  "filter[purchaseChannel]"?: KardApi.PurchaseChannel[];
15
17
  "filter[category]"?: KardApi.CategoryOption;
16
18
  "filter[isTargeted]"?: boolean;
@@ -18,6 +20,6 @@ export interface GetOffersByUserRequest {
18
20
  sort?: KardApi.users.OfferSortOptions | KardApi.users.OfferSortOptions[];
19
21
  /** CSV list of included resources in the response (e.g "categories"). Allowed value is `categories`. */
20
22
  include?: string | string[];
21
- /** UI component types to include in the response. Valid values are shortDescription, longDescription, cta, tags, and detailTags. */
23
+ /** UI component types to include in the response. */
22
24
  supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
23
25
  }
@@ -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);
@@ -476,7 +476,7 @@ export class TransactionsClient {
476
476
  const _authRequest = yield this._options.authProvider.getAuthRequest();
477
477
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
478
478
  const _response = yield core.fetcher({
479
- url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.KardApiEnvironment.Production, `/v2/issuers/${core.url.encodePathParam(organizationId)}/transactions/upload`),
479
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.KardApiEnvironment.Production, `/v2/issuers/${core.url.encodePathParam(organizationId)}/transactions/uploads`),
480
480
  method: "POST",
481
481
  headers: _headers,
482
482
  contentType: "application/json",
@@ -523,7 +523,7 @@ export class TransactionsClient {
523
523
  rawResponse: _response.rawResponse,
524
524
  });
525
525
  case "timeout":
526
- throw new errors.KardApiTimeoutError("Timeout exceeded when calling POST /v2/issuers/{organizationId}/transactions/upload.");
526
+ throw new errors.KardApiTimeoutError("Timeout exceeded when calling POST /v2/issuers/{organizationId}/transactions/uploads.");
527
527
  case "unknown":
528
528
  throw new errors.KardApiError({
529
529
  message: _response.error.errorMessage,
@@ -48,7 +48,7 @@ export class RewardsClient {
48
48
  __offers(organizationId_1, userId_1) {
49
49
  return __awaiter(this, arguments, void 0, function* (organizationId, userId, request = {}, requestOptions) {
50
50
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
51
- const { "page[size]": pageSize, "page[after]": pageAfter, "page[before]": pageBefore, "filter[purchaseChannel]": filterPurchaseChannel, "filter[category]": filterCategory, "filter[isTargeted]": filterIsTargeted, sort, include, supportedComponents, } = request;
51
+ const { "page[size]": pageSize, "page[after]": pageAfter, "page[before]": pageBefore, "filter[search]": filterSearch, "filter[purchaseChannel]": filterPurchaseChannel, "filter[category]": filterCategory, "filter[isTargeted]": filterIsTargeted, sort, include, supportedComponents, } = request;
52
52
  const _queryParams = {};
53
53
  if (pageSize != null) {
54
54
  _queryParams["page[size]"] = pageSize.toString();
@@ -59,6 +59,9 @@ export class RewardsClient {
59
59
  if (pageBefore != null) {
60
60
  _queryParams["page[before]"] = pageBefore;
61
61
  }
62
+ if (filterSearch != null) {
63
+ _queryParams["filter[search]"] = filterSearch;
64
+ }
62
65
  if (filterPurchaseChannel != null) {
63
66
  _queryParams["filter[purchaseChannel]"] = toJson(filterPurchaseChannel);
64
67
  }
@@ -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
  }
@@ -11,6 +11,8 @@ 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 */
15
+ "filter[search]"?: string;
14
16
  "filter[purchaseChannel]"?: KardApi.PurchaseChannel[];
15
17
  "filter[category]"?: KardApi.CategoryOption;
16
18
  "filter[isTargeted]"?: boolean;
@@ -18,6 +20,6 @@ export interface GetOffersByUserRequest {
18
20
  sort?: KardApi.users.OfferSortOptions | KardApi.users.OfferSortOptions[];
19
21
  /** CSV list of included resources in the response (e.g "categories"). Allowed value is `categories`. */
20
22
  include?: string | string[];
21
- /** UI component types to include in the response. Valid values are shortDescription, longDescription, cta, tags, and detailTags. */
23
+ /** UI component types to include in the response. */
22
24
  supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
23
25
  }
@@ -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.9.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",