@kard-financial/sdk 25.0.0 → 26.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.
Files changed (21) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/users/resources/rewards/types/BatchesResponseObject.d.ts +1 -1
  3. package/dist/cjs/api/resources/users/resources/rewards/types/{BatchSlotData.d.ts → PlacementBatchAttributes.d.ts} +4 -6
  4. package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchData.d.ts +10 -0
  5. package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchData.js +3 -0
  6. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +2 -1
  7. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +2 -1
  8. package/dist/cjs/version.d.ts +1 -1
  9. package/dist/cjs/version.js +1 -1
  10. package/dist/esm/BaseClient.mjs +2 -2
  11. package/dist/esm/api/resources/users/resources/rewards/types/BatchesResponseObject.d.mts +1 -1
  12. package/dist/esm/api/resources/users/resources/rewards/types/{BatchSlotData.d.mts → PlacementBatchAttributes.d.mts} +4 -6
  13. package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchData.d.mts +10 -0
  14. package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchData.mjs +2 -0
  15. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +2 -1
  16. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +2 -1
  17. package/dist/esm/version.d.mts +1 -1
  18. package/dist/esm/version.mjs +1 -1
  19. package/package.json +1 -1
  20. /package/dist/cjs/api/resources/users/resources/rewards/types/{BatchSlotData.js → PlacementBatchAttributes.js} +0 -0
  21. /package/dist/esm/api/resources/users/resources/rewards/types/{BatchSlotData.mjs → PlacementBatchAttributes.mjs} +0 -0
@@ -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": "25.0.0",
47
- "User-Agent": "@kard-financial/sdk/25.0.0",
46
+ "X-Fern-SDK-Version": "26.0.0",
47
+ "User-Agent": "@kard-financial/sdk/26.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.BatchSlotData[];
6
+ data: KardApi.users.PlacementBatchData[];
7
7
  }
@@ -1,12 +1,10 @@
1
1
  import type * as KardApi from "../../../../../index.js";
2
2
  /**
3
- * One slot in a batch-activation placement, with freshness fields and the offers that resolve under the slot's content strategy.
3
+ * Attributes of a placement batch slot.
4
4
  */
5
- export interface BatchSlotData {
6
- /** Stable identifier for the slot within the placement */
7
- slotId: string;
8
- /** Customer-defined alias for the slot, unique within the placement */
9
- alias: string;
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;
10
8
  /** 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
9
  isActive: boolean;
12
10
  /** 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
+ }
@@ -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 });
@@ -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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "25.0.0";
1
+ export declare const SDK_VERSION = "26.0.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 = "25.0.0";
4
+ exports.SDK_VERSION = "26.0.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": "25.0.0",
10
- "User-Agent": "@kard-financial/sdk/25.0.0",
9
+ "X-Fern-SDK-Version": "26.0.0",
10
+ "User-Agent": "@kard-financial/sdk/26.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.BatchSlotData[];
6
+ data: KardApi.users.PlacementBatchData[];
7
7
  }
@@ -1,12 +1,10 @@
1
1
  import type * as KardApi from "../../../../../index.mjs";
2
2
  /**
3
- * One slot in a batch-activation placement, with freshness fields and the offers that resolve under the slot's content strategy.
3
+ * Attributes of a placement batch slot.
4
4
  */
5
- export interface BatchSlotData {
6
- /** Stable identifier for the slot within the placement */
7
- slotId: string;
8
- /** Customer-defined alias for the slot, unique within the placement */
9
- alias: string;
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;
10
8
  /** 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
9
  isActive: boolean;
12
10
  /** 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
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -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";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "25.0.0";
1
+ export declare const SDK_VERSION = "26.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "25.0.0";
1
+ export const SDK_VERSION = "26.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "25.0.0",
3
+ "version": "26.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",