@mft/moneyhub-api-client 5.2.0 → 5.2.1

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 (207) hide show
  1. package/dist/index.d.ts +23 -5
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/request.d.ts +2 -0
  4. package/dist/request.d.ts.map +1 -1
  5. package/dist/request.js.map +1 -1
  6. package/dist/requests/accounts.d.ts.map +1 -1
  7. package/dist/requests/accounts.js +14 -0
  8. package/dist/requests/accounts.js.map +1 -1
  9. package/dist/requests/index.d.ts +23 -5
  10. package/dist/requests/index.d.ts.map +1 -1
  11. package/dist/requests/types/accounts.d.ts +8 -0
  12. package/dist/requests/types/accounts.d.ts.map +1 -1
  13. package/dist/requests/types/unauthenticated.d.ts +15 -5
  14. package/dist/requests/types/unauthenticated.d.ts.map +1 -1
  15. package/dist/requests/unauthenticated.d.ts.map +1 -1
  16. package/dist/requests/unauthenticated.js +11 -7
  17. package/dist/requests/unauthenticated.js.map +1 -1
  18. package/package.json +4 -1
  19. package/readme.md +25 -1
  20. package/dist/types/config.d.ts +0 -23
  21. package/dist/types/config.d.ts.map +0 -1
  22. package/dist/types/config.js +0 -3
  23. package/dist/types/config.js.map +0 -1
  24. package/dist/types/get-auth-urls.d.ts +0 -140
  25. package/dist/types/get-auth-urls.d.ts.map +0 -1
  26. package/dist/types/get-auth-urls.js +0 -3
  27. package/dist/types/get-auth-urls.js.map +0 -1
  28. package/dist/types/index.d.ts +0 -30
  29. package/dist/types/index.d.ts.map +0 -1
  30. package/dist/types/index.js +0 -3
  31. package/dist/types/index.js.map +0 -1
  32. package/dist/types/request.d.ts +0 -39
  33. package/dist/types/request.d.ts.map +0 -1
  34. package/dist/types/request.js +0 -3
  35. package/dist/types/request.js.map +0 -1
  36. package/dist/types/requests/accounts.d.ts +0 -68
  37. package/dist/types/requests/accounts.d.ts.map +0 -1
  38. package/dist/types/requests/accounts.js +0 -3
  39. package/dist/types/requests/accounts.js.map +0 -1
  40. package/dist/types/requests/auth-requests.d.ts +0 -42
  41. package/dist/types/requests/auth-requests.d.ts.map +0 -1
  42. package/dist/types/requests/auth-requests.js +0 -9
  43. package/dist/types/requests/auth-requests.js.map +0 -1
  44. package/dist/types/requests/beneficiaries.d.ts +0 -21
  45. package/dist/types/requests/beneficiaries.d.ts.map +0 -1
  46. package/dist/types/requests/beneficiaries.js +0 -3
  47. package/dist/types/requests/beneficiaries.js.map +0 -1
  48. package/dist/types/requests/categories.d.ts +0 -28
  49. package/dist/types/requests/categories.d.ts.map +0 -1
  50. package/dist/types/requests/categories.js +0 -3
  51. package/dist/types/requests/categories.js.map +0 -1
  52. package/dist/types/requests/payees.d.ts +0 -16
  53. package/dist/types/requests/payees.d.ts.map +0 -1
  54. package/dist/types/requests/payees.js +0 -3
  55. package/dist/types/requests/payees.js.map +0 -1
  56. package/dist/types/requests/payments.d.ts +0 -12
  57. package/dist/types/requests/payments.d.ts.map +0 -1
  58. package/dist/types/requests/payments.js +0 -3
  59. package/dist/types/requests/payments.js.map +0 -1
  60. package/dist/types/requests/projects.d.ts +0 -26
  61. package/dist/types/requests/projects.d.ts.map +0 -1
  62. package/dist/types/requests/projects.js +0 -3
  63. package/dist/types/requests/projects.js.map +0 -1
  64. package/dist/types/requests/recurring-payments.d.ts +0 -16
  65. package/dist/types/requests/recurring-payments.d.ts.map +0 -1
  66. package/dist/types/requests/recurring-payments.js +0 -3
  67. package/dist/types/requests/recurring-payments.js.map +0 -1
  68. package/dist/types/requests/regular-transactions.d.ts +0 -9
  69. package/dist/types/requests/regular-transactions.d.ts.map +0 -1
  70. package/dist/types/requests/regular-transactions.js +0 -3
  71. package/dist/types/requests/regular-transactions.js.map +0 -1
  72. package/dist/types/requests/rental-records.d.ts +0 -16
  73. package/dist/types/requests/rental-records.d.ts.map +0 -1
  74. package/dist/types/requests/rental-records.js +0 -3
  75. package/dist/types/requests/rental-records.js.map +0 -1
  76. package/dist/types/requests/savings-goals.d.ts +0 -40
  77. package/dist/types/requests/savings-goals.d.ts.map +0 -1
  78. package/dist/types/requests/savings-goals.js +0 -3
  79. package/dist/types/requests/savings-goals.js.map +0 -1
  80. package/dist/types/requests/spending-analysis.d.ts +0 -18
  81. package/dist/types/requests/spending-analysis.d.ts.map +0 -1
  82. package/dist/types/requests/spending-analysis.js +0 -3
  83. package/dist/types/requests/spending-analysis.js.map +0 -1
  84. package/dist/types/requests/spending-goals.d.ts +0 -35
  85. package/dist/types/requests/spending-goals.d.ts.map +0 -1
  86. package/dist/types/requests/spending-goals.js +0 -8
  87. package/dist/types/requests/spending-goals.js.map +0 -1
  88. package/dist/types/requests/standing-orders.d.ts +0 -9
  89. package/dist/types/requests/standing-orders.d.ts.map +0 -1
  90. package/dist/types/requests/standing-orders.js +0 -3
  91. package/dist/types/requests/standing-orders.js.map +0 -1
  92. package/dist/types/requests/sync.d.ts +0 -18
  93. package/dist/types/requests/sync.d.ts.map +0 -1
  94. package/dist/types/requests/sync.js +0 -8
  95. package/dist/types/requests/sync.js.map +0 -1
  96. package/dist/types/requests/tax.d.ts +0 -9
  97. package/dist/types/requests/tax.d.ts.map +0 -1
  98. package/dist/types/requests/tax.js +0 -3
  99. package/dist/types/requests/tax.js.map +0 -1
  100. package/dist/types/requests/transaction-files.d.ts +0 -25
  101. package/dist/types/requests/transaction-files.d.ts.map +0 -1
  102. package/dist/types/requests/transaction-files.js +0 -3
  103. package/dist/types/requests/transaction-files.js.map +0 -1
  104. package/dist/types/requests/transaction-splits.d.ts +0 -24
  105. package/dist/types/requests/transaction-splits.d.ts.map +0 -1
  106. package/dist/types/requests/transaction-splits.js +0 -3
  107. package/dist/types/requests/transaction-splits.js.map +0 -1
  108. package/dist/types/requests/transactions.d.ts +0 -35
  109. package/dist/types/requests/transactions.d.ts.map +0 -1
  110. package/dist/types/requests/transactions.js +0 -3
  111. package/dist/types/requests/transactions.js.map +0 -1
  112. package/dist/types/requests/unauthenticated.d.ts +0 -12
  113. package/dist/types/requests/unauthenticated.d.ts.map +0 -1
  114. package/dist/types/requests/unauthenticated.js +0 -3
  115. package/dist/types/requests/unauthenticated.js.map +0 -1
  116. package/dist/types/requests/users-and-connections.d.ts +0 -39
  117. package/dist/types/requests/users-and-connections.d.ts.map +0 -1
  118. package/dist/types/requests/users-and-connections.js +0 -3
  119. package/dist/types/requests/users-and-connections.js.map +0 -1
  120. package/dist/types/schema/account.d.ts +0 -103
  121. package/dist/types/schema/account.d.ts.map +0 -1
  122. package/dist/types/schema/account.js +0 -36
  123. package/dist/types/schema/account.js.map +0 -1
  124. package/dist/types/schema/auth-request.d.ts +0 -31
  125. package/dist/types/schema/auth-request.d.ts.map +0 -1
  126. package/dist/types/schema/auth-request.js +0 -10
  127. package/dist/types/schema/auth-request.js.map +0 -1
  128. package/dist/types/schema/balance.d.ts +0 -11
  129. package/dist/types/schema/balance.d.ts.map +0 -1
  130. package/dist/types/schema/balance.js +0 -3
  131. package/dist/types/schema/balance.js.map +0 -1
  132. package/dist/types/schema/beneficiary.d.ts +0 -19
  133. package/dist/types/schema/beneficiary.d.ts.map +0 -1
  134. package/dist/types/schema/beneficiary.js +0 -3
  135. package/dist/types/schema/beneficiary.js.map +0 -1
  136. package/dist/types/schema/category.d.ts +0 -19
  137. package/dist/types/schema/category.d.ts.map +0 -1
  138. package/dist/types/schema/category.js +0 -3
  139. package/dist/types/schema/category.js.map +0 -1
  140. package/dist/types/schema/connection.d.ts +0 -40
  141. package/dist/types/schema/connection.d.ts.map +0 -1
  142. package/dist/types/schema/connection.js +0 -3
  143. package/dist/types/schema/connection.js.map +0 -1
  144. package/dist/types/schema/counterparty.d.ts +0 -33
  145. package/dist/types/schema/counterparty.d.ts.map +0 -1
  146. package/dist/types/schema/counterparty.js +0 -8
  147. package/dist/types/schema/counterparty.js.map +0 -1
  148. package/dist/types/schema/holding.d.ts +0 -55
  149. package/dist/types/schema/holding.d.ts.map +0 -1
  150. package/dist/types/schema/holding.js +0 -9
  151. package/dist/types/schema/holding.js.map +0 -1
  152. package/dist/types/schema/payee.d.ts +0 -18
  153. package/dist/types/schema/payee.d.ts.map +0 -1
  154. package/dist/types/schema/payee.js +0 -3
  155. package/dist/types/schema/payee.js.map +0 -1
  156. package/dist/types/schema/payment.d.ts +0 -156
  157. package/dist/types/schema/payment.d.ts.map +0 -1
  158. package/dist/types/schema/payment.js +0 -68
  159. package/dist/types/schema/payment.js.map +0 -1
  160. package/dist/types/schema/project.d.ts +0 -25
  161. package/dist/types/schema/project.d.ts.map +0 -1
  162. package/dist/types/schema/project.js +0 -9
  163. package/dist/types/schema/project.js.map +0 -1
  164. package/dist/types/schema/regular-transaction.d.ts +0 -40
  165. package/dist/types/schema/regular-transaction.d.ts.map +0 -1
  166. package/dist/types/schema/regular-transaction.js +0 -16
  167. package/dist/types/schema/regular-transaction.js.map +0 -1
  168. package/dist/types/schema/rental-record.d.ts +0 -44
  169. package/dist/types/schema/rental-record.d.ts.map +0 -1
  170. package/dist/types/schema/rental-record.js +0 -9
  171. package/dist/types/schema/rental-record.js.map +0 -1
  172. package/dist/types/schema/savings-goal.d.ts +0 -15
  173. package/dist/types/schema/savings-goal.d.ts.map +0 -1
  174. package/dist/types/schema/savings-goal.js +0 -3
  175. package/dist/types/schema/savings-goal.js.map +0 -1
  176. package/dist/types/schema/spending-analysis.d.ts +0 -14
  177. package/dist/types/schema/spending-analysis.d.ts.map +0 -1
  178. package/dist/types/schema/spending-analysis.js +0 -3
  179. package/dist/types/schema/spending-analysis.js.map +0 -1
  180. package/dist/types/schema/spending-goal.d.ts +0 -20
  181. package/dist/types/schema/spending-goal.d.ts.map +0 -1
  182. package/dist/types/schema/spending-goal.js +0 -8
  183. package/dist/types/schema/spending-goal.js.map +0 -1
  184. package/dist/types/schema/standing-order.d.ts +0 -80
  185. package/dist/types/schema/standing-order.d.ts.map +0 -1
  186. package/dist/types/schema/standing-order.js +0 -24
  187. package/dist/types/schema/standing-order.js.map +0 -1
  188. package/dist/types/schema/sync.d.ts +0 -16
  189. package/dist/types/schema/sync.d.ts.map +0 -1
  190. package/dist/types/schema/sync.js +0 -3
  191. package/dist/types/schema/sync.js.map +0 -1
  192. package/dist/types/schema/tax.d.ts +0 -35
  193. package/dist/types/schema/tax.d.ts.map +0 -1
  194. package/dist/types/schema/tax.js +0 -3
  195. package/dist/types/schema/tax.js.map +0 -1
  196. package/dist/types/schema/transaction.d.ts +0 -127
  197. package/dist/types/schema/transaction.d.ts.map +0 -1
  198. package/dist/types/schema/transaction.js +0 -3
  199. package/dist/types/schema/transaction.js.map +0 -1
  200. package/dist/types/schema/user.d.ts +0 -15
  201. package/dist/types/schema/user.d.ts.map +0 -1
  202. package/dist/types/schema/user.js +0 -3
  203. package/dist/types/schema/user.js.map +0 -1
  204. package/dist/types/tokens.d.ts +0 -40
  205. package/dist/types/tokens.d.ts.map +0 -1
  206. package/dist/types/tokens.js +0 -3
  207. package/dist/types/tokens.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"standing-orders.d.ts","sourceRoot":"","sources":["../../../types/requests/standing-orders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,OAAO,EAAC,oBAAoB,EAAE,yBAAyB,EAAC,MAAM,0BAA0B,CAAA;AAExF,MAAM,WAAW,sBAAsB;IACrC,gBAAgB,EAAE,CAAC,EAAC,EAAE,EAAC,EAAE;QAAC,EAAE,EAAE,MAAM,CAAA;KAAC,KAChC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAA;IAC/C,iBAAiB,EAAE,CACjB,MAAM,CAAC,EAAE,yBAAyB,KAC/B,OAAO,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAA;CAClD"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=standing-orders.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"standing-orders.js","sourceRoot":"","sources":["../../../types/requests/standing-orders.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- import { ApiResponse } from "../request";
2
- declare enum Status {
3
- OK = "ok",
4
- ERROR = "error"
5
- }
6
- interface SyncResponse {
7
- status: Status;
8
- }
9
- export interface SyncRequests {
10
- syncUserConnection: ({ userId, connectionId, customerIpAddress, customerLastLoggedTime, }: {
11
- userId: string;
12
- connectionId: string;
13
- customerIpAddress?: string;
14
- customerLastLoggedTime?: string;
15
- }) => Promise<ApiResponse<SyncResponse>>;
16
- }
17
- export {};
18
- //# sourceMappingURL=sync.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../types/requests/sync.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AAEtC,aAAK,MAAM;IACT,EAAE,OAAO;IACT,KAAK,UAAU;CAChB;AAED,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,YAAY;IAC3B,kBAAkB,EAAE,CAAC,EACnB,MAAM,EACN,YAAY,EACZ,iBAAiB,EACjB,sBAAsB,GACvB,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,YAAY,EAAE,MAAM,CAAA;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAA;QAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAA;KAChC,KAAK,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;CACzC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var Status;
4
- (function (Status) {
5
- Status["OK"] = "ok";
6
- Status["ERROR"] = "error";
7
- })(Status || (Status = {}));
8
- //# sourceMappingURL=sync.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../types/requests/sync.ts"],"names":[],"mappings":";;AAEA,IAAK,MAGJ;AAHD,WAAK,MAAM;IACT,mBAAS,CAAA;IACT,yBAAe,CAAA;AACjB,CAAC,EAHI,MAAM,KAAN,MAAM,QAGV"}
@@ -1,9 +0,0 @@
1
- import { ApiResponse } from "../request";
2
- import { Tax, TaxSearchParams } from "../schema/tax";
3
- export interface TaxRequests {
4
- getTaxReturn: ({ userId, params, }: {
5
- userId: string;
6
- params?: TaxSearchParams;
7
- }) => Promise<ApiResponse<Tax>>;
8
- }
9
- //# sourceMappingURL=tax.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tax.d.ts","sourceRoot":"","sources":["../../../types/requests/tax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,OAAO,EAAC,GAAG,EAAE,eAAe,EAAC,MAAM,eAAe,CAAA;AAElD,MAAM,WAAW,WAAW;IAC1B,YAAY,EAAE,CAAC,EACb,MAAM,EACN,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,eAAe,CAAA;KACzB,KAAK,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;CAChC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=tax.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tax.js","sourceRoot":"","sources":["../../../types/requests/tax.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- import { ApiResponse } from "../request";
2
- import { TransactionFile } from "../schema/transaction";
3
- export interface TransactionFilesRequests {
4
- addFileToTransaction: ({ userId, transactionId, fileData, fileName, }: {
5
- userId: string;
6
- transactionId: string;
7
- fileName: string;
8
- fileData: Blob;
9
- }) => Promise<ApiResponse<TransactionFile>>;
10
- getTransactionFiles: ({ userId, transactionId, }: {
11
- userId: string;
12
- transactionId: string;
13
- }) => Promise<ApiResponse<TransactionFile[]>>;
14
- getTransactionFile: ({ userId, transactionId, fileId, }: {
15
- userId: string;
16
- transactionId: string;
17
- fileId: string;
18
- }) => Promise<ApiResponse<TransactionFile>>;
19
- deleteTransactionFile: ({ userId, transactionId, fileId, }: {
20
- userId: string;
21
- transactionId: string;
22
- fileId: string;
23
- }) => Promise<number>;
24
- }
25
- //# sourceMappingURL=transaction-files.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-files.d.ts","sourceRoot":"","sources":["../../../types/requests/transaction-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,OAAO,EAAC,eAAe,EAAC,MAAM,uBAAuB,CAAA;AAErD,MAAM,WAAW,wBAAwB;IACvC,oBAAoB,EAAE,CAAC,EACrB,MAAM,EACN,aAAa,EACb,QAAQ,EACR,QAAQ,GACT,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;QACrB,QAAQ,EAAE,MAAM,CAAA;QAChB,QAAQ,EAAE,IAAI,CAAA;KACf,KAAK,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE3C,mBAAmB,EAAE,CAAC,EACpB,MAAM,EACN,aAAa,GACd,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;KACtB,KAAK,OAAO,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAE7C,kBAAkB,EAAE,CAAC,EACnB,MAAM,EACN,aAAa,EACb,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,KAAK,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE3C,qBAAqB,EAAE,CAAC,EACtB,MAAM,EACN,aAAa,EACb,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACtB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=transaction-files.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-files.js","sourceRoot":"","sources":["../../../types/requests/transaction-files.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- import { ApiResponse } from "../request";
2
- import { TransactionSplit, TransactionSplitPatch, TransactionSplitPost } from "../schema/transaction";
3
- export interface TransactionSplitsRequests {
4
- splitTransaction: ({ userId, transactionId, splits, }: {
5
- userId: string;
6
- transactionId: string;
7
- splits: TransactionSplitPost;
8
- }) => Promise<ApiResponse<TransactionSplit[]>>;
9
- getTransactionSplits: ({ userId, transactionId, }: {
10
- userId: string;
11
- transactionId: string;
12
- }) => Promise<ApiResponse<TransactionSplit[]>>;
13
- patchTransactionSplit: ({ userId, transactionId, splitId, split, }: {
14
- userId: string;
15
- transactionId: string;
16
- splitId: string;
17
- split: TransactionSplitPatch;
18
- }) => Promise<ApiResponse<TransactionSplit[]>>;
19
- deleteTransactionSplits: ({ userId, transactionId, }: {
20
- userId: string;
21
- transactionId: string;
22
- }) => Promise<number>;
23
- }
24
- //# sourceMappingURL=transaction-splits.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-splits.d.ts","sourceRoot":"","sources":["../../../types/requests/transaction-splits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,OAAO,EAAC,gBAAgB,EAAE,qBAAqB,EAAE,oBAAoB,EAAC,MAAM,uBAAuB,CAAA;AAEnG,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,EAAE,CAAC,EACjB,MAAM,EACN,aAAa,EACb,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,oBAAoB,CAAA;KAC7B,KAAK,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;IAE9C,oBAAoB,EAAE,CAAC,EACrB,MAAM,EACN,aAAa,GACd,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;KACtB,KAAK,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;IAE9C,qBAAqB,EAAE,CAAC,EACtB,MAAM,EACN,aAAa,EACb,OAAO,EACP,KAAK,GACN,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;QACrB,OAAO,EAAE,MAAM,CAAA;QACf,KAAK,EAAE,qBAAqB,CAAA;KAC7B,KAAK,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;IAE9C,uBAAuB,EAAE,CAAC,EACxB,MAAM,EACN,aAAa,GACd,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;KACtB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;CACtB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=transaction-splits.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transaction-splits.js","sourceRoot":"","sources":["../../../types/requests/transaction-splits.ts"],"names":[],"mappings":""}
@@ -1,35 +0,0 @@
1
- import { ApiResponse } from "../request";
2
- import { Transaction, TransactionPatch, TransactionPost, TransactionSearchParams } from "../schema/transaction";
3
- export interface TransactionsRequests {
4
- getTransactions: ({ userId, params, }: {
5
- userId: string;
6
- params?: TransactionSearchParams;
7
- }) => Promise<ApiResponse<Transaction[]>>;
8
- getTransaction: ({ userId, transactionId, }: {
9
- userId: string;
10
- transactionId: string;
11
- }) => Promise<ApiResponse<Transaction>>;
12
- addTransaction: ({ userId, transaction, }: {
13
- userId: string;
14
- transaction: TransactionPost;
15
- }) => Promise<ApiResponse<Transaction>>;
16
- addTransactions: ({ userId, transactions, params, }: {
17
- userId: string;
18
- transactions: TransactionPost[];
19
- params?: {
20
- categorise?: boolean;
21
- };
22
- }) => Promise<ApiResponse<{
23
- id: string;
24
- }[]>>;
25
- updateTransaction: ({ userId, transactionId, transaction, }: {
26
- userId: string;
27
- transactionId: string;
28
- transaction: TransactionPatch;
29
- }) => Promise<ApiResponse<Transaction>>;
30
- deleteTransaction: ({ userId, transactionId, }: {
31
- userId: string;
32
- transactionId: string;
33
- }) => Promise<ApiResponse<number>>;
34
- }
35
- //# sourceMappingURL=transactions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactions.d.ts","sourceRoot":"","sources":["../../../types/requests/transactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAE,eAAe,EAAE,uBAAuB,EAAC,MAAM,uBAAuB,CAAA;AAE7G,MAAM,WAAW,oBAAoB;IACnC,eAAe,EAAE,CAAC,EAChB,MAAM,EACN,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,MAAM,CAAC,EAAE,uBAAuB,CAAA;KACjC,KAAK,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;IAEzC,cAAc,EAAE,CAAC,EACf,MAAM,EACN,aAAa,GACd,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;KACtB,KAAK,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAA;IAEvC,cAAc,EAAE,CAAC,EACf,MAAM,EACN,WAAW,GACZ,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,WAAW,EAAE,eAAe,CAAA;KAC7B,KAAK,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAA;IAEvC,eAAe,EAAE,CAAC,EAChB,MAAM,EACN,YAAY,EACZ,MAAM,GACP,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,YAAY,EAAE,eAAe,EAAE,CAAA;QAC/B,MAAM,CAAC,EAAE;YACP,UAAU,CAAC,EAAE,OAAO,CAAA;SACrB,CAAA;KACF,KAAK,OAAO,CAAC,WAAW,CAAC;QACxB,EAAE,EAAE,MAAM,CAAA;KACX,EAAE,CAAC,CAAC,CAAA;IAEL,iBAAiB,EAAE,CAAC,EAClB,MAAM,EACN,aAAa,EACb,WAAW,GACZ,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;QACrB,WAAW,EAAE,gBAAgB,CAAA;KAC9B,KAAK,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAA;IAEvC,iBAAiB,EAAE,CAAC,EAClB,MAAM,EACN,aAAa,GACd,EAAE;QACD,MAAM,EAAE,MAAM,CAAA;QACd,aAAa,EAAE,MAAM,CAAA;KACtB,KAAK,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAA;CACnC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=transactions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../types/requests/transactions.ts"],"names":[],"mappings":""}
@@ -1,12 +0,0 @@
1
- import { ApiResponse } from "../request";
2
- import { WellKnownConnection } from "../schema/connection";
3
- import { GlobalCounterpartiesSearchParams, GlobalCounterparty } from "../schema/counterparty";
4
- export interface UnauthenticatedRequests {
5
- getGlobalCounterparties: (params?: GlobalCounterpartiesSearchParams) => Promise<ApiResponse<GlobalCounterparty[]>>;
6
- listConnections: () => Promise<WellKnownConnection[]>;
7
- listAPIConnections: () => Promise<WellKnownConnection[]>;
8
- listTestConnections: () => Promise<WellKnownConnection[]>;
9
- listBetaConnections: () => Promise<WellKnownConnection[]>;
10
- getOpenIdConfig: () => Promise<object>;
11
- }
12
- //# sourceMappingURL=unauthenticated.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unauthenticated.d.ts","sourceRoot":"","sources":["../../../types/requests/unauthenticated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,YAAY,CAAA;AACtC,OAAO,EAAC,mBAAmB,EAAC,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAC,gCAAgC,EAAE,kBAAkB,EAAC,MAAM,wBAAwB,CAAA;AAE3F,MAAM,WAAW,uBAAuB;IACtC,uBAAuB,EAAE,CACvB,MAAM,CAAC,EAAE,gCAAgC,KACtC,OAAO,CAAC,WAAW,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAA;IAE/C,eAAe,EAAE,MAAM,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;IACrD,kBAAkB,EAAE,MAAM,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;IACxD,mBAAmB,EAAE,MAAM,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;IACzD,mBAAmB,EAAE,MAAM,OAAO,CAAC,mBAAmB,EAAE,CAAC,CAAA;IACzD,eAAe,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CACvC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=unauthenticated.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unauthenticated.js","sourceRoot":"","sources":["../../../types/requests/unauthenticated.ts"],"names":[],"mappings":""}
@@ -1,39 +0,0 @@
1
- import { ApiResponse, SearchParams } from "../request";
2
- import { UserConnection } from "../schema/connection";
3
- import { ConnectionSync } from "../schema/sync";
4
- import { User } from "../schema/user";
5
- export interface UsersAndConnectionsRequests {
6
- registerUser: ({ clientUserId, }: {
7
- clientUserId: string;
8
- }) => Promise<ApiResponse<User>>;
9
- getUsers: (params?: SearchParams) => Promise<ApiResponse<User[]>>;
10
- getSCIMUsers: (params?: SearchParams) => Promise<ApiResponse<any>>;
11
- getUser: ({ userId, }: {
12
- userId: string;
13
- }) => Promise<ApiResponse<User>>;
14
- getUserConnections: ({ userId, }: {
15
- userId: string;
16
- }) => Promise<ApiResponse<UserConnection[]>>;
17
- deleteUserConnection: ({ userId, connectionId, }: {
18
- userId: string;
19
- connectionId: string;
20
- }) => Promise<number>;
21
- deleteUser: ({ userId, }: {
22
- userId: string;
23
- }) => Promise<number>;
24
- getConnectionSyncs: ({ userId, connectionId, params, }: {
25
- userId: string;
26
- connectionId: string;
27
- params?: SearchParams;
28
- }) => Promise<ApiResponse<ConnectionSync[]>>;
29
- getSync: ({ userId, syncId, }: {
30
- userId: string;
31
- syncId: string;
32
- }) => Promise<ApiResponse<ConnectionSync>>;
33
- updateUserConnection: ({ userId, connectionId, expiresAt, }: {
34
- userId: string;
35
- connectionId: string;
36
- expiresAt: string;
37
- }) => Promise<number>;
38
- }
39
- //# sourceMappingURL=users-and-connections.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users-and-connections.d.ts","sourceRoot":"","sources":["../../../types/requests/users-and-connections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,YAAY,CAAA;AACpD,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAA;AAEnC,MAAM,WAAW,2BAA2B;IAC1C,YAAY,EAAE,CAAC,EACb,YAAY,GACb,EAAE;QACD,YAAY,EAAE,MAAM,CAAA;KACrB,KAAK,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAA;IAEhC,QAAQ,EAAE,CACR,MAAM,CAAC,EAAE,YAAY,KAClB,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC,CAAA;IAEjC,YAAY,EAAE,CACZ,MAAM,CAAC,EAAE,YA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@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=users-and-connections.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users-and-connections.js","sourceRoot":"","sources":["../../../types/requests/users-and-connections.ts"],"names":[],"mappings":""}
@@ -1,103 +0,0 @@
1
- import type { Balance } from "./balance";
2
- declare enum InterestType {
3
- FIXED = "fixed",
4
- VARIABLE = "variable"
5
- }
6
- declare enum RunningCostPeriod {
7
- MONTH = "month",
8
- YEAR = "year"
9
- }
10
- export declare enum AccountType {
11
- PERSONAL = "personal",
12
- BUSINESS = "business"
13
- }
14
- declare enum Type {
15
- CASH_CURRENT = "cash:current",
16
- SAVINGS = "savings",
17
- CARD = "card",
18
- INVESTMENT = "investment",
19
- LOAN = "loan",
20
- MORTGAGE_REPAYMENT = "mortgage:repayment",
21
- MORTGAGE_INTEREST_ONLY = "mortgage:interestOnly",
22
- PENSION = "pension",
23
- PENSION_DEFINED_BENEFIT = "pension:definedBenefit",
24
- PENSION_DEFINED_CONTRIBUTION = "pension:definedContribution",
25
- ASSET = "asset",
26
- PROPERTIES_RESIDENTIAL = "properties:residential",
27
- PROPERTIES_BUT_TO_LET = "properties:buyToLet",
28
- CRYPTO = "crypto"
29
- }
30
- interface TransactionData {
31
- count: number;
32
- earliestDate: string;
33
- lastDatE: string;
34
- }
35
- interface PerformanceScoreTotals {
36
- openingBalance: Balance;
37
- currentBalance: Balance;
38
- contributions: number;
39
- withdrawals: number;
40
- nonContributionGrowth: number;
41
- growthRate: number;
42
- annualisedGrowthRate: number;
43
- }
44
- interface PerformanceScopeMonths {
45
- date: string;
46
- openingBalance: number;
47
- nonContributionGrowth: number;
48
- aer: number;
49
- }
50
- interface PerformanceScore {
51
- totals: PerformanceScoreTotals;
52
- months: PerformanceScopeMonths[];
53
- }
54
- export interface AccountDetails {
55
- AER?: number;
56
- APR?: number;
57
- sortCodeAccountNumber?: string;
58
- iban?: string;
59
- pan?: string;
60
- creditLimit?: number;
61
- endDate?: string;
62
- fixedDate?: string;
63
- interestFreePeriod?: number;
64
- interestType?: InterestType;
65
- monthlyRepayment?: number;
66
- overdraftLimit?: number;
67
- postcode?: string;
68
- runningCost?: number;
69
- runningCostPeriod?: RunningCostPeriod;
70
- term?: number;
71
- yearlyAppreciation?: number;
72
- }
73
- export interface Account {
74
- accountName: string;
75
- currency?: string;
76
- balance: Balance;
77
- transactionData?: TransactionData;
78
- dateModified: string;
79
- id: string;
80
- providerName?: string;
81
- providerReference?: string;
82
- connectionId?: string;
83
- providerId?: string;
84
- accountReference?: string;
85
- accountHolderName?: string;
86
- accountType?: AccountType;
87
- productName?: string;
88
- type: Type;
89
- performanceScore?: PerformanceScore;
90
- }
91
- export interface AccountWithDetails extends Account {
92
- details: AccountDetails;
93
- }
94
- export interface AccountPost {
95
- accountName: string;
96
- providerName: string;
97
- type: Type;
98
- accountType: AccountType;
99
- balance: Balance;
100
- details?: AccountDetails;
101
- }
102
- export {};
103
- //# sourceMappingURL=account.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../types/schema/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAEtC,aAAK,YAAY;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,aAAK,iBAAiB;IACpB,KAAK,UAAU;IACf,IAAI,SAAS;CACd;AAED,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,aAAK,IAAI;IACP,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,kBAAkB,uBAAuB;IACzC,sBAAsB,0BAA0B;IAChD,OAAO,YAAY;IACnB,uBAAuB,2BAA2B;IAClD,4BAA4B,gCAAgC;IAC5D,KAAK,UAAU;IACf,sBAAsB,2BAA2B;IACjD,qBA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AAI,CAAC,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,OAAO;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,YAAY,EAAE,MAAM,CAAA;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,IAAI,CAAA;IACV,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;CACpC;AAED,MAAM,WAAW,kBAAmB,SAAQ,OAAO;IACjD,OAAO,EAAE,cAAc,CAAA;CACxB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,IAAI,EAAE,IAAI,CAAA;IACV,WAAW,EAAE,WAAW,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,cAAc,CAAA;CACzB"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountType = void 0;
4
- var InterestType;
5
- (function (InterestType) {
6
- InterestType["FIXED"] = "fixed";
7
- InterestType["VARIABLE"] = "variable";
8
- })(InterestType || (InterestType = {}));
9
- var RunningCostPeriod;
10
- (function (RunningCostPeriod) {
11
- RunningCostPeriod["MONTH"] = "month";
12
- RunningCostPeriod["YEAR"] = "year";
13
- })(RunningCostPeriod || (RunningCostPeriod = {}));
14
- var AccountType;
15
- (function (AccountType) {
16
- AccountType["PERSONAL"] = "personal";
17
- AccountType["BUSINESS"] = "business";
18
- })(AccountType = exports.AccountType || (exports.AccountType = {}));
19
- var Type;
20
- (function (Type) {
21
- Type["CASH_CURRENT"] = "cash:current";
22
- Type["SAVINGS"] = "savings";
23
- Type["CARD"] = "card";
24
- Type["INVESTMENT"] = "investment";
25
- Type["LOAN"] = "loan";
26
- Type["MORTGAGE_REPAYMENT"] = "mortgage:repayment";
27
- Type["MORTGAGE_INTEREST_ONLY"] = "mortgage:interestOnly";
28
- Type["PENSION"] = "pension";
29
- Type["PENSION_DEFINED_BENEFIT"] = "pension:definedBenefit";
30
- Type["PENSION_DEFINED_CONTRIBUTION"] = "pension:definedContribution";
31
- Type["ASSET"] = "asset";
32
- Type["PROPERTIES_RESIDENTIAL"] = "properties:residential";
33
- Type["PROPERTIES_BUT_TO_LET"] = "properties:buyToLet";
34
- Type["CRYPTO"] = "crypto";
35
- })(Type || (Type = {}));
36
- //# sourceMappingURL=account.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../../types/schema/account.ts"],"names":[],"mappings":";;;AAEA,IAAK,YAGJ;AAHD,WAAK,YAAY;IACf,+BAAe,CAAA;IACf,qCAAqB,CAAA;AACvB,CAAC,EAHI,YAAY,KAAZ,YAAY,QAGhB;AAED,IAAK,iBAGJ;AAHD,WAAK,iBAAiB;IACpB,oCAAe,CAAA;IACf,kCAAa,CAAA;AACf,CAAC,EAHI,iBAAiB,KAAjB,iBAAiB,QAGrB;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;AACvB,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAK,IAeJ;AAfD,WAAK,IAAI;IACP,qCAA6B,CAAA;IAC7B,2BAAmB,CAAA;IACnB,qBAAa,CAAA;IACb,iCAAyB,CAAA;IACzB,qBAAa,CAAA;IACb,iDAAyC,CAAA;IACzC,wDAAgD,CAAA;IAChD,2BAAmB,CAAA;IACnB,0DAAkD,CAAA;IAClD,oEAA4D,CAAA;IAC5D,uBAAe,CAAA;IACf,yDAAiD,CAAA;IACjD,qDAA6C,CAAA;IAC7C,yBAAiB,CAAA;AACnB,CAAC,EAfI,IAAI,KAAJ,IAAI,QAeR"}
@@ -1,31 +0,0 @@
1
- declare enum Status {
2
- COMPLETE = "complete",
3
- PENDING = "pending",
4
- ERROR = "error",
5
- DELETED = "deleted"
6
- }
7
- interface RedirectParams {
8
- authUrl?: string;
9
- returnUrl?: string;
10
- state?: string;
11
- }
12
- export interface AuthRequest {
13
- id: string;
14
- redirectUri?: string;
15
- createdAt: string;
16
- bankId: string;
17
- userId?: string;
18
- scope: string;
19
- paymentId?: string;
20
- status: Status;
21
- redirectParams: RedirectParams;
22
- }
23
- export interface AuthParams {
24
- state?: string;
25
- code?: string;
26
- id_token?: string;
27
- error?: string;
28
- error_description?: string;
29
- }
30
- export {};
31
- //# sourceMappingURL=auth-request.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth-request.d.ts","sourceRoot":"","sources":["../../../types/schema/auth-request.ts"],"names":[],"mappings":"AAAA,aAAK,MAAM;IACT,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,OAAO,YAAY;CACpB;AAED,UAAU,cAAc;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAGD,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B"}
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var Status;
4
- (function (Status) {
5
- Status["COMPLETE"] = "complete";
6
- Status["PENDING"] = "pending";
7
- Status["ERROR"] = "error";
8
- Status["DELETED"] = "deleted";
9
- })(Status || (Status = {}));
10
- //# sourceMappingURL=auth-request.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth-request.js","sourceRoot":"","sources":["../../../types/schema/auth-request.ts"],"names":[],"mappings":";;AAAA,IAAK,MAKJ;AALD,WAAK,MAAM;IACT,+BAAqB,CAAA;IACrB,6BAAmB,CAAA;IACnB,yBAAe,CAAA;IACf,6BAAmB,CAAA;AACrB,CAAC,EALI,MAAM,KAAN,MAAM,QAKV"}
@@ -1,11 +0,0 @@
1
- export interface Amount {
2
- value: number;
3
- majorUnits: number;
4
- minorUnits: number;
5
- currency: string;
6
- }
7
- export interface Balance {
8
- amount: Amount;
9
- date: string;
10
- }
11
- //# sourceMappingURL=balance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../../types/schema/balance.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=balance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance.js","sourceRoot":"","sources":["../../../types/schema/balance.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- export interface Beneficiary {
2
- id: string;
3
- active: boolean;
4
- name?: string;
5
- reference?: string;
6
- accountNumber?: string;
7
- sortCode?: string;
8
- iban?: string;
9
- pan?: string;
10
- providerAccountId: string;
11
- providerBeneficiaryId: string;
12
- accountId: string;
13
- createdAt: string;
14
- modifiedAt: string;
15
- }
16
- export interface BeneficiaryWithDetails extends Beneficiary {
17
- postalAddress: object;
18
- }
19
- //# sourceMappingURL=beneficiary.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beneficiary.d.ts","sourceRoot":"","sources":["../../../types/schema/beneficiary.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,iBAAiB,EAAE,MAAM,CAAA;IACzB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,aAAa,EAAE,MAAM,CAAA;CACtB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=beneficiary.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"beneficiary.js","sourceRoot":"","sources":["../../../types/schema/beneficiary.ts"],"names":[],"mappings":""}
@@ -1,19 +0,0 @@
1
- import { SearchParams } from "../request";
2
- export interface Category {
3
- categoryId: string;
4
- name?: string;
5
- key?: string;
6
- group: string;
7
- }
8
- export interface CategoryGroup {
9
- id: string;
10
- key: string;
11
- }
12
- export interface CategoryPost {
13
- name: string;
14
- group: string;
15
- }
16
- export interface CategorySearchParams extends SearchParams {
17
- type?: "personal" | "business" | "all";
18
- }
19
- //# sourceMappingURL=category.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../types/schema/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAEvC,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,IAAI,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,KAAK,CAAA;CACvC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=category.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../../../types/schema/category.ts"],"names":[],"mappings":""}
@@ -1,40 +0,0 @@
1
- declare type ConnectionType = "api" | "legacy" | "test" | "zoopla" | "mouseprice";
2
- interface AccountType {
3
- beta: boolean;
4
- name: "cash:current" | "savings" | "card" | "investment" | "loan" | "mortgage:repayment" | "mortgage:interestOnly" | "pension" | "pension:definedBenefit" | "pension:definedContribution" | "asset" | "properties:residential" | "properties:buyToLet" | "crypto";
5
- }
6
- declare type UserType = "personal" | "business";
7
- declare type Payments = "domestic";
8
- declare type Status = "AVAILABLE" | "PARTIALLY_AVAILABLE" | "TEMPORARILY_UNAVAILABLE" | "PERMANENTLY_UNAVAILABLE";
9
- export interface WellKnownConnection {
10
- id: string;
11
- name: string;
12
- type: ConnectionType;
13
- country: string;
14
- parentRef: string;
15
- bankRef: string;
16
- isBeta: boolean;
17
- accountTypes: AccountType[];
18
- iconUrl: string;
19
- userTypes: UserType[];
20
- payments: Payments[];
21
- status: {
22
- sync: Status;
23
- auth: Status;
24
- };
25
- }
26
- export interface UserConnection {
27
- id: string;
28
- name: string;
29
- type: ConnectionType;
30
- connectedOn: string;
31
- lastUpdated: string;
32
- expiresAt: string;
33
- accountIds: string[];
34
- status: "ok" | "error";
35
- error?: "resync" | "sync_error" | "sync_partial" | "mfa_required" | "credentials_error";
36
- userConsentedAt?: string;
37
- tppConsent?: boolean;
38
- }
39
- export {};
40
- //# sourceMappingURL=connection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../../types/schema/connection.ts"],"names":[],"mappings":"AAAA,aAAK,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,YAAY,CAAA;AAEzE,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,cAAc,GAAG,SAAS,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,GAAG,oBAAoB,GAAG,uBAAuB,GAAG,SAAS,GAAG,wBAAwB,GAAG,6BAA6B,GAAG,OAAO,GAAG,wBAAwB,GAAG,qBAAqB,GAAG,QAAQ,CAAA;CAClQ;AAED,aAAK,QAAQ,GAAG,UAAU,GAAG,UAAU,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