@kard-financial/sdk 18.1.0 → 19.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 (42) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/Client.d.ts +1 -2
  3. package/dist/cjs/api/resources/organizations/resources/contentStrategies/client/Client.js +1 -2
  4. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.ts +2 -2
  5. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.d.ts +1 -1
  6. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.js +1 -1
  7. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.ts +1 -1
  8. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.d.ts +3 -3
  9. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.d.ts +1 -1
  10. package/dist/cjs/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.d.ts +3 -3
  11. package/dist/cjs/api/resources/organizations/resources/placements/client/Client.js +2 -1
  12. package/dist/cjs/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.ts +2 -0
  13. package/dist/cjs/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.d.ts +2 -0
  14. package/dist/cjs/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.d.ts +2 -0
  15. package/dist/cjs/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.ts +2 -0
  16. package/dist/cjs/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.ts +2 -0
  17. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.d.ts +2 -0
  18. package/dist/cjs/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.d.ts +2 -0
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/BaseClient.mjs +2 -2
  22. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/Client.d.mts +1 -2
  23. package/dist/esm/api/resources/organizations/resources/contentStrategies/client/Client.mjs +1 -2
  24. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyAttributes.d.mts +2 -2
  25. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.d.mts +1 -1
  26. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyFilter.mjs +1 -1
  27. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/ContentStrategyResponse.d.mts +1 -1
  28. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyAttributes.d.mts +3 -3
  29. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/CreateContentStrategyRequestBody.d.mts +1 -1
  30. package/dist/esm/api/resources/organizations/resources/contentStrategies/types/UpdateContentStrategyAttributes.d.mts +3 -3
  31. package/dist/esm/api/resources/organizations/resources/placements/client/Client.mjs +2 -1
  32. package/dist/esm/api/resources/organizations/resources/placements/client/requests/ListPlacementsRequest.d.mts +2 -0
  33. package/dist/esm/api/resources/organizations/resources/placements/types/CreateMainPageAttributes.d.mts +2 -0
  34. package/dist/esm/api/resources/organizations/resources/placements/types/CreatePushNotificationAttributes.d.mts +2 -0
  35. package/dist/esm/api/resources/organizations/resources/placements/types/MainPagePlacementAttributes.d.mts +2 -0
  36. package/dist/esm/api/resources/organizations/resources/placements/types/PushNotificationPlacementAttributes.d.mts +2 -0
  37. package/dist/esm/api/resources/organizations/resources/placements/types/UpdateMainPageAttributes.d.mts +2 -0
  38. package/dist/esm/api/resources/organizations/resources/placements/types/UpdatePushNotificationAttributes.d.mts +2 -0
  39. package/dist/esm/version.d.mts +1 -1
  40. package/dist/esm/version.mjs +1 -1
  41. package/package.json +1 -1
  42. package/reference.md +1 -2
