@kard-financial/sdk 28.1.0 → 28.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/commons/types/NotificationType.d.ts +2 -0
- package/dist/cjs/api/resources/commons/types/NotificationType.js +2 -0
- package/dist/cjs/api/resources/notifications/types/EmailNotificationPlacementFileAttributes.d.ts +12 -0
- package/dist/cjs/api/resources/notifications/types/EmailNotificationPlacementFileAttributes.js +3 -0
- package/dist/cjs/api/resources/notifications/types/EmailNotificationPlacementFileData.d.ts +7 -0
- package/dist/cjs/api/resources/notifications/types/EmailNotificationPlacementFileData.js +3 -0
- package/dist/cjs/api/resources/notifications/types/EmailNotificationPlacementFileRelationships.d.ts +5 -0
- package/dist/cjs/api/resources/notifications/types/EmailNotificationPlacementFileRelationships.js +3 -0
- package/dist/cjs/api/resources/notifications/types/NotificationDataUnion.d.ts +7 -1
- package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +57 -0
- package/dist/cjs/api/resources/notifications/types/PushNotificationPlacementFileAttributes.d.ts +10 -0
- package/dist/cjs/api/resources/notifications/types/PushNotificationPlacementFileAttributes.js +3 -0
- package/dist/cjs/api/resources/notifications/types/PushNotificationPlacementFileData.d.ts +7 -0
- package/dist/cjs/api/resources/notifications/types/PushNotificationPlacementFileData.js +3 -0
- package/dist/cjs/api/resources/notifications/types/PushNotificationPlacementFileRelationships.d.ts +5 -0
- package/dist/cjs/api/resources/notifications/types/PushNotificationPlacementFileRelationships.js +3 -0
- package/dist/cjs/api/resources/notifications/types/index.d.ts +6 -0
- package/dist/cjs/api/resources/notifications/types/index.js +6 -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/commons/types/NotificationType.d.mts +2 -0
- package/dist/esm/api/resources/commons/types/NotificationType.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/EmailNotificationPlacementFileAttributes.d.mts +12 -0
- package/dist/esm/api/resources/notifications/types/EmailNotificationPlacementFileAttributes.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/EmailNotificationPlacementFileData.d.mts +7 -0
- package/dist/esm/api/resources/notifications/types/EmailNotificationPlacementFileData.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/EmailNotificationPlacementFileRelationships.d.mts +5 -0
- package/dist/esm/api/resources/notifications/types/EmailNotificationPlacementFileRelationships.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/NotificationDataUnion.d.mts +7 -1
- package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +57 -0
- package/dist/esm/api/resources/notifications/types/PushNotificationPlacementFileAttributes.d.mts +10 -0
- package/dist/esm/api/resources/notifications/types/PushNotificationPlacementFileAttributes.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/PushNotificationPlacementFileData.d.mts +7 -0
- package/dist/esm/api/resources/notifications/types/PushNotificationPlacementFileData.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/PushNotificationPlacementFileRelationships.d.mts +5 -0
- package/dist/esm/api/resources/notifications/types/PushNotificationPlacementFileRelationships.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/index.d.mts +6 -0
- package/dist/esm/api/resources/notifications/types/index.mjs +6 -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": "28.
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/28.
|
|
46
|
+
"X-Fern-SDK-Version": "28.2.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/28.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);
|
|
@@ -6,5 +6,7 @@ export declare const NotificationType: {
|
|
|
6
6
|
readonly Clawback: "clawback";
|
|
7
7
|
readonly AuditUpdate: "auditUpdate";
|
|
8
8
|
readonly FileProcessingResult: "fileProcessingResult";
|
|
9
|
+
readonly PushNotificationPlacementFile: "pushNotificationPlacementFile";
|
|
10
|
+
readonly EmailNotificationPlacementFile: "emailNotificationPlacementFile";
|
|
9
11
|
};
|
|
10
12
|
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType];
|
|
@@ -10,4 +10,6 @@ exports.NotificationType = {
|
|
|
10
10
|
Clawback: "clawback",
|
|
11
11
|
AuditUpdate: "auditUpdate",
|
|
12
12
|
FileProcessingResult: "fileProcessingResult",
|
|
13
|
+
PushNotificationPlacementFile: "pushNotificationPlacementFile",
|
|
14
|
+
EmailNotificationPlacementFile: "emailNotificationPlacementFile",
|
|
13
15
|
};
|
package/dist/cjs/api/resources/notifications/types/EmailNotificationPlacementFileAttributes.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface EmailNotificationPlacementFileAttributes {
|
|
2
|
+
/** The display name of the placement */
|
|
3
|
+
name: string;
|
|
4
|
+
/** The issuer organization ID the placement belongs to */
|
|
5
|
+
organizationId: string;
|
|
6
|
+
/** The number of offer slots available in the placement */
|
|
7
|
+
availableSlots: number;
|
|
8
|
+
/** The delivery cadence of the placement (e.g. MONTHLY) */
|
|
9
|
+
cadence: string;
|
|
10
|
+
/** Presigned URL to download the generated placement file (gzipped JSONL) */
|
|
11
|
+
downloadUrl: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as KardApi from "../../../index.js";
|
|
2
|
+
export interface EmailNotificationPlacementFileData {
|
|
3
|
+
/** The placement ID, also used as the notification resource ID */
|
|
4
|
+
id: string;
|
|
5
|
+
attributes: KardApi.EmailNotificationPlacementFileAttributes;
|
|
6
|
+
relationships: KardApi.EmailNotificationPlacementFileRelationships;
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as KardApi from "../../../index.js";
|
|
2
|
-
export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult;
|
|
2
|
+
export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult | KardApi.NotificationDataUnion.PushNotificationPlacementFile | KardApi.NotificationDataUnion.EmailNotificationPlacementFile;
|
|
3
3
|
export declare namespace NotificationDataUnion {
|
|
4
4
|
interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
|
|
5
5
|
type: "earnedRewardApproved";
|
|
@@ -22,4 +22,10 @@ export declare namespace NotificationDataUnion {
|
|
|
22
22
|
interface FileProcessingResult extends KardApi.FileResultData {
|
|
23
23
|
type: "fileProcessingResult";
|
|
24
24
|
}
|
|
25
|
+
interface PushNotificationPlacementFile extends KardApi.PushNotificationPlacementFileData {
|
|
26
|
+
type: "pushNotificationPlacementFile";
|
|
27
|
+
}
|
|
28
|
+
interface EmailNotificationPlacementFile extends KardApi.EmailNotificationPlacementFileData {
|
|
29
|
+
type: "emailNotificationPlacementFile";
|
|
30
|
+
}
|
|
25
31
|
}
|
|
@@ -269,6 +269,63 @@ import type * as KardApi from "../../../index.js";
|
|
|
269
269
|
* }
|
|
270
270
|
* }
|
|
271
271
|
* }
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* {
|
|
275
|
+
* data: {
|
|
276
|
+
* type: "pushNotificationPlacementFile",
|
|
277
|
+
* id: "669e3823-1688-4d6e-b46e-cf1999d4a25d",
|
|
278
|
+
* attributes: {
|
|
279
|
+
* placementName: "Top gas cashback",
|
|
280
|
+
* availableSlots: 3,
|
|
281
|
+
* cadence: "WEEKLY",
|
|
282
|
+
* downloadUrl: "https://example.com/placements/669e3823-1688-4d6e-b46e-cf1999d4a25d.jsonl.gz"
|
|
283
|
+
* },
|
|
284
|
+
* relationships: {
|
|
285
|
+
* placement: {
|
|
286
|
+
* data: {
|
|
287
|
+
* type: "placement",
|
|
288
|
+
* id: "669e3823-1688-4d6e-b46e-cf1999d4a25d"
|
|
289
|
+
* }
|
|
290
|
+
* },
|
|
291
|
+
* contentStrategy: {
|
|
292
|
+
* data: {
|
|
293
|
+
* type: "contentStrategy",
|
|
294
|
+
* id: "8df56d4f-0dbf-47ab-b081-0c6534dddd34"
|
|
295
|
+
* }
|
|
296
|
+
* }
|
|
297
|
+
* }
|
|
298
|
+
* }
|
|
299
|
+
* }
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* {
|
|
303
|
+
* data: {
|
|
304
|
+
* type: "emailNotificationPlacementFile",
|
|
305
|
+
* id: "0192a1b2-c3d4-7e8f-9012-3456789abc01",
|
|
306
|
+
* attributes: {
|
|
307
|
+
* name: "Monthly Top Cashback Email",
|
|
308
|
+
* organizationId: "00004321",
|
|
309
|
+
* availableSlots: 3,
|
|
310
|
+
* cadence: "MONTHLY",
|
|
311
|
+
* downloadUrl: "https://example.com/placements/0192a1b2-c3d4-7e8f-9012-3456789abc01.jsonl.gz"
|
|
312
|
+
* },
|
|
313
|
+
* relationships: {
|
|
314
|
+
* placement: {
|
|
315
|
+
* data: {
|
|
316
|
+
* type: "placement",
|
|
317
|
+
* id: "0192a1b2-c3d4-7e8f-9012-aaaa5678cccc"
|
|
318
|
+
* }
|
|
319
|
+
* },
|
|
320
|
+
* contentStrategy: {
|
|
321
|
+
* data: {
|
|
322
|
+
* type: "contentStrategy",
|
|
323
|
+
* id: "8df56d4f-0dbf-47ab-b081-0c6534dddd34"
|
|
324
|
+
* }
|
|
325
|
+
* }
|
|
326
|
+
* }
|
|
327
|
+
* }
|
|
328
|
+
* }
|
|
272
329
|
*/
|
|
273
330
|
export interface NotificationPayload {
|
|
274
331
|
data: KardApi.NotificationDataUnion;
|
package/dist/cjs/api/resources/notifications/types/PushNotificationPlacementFileAttributes.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface PushNotificationPlacementFileAttributes {
|
|
2
|
+
/** The display name of the placement */
|
|
3
|
+
placementName: string;
|
|
4
|
+
/** The number of offer slots available in the placement */
|
|
5
|
+
availableSlots: number;
|
|
6
|
+
/** The delivery cadence of the placement (e.g. WEEKLY) */
|
|
7
|
+
cadence: string;
|
|
8
|
+
/** Presigned URL to download the generated placement file (gzipped JSONL) */
|
|
9
|
+
downloadUrl: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as KardApi from "../../../index.js";
|
|
2
|
+
export interface PushNotificationPlacementFileData {
|
|
3
|
+
/** The placement ID, also used as the notification resource ID */
|
|
4
|
+
id: string;
|
|
5
|
+
attributes: KardApi.PushNotificationPlacementFileAttributes;
|
|
6
|
+
relationships: KardApi.PushNotificationPlacementFileRelationships;
|
|
7
|
+
}
|
|
@@ -6,6 +6,9 @@ export * from "./EarnedRewardApprovedData.js";
|
|
|
6
6
|
export * from "./EarnedRewardRelationships.js";
|
|
7
7
|
export * from "./EarnedRewardSettledAttributes.js";
|
|
8
8
|
export * from "./EarnedRewardSettledData.js";
|
|
9
|
+
export * from "./EmailNotificationPlacementFileAttributes.js";
|
|
10
|
+
export * from "./EmailNotificationPlacementFileData.js";
|
|
11
|
+
export * from "./EmailNotificationPlacementFileRelationships.js";
|
|
9
12
|
export * from "./FailedTransactionAttributes.js";
|
|
10
13
|
export * from "./FailedTransactionData.js";
|
|
11
14
|
export * from "./FailedTransactionRelationships.js";
|
|
@@ -13,6 +16,9 @@ export * from "./FileResultData.js";
|
|
|
13
16
|
export * from "./NotificationDataUnion.js";
|
|
14
17
|
export * from "./NotificationMetadata.js";
|
|
15
18
|
export * from "./NotificationPayload.js";
|
|
19
|
+
export * from "./PushNotificationPlacementFileAttributes.js";
|
|
20
|
+
export * from "./PushNotificationPlacementFileData.js";
|
|
21
|
+
export * from "./PushNotificationPlacementFileRelationships.js";
|
|
16
22
|
export * from "./RewardNotificationAttributes.js";
|
|
17
23
|
export * from "./TransactionRelationships.js";
|
|
18
24
|
export * from "./ValidTransactionAttributes.js";
|
|
@@ -22,6 +22,9 @@ __exportStar(require("./EarnedRewardApprovedData.js"), exports);
|
|
|
22
22
|
__exportStar(require("./EarnedRewardRelationships.js"), exports);
|
|
23
23
|
__exportStar(require("./EarnedRewardSettledAttributes.js"), exports);
|
|
24
24
|
__exportStar(require("./EarnedRewardSettledData.js"), exports);
|
|
25
|
+
__exportStar(require("./EmailNotificationPlacementFileAttributes.js"), exports);
|
|
26
|
+
__exportStar(require("./EmailNotificationPlacementFileData.js"), exports);
|
|
27
|
+
__exportStar(require("./EmailNotificationPlacementFileRelationships.js"), exports);
|
|
25
28
|
__exportStar(require("./FailedTransactionAttributes.js"), exports);
|
|
26
29
|
__exportStar(require("./FailedTransactionData.js"), exports);
|
|
27
30
|
__exportStar(require("./FailedTransactionRelationships.js"), exports);
|
|
@@ -29,6 +32,9 @@ __exportStar(require("./FileResultData.js"), exports);
|
|
|
29
32
|
__exportStar(require("./NotificationDataUnion.js"), exports);
|
|
30
33
|
__exportStar(require("./NotificationMetadata.js"), exports);
|
|
31
34
|
__exportStar(require("./NotificationPayload.js"), exports);
|
|
35
|
+
__exportStar(require("./PushNotificationPlacementFileAttributes.js"), exports);
|
|
36
|
+
__exportStar(require("./PushNotificationPlacementFileData.js"), exports);
|
|
37
|
+
__exportStar(require("./PushNotificationPlacementFileRelationships.js"), exports);
|
|
32
38
|
__exportStar(require("./RewardNotificationAttributes.js"), exports);
|
|
33
39
|
__exportStar(require("./TransactionRelationships.js"), exports);
|
|
34
40
|
__exportStar(require("./ValidTransactionAttributes.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "28.
|
|
1
|
+
export declare const SDK_VERSION = "28.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": "28.
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/28.
|
|
9
|
+
"X-Fern-SDK-Version": "28.2.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/28.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);
|
|
@@ -6,5 +6,7 @@ export declare const NotificationType: {
|
|
|
6
6
|
readonly Clawback: "clawback";
|
|
7
7
|
readonly AuditUpdate: "auditUpdate";
|
|
8
8
|
readonly FileProcessingResult: "fileProcessingResult";
|
|
9
|
+
readonly PushNotificationPlacementFile: "pushNotificationPlacementFile";
|
|
10
|
+
readonly EmailNotificationPlacementFile: "emailNotificationPlacementFile";
|
|
9
11
|
};
|
|
10
12
|
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType];
|
|
@@ -7,4 +7,6 @@ export const NotificationType = {
|
|
|
7
7
|
Clawback: "clawback",
|
|
8
8
|
AuditUpdate: "auditUpdate",
|
|
9
9
|
FileProcessingResult: "fileProcessingResult",
|
|
10
|
+
PushNotificationPlacementFile: "pushNotificationPlacementFile",
|
|
11
|
+
EmailNotificationPlacementFile: "emailNotificationPlacementFile",
|
|
10
12
|
};
|
package/dist/esm/api/resources/notifications/types/EmailNotificationPlacementFileAttributes.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface EmailNotificationPlacementFileAttributes {
|
|
2
|
+
/** The display name of the placement */
|
|
3
|
+
name: string;
|
|
4
|
+
/** The issuer organization ID the placement belongs to */
|
|
5
|
+
organizationId: string;
|
|
6
|
+
/** The number of offer slots available in the placement */
|
|
7
|
+
availableSlots: number;
|
|
8
|
+
/** The delivery cadence of the placement (e.g. MONTHLY) */
|
|
9
|
+
cadence: string;
|
|
10
|
+
/** Presigned URL to download the generated placement file (gzipped JSONL) */
|
|
11
|
+
downloadUrl: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as KardApi from "../../../index.mjs";
|
|
2
|
+
export interface EmailNotificationPlacementFileData {
|
|
3
|
+
/** The placement ID, also used as the notification resource ID */
|
|
4
|
+
id: string;
|
|
5
|
+
attributes: KardApi.EmailNotificationPlacementFileAttributes;
|
|
6
|
+
relationships: KardApi.EmailNotificationPlacementFileRelationships;
|
|
7
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as KardApi from "../../../index.mjs";
|
|
2
|
-
export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult;
|
|
2
|
+
export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult | KardApi.NotificationDataUnion.PushNotificationPlacementFile | KardApi.NotificationDataUnion.EmailNotificationPlacementFile;
|
|
3
3
|
export declare namespace NotificationDataUnion {
|
|
4
4
|
interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
|
|
5
5
|
type: "earnedRewardApproved";
|
|
@@ -22,4 +22,10 @@ export declare namespace NotificationDataUnion {
|
|
|
22
22
|
interface FileProcessingResult extends KardApi.FileResultData {
|
|
23
23
|
type: "fileProcessingResult";
|
|
24
24
|
}
|
|
25
|
+
interface PushNotificationPlacementFile extends KardApi.PushNotificationPlacementFileData {
|
|
26
|
+
type: "pushNotificationPlacementFile";
|
|
27
|
+
}
|
|
28
|
+
interface EmailNotificationPlacementFile extends KardApi.EmailNotificationPlacementFileData {
|
|
29
|
+
type: "emailNotificationPlacementFile";
|
|
30
|
+
}
|
|
25
31
|
}
|
|
@@ -269,6 +269,63 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
269
269
|
* }
|
|
270
270
|
* }
|
|
271
271
|
* }
|
|
272
|
+
*
|
|
273
|
+
* @example
|
|
274
|
+
* {
|
|
275
|
+
* data: {
|
|
276
|
+
* type: "pushNotificationPlacementFile",
|
|
277
|
+
* id: "669e3823-1688-4d6e-b46e-cf1999d4a25d",
|
|
278
|
+
* attributes: {
|
|
279
|
+
* placementName: "Top gas cashback",
|
|
280
|
+
* availableSlots: 3,
|
|
281
|
+
* cadence: "WEEKLY",
|
|
282
|
+
* downloadUrl: "https://example.com/placements/669e3823-1688-4d6e-b46e-cf1999d4a25d.jsonl.gz"
|
|
283
|
+
* },
|
|
284
|
+
* relationships: {
|
|
285
|
+
* placement: {
|
|
286
|
+
* data: {
|
|
287
|
+
* type: "placement",
|
|
288
|
+
* id: "669e3823-1688-4d6e-b46e-cf1999d4a25d"
|
|
289
|
+
* }
|
|
290
|
+
* },
|
|
291
|
+
* contentStrategy: {
|
|
292
|
+
* data: {
|
|
293
|
+
* type: "contentStrategy",
|
|
294
|
+
* id: "8df56d4f-0dbf-47ab-b081-0c6534dddd34"
|
|
295
|
+
* }
|
|
296
|
+
* }
|
|
297
|
+
* }
|
|
298
|
+
* }
|
|
299
|
+
* }
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* {
|
|
303
|
+
* data: {
|
|
304
|
+
* type: "emailNotificationPlacementFile",
|
|
305
|
+
* id: "0192a1b2-c3d4-7e8f-9012-3456789abc01",
|
|
306
|
+
* attributes: {
|
|
307
|
+
* name: "Monthly Top Cashback Email",
|
|
308
|
+
* organizationId: "00004321",
|
|
309
|
+
* availableSlots: 3,
|
|
310
|
+
* cadence: "MONTHLY",
|
|
311
|
+
* downloadUrl: "https://example.com/placements/0192a1b2-c3d4-7e8f-9012-3456789abc01.jsonl.gz"
|
|
312
|
+
* },
|
|
313
|
+
* relationships: {
|
|
314
|
+
* placement: {
|
|
315
|
+
* data: {
|
|
316
|
+
* type: "placement",
|
|
317
|
+
* id: "0192a1b2-c3d4-7e8f-9012-aaaa5678cccc"
|
|
318
|
+
* }
|
|
319
|
+
* },
|
|
320
|
+
* contentStrategy: {
|
|
321
|
+
* data: {
|
|
322
|
+
* type: "contentStrategy",
|
|
323
|
+
* id: "8df56d4f-0dbf-47ab-b081-0c6534dddd34"
|
|
324
|
+
* }
|
|
325
|
+
* }
|
|
326
|
+
* }
|
|
327
|
+
* }
|
|
328
|
+
* }
|
|
272
329
|
*/
|
|
273
330
|
export interface NotificationPayload {
|
|
274
331
|
data: KardApi.NotificationDataUnion;
|
package/dist/esm/api/resources/notifications/types/PushNotificationPlacementFileAttributes.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface PushNotificationPlacementFileAttributes {
|
|
2
|
+
/** The display name of the placement */
|
|
3
|
+
placementName: string;
|
|
4
|
+
/** The number of offer slots available in the placement */
|
|
5
|
+
availableSlots: number;
|
|
6
|
+
/** The delivery cadence of the placement (e.g. WEEKLY) */
|
|
7
|
+
cadence: string;
|
|
8
|
+
/** Presigned URL to download the generated placement file (gzipped JSONL) */
|
|
9
|
+
downloadUrl: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as KardApi from "../../../index.mjs";
|
|
2
|
+
export interface PushNotificationPlacementFileData {
|
|
3
|
+
/** The placement ID, also used as the notification resource ID */
|
|
4
|
+
id: string;
|
|
5
|
+
attributes: KardApi.PushNotificationPlacementFileAttributes;
|
|
6
|
+
relationships: KardApi.PushNotificationPlacementFileRelationships;
|
|
7
|
+
}
|
|
@@ -6,6 +6,9 @@ export * from "./EarnedRewardApprovedData.mjs";
|
|
|
6
6
|
export * from "./EarnedRewardRelationships.mjs";
|
|
7
7
|
export * from "./EarnedRewardSettledAttributes.mjs";
|
|
8
8
|
export * from "./EarnedRewardSettledData.mjs";
|
|
9
|
+
export * from "./EmailNotificationPlacementFileAttributes.mjs";
|
|
10
|
+
export * from "./EmailNotificationPlacementFileData.mjs";
|
|
11
|
+
export * from "./EmailNotificationPlacementFileRelationships.mjs";
|
|
9
12
|
export * from "./FailedTransactionAttributes.mjs";
|
|
10
13
|
export * from "./FailedTransactionData.mjs";
|
|
11
14
|
export * from "./FailedTransactionRelationships.mjs";
|
|
@@ -13,6 +16,9 @@ export * from "./FileResultData.mjs";
|
|
|
13
16
|
export * from "./NotificationDataUnion.mjs";
|
|
14
17
|
export * from "./NotificationMetadata.mjs";
|
|
15
18
|
export * from "./NotificationPayload.mjs";
|
|
19
|
+
export * from "./PushNotificationPlacementFileAttributes.mjs";
|
|
20
|
+
export * from "./PushNotificationPlacementFileData.mjs";
|
|
21
|
+
export * from "./PushNotificationPlacementFileRelationships.mjs";
|
|
16
22
|
export * from "./RewardNotificationAttributes.mjs";
|
|
17
23
|
export * from "./TransactionRelationships.mjs";
|
|
18
24
|
export * from "./ValidTransactionAttributes.mjs";
|
|
@@ -6,6 +6,9 @@ export * from "./EarnedRewardApprovedData.mjs";
|
|
|
6
6
|
export * from "./EarnedRewardRelationships.mjs";
|
|
7
7
|
export * from "./EarnedRewardSettledAttributes.mjs";
|
|
8
8
|
export * from "./EarnedRewardSettledData.mjs";
|
|
9
|
+
export * from "./EmailNotificationPlacementFileAttributes.mjs";
|
|
10
|
+
export * from "./EmailNotificationPlacementFileData.mjs";
|
|
11
|
+
export * from "./EmailNotificationPlacementFileRelationships.mjs";
|
|
9
12
|
export * from "./FailedTransactionAttributes.mjs";
|
|
10
13
|
export * from "./FailedTransactionData.mjs";
|
|
11
14
|
export * from "./FailedTransactionRelationships.mjs";
|
|
@@ -13,6 +16,9 @@ export * from "./FileResultData.mjs";
|
|
|
13
16
|
export * from "./NotificationDataUnion.mjs";
|
|
14
17
|
export * from "./NotificationMetadata.mjs";
|
|
15
18
|
export * from "./NotificationPayload.mjs";
|
|
19
|
+
export * from "./PushNotificationPlacementFileAttributes.mjs";
|
|
20
|
+
export * from "./PushNotificationPlacementFileData.mjs";
|
|
21
|
+
export * from "./PushNotificationPlacementFileRelationships.mjs";
|
|
16
22
|
export * from "./RewardNotificationAttributes.mjs";
|
|
17
23
|
export * from "./TransactionRelationships.mjs";
|
|
18
24
|
export * from "./ValidTransactionAttributes.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "28.
|
|
1
|
+
export declare const SDK_VERSION = "28.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "28.
|
|
1
|
+
export const SDK_VERSION = "28.2.0";
|