@riocrypto/common 1.0.1519 → 1.0.1521
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.
|
@@ -318,8 +318,8 @@ export declare class RioAdminClient {
|
|
|
318
318
|
deleteAuth(id: string): Promise<void>;
|
|
319
319
|
getInvoice(orderId: string): Promise<Invoice>;
|
|
320
320
|
createWebhookRegistration({ userId, brokerId, type, url, }: {
|
|
321
|
-
userId
|
|
322
|
-
brokerId
|
|
321
|
+
userId?: string;
|
|
322
|
+
brokerId?: string;
|
|
323
323
|
type: WebhookType;
|
|
324
324
|
url: string;
|
|
325
325
|
}): Promise<{
|
|
@@ -1036,10 +1036,9 @@ class RioAdminClient {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
createWebhookRegistration({ userId, brokerId, type, url, }) {
|
|
1038
1038
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1039
|
-
const { data } = yield this.axios.post(
|
|
1039
|
+
const { data } = yield this.axios.post(`/api/webhooks/${type}`, {
|
|
1040
1040
|
userId,
|
|
1041
1041
|
brokerId,
|
|
1042
|
-
type,
|
|
1043
1042
|
url,
|
|
1044
1043
|
});
|
|
1045
1044
|
return data;
|
|
@@ -260,8 +260,8 @@ export declare class RioClient {
|
|
|
260
260
|
}>;
|
|
261
261
|
getOnboarding(id: string): Promise<Onboarding>;
|
|
262
262
|
createWebhookRegistration({ userId, brokerId, type, url, }: {
|
|
263
|
-
userId
|
|
264
|
-
brokerId
|
|
263
|
+
userId?: string;
|
|
264
|
+
brokerId?: string;
|
|
265
265
|
type: WebhookType;
|
|
266
266
|
url: string;
|
|
267
267
|
}): Promise<{
|
|
@@ -812,10 +812,9 @@ class RioClient {
|
|
|
812
812
|
}
|
|
813
813
|
createWebhookRegistration({ userId, brokerId, type, url, }) {
|
|
814
814
|
return __awaiter(this, void 0, void 0, function* () {
|
|
815
|
-
const { data } = yield this.axios.post(
|
|
815
|
+
const { data } = yield this.axios.post(`/api/webhooks/${type}`, {
|
|
816
816
|
userId,
|
|
817
817
|
brokerId,
|
|
818
|
-
type,
|
|
819
818
|
url,
|
|
820
819
|
});
|
|
821
820
|
return data;
|