@kard-financial/sdk 25.0.0 → 27.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/users/resources/rewards/types/BatchesResponseObject.d.ts +1 -1
- package/dist/cjs/api/resources/users/resources/rewards/types/{BatchSlotData.d.ts → PlacementBatchAttributes.d.ts} +8 -6
- package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchData.d.ts +10 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchData.js +3 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +2 -1
- package/dist/cjs/api/resources/users/resources/rewards/types/index.js +2 -1
- 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/types/BatchesResponseObject.d.mts +1 -1
- package/dist/esm/api/resources/users/resources/rewards/types/{BatchSlotData.d.mts → PlacementBatchAttributes.d.mts} +8 -6
- package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchData.d.mts +10 -0
- package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchData.mjs +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +2 -1
- package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +2 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- /package/dist/cjs/api/resources/users/resources/rewards/types/{BatchSlotData.js → PlacementBatchAttributes.js} +0 -0
- /package/dist/esm/api/resources/users/resources/rewards/types/{BatchSlotData.mjs → PlacementBatchAttributes.mjs} +0 -0
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": "
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/
|
|
46
|
+
"X-Fern-SDK-Version": "27.0.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/27.0.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);
|
|
@@ -3,5 +3,5 @@ import type * as KardApi from "../../../../../index.js";
|
|
|
3
3
|
* Ordered list of slots for a batch-activation placement, with freshness fields and per-slot offer sets.
|
|
4
4
|
*/
|
|
5
5
|
export interface BatchesResponseObject {
|
|
6
|
-
data: KardApi.users.
|
|
6
|
+
data: KardApi.users.PlacementBatchData[];
|
|
7
7
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type * as KardApi from "../../../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Attributes of a placement batch slot.
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
5
|
+
export interface PlacementBatchAttributes {
|
|
6
|
+
/** Display name for the slot. Falls back to the slot's customer-defined alias, or — when the alias is absent — the name of the placement referenced by the slot. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Short, human-readable description of how long the slot stays activated after a user taps activate. Derived from the parent placement's `refreshInterval` (e.g. `"Activated for 24 hours"`). */
|
|
9
|
+
shortDescription: string;
|
|
10
|
+
/** Longer, human-readable description of the slot's activation behavior: clarifies that the offers displayed under this slot are the ones that will be activated for the user when they tap activate, and for how long they will remain active. */
|
|
11
|
+
longDescription: string;
|
|
10
12
|
/** Whether the slot is still considered "fresh" for the user. Set to false only when the slot's `expiresAt` is in the past AND the slot resolves to a non-empty offer set; an empty offer set keeps the slot active so partner UIs do not promote "tap to refresh" with nothing to show. */
|
|
11
13
|
isActive: boolean;
|
|
12
14
|
/** Timestamp of the most recent placementSlotAttribution ACTIVATE event for this (user, placement, slot). Absent for cold slots that have never been activated. */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* One slot in a batch-activation placement, with freshness fields and the offers that resolve under the slot's content strategy.
|
|
4
|
+
*/
|
|
5
|
+
export interface PlacementBatchData {
|
|
6
|
+
/** Stable identifier for the slot within the placement */
|
|
7
|
+
id: string;
|
|
8
|
+
type: "placementBatch";
|
|
9
|
+
attributes: KardApi.users.PlacementBatchAttributes;
|
|
10
|
+
}
|
|
@@ -2,7 +2,6 @@ export * from "./Amount.js";
|
|
|
2
2
|
export * from "./AmountType.js";
|
|
3
3
|
export * from "./Asset.js";
|
|
4
4
|
export * from "./BatchesResponseObject.js";
|
|
5
|
-
export * from "./BatchSlotData.js";
|
|
6
5
|
export * from "./ButtonStyle.js";
|
|
7
6
|
export * from "./CategoryData.js";
|
|
8
7
|
export * from "./CategoryFields.js";
|
|
@@ -40,6 +39,8 @@ export * from "./OffersResponseObject.js";
|
|
|
40
39
|
export * from "./OperationHours.js";
|
|
41
40
|
export * from "./OperationPeriod.js";
|
|
42
41
|
export * from "./OperationTime.js";
|
|
42
|
+
export * from "./PlacementBatchAttributes.js";
|
|
43
|
+
export * from "./PlacementBatchData.js";
|
|
43
44
|
export * from "./ProgressBar.js";
|
|
44
45
|
export * from "./ProgressBarLabelPair.js";
|
|
45
46
|
export * from "./ProgressBarLabels.js";
|
|
@@ -18,7 +18,6 @@ __exportStar(require("./Amount.js"), exports);
|
|
|
18
18
|
__exportStar(require("./AmountType.js"), exports);
|
|
19
19
|
__exportStar(require("./Asset.js"), exports);
|
|
20
20
|
__exportStar(require("./BatchesResponseObject.js"), exports);
|
|
21
|
-
__exportStar(require("./BatchSlotData.js"), exports);
|
|
22
21
|
__exportStar(require("./ButtonStyle.js"), exports);
|
|
23
22
|
__exportStar(require("./CategoryData.js"), exports);
|
|
24
23
|
__exportStar(require("./CategoryFields.js"), exports);
|
|
@@ -56,6 +55,8 @@ __exportStar(require("./OffersResponseObject.js"), exports);
|
|
|
56
55
|
__exportStar(require("./OperationHours.js"), exports);
|
|
57
56
|
__exportStar(require("./OperationPeriod.js"), exports);
|
|
58
57
|
__exportStar(require("./OperationTime.js"), exports);
|
|
58
|
+
__exportStar(require("./PlacementBatchAttributes.js"), exports);
|
|
59
|
+
__exportStar(require("./PlacementBatchData.js"), exports);
|
|
59
60
|
__exportStar(require("./ProgressBar.js"), exports);
|
|
60
61
|
__exportStar(require("./ProgressBarLabelPair.js"), exports);
|
|
61
62
|
__exportStar(require("./ProgressBarLabels.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "27.0.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": "
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/
|
|
9
|
+
"X-Fern-SDK-Version": "27.0.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/27.0.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);
|
|
@@ -3,5 +3,5 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
3
3
|
* Ordered list of slots for a batch-activation placement, with freshness fields and per-slot offer sets.
|
|
4
4
|
*/
|
|
5
5
|
export interface BatchesResponseObject {
|
|
6
|
-
data: KardApi.users.
|
|
6
|
+
data: KardApi.users.PlacementBatchData[];
|
|
7
7
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type * as KardApi from "../../../../../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Attributes of a placement batch slot.
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
6
|
-
/**
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
|
|
5
|
+
export interface PlacementBatchAttributes {
|
|
6
|
+
/** Display name for the slot. Falls back to the slot's customer-defined alias, or — when the alias is absent — the name of the placement referenced by the slot. */
|
|
7
|
+
name: string;
|
|
8
|
+
/** Short, human-readable description of how long the slot stays activated after a user taps activate. Derived from the parent placement's `refreshInterval` (e.g. `"Activated for 24 hours"`). */
|
|
9
|
+
shortDescription: string;
|
|
10
|
+
/** Longer, human-readable description of the slot's activation behavior: clarifies that the offers displayed under this slot are the ones that will be activated for the user when they tap activate, and for how long they will remain active. */
|
|
11
|
+
longDescription: string;
|
|
10
12
|
/** Whether the slot is still considered "fresh" for the user. Set to false only when the slot's `expiresAt` is in the past AND the slot resolves to a non-empty offer set; an empty offer set keeps the slot active so partner UIs do not promote "tap to refresh" with nothing to show. */
|
|
11
13
|
isActive: boolean;
|
|
12
14
|
/** Timestamp of the most recent placementSlotAttribution ACTIVATE event for this (user, placement, slot). Absent for cold slots that have never been activated. */
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* One slot in a batch-activation placement, with freshness fields and the offers that resolve under the slot's content strategy.
|
|
4
|
+
*/
|
|
5
|
+
export interface PlacementBatchData {
|
|
6
|
+
/** Stable identifier for the slot within the placement */
|
|
7
|
+
id: string;
|
|
8
|
+
type: "placementBatch";
|
|
9
|
+
attributes: KardApi.users.PlacementBatchAttributes;
|
|
10
|
+
}
|
|
@@ -2,7 +2,6 @@ export * from "./Amount.mjs";
|
|
|
2
2
|
export * from "./AmountType.mjs";
|
|
3
3
|
export * from "./Asset.mjs";
|
|
4
4
|
export * from "./BatchesResponseObject.mjs";
|
|
5
|
-
export * from "./BatchSlotData.mjs";
|
|
6
5
|
export * from "./ButtonStyle.mjs";
|
|
7
6
|
export * from "./CategoryData.mjs";
|
|
8
7
|
export * from "./CategoryFields.mjs";
|
|
@@ -40,6 +39,8 @@ export * from "./OffersResponseObject.mjs";
|
|
|
40
39
|
export * from "./OperationHours.mjs";
|
|
41
40
|
export * from "./OperationPeriod.mjs";
|
|
42
41
|
export * from "./OperationTime.mjs";
|
|
42
|
+
export * from "./PlacementBatchAttributes.mjs";
|
|
43
|
+
export * from "./PlacementBatchData.mjs";
|
|
43
44
|
export * from "./ProgressBar.mjs";
|
|
44
45
|
export * from "./ProgressBarLabelPair.mjs";
|
|
45
46
|
export * from "./ProgressBarLabels.mjs";
|
|
@@ -2,7 +2,6 @@ export * from "./Amount.mjs";
|
|
|
2
2
|
export * from "./AmountType.mjs";
|
|
3
3
|
export * from "./Asset.mjs";
|
|
4
4
|
export * from "./BatchesResponseObject.mjs";
|
|
5
|
-
export * from "./BatchSlotData.mjs";
|
|
6
5
|
export * from "./ButtonStyle.mjs";
|
|
7
6
|
export * from "./CategoryData.mjs";
|
|
8
7
|
export * from "./CategoryFields.mjs";
|
|
@@ -40,6 +39,8 @@ export * from "./OffersResponseObject.mjs";
|
|
|
40
39
|
export * from "./OperationHours.mjs";
|
|
41
40
|
export * from "./OperationPeriod.mjs";
|
|
42
41
|
export * from "./OperationTime.mjs";
|
|
42
|
+
export * from "./PlacementBatchAttributes.mjs";
|
|
43
|
+
export * from "./PlacementBatchData.mjs";
|
|
43
44
|
export * from "./ProgressBar.mjs";
|
|
44
45
|
export * from "./ProgressBarLabelPair.mjs";
|
|
45
46
|
export * from "./ProgressBarLabels.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "27.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "27.0.0";
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|