@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/users/resources/rewards/client/requests/GetLocationsByUserRequest.d.ts +1 -1
- package/dist/cjs/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.ts +1 -1
- package/dist/cjs/api/resources/users/resources/rewards/types/ButtonStyle.d.ts +1 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ButtonStyle.js +1 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ComponentType.d.ts +2 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ComponentType.js +2 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlare.d.ts +10 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlare.js +3 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadge.d.ts +10 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadge.js +3 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.d.ts +8 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.js +11 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBorderColor.d.ts +6 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/LogoFlareBorderColor.js +9 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/OfferComponents.d.ts +4 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/index.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/users/resources/rewards/client/requests/GetLocationsByUserRequest.d.mts +1 -1
- package/dist/esm/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.mts +1 -1
- package/dist/esm/api/resources/users/resources/rewards/types/ButtonStyle.d.mts +1 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ButtonStyle.mjs +1 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ComponentType.d.mts +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ComponentType.mjs +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlare.d.mts +10 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlare.mjs +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadge.d.mts +10 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadge.mjs +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.d.mts +8 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBadgePosition.mjs +8 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBorderColor.d.mts +6 -0
- package/dist/esm/api/resources/users/resources/rewards/types/LogoFlareBorderColor.mjs +6 -0
- package/dist/esm/api/resources/users/resources/rewards/types/OfferComponents.d.mts +4 -0
- package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +4 -0
- package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/4.
|
|
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.
|
|
28
|
+
/** UI component types to include in included offers. */
|
|
29
29
|
supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
|
|
30
30
|
}
|
package/dist/cjs/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.ts
CHANGED
|
@@ -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.
|
|
21
|
+
/** UI component types to include in the response. */
|
|
22
22
|
supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
|
|
23
23
|
}
|
|
@@ -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];
|
|
@@ -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,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,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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.
|
|
1
|
+
export declare const SDK_VERSION = "4.8.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/4.
|
|
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.
|
|
28
|
+
/** UI component types to include in included offers. */
|
|
29
29
|
supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
|
|
30
30
|
}
|
package/dist/esm/api/resources/users/resources/rewards/client/requests/GetOffersByUserRequest.d.mts
CHANGED
|
@@ -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.
|
|
21
|
+
/** UI component types to include in the response. */
|
|
22
22
|
supportedComponents?: KardApi.users.ComponentType | KardApi.users.ComponentType[];
|
|
23
23
|
}
|
|
@@ -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];
|
|
@@ -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,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,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];
|
|
@@ -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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.
|
|
1
|
+
export declare const SDK_VERSION = "4.8.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.
|
|
1
|
+
export const SDK_VERSION = "4.8.0";
|