@fintalk.ai/lambda-handlers 1.0.1 → 1.0.2
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/lib/constants.d.ts +6 -0
- package/lib/constants.js +10 -0
- package/lib/constants.js.map +1 -0
- package/lib/errors/bad-request-error.d.ts +4 -0
- package/lib/errors/bad-request-error.js +34 -0
- package/lib/errors/bad-request-error.js.map +1 -0
- package/lib/errors/conflict-error.d.ts +4 -0
- package/lib/errors/conflict-error.js +33 -0
- package/lib/errors/conflict-error.js.map +1 -0
- package/lib/errors/fintalk-error.d.ts +36 -0
- package/lib/errors/fintalk-error.js +54 -0
- package/lib/errors/fintalk-error.js.map +1 -0
- package/lib/errors/forbidden-error.d.ts +4 -0
- package/lib/errors/forbidden-error.js +33 -0
- package/lib/errors/forbidden-error.js.map +1 -0
- package/lib/errors/gone-error.d.ts +4 -0
- package/lib/errors/gone-error.js +33 -0
- package/lib/errors/gone-error.js.map +1 -0
- package/lib/errors/internal-server-error.d.ts +4 -0
- package/lib/errors/internal-server-error.js +33 -0
- package/lib/errors/internal-server-error.js.map +1 -0
- package/lib/errors/not-acceptable-error.d.ts +4 -0
- package/lib/errors/not-acceptable-error.js +33 -0
- package/lib/errors/not-acceptable-error.js.map +1 -0
- package/lib/errors/not-found-error.d.ts +4 -0
- package/lib/errors/not-found-error.js +33 -0
- package/lib/errors/not-found-error.js.map +1 -0
- package/lib/errors/payment-required-error.d.ts +4 -0
- package/lib/errors/payment-required-error.js +33 -0
- package/lib/errors/payment-required-error.js.map +1 -0
- package/lib/errors/precondition-failed-error.d.ts +4 -0
- package/lib/errors/precondition-failed-error.js +33 -0
- package/lib/errors/precondition-failed-error.js.map +1 -0
- package/lib/errors/service-unavailable-error.d.ts +4 -0
- package/lib/errors/service-unavailable-error.js +33 -0
- package/lib/errors/service-unavailable-error.js.map +1 -0
- package/lib/errors/teapot-error.d.ts +4 -0
- package/lib/errors/teapot-error.js +33 -0
- package/lib/errors/teapot-error.js.map +1 -0
- package/lib/errors/too-many-requests-error.d.ts +4 -0
- package/lib/errors/too-many-requests-error.js +33 -0
- package/lib/errors/too-many-requests-error.js.map +1 -0
- package/lib/errors/unauthorized-error.d.ts +4 -0
- package/lib/errors/unauthorized-error.js +33 -0
- package/lib/errors/unauthorized-error.js.map +1 -0
- package/lib/errors/unprocessable-entity-error.d.ts +4 -0
- package/lib/errors/unprocessable-entity-error.js +34 -0
- package/lib/errors/unprocessable-entity-error.js.map +1 -0
- package/lib/handlers/api-proxy.d.ts +13 -0
- package/lib/handlers/api-proxy.js +163 -0
- package/lib/handlers/api-proxy.js.map +1 -0
- package/lib/handlers/api.d.ts +7 -0
- package/lib/handlers/api.js +106 -0
- package/lib/handlers/api.js.map +1 -0
- package/lib/handlers/invoke.d.ts +7 -0
- package/lib/handlers/invoke.js +83 -0
- package/lib/handlers/invoke.js.map +1 -0
- package/lib/handlers/sqs-v2.d.ts +21 -0
- package/lib/handlers/sqs-v2.js +140 -0
- package/lib/handlers/sqs-v2.js.map +1 -0
- package/lib/handlers/sqs.d.ts +7 -0
- package/lib/handlers/sqs.js +77 -0
- package/lib/handlers/sqs.js.map +1 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.js +64 -0
- package/lib/index.js.map +1 -0
- package/lib/models.d.ts +72 -0
- package/lib/models.js +3 -0
- package/lib/models.js.map +1 -0
- package/lib/utils/compare-ignore-case.d.ts +2 -0
- package/lib/utils/compare-ignore-case.js +10 -0
- package/lib/utils/compare-ignore-case.js.map +1 -0
- package/lib/utils/extract-ip.d.ts +3 -0
- package/lib/utils/extract-ip.js +12 -0
- package/lib/utils/extract-ip.js.map +1 -0
- package/lib/utils/extract-user.d.ts +4 -0
- package/lib/utils/extract-user.js +57 -0
- package/lib/utils/extract-user.js.map +1 -0
- package/lib/utils/get-user-id.d.ts +3 -0
- package/lib/utils/get-user-id.js +18 -0
- package/lib/utils/get-user-id.js.map +1 -0
- package/lib/utils/json-parse.d.ts +2 -0
- package/lib/utils/json-parse.js +27 -0
- package/lib/utils/json-parse.js.map +1 -0
- package/lib/utils/lower-case-headers.d.ts +3 -0
- package/lib/utils/lower-case-headers.js +22 -0
- package/lib/utils/lower-case-headers.js.map +1 -0
- package/lib/utils/parse-body.d.ts +2 -0
- package/lib/utils/parse-body.js +19 -0
- package/lib/utils/parse-body.js.map +1 -0
- package/lib/utils/parse-request.d.ts +5 -0
- package/lib/utils/parse-request.js +44 -0
- package/lib/utils/parse-request.js.map +1 -0
- package/package.json +3 -6
package/lib/constants.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.defaultHeaders = void 0;
|
|
4
|
+
exports.defaultHeaders = {
|
|
5
|
+
'X-Requested-With': '*',
|
|
6
|
+
'Access-Control-Allow-Headers': 'Content-Type,X-Amz-Date,Authorization,X-Api-Key,x-requested-with',
|
|
7
|
+
'Access-Control-Allow-Origin': '*',
|
|
8
|
+
'Access-Control-Allow-Methods': 'POST,GET,OPTIONS,PUT,PATCH',
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,GAAG;IACvB,8BAA8B,EAAE,kEAAkE;IAClG,6BAA6B,EAAE,GAAG;IAClC,8BAA8B,EAAE,4BAA4B;CAC7D,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var BadRequestError = (function (_super) {
|
|
23
|
+
__extends(BadRequestError, _super);
|
|
24
|
+
function BadRequestError(message, details) {
|
|
25
|
+
if (message === void 0) { message = 'Bad Request'; }
|
|
26
|
+
if (details === void 0) { details = []; }
|
|
27
|
+
var _this = _super.call(this, message, 400, details) || this;
|
|
28
|
+
Object.setPrototypeOf(_this, BadRequestError.prototype);
|
|
29
|
+
return _this;
|
|
30
|
+
}
|
|
31
|
+
return BadRequestError;
|
|
32
|
+
}(fintalk_error_1.default));
|
|
33
|
+
exports.default = BadRequestError;
|
|
34
|
+
//# sourceMappingURL=bad-request-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bad-request-error.js","sourceRoot":"","sources":["../../src/errors/bad-request-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAA6C,mCAAY;IACvD,yBAAa,OAA+B,EAAE,OAAmB;QAApD,wBAAA,EAAA,uBAA+B;QAAE,wBAAA,EAAA,YAAmB;QAAjE,YACE,kBAAM,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,SAE7B;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAA;;IACxD,CAAC;IACH,sBAAC;AAAD,CAAC,AALD,CAA6C,uBAAY,GAKxD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var ConflictError = (function (_super) {
|
|
23
|
+
__extends(ConflictError, _super);
|
|
24
|
+
function ConflictError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Conflict'; }
|
|
26
|
+
var _this = _super.call(this, message, 409) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, ConflictError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return ConflictError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = ConflictError;
|
|
33
|
+
//# sourceMappingURL=conflict-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conflict-error.js","sourceRoot":"","sources":["../../src/errors/conflict-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAA2C,iCAAY;IACrD,uBAAa,OAA4B;QAA5B,wBAAA,EAAA,oBAA4B;QAAzC,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;;IACtD,CAAC;IACH,oBAAC;AAAD,CAAC,AALD,CAA2C,uBAAY,GAKtD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default class FintalkError extends Error {
|
|
2
|
+
isTreated: boolean;
|
|
3
|
+
code: number;
|
|
4
|
+
details?: any[];
|
|
5
|
+
constructor(message: string, code: number, details?: any[]);
|
|
6
|
+
getDetails(): {
|
|
7
|
+
details?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
details: any[];
|
|
10
|
+
};
|
|
11
|
+
toObject(): {
|
|
12
|
+
error: {
|
|
13
|
+
details?: undefined;
|
|
14
|
+
code: number;
|
|
15
|
+
message: string;
|
|
16
|
+
} | {
|
|
17
|
+
details: any[];
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
};
|
|
21
|
+
details?: undefined;
|
|
22
|
+
name: string;
|
|
23
|
+
} | {
|
|
24
|
+
error: {
|
|
25
|
+
details?: undefined;
|
|
26
|
+
code: number;
|
|
27
|
+
message: string;
|
|
28
|
+
} | {
|
|
29
|
+
details: any[];
|
|
30
|
+
code: number;
|
|
31
|
+
message: string;
|
|
32
|
+
};
|
|
33
|
+
details: any[];
|
|
34
|
+
name: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __assign = (this && this.__assign) || function () {
|
|
18
|
+
__assign = Object.assign || function(t) {
|
|
19
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
20
|
+
s = arguments[i];
|
|
21
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
22
|
+
t[p] = s[p];
|
|
23
|
+
}
|
|
24
|
+
return t;
|
|
25
|
+
};
|
|
26
|
+
return __assign.apply(this, arguments);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
var FintalkError = (function (_super) {
|
|
30
|
+
__extends(FintalkError, _super);
|
|
31
|
+
function FintalkError(message, code, details) {
|
|
32
|
+
var _this = _super.call(this, message) || this;
|
|
33
|
+
_this.isTreated = true;
|
|
34
|
+
_this.message = message;
|
|
35
|
+
_this.code = code;
|
|
36
|
+
_this.details = details;
|
|
37
|
+
Object.setPrototypeOf(_this, FintalkError.prototype);
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
FintalkError.prototype.getDetails = function () {
|
|
41
|
+
if (!this.details) {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
details: this.details,
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
FintalkError.prototype.toObject = function () {
|
|
49
|
+
return __assign(__assign({ name: this.message }, this.getDetails()), { error: __assign({ code: this.code, message: this.message }, this.getDetails()) });
|
|
50
|
+
};
|
|
51
|
+
return FintalkError;
|
|
52
|
+
}(Error));
|
|
53
|
+
exports.default = FintalkError;
|
|
54
|
+
//# sourceMappingURL=fintalk-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fintalk-error.js","sourceRoot":"","sources":["../../src/errors/fintalk-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;IAA0C,gCAAK;IAK7C,sBAAa,OAAe,EAAE,IAAY,EAAE,OAAe;QAA3D,YACE,kBAAM,OAAO,CAAC,SAQf;QANC,KAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACrB,KAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,KAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,KAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QAEtB,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,YAAY,CAAC,SAAS,CAAC,CAAA;;IACrD,CAAC;IAED,iCAAU,GAAV;QACE,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,OAAO,EAAE,CAAA;SACV;QAED,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAA;IACH,CAAC;IAED,+BAAQ,GAAR;QACE,2BACE,IAAI,EAAE,IAAI,CAAC,OAAO,IACf,IAAI,CAAC,UAAU,EAAE,KACpB,KAAK,aACH,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,IAClB,IAAI,CAAC,UAAU,EAAE,KAEvB;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AArCD,CAA0C,KAAK,GAqC9C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var ForbiddenError = (function (_super) {
|
|
23
|
+
__extends(ForbiddenError, _super);
|
|
24
|
+
function ForbiddenError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Forbidden'; }
|
|
26
|
+
var _this = _super.call(this, message, 403) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, ForbiddenError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return ForbiddenError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = ForbiddenError;
|
|
33
|
+
//# sourceMappingURL=forbidden-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forbidden-error.js","sourceRoot":"","sources":["../../src/errors/forbidden-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAA4C,kCAAY;IACtD,wBAAa,OAA6B;QAA7B,wBAAA,EAAA,qBAA6B;QAA1C,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,cAAc,CAAC,SAAS,CAAC,CAAA;;IACvD,CAAC;IACH,qBAAC;AAAD,CAAC,AALD,CAA4C,uBAAY,GAKvD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var GoneError = (function (_super) {
|
|
23
|
+
__extends(GoneError, _super);
|
|
24
|
+
function GoneError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Gone'; }
|
|
26
|
+
var _this = _super.call(this, message, 410) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, GoneError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return GoneError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = GoneError;
|
|
33
|
+
//# sourceMappingURL=gone-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gone-error.js","sourceRoot":"","sources":["../../src/errors/gone-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAAuC,6BAAY;IACjD,mBAAa,OAAwB;QAAxB,wBAAA,EAAA,gBAAwB;QAArC,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAA;;IAClD,CAAC;IACH,gBAAC;AAAD,CAAC,AALD,CAAuC,uBAAY,GAKlD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var InternalServerError = (function (_super) {
|
|
23
|
+
__extends(InternalServerError, _super);
|
|
24
|
+
function InternalServerError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Internal Server Error'; }
|
|
26
|
+
var _this = _super.call(this, message, 500) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, InternalServerError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return InternalServerError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = InternalServerError;
|
|
33
|
+
//# sourceMappingURL=internal-server-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-server-error.js","sourceRoot":"","sources":["../../src/errors/internal-server-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAAiD,uCAAY;IAC3D,6BAAa,OAAyC;QAAzC,wBAAA,EAAA,iCAAyC;QAAtD,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAA;;IAC5D,CAAC;IACH,0BAAC;AAAD,CAAC,AALD,CAAiD,uBAAY,GAK5D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var NotAcceptableError = (function (_super) {
|
|
23
|
+
__extends(NotAcceptableError, _super);
|
|
24
|
+
function NotAcceptableError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Not Acceptable'; }
|
|
26
|
+
var _this = _super.call(this, message, 406) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, NotAcceptableError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return NotAcceptableError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = NotAcceptableError;
|
|
33
|
+
//# sourceMappingURL=not-acceptable-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not-acceptable-error.js","sourceRoot":"","sources":["../../src/errors/not-acceptable-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAAgD,sCAAY;IAC1D,4BAAa,OAAkC;QAAlC,wBAAA,EAAA,0BAAkC;QAA/C,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAA;;IAC3D,CAAC;IACH,yBAAC;AAAD,CAAC,AALD,CAAgD,uBAAY,GAK3D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var NotFoundError = (function (_super) {
|
|
23
|
+
__extends(NotFoundError, _super);
|
|
24
|
+
function NotFoundError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Not Found'; }
|
|
26
|
+
var _this = _super.call(this, message, 404) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, NotFoundError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return NotFoundError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = NotFoundError;
|
|
33
|
+
//# sourceMappingURL=not-found-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not-found-error.js","sourceRoot":"","sources":["../../src/errors/not-found-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAA2C,iCAAY;IACrD,uBAAa,OAA6B;QAA7B,wBAAA,EAAA,qBAA6B;QAA1C,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;;IACtD,CAAC;IACH,oBAAC;AAAD,CAAC,AALD,CAA2C,uBAAY,GAKtD"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var PaymentRequiredError = (function (_super) {
|
|
23
|
+
__extends(PaymentRequiredError, _super);
|
|
24
|
+
function PaymentRequiredError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Payment Required'; }
|
|
26
|
+
var _this = _super.call(this, message, 402) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, PaymentRequiredError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return PaymentRequiredError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = PaymentRequiredError;
|
|
33
|
+
//# sourceMappingURL=payment-required-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-required-error.js","sourceRoot":"","sources":["../../src/errors/payment-required-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAAkD,wCAAY;IAC5D,8BAAa,OAAoC;QAApC,wBAAA,EAAA,4BAAoC;QAAjD,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAA;;IAC7D,CAAC;IACH,2BAAC;AAAD,CAAC,AALD,CAAkD,uBAAY,GAK7D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var PreconditionFailedError = (function (_super) {
|
|
23
|
+
__extends(PreconditionFailedError, _super);
|
|
24
|
+
function PreconditionFailedError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Precondition Failed'; }
|
|
26
|
+
var _this = _super.call(this, message, 412) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, PreconditionFailedError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return PreconditionFailedError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = PreconditionFailedError;
|
|
33
|
+
//# sourceMappingURL=precondition-failed-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"precondition-failed-error.js","sourceRoot":"","sources":["../../src/errors/precondition-failed-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAAqD,2CAAY;IAC/D,iCAAa,OAAuC;QAAvC,wBAAA,EAAA,+BAAuC;QAApD,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAA;;IAChE,CAAC;IACH,8BAAC;AAAD,CAAC,AALD,CAAqD,uBAAY,GAKhE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var ServiceUnavailableError = (function (_super) {
|
|
23
|
+
__extends(ServiceUnavailableError, _super);
|
|
24
|
+
function ServiceUnavailableError(message) {
|
|
25
|
+
if (message === void 0) { message = 'Service Unavailable'; }
|
|
26
|
+
var _this = _super.call(this, message, 503) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, ServiceUnavailableError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return ServiceUnavailableError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = ServiceUnavailableError;
|
|
33
|
+
//# sourceMappingURL=service-unavailable-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-unavailable-error.js","sourceRoot":"","sources":["../../src/errors/service-unavailable-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAAqD,2CAAY;IAC/D,iCAAa,OAAuC;QAAvC,wBAAA,EAAA,+BAAuC;QAApD,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAA;;IAChE,CAAC;IACH,8BAAC;AAAD,CAAC,AALD,CAAqD,uBAAY,GAKhE"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19
|
+
};
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
+
var fintalk_error_1 = __importDefault(require("./fintalk-error"));
|
|
22
|
+
var TeapotError = (function (_super) {
|
|
23
|
+
__extends(TeapotError, _super);
|
|
24
|
+
function TeapotError(message) {
|
|
25
|
+
if (message === void 0) { message = 'ImAHoneyPot'; }
|
|
26
|
+
var _this = _super.call(this, message, 418) || this;
|
|
27
|
+
Object.setPrototypeOf(_this, TeapotError.prototype);
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
return TeapotError;
|
|
31
|
+
}(fintalk_error_1.default));
|
|
32
|
+
exports.default = TeapotError;
|
|
33
|
+
//# sourceMappingURL=teapot-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teapot-error.js","sourceRoot":"","sources":["../../src/errors/teapot-error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,kEAA0C;AAE1C;IAAyC,+BAAY;IACnD,qBAAa,OAA+B;QAA/B,wBAAA,EAAA,uBAA+B;QAA5C,YACE,kBAAM,OAAO,EAAE,GAAG,CAAC,SAEpB;QADC,MAAM,CAAC,cAAc,CAAC,KAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;;IACpD,CAAC;IACH,kBAAC;AAAD,CAAC,AALD,CAAyC,uBAAY,GAKpD"}
|