itrm-tools 1.1.25 → 1.2.0
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/api/APIRequest.js +2 -2
- package/dist/api/APIRequest.js.map +1 -1
- package/dist/api/builder/StandardGetRequestBuilder.d.ts +7 -0
- package/dist/api/builder/StandardGetRequestBuilder.js +35 -0
- package/dist/api/builder/StandardGetRequestBuilder.js.map +1 -0
- package/dist/api/external/cetus/CetusStrategyApiManager.d.ts +14 -0
- package/dist/api/external/cetus/CetusStrategyApiManager.js +12 -1
- package/dist/api/external/cetus/CetusStrategyApiManager.js.map +1 -1
- package/dist/database/mongoose/MongooseModelManager.d.ts +7 -7
- package/dist/database/redis/RedisConnection.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +26 -27
package/dist/api/APIRequest.js
CHANGED
|
@@ -99,7 +99,7 @@ class APIRequest {
|
|
|
99
99
|
checkItem(item, params) {
|
|
100
100
|
let result = {};
|
|
101
101
|
for (let group of params) {
|
|
102
|
-
if (item[group.context]
|
|
102
|
+
if (item[group.context])
|
|
103
103
|
result[group.context] = this.buildResponseMessage(result[group.context], group, this.findMissingParameters(item[group.context], group.properties));
|
|
104
104
|
else
|
|
105
105
|
return { status: 'Error', message: group.context + " was not found, check your express configuration" };
|
|
@@ -134,7 +134,7 @@ class APIRequest {
|
|
|
134
134
|
let missing = [];
|
|
135
135
|
let wrongType = [];
|
|
136
136
|
for (let property of properties)
|
|
137
|
-
if (!context
|
|
137
|
+
if (!context[property.name])
|
|
138
138
|
missing.push(property.name);
|
|
139
139
|
else if (typeof context[property.name] !== property.type)
|
|
140
140
|
wrongType.push(property.name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIRequest.js","sourceRoot":"","sources":["../../src/api/APIRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,6CAAoD;AACpD,+EAA4E;AAG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oBAAoB,CAAC,GAAa;QACxC,OAAO,IAAI,iDAAuB,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;CACJ;AAhID,gCAgIC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GroupedParameters } from "../APIRequest";
|
|
2
|
+
import { APIRequestBuilder } from "../APIRequestBuilder";
|
|
3
|
+
export declare abstract class StandardGetRequestBuilder extends APIRequestBuilder {
|
|
4
|
+
protected buildDefaultParams(): GroupedParameters[];
|
|
5
|
+
abstract buildSpecificParams(): GroupedParameters[];
|
|
6
|
+
buildParams(): GroupedParameters[];
|
|
7
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StandardGetRequestBuilder = void 0;
|
|
4
|
+
const APIRequest_1 = require("../APIRequest");
|
|
5
|
+
const APIRequestBuilder_1 = require("../APIRequestBuilder");
|
|
6
|
+
class StandardGetRequestBuilder extends APIRequestBuilder_1.APIRequestBuilder {
|
|
7
|
+
buildDefaultParams() {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
context: APIRequest_1.RequestContext.QUERY,
|
|
11
|
+
properties: [{ name: "id", type: APIRequest_1.RequestParameterType.STRING }],
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
context: APIRequest_1.RequestContext.QUERY,
|
|
15
|
+
properties: [{ name: "limit", type: APIRequest_1.RequestParameterType.STRING }],
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
context: APIRequest_1.RequestContext.QUERY,
|
|
19
|
+
properties: [{ name: "count", type: APIRequest_1.RequestParameterType.STRING }],
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
context: APIRequest_1.RequestContext.QUERY,
|
|
23
|
+
properties: [
|
|
24
|
+
{ name: "limit", type: APIRequest_1.RequestParameterType.STRING },
|
|
25
|
+
{ name: "offset", type: APIRequest_1.RequestParameterType.STRING },
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
buildParams() {
|
|
31
|
+
return this.buildDefaultParams().concat(this.buildSpecificParams());
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.StandardGetRequestBuilder = StandardGetRequestBuilder;
|
|
35
|
+
//# sourceMappingURL=StandardGetRequestBuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StandardGetRequestBuilder.js","sourceRoot":"","sources":["../../../src/api/builder/StandardGetRequestBuilder.ts"],"names":[],"mappings":";;;AAAA,8CAAwF;AACxF,4DAAyD;AAEzD,MAAsB,yBAA0B,SAAQ,qCAAiB;IAC7D,kBAAkB;QAC1B,OAAO;YACL;gBACE,OAAO,EAAE,2BAAc,CAAC,KAAK;gBAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,iCAAoB,CAAC,MAAM,EAAE,CAAC;aAChE;YACD;gBACE,OAAO,EAAE,2BAAc,CAAC,KAAK;gBAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,iCAAoB,CAAC,MAAM,EAAE,CAAC;aACnE;YACD;gBACE,OAAO,EAAE,2BAAc,CAAC,KAAK;gBAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,iCAAoB,CAAC,MAAM,EAAE,CAAC;aACnE;YACD;gBACE,OAAO,EAAE,2BAAc,CAAC,KAAK;gBAC7B,UAAU,EAAE;oBACV,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,iCAAoB,CAAC,MAAM,EAAE;oBACpD,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,iCAAoB,CAAC,MAAM,EAAE;iBACtD;aACF;SACF,CAAC;IACJ,CAAC;IAIM,WAAW;QAChB,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;IACtE,CAAC;CACF;AA9BD,8DA8BC"}
|
|
@@ -7,8 +7,22 @@ export interface CetusRate {
|
|
|
7
7
|
spot?: number;
|
|
8
8
|
prevDayClose?: number;
|
|
9
9
|
}
|
|
10
|
+
export declare enum CetusPair {
|
|
11
|
+
USDCOP = "USDCOP"
|
|
12
|
+
}
|
|
13
|
+
export interface CetusStrategy {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
settings: any;
|
|
17
|
+
memory: any;
|
|
18
|
+
account: string;
|
|
19
|
+
pair: string;
|
|
20
|
+
intermediary: string;
|
|
21
|
+
status: string;
|
|
22
|
+
}
|
|
10
23
|
export declare class CetusStrategyApiManager extends ExternalApiSigner {
|
|
11
24
|
private apiUrl;
|
|
12
25
|
constructor(keys: ApiKeyPair, apiUrl: string);
|
|
13
26
|
getRates(): Promise<CetusRate[]>;
|
|
27
|
+
getStrategies(name: string, pair: CetusPair, account: string): Promise<CetusStrategy[]>;
|
|
14
28
|
}
|
|
@@ -9,11 +9,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CetusStrategyApiManager = void 0;
|
|
12
|
+
exports.CetusStrategyApiManager = exports.CetusPair = void 0;
|
|
13
13
|
const ExternalApiSigner_1 = require("../ExternalApiSigner");
|
|
14
14
|
const APIRequest_1 = require("../../APIRequest");
|
|
15
15
|
const RequestAxiosCall_1 = require("../../request/RequestAxiosCall");
|
|
16
16
|
;
|
|
17
|
+
var CetusPair;
|
|
18
|
+
(function (CetusPair) {
|
|
19
|
+
CetusPair["USDCOP"] = "USDCOP";
|
|
20
|
+
})(CetusPair || (exports.CetusPair = CetusPair = {}));
|
|
17
21
|
class CetusStrategyApiManager extends ExternalApiSigner_1.ExternalApiSigner {
|
|
18
22
|
constructor(keys, apiUrl) {
|
|
19
23
|
super('cetus', keys);
|
|
@@ -25,6 +29,13 @@ class CetusStrategyApiManager extends ExternalApiSigner_1.ExternalApiSigner {
|
|
|
25
29
|
return (yield RequestAxiosCall_1.RequestAxiosCall.get(`${this.apiUrl}/v1/rates`, signature)).rates;
|
|
26
30
|
});
|
|
27
31
|
}
|
|
32
|
+
getStrategies(name, pair, account) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
let url = `/v1/strategies?name=${name}&pair=${pair}&account=${account}`;
|
|
35
|
+
let signature = this.sign(APIRequest_1.RequestMethod.GET, url);
|
|
36
|
+
return ((yield RequestAxiosCall_1.RequestAxiosCall.get(`${this.apiUrl}${url}`, signature)).result);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
28
39
|
}
|
|
29
40
|
exports.CetusStrategyApiManager = CetusStrategyApiManager;
|
|
30
41
|
//# sourceMappingURL=CetusStrategyApiManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CetusStrategyApiManager.js","sourceRoot":"","sources":["../../../../src/api/external/cetus/CetusStrategyApiManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,4DAAqE;AACrE,iDAAiD;AACjD,qEAAkE;AASjE,CAAC;AAEF,MAAa,uBAAwB,SAAQ,qCAAiB;IAG1D,YAAY,IAAgB,EAAE,MAAc;QACxC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEY,QAAQ;;YACjB,IAAI,SAAS,GAAuB,IAAI,CAAC,IAAI,CAAC,0BAAa,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;YAC9E,OAAQ,CAAC,MAAM,mCAAgB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,WAAW,EAAE,SAAS,CAAC,CAA6C,CAAC,KAAK,CAAC;QACjI,CAAC;KAAA;CACJ;
|
|
1
|
+
{"version":3,"file":"CetusStrategyApiManager.js","sourceRoot":"","sources":["../../../../src/api/external/cetus/CetusStrategyApiManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,4DAAqE;AACrE,iDAAiD;AACjD,qEAAkE;AASjE,CAAC;AAEF,IAAY,SAEX;AAFD,WAAY,SAAS;IACjB,8BAAiB,CAAA;AACrB,CAAC,EAFW,SAAS,yBAAT,SAAS,QAEpB;AAaD,MAAa,uBAAwB,SAAQ,qCAAiB;IAG1D,YAAY,IAAgB,EAAE,MAAc;QACxC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAEY,QAAQ;;YACjB,IAAI,SAAS,GAAuB,IAAI,CAAC,IAAI,CAAC,0BAAa,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;YAC9E,OAAQ,CAAC,MAAM,mCAAgB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,WAAW,EAAE,SAAS,CAAC,CAA6C,CAAC,KAAK,CAAC;QACjI,CAAC;KAAA;IAEY,aAAa,CAAC,IAAY,EAAE,IAAe,EAAE,OAAe;;YACrE,IAAI,GAAG,GAAG,uBAAuB,IAAI,SAAS,IAAI,YAAY,OAAO,EAAE,CAAC;YACxE,IAAI,SAAS,GAAuB,IAAI,CAAC,IAAI,CAAC,0BAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;YACtE,OAAO,CAAE,CAAC,MAAM,mCAAgB,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,MAAM,GAAG,GAAG,EAAE,EAAE,SAAS,CAAC,CAAS,CAAC,MAAM,CAAoB,CAAC;QAChH,CAAC;KAAA;CACJ;AAlBD,0DAkBC"}
|
|
@@ -3,11 +3,11 @@ export declare class MongooseModelManager<S> {
|
|
|
3
3
|
collection: string;
|
|
4
4
|
protected model: Model<S>;
|
|
5
5
|
constructor(collection: string, definition: ObtainDocumentType<any, S, DefaultSchemaOptions> | SchemaDefinition<SchemaDefinitionType<S>>, options?: SchemaOptions | ResolveSchemaOptions<any>);
|
|
6
|
-
create(datum: S): Promise<(import("mongoose").Document<unknown, {}, S> & {
|
|
6
|
+
create(datum: S): Promise<(import("mongoose").Document<unknown, {}, S, {}> & {
|
|
7
7
|
_id: import("mongoose").Types.ObjectId;
|
|
8
8
|
} & {
|
|
9
9
|
__v: number;
|
|
10
|
-
}) | (import("mongoose").Document<unknown, {}, S> & {
|
|
10
|
+
}) | (import("mongoose").Document<unknown, {}, S, {}> & {
|
|
11
11
|
_id?: unknown;
|
|
12
12
|
} & Required<{
|
|
13
13
|
_id: unknown;
|
|
@@ -17,13 +17,13 @@ export declare class MongooseModelManager<S> {
|
|
|
17
17
|
createMany(data: S[]): Promise<any>;
|
|
18
18
|
exists(filter: FilterQuery<S>): import("mongoose").Query<{
|
|
19
19
|
_id: import("mongoose").InferId<S>;
|
|
20
|
-
} | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "findOne", {}>;
|
|
21
|
-
find(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>> | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "findOne", {}>;
|
|
22
|
-
findMany(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "find", {}>;
|
|
23
|
-
batch(filter: FilterQuery<S>, from: number, size: number): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "find", {}>;
|
|
20
|
+
} | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "findOne", {}>;
|
|
21
|
+
find(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>> | null, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "findOne", {}>;
|
|
22
|
+
findMany(filter: FilterQuery<S>): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "find", {}>;
|
|
23
|
+
batch(filter: FilterQuery<S>, from: number, size: number): import("mongoose").Query<import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>[], import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "find", {}>;
|
|
24
24
|
updateOne(filter: FilterQuery<S>, data: UpdateWithAggregationPipeline | UpdateQuery<S>): any;
|
|
25
25
|
bulkWrite(writes: any[], options?: MongooseBulkWriteOptions): Promise<any>;
|
|
26
26
|
delete(filter: FilterQuery<S>): any;
|
|
27
27
|
deleteMany(filter: FilterQuery<S>): any;
|
|
28
|
-
countDocuments(filter: FilterQuery<S>): import("mongoose").Query<number, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "countDocuments", {}>;
|
|
28
|
+
countDocuments(filter: FilterQuery<S>): import("mongoose").Query<number, import("mongoose").IfAny<S, any, import("mongoose").Document<unknown, {}, S, {}> & import("mongoose").Default__v<import("mongoose").Require_id<S>>>, {}, S, "countDocuments", {}>;
|
|
29
29
|
}
|
|
@@ -2,6 +2,6 @@ import { RedisClientOptions, RedisFunctions, RedisModules, RedisScripts } from '
|
|
|
2
2
|
export declare class RedisConnection {
|
|
3
3
|
private client;
|
|
4
4
|
constructor(clientOptions?: RedisClientOptions);
|
|
5
|
-
connect(): Promise<import("@redis/client").RedisClientType<RedisModules, RedisFunctions, RedisScripts>>;
|
|
5
|
+
connect(): Promise<import("@redis/client").RedisClientType<RedisModules, RedisFunctions, RedisScripts, 2, {}>>;
|
|
6
6
|
disconnect(): Promise<void>;
|
|
7
7
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,11 +4,12 @@ export { IAlegraContact as IAlegraContact, IAlegraPayment as IAlegraPayment, IAl
|
|
|
4
4
|
export { APIServiceConfig as APIServiceConfig, APIService as APIService, APIServiceResponse as APIServiceResponse, ITRMAPIServiceGlobal as ITRMAPIServiceGlobal } from './api/APIService';
|
|
5
5
|
export { HttpsAPIService as HttpsAPIService } from './api/HttpsAPIService';
|
|
6
6
|
export { ExpressConfiguration as ExpressConfiguration } from './api/ExpressConfiguration';
|
|
7
|
+
export { StandardGetRequestBuilder as StandardGetRequestBuilder } from './api/builder/StandardGetRequestBuilder';
|
|
7
8
|
export { ExpressLogableConfig as ExpressLogableConfig } from './api/express/ExpressLogableConfig';
|
|
8
9
|
export { ExpressStandardConfiguration as ExpressStandardConfiguration } from './api/express/ExpressStandardConfiguration';
|
|
9
10
|
export { ExpressFileUploadingConfiguration as ExpressFileUploadingConfiguration } from './api/express/ExpressFileUploadingConfiguration';
|
|
10
11
|
export { ExternalApiSigner as ExternalApiSigner, ApiKeyPair as ApiKeyPair } from './api/external/ExternalApiSigner';
|
|
11
|
-
export { CetusStrategyApiManager as CetusStrategyApiManager } from './api/external/cetus/CetusStrategyApiManager';
|
|
12
|
+
export { CetusStrategyApiManager as CetusStrategyApiManager, CetusPair as CetusPair, CetusRate as CetusRate, CetusStrategy as CetusStrategy } from './api/external/cetus/CetusStrategyApiManager';
|
|
12
13
|
export { APIRequest as APIRequest, RequestMethod as RequestMethod, RequestContext as RequestContext, GroupedParameters as GroupedParameters, APIRequestConfig as APIRequestConfig, RequestParameterType as RequestParameterType } from './api/APIRequest';
|
|
13
14
|
export { APIRequestBuilder as APIRequestBuilder, DocDetails as DocDetails, ISamples as ISamples } from './api/APIRequestBuilder';
|
|
14
15
|
export { APIRouter as APIRouter } from './api/APIRouter';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.round = exports.CoingeckoPriceFinder = exports.Coin = exports.LoggerWebSocket = exports.LoggerManager = exports.Logger = exports.SequelizeModelManager = exports.SequelizeConnection = exports.MongooseModelManager = exports.CrudServiceManager = exports.SimpleCheckableAPIRouter = exports.CorsCheckApiRouter = exports.CheckableAPIRouter = exports.CheckableFileUploadingPostRequest = exports.CheckablePutRequest = exports.CheckablePostRequest = exports.CheckableGetRequest = exports.CheckableDeleteRequest = exports.APIChecker = exports.CheckableAPIRequest = exports.DeleteRequest = exports.PutRequest = exports.PostRequest = exports.GetRequest = exports.RequestAxiosCall = exports.SimpleAPIRouter = exports.APIRouter = exports.APIRequestBuilder = exports.RequestParameterType = exports.RequestContext = exports.RequestMethod = exports.APIRequest = exports.CetusStrategyApiManager = exports.ExternalApiSigner = exports.ExpressFileUploadingConfiguration = exports.ExpressStandardConfiguration = exports.ExpressLogableConfig = exports.HttpsAPIService = exports.ITRMAPIServiceGlobal = exports.APIService = exports.AlegraConnectionManager = void 0;
|
|
3
|
+
exports.round = exports.CoingeckoPriceFinder = exports.Coin = exports.LoggerWebSocket = exports.LoggerManager = exports.Logger = exports.SequelizeModelManager = exports.SequelizeConnection = exports.MongooseModelManager = exports.CrudServiceManager = exports.SimpleCheckableAPIRouter = exports.CorsCheckApiRouter = exports.CheckableAPIRouter = exports.CheckableFileUploadingPostRequest = exports.CheckablePutRequest = exports.CheckablePostRequest = exports.CheckableGetRequest = exports.CheckableDeleteRequest = exports.APIChecker = exports.CheckableAPIRequest = exports.DeleteRequest = exports.PutRequest = exports.PostRequest = exports.GetRequest = exports.RequestAxiosCall = exports.SimpleAPIRouter = exports.APIRouter = exports.APIRequestBuilder = exports.RequestParameterType = exports.RequestContext = exports.RequestMethod = exports.APIRequest = exports.CetusPair = exports.CetusStrategyApiManager = exports.ExternalApiSigner = exports.ExpressFileUploadingConfiguration = exports.ExpressStandardConfiguration = exports.ExpressLogableConfig = exports.StandardGetRequestBuilder = exports.HttpsAPIService = exports.ITRMAPIServiceGlobal = exports.APIService = exports.AlegraConnectionManager = void 0;
|
|
4
4
|
var AlegraConnectionManager_1 = require("./api/alegra/AlegraConnectionManager");
|
|
5
5
|
Object.defineProperty(exports, "AlegraConnectionManager", { enumerable: true, get: function () { return AlegraConnectionManager_1.AlegraConnectionManager; } });
|
|
6
6
|
var APIService_1 = require("./api/APIService");
|
|
@@ -8,6 +8,8 @@ Object.defineProperty(exports, "APIService", { enumerable: true, get: function (
|
|
|
8
8
|
Object.defineProperty(exports, "ITRMAPIServiceGlobal", { enumerable: true, get: function () { return APIService_1.ITRMAPIServiceGlobal; } });
|
|
9
9
|
var HttpsAPIService_1 = require("./api/HttpsAPIService");
|
|
10
10
|
Object.defineProperty(exports, "HttpsAPIService", { enumerable: true, get: function () { return HttpsAPIService_1.HttpsAPIService; } });
|
|
11
|
+
var StandardGetRequestBuilder_1 = require("./api/builder/StandardGetRequestBuilder");
|
|
12
|
+
Object.defineProperty(exports, "StandardGetRequestBuilder", { enumerable: true, get: function () { return StandardGetRequestBuilder_1.StandardGetRequestBuilder; } });
|
|
11
13
|
var ExpressLogableConfig_1 = require("./api/express/ExpressLogableConfig");
|
|
12
14
|
Object.defineProperty(exports, "ExpressLogableConfig", { enumerable: true, get: function () { return ExpressLogableConfig_1.ExpressLogableConfig; } });
|
|
13
15
|
var ExpressStandardConfiguration_1 = require("./api/express/ExpressStandardConfiguration");
|
|
@@ -18,6 +20,7 @@ var ExternalApiSigner_1 = require("./api/external/ExternalApiSigner");
|
|
|
18
20
|
Object.defineProperty(exports, "ExternalApiSigner", { enumerable: true, get: function () { return ExternalApiSigner_1.ExternalApiSigner; } });
|
|
19
21
|
var CetusStrategyApiManager_1 = require("./api/external/cetus/CetusStrategyApiManager");
|
|
20
22
|
Object.defineProperty(exports, "CetusStrategyApiManager", { enumerable: true, get: function () { return CetusStrategyApiManager_1.CetusStrategyApiManager; } });
|
|
23
|
+
Object.defineProperty(exports, "CetusPair", { enumerable: true, get: function () { return CetusStrategyApiManager_1.CetusPair; } });
|
|
21
24
|
var APIRequest_1 = require("./api/APIRequest");
|
|
22
25
|
Object.defineProperty(exports, "APIRequest", { enumerable: true, get: function () { return APIRequest_1.APIRequest; } });
|
|
23
26
|
Object.defineProperty(exports, "RequestMethod", { enumerable: true, get: function () { return APIRequest_1.RequestMethod; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,gFAA0G;AAAjG,kIAAA,uBAAuB,OAA2B;AAG3D,+CAA0L;AAA3I,wGAAA,UAAU,OAAc;AAA4C,kHAAA,oBAAoB,OAAwB;AAC/J,yDAA2E;AAAlE,kHAAA,eAAe,OAAmB;AAE3C,2EAAkG;AAAzF,4HAAA,oBAAoB,OAAwB;AACrD,2FAA0H;AAAjH,4IAAA,4BAA4B,OAAgC;AACrE,qGAAyI;AAAhI,sJAAA,iCAAiC,OAAqC;AAC/E,sEAAoH;AAA3G,sHAAA,iBAAiB,OAAqB;AAC/C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot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;AAAtI,sJAAA,iCAAiC,OAAqC;AAC/E,qEAA0F;AAAjF,wHAAA,kBAAkB,OAAsB;AACjD,2EAAgG;AAAvF,wHAAA,kBAAkB,OAAsB;AACjD,uFAAkH;AAAzG,oIAAA,wBAAwB,OAA4B;AAG7D,4EAA6J;AAApJ,wHAAA,kBAAkB,OAAsB;AAEjD,iFAAwG;AAA/F,4HAAA,oBAAoB,OAAwB;AACrD,gFAAsG;AAA7F,0HAAA,mBAAmB,OAAuB;AACnD,oFAA4G;AAAnG,8HAAA,qBAAqB,OAAyB;AAEvD,uCAAgD;AAAvC,gGAAA,MAAM,OAAU;AACzB,qDAAqE;AAA5D,8GAAA,aAAa,OAAiB;AACvC,yDAA2E;AAAlE,kHAAA,eAAe,OAAmB;AAE3C,oCAA2C;AAAlC,4FAAA,IAAI,OAAQ;AACrB,8EAAqG;AAA5F,4HAAA,oBAAoB,OAAwB;AAErD,sCAA8C;AAArC,8FAAA,KAAK,OAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "itrm-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -31,46 +31,45 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/ITRMachines/itrm-tools#readme",
|
|
33
33
|
"devDependencies": {
|
|
34
|
+
"@sequelize/core": "^7.0.0-alpha.43",
|
|
34
35
|
"@sequelize/sqlite3": "^7.0.0-alpha.43",
|
|
36
|
+
"@types/cors": "^2.8.18",
|
|
35
37
|
"@types/crypto-js": "^4.2.2",
|
|
36
|
-
"@types/express": "^5.0.
|
|
37
|
-
"@types/jest": "^29.5.
|
|
38
|
-
"@types/
|
|
39
|
-
"@types/
|
|
40
|
-
"@types/
|
|
38
|
+
"@types/express": "^5.0.1",
|
|
39
|
+
"@types/jest": "^29.5.14",
|
|
40
|
+
"@types/morgan": "^1.9.9",
|
|
41
|
+
"@types/multer": "^1.4.12",
|
|
42
|
+
"@types/node": "^22.15.3",
|
|
43
|
+
"@types/swagger-ui-express": "^4.1.8",
|
|
41
44
|
"@types/uuid": "^10.0.0",
|
|
42
|
-
"
|
|
45
|
+
"@types/ws": "^8.18.1",
|
|
46
|
+
"axios-mock-adapter": "^2.1.0",
|
|
43
47
|
"jest": "^29.7.0",
|
|
44
48
|
"jest-puppeteer": "^11.0.0",
|
|
45
|
-
"mongodb-memory-server": "^10.
|
|
46
|
-
"puppeteer": "^24.
|
|
47
|
-
"redis": "^
|
|
49
|
+
"mongodb-memory-server": "^10.1.4",
|
|
50
|
+
"puppeteer": "^24.7.2",
|
|
51
|
+
"redis": "^5.0.1",
|
|
48
52
|
"rimraf": "^6.0.1",
|
|
49
|
-
"sqlite3": "^5.1.
|
|
50
|
-
"ts-jest": "^29.
|
|
51
|
-
"typescript": "^5.
|
|
53
|
+
"sqlite3": "^5.1.7",
|
|
54
|
+
"ts-jest": "^29.3.2",
|
|
55
|
+
"typescript": "^5.8.3",
|
|
52
56
|
"uuid": "^11.1.0"
|
|
53
57
|
},
|
|
54
58
|
"dependencies": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"@types/morgan": "^1.9.9",
|
|
58
|
-
"@types/ws": "^8.5.8",
|
|
59
|
-
"axios": "^1.7.3",
|
|
60
|
-
"axios-retry": "^4.0.0",
|
|
59
|
+
"axios": "^1.9.0",
|
|
60
|
+
"axios-retry": "^4.5.0",
|
|
61
61
|
"body-parser": "^2.2.0",
|
|
62
62
|
"cors": "^2.8.5",
|
|
63
63
|
"crypto-js": "^4.2.0",
|
|
64
|
-
"express": "^
|
|
64
|
+
"express": "^5.1.0",
|
|
65
65
|
"https": "^1.0.0",
|
|
66
|
-
"
|
|
67
|
-
"mongoose": "^8.7.0",
|
|
66
|
+
"mongoose": "^8.15.0",
|
|
68
67
|
"morgan": "^1.10.0",
|
|
69
|
-
"multer": "^
|
|
70
|
-
"pg": "^8.
|
|
68
|
+
"multer": "^2.0.0",
|
|
69
|
+
"pg": "^8.16.0",
|
|
71
70
|
"pg-hstore": "^2.3.4",
|
|
72
|
-
"sequelize": "^6.37.
|
|
73
|
-
"swagger-ui-express": "^5.0.
|
|
74
|
-
"ws": "^8.
|
|
71
|
+
"sequelize": "^6.37.7",
|
|
72
|
+
"swagger-ui-express": "^5.0.1",
|
|
73
|
+
"ws": "^8.18.2"
|
|
75
74
|
}
|
|
76
75
|
}
|