@nomalism-com/api 1.3.50 → 1.3.51
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/index.cjs
CHANGED
|
@@ -3098,6 +3098,13 @@ var Repository73 = class {
|
|
|
3098
3098
|
async createFromHeader(body) {
|
|
3099
3099
|
await this.api.post(`${this.route}from_header`, body);
|
|
3100
3100
|
}
|
|
3101
|
+
async rectificationPreview(body) {
|
|
3102
|
+
const response = await this.api.post(
|
|
3103
|
+
`${this.route}rectification_preview`,
|
|
3104
|
+
body
|
|
3105
|
+
);
|
|
3106
|
+
return response.data;
|
|
3107
|
+
}
|
|
3101
3108
|
async update(selector, body) {
|
|
3102
3109
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
3103
3110
|
}
|
package/dist/index.js
CHANGED
|
@@ -3065,6 +3065,13 @@ var Repository73 = class {
|
|
|
3065
3065
|
async createFromHeader(body) {
|
|
3066
3066
|
await this.api.post(`${this.route}from_header`, body);
|
|
3067
3067
|
}
|
|
3068
|
+
async rectificationPreview(body) {
|
|
3069
|
+
const response = await this.api.post(
|
|
3070
|
+
`${this.route}rectification_preview`,
|
|
3071
|
+
body
|
|
3072
|
+
);
|
|
3073
|
+
return response.data;
|
|
3074
|
+
}
|
|
3068
3075
|
async update(selector, body) {
|
|
3069
3076
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
3070
3077
|
}
|
|
@@ -11,6 +11,7 @@ export default class Repository implements Nomalism.DocumentHeader.IRepository {
|
|
|
11
11
|
find(params: Nomalism.DocumentHeader.IFindRequest): Promise<Nomalism.DocumentHeader.IFindResponse[]>;
|
|
12
12
|
create(body: Nomalism.DocumentHeader.ICreateRequest): Promise<Nomalism.DocumentHeader.ICreateResponse>;
|
|
13
13
|
createFromHeader(body: Nomalism.DocumentHeader.ICreateFromHeaderRequest): Promise<void>;
|
|
14
|
+
rectificationPreview(body: Nomalism.DocumentHeader.IRectificationPreviewRequest): Promise<Nomalism.DocumentHeader.IRectificationPreviewResponse>;
|
|
14
15
|
update(selector: Nomalism.shared.IFindByIdRequest, body: Nomalism.DocumentHeader.IUpdateRequest): Promise<void>;
|
|
15
16
|
deleteOne(selector: Nomalism.shared.IFindByIdRequest): Promise<void>;
|
|
16
17
|
getActions(selector: Nomalism.shared.IFindByIdRequest): Promise<Nomalism.DocumentHeader.IGetActionsResponse[]>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
3
|
"description": "A nomalism API package for performing HTTP requests on API endpoints",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.51",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"prepare": "husky"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nomalism-com/types": "^1.3.
|
|
33
|
+
"@nomalism-com/types": "^1.3.54",
|
|
34
34
|
"axios": "^1.20.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@eslint/js": "^10.0.1",
|
|
38
|
-
"@swc/core": "^1.16.
|
|
38
|
+
"@swc/core": "^1.16.13",
|
|
39
39
|
"@types/node": "^26.6.3",
|
|
40
40
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
41
41
|
"@typescript-eslint/parser": "^8.62.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lint-staged": "^17.6.0",
|
|
48
48
|
"prettier": "^3.9.9",
|
|
49
49
|
"tsup": "^8.5.1",
|
|
50
|
-
"typescript-eslint": "^8.
|
|
50
|
+
"typescript-eslint": "^8.71.0"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|