@@ -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": "18.1.0",
47
- "User-Agent": "@kard-financial/sdk/18.1.0",
46
+ "X-Fern-SDK-Version": "19.0.0",
47
+ "User-Agent": "@kard-financial/sdk/19.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);
@@ -30,7 +30,7 @@ export declare class ContentStrategiesClient {
30
30
  * type: "contentStrategy",
31
31
  * attributes: {
32
32
  * name: "Featured Travel",
33
- * filters: ["HIGHEST_CASHBACK", "NEWLY_LIVE"],
33
+ * filter: "HIGHEST_CASHBACK",
34
34
  * categories: ["Travel"],
35
35
  * categoryExclusions: ["Gas"],
36
36
  * merchantExclusions: ["merchant-abc"]
@@ -96,7 +96,6 @@ export declare class ContentStrategiesClient {
96
96
  * type: "contentStrategy",
97
97
  * attributes: {
98
98
  * name: "name",
99
- * filters: ["NEWLY_LIVE", "NEWLY_LIVE"],
100
99
  * categories: ["Arts & Entertainment", "Arts & Entertainment"],
101
100
  * categoryExclusions: ["Arts & Entertainment", "Arts & Entertainment"],
102
101
  * merchantExclusions: ["merchantExclusions", "merchantExclusions"]
@@ -75,7 +75,7 @@ class ContentStrategiesClient {
75
75
  * type: "contentStrategy",
76
76
  * attributes: {
77
77
  * name: "Featured Travel",
78
- * filters: ["HIGHEST_CASHBACK", "NEWLY_LIVE"],
78
+ * filter: "HIGHEST_CASHBACK",
79
79
  * categories: ["Travel"],
80
80
  * categoryExclusions: ["Gas"],
81
81
  * merchantExclusions: ["merchant-abc"]
@@ -288,7 +288,6 @@ class ContentStrategiesClient {
288
288
  * type: "contentStrategy",
289
289
  * attributes: {
290
290
  * name: "name",
291
- * filters: ["NEWLY_LIVE", "NEWLY_LIVE"],
292
291
  * categories: ["Arts & Entertainment", "Arts & Entertainment"],
293
292
  * categoryExclusions: ["Arts & Entertainment", "Arts & Entertainment"],
294
293
  * merchantExclusions: ["merchantExclusions", "merchantExclusions"]
@@ -7,8 +7,8 @@ export interface ContentStrategyAttributes {
7
7
  name: string;
8
8
  /** ID of the organization this content strategy belongs to */
9
9
  organizationId: string;
10
- /** Filters applied when selecting offers for the strategy */
11
- filters: KardApi.organizations.ContentStrategyFilter[];
10
+ /** Filter applied when selecting offers for the strategy */
11
+ filter?: KardApi.organizations.ContentStrategyFilter | undefined;
12
12
  /** Merchant categories to include */
13
13
  categories: KardApi.CategoryOption[];
14
14
  /** Merchant categories to exclude */
@@ -1,4 +1,4 @@
1
- /** Filter applied to the offers selected by a content strategy. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
1
+ /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
2
  export declare const ContentStrategyFilter: {
3
3
  readonly NewlyLive: "NEWLY_LIVE";
4
4
  readonly ExpiringSoon: "EXPIRING_SOON";
@@ -2,7 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ContentStrategyFilter = void 0;
5
- /** Filter applied to the offers selected by a content strategy. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
5
+ /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
6
6
  exports.ContentStrategyFilter = {
7
7
  NewlyLive: "NEWLY_LIVE",
8
8
  ExpiringSoon: "EXPIRING_SOON",
@@ -9,7 +9,7 @@ import type * as KardApi from "../../../../../index.js";
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
11
  * organizationId: "org-123",
12
- * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
12
+ * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
13
13
  * categories: [KardApi.CategoryOption.Travel],
14
14
  * categoryExclusions: [KardApi.CategoryOption.Gas],
15
15
  * merchantExclusions: ["merchant-abc"],
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.js";
5
5
  * @example
6
6
  * {
7
7
  * name: "Featured Travel",
8
- * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
8
+ * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
9
9
  * categories: [KardApi.CategoryOption.Travel],
10
10
  * categoryExclusions: [KardApi.CategoryOption.Gas],
11
11
  * merchantExclusions: ["merchant-abc"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.js";
14
14
  export interface CreateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filters applied when selecting offers for the strategy */
18
- filters: KardApi.organizations.ContentStrategyFilter[];
17
+ /** Filter applied when selecting offers for the strategy */
18
+ filter?: KardApi.organizations.ContentStrategyFilter | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -8,7 +8,7 @@ import type * as KardApi from "../../../../../index.js";
8
8
  * type: "contentStrategy",
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
- * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
11
+ * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
12
12
  * categories: [KardApi.CategoryOption.Travel],
13
13
  * categoryExclusions: [KardApi.CategoryOption.Gas],
14
14
  * merchantExclusions: ["merchant-abc"]
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.js";
5
5
  * @example
6
6
  * {
7
7
  * name: "Updated Travel Strategy",
8
- * filters: [KardApi.organizations.ContentStrategyFilter.ExpiringSoon, KardApi.organizations.ContentStrategyFilter.Personalized],
8
+ * filter: KardApi.organizations.ContentStrategyFilter.ExpiringSoon,
9
9
  * categories: [KardApi.CategoryOption.Travel, KardApi.CategoryOption.FoodBeverage],
10
10
  * categoryExclusions: [],
11
11
  * merchantExclusions: ["merchant-xyz"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.js";
14
14
  export interface UpdateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filters applied when selecting offers for the strategy */
18
- filters: KardApi.organizations.ContentStrategyFilter[];
17
+ /** Filter applied when selecting offers for the strategy */
18
+ filter?: KardApi.organizations.ContentStrategyFilter | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -166,10 +166,11 @@ class PlacementsClient {
166
166
  __list(organizationId_1) {
167
167
  return __awaiter(this, arguments, void 0, function* (organizationId, request = {}, requestOptions) {
168
168
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
169
- const { "filter[type]": filterType, "filter[name]": filterName, "page[after]": pageAfter, "page[size]": pageSize, } = request;
169
+ const { "filter[type]": filterType, "filter[name]": filterName, "filter[contentStrategyId]": filterContentStrategyId, "page[after]": pageAfter, "page[size]": pageSize, } = request;
170
170
  const _queryParams = {
171
171
  "filter[type]": filterType != null ? filterType : undefined,
172
172
  "filter[name]": filterName,
173
+ "filter[contentStrategyId]": filterContentStrategyId,
173
174
  "page[after]": pageAfter,
174
175
  "page[size]": pageSize,
175
176
  };
@@ -8,6 +8,8 @@ export interface ListPlacementsRequest {
8
8
  "filter[type]"?: KardApi.organizations.PlacementTypeFilter;
9
9
  /** Filter by exact placement name (unique within an organization per type) */
10
10
  "filter[name]"?: string;
11
+ /** Filter by the ID of the content strategy linked to the placement */
12
+ "filter[contentStrategyId]"?: string;
11
13
  /** Cursor value for the next page of results */
12
14
  "page[after]"?: string;
13
15
  /** Maximum number of records to return [1 - 200] (default = 200) */
@@ -12,4 +12,6 @@ export interface CreateMainPageAttributes {
12
12
  name: string;
13
13
  /** Number of available slots (minimum 1) */
14
14
  availableSlots: number;
15
+ /** ID of the content strategy to link this placement to */
16
+ contentStrategyId?: string | undefined;
15
17
  }
@@ -16,4 +16,6 @@ export interface CreatePushNotificationAttributes {
16
16
  name: string;
17
17
  /** Delivery cadence for the notification */
18
18
  cadence: KardApi.organizations.Cadence;
19
+ /** ID of the content strategy to link this placement to */
20
+ contentStrategyId?: string | undefined;
19
21
  }
@@ -8,6 +8,8 @@ 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 */
12
+ contentStrategyId?: string | undefined;
11
13
  /** When the placement was created (ISO 8601 UTC) */
12
14
  createdAt: string;
13
15
  /** When the placement was last modified (ISO 8601 UTC) */
@@ -9,6 +9,8 @@ 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 */
13
+ contentStrategyId?: string | undefined;
12
14
  /** When the placement was created (ISO 8601 UTC) */
13
15
  createdAt: string;
14
16
  /** When the placement was last modified (ISO 8601 UTC) */
@@ -12,4 +12,6 @@ export interface UpdateMainPageAttributes {
12
12
  name: string;
13
13
  /** Number of available slots (minimum 1) */
14
14
  availableSlots: number;
15
+ /** ID of the content strategy to link this placement to. Omit to clear any existing link (PUT requires the full attribute set, so a missing value unlinks the placement). */
16
+ contentStrategyId?: string | undefined;
15
17
  }
@@ -17,4 +17,6 @@ export interface UpdatePushNotificationAttributes {
17
17
  name: string;
18
18
  /** Delivery cadence for the notification */
19
19
  cadence: KardApi.organizations.Cadence;
20
+ /** ID of the content strategy to link this placement to. Omit to clear any existing link (PUT requires the full attribute set, so a missing value unlinks the placement). */
21
+ contentStrategyId?: string | undefined;
20
22
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "18.1.0";
1
+ export declare const SDK_VERSION = "19.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 = "18.1.0";
4
+ exports.SDK_VERSION = "19.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": "18.1.0",
10
- "User-Agent": "@kard-financial/sdk/18.1.0",
9
+ "X-Fern-SDK-Version": "19.0.0",
10
+ "User-Agent": "@kard-financial/sdk/19.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);
@@ -30,7 +30,7 @@ export declare class ContentStrategiesClient {
30
30
  * type: "contentStrategy",
31
31
  * attributes: {
32
32
  * name: "Featured Travel",
33
- * filters: ["HIGHEST_CASHBACK", "NEWLY_LIVE"],
33
+ * filter: "HIGHEST_CASHBACK",
34
34
  * categories: ["Travel"],
35
35
  * categoryExclusions: ["Gas"],
36
36
  * merchantExclusions: ["merchant-abc"]
@@ -96,7 +96,6 @@ export declare class ContentStrategiesClient {
96
96
  * type: "contentStrategy",
97
97
  * attributes: {
98
98
  * name: "name",
99
- * filters: ["NEWLY_LIVE", "NEWLY_LIVE"],
100
99
  * categories: ["Arts & Entertainment", "Arts & Entertainment"],
101
100
  * categoryExclusions: ["Arts & Entertainment", "Arts & Entertainment"],
102
101
  * merchantExclusions: ["merchantExclusions", "merchantExclusions"]
@@ -39,7 +39,7 @@ export class ContentStrategiesClient {
39
39
  * type: "contentStrategy",
40
40
  * attributes: {
41
41
  * name: "Featured Travel",
42
- * filters: ["HIGHEST_CASHBACK", "NEWLY_LIVE"],
42
+ * filter: "HIGHEST_CASHBACK",
43
43
  * categories: ["Travel"],
44
44
  * categoryExclusions: ["Gas"],
45
45
  * merchantExclusions: ["merchant-abc"]
@@ -252,7 +252,6 @@ export class ContentStrategiesClient {
252
252
  * type: "contentStrategy",
253
253
  * attributes: {
254
254
  * name: "name",
255
- * filters: ["NEWLY_LIVE", "NEWLY_LIVE"],
256
255
  * categories: ["Arts & Entertainment", "Arts & Entertainment"],
257
256
  * categoryExclusions: ["Arts & Entertainment", "Arts & Entertainment"],
258
257
  * merchantExclusions: ["merchantExclusions", "merchantExclusions"]
@@ -7,8 +7,8 @@ export interface ContentStrategyAttributes {
7
7
  name: string;
8
8
  /** ID of the organization this content strategy belongs to */
9
9
  organizationId: string;
10
- /** Filters applied when selecting offers for the strategy */
11
- filters: KardApi.organizations.ContentStrategyFilter[];
10
+ /** Filter applied when selecting offers for the strategy */
11
+ filter?: KardApi.organizations.ContentStrategyFilter | undefined;
12
12
  /** Merchant categories to include */
13
13
  categories: KardApi.CategoryOption[];
14
14
  /** Merchant categories to exclude */
@@ -1,4 +1,4 @@
1
- /** Filter applied to the offers selected by a content strategy. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
1
+ /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
2
  export declare const ContentStrategyFilter: {
3
3
  readonly NewlyLive: "NEWLY_LIVE";
4
4
  readonly ExpiringSoon: "EXPIRING_SOON";
@@ -1,5 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- /** Filter applied to the offers selected by a content strategy. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
2
+ /** Filter applied to the offers selected by a content strategy. A strategy may have at most one filter. The v1 starter set covers newly-live, expiring-soon, highest-cashback, and personalized selections. */
3
3
  export const ContentStrategyFilter = {
4
4
  NewlyLive: "NEWLY_LIVE",
5
5
  ExpiringSoon: "EXPIRING_SOON",
@@ -9,7 +9,7 @@ import type * as KardApi from "../../../../../index.mjs";
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
11
  * organizationId: "org-123",
12
- * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
12
+ * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
13
13
  * categories: [KardApi.CategoryOption.Travel],
14
14
  * categoryExclusions: [KardApi.CategoryOption.Gas],
15
15
  * merchantExclusions: ["merchant-abc"],
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.mjs";
5
5
  * @example
6
6
  * {
7
7
  * name: "Featured Travel",
8
- * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
8
+ * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
9
9
  * categories: [KardApi.CategoryOption.Travel],
10
10
  * categoryExclusions: [KardApi.CategoryOption.Gas],
11
11
  * merchantExclusions: ["merchant-abc"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.mjs";
14
14
  export interface CreateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filters applied when selecting offers for the strategy */
18
- filters: KardApi.organizations.ContentStrategyFilter[];
17
+ /** Filter applied when selecting offers for the strategy */
18
+ filter?: KardApi.organizations.ContentStrategyFilter | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -8,7 +8,7 @@ import type * as KardApi from "../../../../../index.mjs";
8
8
  * type: "contentStrategy",
9
9
  * attributes: {
10
10
  * name: "Featured Travel",
11
- * filters: [KardApi.organizations.ContentStrategyFilter.HighestCashback, KardApi.organizations.ContentStrategyFilter.NewlyLive],
11
+ * filter: KardApi.organizations.ContentStrategyFilter.HighestCashback,
12
12
  * categories: [KardApi.CategoryOption.Travel],
13
13
  * categoryExclusions: [KardApi.CategoryOption.Gas],
14
14
  * merchantExclusions: ["merchant-abc"]
@@ -5,7 +5,7 @@ import type * as KardApi from "../../../../../index.mjs";
5
5
  * @example
6
6
  * {
7
7
  * name: "Updated Travel Strategy",
8
- * filters: [KardApi.organizations.ContentStrategyFilter.ExpiringSoon, KardApi.organizations.ContentStrategyFilter.Personalized],
8
+ * filter: KardApi.organizations.ContentStrategyFilter.ExpiringSoon,
9
9
  * categories: [KardApi.CategoryOption.Travel, KardApi.CategoryOption.FoodBeverage],
10
10
  * categoryExclusions: [],
11
11
  * merchantExclusions: ["merchant-xyz"]
@@ -14,8 +14,8 @@ import type * as KardApi from "../../../../../index.mjs";
14
14
  export interface UpdateContentStrategyAttributes {
15
15
  /** Name of the content strategy (unique within an organization) */
16
16
  name: string;
17
- /** Filters applied when selecting offers for the strategy */
18
- filters: KardApi.organizations.ContentStrategyFilter[];
17
+ /** Filter applied when selecting offers for the strategy */
18
+ filter?: KardApi.organizations.ContentStrategyFilter | undefined;
19
19
  /** Merchant categories to include */
20
20
  categories: KardApi.CategoryOption[];
21
21
  /** Merchant categories to exclude */
@@ -130,10 +130,11 @@ export class PlacementsClient {
130
130
  __list(organizationId_1) {
131
131
  return __awaiter(this, arguments, void 0, function* (organizationId, request = {}, requestOptions) {
132
132
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
133
- const { "filter[type]": filterType, "filter[name]": filterName, "page[after]": pageAfter, "page[size]": pageSize, } = request;
133
+ const { "filter[type]": filterType, "filter[name]": filterName, "filter[contentStrategyId]": filterContentStrategyId, "page[after]": pageAfter, "page[size]": pageSize, } = request;
134
134
  const _queryParams = {
135
135
  "filter[type]": filterType != null ? filterType : undefined,
136
136
  "filter[name]": filterName,
137
+ "filter[contentStrategyId]": filterContentStrategyId,
137
138
  "page[after]": pageAfter,
138
139
  "page[size]": pageSize,
139
140
  };
@@ -8,6 +8,8 @@ export interface ListPlacementsRequest {
8
8
  "filter[type]"?: KardApi.organizations.PlacementTypeFilter;
9
9
  /** Filter by exact placement name (unique within an organization per type) */
10
10
  "filter[name]"?: string;
11
+ /** Filter by the ID of the content strategy linked to the placement */
12
+ "filter[contentStrategyId]"?: string;
11
13
  /** Cursor value for the next page of results */
12
14
  "page[after]"?: string;
13
15
  /** Maximum number of records to return [1 - 200] (default = 200) */
@@ -12,4 +12,6 @@ export interface CreateMainPageAttributes {
12
12
  name: string;
13
13
  /** Number of available slots (minimum 1) */
14
14
  availableSlots: number;
15
+ /** ID of the content strategy to link this placement to */
16
+ contentStrategyId?: string | undefined;
15
17
  }
@@ -16,4 +16,6 @@ export interface CreatePushNotificationAttributes {
16
16
  name: string;
17
17
  /** Delivery cadence for the notification */
18
18
  cadence: KardApi.organizations.Cadence;
19
+ /** ID of the content strategy to link this placement to */
20
+ contentStrategyId?: string | undefined;
19
21
  }
@@ -8,6 +8,8 @@ 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 */
12
+ contentStrategyId?: string | undefined;
11
13
  /** When the placement was created (ISO 8601 UTC) */
12
14
  createdAt: string;
13
15
  /** When the placement was last modified (ISO 8601 UTC) */
@@ -9,6 +9,8 @@ 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 */
13
+ contentStrategyId?: string | undefined;
12
14
  /** When the placement was created (ISO 8601 UTC) */
13
15
  createdAt: string;
14
16
  /** When the placement was last modified (ISO 8601 UTC) */
@@ -12,4 +12,6 @@ export interface UpdateMainPageAttributes {
12
12
  name: string;
13
13
  /** Number of available slots (minimum 1) */
14
14
  availableSlots: number;
15
+ /** ID of the content strategy to link this placement to. Omit to clear any existing link (PUT requires the full attribute set, so a missing value unlinks the placement). */
16
+ contentStrategyId?: string | undefined;
15
17
  }
@@ -17,4 +17,6 @@ export interface UpdatePushNotificationAttributes {
17
17
  name: string;
18
18
  /** Delivery cadence for the notification */
19
19
  cadence: KardApi.organizations.Cadence;
20
+ /** ID of the content strategy to link this placement to. Omit to clear any existing link (PUT requires the full attribute set, so a missing value unlinks the placement). */
21
+ contentStrategyId?: string | undefined;
20
22
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "18.1.0";
1
+ export declare const SDK_VERSION = "19.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "18.1.0";
1
+ export const SDK_VERSION = "19.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "18.1.0",
3
+ "version": "19.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -841,7 +841,7 @@ await client.organizations.contentStrategies.create("org-123", {
841
841
  type: "contentStrategy",
842
842
  attributes: {
843
843
  name: "Featured Travel",
844
- filters: ["HIGHEST_CASHBACK", "NEWLY_LIVE"],
844
+ filter: "HIGHEST_CASHBACK",
845
845
  categories: ["Travel"],
846
846
  categoryExclusions: ["Gas"],
847
847
  merchantExclusions: ["merchant-abc"]
@@ -1065,7 +1065,6 @@ await client.organizations.contentStrategies.update("organizationId", "contentSt
1065
1065
  type: "contentStrategy",
1066
1066
  attributes: {
1067
1067
  name: "name",
1068
- filters: ["NEWLY_LIVE", "NEWLY_LIVE"],
1069
1068
  categories: ["Arts & Entertainment", "Arts & Entertainment"],
1070
1069
  categoryExclusions: ["Arts & Entertainment", "Arts & Entertainment"],
1071
1070
  merchantExclusions: ["merchantExclusions", "merchantExclusions"]