@mft/moneyhub-api-client 5.6.1 → 5.8.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.
- package/CHANGELOG.md +7 -0
- package/dist/index.d.ts +39 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/requests/index.d.ts +36 -0
- package/dist/requests/index.d.ts.map +1 -1
- package/dist/requests/index.js +4 -0
- package/dist/requests/index.js.map +1 -1
- package/dist/requests/notification-thresholds.d.ts +5 -0
- package/dist/requests/notification-thresholds.d.ts.map +1 -0
- package/dist/requests/notification-thresholds.js +42 -0
- package/dist/requests/notification-thresholds.js.map +1 -0
- package/dist/requests/osip.d.ts +5 -0
- package/dist/requests/osip.d.ts.map +1 -0
- package/dist/requests/osip.js +37 -0
- package/dist/requests/osip.js.map +1 -0
- package/dist/requests/types/notification-thresholds.d.ts +25 -0
- package/dist/requests/types/notification-thresholds.d.ts.map +1 -0
- package/dist/requests/types/notification-thresholds.js +3 -0
- package/dist/requests/types/notification-thresholds.js.map +1 -0
- package/dist/requests/types/osip.d.ts +21 -0
- package/dist/requests/types/osip.d.ts.map +1 -0
- package/dist/requests/types/osip.js +3 -0
- package/dist/requests/types/osip.js.map +1 -0
- package/dist/schema/config.d.ts +1 -0
- package/dist/schema/config.d.ts.map +1 -1
- package/dist/schema/notification-threshold.d.ts +9 -0
- package/dist/schema/notification-threshold.d.ts.map +1 -0
- package/dist/schema/notification-threshold.js +3 -0
- package/dist/schema/notification-threshold.js.map +1 -0
- package/dist/schema/osip.d.ts +65 -0
- package/dist/schema/osip.d.ts.map +1 -0
- package/dist/schema/osip.js +3 -0
- package/dist/schema/osip.js.map +1 -0
- package/package.json +1 -1
- package/readme.md +51 -0
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -282,6 +282,42 @@ declare const _Moneyhub: (apiClientConfig: ApiClientConfig) => Promise<{
|
|
|
282
282
|
getPayee: ({ id }: {
|
|
283
283
|
id: string;
|
|
284
284
|
}, options?: import("./request").ExtraOptions | undefined) => Promise<import("./request").ApiResponse<Payees.Payee>>;
|
|
285
|
+
getOsipAccounts: ({ userId, params }: {
|
|
286
|
+
userId?: string | undefined;
|
|
287
|
+
params?: import("./request").SearchParams | undefined;
|
|
288
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<Omit<import("./request").ApiResponse<Osip.OsipAccount[]>, "links">>;
|
|
289
|
+
getOsipAccount: ({ userId, accountId }: {
|
|
290
|
+
userId?: string | undefined;
|
|
291
|
+
accountId: string;
|
|
292
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<Omit<import("./request").ApiResponse<Osip.OsipAccount>, "links">>;
|
|
293
|
+
getOsipAccountHoldings: ({ userId, accountId, }: {
|
|
294
|
+
userId?: string | undefined;
|
|
295
|
+
accountId: string;
|
|
296
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<import("./request").ApiResponse<Osip.OsipHolding[]>>;
|
|
297
|
+
getOsipAccountTransactions: ({ userId, accountId, }: {
|
|
298
|
+
userId?: string | undefined;
|
|
299
|
+
accountId: string;
|
|
300
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<import("./request").ApiResponse<Osip.OsipTransaction[]>>;
|
|
301
|
+
getNotificationThresholds: ({}: {
|
|
302
|
+
userId?: string | undefined;
|
|
303
|
+
accountId: string;
|
|
304
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<import("./request").ApiResponse<NotificationThresholds.NotificationThreshold[]>>;
|
|
305
|
+
addNotificationThreshold: ({}: {
|
|
306
|
+
userId?: string | undefined;
|
|
307
|
+
accountId: string;
|
|
308
|
+
threshold: NotificationThresholds.NotificationThresholdBody;
|
|
309
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<import("./request").ApiResponse<NotificationThresholds.NotificationThreshold>>;
|
|
310
|
+
updateNotificationThreshold: ({}: {
|
|
311
|
+
userId?: string | undefined;
|
|
312
|
+
accountId: string;
|
|
313
|
+
thresholdId: string;
|
|
314
|
+
threshold: NotificationThresholds.NotificationThresholdBody;
|
|
315
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<import("./request").ApiResponse<NotificationThresholds.NotificationThreshold>>;
|
|
316
|
+
deleteNotificationThreshold: ({}: {
|
|
317
|
+
userId?: string | undefined;
|
|
318
|
+
accountId: string;
|
|
319
|
+
thresholdId: string;
|
|
320
|
+
}, options?: import("./request").ExtraOptions | undefined) => Promise<void>;
|
|
285
321
|
getCategories: ({ userId, params, }: {
|
|
286
322
|
userId?: string | undefined;
|
|
287
323
|
params?: (import("./request").SearchParams & {
|
|
@@ -642,6 +678,8 @@ import type * as Beneficiaries from "./schema/beneficiary";
|
|
|
642
678
|
import type * as Categories from "./schema/category";
|
|
643
679
|
import type * as Counterparties from "./schema/counterparty";
|
|
644
680
|
import type * as Holdings from "./schema/holding";
|
|
681
|
+
import type * as NotificationThresholds from "./schema/notification-threshold";
|
|
682
|
+
import type * as Osip from "./schema/osip";
|
|
645
683
|
import type * as Payees from "./schema/payee";
|
|
646
684
|
import type * as Payments from "./schema/payment";
|
|
647
685
|
import type * as Projects from "./schema/project";
|
|
@@ -655,5 +693,5 @@ import type * as Syncs from "./schema/sync";
|
|
|
655
693
|
import type * as Taxes from "./schema/tax";
|
|
656
694
|
import type * as Transactions from "./schema/transaction";
|
|
657
695
|
import type * as Users from "./schema/user";
|
|
658
|
-
export { Accounts, Affordability, AuthRequests, Balances, Beneficiaries, Categories, Counterparties, Holdings, Payees, Payments, Projects, RegularTransactions, RentalRecords, SavingsGoals, SpendingAnalysis, SpendingGoals, StandingOrders, Syncs, Taxes, Transactions, Users, ApiClientConfig, Moneyhub, };
|
|
696
|
+
export { Accounts, Affordability, AuthRequests, Balances, Beneficiaries, Categories, Counterparties, Holdings, NotificationThresholds, Osip, Payees, Payments, Projects, RegularTransactions, RentalRecords, SavingsGoals, SpendingAnalysis, SpendingGoals, StandingOrders, Syncs, Taxes, Transactions, Users, ApiClientConfig, Moneyhub, };
|
|
659
697
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,CAAA;AAMxD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAA;AAGpD,QAAA,MAAM,SAAS,oBAA2B,eAAe
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,CAAA;AAMxD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAA;AAGpD,QAAA,MAAM,SAAS,oBAA2B,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,MAAM,EAAE,OAAO,EAAC,CAAC;QACrC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACjD,UAAU,EAAV,0BAAU;KACX,CAAA;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAGD,MAAM,QAAQ,GAAoE,SAAS,CAAA;AAmDzF,4BAAQ"}
|
package/dist/requests/index.d.ts
CHANGED
|
@@ -277,6 +277,42 @@ declare const _default: ({ config, request }: RequestsParams) => {
|
|
|
277
277
|
getPayee: ({ id }: {
|
|
278
278
|
id: string;
|
|
279
279
|
}, options?: import("../request").ExtraOptions | undefined) => Promise<import("../request").ApiResponse<import("../schema/payee").Payee>>;
|
|
280
|
+
getOsipAccounts: ({ userId, params }: {
|
|
281
|
+
userId?: string | undefined;
|
|
282
|
+
params?: import("../request").SearchParams | undefined;
|
|
283
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<Omit<import("../request").ApiResponse<import("../schema/osip").OsipAccount[]>, "links">>;
|
|
284
|
+
getOsipAccount: ({ userId, accountId }: {
|
|
285
|
+
userId?: string | undefined;
|
|
286
|
+
accountId: string;
|
|
287
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<Omit<import("../request").ApiResponse<import("../schema/osip").OsipAccount>, "links">>;
|
|
288
|
+
getOsipAccountHoldings: ({ userId, accountId, }: {
|
|
289
|
+
userId?: string | undefined;
|
|
290
|
+
accountId: string;
|
|
291
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<import("../request").ApiResponse<import("../schema/osip").OsipHolding[]>>;
|
|
292
|
+
getOsipAccountTransactions: ({ userId, accountId, }: {
|
|
293
|
+
userId?: string | undefined;
|
|
294
|
+
accountId: string;
|
|
295
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<import("../request").ApiResponse<import("../schema/osip").OsipTransaction[]>>;
|
|
296
|
+
getNotificationThresholds: ({}: {
|
|
297
|
+
userId?: string | undefined;
|
|
298
|
+
accountId: string;
|
|
299
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<import("../request").ApiResponse<import("../schema/notification-threshold").NotificationThreshold[]>>;
|
|
300
|
+
addNotificationThreshold: ({}: {
|
|
301
|
+
userId?: string | undefined;
|
|
302
|
+
accountId: string;
|
|
303
|
+
threshold: import("../schema/notification-threshold").NotificationThresholdBody;
|
|
304
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<import("../request").ApiResponse<import("../schema/notification-threshold").NotificationThreshold>>;
|
|
305
|
+
updateNotificationThreshold: ({}: {
|
|
306
|
+
userId?: string | undefined;
|
|
307
|
+
accountId: string;
|
|
308
|
+
thresholdId: string;
|
|
309
|
+
threshold: import("../schema/notification-threshold").NotificationThresholdBody;
|
|
310
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<import("../request").ApiResponse<import("../schema/notification-threshold").NotificationThreshold>>;
|
|
311
|
+
deleteNotificationThreshold: ({}: {
|
|
312
|
+
userId?: string | undefined;
|
|
313
|
+
accountId: string;
|
|
314
|
+
thresholdId: string;
|
|
315
|
+
}, options?: import("../request").ExtraOptions | undefined) => Promise<void>;
|
|
280
316
|
getCategories: ({ userId, params, }: {
|
|
281
317
|
userId?: string | undefined;
|
|
282
318
|
params?: (import("../request").SearchParams & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/requests/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;8CA2BN,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAjD,wBA2BC"}
|
package/dist/requests/index.js
CHANGED
|
@@ -8,6 +8,8 @@ const affordability_1 = __importDefault(require("./affordability"));
|
|
|
8
8
|
const auth_requests_1 = __importDefault(require("./auth-requests"));
|
|
9
9
|
const beneficiaries_1 = __importDefault(require("./beneficiaries"));
|
|
10
10
|
const categories_1 = __importDefault(require("./categories"));
|
|
11
|
+
const notification_thresholds_1 = __importDefault(require("./notification-thresholds"));
|
|
12
|
+
const osip_1 = __importDefault(require("./osip"));
|
|
11
13
|
const payees_1 = __importDefault(require("./payees"));
|
|
12
14
|
const payments_1 = __importDefault(require("./payments"));
|
|
13
15
|
const projects_1 = __importDefault(require("./projects"));
|
|
@@ -32,6 +34,8 @@ exports.default = ({ config, request }) => {
|
|
|
32
34
|
...(0, auth_requests_1.default)({ config, request }),
|
|
33
35
|
...(0, beneficiaries_1.default)({ config, request }),
|
|
34
36
|
...(0, categories_1.default)({ config, request }),
|
|
37
|
+
...(0, notification_thresholds_1.default)({ config, request }),
|
|
38
|
+
...(0, osip_1.default)({ config, request }),
|
|
35
39
|
...(0, payees_1.default)({ config, request }),
|
|
36
40
|
...(0, payments_1.default)({ config, request }),
|
|
37
41
|
...(0, projects_1.default)({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,EAAC,CAAC;QACpC,GAAG,IAAA,cAAI,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QAC1B,GAAG,IAAA,aAAG,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QACzB,GAAG,IAAA,2BAAgB,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QACtC,GAAG,IAAA,4BAAiB,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QACvC,GAAG,IAAA,sBAAY,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QAClC,GAAG,IAAA,yBAAe,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QACrC,GAAG,IAAA,+BAAmB,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;KAC1C,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RequestsParams } from "../request";
|
|
2
|
+
import { NotificationThresholdRequests } from "./types/notification-thresholds";
|
|
3
|
+
declare const _default: ({ config, request }: RequestsParams) => NotificationThresholdRequests;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=notification-thresholds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-thresholds.d.ts","sourceRoot":"","sources":["../../src/requests/notification-thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AACzC,OAAO,EAAC,6BAA6B,EAAC,MAAM,iCAAiC,CAAA;8CAE1C,cAAc,KAAG,6BAA6B;AAAjF,wBA8CC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = ({ config, request }) => {
|
|
4
|
+
const { resourceServerUrl } = config;
|
|
5
|
+
return {
|
|
6
|
+
getNotificationThresholds: async ({ userId, accountId }, options) => request(`${resourceServerUrl}/accounts/${accountId}/notification-thresholds`, {
|
|
7
|
+
cc: {
|
|
8
|
+
scope: "accounts:read",
|
|
9
|
+
sub: userId,
|
|
10
|
+
},
|
|
11
|
+
options,
|
|
12
|
+
}),
|
|
13
|
+
addNotificationThreshold: async ({ userId, accountId, threshold }, options) => request(`${resourceServerUrl}/accounts/${accountId}/notification-thresholds`, {
|
|
14
|
+
method: "POST",
|
|
15
|
+
cc: {
|
|
16
|
+
scope: "accounts:read accounts:write",
|
|
17
|
+
sub: userId,
|
|
18
|
+
},
|
|
19
|
+
options,
|
|
20
|
+
body: threshold,
|
|
21
|
+
}),
|
|
22
|
+
updateNotificationThreshold: async ({ userId, accountId, thresholdId, threshold }, options) => request(`${resourceServerUrl}/accounts/${accountId}/notification-thresholds/${thresholdId}`, {
|
|
23
|
+
method: "PATCH",
|
|
24
|
+
cc: {
|
|
25
|
+
scope: "accounts:read accounts:write",
|
|
26
|
+
sub: userId,
|
|
27
|
+
},
|
|
28
|
+
options,
|
|
29
|
+
body: threshold,
|
|
30
|
+
}),
|
|
31
|
+
deleteNotificationThreshold: async ({ userId, accountId, thresholdId }, options) => request(`${resourceServerUrl}/accounts/${accountId}/notification-thresholds/${thresholdId}`, {
|
|
32
|
+
method: "DELETE",
|
|
33
|
+
cc: {
|
|
34
|
+
scope: "accounts:read accounts:write",
|
|
35
|
+
sub: userId,
|
|
36
|
+
},
|
|
37
|
+
options,
|
|
38
|
+
returnStatus: true,
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=notification-thresholds.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-thresholds.js","sourceRoot":"","sources":["../../src/requests/notification-thresholds.ts"],"names":[],"mappings":";;AAGA,kBAAe,CAAC,EAAC,MAAM,EAAE,OAAO,EAAiB,EAAiC,EAAE;IAClF,MAAM,EAAC,iBAAiB,EAAC,GAAG,MAAM,CAAA;IAElC,OAAO;QACL,yBAAyB,EAAE,K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|
1
|
+
{"version":3,"file":"osip.d.ts","sourceRoot":"","sources":["../../src/requests/osip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,cAAc,CAAA;+CAK3C,cAAc,KAAG,YAAY;AAHhC,wBA+CC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = ({ config, request, }) => {
|
|
4
|
+
const { osipResourceServerUrl } = config;
|
|
5
|
+
return {
|
|
6
|
+
getOsipAccounts: async ({ userId, params = {} }, options) => request(`${osipResourceServerUrl}/accounts`, {
|
|
7
|
+
searchParams: params,
|
|
8
|
+
cc: {
|
|
9
|
+
scope: "osip:read",
|
|
10
|
+
sub: userId,
|
|
11
|
+
},
|
|
12
|
+
options,
|
|
13
|
+
}),
|
|
14
|
+
getOsipAccount: async ({ userId, accountId }, options) => request(`${osipResourceServerUrl}/accounts/${accountId}`, {
|
|
15
|
+
cc: {
|
|
16
|
+
scope: "osip:read",
|
|
17
|
+
sub: userId,
|
|
18
|
+
},
|
|
19
|
+
options,
|
|
20
|
+
}),
|
|
21
|
+
getOsipAccountHoldings: async ({ userId, accountId }, options) => request(`${osipResourceServerUrl}/accounts/${accountId}/holdings`, {
|
|
22
|
+
cc: {
|
|
23
|
+
scope: "osip:read",
|
|
24
|
+
sub: userId,
|
|
25
|
+
},
|
|
26
|
+
options,
|
|
27
|
+
}),
|
|
28
|
+
getOsipAccountTransactions: async ({ userId, accountId }, options) => request(`${osipResourceServerUrl}/accounts/${accountId}/transactions`, {
|
|
29
|
+
cc: {
|
|
30
|
+
scope: "osip:read",
|
|
31
|
+
sub: userId,
|
|
32
|
+
},
|
|
33
|
+
options,
|
|
34
|
+
}),
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=osip.js.map
|
|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@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ApiResponse, ExtraOptions } from "../../request";
|
|
2
|
+
import { NotificationThreshold, NotificationThresholdBody } from "../../schema/notification-threshold";
|
|
3
|
+
export declare type NotificationThresholdRequests = {
|
|
4
|
+
getNotificationThresholds: ({}: {
|
|
5
|
+
userId?: string;
|
|
6
|
+
accountId: string;
|
|
7
|
+
}, options?: ExtraOptions) => Promise<ApiResponse<NotificationThreshold[]>>;
|
|
8
|
+
addNotificationThreshold: ({}: {
|
|
9
|
+
userId?: string;
|
|
10
|
+
accountId: string;
|
|
11
|
+
threshold: NotificationThresholdBody;
|
|
12
|
+
}, options?: ExtraOptions) => Promise<ApiResponse<NotificationThreshold>>;
|
|
13
|
+
updateNotificationThreshold: ({}: {
|
|
14
|
+
userId?: string;
|
|
15
|
+
accountId: string;
|
|
16
|
+
thresholdId: string;
|
|
17
|
+
threshold: NotificationThresholdBody;
|
|
18
|
+
}, options?: ExtraOptions) => Promise<ApiResponse<NotificationThreshold>>;
|
|
19
|
+
deleteNotificationThreshold: ({}: {
|
|
20
|
+
userId?: string;
|
|
21
|
+
accountId: string;
|
|
22
|
+
thresholdId: string;
|
|
23
|
+
}, options?: ExtraOptions) => Promise<void>;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=notification-thresholds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-thresholds.d.ts","sourceRoot":"","sources":["../../../src/requests/types/notification-thresholds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,YAAY,EAAC,MAAM,eAAe,CAAA;AACvD,OAAO,EAAC,qBAAqB,EAAE,yBAAyB,EAAC,MAAM,qCAAqC,CAAA;AAEpG,oBAAY,6BAA6B,GAAG;IAC1C,yBAAyB,EAAE,CAAC,EAAE,EAAE;QAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,WAAW,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAA;IAE3E,wBAAwB,EAAE,CAAC,EAAE,EAAE;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,yBAAyB,CAAA;KAAC,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAA;IAEjL,2BAA2B,EAAE,CAAC,EAAE,EAAE;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,yBAAyB,CAAA;KAAC,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC,CAAA;IAEzM,2BAA2B,EAAE,CAAC,EAAE,EAAE;QAChC,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;QACjB,WAAW,EAAE,MAAM,CAAA;KACpB,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAC5C,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-thresholds.js","sourceRoot":"","sources":["../../../src/requests/types/notification-thresholds.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ApiResponse, ExtraOptions, SearchParams } from "../../request";
|
|
2
|
+
import type { OsipAccount, OsipHolding, OsipTransaction } from "../../schema/osip";
|
|
3
|
+
export interface OsipRequests {
|
|
4
|
+
getOsipAccounts: ({ userId, params }: {
|
|
5
|
+
userId?: string;
|
|
6
|
+
params?: SearchParams;
|
|
7
|
+
}, options?: ExtraOptions) => Promise<Omit<ApiResponse<OsipAccount[]>, "links">>;
|
|
8
|
+
getOsipAccount: ({ userId, accountId }: {
|
|
9
|
+
userId?: string;
|
|
10
|
+
accountId: string;
|
|
11
|
+
}, options?: ExtraOptions) => Promise<Omit<ApiResponse<OsipAccount>, "links">>;
|
|
12
|
+
getOsipAccountHoldings: ({ userId, accountId, }: {
|
|
13
|
+
userId?: string;
|
|
14
|
+
accountId: string;
|
|
15
|
+
}, options?: ExtraOptions) => Promise<ApiResponse<OsipHolding[]>>;
|
|
16
|
+
getOsipAccountTransactions: ({ userId, accountId, }: {
|
|
17
|
+
userId?: string;
|
|
18
|
+
accountId: string;
|
|
19
|
+
}, options?: ExtraOptions) => Promise<ApiResponse<OsipTransaction[]>>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=osip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"osip.d.ts","sourceRoot":"","sources":["../../../src/requests/types/osip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAE,YAAY,EAAE,YAAY,EAAC,MAAM,eAAe,CAAA;AAC1E,OAAO,KAAK,EAAC,WAAW,EAAE,WAAW,EAAE,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAGhF,MAAM,WAAW,YAAY;IAC3B,eAAe,EAAE,CAAC,EAAC,MAAM,EAAE,MAAM,EAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,YAAY,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC,CAAA;IAC7J,cAAc,EAAE,CAAC,EAAC,MAAM,EAAE,SAAS,EAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC,CAAC,CAAA;IACzJ,sBAAsB,EAAE,CAAC,EACvB,MAAM,EACN,SAAS,GACV,EAAE;QACD,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAA;IACjE,0BAA0B,EAAE,CAAC,EAC3B,MAAM,EACN,SAAS,GACV,EAAE;QACD,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;CACtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"osip.js","sourceRoot":"","sources":["../../../src/requests/types/osip.ts"],"names":[],"mappings":""}
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export declare type ResponseType = "code" | "token" | "id_token" | "code token"
|
|
|
47
47
|
export declare type TokenEndpointAuthMethod = "client_secret_post" | "client_secret_basic" | "client_secret_jwt" | "private_key_jwt";
|
|
48
48
|
export interface ApiClientConfig {
|
|
49
49
|
resourceServerUrl: string;
|
|
50
|
+
osipResourceServerUrl?: string;
|
|
50
51
|
identityServiceUrl: string;
|
|
51
52
|
accountConnectUrl?: string;
|
|
52
53
|
options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/schema/config.ts"],"names":[],"mappings":"AAAA,oBAAY,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;AAChC,oBAAY,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;AAC7G,oBAAY,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,OAAO,CAAC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AAED,oBAAY,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAGtE,oBAAY,qBAAqB,GAC7B,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,MAAM,CAAC;AAEX,oBAAY,YAAY,GACpB,MAAM,GACN,OAAO,GACP,UAAU,GACV,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,qBAAqB,CAAC;AAE1B,oBAAY,uBAAuB,GAC/B,oBAAoB,GACpB,qBAAqB,GACrB,mBAAmB,GACnB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,eAAe;IAC9B,iBAAiB,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,MAAM,CAAA;KACjB,CAAA;IACD,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAA;QACjB,aAAa,EAAE,MAAM,CAAA;QACrB,0BAA0B,EAAE,uBAAuB,CAAA;QACnD,4BAA4B,EAAE,qBAAqB,CAAA;QACnD,0BAA0B,EAAE,qBAAqB,CAAA;QACjD,YAAY,EAAE,MAAM,CAAA;QACpB,aAAa,EAAE,YAAY,CAAA;QAC3B,IAAI,EAAE,UAAU,EAAE,CAAA;KACnB,CAAA;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type NotificationThresholdType = "lt" | "gt";
|
|
2
|
+
export declare type NotificationThresholdBody = {
|
|
3
|
+
value: number;
|
|
4
|
+
type: NotificationThresholdType;
|
|
5
|
+
};
|
|
6
|
+
export declare type NotificationThreshold = NotificationThresholdBody & {
|
|
7
|
+
id: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=notification-threshold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-threshold.d.ts","sourceRoot":"","sources":["../../src/schema/notification-threshold.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB,GAClC,IAAI,GACJ,IAAI,CAAA;AAEP,oBAAY,yBAAyB,GAAG;IACtC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,yBAAyB,CAAA;CAChC,CAAA;AAED,oBAAY,qBAAqB,GAAG,yBAAyB,GAAG;IAC9D,EAAE,EAAE,MAAM,CAAA;CACX,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-threshold.js","sourceRoot":"","sources":["../../src/schema/notification-threshold.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare type PortfolioType = "LISA" | "ISA" | "SIPP" | "GIA";
|
|
2
|
+
interface Valuation {
|
|
3
|
+
dateUpdated: string;
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
}
|
|
7
|
+
interface Quantity {
|
|
8
|
+
dateUpdate: string;
|
|
9
|
+
settledQuantity: number;
|
|
10
|
+
}
|
|
11
|
+
interface Product {
|
|
12
|
+
name: string;
|
|
13
|
+
type: "ISIN" | "SEDOL" | "Citi Code" | "CUSIP" | "Fund Code" | "Ticker Code";
|
|
14
|
+
id: string;
|
|
15
|
+
secondaryType: string;
|
|
16
|
+
secondaryId: string;
|
|
17
|
+
}
|
|
18
|
+
declare type TransactionType = "Redemption" | "Subscription" | "Subscription Savings Plan" | "Redemption Withdrawing Plan" | "Transfer In" | "Transfer Out" | "Switch In" | "Switch Out" | "Subscription Asset Allocation" | "Redemption Asset Allocation";
|
|
19
|
+
declare type CorporateActionType = "Dividend Reinvestment" | "Capital Gains Distribution" | "Cash Dividend" | "Dividend Option Stock Dividend" | "Liquidation" | "Merger" | "Name Change" | "Spin Off" | "Stock Split" | "Reverse Stock Split" | "Tender" | "Bonus Issue" | "Rights Distribution" | "Call On Rights" | "Change Redenomination" | "Exchange Option" | "Exchange Offer" | "Decrease In Value";
|
|
20
|
+
interface TransactionCost {
|
|
21
|
+
costType: string;
|
|
22
|
+
amount: number;
|
|
23
|
+
currency: string;
|
|
24
|
+
}
|
|
25
|
+
interface Transactions {
|
|
26
|
+
id: string;
|
|
27
|
+
tradeDate: string;
|
|
28
|
+
settlementDate: string;
|
|
29
|
+
orderDate: string;
|
|
30
|
+
quantity: number;
|
|
31
|
+
tradingCurrency: string;
|
|
32
|
+
executionPrice: number;
|
|
33
|
+
exchangeRate: number;
|
|
34
|
+
grossAmount: number;
|
|
35
|
+
transactionType: TransactionType;
|
|
36
|
+
corporateActionType: CorporateActionType;
|
|
37
|
+
bookingText: string;
|
|
38
|
+
transactionCosts: TransactionCost[];
|
|
39
|
+
}
|
|
40
|
+
export interface OsipAccount {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
portfolioType: PortfolioType;
|
|
44
|
+
portfolioId: string;
|
|
45
|
+
valuation: Valuation;
|
|
46
|
+
}
|
|
47
|
+
export interface OsipHolding {
|
|
48
|
+
id: string;
|
|
49
|
+
date: string;
|
|
50
|
+
quantity: Quantity;
|
|
51
|
+
product: Product;
|
|
52
|
+
price: Valuation;
|
|
53
|
+
valuatuion: Valuation;
|
|
54
|
+
}
|
|
55
|
+
export interface OsipTransaction {
|
|
56
|
+
id: string;
|
|
57
|
+
date: string;
|
|
58
|
+
quantity: Quantity;
|
|
59
|
+
product: Product;
|
|
60
|
+
price: Valuation;
|
|
61
|
+
valuation: Valuation;
|
|
62
|
+
transactions: Transactions;
|
|
63
|
+
}
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=osip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"osip.d.ts","sourceRoot":"","sources":["../../src/schema/osip.ts"],"names":[],"mappings":"AAAA,aAAK,aAAa,GAAG,MAA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AAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,MAAM,CAAA;IACnB,eAAe,EAAE,eAAe,CAAA;IAChC,mBAAmB,EAAE,mBAAmB,CAAA;IACxC,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,eAAe,EAAE,CAAA;CACpC;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,EAAE,aAAa,CAAA;IAC5B,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,SAAS,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,SAAS,CAAA;IAChB,UAAU,EAAE,SAAS,CAAA;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,QAAQ,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,EAAE,SAAS,CAAA;IAChB,SAAS,EAAE,SAAS,CAAA;IACpB,YAAY,EAAE,YAAY,CAAA;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"osip.js","sourceRoot":"","sources":["../../src/schema/osip.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1128,6 +1128,57 @@ const splits = await moneyhub.deleteTransactionSplits({
|
|
|
1128
1128
|
});
|
|
1129
1129
|
```
|
|
1130
1130
|
|
|
1131
|
+
#### `getOsipAccounts`
|
|
1132
|
+
|
|
1133
|
+
Get all accounts for a user. This function uses the scope `osip:read`.
|
|
1134
|
+
|
|
1135
|
+
```javascript
|
|
1136
|
+
const queryParams = { limit: 10, offset: 5 };
|
|
1137
|
+
const accounts = await moneyhub.getOsipAccounts({
|
|
1138
|
+
userId: "userId",
|
|
1139
|
+
params: queryParams,
|
|
1140
|
+
});
|
|
1141
|
+
```
|
|
1142
|
+
|
|
1143
|
+
#### `getOsipAccount`
|
|
1144
|
+
|
|
1145
|
+
Get an account for a user. This function uses the scope `osip:read`.
|
|
1146
|
+
|
|
1147
|
+
```javascript
|
|
1148
|
+
const queryParams = { limit: 10, offset: 5 };
|
|
1149
|
+
const accounts = await moneyhub.getOsipAccounts({
|
|
1150
|
+
userId: "userId",
|
|
1151
|
+
accountId: "accountId",
|
|
1152
|
+
params: queryParams,
|
|
1153
|
+
});
|
|
1154
|
+
```
|
|
1155
|
+
|
|
1156
|
+
#### `getOsipAccountHoldings`
|
|
1157
|
+
|
|
1158
|
+
Get account holdings for an account. This function uses the scope `osip:read`.
|
|
1159
|
+
|
|
1160
|
+
```javascript
|
|
1161
|
+
const queryParams = { limit: 10, offset: 5 };
|
|
1162
|
+
const accounts = await moneyhub.getOsipAccounts({
|
|
1163
|
+
userId: "userId",
|
|
1164
|
+
accountId: "accountId",
|
|
1165
|
+
params: queryParams,
|
|
1166
|
+
});
|
|
1167
|
+
```
|
|
1168
|
+
|
|
1169
|
+
#### `getOsipAccountTransactions`
|
|
1170
|
+
|
|
1171
|
+
Get account transactions. This function uses the scope `osip:read`.
|
|
1172
|
+
|
|
1173
|
+
```javascript
|
|
1174
|
+
const queryParams = { limit: 10, offset: 5 };
|
|
1175
|
+
const accounts = await moneyhub.getOsipAccounts({
|
|
1176
|
+
userId: "userId",
|
|
1177
|
+
accountId: "accountId",
|
|
1178
|
+
params: queryParams,
|
|
1179
|
+
});
|
|
1180
|
+
```
|
|
1181
|
+
|
|
1131
1182
|
#### `getGlobalCounterparties`
|
|
1132
1183
|
|
|
1133
1184
|
Get global counterparties.
|