@kard-financial/sdk 14.3.0 → 14.4.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 (23) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/transactions/types/GetEarnedRewardsResponse.d.ts +16 -2
  3. package/dist/cjs/api/resources/transactions/types/MerchantAsset.d.ts +9 -0
  4. package/dist/cjs/api/resources/transactions/types/MerchantAsset.js +3 -0
  5. package/dist/cjs/api/resources/transactions/types/MerchantAssetType.d.ts +5 -0
  6. package/dist/cjs/api/resources/transactions/types/MerchantAssetType.js +8 -0
  7. package/dist/cjs/api/resources/transactions/types/TransactionMerchantAttributes.d.ts +7 -0
  8. package/dist/cjs/api/resources/transactions/types/index.d.ts +2 -0
  9. package/dist/cjs/api/resources/transactions/types/index.js +2 -0
  10. package/dist/cjs/version.d.ts +1 -1
  11. package/dist/cjs/version.js +1 -1
  12. package/dist/esm/BaseClient.mjs +2 -2
  13. package/dist/esm/api/resources/transactions/types/GetEarnedRewardsResponse.d.mts +16 -2
  14. package/dist/esm/api/resources/transactions/types/MerchantAsset.d.mts +9 -0
  15. package/dist/esm/api/resources/transactions/types/MerchantAsset.mjs +2 -0
  16. package/dist/esm/api/resources/transactions/types/MerchantAssetType.d.mts +5 -0
  17. package/dist/esm/api/resources/transactions/types/MerchantAssetType.mjs +5 -0
  18. package/dist/esm/api/resources/transactions/types/TransactionMerchantAttributes.d.mts +7 -0
  19. package/dist/esm/api/resources/transactions/types/index.d.mts +2 -0
  20. package/dist/esm/api/resources/transactions/types/index.mjs +2 -0
  21. package/dist/esm/version.d.mts +1 -1
  22. package/dist/esm/version.mjs +1 -1
  23. 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": "14.3.0",
47
- "User-Agent": "@kard-financial/sdk/14.3.0",
46
+ "X-Fern-SDK-Version": "14.4.0",
47
+ "User-Agent": "@kard-financial/sdk/14.4.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);
@@ -100,13 +100,27 @@ import type * as KardApi from "../../../index.js";
100
100
  * type: "merchant",
101
101
  * id: "633ed2ab30dcb60009dd5699",
102
102
  * attributes: {
103
- * name: "Forever 21"
103
+ * name: "Forever 21",
104
+ * assets: [{
105
+ * type: KardApi.MerchantAssetType.ImgView,
106
+ * url: "https://attribution.getkard.com/public/logos/forever21.jpg?subtype=IMG_VIEW&offerId=OFF-F21-INSTORE-2024Q4-001&token=signed-token",
107
+ * alt: "Forever 21 Logo Image"
108
+ * }, {
109
+ * type: KardApi.MerchantAssetType.BannerView,
110
+ * url: "https://attribution.getkard.com/public/banners/forever21.jpg?subtype=BANNER_VIEW&offerId=OFF-F21-INSTORE-2024Q4-001&token=signed-token",
111
+ * alt: "Forever 21 Banner Image"
112
+ * }]
104
113
  * }
