@kard-financial/sdk 12.0.0 → 12.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.
Files changed (37) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/transactions/types/CreateFileUploadData.d.ts +1 -1
  3. package/dist/cjs/api/resources/transactions/types/CreateFileUploadUrlResponse.d.ts +2 -2
  4. package/dist/cjs/api/resources/transactions/types/FileUploadType.d.ts +6 -0
  5. package/dist/cjs/api/resources/transactions/types/FileUploadType.js +9 -0
  6. package/dist/cjs/api/resources/transactions/types/FileUploadUrlData.d.ts +1 -1
  7. package/dist/cjs/api/resources/transactions/types/index.d.ts +1 -0
  8. package/dist/cjs/api/resources/transactions/types/index.js +1 -0
  9. package/dist/cjs/api/resources/users/resources/attributions/types/AttributionFilter.d.ts +4 -0
  10. package/dist/cjs/api/resources/users/resources/attributions/types/AttributionFilter.js +3 -0
  11. package/dist/cjs/api/resources/users/resources/attributions/types/AttributionState.d.ts +7 -0
  12. package/dist/cjs/api/resources/users/resources/attributions/types/AttributionState.js +3 -0
  13. package/dist/cjs/api/resources/users/resources/attributions/types/NotificationAttributionAttributes.d.ts +2 -0
  14. package/dist/cjs/api/resources/users/resources/attributions/types/OfferAttributionAttributes.d.ts +2 -0
  15. package/dist/cjs/api/resources/users/resources/attributions/types/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/users/resources/attributions/types/index.js +2 -0
  17. package/dist/cjs/version.d.ts +1 -1
  18. package/dist/cjs/version.js +1 -1
  19. package/dist/esm/BaseClient.mjs +2 -2
  20. package/dist/esm/api/resources/transactions/types/CreateFileUploadData.d.mts +1 -1
  21. package/dist/esm/api/resources/transactions/types/CreateFileUploadUrlResponse.d.mts +2 -2
  22. package/dist/esm/api/resources/transactions/types/FileUploadType.d.mts +6 -0
  23. package/dist/esm/api/resources/transactions/types/FileUploadType.mjs +6 -0
  24. package/dist/esm/api/resources/transactions/types/FileUploadUrlData.d.mts +1 -1
  25. package/dist/esm/api/resources/transactions/types/index.d.mts +1 -0
  26. package/dist/esm/api/resources/transactions/types/index.mjs +1 -0
  27. package/dist/esm/api/resources/users/resources/attributions/types/AttributionFilter.d.mts +4 -0
  28. package/dist/esm/api/resources/users/resources/attributions/types/AttributionFilter.mjs +2 -0
  29. package/dist/esm/api/resources/users/resources/attributions/types/AttributionState.d.mts +7 -0
  30. package/dist/esm/api/resources/users/resources/attributions/types/AttributionState.mjs +2 -0
  31. package/dist/esm/api/resources/users/resources/attributions/types/NotificationAttributionAttributes.d.mts +2 -0
  32. package/dist/esm/api/resources/users/resources/attributions/types/OfferAttributionAttributes.d.mts +2 -0
  33. package/dist/esm/api/resources/users/resources/attributions/types/index.d.mts +2 -0
  34. package/dist/esm/api/resources/users/resources/attributions/types/index.mjs +2 -0
  35. package/dist/esm/version.d.mts +1 -1
  36. package/dist/esm/version.mjs +1 -1
  37. package/package.json +1 -1
@@ -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": "12.0.0",
47
- "User-Agent": "@kard-financial/sdk/12.0.0",
46
+ "X-Fern-SDK-Version": "12.2.0",
47
+ "User-Agent": "@kard-financial/sdk/12.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);
@@ -1,5 +1,5 @@
1
1
  import type * as KardApi from "../../../index.js";
2
2
  export interface CreateFileUploadData {
3
- type: "incomingTransactionsFile";
3
+ type: KardApi.FileUploadType;
4
4
  attributes: KardApi.CreateFileUploadAttributes;
5
5
  }
@@ -3,14 +3,14 @@ import type * as KardApi from "../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * data: [{
6
- * type: "incomingTransactionsFile",
6
+ * type: KardApi.FileUploadType.IncomingTransactionsFile,
7
7
  * id: "2NxKz7TYmqVH8UrjGP1xK3hF2gs",
