@kard-financial/sdk 30.2.1 → 31.1.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/organizations/resources/contentStrategies/types/ContentStrategySort.d.ts +2 -1
- package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategySort.js +2 -1
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentProgress.d.ts +9 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentProgress.js +3 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegments.d.ts +2 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/index.js +1 -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/organizations/resources/contentStrategies/types/ContentStrategySort.d.mts +2 -1
- package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategySort.mjs +2 -1
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentProgress.d.mts +9 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentProgress.mjs +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegments.d.mts +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +1 -0
- package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +1 -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": "
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/
|
|
46
|
+
"X-Fern-SDK-Version": "31.1.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/31.1.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);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and
|
|
1
|
+
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, personalized, and offers-near-you selections. */
|
|
2
2
|
export declare const ContentStrategySort: {
|
|
3
3
|
readonly NewlyLive: "NEWLY_LIVE";
|
|
4
4
|
readonly ExpiringSoon: "EXPIRING_SOON";
|
|
5
5
|
readonly HighestCashback: "HIGHEST_CASHBACK";
|
|
6
6
|
readonly Personalized: "PERSONALIZED";
|
|
7
|
+
readonly OffersNearYou: "OFFERS_NEAR_YOU";
|
|
7
8
|
};
|
|
8
9
|
export type ContentStrategySort = (typeof ContentStrategySort)[keyof typeof ContentStrategySort];
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ContentStrategySort = void 0;
|
|
5
|
-
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and
|
|
5
|
+
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, personalized, and offers-near-you selections. */
|
|
6
6
|
exports.ContentStrategySort = {
|
|
7
7
|
NewlyLive: "NEWLY_LIVE",
|
|
8
8
|
ExpiringSoon: "EXPIRING_SOON",
|
|
9
9
|
HighestCashback: "HIGHEST_CASHBACK",
|
|
10
10
|
Personalized: "PERSONALIZED",
|
|
11
|
+
OffersNearYou: "OFFERS_NEAR_YOU",
|
|
11
12
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fill state of a single segment node, expressed as completed of total.
|
|
3
|
+
*/
|
|
4
|
+
export interface ProgressBarSegmentProgress {
|
|
5
|
+
/** Units completed within the current segment. */
|
|
6
|
+
completed: number;
|
|
7
|
+
/** Total units required to complete the current segment. */
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
@@ -7,4 +7,6 @@ export interface ProgressBarSegments {
|
|
|
7
7
|
details?: KardApi.users.ProgressBarSegment | undefined;
|
|
8
8
|
/** Segment configuration for the default view */
|
|
9
9
|
default: KardApi.users.ProgressBarSegment;
|
|
10
|
+
/** Per-segment fill state: one entry per segment node, index-aligned with the nodes (length equals the progress bar total). Reached nodes report 1 of 1 and not-yet-reached nodes 0 of 1; for a punch-card offer the in-progress node reports qualifying-purchase progress toward the next reward (Q mod N of N). */
|
|
11
|
+
progress: KardApi.users.ProgressBarSegmentProgress[];
|
|
10
12
|
}
|
|
@@ -49,6 +49,7 @@ export * from "./ProgressBarLabels.js";
|
|
|
49
49
|
export * from "./ProgressBarSegment.js";
|
|
50
50
|
export * from "./ProgressBarSegmentLabel.js";
|
|
51
51
|
export * from "./ProgressBarSegmentPosition.js";
|
|
52
|
+
export * from "./ProgressBarSegmentProgress.js";
|
|
52
53
|
export * from "./ProgressBarSegmentSelection.js";
|
|
53
54
|
export * from "./ProgressBarSegmentSeparator.js";
|
|
54
55
|
export * from "./ProgressBarSegments.js";
|
|
@@ -65,6 +65,7 @@ __exportStar(require("./ProgressBarLabels.js"), exports);
|
|
|
65
65
|
__exportStar(require("./ProgressBarSegment.js"), exports);
|
|
66
66
|
__exportStar(require("./ProgressBarSegmentLabel.js"), exports);
|
|
67
67
|
__exportStar(require("./ProgressBarSegmentPosition.js"), exports);
|
|
68
|
+
__exportStar(require("./ProgressBarSegmentProgress.js"), exports);
|
|
68
69
|
__exportStar(require("./ProgressBarSegmentSelection.js"), exports);
|
|
69
70
|
__exportStar(require("./ProgressBarSegmentSeparator.js"), exports);
|
|
70
71
|
__exportStar(require("./ProgressBarSegments.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "31.1.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": "31.1.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/31.1.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);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and
|
|
1
|
+
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, personalized, and offers-near-you selections. */
|
|
2
2
|
export declare const ContentStrategySort: {
|
|
3
3
|
readonly NewlyLive: "NEWLY_LIVE";
|
|
4
4
|
readonly ExpiringSoon: "EXPIRING_SOON";
|
|
5
5
|
readonly HighestCashback: "HIGHEST_CASHBACK";
|
|
6
6
|
readonly Personalized: "PERSONALIZED";
|
|
7
|
+
readonly OffersNearYou: "OFFERS_NEAR_YOU";
|
|
7
8
|
};
|
|
8
9
|
export type ContentStrategySort = (typeof ContentStrategySort)[keyof typeof ContentStrategySort];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and
|
|
2
|
+
/** Sort applied to the offers selected by a content strategy. A strategy may have at most one sort. The v1 starter set covers newly-live, expiring-soon, highest-cashback, personalized, and offers-near-you selections. */
|
|
3
3
|
export const ContentStrategySort = {
|
|
4
4
|
NewlyLive: "NEWLY_LIVE",
|
|
5
5
|
ExpiringSoon: "EXPIRING_SOON",
|
|
6
6
|
HighestCashback: "HIGHEST_CASHBACK",
|
|
7
7
|
Personalized: "PERSONALIZED",
|
|
8
|
+
OffersNearYou: "OFFERS_NEAR_YOU",
|
|
8
9
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fill state of a single segment node, expressed as completed of total.
|
|
3
|
+
*/
|
|
4
|
+
export interface ProgressBarSegmentProgress {
|
|
5
|
+
/** Units completed within the current segment. */
|
|
6
|
+
completed: number;
|
|
7
|
+
/** Total units required to complete the current segment. */
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
@@ -7,4 +7,6 @@ export interface ProgressBarSegments {
|
|
|
7
7
|
details?: KardApi.users.ProgressBarSegment | undefined;
|
|
8
8
|
/** Segment configuration for the default view */
|
|
9
9
|
default: KardApi.users.ProgressBarSegment;
|
|
10
|
+
/** Per-segment fill state: one entry per segment node, index-aligned with the nodes (length equals the progress bar total). Reached nodes report 1 of 1 and not-yet-reached nodes 0 of 1; for a punch-card offer the in-progress node reports qualifying-purchase progress toward the next reward (Q mod N of N). */
|
|
11
|
+
progress: KardApi.users.ProgressBarSegmentProgress[];
|
|
10
12
|
}
|
|
@@ -49,6 +49,7 @@ export * from "./ProgressBarLabels.mjs";
|
|
|
49
49
|
export * from "./ProgressBarSegment.mjs";
|
|
50
50
|
export * from "./ProgressBarSegmentLabel.mjs";
|
|
51
51
|
export * from "./ProgressBarSegmentPosition.mjs";
|
|
52
|
+
export * from "./ProgressBarSegmentProgress.mjs";
|
|
52
53
|
export * from "./ProgressBarSegmentSelection.mjs";
|
|
53
54
|
export * from "./ProgressBarSegmentSeparator.mjs";
|
|
54
55
|
export * from "./ProgressBarSegments.mjs";
|
|
@@ -49,6 +49,7 @@ export * from "./ProgressBarLabels.mjs";
|
|
|
49
49
|
export * from "./ProgressBarSegment.mjs";
|
|
50
50
|
export * from "./ProgressBarSegmentLabel.mjs";
|
|
51
51
|
export * from "./ProgressBarSegmentPosition.mjs";
|
|
52
|
+
export * from "./ProgressBarSegmentProgress.mjs";
|
|
52
53
|
export * from "./ProgressBarSegmentSelection.mjs";
|
|
53
54
|
export * from "./ProgressBarSegmentSeparator.mjs";
|
|
54
55
|
export * from "./ProgressBarSegments.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "31.1.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "31.1.0";
|