@kard-financial/sdk 16.1.2 → 16.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 (28) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/transactions/client/Client.d.ts +1 -1
  3. package/dist/cjs/api/resources/transactions/client/Client.js +1 -1
  4. package/dist/cjs/api/resources/users/resources/rewards/types/LocationAttributes.d.ts +2 -0
  5. package/dist/cjs/api/resources/users/resources/rewards/types/LocationPartnerId.d.ts +5 -0
  6. package/dist/cjs/api/resources/users/resources/rewards/types/LocationPartnerId.js +3 -0
  7. package/dist/cjs/api/resources/users/resources/rewards/types/LocationPartnerIdType.d.ts +4 -0
  8. package/dist/cjs/api/resources/users/resources/rewards/types/LocationPartnerIdType.js +7 -0
  9. package/dist/cjs/api/resources/users/resources/rewards/types/LocationsResponseObject.d.ts +5 -1
  10. package/dist/cjs/api/resources/users/resources/rewards/types/index.d.ts +2 -0
  11. package/dist/cjs/api/resources/users/resources/rewards/types/index.js +2 -0
  12. package/dist/cjs/version.d.ts +1 -1
  13. package/dist/cjs/version.js +1 -1
  14. package/dist/esm/BaseClient.mjs +2 -2
  15. package/dist/esm/api/resources/transactions/client/Client.d.mts +1 -1
  16. package/dist/esm/api/resources/transactions/client/Client.mjs +1 -1
  17. package/dist/esm/api/resources/users/resources/rewards/types/LocationAttributes.d.mts +2 -0
  18. package/dist/esm/api/resources/users/resources/rewards/types/LocationPartnerId.d.mts +5 -0
  19. package/dist/esm/api/resources/users/resources/rewards/types/LocationPartnerId.mjs +2 -0
  20. package/dist/esm/api/resources/users/resources/rewards/types/LocationPartnerIdType.d.mts +4 -0
  21. package/dist/esm/api/resources/users/resources/rewards/types/LocationPartnerIdType.mjs +4 -0
  22. package/dist/esm/api/resources/users/resources/rewards/types/LocationsResponseObject.d.mts +5 -1
  23. package/dist/esm/api/resources/users/resources/rewards/types/index.d.mts +2 -0
  24. package/dist/esm/api/resources/users/resources/rewards/types/index.mjs +2 -0
  25. package/dist/esm/version.d.mts +1 -1
  26. package/dist/esm/version.mjs +1 -1
  27. package/package.json +1 -1
  28. package/reference.md +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": "16.1.2",
47
- "User-Agent": "@kard-financial/sdk/16.1.2",
46
+ "X-Fern-SDK-Version": "16.2.0",
47
+ "User-Agent": "@kard-financial/sdk/16.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);
@@ -239,7 +239,7 @@ export declare class TransactionsClient {
239
239
  * binary file content as the body. If a URL expires before the upload completes, you must request a new one.
240
240
  * Files can be uploaded as plain JSONL or as a gzip-compressed file.
241
241
  * Supports both `incomingTransactionsFile` for daily transaction ingestion and `historicalTransactionsFile` for historical transaction ingestion. See the [Historical Transaction Uploads](/2024-10-01/api/integration-guides/historical-transaction-uploads) integration guide for details on the historical flow.
242
- * <b>Required scopes:</b> `transaction:write`
242
+ * <b>Required scopes:</b> `files:write`
243
243
  *
244
244
  * @param {KardApi.OrganizationId} organizationId
245
245
  * @param {KardApi.CreateFileUploadRequestBody} request
@@ -422,7 +422,7 @@ class TransactionsClient {
422
422
  * binary file content as the body. If a URL expires before the upload completes, you must request a new one.
423
423
  * Files can be uploaded as plain JSONL or as a gzip-compressed file.
424
424
  * Supports both `incomingTransactionsFile` for daily transaction ingestion and `historicalTransactionsFile` for historical transaction ingestion. See the [Historical Transaction Uploads](/2024-10-01/api/integration-guides/historical-transaction-uploads) integration guide for details on the historical flow.
425
- * <b>Required scopes:</b> `transaction:write`
425
+ * <b>Required scopes:</b> `files:write`
426
426
  *
427
427
  * @param {KardApi.OrganizationId} organizationId
428
428
  * @param {KardApi.CreateFileUploadRequestBody} request
@@ -5,4 +5,6 @@ export interface LocationAttributes {
5
5
  coordinates: KardApi.users.Coordinates;
6
6
  phone: string;
7
7
  operationHours: KardApi.users.OperationHours;
8
+ /** List of ids associated with the location from third party partners. Only included on LOCAL locations. */
9
+ partnerIds?: KardApi.users.LocationPartnerId[] | undefined;
8
10
  }
@@ -0,0 +1,5 @@
1
+ import type * as KardApi from "../../../../../index.js";
2
+ export interface LocationPartnerId {
3
+ type: KardApi.users.LocationPartnerIdType;
4
+ id: string;
5
+ }
@@ -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,4 @@
1
+ export declare const LocationPartnerIdType: {
2
+ readonly Google: "google";
3
+ };
4
+ export type LocationPartnerIdType = (typeof LocationPartnerIdType)[keyof typeof LocationPartnerIdType];
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.LocationPartnerIdType = void 0;
5
+ exports.LocationPartnerIdType = {
6
+ Google: "google",
7
+ };
@@ -66,7 +66,11 @@ import type * as KardApi from "../../../../../index.js";
66
66
  * }
67
67
  * }],
