@kard-financial/sdk 22.0.0 → 22.2.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/placements/types/BatchActivationPlacementAttributes.d.ts +14 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.ts +9 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.ts +11 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.ts +22 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.ts +9 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.d.ts +4 -1
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts +20 -1
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementTypeFilter.d.ts +1 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementTypeFilter.js +1 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.ts +23 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.ts +11 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.d.ts +4 -1
- package/dist/cjs/api/resources/organizations/resources/placements/types/index.d.ts +9 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/index.js +9 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegment.d.ts +6 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.d.ts +9 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.js +3 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.d.ts +10 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.js +13 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.d.ts +5 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.js +8 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/users/resources/rewards/types/index.js +3 -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/placements/types/BatchActivationPlacementAttributes.d.mts +14 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.mts +9 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.mts +11 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.mts +22 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationPlacementData.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.mts +9 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreatePlacementDataUnion.d.mts +4 -1
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts +20 -1
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementTypeFilter.d.mts +1 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementTypeFilter.mjs +1 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.mts +23 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationPlacementData.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.mts +11 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePlacementDataUnion.d.mts +4 -1
- package/dist/esm/api/resources/organizations/resources/placements/types/index.d.mts +9 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/index.mjs +9 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegment.d.mts +6 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.d.mts +9 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentLabel.mjs +2 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.d.mts +10 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.mjs +10 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.d.mts +5 -0
- package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSeparator.mjs +5 -0
- package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +3 -0
- package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +3 -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": "22.
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/22.
|
|
46
|
+
"X-Fern-SDK-Version": "22.2.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/22.2.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);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Attributes for a batch-activation placement
|
|
4
|
+
*/
|
|
5
|
+
export interface BatchActivationPlacementAttributes {
|
|
6
|
+
/** Name of the placement */
|
|
7
|
+
name: string;
|
|
8
|
+
/** ID of the organization this placement belongs to */
|
|
9
|
+
organizationId: string;
|
|
10
|
+
/** ISO-8601 duration that controls how often the activation cohort refreshes (e.g. "P7D" for weekly). */
|
|
11
|
+
refreshInterval: string;
|
|
12
|
+
/** Slots that make up the activation cohort */
|
|
13
|
+
slots: KardApi.organizations.BatchActivationSlot[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Batch-activation placement resource data
|
|
4
|
+
*/
|
|
5
|
+
export interface BatchActivationPlacementData {
|
|
6
|
+
/** Unique identifier of the placement (UUID v7) */
|
|
7
|
+
id: string;
|
|
8
|
+
attributes: KardApi.organizations.BatchActivationPlacementAttributes;
|
|
9
|
+
}
|
package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slot within a batch-activation placement
|
|
3
|
+
*/
|
|
4
|
+
export interface BatchActivationSlot {
|
|
5
|
+
/** Stable identifier for the slot within the placement */
|
|
6
|
+
slotId: string;
|
|
7
|
+
/** ID of the content strategy linked to this slot */
|
|
8
|
+
contentStrategyId: string;
|
|
9
|
+
/** Customer-defined alias for the slot, unique within the placement */
|
|
10
|
+
alias: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Attributes for creating a batch-activation placement
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "Weekly Cohort",
|
|
8
|
+
* refreshInterval: "P7D",
|
|
9
|
+
* slots: [{
|
|
10
|
+
* contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
11
|
+
* alias: "primary"
|
|
12
|
+
* }]
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateBatchActivationAttributes {
|
|
16
|
+
/** Name of the placement */
|
|
17
|
+
name: string;
|
|
18
|
+
/** ISO-8601 duration controlling how often the activation cohort refreshes */
|
|
19
|
+
refreshInterval: string;
|
|
20
|
+
/** Slots that make up the activation cohort */
|
|
21
|
+
slots: KardApi.organizations.CreateBatchActivationSlot[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Data for creating a batch-activation placement
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateBatchActivationPlacementData {
|
|
6
|
+
/** Batch-activation placement attributes for creation */
|
|
7
|
+
attributes: KardApi.organizations.CreateBatchActivationAttributes;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slot in a batch-activation placement at creation time
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateBatchActivationSlot {
|
|
5
|
+
/** ID of the content strategy that fills this slot */
|
|
6
|
+
contentStrategyId: string;
|
|
7
|
+
/** Customer-defined alias for the slot, unique within the placement */
|
|
8
|
+
alias: string;
|
|
9
|
+
}
|
|
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Discriminated union for creating a placement
|
|
4
4
|
*/
|
|
5
|
-
export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification;
|
|
5
|
+
export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.CreatePlacementDataUnion.PlacementBatchActivation;
|
|
6
6
|
export declare namespace CreatePlacementDataUnion {
|
|
7
7
|
interface PlacementMainPage extends KardApi.organizations.CreateMainPagePlacementData {
|
|
8
8
|
type: "placementMainPage";
|
|
@@ -10,4 +10,7 @@ export declare namespace CreatePlacementDataUnion {
|
|
|
10
10
|
interface PlacementPushNotification extends KardApi.organizations.CreatePushNotificationPlacementData {
|
|
11
11
|
type: "placementPushNotification";
|
|
12
12
|
}
|
|
13
|
+
interface PlacementBatchActivation extends KardApi.organizations.CreateBatchActivationPlacementData {
|
|
14
|
+
type: "placementBatchActivation";
|
|
15
|
+
}
|
|
13
16
|
}
|
package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts
CHANGED
|
@@ -26,8 +26,24 @@ import type * as KardApi from "../../../../../index.js";
|
|
|
26
26
|
* }
|
|
27
27
|
* }
|
|
28
28
|
* }
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* {
|
|
32
|
+
* type: "placementBatchActivation",
|
|
33
|
+
* id: "01961e5a-d94e-7c22-ac3f-f8b5a7e92c45",
|
|
34
|
+
* attributes: {
|
|
35
|
+
* name: "Weekly Cohort",
|
|
36
|
+
* organizationId: "org-123",
|
|
37
|
+
* refreshInterval: "P7D",
|
|
38
|
+
* slots: [{
|
|
39
|
+
* slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
|
|
40
|
+
* contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
41
|
+
* alias: "primary"
|
|
42
|
+
* }]
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
29
45
|
*/
|
|
30
|
-
export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification;
|
|
46
|
+
export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification | KardApi.organizations.PlacementFormatUnion.PlacementBatchActivation;
|
|
31
47
|
export declare namespace PlacementFormatUnion {
|
|
32
48
|
interface PlacementMainPage extends KardApi.organizations.MainPagePlacementData {
|
|
33
49
|
type: "placementMainPage";
|
|
@@ -35,4 +51,7 @@ export declare namespace PlacementFormatUnion {
|
|
|
35
51
|
interface PlacementPushNotification extends KardApi.organizations.PushNotificationPlacementData {
|
|
36
52
|
type: "placementPushNotification";
|
|
37
53
|
}
|
|
54
|
+
interface PlacementBatchActivation extends KardApi.organizations.BatchActivationPlacementData {
|
|
55
|
+
type: "placementBatchActivation";
|
|
56
|
+
}
|
|
38
57
|
}
|
package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementTypeFilter.d.ts
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export declare const PlacementTypeFilter: {
|
|
3
3
|
readonly PlacementMainPage: "placementMainPage";
|
|
4
4
|
readonly PlacementPushNotification: "placementPushNotification";
|
|
5
|
+
readonly PlacementBatchActivation: "placementBatchActivation";
|
|
5
6
|
};
|
|
6
7
|
export type PlacementTypeFilter = (typeof PlacementTypeFilter)[keyof typeof PlacementTypeFilter];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Attributes for updating a batch-activation placement. All fields are required.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "Updated Cohort",
|
|
8
|
+
* refreshInterval: "P14D",
|
|
9
|
+
* slots: [{
|
|
10
|
+
* slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
|
|
11
|
+
* contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
12
|
+
* alias: "primary"
|
|
13
|
+
* }]
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface UpdateBatchActivationAttributes {
|
|
17
|
+
/** Name of the placement */
|
|
18
|
+
name: string;
|
|
19
|
+
/** ISO-8601 duration controlling how often the activation cohort refreshes */
|
|
20
|
+
refreshInterval: string;
|
|
21
|
+
/** Slots that make up the activation cohort. Slots present in the prior state but absent from this list are removed. */
|
|
22
|
+
slots: KardApi.organizations.UpdateBatchActivationSlot[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Data for updating a batch-activation placement
|
|
4
|
+
*/
|
|
5
|
+
export interface UpdateBatchActivationPlacementData {
|
|
6
|
+
/** Batch-activation placement attributes for update */
|
|
7
|
+
attributes: KardApi.organizations.UpdateBatchActivationAttributes;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slot in a batch-activation placement at update time
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateBatchActivationSlot {
|
|
5
|
+
/** Existing slot identifier. Echo the value from a prior GET to keep the slot stable; omit to mint a fresh slot. If the contentStrategyId changes, the slotId is regenerated regardless of what was echoed. */
|
|
6
|
+
slotId?: string | undefined;
|
|
7
|
+
/** ID of the content strategy that fills this slot */
|
|
8
|
+
contentStrategyId: string;
|
|
9
|
+
/** Customer-defined alias for the slot, unique within the placement */
|
|
10
|
+
alias: string;
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Discriminated union for updating a placement
|
|
4
4
|
*/
|
|
5
|
-
export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification;
|
|
5
|
+
export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.UpdatePlacementDataUnion.PlacementBatchActivation;
|
|
6
6
|
export declare namespace UpdatePlacementDataUnion {
|
|
7
7
|
interface PlacementMainPage extends KardApi.organizations.UpdateMainPagePlacementData {
|
|
8
8
|
type: "placementMainPage";
|
|
@@ -10,4 +10,7 @@ export declare namespace UpdatePlacementDataUnion {
|
|
|
10
10
|
interface PlacementPushNotification extends KardApi.organizations.UpdatePushNotificationPlacementData {
|
|
11
11
|
type: "placementPushNotification";
|
|
12
12
|
}
|
|
13
|
+
interface PlacementBatchActivation extends KardApi.organizations.UpdateBatchActivationPlacementData {
|
|
14
|
+
type: "placementBatchActivation";
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from "./BatchActivationPlacementAttributes.js";
|
|
2
|
+
export * from "./BatchActivationPlacementData.js";
|
|
3
|
+
export * from "./BatchActivationSlot.js";
|
|
1
4
|
export * from "./Cadence.js";
|
|
2
5
|
export * from "./CadenceFrequency.js";
|
|
6
|
+
export * from "./CreateBatchActivationAttributes.js";
|
|
7
|
+
export * from "./CreateBatchActivationPlacementData.js";
|
|
8
|
+
export * from "./CreateBatchActivationSlot.js";
|
|
3
9
|
export * from "./CreateMainPageAttributes.js";
|
|
4
10
|
export * from "./CreateMainPagePlacementData.js";
|
|
5
11
|
export * from "./CreatePlacementDataUnion.js";
|
|
@@ -15,6 +21,9 @@ export * from "./PlacementResource.js";
|
|
|
15
21
|
export * from "./PlacementTypeFilter.js";
|
|
16
22
|
export * from "./PushNotificationPlacementAttributes.js";
|
|
17
23
|
export * from "./PushNotificationPlacementData.js";
|
|
24
|
+
export * from "./UpdateBatchActivationAttributes.js";
|
|
25
|
+
export * from "./UpdateBatchActivationPlacementData.js";
|
|
26
|
+
export * from "./UpdateBatchActivationSlot.js";
|
|
18
27
|
export * from "./UpdateMainPageAttributes.js";
|
|
19
28
|
export * from "./UpdateMainPagePlacementData.js";
|
|
20
29
|
export * from "./UpdatePlacementDataUnion.js";
|
|
@@ -14,8 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BatchActivationPlacementAttributes.js"), exports);
|
|
18
|
+
__exportStar(require("./BatchActivationPlacementData.js"), exports);
|
|
19
|
+
__exportStar(require("./BatchActivationSlot.js"), exports);
|
|
17
20
|
__exportStar(require("./Cadence.js"), exports);
|
|
18
21
|
__exportStar(require("./CadenceFrequency.js"), exports);
|
|
22
|
+
__exportStar(require("./CreateBatchActivationAttributes.js"), exports);
|
|
23
|
+
__exportStar(require("./CreateBatchActivationPlacementData.js"), exports);
|
|
24
|
+
__exportStar(require("./CreateBatchActivationSlot.js"), exports);
|
|
19
25
|
__exportStar(require("./CreateMainPageAttributes.js"), exports);
|
|
20
26
|
__exportStar(require("./CreateMainPagePlacementData.js"), exports);
|
|
21
27
|
__exportStar(require("./CreatePlacementDataUnion.js"), exports);
|
|
@@ -31,6 +37,9 @@ __exportStar(require("./PlacementResource.js"), exports);
|
|
|
31
37
|
__exportStar(require("./PlacementTypeFilter.js"), exports);
|
|
32
38
|
__exportStar(require("./PushNotificationPlacementAttributes.js"), exports);
|
|
33
39
|
__exportStar(require("./PushNotificationPlacementData.js"), exports);
|
|
40
|
+
__exportStar(require("./UpdateBatchActivationAttributes.js"), exports);
|
|
41
|
+
__exportStar(require("./UpdateBatchActivationPlacementData.js"), exports);
|
|
42
|
+
__exportStar(require("./UpdateBatchActivationSlot.js"), exports);
|
|
34
43
|
__exportStar(require("./UpdateMainPageAttributes.js"), exports);
|
|
35
44
|
__exportStar(require("./UpdateMainPagePlacementData.js"), exports);
|
|
36
45
|
__exportStar(require("./UpdatePlacementDataUnion.js"), exports);
|
|
@@ -7,4 +7,10 @@ export interface ProgressBarSegment {
|
|
|
7
7
|
icon?: string | undefined;
|
|
8
8
|
/** Position of the segment within the layout */
|
|
9
9
|
position: KardApi.users.ProgressBarSegmentPosition;
|
|
10
|
+
/** Separator style to render between segment nodes */
|
|
11
|
+
separator?: KardApi.users.ProgressBarSegmentSeparator | undefined;
|
|
12
|
+
/** Label configuration for each node in the segment */
|
|
13
|
+
labels?: KardApi.users.ProgressBarSegmentLabel[] | undefined;
|
|
14
|
+
/** Which segment nodes the UI should render as selected based on currentProgress */
|
|
15
|
+
selection?: KardApi.users.ProgressBarSegmentSelection | undefined;
|
|
10
16
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported selection strategies for highlighting segment nodes.
|
|
3
|
+
* - CURRENT: select only the segment at currentProgress
|
|
4
|
+
* - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
|
|
5
|
+
*/
|
|
6
|
+
export declare const ProgressBarSegmentSelection: {
|
|
7
|
+
readonly Current: "CURRENT";
|
|
8
|
+
readonly CurrentAndBelow: "CURRENT_AND_BELOW";
|
|
9
|
+
};
|
|
10
|
+
export type ProgressBarSegmentSelection = (typeof ProgressBarSegmentSelection)[keyof typeof ProgressBarSegmentSelection];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ProgressBarSegmentSelection = void 0;
|
|
5
|
+
/**
|
|
6
|
+
* Supported selection strategies for highlighting segment nodes.
|
|
7
|
+
* - CURRENT: select only the segment at currentProgress
|
|
8
|
+
* - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
|
|
9
|
+
*/
|
|
10
|
+
exports.ProgressBarSegmentSelection = {
|
|
11
|
+
Current: "CURRENT",
|
|
12
|
+
CurrentAndBelow: "CURRENT_AND_BELOW",
|
|
13
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ProgressBarSegmentSeparator = void 0;
|
|
5
|
+
/** Supported separator styles between segment nodes */
|
|
6
|
+
exports.ProgressBarSegmentSeparator = {
|
|
7
|
+
Line: "LINE",
|
|
8
|
+
};
|
|
@@ -42,7 +42,10 @@ export * from "./ProgressBar.js";
|
|
|
42
42
|
export * from "./ProgressBarLabelPair.js";
|
|
43
43
|
export * from "./ProgressBarLabels.js";
|
|
44
44
|
export * from "./ProgressBarSegment.js";
|
|
45
|
+
export * from "./ProgressBarSegmentLabel.js";
|
|
45
46
|
export * from "./ProgressBarSegmentPosition.js";
|
|
47
|
+
export * from "./ProgressBarSegmentSelection.js";
|
|
48
|
+
export * from "./ProgressBarSegmentSeparator.js";
|
|
46
49
|
export * from "./ProgressBarSegments.js";
|
|
47
50
|
export * from "./StandardOffer.js";
|
|
48
51
|
export * from "./StandardOfferCore.js";
|
|
@@ -58,7 +58,10 @@ __exportStar(require("./ProgressBar.js"), exports);
|
|
|
58
58
|
__exportStar(require("./ProgressBarLabelPair.js"), exports);
|
|
59
59
|
__exportStar(require("./ProgressBarLabels.js"), exports);
|
|
60
60
|
__exportStar(require("./ProgressBarSegment.js"), exports);
|
|
61
|
+
__exportStar(require("./ProgressBarSegmentLabel.js"), exports);
|
|
61
62
|
__exportStar(require("./ProgressBarSegmentPosition.js"), exports);
|
|
63
|
+
__exportStar(require("./ProgressBarSegmentSelection.js"), exports);
|
|
64
|
+
__exportStar(require("./ProgressBarSegmentSeparator.js"), exports);
|
|
62
65
|
__exportStar(require("./ProgressBarSegments.js"), exports);
|
|
63
66
|
__exportStar(require("./StandardOffer.js"), exports);
|
|
64
67
|
__exportStar(require("./StandardOfferCore.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "22.
|
|
1
|
+
export declare const SDK_VERSION = "22.2.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": "22.
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/22.
|
|
9
|
+
"X-Fern-SDK-Version": "22.2.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/22.2.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);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Attributes for a batch-activation placement
|
|
4
|
+
*/
|
|
5
|
+
export interface BatchActivationPlacementAttributes {
|
|
6
|
+
/** Name of the placement */
|
|
7
|
+
name: string;
|
|
8
|
+
/** ID of the organization this placement belongs to */
|
|
9
|
+
organizationId: string;
|
|
10
|
+
/** ISO-8601 duration that controls how often the activation cohort refreshes (e.g. "P7D" for weekly). */
|
|
11
|
+
refreshInterval: string;
|
|
12
|
+
/** Slots that make up the activation cohort */
|
|
13
|
+
slots: KardApi.organizations.BatchActivationSlot[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Batch-activation placement resource data
|
|
4
|
+
*/
|
|
5
|
+
export interface BatchActivationPlacementData {
|
|
6
|
+
/** Unique identifier of the placement (UUID v7) */
|
|
7
|
+
id: string;
|
|
8
|
+
attributes: KardApi.organizations.BatchActivationPlacementAttributes;
|
|
9
|
+
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slot within a batch-activation placement
|
|
3
|
+
*/
|
|
4
|
+
export interface BatchActivationSlot {
|
|
5
|
+
/** Stable identifier for the slot within the placement */
|
|
6
|
+
slotId: string;
|
|
7
|
+
/** ID of the content strategy linked to this slot */
|
|
8
|
+
contentStrategyId: string;
|
|
9
|
+
/** Customer-defined alias for the slot, unique within the placement */
|
|
10
|
+
alias: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Attributes for creating a batch-activation placement
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "Weekly Cohort",
|
|
8
|
+
* refreshInterval: "P7D",
|
|
9
|
+
* slots: [{
|
|
10
|
+
* contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
11
|
+
* alias: "primary"
|
|
12
|
+
* }]
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateBatchActivationAttributes {
|
|
16
|
+
/** Name of the placement */
|
|
17
|
+
name: string;
|
|
18
|
+
/** ISO-8601 duration controlling how often the activation cohort refreshes */
|
|
19
|
+
refreshInterval: string;
|
|
20
|
+
/** Slots that make up the activation cohort */
|
|
21
|
+
slots: KardApi.organizations.CreateBatchActivationSlot[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Data for creating a batch-activation placement
|
|
4
|
+
*/
|
|
5
|
+
export interface CreateBatchActivationPlacementData {
|
|
6
|
+
/** Batch-activation placement attributes for creation */
|
|
7
|
+
attributes: KardApi.organizations.CreateBatchActivationAttributes;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slot in a batch-activation placement at creation time
|
|
3
|
+
*/
|
|
4
|
+
export interface CreateBatchActivationSlot {
|
|
5
|
+
/** ID of the content strategy that fills this slot */
|
|
6
|
+
contentStrategyId: string;
|
|
7
|
+
/** Customer-defined alias for the slot, unique within the placement */
|
|
8
|
+
alias: string;
|
|
9
|
+
}
|
|
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* Discriminated union for creating a placement
|
|
4
4
|
*/
|
|
5
|
-
export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification;
|
|
5
|
+
export type CreatePlacementDataUnion = KardApi.organizations.CreatePlacementDataUnion.PlacementMainPage | KardApi.organizations.CreatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.CreatePlacementDataUnion.PlacementBatchActivation;
|
|
6
6
|
export declare namespace CreatePlacementDataUnion {
|
|
7
7
|
interface PlacementMainPage extends KardApi.organizations.CreateMainPagePlacementData {
|
|
8
8
|
type: "placementMainPage";
|
|
@@ -10,4 +10,7 @@ export declare namespace CreatePlacementDataUnion {
|
|
|
10
10
|
interface PlacementPushNotification extends KardApi.organizations.CreatePushNotificationPlacementData {
|
|
11
11
|
type: "placementPushNotification";
|
|
12
12
|
}
|
|
13
|
+
interface PlacementBatchActivation extends KardApi.organizations.CreateBatchActivationPlacementData {
|
|
14
|
+
type: "placementBatchActivation";
|
|
15
|
+
}
|
|
13
16
|
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts
CHANGED
|
@@ -26,8 +26,24 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
26
26
|
* }
|
|
27
27
|
* }
|
|
28
28
|
* }
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* {
|
|
32
|
+
* type: "placementBatchActivation",
|
|
33
|
+
* id: "01961e5a-d94e-7c22-ac3f-f8b5a7e92c45",
|
|
34
|
+
* attributes: {
|
|
35
|
+
* name: "Weekly Cohort",
|
|
36
|
+
* organizationId: "org-123",
|
|
37
|
+
* refreshInterval: "P7D",
|
|
38
|
+
* slots: [{
|
|
39
|
+
* slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
|
|
40
|
+
* contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
41
|
+
* alias: "primary"
|
|
42
|
+
* }]
|
|
43
|
+
* }
|
|
44
|
+
* }
|
|
29
45
|
*/
|
|
30
|
-
export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification;
|
|
46
|
+
export type PlacementFormatUnion = KardApi.organizations.PlacementFormatUnion.PlacementMainPage | KardApi.organizations.PlacementFormatUnion.PlacementPushNotification | KardApi.organizations.PlacementFormatUnion.PlacementBatchActivation;
|
|
31
47
|
export declare namespace PlacementFormatUnion {
|
|
32
48
|
interface PlacementMainPage extends KardApi.organizations.MainPagePlacementData {
|
|
33
49
|
type: "placementMainPage";
|
|
@@ -35,4 +51,7 @@ export declare namespace PlacementFormatUnion {
|
|
|
35
51
|
interface PlacementPushNotification extends KardApi.organizations.PushNotificationPlacementData {
|
|
36
52
|
type: "placementPushNotification";
|
|
37
53
|
}
|
|
54
|
+
interface PlacementBatchActivation extends KardApi.organizations.BatchActivationPlacementData {
|
|
55
|
+
type: "placementBatchActivation";
|
|
56
|
+
}
|
|
38
57
|
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/PlacementTypeFilter.d.mts
CHANGED
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export declare const PlacementTypeFilter: {
|
|
3
3
|
readonly PlacementMainPage: "placementMainPage";
|
|
4
4
|
readonly PlacementPushNotification: "placementPushNotification";
|
|
5
|
+
readonly PlacementBatchActivation: "placementBatchActivation";
|
|
5
6
|
};
|
|
6
7
|
export type PlacementTypeFilter = (typeof PlacementTypeFilter)[keyof typeof PlacementTypeFilter];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Attributes for updating a batch-activation placement. All fields are required.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* name: "Updated Cohort",
|
|
8
|
+
* refreshInterval: "P14D",
|
|
9
|
+
* slots: [{
|
|
10
|
+
* slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
|
|
11
|
+
* contentStrategyId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
12
|
+
* alias: "primary"
|
|
13
|
+
* }]
|
|
14
|
+
* }
|
|
15
|
+
*/
|
|
16
|
+
export interface UpdateBatchActivationAttributes {
|
|
17
|
+
/** Name of the placement */
|
|
18
|
+
name: string;
|
|
19
|
+
/** ISO-8601 duration controlling how often the activation cohort refreshes */
|
|
20
|
+
refreshInterval: string;
|
|
21
|
+
/** Slots that make up the activation cohort. Slots present in the prior state but absent from this list are removed. */
|
|
22
|
+
slots: KardApi.organizations.UpdateBatchActivationSlot[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Data for updating a batch-activation placement
|
|
4
|
+
*/
|
|
5
|
+
export interface UpdateBatchActivationPlacementData {
|
|
6
|
+
/** Batch-activation placement attributes for update */
|
|
7
|
+
attributes: KardApi.organizations.UpdateBatchActivationAttributes;
|
|
8
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A slot in a batch-activation placement at update time
|
|
3
|
+
*/
|
|
4
|
+
export interface UpdateBatchActivationSlot {
|
|
5
|
+
/** Existing slot identifier. Echo the value from a prior GET to keep the slot stable; omit to mint a fresh slot. If the contentStrategyId changes, the slotId is regenerated regardless of what was echoed. */
|
|
6
|
+
slotId?: string | undefined;
|
|
7
|
+
/** ID of the content strategy that fills this slot */
|
|
8
|
+
contentStrategyId: string;
|
|
9
|
+
/** Customer-defined alias for the slot, unique within the placement */
|
|
10
|
+
alias: string;
|
|
11
|
+
}
|
|
@@ -2,7 +2,7 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
2
2
|
/**
|
|
3
3
|
* Discriminated union for updating a placement
|
|
4
4
|
*/
|
|
5
|
-
export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification;
|
|
5
|
+
export type UpdatePlacementDataUnion = KardApi.organizations.UpdatePlacementDataUnion.PlacementMainPage | KardApi.organizations.UpdatePlacementDataUnion.PlacementPushNotification | KardApi.organizations.UpdatePlacementDataUnion.PlacementBatchActivation;
|
|
6
6
|
export declare namespace UpdatePlacementDataUnion {
|
|
7
7
|
interface PlacementMainPage extends KardApi.organizations.UpdateMainPagePlacementData {
|
|
8
8
|
type: "placementMainPage";
|
|
@@ -10,4 +10,7 @@ export declare namespace UpdatePlacementDataUnion {
|
|
|
10
10
|
interface PlacementPushNotification extends KardApi.organizations.UpdatePushNotificationPlacementData {
|
|
11
11
|
type: "placementPushNotification";
|
|
12
12
|
}
|
|
13
|
+
interface PlacementBatchActivation extends KardApi.organizations.UpdateBatchActivationPlacementData {
|
|
14
|
+
type: "placementBatchActivation";
|
|
15
|
+
}
|
|
13
16
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from "./BatchActivationPlacementAttributes.mjs";
|
|
2
|
+
export * from "./BatchActivationPlacementData.mjs";
|
|
3
|
+
export * from "./BatchActivationSlot.mjs";
|
|
1
4
|
export * from "./Cadence.mjs";
|
|
2
5
|
export * from "./CadenceFrequency.mjs";
|
|
6
|
+
export * from "./CreateBatchActivationAttributes.mjs";
|
|
7
|
+
export * from "./CreateBatchActivationPlacementData.mjs";
|
|
8
|
+
export * from "./CreateBatchActivationSlot.mjs";
|
|
3
9
|
export * from "./CreateMainPageAttributes.mjs";
|
|
4
10
|
export * from "./CreateMainPagePlacementData.mjs";
|
|
5
11
|
export * from "./CreatePlacementDataUnion.mjs";
|
|
@@ -15,6 +21,9 @@ export * from "./PlacementResource.mjs";
|
|
|
15
21
|
export * from "./PlacementTypeFilter.mjs";
|
|
16
22
|
export * from "./PushNotificationPlacementAttributes.mjs";
|
|
17
23
|
export * from "./PushNotificationPlacementData.mjs";
|
|
24
|
+
export * from "./UpdateBatchActivationAttributes.mjs";
|
|
25
|
+
export * from "./UpdateBatchActivationPlacementData.mjs";
|
|
26
|
+
export * from "./UpdateBatchActivationSlot.mjs";
|
|
18
27
|
export * from "./UpdateMainPageAttributes.mjs";
|
|
19
28
|
export * from "./UpdateMainPagePlacementData.mjs";
|
|
20
29
|
export * from "./UpdatePlacementDataUnion.mjs";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export * from "./BatchActivationPlacementAttributes.mjs";
|
|
2
|
+
export * from "./BatchActivationPlacementData.mjs";
|
|
3
|
+
export * from "./BatchActivationSlot.mjs";
|
|
1
4
|
export * from "./Cadence.mjs";
|
|
2
5
|
export * from "./CadenceFrequency.mjs";
|
|
6
|
+
export * from "./CreateBatchActivationAttributes.mjs";
|
|
7
|
+
export * from "./CreateBatchActivationPlacementData.mjs";
|
|
8
|
+
export * from "./CreateBatchActivationSlot.mjs";
|
|
3
9
|
export * from "./CreateMainPageAttributes.mjs";
|
|
4
10
|
export * from "./CreateMainPagePlacementData.mjs";
|
|
5
11
|
export * from "./CreatePlacementDataUnion.mjs";
|
|
@@ -15,6 +21,9 @@ export * from "./PlacementResource.mjs";
|
|
|
15
21
|
export * from "./PlacementTypeFilter.mjs";
|
|
16
22
|
export * from "./PushNotificationPlacementAttributes.mjs";
|
|
17
23
|
export * from "./PushNotificationPlacementData.mjs";
|
|
24
|
+
export * from "./UpdateBatchActivationAttributes.mjs";
|
|
25
|
+
export * from "./UpdateBatchActivationPlacementData.mjs";
|
|
26
|
+
export * from "./UpdateBatchActivationSlot.mjs";
|
|
18
27
|
export * from "./UpdateMainPageAttributes.mjs";
|
|
19
28
|
export * from "./UpdateMainPagePlacementData.mjs";
|
|
20
29
|
export * from "./UpdatePlacementDataUnion.mjs";
|
|
@@ -7,4 +7,10 @@ export interface ProgressBarSegment {
|
|
|
7
7
|
icon?: string | undefined;
|
|
8
8
|
/** Position of the segment within the layout */
|
|
9
9
|
position: KardApi.users.ProgressBarSegmentPosition;
|
|
10
|
+
/** Separator style to render between segment nodes */
|
|
11
|
+
separator?: KardApi.users.ProgressBarSegmentSeparator | undefined;
|
|
12
|
+
/** Label configuration for each node in the segment */
|
|
13
|
+
labels?: KardApi.users.ProgressBarSegmentLabel[] | undefined;
|
|
14
|
+
/** Which segment nodes the UI should render as selected based on currentProgress */
|
|
15
|
+
selection?: KardApi.users.ProgressBarSegmentSelection | undefined;
|
|
10
16
|
}
|
package/dist/esm/api/resources/users/resources/rewards/types/ProgressBarSegmentSelection.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Supported selection strategies for highlighting segment nodes.
|
|
3
|
+
* - CURRENT: select only the segment at currentProgress
|
|
4
|
+
* - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
|
|
5
|
+
*/
|
|
6
|
+
export declare const ProgressBarSegmentSelection: {
|
|
7
|
+
readonly Current: "CURRENT";
|
|
8
|
+
readonly CurrentAndBelow: "CURRENT_AND_BELOW";
|
|
9
|
+
};
|
|
10
|
+
export type ProgressBarSegmentSelection = (typeof ProgressBarSegmentSelection)[keyof typeof ProgressBarSegmentSelection];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/**
|
|
3
|
+
* Supported selection strategies for highlighting segment nodes.
|
|
4
|
+
* - CURRENT: select only the segment at currentProgress
|
|
5
|
+
* - CURRENT_AND_BELOW: select the segment at currentProgress and all segments below it
|
|
6
|
+
*/
|
|
7
|
+
export const ProgressBarSegmentSelection = {
|
|
8
|
+
Current: "CURRENT",
|
|
9
|
+
CurrentAndBelow: "CURRENT_AND_BELOW",
|
|
10
|
+
};
|
|
@@ -42,7 +42,10 @@ export * from "./ProgressBar.mjs";
|
|
|
42
42
|
export * from "./ProgressBarLabelPair.mjs";
|
|
43
43
|
export * from "./ProgressBarLabels.mjs";
|
|
44
44
|
export * from "./ProgressBarSegment.mjs";
|
|
45
|
+
export * from "./ProgressBarSegmentLabel.mjs";
|
|
45
46
|
export * from "./ProgressBarSegmentPosition.mjs";
|
|
47
|
+
export * from "./ProgressBarSegmentSelection.mjs";
|
|
48
|
+
export * from "./ProgressBarSegmentSeparator.mjs";
|
|
46
49
|
export * from "./ProgressBarSegments.mjs";
|
|
47
50
|
export * from "./StandardOffer.mjs";
|
|
48
51
|
export * from "./StandardOfferCore.mjs";
|
|
@@ -42,7 +42,10 @@ export * from "./ProgressBar.mjs";
|
|
|
42
42
|
export * from "./ProgressBarLabelPair.mjs";
|
|
43
43
|
export * from "./ProgressBarLabels.mjs";
|
|
44
44
|
export * from "./ProgressBarSegment.mjs";
|
|
45
|
+
export * from "./ProgressBarSegmentLabel.mjs";
|
|
45
46
|
export * from "./ProgressBarSegmentPosition.mjs";
|
|
47
|
+
export * from "./ProgressBarSegmentSelection.mjs";
|
|
48
|
+
export * from "./ProgressBarSegmentSeparator.mjs";
|
|
46
49
|
export * from "./ProgressBarSegments.mjs";
|
|
47
50
|
export * from "./StandardOffer.mjs";
|
|
48
51
|
export * from "./StandardOfferCore.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "22.
|
|
1
|
+
export declare const SDK_VERSION = "22.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "22.
|
|
1
|
+
export const SDK_VERSION = "22.2.0";
|