@gennext/lb-infra 0.0.1 → 0.0.3
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/dist/base/base.helper.d.ts +10 -0
- package/dist/base/base.helper.d.ts.map +1 -0
- package/dist/base/base.helper.js +12 -0
- package/dist/base/base.helper.js.map +1 -0
- package/dist/base/datasources/base.datasource.d.ts +14 -0
- package/dist/base/datasources/base.datasource.d.ts.map +1 -0
- package/dist/base/datasources/base.datasource.js +24 -0
- package/dist/base/datasources/base.datasource.js.map +1 -0
- package/dist/base/datasources/index.d.ts +3 -0
- package/dist/base/datasources/index.d.ts.map +1 -0
- package/dist/base/datasources/index.js +19 -0
- package/dist/base/datasources/index.js.map +1 -0
- package/dist/base/datasources/types.d.ts +5 -0
- package/dist/base/datasources/types.d.ts.map +1 -0
- package/dist/base/datasources/types.js +3 -0
- package/dist/base/datasources/types.js.map +1 -0
- package/dist/base/index.d.ts +4 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +20 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/models/base.model.d.ts +16 -0
- package/dist/base/models/base.model.d.ts.map +1 -0
- package/dist/base/models/base.model.js +44 -0
- package/dist/base/models/base.model.js.map +1 -0
- package/dist/base/models/index.d.ts +2 -0
- package/dist/base/models/index.d.ts.map +1 -0
- package/dist/base/models/index.js +18 -0
- package/dist/base/models/index.js.map +1 -0
- package/dist/common/constants.d.ts +35 -0
- package/dist/common/constants.d.ts.map +1 -0
- package/dist/common/constants.js +52 -0
- package/dist/common/constants.js.map +1 -0
- package/dist/common/index.d.ts +4 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +20 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/result-codes.d.ts +30 -0
- package/dist/common/result-codes.d.ts.map +1 -0
- package/dist/common/result-codes.js +37 -0
- package/dist/common/result-codes.js.map +1 -0
- package/dist/common/types.d.ts +189 -0
- package/dist/common/types.d.ts.map +1 -0
- package/dist/common/types.js +3 -0
- package/dist/common/types.js.map +1 -0
- package/dist/datasources/index.d.ts +3 -0
- package/dist/datasources/index.d.ts.map +1 -0
- package/dist/datasources/index.js +19 -0
- package/dist/datasources/index.js.map +1 -0
- package/dist/datasources/postgres/datasource.d.ts +8 -0
- package/dist/datasources/postgres/datasource.d.ts.map +1 -0
- package/dist/datasources/postgres/datasource.js +72 -0
- package/dist/datasources/postgres/datasource.js.map +1 -0
- package/dist/datasources/postgres/index.d.ts +3 -0
- package/dist/datasources/postgres/index.d.ts.map +1 -0
- package/dist/datasources/postgres/index.js +19 -0
- package/dist/datasources/postgres/index.js.map +1 -0
- package/dist/datasources/postgres/types.d.ts +10 -0
- package/dist/datasources/postgres/types.d.ts.map +1 -0
- package/dist/datasources/postgres/types.js +3 -0
- package/dist/datasources/postgres/types.js.map +1 -0
- package/dist/datasources/redis/connector.d.ts +37 -0
- package/dist/datasources/redis/connector.d.ts.map +1 -0
- package/dist/datasources/redis/connector.js +134 -0
- package/dist/datasources/redis/connector.js.map +1 -0
- package/dist/datasources/redis/datasource.d.ts +10 -0
- package/dist/datasources/redis/datasource.d.ts.map +1 -0
- package/dist/datasources/redis/datasource.js +48 -0
- package/dist/datasources/redis/datasource.js.map +1 -0
- package/dist/datasources/redis/index.d.ts +4 -0
- package/dist/datasources/redis/index.d.ts.map +1 -0
- package/dist/datasources/redis/index.js +20 -0
- package/dist/datasources/redis/index.js.map +1 -0
- package/dist/datasources/redis/types.d.ts +11 -0
- package/dist/datasources/redis/types.d.ts.map +1 -0
- package/dist/datasources/redis/types.js +3 -0
- package/dist/datasources/redis/types.js.map +1 -0
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +19 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/helpers/logger/application-logger.d.ts +22 -0
- package/dist/helpers/logger/application-logger.d.ts.map +1 -0
- package/dist/helpers/logger/application-logger.js +95 -0
- package/dist/helpers/logger/application-logger.js.map +1 -0
- package/dist/helpers/logger/common/index.d.ts +2 -0
- package/dist/helpers/logger/common/index.d.ts.map +1 -0
- package/dist/helpers/logger/common/index.js +18 -0
- package/dist/helpers/logger/common/index.js.map +1 -0
- package/dist/helpers/logger/common/types.d.ts +16 -0
- package/dist/helpers/logger/common/types.d.ts.map +1 -0
- package/dist/helpers/logger/common/types.js +30 -0
- package/dist/helpers/logger/common/types.js.map +1 -0
- package/dist/helpers/logger/default-logger.d.ts +34 -0
- package/dist/helpers/logger/default-logger.d.ts.map +1 -0
- package/dist/helpers/logger/default-logger.js +122 -0
- package/dist/helpers/logger/default-logger.js.map +1 -0
- package/dist/helpers/logger/factory.d.ts +5 -0
- package/dist/helpers/logger/factory.d.ts.map +1 -0
- package/dist/helpers/logger/factory.js +13 -0
- package/dist/helpers/logger/factory.js.map +1 -0
- package/dist/helpers/logger/index.d.ts +5 -0
- package/dist/helpers/logger/index.d.ts.map +1 -0
- package/dist/helpers/logger/index.js +21 -0
- package/dist/helpers/logger/index.js.map +1 -0
- package/dist/helpers/logger/transports/dgram.transport.d.ts +29 -0
- package/dist/helpers/logger/transports/dgram.transport.d.ts.map +1 -0
- package/dist/helpers/logger/transports/dgram.transport.js +74 -0
- package/dist/helpers/logger/transports/dgram.transport.js.map +1 -0
- package/dist/helpers/logger/transports/index.d.ts +2 -0
- package/dist/helpers/logger/transports/index.d.ts.map +1 -0
- package/dist/helpers/logger/transports/index.js +18 -0
- package/dist/helpers/logger/transports/index.js.map +1 -0
- package/dist/helpers/redis/default.helper.d.ts +135 -0
- package/dist/helpers/redis/default.helper.d.ts.map +1 -0
- package/dist/helpers/redis/default.helper.js +307 -0
- package/dist/helpers/redis/default.helper.js.map +1 -0
- package/dist/helpers/redis/index.d.ts +5 -0
- package/dist/helpers/redis/index.d.ts.map +1 -0
- package/dist/helpers/redis/index.js +21 -0
- package/dist/helpers/redis/index.js.map +1 -0
- package/dist/helpers/redis/redis-cluster.helper.d.ts +8 -0
- package/dist/helpers/redis/redis-cluster.helper.d.ts.map +1 -0
- package/dist/helpers/redis/redis-cluster.helper.js +27 -0
- package/dist/helpers/redis/redis-cluster.helper.js.map +1 -0
- package/dist/helpers/redis/redis.helper.d.ts +8 -0
- package/dist/helpers/redis/redis.helper.d.ts.map +1 -0
- package/dist/helpers/redis/redis.helper.js +43 -0
- package/dist/helpers/redis/redis.helper.js.map +1 -0
- package/dist/helpers/redis/types.d.ts +43 -0
- package/dist/helpers/redis/types.d.ts.map +1 -0
- package/dist/helpers/redis/types.js +3 -0
- package/dist/helpers/redis/types.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/index.js.map +1 -0
- package/dist/utilities/crypto.utility.d.ts +7 -0
- package/dist/utilities/crypto.utility.d.ts.map +1 -0
- package/dist/utilities/crypto.utility.js +26 -0
- package/dist/utilities/crypto.utility.js.map +1 -0
- package/dist/utilities/date.utility.d.ts +18 -0
- package/dist/utilities/date.utility.d.ts.map +1 -0
- package/dist/utilities/date.utility.js +75 -0
- package/dist/utilities/date.utility.js.map +1 -0
- package/dist/utilities/error.utility.d.ts +15 -0
- package/dist/utilities/error.utility.d.ts.map +1 -0
- package/dist/utilities/error.utility.js +18 -0
- package/dist/utilities/error.utility.js.map +1 -0
- package/dist/utilities/index.d.ts +12 -0
- package/dist/utilities/index.d.ts.map +1 -0
- package/dist/utilities/index.js +28 -0
- package/dist/utilities/index.js.map +1 -0
- package/dist/utilities/model.utility.d.ts +9 -0
- package/dist/utilities/model.utility.d.ts.map +1 -0
- package/dist/utilities/model.utility.js +28 -0
- package/dist/utilities/model.utility.js.map +1 -0
- package/dist/utilities/module.utility.d.ts +5 -0
- package/dist/utilities/module.utility.d.ts.map +1 -0
- package/dist/utilities/module.utility.js +21 -0
- package/dist/utilities/module.utility.js.map +1 -0
- package/dist/utilities/parse.utility.d.ts +34 -0
- package/dist/utilities/parse.utility.d.ts.map +1 -0
- package/dist/utilities/parse.utility.js +215 -0
- package/dist/utilities/parse.utility.js.map +1 -0
- package/dist/utilities/performance.utility.d.ts +6 -0
- package/dist/utilities/performance.utility.d.ts.map +1 -0
- package/dist/utilities/performance.utility.js +14 -0
- package/dist/utilities/performance.utility.js.map +1 -0
- package/dist/utilities/promise.utility.d.ts +28 -0
- package/dist/utilities/promise.utility.d.ts.map +1 -0
- package/dist/utilities/promise.utility.js +41 -0
- package/dist/utilities/promise.utility.js.map +1 -0
- package/dist/utilities/query.utility.d.ts +31 -0
- package/dist/utilities/query.utility.d.ts.map +1 -0
- package/dist/utilities/query.utility.js +145 -0
- package/dist/utilities/query.utility.js.map +1 -0
- package/dist/utilities/request.utility.d.ts +21 -0
- package/dist/utilities/request.utility.d.ts.map +1 -0
- package/dist/utilities/request.utility.js +46 -0
- package/dist/utilities/request.utility.js.map +1 -0
- package/dist/utilities/url.utility.d.ts +3 -0
- package/dist/utilities/url.utility.d.ts.map +1 -0
- package/dist/utilities/url.utility.js +32 -0
- package/dist/utilities/url.utility.js.map +1 -0
- package/package.json +13 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApplicationLogger } from "../helpers";
|
|
2
|
+
export declare class BaseHelper {
|
|
3
|
+
protected identifier: string;
|
|
4
|
+
protected logger: ApplicationLogger;
|
|
5
|
+
constructor(opts: {
|
|
6
|
+
scope: string;
|
|
7
|
+
identifier?: string;
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=base.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.helper.d.ts","sourceRoot":"","sources":["../../src/base/base.helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAiB,MAAM,WAAW,CAAC;AAE7D,qBAAa,UAAU;IACrB,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAAC;gBAExB,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;CAMzD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseHelper = void 0;
|
|
4
|
+
const helpers_1 = require("../helpers");
|
|
5
|
+
class BaseHelper {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
this.logger = helpers_1.LoggerFactory.getLogger([opts.scope, opts.identifier ?? ""].filter((el) => el && el.length > 0));
|
|
8
|
+
this.identifier = opts.identifier ?? "";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.BaseHelper = BaseHelper;
|
|
12
|
+
//# sourceMappingURL=base.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.helper.js","sourceRoot":"","sources":["../../src/base/base.helper.ts"],"names":[],"mappings":";;;AAAA,uCAA6D;AAE7D,MAAa,UAAU;IAIrB,YAAY,IAA4C;QACtD,IAAI,CAAC,MAAM,GAAG,uBAAa,CAAC,SAAS,CACnC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,CACxE,CAAC;QACF,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,EAAE,CAAC;IAC1C,CAAC;CACF;AAVD,gCAUC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ValueOrPromise } from "../../common";
|
|
2
|
+
import { ApplicationLogger } from "../../helpers";
|
|
3
|
+
import { Connector, JugglerDataSource } from "@loopback/repository";
|
|
4
|
+
import { IDataSourceOptions } from "./types";
|
|
5
|
+
export declare class BaseDataSource<S extends IDataSourceOptions = IDataSourceOptions, C extends Connector = Connector> extends JugglerDataSource {
|
|
6
|
+
protected logger: ApplicationLogger;
|
|
7
|
+
constructor(opts: {
|
|
8
|
+
scope: string;
|
|
9
|
+
settings: S;
|
|
10
|
+
connector?: C;
|
|
11
|
+
});
|
|
12
|
+
getConnectionString(): ValueOrPromise<string>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=base.datasource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.datasource.d.ts","sourceRoot":"","sources":["../../../src/base/datasources/base.datasource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAiB,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,qBAAa,cAAc,CACzB,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EACjD,CAAC,SAAS,SAAS,GAAG,SAAS,CAC/B,SAAQ,iBAAiB;IACzB,SAAS,CAAC,MAAM,EAAE,iBAAiB,CAAC;gBAExB,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,CAAC,CAAC;QAAC,SAAS,CAAC,EAAE,CAAC,CAAA;KAAE;IAY/D,mBAAmB,IAAI,cAAc,CAAC,MAAM,CAAC;CAM9C"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseDataSource = void 0;
|
|
4
|
+
const helpers_1 = require("../../helpers");
|
|
5
|
+
const repository_1 = require("@loopback/repository");
|
|
6
|
+
class BaseDataSource extends repository_1.JugglerDataSource {
|
|
7
|
+
constructor(opts) {
|
|
8
|
+
const { scope, settings, connector } = opts;
|
|
9
|
+
if (!connector) {
|
|
10
|
+
super(settings);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
super(connector, settings);
|
|
14
|
+
}
|
|
15
|
+
this.logger = helpers_1.LoggerFactory.getLogger([scope]);
|
|
16
|
+
}
|
|
17
|
+
getConnectionString() {
|
|
18
|
+
const { connector, host, port, user, password, database } = this.settings;
|
|
19
|
+
const protocol = connector.toLowerCase();
|
|
20
|
+
return `${protocol}://${user}:${password}@${host}:${port}/${database}`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.BaseDataSource = BaseDataSource;
|
|
24
|
+
//# sourceMappingURL=base.datasource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.datasource.js","sourceRoot":"","sources":["../../../src/base/datasources/base.datasource.ts"],"names":[],"mappings":";;;AACA,uCAA6D;AAC7D,qDAAoE;AAGpE,MAAa,cAGX,SAAQ,8BAAiB;IAGzB,YAAY,IAAmD;QAC7D,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QAE5C,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,KAAK,CAAC,QAAQ,CAAC,CAAC;QAClB,CAAC;aAAM,CAAC;YACN,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;QAC7B,CAAC;QAED,IAAI,CAAC,MAAM,GAAG,uBAAa,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACjD,CAAC;IAED,mBAAmB;QACjB,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;QAE1E,MAAM,QAAQ,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;QACzC,OAAO,GAAG,QAAQ,MAAM,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,IAAI,QAAQ,EAAE,CAAC;IACzE,CAAC;CACF;AAxBD,wCAwBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/datasources/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./base.datasource"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/datasources/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/base/datasources/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/base/datasources/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AAEzB,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./datasources"), exports);
|
|
18
|
+
__exportStar(require("./models"), exports);
|
|
19
|
+
__exportStar(require("./base.helper"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,2CAAyB;AAEzB,gDAA8B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Entity } from "@loopback/repository";
|
|
2
|
+
export declare class BaseEntity extends Entity {
|
|
3
|
+
}
|
|
4
|
+
export declare class BaseKVEntity<T = any> extends BaseEntity {
|
|
5
|
+
payload: T;
|
|
6
|
+
}
|
|
7
|
+
export declare class BaseNumberIdEntity extends BaseEntity {
|
|
8
|
+
id: number;
|
|
9
|
+
}
|
|
10
|
+
export declare class BaseStringIdEntity extends BaseEntity {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class BaseIdEntity extends BaseNumberIdEntity {
|
|
14
|
+
}
|
|
15
|
+
export type TBaseIdEntity = BaseNumberIdEntity | BaseStringIdEntity;
|
|
16
|
+
//# sourceMappingURL=base.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.model.d.ts","sourceRoot":"","sources":["../../../src/base/models/base.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAY,MAAM,sBAAsB,CAAC;AAGxD,qBAAa,UAAW,SAAQ,MAAM;CAAG;AAGzC,qBAAa,YAAY,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,UAAU;IAEnD,OAAO,EAAE,CAAC,CAAC;CACZ;AAGD,qBAAa,kBAAmB,SAAQ,UAAU;IAEhD,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,qBAAa,kBAAmB,SAAQ,UAAU;IAEhD,EAAE,EAAE,MAAM,CAAC;CACZ;AACD,qBAAa,YAAa,SAAQ,kBAAkB;CAAG;AACvD,MAAM,MAAM,aAAa,GAAG,kBAAkB,GAAG,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BaseIdEntity = exports.BaseStringIdEntity = exports.BaseNumberIdEntity = exports.BaseKVEntity = exports.BaseEntity = void 0;
|
|
13
|
+
const repository_1 = require("@loopback/repository");
|
|
14
|
+
// ---------------------------------------------------------------------
|
|
15
|
+
class BaseEntity extends repository_1.Entity {
|
|
16
|
+
}
|
|
17
|
+
exports.BaseEntity = BaseEntity;
|
|
18
|
+
// ---------------------------------------------------------------------
|
|
19
|
+
class BaseKVEntity extends BaseEntity {
|
|
20
|
+
}
|
|
21
|
+
exports.BaseKVEntity = BaseKVEntity;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, repository_1.property)({ type: "object" }),
|
|
24
|
+
__metadata("design:type", Object)
|
|
25
|
+
], BaseKVEntity.prototype, "payload", void 0);
|
|
26
|
+
// ---------------------------------------------------------------------
|
|
27
|
+
class BaseNumberIdEntity extends BaseEntity {
|
|
28
|
+
}
|
|
29
|
+
exports.BaseNumberIdEntity = BaseNumberIdEntity;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, repository_1.property)({ type: "number", id: true, generated: true }),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], BaseNumberIdEntity.prototype, "id", void 0);
|
|
34
|
+
class BaseStringIdEntity extends BaseEntity {
|
|
35
|
+
}
|
|
36
|
+
exports.BaseStringIdEntity = BaseStringIdEntity;
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, repository_1.property)({ type: "string", id: true }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], BaseStringIdEntity.prototype, "id", void 0);
|
|
41
|
+
class BaseIdEntity extends BaseNumberIdEntity {
|
|
42
|
+
}
|
|
43
|
+
exports.BaseIdEntity = BaseIdEntity;
|
|
44
|
+
//# sourceMappingURL=base.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.model.js","sourceRoot":"","sources":["../../../src/base/models/base.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwD;AAExD,wEAAwE;AACxE,MAAa,UAAW,SAAQ,mBAAM;CAAG;AAAzC,gCAAyC;AAEzC,wEAAwE;AACxE,MAAa,YAAsB,SAAQ,UAAU;CAGpD;AAHD,oCAGC;AADC;IADC,IAAA,qBAAQ,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;6CAClB;AAGb,wEAAwE;AACxE,MAAa,kBAAmB,SAAQ,UAAU;CAGjD;AAHD,gDAGC;AADC;IADC,IAAA,qBAAQ,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;8CAC7C;AAEb,MAAa,kBAAmB,SAAQ,UAAU;CAGjD;AAHD,gDAGC;AADC;IADC,IAAA,qBAAQ,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;;8CAC5B;AAEb,MAAa,YAAa,SAAQ,kBAAkB;CAAG;AAAvD,oCAAuD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./base.model"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare class App {
|
|
2
|
+
static readonly APPLICATION_NAME: string;
|
|
3
|
+
static readonly APPLICATION_SECRET: string;
|
|
4
|
+
static readonly DEFAULT_LOCALE = "en.UTF-8";
|
|
5
|
+
static readonly DEFAULT_EXPLORER_PATH = "/explorer";
|
|
6
|
+
static readonly DEFAULT_QUERY_LIMIT = 50;
|
|
7
|
+
}
|
|
8
|
+
export declare class ApplicationRoles {
|
|
9
|
+
static readonly API = "api";
|
|
10
|
+
}
|
|
11
|
+
export declare class Sorts {
|
|
12
|
+
static readonly DESC = "desc";
|
|
13
|
+
static readonly ASC = "asc";
|
|
14
|
+
}
|
|
15
|
+
export declare class ApplicationRunModes {
|
|
16
|
+
static readonly MODE_START_UP = "startup";
|
|
17
|
+
static readonly MODE_MIGRATE = "migrate";
|
|
18
|
+
static readonly MODE_SEED = "seed";
|
|
19
|
+
}
|
|
20
|
+
export declare class EntityRelations {
|
|
21
|
+
static readonly BELONGS_TO = "belongsTo";
|
|
22
|
+
static readonly HAS_ONE = "hasOne";
|
|
23
|
+
static readonly HAS_MANY = "hasMany";
|
|
24
|
+
static readonly HAS_MANY_THROUGH = "hasManyThrough";
|
|
25
|
+
static readonly HAS_MANY_POLYMORPHIC = "hasManyPolymorphic";
|
|
26
|
+
static readonly SCHEME_SET: Set<string>;
|
|
27
|
+
static isValid(type: string): boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare class MimeTypes {
|
|
30
|
+
static readonly UNKNOWN = "unknown";
|
|
31
|
+
static readonly IMAGE = "image";
|
|
32
|
+
static readonly VIDEO = "video";
|
|
33
|
+
static readonly TEXT = "text";
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":"AAAA,qBAAa,GAAG;IACd,MAAM,CAAC,QAAQ,CAAC,gBAAgB,SACgB;IAChD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,SAC+B;IAEjE,MAAM,CAAC,QAAQ,CAAC,cAAc,cAAc;IAC5C,MAAM,CAAC,QAAQ,CAAC,qBAAqB,eAAe;IAEpD,MAAM,CAAC,QAAQ,CAAC,mBAAmB,MAAM;CAC1C;AAED,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;CAC7B;AAED,qBAAa,KAAK;IAChB,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAU;IAC9B,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;CAC7B;AAED,qBAAa,mBAAmB;IAC9B,MAAM,CAAC,QAAQ,CAAC,aAAa,aAAa;IAC1C,MAAM,CAAC,QAAQ,CAAC,YAAY,aAAa;IACzC,MAAM,CAAC,QAAQ,CAAC,SAAS,UAAU;CACpC;AAED,qBAAa,eAAe;IAC1B,MAAM,CAAC,QAAQ,CAAC,UAAU,eAAe;IACzC,MAAM,CAAC,QAAQ,CAAC,OAAO,YAAY;IACnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,aAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,oBAAoB;IACpD,MAAM,CAAC,QAAQ,CAAC,oBAAoB,wBAAwB;IAE5D,MAAM,CAAC,QAAQ,CAAC,UAAU,cAMvB;IAEH,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM;CAG5B;AAED,qBAAa,SAAS;IACpB,MAAM,CAAC,QAAQ,CAAC,OAAO,aAAa;IACpC,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAChC,MAAM,CAAC,QAAQ,CAAC,KAAK,WAAW;IAChC,MAAM,CAAC,QAAQ,CAAC,IAAI,UAAU;CAC/B"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MimeTypes = exports.EntityRelations = exports.ApplicationRunModes = exports.Sorts = exports.ApplicationRoles = exports.App = void 0;
|
|
4
|
+
class App {
|
|
5
|
+
static { this.APPLICATION_NAME = process.env.APP_ENV_APPLICATION_NAME ?? "APP"; }
|
|
6
|
+
static { this.APPLICATION_SECRET = process.env.APP_ENV_APPLICATION_SECRET ?? "application.secret"; }
|
|
7
|
+
static { this.DEFAULT_LOCALE = "en.UTF-8"; }
|
|
8
|
+
static { this.DEFAULT_EXPLORER_PATH = "/explorer"; }
|
|
9
|
+
static { this.DEFAULT_QUERY_LIMIT = 50; }
|
|
10
|
+
}
|
|
11
|
+
exports.App = App;
|
|
12
|
+
class ApplicationRoles {
|
|
13
|
+
static { this.API = "api"; }
|
|
14
|
+
}
|
|
15
|
+
exports.ApplicationRoles = ApplicationRoles;
|
|
16
|
+
class Sorts {
|
|
17
|
+
static { this.DESC = "desc"; }
|
|
18
|
+
static { this.ASC = "asc"; }
|
|
19
|
+
}
|
|
20
|
+
exports.Sorts = Sorts;
|
|
21
|
+
class ApplicationRunModes {
|
|
22
|
+
static { this.MODE_START_UP = "startup"; }
|
|
23
|
+
static { this.MODE_MIGRATE = "migrate"; }
|
|
24
|
+
static { this.MODE_SEED = "seed"; }
|
|
25
|
+
}
|
|
26
|
+
exports.ApplicationRunModes = ApplicationRunModes;
|
|
27
|
+
class EntityRelations {
|
|
28
|
+
static { this.BELONGS_TO = "belongsTo"; }
|
|
29
|
+
static { this.HAS_ONE = "hasOne"; }
|
|
30
|
+
static { this.HAS_MANY = "hasMany"; }
|
|
31
|
+
static { this.HAS_MANY_THROUGH = "hasManyThrough"; }
|
|
32
|
+
static { this.HAS_MANY_POLYMORPHIC = "hasManyPolymorphic"; }
|
|
33
|
+
static { this.SCHEME_SET = new Set([
|
|
34
|
+
this.BELONGS_TO,
|
|
35
|
+
this.HAS_ONE,
|
|
36
|
+
this.HAS_MANY,
|
|
37
|
+
this.HAS_MANY_THROUGH,
|
|
38
|
+
this.HAS_MANY_POLYMORPHIC,
|
|
39
|
+
]); }
|
|
40
|
+
static isValid(type) {
|
|
41
|
+
return this.SCHEME_SET.has(type);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.EntityRelations = EntityRelations;
|
|
45
|
+
class MimeTypes {
|
|
46
|
+
static { this.UNKNOWN = "unknown"; }
|
|
47
|
+
static { this.IMAGE = "image"; }
|
|
48
|
+
static { this.VIDEO = "video"; }
|
|
49
|
+
static { this.TEXT = "text"; }
|
|
50
|
+
}
|
|
51
|
+
exports.MimeTypes = MimeTypes;
|
|
52
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/common/constants.ts"],"names":[],"mappings":";;;AAAA,MAAa,GAAG;aACE,qBAAgB,GAC9B,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,KAAK,CAAC;aAChC,uBAAkB,GAChC,OAAO,CAAC,GAAG,CAAC,0BAA0B,IAAI,oBAAoB,CAAC;aAEjD,mBAAc,GAAG,UAAU,CAAC;aAC5B,0BAAqB,GAAG,WAAW,CAAC;aAEpC,wBAAmB,GAAG,EAAE,CAAC;;AAT3C,kBAUC;AAED,MAAa,gBAAgB;aACX,QAAG,GAAG,KAAK,CAAC;;AAD9B,4CAEC;AAED,MAAa,KAAK;aACA,SAAI,GAAG,MAAM,CAAC;aACd,QAAG,GAAG,KAAK,CAAC;;AAF9B,sBAGC;AAED,MAAa,mBAAmB;aACd,kBAAa,GAAG,SAAS,CAAC;aAC1B,iBAAY,GAAG,SAAS,CAAC;aACzB,cAAS,GAAG,MAAM,CAAC;;AAHrC,kDAIC;AAED,MAAa,eAAe;aACV,eAAU,GAAG,WAAW,CAAC;aACzB,YAAO,GAAG,QAAQ,CAAC;aACnB,aAAQ,GAAG,SAAS,CAAC;aACrB,qBAAgB,GAAG,gBAAgB,CAAC;aACpC,yBAAoB,GAAG,oBAAoB,CAAC;aAE5C,eAAU,GAAG,IAAI,GAAG,CAAC;QACnC,IAAI,CAAC,UAAU;QACf,IAAI,CAAC,OAAO;QACZ,IAAI,CAAC,QAAQ;QACb,IAAI,CAAC,gBAAgB;QACrB,IAAI,CAAC,oBAAoB;KAC1B,CAAC,CAAC;IAEH,MAAM,CAAC,OAAO,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACnC,CAAC;;AAjBH,0CAkBC;AAED,MAAa,SAAS;aACJ,YAAO,GAAG,SAAS,CAAC;aACpB,UAAK,GAAG,OAAO,CAAC;aAChB,UAAK,GAAG,OAAO,CAAC;aAChB,SAAI,GAAG,MAAM,CAAC;;AAJhC,8BAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./constants"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
19
|
+
__exportStar(require("./result-codes"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB;AACxB,iDAA+B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare class ResultCodes {
|
|
2
|
+
static readonly RS_FAIL = 0;
|
|
3
|
+
static readonly RS_SUCCESS = 1;
|
|
4
|
+
static readonly RS_UNKNOWN_ERROR = -199;
|
|
5
|
+
static readonly RS_2: {
|
|
6
|
+
Ok: number;
|
|
7
|
+
Created: number;
|
|
8
|
+
Accepted: number;
|
|
9
|
+
NonAuthoritativeInformation: number;
|
|
10
|
+
NoContent: number;
|
|
11
|
+
ResetContent: number;
|
|
12
|
+
PartialContent: number;
|
|
13
|
+
};
|
|
14
|
+
static readonly RS_4: {
|
|
15
|
+
BadRequest: number;
|
|
16
|
+
Unauthorized: number;
|
|
17
|
+
PaymentRequired: number;
|
|
18
|
+
Forbidden: number;
|
|
19
|
+
NotFound: number;
|
|
20
|
+
MethodNotAllowed: number;
|
|
21
|
+
RequestTimeout: number;
|
|
22
|
+
UnsupportedMediaType: number;
|
|
23
|
+
UnprocessableEntity: number;
|
|
24
|
+
};
|
|
25
|
+
static readonly RS_5: {
|
|
26
|
+
InternalServerError: number;
|
|
27
|
+
NotImplemented: number;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=result-codes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-codes.d.ts","sourceRoot":"","sources":["../../src/common/result-codes.ts"],"names":[],"mappings":"AAAA,qBAAa,WAAW;IACtB,MAAM,CAAC,QAAQ,CAAC,OAAO,KAAK;IAC5B,MAAM,CAAC,QAAQ,CAAC,UAAU,KAAK;IAC/B,MAAM,CAAC,QAAQ,CAAC,gBAAgB,QAAQ;IAGxC,MAAM,CAAC,QAAQ,CAAC,IAAI;;;;;;;;MAQlB;IAGF,MAAM,CAAC,QAAQ,CAAC,IAAI;;;;;;;;;;MAUlB;IAGF,MAAM,CAAC,QAAQ,CAAC,IAAI;;;MAGlB;CACH"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResultCodes = void 0;
|
|
4
|
+
class ResultCodes {
|
|
5
|
+
static { this.RS_FAIL = 0; }
|
|
6
|
+
static { this.RS_SUCCESS = 1; }
|
|
7
|
+
static { this.RS_UNKNOWN_ERROR = -199; }
|
|
8
|
+
// 2xx successful – the request was successfully received, understood, and accepted
|
|
9
|
+
static { this.RS_2 = {
|
|
10
|
+
Ok: 200,
|
|
11
|
+
Created: 201,
|
|
12
|
+
Accepted: 202,
|
|
13
|
+
NonAuthoritativeInformation: 203,
|
|
14
|
+
NoContent: 204,
|
|
15
|
+
ResetContent: 205,
|
|
16
|
+
PartialContent: 206,
|
|
17
|
+
}; }
|
|
18
|
+
// 4xx client error – the request contains bad syntax or cannot be fulfilled
|
|
19
|
+
static { this.RS_4 = {
|
|
20
|
+
BadRequest: 400,
|
|
21
|
+
Unauthorized: 401,
|
|
22
|
+
PaymentRequired: 402,
|
|
23
|
+
Forbidden: 403,
|
|
24
|
+
NotFound: 404,
|
|
25
|
+
MethodNotAllowed: 405,
|
|
26
|
+
RequestTimeout: 408,
|
|
27
|
+
UnsupportedMediaType: 415,
|
|
28
|
+
UnprocessableEntity: 422,
|
|
29
|
+
}; }
|
|
30
|
+
// 5xx server error – the server failed to fulfil an apparently valid request
|
|
31
|
+
static { this.RS_5 = {
|
|
32
|
+
InternalServerError: 500,
|
|
33
|
+
NotImplemented: 501,
|
|
34
|
+
}; }
|
|
35
|
+
}
|
|
36
|
+
exports.ResultCodes = ResultCodes;
|
|
37
|
+
//# sourceMappingURL=result-codes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"result-codes.js","sourceRoot":"","sources":["../../src/common/result-codes.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;aACN,YAAO,GAAG,CAAC,CAAC;aACZ,eAAU,GAAG,CAAC,CAAC;aACf,qBAAgB,GAAG,CAAC,GAAG,CAAC;IAExC,mFAAmF;aACnE,SAAI,GAAG;QACrB,EAAE,EAAE,GAAG;QACP,OAAO,EAAE,GAAG;QACZ,QAAQ,EAAE,GAAG;QACb,2BAA2B,EAAE,GAAG;QAChC,SAAS,EAAE,GAAG;QACd,YAAY,EAAE,GAAG;QACjB,cAAc,EAAE,GAAG;KACpB,CAAC;IAEF,4EAA4E;aAC5D,SAAI,GAAG;QACrB,UAAU,EAAE,GAAG;QACf,YAAY,EAAE,GAAG;QACjB,eAAe,EAAE,GAAG;QACpB,SAAS,EAAE,GAAG;QACd,QAAQ,EAAE,GAAG;QACb,gBAAgB,EAAE,GAAG;QACrB,cAAc,EAAE,GAAG;QACnB,oBAAoB,EAAE,GAAG;QACzB,mBAAmB,EAAE,GAAG;KACzB,CAAC;IAEF,6EAA6E;aAC7D,SAAI,GAAG;QACrB,mBAAmB,EAAE,GAAG;QACxB,cAAc,EAAE,GAAG;KACpB,CAAC;;AAjCJ,kCAkCC"}
|