68
68
  * weekdayText: ["Monday: 9:00 AM \u2013 5:00 PM", "Tuesday: 9:00 AM \u2013 5:00 PM", "Wednesday: 9:00 AM \u2013 5:00 PM", "Thursday: 9:00 AM \u2013 5:00 PM", "Friday: 9:00 AM \u2013 5:00 PM", "Saturday: Closed", "Sunday: Closed"]
69
- * }
69
+ * },
70
+ * partnerIds: [{
71
+ * type: KardApi.users.LocationPartnerIdType.Google,
72
+ * id: "3pafnweri4"
73
+ * }]
70
74
  * },
71
75
  * relationships: {
72
76
  * offers: {
@@ -19,6 +19,8 @@ export * from "./EligibilityOfferIncluded.js";
19
19
  export * from "./EligibilityOfferRelationship.js";
20
20
  export * from "./LocationAttributes.js";
21
21
  export * from "./LocationData.js";
22
+ export * from "./LocationPartnerId.js";
23
+ export * from "./LocationPartnerIdType.js";
22
24
  export * from "./LocationRelationships.js";
23
25
  export * from "./LocationSortOptions.js";
24
26
  export * from "./LocationsResponseObject.js";
@@ -35,6 +35,8 @@ __exportStar(require("./EligibilityOfferIncluded.js"), exports);
35
35
  __exportStar(require("./EligibilityOfferRelationship.js"), exports);
36
36
  __exportStar(require("./LocationAttributes.js"), exports);
37
37
  __exportStar(require("./LocationData.js"), exports);
38
+ __exportStar(require("./LocationPartnerId.js"), exports);
39
+ __exportStar(require("./LocationPartnerIdType.js"), exports);
38
40
  __exportStar(require("./LocationRelationships.js"), exports);
39
41
  __exportStar(require("./LocationSortOptions.js"), exports);
40
42
  __exportStar(require("./LocationsResponseObject.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "16.1.2";
1
+ export declare const SDK_VERSION = "16.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 = "16.1.2";
4
+ exports.SDK_VERSION = "16.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": "16.1.2",
10
- "User-Agent": "@kard-financial/sdk/16.1.2",
9
+ "X-Fern-SDK-Version": "16.2.0",
10
+ "User-Agent": "@kard-financial/sdk/16.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);
@@ -239,7 +239,7 @@ export declare class TransactionsClient {
239
239
  * binary file content as the body. If a URL expires before the upload completes, you must request a new one.
240
240
  * Files can be uploaded as plain JSONL or as a gzip-compressed file.
241
241
  * Supports both `incomingTransactionsFile` for daily transaction ingestion and `historicalTransactionsFile` for historical transaction ingestion. See the [Historical Transaction Uploads](/2024-10-01/api/integration-guides/historical-transaction-uploads) integration guide for details on the historical flow.
242
- * <b>Required scopes:</b> `transaction:write`
242
+ * <b>Required scopes:</b> `files:write`
243
243
  *
244
244
  * @param {KardApi.OrganizationId} organizationId
245
245
  * @param {KardApi.CreateFileUploadRequestBody} request
@@ -386,7 +386,7 @@ export class TransactionsClient {
386
386
  * binary file content as the body. If a URL expires before the upload completes, you must request a new one.
387
387
  * Files can be uploaded as plain JSONL or as a gzip-compressed file.
388
388
  * Supports both `incomingTransactionsFile` for daily transaction ingestion and `historicalTransactionsFile` for historical transaction ingestion. See the [Historical Transaction Uploads](/2024-10-01/api/integration-guides/historical-transaction-uploads) integration guide for details on the historical flow.
389
- * <b>Required scopes:</b> `transaction:write`
389
+ * <b>Required scopes:</b> `files:write`
390
390
  *
391
391
  * @param {KardApi.OrganizationId} organizationId
392
392
  * @param {KardApi.CreateFileUploadRequestBody} request
@@ -5,4 +5,6 @@ export interface LocationAttributes {
5
5
  coordinates: KardApi.users.Coordinates;
6
6
  phone: string;
7
7
  operationHours: KardApi.users.OperationHours;
8
+ /** List of ids associated with the location from third party partners. Only included on LOCAL locations. */
9
+ partnerIds?: KardApi.users.LocationPartnerId[] | undefined;
8
10
  }
@@ -0,0 +1,5 @@
1
+ import type * as KardApi from "../../../../../index.mjs";
2
+ export interface LocationPartnerId {
3
+ type: KardApi.users.LocationPartnerIdType;
4
+ id: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare const LocationPartnerIdType: {
2
+ readonly Google: "google";
3
+ };
4
+ export type LocationPartnerIdType = (typeof LocationPartnerIdType)[keyof typeof LocationPartnerIdType];
@@ -0,0 +1,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const LocationPartnerIdType = {
3
+ Google: "google",
4
+ };
@@ -66,7 +66,11 @@ import type * as KardApi from "../../../../../index.mjs";
66
66
  * }
67
67
  * }],
68
68
  * weekdayText: ["Monday: 9:00 AM \u2013 5:00 PM", "Tuesday: 9:00 AM \u2013 5:00 PM", "Wednesday: 9:00 AM \u2013 5:00 PM", "Thursday: 9:00 AM \u2013 5:00 PM", "Friday: 9:00 AM \u2013 5:00 PM", "Saturday: Closed", "Sunday: Closed"]
69
- * }
69
+ * },
70
+ * partnerIds: [{
71
+ * type: KardApi.users.LocationPartnerIdType.Google,
72
+ * id: "3pafnweri4"
73
+ * }]
70
74
  * },
71
75
  * relationships: {
72
76
  * offers: {
@@ -19,6 +19,8 @@ export * from "./EligibilityOfferIncluded.mjs";
19
19
  export * from "./EligibilityOfferRelationship.mjs";
20
20
  export * from "./LocationAttributes.mjs";
21
21
  export * from "./LocationData.mjs";
22
+ export * from "./LocationPartnerId.mjs";
23
+ export * from "./LocationPartnerIdType.mjs";
22
24
  export * from "./LocationRelationships.mjs";
23
25
  export * from "./LocationSortOptions.mjs";
24
26
  export * from "./LocationsResponseObject.mjs";
@@ -19,6 +19,8 @@ export * from "./EligibilityOfferIncluded.mjs";
19
19
  export * from "./EligibilityOfferRelationship.mjs";
20
20
  export * from "./LocationAttributes.mjs";
21
21
  export * from "./LocationData.mjs";
22
+ export * from "./LocationPartnerId.mjs";
23
+ export * from "./LocationPartnerIdType.mjs";
22
24
  export * from "./LocationRelationships.mjs";
23
25
  export * from "./LocationSortOptions.mjs";
24
26
  export * from "./LocationsResponseObject.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "16.1.2";
1
+ export declare const SDK_VERSION = "16.2.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "16.1.2";
1
+ export const SDK_VERSION = "16.2.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kard-financial/sdk",
3
- "version": "16.1.2",
3
+ "version": "16.2.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -1557,7 +1557,7 @@ to storage. Each URL is valid for 15 minutes. Use the returned URL to upload the
1557
1557
  binary file content as the body. If a URL expires before the upload completes, you must request a new one.
1558
1558
  Files can be uploaded as plain JSONL or as a gzip-compressed file.
1559
1559
  Supports both `incomingTransactionsFile` for daily transaction ingestion and `historicalTransactionsFile` for historical transaction ingestion. See the [Historical Transaction Uploads](/2024-10-01/api/integration-guides/historical-transaction-uploads) integration guide for details on the historical flow.
1560
- <b>Required scopes:</b> `transaction:write`
1560
+ <b>Required scopes:</b> `files:write`
1561
1561
  </dd>
1562
1562
  </dl>
1563
1563
  </dd>