@nomalism-com/api 0.35.9 → 0.35.11
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 +0 -7
- package/dist/index.d.ts +1 -3
- package/dist/index.js +0 -7
- package/package-lock.json +6 -6
- package/package.json +2 -2
- package/src/modules/stock/tag.ts +1 -13
package/dist/index.cjs
CHANGED
|
@@ -4124,13 +4124,6 @@ var Repository115 = class {
|
|
|
4124
4124
|
const response = await this.api.get(`${this.route}document_header_id/${selector.id}`);
|
|
4125
4125
|
return response.data;
|
|
4126
4126
|
}
|
|
4127
|
-
async findById(selector) {
|
|
4128
|
-
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
4129
|
-
return response.data;
|
|
4130
|
-
}
|
|
4131
|
-
async update(selector, body) {
|
|
4132
|
-
await this.api.put(`${this.route}${selector.id}`, body);
|
|
4133
|
-
}
|
|
4134
4127
|
async updateMany(body) {
|
|
4135
4128
|
await this.api.put(`${this.route}update_many`, body);
|
|
4136
4129
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1818,9 +1818,7 @@ declare class Repository implements Nomalism$1.Tag.IRepository {
|
|
|
1818
1818
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
1819
1819
|
create(body: Nomalism$1.Tag.ICreateRequest): Promise<void>;
|
|
1820
1820
|
findByDocumentHeaderId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Tag.IFindResponse[]>;
|
|
1821
|
-
|
|
1822
|
-
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Tag.IUpdateRequest): Promise<void>;
|
|
1823
|
-
updateMany(body: Nomalism$1.Tag.IUpdateRequest[]): Promise<void>;
|
|
1821
|
+
updateMany(body: Nomalism$1.Tag.IUpdateManyRequest[]): Promise<void>;
|
|
1824
1822
|
delete(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1825
1823
|
}
|
|
1826
1824
|
|
package/dist/index.js
CHANGED
|
@@ -4124,13 +4124,6 @@ var Repository115 = class {
|
|
|
4124
4124
|
const response = await this.api.get(`${this.route}document_header_id/${selector.id}`);
|
|
4125
4125
|
return response.data;
|
|
4126
4126
|
}
|
|
4127
|
-
async findById(selector) {
|
|
4128
|
-
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
4129
|
-
return response.data;
|
|
4130
|
-
}
|
|
4131
|
-
async update(selector, body) {
|
|
4132
|
-
await this.api.put(`${this.route}${selector.id}`, body);
|
|
4133
|
-
}
|
|
4134
4127
|
async updateMany(body) {
|
|
4135
4128
|
await this.api.put(`${this.route}update_many`, body);
|
|
4136
4129
|
}
|
package/package-lock.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.10",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@nomalism-com/api",
|
|
9
|
-
"version": "0.35.
|
|
9
|
+
"version": "0.35.10",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nomalism-com/types": "^0.35.
|
|
12
|
+
"@nomalism-com/types": "^0.35.12",
|
|
13
13
|
"axios": "^1.9.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
@@ -874,9 +874,9 @@
|
|
|
874
874
|
}
|
|
875
875
|
},
|
|
876
876
|
"node_modules/@nomalism-com/types": {
|
|
877
|
-
"version": "0.35.
|
|
878
|
-
"resolved": "https://registry.npmjs.org/@nomalism-com/types/-/types-0.35.
|
|
879
|
-
"integrity": "sha512-
|
|
877
|
+
"version": "0.35.12",
|
|
878
|
+
"resolved": "https://registry.npmjs.org/@nomalism-com/types/-/types-0.35.12.tgz",
|
|
879
|
+
"integrity": "sha512-C3E4/KpeJCFqtv3KtI9EEb9Ms4eZMSlGkXyehIqXkDLIZMA8cYohwj9fHvG5qRG1d6Krg0/cS8b47VHkq+jObg==",
|
|
880
880
|
"license": "UNLICENSED",
|
|
881
881
|
"dependencies": {
|
|
882
882
|
"joi": "^17.13.3"
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.35.
|
|
12
|
+
"version": "0.35.11",
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "./dist/index.cjs",
|
|
15
15
|
"module": "./dist/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"prepack": "npm run lint && npm run build"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@nomalism-com/types": "^0.35.
|
|
42
|
+
"@nomalism-com/types": "^0.35.12",
|
|
43
43
|
"axios": "^1.9.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
package/src/modules/stock/tag.ts
CHANGED
|
@@ -27,19 +27,7 @@ export default class Repository implements Nomalism.Tag.IRepository {
|
|
|
27
27
|
return response.data;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
async
|
|
31
|
-
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
32
|
-
return response.data;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
async update(
|
|
36
|
-
selector: Nomalism.shared.IFindByIdRequest,
|
|
37
|
-
body: Nomalism.Tag.IUpdateRequest,
|
|
38
|
-
): Promise<void> {
|
|
39
|
-
await this.api.put(`${this.route}${selector.id}`, body);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
async updateMany(body: Nomalism.Tag.IUpdateRequest[]): Promise<void> {
|
|
30
|
+
async updateMany(body: Nomalism.Tag.IUpdateManyRequest[]): Promise<void> {
|
|
43
31
|
await this.api.put(`${this.route}update_many`, body);
|
|
44
32
|
}
|
|
45
33
|
|