@kard-financial/sdk 24.1.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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/organizations/resources/placements/client/requests/GetPlacementRequest.d.ts +1 -1
- package/dist/cjs/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.ts +1 -1
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.d.ts +1 -4
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.ts +2 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationPlacementRelationships.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotAttributes.d.ts +9 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.d.ts +9 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.ts +3 -2
- package/dist/cjs/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.ts +4 -2
- package/dist/cjs/api/resources/organizations/resources/placements/types/IncludedResource.d.ts +19 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/IncludedResource.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.ts +2 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.ts +9 -6
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementListResponse.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementRelationships.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementRelationships.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/PlacementResource.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.ts +1 -1
- package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.ts +2 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ResourceIdentifier.d.ts +9 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ResourceIdentifier.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ToManyRelationship.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ToManyRelationship.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ToOneRelationship.d.ts +8 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/ToOneRelationship.js +3 -0
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.ts +3 -2
- package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.ts +5 -3
- package/dist/cjs/api/resources/organizations/resources/placements/types/index.d.ts +10 -1
- package/dist/cjs/api/resources/organizations/resources/placements/types/index.js +10 -1
- 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} +4 -6
- package/dist/cjs/api/resources/users/resources/rewards/types/PlacementBatchAttributes.js +3 -0
- 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/organizations/resources/placements/client/requests/GetPlacementRequest.d.mts +1 -1
- package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.mts +1 -1
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementAttributes.d.mts +1 -4
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementData.d.mts +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationPlacementRelationships.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotAttributes.d.mts +9 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.d.mts +9 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotInclusion.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlotRelationships.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ContentStrategyInclusion.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationAttributes.d.mts +3 -2
- package/dist/esm/api/resources/organizations/resources/placements/types/CreateBatchActivationSlot.d.mts +4 -2
- package/dist/esm/api/resources/organizations/resources/placements/types/IncludedResource.d.mts +19 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/IncludedResource.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.mts +1 -1
- package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.mts +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts +9 -6
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementListResponse.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementRelationships.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementRelationships.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/PlacementResource.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.mts +1 -1
- package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementData.d.mts +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ResourceIdentifier.d.mts +9 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ResourceIdentifier.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ToManyRelationship.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ToManyRelationship.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ToOneRelationship.d.mts +8 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/ToOneRelationship.mjs +2 -0
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationAttributes.d.mts +3 -2
- package/dist/esm/api/resources/organizations/resources/placements/types/UpdateBatchActivationSlot.d.mts +5 -3
- package/dist/esm/api/resources/organizations/resources/placements/types/index.d.mts +10 -1
- package/dist/esm/api/resources/organizations/resources/placements/types/index.mjs +10 -1
- 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} +4 -6
- package/dist/esm/api/resources/users/resources/rewards/types/PlacementBatchAttributes.mjs +2 -0
- 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/organizations/resources/placements/types/BatchActivationSlot.d.ts +0 -11
- package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.mts +0 -11
- /package/dist/cjs/api/resources/organizations/resources/placements/types/{BatchActivationSlot.js → BatchActivationPlacementRelationships.js} +0 -0
- /package/dist/cjs/api/resources/{users/resources/rewards/types/BatchSlotData.js → organizations/resources/placements/types/BatchActivationSlotAttributes.js} +0 -0
- /package/dist/esm/api/resources/organizations/resources/placements/types/{BatchActivationSlot.mjs → BatchActivationPlacementRelationships.mjs} +0 -0
- /package/dist/esm/api/resources/{users/resources/rewards/types/BatchSlotData.mjs → organizations/resources/placements/types/BatchActivationSlotAttributes.mjs} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Relationship block for a `batchActivationSlot` resource.
|
|
4
|
+
*/
|
|
5
|
+
export interface BatchActivationSlotRelationships {
|
|
6
|
+
/** Reference to the placement that fills this slot. The referenced placement provides the slot's content strategy and offer-count cap; request `?include=slots.placement` to embed it in `included`. */
|
|
7
|
+
placement: KardApi.organizations.ToOneRelationship;
|
|
8
|
+
}
|
|
@@ -7,8 +7,9 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
7
7
|
* name: "Weekly Cohort",
|
|
8
8
|
* refreshInterval: "P7D",
|
|
9
9
|
* slots: [{
|
|
10
|
-
*
|
|
11
|
-
* alias: "primary"
|
|
10
|
+
* placementId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
11
|
+
* alias: "primary",
|
|
12
|
+
* shortDescription: "Featured deals refreshed each week"
|
|
12
13
|
* }]
|
|
13
14
|
* }
|
|
14
15
|
*/
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* A slot in a batch-activation placement at creation time
|
|
3
3
|
*/
|
|
4
4
|
export interface CreateBatchActivationSlot {
|
|
5
|
-
/** ID of the content strategy
|
|
6
|
-
|
|
5
|
+
/** ID of another placement that fills this slot. The referenced placement provides both the content strategy and the limit on the number of offers available to the slot. */
|
|
6
|
+
placementId: string;
|
|
7
7
|
/** Customer-defined alias for the slot, unique within the placement */
|
|
8
8
|
alias: string;
|
|
9
|
+
/** Optional short description of the slot, limited to 50 characters */
|
|
10
|
+
shortDescription?: string | undefined;
|
|
9
11
|
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/IncludedResource.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Discriminated union of every resource type that can appear in the `included` array. The shape of each branch matches the corresponding primary-data resource (same attributes and relationships), keyed on the JSON:API `type` discriminant.
|
|
4
|
+
*/
|
|
5
|
+
export type IncludedResource = KardApi.organizations.IncludedResource.ContentStrategy | KardApi.organizations.IncludedResource.BatchActivationSlot | KardApi.organizations.IncludedResource.PlacementMainPage | KardApi.organizations.IncludedResource.PlacementPushNotification;
|
|
6
|
+
export declare namespace IncludedResource {
|
|
7
|
+
interface ContentStrategy extends KardApi.organizations.ContentStrategyInclusion {
|
|
8
|
+
type: "contentStrategy";
|
|
9
|
+
}
|
|
10
|
+
interface BatchActivationSlot extends KardApi.organizations.BatchActivationSlotInclusion {
|
|
11
|
+
type: "batchActivationSlot";
|
|
12
|
+
}
|
|
13
|
+
interface PlacementMainPage extends KardApi.organizations.MainPagePlacementData {
|
|
14
|
+
type: "placementMainPage";
|
|
15
|
+
}
|
|
16
|
+
interface PlacementPushNotification extends KardApi.organizations.PushNotificationPlacementData {
|
|
17
|
+
type: "placementPushNotification";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -8,6 +8,6 @@ export interface MainPagePlacementAttributes {
|
|
|
8
8
|
organizationId: string;
|
|
9
9
|
/** Number of available slots */
|
|
10
10
|
availableSlots: number;
|
|
11
|
-
/** ID of the content strategy linked to this placement, if any */
|
|
11
|
+
/** ID of the content strategy linked to this placement, if any. Retained alongside `relationships.contentStrategy` for backward compatibility. */
|
|
12
12
|
contentStrategyId?: string | undefined;
|
|
13
13
|
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementData.d.mts
CHANGED
|
@@ -6,4 +6,6 @@ export interface MainPagePlacementData {
|
|
|
6
6
|
/** Unique identifier of the placement (UUID v7) */
|
|
7
7
|
id: string;
|
|
8
8
|
attributes: KardApi.organizations.MainPagePlacementAttributes;
|
|
9
|
+
/** JSON:API relationships for the placement. Omitted entirely when the placement has no linked resources. */
|
|
10
|
+
relationships?: KardApi.organizations.PlacementRelationships | undefined;
|
|
9
11
|
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/PlacementFormatUnion.d.mts
CHANGED
|
@@ -34,12 +34,15 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
34
34
|
* attributes: {
|
|
35
35
|
* name: "Weekly Cohort",
|
|
36
36
|
* organizationId: "org-123",
|
|
37
|
-
* refreshInterval: "P7D"
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
37
|
+
* refreshInterval: "P7D"
|
|
38
|
+
* },
|
|
39
|
+
* relationships: {
|
|
40
|
+
* slots: {
|
|
41
|
+
* data: [{
|
|
42
|
+
* type: "batchActivationSlot",
|
|
43
|
+
* id: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56"
|
|
44
|
+
* }]
|
|
45
|
+
* }
|
|
43
46
|
* }
|
|
44
47
|
* }
|
|
45
48
|
*/
|
package/dist/esm/api/resources/organizations/resources/placements/types/PlacementListResponse.d.mts
CHANGED
|
@@ -5,8 +5,8 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
5
5
|
export interface PlacementListResponse {
|
|
6
6
|
/** Array of placement resources */
|
|
7
7
|
data: KardApi.organizations.PlacementFormatUnion[];
|
|
8
|
-
/** Related resources requested via the `include` query parameter.
|
|
9
|
-
included?: KardApi.organizations.
|
|
8
|
+
/** Related resources requested via the `include` query parameter. Each entry is keyed by its `type` discriminant (`contentStrategy`, `batchActivationSlot`, `placementMainPage`, `placementPushNotification`). */
|
|
9
|
+
included?: KardApi.organizations.IncludedResource[] | undefined;
|
|
10
10
|
links?: KardApi.Links | undefined;
|
|
11
11
|
/** Pagination metadata */
|
|
12
12
|
meta?: KardApi.OrganizationPaginationMetadata | undefined;
|
package/dist/esm/api/resources/organizations/resources/placements/types/PlacementRelationships.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Relationship block for non-batch placements. Mirrors the `contentStrategyId` attribute so JSON:API clients can walk the graph.
|
|
4
|
+
*/
|
|
5
|
+
export interface PlacementRelationships {
|
|
6
|
+
/** Relationship to the content strategy that powers this placement. Present whenever the placement has been linked to a content strategy (`data.id` will be set). Omitted entirely when no content strategy is linked. */
|
|
7
|
+
contentStrategy?: KardApi.organizations.ToOneRelationship | undefined;
|
|
8
|
+
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/PlacementResource.d.mts
CHANGED
|
@@ -5,6 +5,6 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
5
5
|
export interface PlacementResource {
|
|
6
6
|
/** Placement resource */
|
|
7
7
|
data: KardApi.organizations.PlacementFormatUnion;
|
|
8
|
-
/** Related resources requested via the `include` query parameter.
|
|
9
|
-
included?: KardApi.organizations.
|
|
8
|
+
/** Related resources requested via the `include` query parameter. Each entry is keyed by its `type` discriminant (`contentStrategy`, `batchActivationSlot`, `placementMainPage`, `placementPushNotification`). */
|
|
9
|
+
included?: KardApi.organizations.IncludedResource[] | undefined;
|
|
10
10
|
}
|
|
@@ -9,6 +9,6 @@ export interface PushNotificationPlacementAttributes {
|
|
|
9
9
|
organizationId: string;
|
|
10
10
|
/** Delivery cadence for the notification */
|
|
11
11
|
cadence: KardApi.organizations.Cadence;
|
|
12
|
-
/** ID of the content strategy linked to this placement, if any */
|
|
12
|
+
/** ID of the content strategy linked to this placement, if any. Retained alongside `relationships.contentStrategy` for backward compatibility. */
|
|
13
13
|
contentStrategyId?: string | undefined;
|
|
14
14
|
}
|
|
@@ -6,4 +6,6 @@ export interface PushNotificationPlacementData {
|
|
|
6
6
|
/** Unique identifier of the placement (UUID v7) */
|
|
7
7
|
id: string;
|
|
8
8
|
attributes: KardApi.organizations.PushNotificationPlacementAttributes;
|
|
9
|
+
/** JSON:API relationships for the placement. Omitted entirely when the placement has no linked resources. */
|
|
10
|
+
relationships?: KardApi.organizations.PlacementRelationships | undefined;
|
|
9
11
|
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/ToOneRelationship.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as KardApi from "../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A JSON:API to-one relationship payload.
|
|
4
|
+
*/
|
|
5
|
+
export interface ToOneRelationship {
|
|
6
|
+
/** The linked resource identifier, or null when the relationship is present but unlinked. */
|
|
7
|
+
data?: KardApi.organizations.ResourceIdentifier | undefined;
|
|
8
|
+
}
|
|
@@ -8,8 +8,9 @@ import type * as KardApi from "../../../../../index.mjs";
|
|
|
8
8
|
* refreshInterval: "P14D",
|
|
9
9
|
* slots: [{
|
|
10
10
|
* slotId: "01961e5a-e15f-7d33-bd4f-09c6b8fa3d56",
|
|
11
|
-
*
|
|
12
|
-
* alias: "primary"
|
|
11
|
+
* placementId: "01961e5a-f26f-7e44-ce5f-1ad7c9fb4e67",
|
|
12
|
+
* alias: "primary",
|
|
13
|
+
* shortDescription: "Featured deals refreshed each week"
|
|
13
14
|
* }]
|
|
14
15
|
* }
|
|
15
16
|
*/
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* A slot in a batch-activation placement at update time
|
|
3
3
|
*/
|
|
4
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
|
|
5
|
+
/** Existing slot identifier. Echo the value from a prior GET to keep the slot stable; omit to mint a fresh slot. If the placementId changes, the slotId is regenerated regardless of what was echoed. */
|
|
6
6
|
slotId?: string | undefined;
|
|
7
|
-
/** ID of the content strategy
|
|
8
|
-
|
|
7
|
+
/** ID of another placement that fills this slot. The referenced placement provides both the content strategy and the limit on the number of offers available to the slot. */
|
|
8
|
+
placementId: string;
|
|
9
9
|
/** Customer-defined alias for the slot, unique within the placement */
|
|
10
10
|
alias: string;
|
|
11
|
+
/** Optional short description of the slot, limited to 50 characters */
|
|
12
|
+
shortDescription?: string | undefined;
|
|
11
13
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export * from "./BatchActivationPlacementAttributes.mjs";
|
|
2
2
|
export * from "./BatchActivationPlacementData.mjs";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./BatchActivationPlacementRelationships.mjs";
|
|
4
|
+
export * from "./BatchActivationSlotAttributes.mjs";
|
|
5
|
+
export * from "./BatchActivationSlotInclusion.mjs";
|
|
6
|
+
export * from "./BatchActivationSlotRelationships.mjs";
|
|
4
7
|
export * from "./Cadence.mjs";
|
|
5
8
|
export * from "./CadenceFrequency.mjs";
|
|
9
|
+
export * from "./ContentStrategyInclusion.mjs";
|
|
6
10
|
export * from "./CreateBatchActivationAttributes.mjs";
|
|
7
11
|
export * from "./CreateBatchActivationPlacementData.mjs";
|
|
8
12
|
export * from "./CreateBatchActivationSlot.mjs";
|
|
@@ -13,14 +17,19 @@ export * from "./CreatePlacementRequestBody.mjs";
|
|
|
13
17
|
export * from "./CreatePushNotificationAttributes.mjs";
|
|
14
18
|
export * from "./CreatePushNotificationPlacementData.mjs";
|
|
15
19
|
export * from "./DayOfWeek.mjs";
|
|
20
|
+
export * from "./IncludedResource.mjs";
|
|
16
21
|
export * from "./MainPagePlacementAttributes.mjs";
|
|
17
22
|
export * from "./MainPagePlacementData.mjs";
|
|
18
23
|
export * from "./PlacementFormatUnion.mjs";
|
|
19
24
|
export * from "./PlacementListResponse.mjs";
|
|
25
|
+
export * from "./PlacementRelationships.mjs";
|
|
20
26
|
export * from "./PlacementResource.mjs";
|
|
21
27
|
export * from "./PlacementTypeFilter.mjs";
|
|
22
28
|
export * from "./PushNotificationPlacementAttributes.mjs";
|
|
23
29
|
export * from "./PushNotificationPlacementData.mjs";
|
|
30
|
+
export * from "./ResourceIdentifier.mjs";
|
|
31
|
+
export * from "./ToManyRelationship.mjs";
|
|
32
|
+
export * from "./ToOneRelationship.mjs";
|
|
24
33
|
export * from "./UpdateBatchActivationAttributes.mjs";
|
|
25
34
|
export * from "./UpdateBatchActivationPlacementData.mjs";
|
|
26
35
|
export * from "./UpdateBatchActivationSlot.mjs";
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export * from "./BatchActivationPlacementAttributes.mjs";
|
|
2
2
|
export * from "./BatchActivationPlacementData.mjs";
|
|
3
|
-
export * from "./
|
|
3
|
+
export * from "./BatchActivationPlacementRelationships.mjs";
|
|
4
|
+
export * from "./BatchActivationSlotAttributes.mjs";
|
|
5
|
+
export * from "./BatchActivationSlotInclusion.mjs";
|
|
6
|
+
export * from "./BatchActivationSlotRelationships.mjs";
|
|
4
7
|
export * from "./Cadence.mjs";
|
|
5
8
|
export * from "./CadenceFrequency.mjs";
|
|
9
|
+
export * from "./ContentStrategyInclusion.mjs";
|
|
6
10
|
export * from "./CreateBatchActivationAttributes.mjs";
|
|
7
11
|
export * from "./CreateBatchActivationPlacementData.mjs";
|
|
8
12
|
export * from "./CreateBatchActivationSlot.mjs";
|
|
@@ -13,14 +17,19 @@ export * from "./CreatePlacementRequestBody.mjs";
|
|
|
13
17
|
export * from "./CreatePushNotificationAttributes.mjs";
|
|
14
18
|
export * from "./CreatePushNotificationPlacementData.mjs";
|
|
15
19
|
export * from "./DayOfWeek.mjs";
|
|
20
|
+
export * from "./IncludedResource.mjs";
|
|
16
21
|
export * from "./MainPagePlacementAttributes.mjs";
|
|
17
22
|
export * from "./MainPagePlacementData.mjs";
|
|
18
23
|
export * from "./PlacementFormatUnion.mjs";
|
|
19
24
|
export * from "./PlacementListResponse.mjs";
|
|
25
|
+
export * from "./PlacementRelationships.mjs";
|
|
20
26
|
export * from "./PlacementResource.mjs";
|
|
21
27
|
export * from "./PlacementTypeFilter.mjs";
|
|
22
28
|
export * from "./PushNotificationPlacementAttributes.mjs";
|
|
23
29
|
export * from "./PushNotificationPlacementData.mjs";
|
|
30
|
+
export * from "./ResourceIdentifier.mjs";
|
|
31
|
+
export * from "./ToManyRelationship.mjs";
|
|
32
|
+
export * from "./ToOneRelationship.mjs";
|
|
24
33
|
export * from "./UpdateBatchActivationAttributes.mjs";
|
|
25
34
|
export * from "./UpdateBatchActivationPlacementData.mjs";
|
|
26
35
|
export * from "./UpdateBatchActivationSlot.mjs";
|
|
@@ -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,10 @@
|
|
|
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
|
-
/** 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
|
+
}
|
|
@@ -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 = "26.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "26.0.0";
|
package/package.json
CHANGED
package/dist/cjs/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
package/dist/esm/api/resources/organizations/resources/placements/types/BatchActivationSlot.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|