@getivy/node-sdk 0.1.0-alpha.25 → 0.1.0-alpha.26

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 (77) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.d.mts +3 -0
  3. package/index.d.ts +3 -0
  4. package/index.d.ts.map +1 -1
  5. package/index.js +3 -0
  6. package/index.js.map +1 -1
  7. package/index.mjs +3 -0
  8. package/index.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/data/accounts.d.ts +104 -0
  11. package/resources/data/accounts.d.ts.map +1 -0
  12. package/resources/data/accounts.js +15 -0
  13. package/resources/data/accounts.js.map +1 -0
  14. package/resources/data/accounts.mjs +11 -0
  15. package/resources/data/accounts.mjs.map +1 -0
  16. package/resources/data/balances.d.ts +45 -0
  17. package/resources/data/balances.d.ts.map +1 -0
  18. package/resources/data/balances.js +15 -0
  19. package/resources/data/balances.js.map +1 -0
  20. package/resources/data/balances.mjs +11 -0
  21. package/resources/data/balances.mjs.map +1 -0
  22. package/resources/data/consent.d.ts +80 -0
  23. package/resources/data/consent.d.ts.map +1 -0
  24. package/resources/data/consent.js +21 -0
  25. package/resources/data/consent.js.map +1 -0
  26. package/resources/data/consent.mjs +17 -0
  27. package/resources/data/consent.mjs.map +1 -0
  28. package/resources/data/data.d.ts +26 -0
  29. package/resources/data/data.d.ts.map +1 -0
  30. package/resources/data/data.js +55 -0
  31. package/resources/data/data.js.map +1 -0
  32. package/resources/data/data.mjs +28 -0
  33. package/resources/data/data.mjs.map +1 -0
  34. package/resources/data/index.d.ts +7 -0
  35. package/resources/data/index.d.ts.map +1 -0
  36. package/resources/data/index.js +17 -0
  37. package/resources/data/index.js.map +1 -0
  38. package/resources/data/index.mjs +8 -0
  39. package/resources/data/index.mjs.map +1 -0
  40. package/resources/data/session.d.ts +233 -0
  41. package/resources/data/session.d.ts.map +1 -0
  42. package/resources/data/session.js +21 -0
  43. package/resources/data/session.js.map +1 -0
  44. package/resources/data/session.mjs +17 -0
  45. package/resources/data/session.mjs.map +1 -0
  46. package/resources/data/transactions.d.ts +54 -0
  47. package/resources/data/transactions.d.ts.map +1 -0
  48. package/resources/data/transactions.js +16 -0
  49. package/resources/data/transactions.js.map +1 -0
  50. package/resources/data/transactions.mjs +12 -0
  51. package/resources/data/transactions.mjs.map +1 -0
  52. package/resources/data.d.ts +2 -0
  53. package/resources/data.d.ts.map +1 -0
  54. package/resources/data.js +19 -0
  55. package/resources/data.js.map +1 -0
  56. package/resources/data.mjs +3 -0
  57. package/resources/data.mjs.map +1 -0
  58. package/resources/index.d.ts +1 -0
  59. package/resources/index.d.ts.map +1 -1
  60. package/resources/index.js +3 -1
  61. package/resources/index.js.map +1 -1
  62. package/resources/index.mjs +1 -0
  63. package/resources/index.mjs.map +1 -1
  64. package/src/index.ts +5 -0
  65. package/src/resources/data/accounts.ts +134 -0
  66. package/src/resources/data/balances.ts +57 -0
  67. package/src/resources/data/consent.ts +110 -0
  68. package/src/resources/data/data.ts +75 -0
  69. package/src/resources/data/index.ts +20 -0
  70. package/src/resources/data/session.ts +1298 -0
  71. package/src/resources/data/transactions.ts +71 -0
  72. package/src/resources/data.ts +3 -0
  73. package/src/resources/index.ts +1 -0
  74. package/src/version.ts +1 -1
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/version.mjs +1 -1
@@ -0,0 +1,71 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+
6
+ export class Transactions extends APIResource {
7
+ /**
8
+ * Retrieves the list of transactions for a given data session. Returns
9
+ * transactions from the last 3 months.
10
+ */
11
+ list(body: TransactionListParams, options?: Core.RequestOptions): Core.APIPromise<TransactionListResponse> {
12
+ return this._client.post('/api/service/data/transactions/list', { body, ...options });
13
+ }
14
+ }
15
+
16
+ export interface TransactionListResponse {
17
+ transactions: Array<TransactionListResponse.Transaction>;
18
+ }
19
+
20
+ export namespace TransactionListResponse {
21
+ export interface Transaction {
22
+ /**
23
+ * The ID of the transaction.
24
+ */
25
+ id: string;
26
+
27
+ /**
28
+ * The ID of the account the transaction belongs to.
29
+ */
30
+ accountId: string;
31
+
32
+ /**
33
+ * The amount of the transaction.
34
+ */
35
+ amount: string;
36
+
37
+ /**
38
+ * The currency of the transaction.
39
+ */
40
+ currency: 'EUR' | 'GBP' | 'PLN' | 'USD' | 'CHF' | 'SEK' | 'DKK' | 'NOK' | 'HUF' | 'CZK' | 'BGN';
41
+
42
+ /**
43
+ * The date and time when the transaction occurred.
44
+ */
45
+ timestamp: string;
46
+
47
+ /**
48
+ * The type of transaction (debit or credit).
49
+ */
50
+ type: 'debit' | 'credit';
51
+
52
+ /**
53
+ * The description of the transaction.
54
+ */
55
+ description?: string;
56
+ }
57
+ }
58
+
59
+ export interface TransactionListParams {
60
+ /**
61
+ * The ID of the data session to retrieve transactions for.
62
+ */
63
+ sessionId: string;
64
+ }
65
+
66
+ export declare namespace Transactions {
67
+ export {
68
+ type TransactionListResponse as TransactionListResponse,
69
+ type TransactionListParams as TransactionListParams,
70
+ };
71
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './data/index';
@@ -28,6 +28,7 @@ export {
28
28
  type CustomerCreateParams,
29
29
  type CustomerRetrieveParams,
30
30
  } from './customers';
31
+ export { Data } from './data/data';
31
32
  export {
32
33
  Mandates,
33
34
  type MandateResponse,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.25'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.26'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.25";
1
+ export declare const VERSION = "0.1.0-alpha.26";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-alpha.25'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.26'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-alpha.25'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.26'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map