@kard-financial/sdk 4.5.0 → 4.6.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 +1 -0
- package/dist/cjs/api/resources/commons/types/NotificationType.js +1 -0
- package/dist/cjs/api/resources/notifications/types/FileResultData.d.ts +6 -0
- package/dist/cjs/api/resources/notifications/types/FileResultData.js +3 -0
- package/dist/cjs/api/resources/notifications/types/NotificationDataUnion.d.ts +4 -1
- package/dist/cjs/api/resources/notifications/types/NotificationPayload.d.ts +15 -0
- package/dist/cjs/api/resources/notifications/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/notifications/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/commons/types/NotificationType.d.mts +1 -0
- package/dist/esm/api/resources/commons/types/NotificationType.mjs +1 -0
- package/dist/esm/api/resources/notifications/types/FileResultData.d.mts +6 -0
- package/dist/esm/api/resources/notifications/types/FileResultData.mjs +2 -0
- package/dist/esm/api/resources/notifications/types/NotificationDataUnion.d.mts +4 -1
- package/dist/esm/api/resources/notifications/types/NotificationPayload.d.mts +15 -0
- package/dist/esm/api/resources/notifications/types/index.d.mts +1 -0
- package/dist/esm/api/resources/notifications/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@kard-financial/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "4.
|
|
47
|
-
"User-Agent": "@kard-financial/sdk/4.
|
|
46
|
+
"X-Fern-SDK-Version": "4.6.0",
|
|
47
|
+
"User-Agent": "@kard-financial/sdk/4.6.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);
|
|
@@ -9,5 +9,6 @@ export declare const NotificationType: {
|
|
|
9
9
|
readonly Location: "location";
|
|
10
10
|
readonly UserOffer: "userOffer";
|
|
11
11
|
readonly AuditUpdate: "auditUpdate";
|
|
12
|
+
readonly FileProcessingResult: "fileProcessingResult";
|
|
12
13
|
};
|
|
13
14
|
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType];
|
|
@@ -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.Offer | KardApi.NotificationDataUnion.Merchant | KardApi.NotificationDataUnion.Location | KardApi.NotificationDataUnion.UserOffer | KardApi.NotificationDataUnion.AuditUpdate;
|
|
2
|
+
export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.Offer | KardApi.NotificationDataUnion.Merchant | KardApi.NotificationDataUnion.Location | KardApi.NotificationDataUnion.UserOffer | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult;
|
|
3
3
|
export declare namespace NotificationDataUnion {
|
|
4
4
|
interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
|
|
5
5
|
type: "earnedRewardApproved";
|
|
@@ -31,4 +31,7 @@ export declare namespace NotificationDataUnion {
|
|
|
31
31
|
interface AuditUpdate extends KardApi.AuditUpdateData {
|
|
32
32
|
type: "auditUpdate";
|
|
33
33
|
}
|
|
34
|
+
interface FileProcessingResult extends KardApi.FileResultData {
|
|
35
|
+
type: "fileProcessingResult";
|
|
36
|
+
}
|
|
34
37
|
}
|
|
@@ -436,8 +436,23 @@ import type * as KardApi from "../../../index.js";
|
|
|
436
436
|
* }
|
|
437
437
|
* }
|
|
438
438
|
* }
|
|
439
|
+
*
|
|
440
|
+
* @example
|
|
441
|
+
* {
|
|
442
|
+
* data: {
|
|
443
|
+
* type: "fileProcessingResult",
|
|
444
|
+
* id: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
445
|
+
* attributes: {
|
|
446
|
+
* fileName: "incomingTxns_2026-06-23.jsonl",
|
|
447
|
+
* lastModified: "2026-06-23T12:00:00Z",
|
|
448
|
+
* sentAt: "2026-06-23T12:05:00Z",
|
|
449
|
+
* downloadUrl: "https://example.com/processed/incomingTxns_2026-06-23.csv"
|
|
450
|
+
* }
|
|
451
|
+
* }
|
|
452
|
+
* }
|
|
439
453
|
*/
|
|
440
454
|
export interface NotificationPayload {
|
|
441
455
|
data: KardApi.NotificationDataUnion;
|
|
442
456
|
meta?: KardApi.NotificationMetadata;
|
|
457
|
+
errors?: KardApi.ErrorObject[];
|
|
443
458
|
}
|
|
@@ -19,6 +19,7 @@ export * from "./EarnedRewardSettledData.js";
|
|
|
19
19
|
export * from "./FailedTransactionAttributes.js";
|
|
20
20
|
export * from "./FailedTransactionData.js";
|
|
21
21
|
export * from "./FailedTransactionRelationships.js";
|
|
22
|
+
export * from "./FileResultData.js";
|
|
22
23
|
export * from "./LocationAddress.js";
|
|
23
24
|
export * from "./LocationCoordinates.js";
|
|
24
25
|
export * from "./LocationStatus.js";
|
|
@@ -35,6 +35,7 @@ __exportStar(require("./EarnedRewardSettledData.js"), exports);
|
|
|
35
35
|
__exportStar(require("./FailedTransactionAttributes.js"), exports);
|
|
36
36
|
__exportStar(require("./FailedTransactionData.js"), exports);
|
|
37
37
|
__exportStar(require("./FailedTransactionRelationships.js"), exports);
|
|
38
|
+
__exportStar(require("./FileResultData.js"), exports);
|
|
38
39
|
__exportStar(require("./LocationAddress.js"), exports);
|
|
39
40
|
__exportStar(require("./LocationCoordinates.js"), exports);
|
|
40
41
|
__exportStar(require("./LocationStatus.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.
|
|
1
|
+
export declare const SDK_VERSION = "4.6.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": "4.
|
|
10
|
-
"User-Agent": "@kard-financial/sdk/4.
|
|
9
|
+
"X-Fern-SDK-Version": "4.6.0",
|
|
10
|
+
"User-Agent": "@kard-financial/sdk/4.6.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);
|
|
@@ -9,5 +9,6 @@ export declare const NotificationType: {
|
|
|
9
9
|
readonly Location: "location";
|
|
10
10
|
readonly UserOffer: "userOffer";
|
|
11
11
|
readonly AuditUpdate: "auditUpdate";
|
|
12
|
+
readonly FileProcessingResult: "fileProcessingResult";
|
|
12
13
|
};
|
|
13
14
|
export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType];
|
|
@@ -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.Offer | KardApi.NotificationDataUnion.Merchant | KardApi.NotificationDataUnion.Location | KardApi.NotificationDataUnion.UserOffer | KardApi.NotificationDataUnion.AuditUpdate;
|
|
2
|
+
export type NotificationDataUnion = KardApi.NotificationDataUnion.EarnedRewardApproved | KardApi.NotificationDataUnion.EarnedRewardSettled | KardApi.NotificationDataUnion.ValidTransaction | KardApi.NotificationDataUnion.FailedTransaction | KardApi.NotificationDataUnion.Clawback | KardApi.NotificationDataUnion.Offer | KardApi.NotificationDataUnion.Merchant | KardApi.NotificationDataUnion.Location | KardApi.NotificationDataUnion.UserOffer | KardApi.NotificationDataUnion.AuditUpdate | KardApi.NotificationDataUnion.FileProcessingResult;
|
|
3
3
|
export declare namespace NotificationDataUnion {
|
|
4
4
|
interface EarnedRewardApproved extends KardApi.EarnedRewardApprovedData {
|
|
5
5
|
type: "earnedRewardApproved";
|
|
@@ -31,4 +31,7 @@ export declare namespace NotificationDataUnion {
|
|
|
31
31
|
interface AuditUpdate extends KardApi.AuditUpdateData {
|
|
32
32
|
type: "auditUpdate";
|
|
33
33
|
}
|
|
34
|
+
interface FileProcessingResult extends KardApi.FileResultData {
|
|
35
|
+
type: "fileProcessingResult";
|
|
36
|
+
}
|
|
34
37
|
}
|
|
@@ -436,8 +436,23 @@ import type * as KardApi from "../../../index.mjs";
|
|
|
436
436
|
* }
|
|
437
437
|
* }
|
|
438
438
|
* }
|
|
439
|
+
*
|
|
440
|
+
* @example
|
|
441
|
+
* {
|
|
442
|
+
* data: {
|
|
443
|
+
* type: "fileProcessingResult",
|
|
444
|
+
* id: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
445
|
+
* attributes: {
|
|
446
|
+
* fileName: "incomingTxns_2026-06-23.jsonl",
|
|
447
|
+
* lastModified: "2026-06-23T12:00:00Z",
|
|
448
|
+
* sentAt: "2026-06-23T12:05:00Z",
|
|
449
|
+
* downloadUrl: "https://example.com/processed/incomingTxns_2026-06-23.csv"
|
|
450
|
+
* }
|
|
451
|
+
* }
|
|
452
|
+
* }
|
|
439
453
|
*/
|
|
440
454
|
export interface NotificationPayload {
|
|
441
455
|
data: KardApi.NotificationDataUnion;
|
|
442
456
|
meta?: KardApi.NotificationMetadata;
|
|
457
|
+
errors?: KardApi.ErrorObject[];
|
|
443
458
|
}
|
|
@@ -19,6 +19,7 @@ export * from "./EarnedRewardSettledData.mjs";
|
|
|
19
19
|
export * from "./FailedTransactionAttributes.mjs";
|
|
20
20
|
export * from "./FailedTransactionData.mjs";
|
|
21
21
|
export * from "./FailedTransactionRelationships.mjs";
|
|
22
|
+
export * from "./FileResultData.mjs";
|
|
22
23
|
export * from "./LocationAddress.mjs";
|
|
23
24
|
export * from "./LocationCoordinates.mjs";
|
|
24
25
|
export * from "./LocationStatus.mjs";
|
|
@@ -19,6 +19,7 @@ export * from "./EarnedRewardSettledData.mjs";
|
|
|
19
19
|
export * from "./FailedTransactionAttributes.mjs";
|
|
20
20
|
export * from "./FailedTransactionData.mjs";
|
|
21
21
|
export * from "./FailedTransactionRelationships.mjs";
|
|
22
|
+
export * from "./FileResultData.mjs";
|
|
22
23
|
export * from "./LocationAddress.mjs";
|
|
23
24
|
export * from "./LocationCoordinates.mjs";
|
|
24
25
|
export * from "./LocationStatus.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.
|
|
1
|
+
export declare const SDK_VERSION = "4.6.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "4.
|
|
1
|
+
export const SDK_VERSION = "4.6.0";
|