@nomalism-com/api 0.8.276 → 0.8.277
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.
|
@@ -8,4 +8,5 @@ export import IExecuteResponse = Entity.IExecuteResponse;
|
|
|
8
8
|
export import IExecuteOutput = Entity.IExecuteOutput;
|
|
9
9
|
export declare const executeOutput: readonly ["csv", "pdf", "json"];
|
|
10
10
|
export declare const route: string;
|
|
11
|
+
export declare const getQueryExecuteUrl: ({ query_id, output, token, ...data }: IExecuteRequest) => string;
|
|
11
12
|
export declare const find: () => Promise<Entity.IFindResponse[]>, findById: (selector: shared.IFindByIdRequest) => Promise<Entity.IFindResponse | null>, create: (data: Entity.ICreateRequest) => Promise<Entity.IFindResponse>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<Entity.IFindResponse | null>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<void>, execute: (data: Entity.IExecuteRequest) => Promise<Entity.IExecuteResponse>;
|
|
@@ -35,11 +35,22 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
39
|
+
var t = {};
|
|
40
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
41
|
+
t[p] = s[p];
|
|
42
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
43
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45
|
+
t[p[i]] = s[p[i]];
|
|
46
|
+
}
|
|
47
|
+
return t;
|
|
48
|
+
};
|
|
38
49
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
39
50
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
51
|
};
|
|
41
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.execute = exports.deleteOne = exports.update = exports.create = exports.findById = exports.find = exports.route = exports.executeOutput = void 0;
|
|
53
|
+
exports.execute = exports.deleteOne = exports.update = exports.create = exports.findById = exports.find = exports.getQueryExecuteUrl = exports.route = exports.executeOutput = void 0;
|
|
43
54
|
var types_1 = require("@nomalism-com/types");
|
|
44
55
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
45
56
|
var _1 = require(".");
|
|
@@ -113,4 +124,18 @@ var repository = {
|
|
|
113
124
|
});
|
|
114
125
|
}); },
|
|
115
126
|
};
|
|
127
|
+
var getQueryExecuteUrl = function (_a) {
|
|
128
|
+
var query_id = _a.query_id, output = _a.output, token = _a.token, data = __rest(_a, ["query_id", "output", "token"]);
|
|
129
|
+
var qs = new URLSearchParams();
|
|
130
|
+
qs.set('query_id', query_id);
|
|
131
|
+
qs.set('output', output);
|
|
132
|
+
if (token) {
|
|
133
|
+
qs.set('token', token);
|
|
134
|
+
}
|
|
135
|
+
for (var key in data) {
|
|
136
|
+
qs.set(key, data[key]);
|
|
137
|
+
}
|
|
138
|
+
return "".concat(exports.route, "/execute?").concat(qs.toString());
|
|
139
|
+
};
|
|
140
|
+
exports.getQueryExecuteUrl = getQueryExecuteUrl;
|
|
116
141
|
exports.find = repository.find, exports.findById = repository.findById, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne, exports.execute = repository.execute;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.8.
|
|
12
|
+
"version": "0.8.277",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/convert-units": "^2.3.5",
|
|
35
35
|
"@types/node": "^18.16.9",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
37
|
-
"@typescript-eslint/parser": "^5.59.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
|
37
|
+
"@typescript-eslint/parser": "^5.59.6",
|
|
38
38
|
"concurrently": "^8.0.1",
|
|
39
39
|
"eslint": "^8.40.0",
|
|
40
40
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^5.0.4"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.9.
|
|
50
|
+
"@nomalism-com/types": "^0.9.355",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|