@nomalism-com/api 0.8.316 → 0.8.318
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.
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { shared, ObservationType as Entity } from '@nomalism-com/types';
|
|
2
|
-
export import IFindRequest = Entity.IFindRequest;
|
|
3
|
-
export import IFindDetailedResponse = Entity.IFindDetailedResponse;
|
|
4
2
|
export import IFindMinifiedRequest = shared.IFindMinifiedRequest;
|
|
5
3
|
export import IFindMinifiedResponse = shared.IFindMinifiedResponse;
|
|
6
4
|
export import ICreateRequest = Entity.ICreateRequest;
|
|
7
5
|
export import IEntity = Entity.Entity;
|
|
8
6
|
export import IUpdateRequest = Entity.IUpdateRequest;
|
|
9
7
|
export declare const route: string;
|
|
10
|
-
export declare const
|
|
8
|
+
export declare const find: () => Promise<import("@nomalism-com/types/dist/shared/entities").ObservationType[]>, findMinified: (params?: shared.IFindMinifiedRequest | undefined) => Promise<shared.IFindMinifiedResponse[]>, create: (data: Entity.ICreateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").ObservationType>, update: (selector: shared.IFindByIdRequest, data: Entity.IUpdateRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").ObservationType | null>, deleteOne: (selector: shared.IFindByIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").ObservationType | null>;
|
|
@@ -39,18 +39,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.deleteOne = exports.update = exports.create = exports.findMinified = exports.
|
|
42
|
+
exports.deleteOne = exports.update = exports.create = exports.findMinified = exports.find = exports.route = void 0;
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
44
|
var _1 = require(".");
|
|
45
45
|
exports.route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "observation_type/");
|
|
46
46
|
var repository = {
|
|
47
|
-
|
|
47
|
+
find: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
48
|
var response;
|
|
49
49
|
return __generator(this, function (_a) {
|
|
50
50
|
switch (_a.label) {
|
|
51
|
-
case 0: return [4, client_1.default.get("".concat(exports.route)
|
|
52
|
-
params: params,
|
|
53
|
-
})];
|
|
51
|
+
case 0: return [4, client_1.default.get("".concat(exports.route))];
|
|
54
52
|
case 1:
|
|
55
53
|
response = _a.sent();
|
|
56
54
|
return [2, response.data];
|
|
@@ -104,4 +102,4 @@ var repository = {
|
|
|
104
102
|
});
|
|
105
103
|
}); },
|
|
106
104
|
};
|
|
107
|
-
exports.
|
|
105
|
+
exports.find = repository.find, exports.findMinified = repository.findMinified, exports.create = repository.create, exports.update = repository.update, exports.deleteOne = repository.deleteOne;
|
|
@@ -2,6 +2,6 @@ import { shared, SchedulePrintJob as Entity } from '@nomalism-com/types';
|
|
|
2
2
|
export import IEntity = Entity.Entity;
|
|
3
3
|
export import ICreateSchedulePrintJobRequest = Entity.ICreateSchedulePrintJobRequest;
|
|
4
4
|
export import IDispatchSchedulePrintJobRequest = Entity.IDispatchSchedulePrintJobRequest;
|
|
5
|
-
export import
|
|
5
|
+
export import IDispatchSchedulePrintJobResponse = Entity.IDispatchSchedulePrintJobResponse;
|
|
6
6
|
export declare const route: string;
|
|
7
|
-
export declare const create: (data: Entity.ICreateSchedulePrintJobRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").ScheduledPrintJob>, deleteOne: (params: shared.IFindByIdRequest) => Promise<void>, dispatchSchedulePrintJob: (data: Entity.IDispatchSchedulePrintJobRequest) => Promise<Entity.
|
|
7
|
+
export declare const create: (data: Entity.ICreateSchedulePrintJobRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").ScheduledPrintJob>, deleteOne: (params: shared.IFindByIdRequest) => Promise<void>, dispatchSchedulePrintJob: (data: Entity.IDispatchSchedulePrintJobRequest) => Promise<Entity.IDispatchSchedulePrintJobResponse>, findByOwner: (data: shared.IFindByOwnerIdRequest) => Promise<import("@nomalism-com/types/dist/shared/entities").ScheduledPrintJob[]>;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.8.
|
|
12
|
+
"version": "0.8.318",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"files": [
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/convert-units": "^2.3.5",
|
|
35
|
-
"@types/node": "^18.16.
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
37
|
-
"@typescript-eslint/parser": "^5.59.
|
|
38
|
-
"concurrently": "^8.
|
|
35
|
+
"@types/node": "^18.16.18",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
37
|
+
"@typescript-eslint/parser": "^5.59.11",
|
|
38
|
+
"concurrently": "^8.2.0",
|
|
39
39
|
"eslint": "^8.42.0",
|
|
40
40
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
41
41
|
"eslint-config-prettier": "^8.8.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typescript": "^5.1.3"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nomalism-com/types": "^0.9.
|
|
50
|
+
"@nomalism-com/types": "^0.9.420",
|
|
51
51
|
"axios": "^0.27.2"
|
|
52
52
|
}
|
|
53
53
|
}
|