@riocrypto/common 1.0.1430 → 1.0.1432
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.
|
@@ -134,7 +134,7 @@ export declare class RioAdminClient {
|
|
|
134
134
|
secret: string;
|
|
135
135
|
}>;
|
|
136
136
|
getAuth(id: string): Promise<Auth>;
|
|
137
|
-
getAuths(): Promise<Auth[]>;
|
|
137
|
+
getAuths(userId?: string): Promise<Auth[]>;
|
|
138
138
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
139
139
|
createBridgePlaidLink(userId: string): Promise<string>;
|
|
140
140
|
refreshAdminToken(): Promise<void>;
|
|
@@ -219,7 +219,7 @@ export declare class RioAdminClient {
|
|
|
219
219
|
paymentId: string;
|
|
220
220
|
}>;
|
|
221
221
|
addAuthorizedPhoneNumber(id: string, phoneNumber: string): Promise<User>;
|
|
222
|
-
deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
222
|
+
deleteAuthorizedPhoneNumber(phoneNumber: string, userId: string): Promise<User>;
|
|
223
223
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
224
224
|
updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
|
|
225
225
|
deleteAuth(id: string): Promise<void>;
|
|
@@ -437,9 +437,15 @@ class RioAdminClient {
|
|
|
437
437
|
return response.data;
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
|
-
getAuths() {
|
|
440
|
+
getAuths(userId) {
|
|
441
441
|
return __awaiter(this, void 0, void 0, function* () {
|
|
442
|
-
const response = yield this.axios.get(`/api/auth
|
|
442
|
+
const response = yield this.axios.get(`/api/auth`, {
|
|
443
|
+
params: userId
|
|
444
|
+
? {
|
|
445
|
+
userId,
|
|
446
|
+
}
|
|
447
|
+
: undefined,
|
|
448
|
+
});
|
|
443
449
|
return response.data;
|
|
444
450
|
});
|
|
445
451
|
}
|
|
@@ -792,9 +798,9 @@ class RioAdminClient {
|
|
|
792
798
|
return data;
|
|
793
799
|
});
|
|
794
800
|
}
|
|
795
|
-
deleteAuthorizedPhoneNumber(phoneNumber) {
|
|
801
|
+
deleteAuthorizedPhoneNumber(phoneNumber, userId) {
|
|
796
802
|
return __awaiter(this, void 0, void 0, function* () {
|
|
797
|
-
const { data } = yield this.axios.delete(`/api/users/authorized-phone-numbers/${phoneNumber}`);
|
|
803
|
+
const { data } = yield this.axios.delete(`/api/users/${userId}/authorized-phone-numbers/${phoneNumber}`);
|
|
798
804
|
return data;
|
|
799
805
|
});
|
|
800
806
|
}
|
|
@@ -96,7 +96,7 @@ export declare class RioClient {
|
|
|
96
96
|
}>;
|
|
97
97
|
getAuth(id: string): Promise<Auth>;
|
|
98
98
|
getAuthWithoutId(): Promise<Auth>;
|
|
99
|
-
getAuths(): Promise<Auth[]>;
|
|
99
|
+
getAuths(userId?: string): Promise<Auth[]>;
|
|
100
100
|
deleteAuth(id: string): Promise<void>;
|
|
101
101
|
getSecurityQuestion(): Promise<SecurityQuestion>;
|
|
102
102
|
authHasSecurityQuestion(): Promise<Boolean>;
|
|
@@ -174,7 +174,7 @@ export declare class RioClient {
|
|
|
174
174
|
paymentId: string;
|
|
175
175
|
}>;
|
|
176
176
|
addAuthorizedPhoneNumber(phoneNumber: string, userId?: string): Promise<User>;
|
|
177
|
-
deleteAuthorizedPhoneNumber(phoneNumber: string): Promise<User>;
|
|
177
|
+
deleteAuthorizedPhoneNumber(phoneNumber: string, userId: string): Promise<User>;
|
|
178
178
|
createKushkiBankPayment(orderId: string): Promise<any>;
|
|
179
179
|
updateAuth(update: AuthUpdate, id: string): Promise<Auth>;
|
|
180
180
|
getInvoice(orderId: string): Promise<Invoice>;
|
|
@@ -323,9 +323,15 @@ class RioClient {
|
|
|
323
323
|
return response.data;
|
|
324
324
|
});
|
|
325
325
|
}
|
|
326
|
-
getAuths() {
|
|
326
|
+
getAuths(userId) {
|
|
327
327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
-
const response = yield this.axios.get(`/api/auth
|
|
328
|
+
const response = yield this.axios.get(`/api/auth`, {
|
|
329
|
+
params: userId
|
|
330
|
+
? {
|
|
331
|
+
userId,
|
|
332
|
+
}
|
|
333
|
+
: undefined,
|
|
334
|
+
});
|
|
329
335
|
return response.data;
|
|
330
336
|
});
|
|
331
337
|
}
|
|
@@ -651,9 +657,9 @@ class RioClient {
|
|
|
651
657
|
return data;
|
|
652
658
|
});
|
|
653
659
|
}
|
|
654
|
-
deleteAuthorizedPhoneNumber(phoneNumber) {
|
|
660
|
+
deleteAuthorizedPhoneNumber(phoneNumber, userId) {
|
|
655
661
|
return __awaiter(this, void 0, void 0, function* () {
|
|
656
|
-
const { data } = yield this.axios.delete(`/api/users/authorized-phone-numbers/${phoneNumber}`);
|
|
662
|
+
const { data } = yield this.axios.delete(`/api/users/${userId}/authorized-phone-numbers/${phoneNumber}`);
|
|
657
663
|
return data;
|
|
658
664
|
});
|
|
659
665
|
}
|