105
114
  * }, {
106
115
  * type: "merchant",
107
116
  * id: "5f3e2d1c40abc50008cc4821",
108
117
  * attributes: {
109
- * name: "Target"
118
+ * name: "Target",
119
+ * assets: [{
120
+ * type: KardApi.MerchantAssetType.ImgView,
121
+ * url: "https://attribution.getkard.com/public/logos/target.jpg?subtype=IMG_VIEW&offerId=OFF-TGT-ONLINE-2024Q4-002&token=signed-token",
122
+ * alt: "Target Logo Image"
123
+ * }]
110
124
  * }
111
125
  * }, {
112
126
  * type: "offer",
@@ -0,0 +1,9 @@
1
+ import type * as KardApi from "../../../index.js";
2
+ export interface MerchantAsset {
3
+ /** The type of asset being tracked. */
4
+ type: KardApi.MerchantAssetType;
5
+ /** Attribution-signed URL for loading the asset. */
6
+ url: string;
7
+ /** Alt text describing the asset for accessibility. */
8
+ alt?: string | undefined;
9
+ }
@@ -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,5 @@
1
+ export declare const MerchantAssetType: {
2
+ readonly ImgView: "IMG_VIEW";
3
+ readonly BannerView: "BANNER_VIEW";
4
+ };
5
+ export type MerchantAssetType = (typeof MerchantAssetType)[keyof typeof MerchantAssetType];
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MerchantAssetType = void 0;
5
+ exports.MerchantAssetType = {
6
+ ImgView: "IMG_VIEW",
7
+ BannerView: "BANNER_VIEW",
8
+ };
@@ -1,4 +1,11 @@
1
+ import type * as KardApi from "../../../index.js";
1
2
  export interface TransactionMerchantAttributes {
2
3
  /** Merchant name */
3
4
  name: string;
5
+ /**
6
+ * Tracked asset images for the merchant (logo, banner, etc.). Each asset
7
+ * URL is signed for attribution tracking and should be loaded as-is by the
8
+ * client.
9
+ */
10
+ assets?: KardApi.MerchantAsset[] | undefined;
4
11
  }
@@ -29,6 +29,8 @@ export * from "./GetEarnedRewardsResponse.js";
29
29
  export * from "./MatchedTransactionsAttributes.js";
30
30
  export * from "./MatchedTransactionsRequest.js";
31
31
  export * from "./Merchant.js";
32
+ export * from "./MerchantAsset.js";
33
+ export * from "./MerchantAssetType.js";
32
34
  export * from "./PaymentStatus.js";
33
35
  export * from "./PaymentType.js";
34
36
  export * from "./ProcessorMid.js";
@@ -45,6 +45,8 @@ __exportStar(require("./GetEarnedRewardsResponse.js"), exports);
45
45
  __exportStar(require("./MatchedTransactionsAttributes.js"), exports);
46
46
  __exportStar(require("./MatchedTransactionsRequest.js"), exports);
47
47
  __exportStar(require("./Merchant.js"), exports);
48
+ __exportStar(require("./MerchantAsset.js"), exports);
49
+ __exportStar(require("./MerchantAssetType.js"), exports);
48
50
  __exportStar(require("./PaymentStatus.js"), exports);
49
51
  __exportStar(require("./PaymentType.js"), exports);
50
52
  __exportStar(require("./ProcessorMid.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "14.3.0";
1
+ export declare const SDK_VERSION = "14.4.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 = "14.3.0";
4
+ exports.SDK_VERSION = "14.4.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": "14.3.0",
10
- "User-Agent": "@kard-financial/sdk/14.3.0",
9
+ "X-Fern-SDK-Version": "14.4.0",
10
+ "User-Agent": "@kard-financial/sdk/14.4.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);
@@ -100,13 +100,27 @@ import type * as KardApi from "../../../index.mjs";
100
100
  * type: "merchant",
101
101
  * id: "633ed2ab30dcb60009dd5699",
102
102
  * attributes: {
103
- * name: "Forever 21"
103
+ * name: "Forever 21",
104
+ * assets: [{
105
+ * type: KardApi.MerchantAssetType.ImgView,
106
+ * url: "https://attribution.getkard.com/public/logos/forever21.jpg?subtype=IMG_VIEW&offerId=OFF-F21-INSTORE-2024Q4-001&token=signed-token",
107
+ * alt: "Forever 21 Logo Image"
108
+ * }, {
109
+ * type: KardApi.MerchantAssetType.BannerView,
110
+ * url: "https://attribution.getkard.com/public/banners/forever21.jpg?subtype=BANNER_VIEW&offerId=OFF-F21-INSTORE-2024Q4-001&token=signed-token",
111
+ * alt: "Forever 21 Banner Image"
112
+ * }]
104
113
  * }
105
114
  * }, {
106
115
  * type: "merchant",
107
116
  * id: "5f3e2d1c40abc50008cc4821",
108
117
  * attributes: {
109
- * name: "Target"
118
+ * name: "Target",
119
+ * assets: [{
120
+ * type: KardApi.MerchantAssetType.ImgView,
121
+ * url: "https://attribution.getkard.com/public/logos/target.jpg?subtype=IMG_VIEW&offerId=OFF-TGT-ONLINE-2024Q4-002&token=signed-token",
122
+ * alt: "Target Logo Image"
123
+ * }]
110
124
  * }
111
125
  * }, {
112
126
  * type: "offer",
@@ -0,0 +1,9 @@
1
+ import type * as KardApi from "../../../index.mjs";
2
+ export interface MerchantAsset {
3
+ /** The type of asset being tracked. */
4
+ type: KardApi.MerchantAssetType;
5
+ /** Attribution-signed URL for loading the asset. */
6
+ url: string;
7
+ /** Alt text describing the asset for accessibility. */
8
+ alt?: string | undefined;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const MerchantAssetType: {
2
+ readonly ImgView: "IMG_VIEW";
3
+ readonly BannerView: "BANNER_VIEW";
4
+ };
5
+ export type MerchantAssetType = (typeof MerchantAssetType)[keyof typeof MerchantAssetType];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const MerchantAssetType = {
3
+ ImgView: "IMG_VIEW",
4
+ BannerView: "BANNER_VIEW",
5
+ };
@@ -1,4 +1,11 @@
1
+ import type * as KardApi from "../../../index.mjs";
1
2
  export interface TransactionMerchantAttributes {
2
3
  /** Merchant name */
3
4
  name: string;
5
+ /**
6
+ * Tracked asset images for the merchant (logo, banner, etc.). Each asset
7
+ * URL is signed for attribution tracking and should be loaded as-is by the
8
+ * client.
9
+ */
10
+ assets?: KardApi.MerchantAsset[] | undefined;
4
11
  }
@@ -29,6 +29,8 @@ export * from "./GetEarnedRewardsResponse.mjs";
29
29
  export * from "./MatchedTransactionsAttributes.mjs";
30
30
  export * from "./MatchedTransactionsRequest.mjs";
31
31
  export * from "./Merchant.mjs";
32
+ export * from "./MerchantAsset.mjs";
33
+ export * from "./MerchantAssetType.mjs";
32
34
  export * from "./PaymentStatus.mjs";
33
35
  export * from "./PaymentType.mjs";
34
36
  export * from "./ProcessorMid.mjs";
@@ -29,6 +29,8 @@ export * from "./GetEarnedRewardsResponse.mjs";
29
29
  export * from "./MatchedTransactionsAttributes.mjs";
30
30
  export * from "./MatchedTransactionsRequest.mjs";
31
31
  export * from "./Merchant.mjs";
32
+ export * from "./MerchantAsset.mjs";
33
+ export * from "./MerchantAssetType.mjs";
32
34
  export * from "./PaymentStatus.mjs";
33
35
  export * from "./PaymentType.mjs";
34
36
  export * from "./ProcessorMid.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "14.3.0";
1
+ export declare const SDK_VERSION = "14.4.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "14.3.0";
1
+ export const SDK_VERSION = "14.4.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "14.3.0",
3
+ "version": "14.4.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",