@riocrypto/common 1.0.553 → 1.0.555
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/build/errors/partner-auth-already-exists-error.d.ts +8 -0
- package/build/errors/partner-auth-already-exists-error.js +15 -0
- package/build/errors/partner-auth-not-found-error.d.ts +8 -0
- package/build/errors/partner-auth-not-found-error.js +15 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartnerAuthAlreadyExistsError = void 0;
|
|
4
|
+
const custom_error_1 = require("./custom-error");
|
|
5
|
+
class PartnerAuthAlreadyExistsError extends custom_error_1.CustomError {
|
|
6
|
+
constructor() {
|
|
7
|
+
super("Partner auth with provided email already exists");
|
|
8
|
+
this.statusCode = 409;
|
|
9
|
+
Object.setPrototypeOf(this, PartnerAuthAlreadyExistsError.prototype);
|
|
10
|
+
}
|
|
11
|
+
serializeErrors() {
|
|
12
|
+
return [{ message: "Partner auth with provided email already exists" }];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.PartnerAuthAlreadyExistsError = PartnerAuthAlreadyExistsError;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartnerAuthNotFoundError = void 0;
|
|
4
|
+
const custom_error_1 = require("./custom-error");
|
|
5
|
+
class PartnerAuthNotFoundError extends custom_error_1.CustomError {
|
|
6
|
+
constructor() {
|
|
7
|
+
super("Partner auth not found");
|
|
8
|
+
this.statusCode = 404;
|
|
9
|
+
Object.setPrototypeOf(this, PartnerAuthNotFoundError.prototype);
|
|
10
|
+
}
|
|
11
|
+
serializeErrors() {
|
|
12
|
+
return [{ message: "Partner auth not found" }];
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.PartnerAuthNotFoundError = PartnerAuthNotFoundError;
|
package/build/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export * from "./errors/partner-not-found-error";
|
|
|
30
30
|
export * from "./errors/insufficient-liquidity-error";
|
|
31
31
|
export * from "./errors/rio-settings-already-exists-error";
|
|
32
32
|
export * from "./errors/wrong-security-answer-error";
|
|
33
|
+
export * from "./errors/partner-auth-already-exists-error";
|
|
34
|
+
export * from "./errors/partner-auth-not-found-error";
|
|
33
35
|
export * from "./events/base-listener";
|
|
34
36
|
export * from "./events/base-publisher";
|
|
35
37
|
export * from "./events/subjects";
|
package/build/index.js
CHANGED
|
@@ -46,6 +46,8 @@ __exportStar(require("./errors/partner-not-found-error"), exports);
|
|
|
46
46
|
__exportStar(require("./errors/insufficient-liquidity-error"), exports);
|
|
47
47
|
__exportStar(require("./errors/rio-settings-already-exists-error"), exports);
|
|
48
48
|
__exportStar(require("./errors/wrong-security-answer-error"), exports);
|
|
49
|
+
__exportStar(require("./errors/partner-auth-already-exists-error"), exports);
|
|
50
|
+
__exportStar(require("./errors/partner-auth-not-found-error"), exports);
|
|
49
51
|
__exportStar(require("./events/base-listener"), exports);
|
|
50
52
|
__exportStar(require("./events/base-publisher"), exports);
|
|
51
53
|
__exportStar(require("./events/subjects"), exports);
|