8
8
  * attributes: {
9
9
  * url: "https://s3.amazonaws.com/bucket/key1?X-Amz-Algorithm=...",
10
10
  * expiresIn: 900
11
11
  * }
12
12
  * }, {
13
- * type: "incomingTransactionsFile",
13
+ * type: KardApi.FileUploadType.IncomingTransactionsFile,
14
14
  * id: "3PqLa8UZnrWI9VskHQ2yL4iG3ht",
15
15
  * attributes: {
16
16
  * url: "https://s3.amazonaws.com/bucket/key2?X-Amz-Algorithm=...",
@@ -0,0 +1,6 @@
1
+ /** Specifies the category of transaction file being uploaded. Use `incomingTransactionsFile` for new, real-time transactions that need to be processed and matched as they arrive. Use `historicalTransactionsFile` for back-filled or retroactive transaction data that covers a past time period. */
2
+ export declare const FileUploadType: {
3
+ readonly IncomingTransactionsFile: "incomingTransactionsFile";
4
+ readonly HistoricalTransactionsFile: "historicalTransactionsFile";
5
+ };
6
+ export type FileUploadType = (typeof FileUploadType)[keyof typeof FileUploadType];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FileUploadType = void 0;
5
+ /** Specifies the category of transaction file being uploaded. Use `incomingTransactionsFile` for new, real-time transactions that need to be processed and matched as they arrive. Use `historicalTransactionsFile` for back-filled or retroactive transaction data that covers a past time period. */
6
+ exports.FileUploadType = {
7
+ IncomingTransactionsFile: "incomingTransactionsFile",
8
+ HistoricalTransactionsFile: "historicalTransactionsFile",
9
+ };
@@ -1,6 +1,6 @@
1
1
  import type * as KardApi from "../../../index.js";
2
2
  export interface FileUploadUrlData {
3
- type: "incomingTransactionsFile";
3
+ type: KardApi.FileUploadType;
4
4
  /** Upload session ID for traceability */
5
5
  id: string;
6
6
  attributes: KardApi.FileUploadUrlAttributes;
@@ -17,6 +17,7 @@ export * from "./CreateFileUploadData.js";
17
17
  export * from "./CreateFileUploadRequestBody.js";
18
18
  export * from "./CreateFileUploadUrlResponse.js";
19
19
  export * from "./DirectionType.js";
20
+ export * from "./FileUploadType.js";
20
21
  export * from "./FileUploadUrlAttributes.js";
21
22
  export * from "./FileUploadUrlData.js";
22
23
  export * from "./FraudulentTransactionAttributes.js";
@@ -33,6 +33,7 @@ __exportStar(require("./CreateFileUploadData.js"), exports);
33
33
  __exportStar(require("./CreateFileUploadRequestBody.js"), exports);
34
34
  __exportStar(require("./CreateFileUploadUrlResponse.js"), exports);
35
35
  __exportStar(require("./DirectionType.js"), exports);
36
+ __exportStar(require("./FileUploadType.js"), exports);
36
37
  __exportStar(require("./FileUploadUrlAttributes.js"), exports);
37
38
  __exportStar(require("./FileUploadUrlData.js"), exports);
38
39
  __exportStar(require("./FraudulentTransactionAttributes.js"), exports);
@@ -0,0 +1,4 @@
1
+ export interface AttributionFilter {
2
+ name: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ export interface AttributionState {
3
+ /** The position of the offer in the list shown to the user (1-indexed) */
4
+ rank?: number;
5
+ /** The active filters when the user saw the offer */
6
+ filters?: KardApi.users.AttributionFilter[];
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,4 +9,6 @@ export interface NotificationAttributionAttributes {
9
9
  * Must be in ISO 8601 format (e.g., "2025-01-01T00:00:00Z").
10
10
  */
11
11
  eventDate: string;
12
+ /** Placement context for the attribution event */
13
+ state?: KardApi.users.AttributionState;
12
14
  }
@@ -9,4 +9,6 @@ export interface OfferAttributionAttributes {
9
9
  * Must be in ISO 8601 format (e.g., "2025-01-01T00:00:00Z").
10
10
  */
11
11
  eventDate: string;
12
+ /** Placement context for the attribution event */
13
+ state?: KardApi.users.AttributionState;
12
14
  }
@@ -3,6 +3,8 @@ export * from "./ActivateOfferIncludeOption.js";
3
3
  export * from "./ActivateOfferResponse.js";
4
4
  export * from "./ActivateOfferResponseAttributes.js";
5
5
  export * from "./ActivateOfferResponseData.js";
6
+ export * from "./AttributionFilter.js";
7
+ export * from "./AttributionState.js";
6
8
  export * from "./BoostOfferIncluded.js";
7
9
  export * from "./BoostOfferIncludeOption.js";
8
10
  export * from "./BoostOfferResponse.js";
@@ -19,6 +19,8 @@ __exportStar(require("./ActivateOfferIncludeOption.js"), exports);
19
19
  __exportStar(require("./ActivateOfferResponse.js"), exports);
20
20
  __exportStar(require("./ActivateOfferResponseAttributes.js"), exports);
21
21
  __exportStar(require("./ActivateOfferResponseData.js"), exports);
22
+ __exportStar(require("./AttributionFilter.js"), exports);
23
+ __exportStar(require("./AttributionState.js"), exports);
22
24
  __exportStar(require("./BoostOfferIncluded.js"), exports);
23
25
  __exportStar(require("./BoostOfferIncludeOption.js"), exports);
24
26
  __exportStar(require("./BoostOfferResponse.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "12.0.0";
1
+ export declare const SDK_VERSION = "12.2.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 = "12.0.0";
4
+ exports.SDK_VERSION = "12.2.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": "12.0.0",
10
- "User-Agent": "@kard-financial/sdk/12.0.0",
9
+ "X-Fern-SDK-Version": "12.2.0",
10
+ "User-Agent": "@kard-financial/sdk/12.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);
@@ -1,5 +1,5 @@
1
1
  import type * as KardApi from "../../../index.mjs";
2
2
  export interface CreateFileUploadData {
3
- type: "incomingTransactionsFile";
3
+ type: KardApi.FileUploadType;
4
4
  attributes: KardApi.CreateFileUploadAttributes;
5
5
  }
@@ -3,14 +3,14 @@ import type * as KardApi from "../../../index.mjs";
3
3
  * @example
4
4
  * {
5
5
  * data: [{
6
- * type: "incomingTransactionsFile",
6
+ * type: KardApi.FileUploadType.IncomingTransactionsFile,
7
7
  * id: "2NxKz7TYmqVH8UrjGP1xK3hF2gs",
8
8
  * attributes: {
9
9
  * url: "https://s3.amazonaws.com/bucket/key1?X-Amz-Algorithm=...",
10
10
  * expiresIn: 900
11
11
  * }
12
12
  * }, {
13
- * type: "incomingTransactionsFile",
13
+ * type: KardApi.FileUploadType.IncomingTransactionsFile,
14
14
  * id: "3PqLa8UZnrWI9VskHQ2yL4iG3ht",
15
15
  * attributes: {
16
16
  * url: "https://s3.amazonaws.com/bucket/key2?X-Amz-Algorithm=...",
@@ -0,0 +1,6 @@
1
+ /** Specifies the category of transaction file being uploaded. Use `incomingTransactionsFile` for new, real-time transactions that need to be processed and matched as they arrive. Use `historicalTransactionsFile` for back-filled or retroactive transaction data that covers a past time period. */
2
+ export declare const FileUploadType: {
3
+ readonly IncomingTransactionsFile: "incomingTransactionsFile";
4
+ readonly HistoricalTransactionsFile: "historicalTransactionsFile";
5
+ };
6
+ export type FileUploadType = (typeof FileUploadType)[keyof typeof FileUploadType];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ /** Specifies the category of transaction file being uploaded. Use `incomingTransactionsFile` for new, real-time transactions that need to be processed and matched as they arrive. Use `historicalTransactionsFile` for back-filled or retroactive transaction data that covers a past time period. */
3
+ export const FileUploadType = {
4
+ IncomingTransactionsFile: "incomingTransactionsFile",
5
+ HistoricalTransactionsFile: "historicalTransactionsFile",
6
+ };
@@ -1,6 +1,6 @@
1
1
  import type * as KardApi from "../../../index.mjs";
2
2
  export interface FileUploadUrlData {
3
- type: "incomingTransactionsFile";
3
+ type: KardApi.FileUploadType;
4
4
  /** Upload session ID for traceability */
5
5
  id: string;
6
6
  attributes: KardApi.FileUploadUrlAttributes;
@@ -17,6 +17,7 @@ export * from "./CreateFileUploadData.mjs";
17
17
  export * from "./CreateFileUploadRequestBody.mjs";
18
18
  export * from "./CreateFileUploadUrlResponse.mjs";
19
19
  export * from "./DirectionType.mjs";
20
+ export * from "./FileUploadType.mjs";
20
21
  export * from "./FileUploadUrlAttributes.mjs";
21
22
  export * from "./FileUploadUrlData.mjs";
22
23
  export * from "./FraudulentTransactionAttributes.mjs";
@@ -17,6 +17,7 @@ export * from "./CreateFileUploadData.mjs";
17
17
  export * from "./CreateFileUploadRequestBody.mjs";
18
18
  export * from "./CreateFileUploadUrlResponse.mjs";
19
19
  export * from "./DirectionType.mjs";
20
+ export * from "./FileUploadType.mjs";
20
21
  export * from "./FileUploadUrlAttributes.mjs";
21
22
  export * from "./FileUploadUrlData.mjs";
22
23
  export * from "./FraudulentTransactionAttributes.mjs";
@@ -0,0 +1,4 @@
1
+ export interface AttributionFilter {
2
+ name: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ export interface AttributionState {
3
+ /** The position of the offer in the list shown to the user (1-indexed) */
4
+ rank?: number;
5
+ /** The active filters when the user saw the offer */
6
+ filters?: KardApi.users.AttributionFilter[];
7
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -9,4 +9,6 @@ export interface NotificationAttributionAttributes {
9
9
  * Must be in ISO 8601 format (e.g., "2025-01-01T00:00:00Z").
10
10
  */
11
11
  eventDate: string;
12
+ /** Placement context for the attribution event */
13
+ state?: KardApi.users.AttributionState;
12
14
  }
@@ -9,4 +9,6 @@ export interface OfferAttributionAttributes {
9
9
  * Must be in ISO 8601 format (e.g., "2025-01-01T00:00:00Z").
10
10
  */
11
11
  eventDate: string;
12
+ /** Placement context for the attribution event */
13
+ state?: KardApi.users.AttributionState;
12
14
  }
@@ -3,6 +3,8 @@ export * from "./ActivateOfferIncludeOption.mjs";
3
3
  export * from "./ActivateOfferResponse.mjs";
4
4
  export * from "./ActivateOfferResponseAttributes.mjs";
5
5
  export * from "./ActivateOfferResponseData.mjs";
6
+ export * from "./AttributionFilter.mjs";
7
+ export * from "./AttributionState.mjs";
6
8
  export * from "./BoostOfferIncluded.mjs";
7
9
  export * from "./BoostOfferIncludeOption.mjs";
8
10
  export * from "./BoostOfferResponse.mjs";
@@ -3,6 +3,8 @@ export * from "./ActivateOfferIncludeOption.mjs";
3
3
  export * from "./ActivateOfferResponse.mjs";
4
4
  export * from "./ActivateOfferResponseAttributes.mjs";
5
5
  export * from "./ActivateOfferResponseData.mjs";
6
+ export * from "./AttributionFilter.mjs";
7
+ export * from "./AttributionState.mjs";
6
8
  export * from "./BoostOfferIncluded.mjs";
7
9
  export * from "./BoostOfferIncludeOption.mjs";
8
10
  export * from "./BoostOfferResponse.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "12.0.0";
1
+ export declare const SDK_VERSION = "12.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "12.0.0";
1
+ export const SDK_VERSION = "12.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "12.0.0",
3
+ "version": "12.2.0",
4
4
  "private": false,
5
5
  "repository": "github:KardFinancial/kard-node-sdk",
6
6
  "type": "commonjs",