@nomalism-com/api 0.35.5 → 0.35.8
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 +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -0
- package/package-lock.json +6 -6
- package/package.json +2 -2
- package/src/modules/stock/tag.ts +4 -0
package/dist/index.cjs
CHANGED
|
@@ -4131,6 +4131,9 @@ var Repository115 = class {
|
|
|
4131
4131
|
async update(selector, body) {
|
|
4132
4132
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
4133
4133
|
}
|
|
4134
|
+
async updateMany(body) {
|
|
4135
|
+
await this.api.put(`${this.route}update_many`, body);
|
|
4136
|
+
}
|
|
4134
4137
|
async delete(selector) {
|
|
4135
4138
|
await this.api.delete(`${this.route}${selector.id}`);
|
|
4136
4139
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1820,6 +1820,7 @@ declare class Repository implements Nomalism$1.Tag.IRepository {
|
|
|
1820
1820
|
findByDocumentHeaderId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Tag.IFindResponse[]>;
|
|
1821
1821
|
findById(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Tag.IFindResponse>;
|
|
1822
1822
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Tag.IUpdateRequest): Promise<void>;
|
|
1823
|
+
updateMany(body: Nomalism$1.Tag.IUpdateRequest): Promise<void>;
|
|
1823
1824
|
delete(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1824
1825
|
}
|
|
1825
1826
|
|
package/dist/index.js
CHANGED
|
@@ -4131,6 +4131,9 @@ var Repository115 = class {
|
|
|
4131
4131
|
async update(selector, body) {
|
|
4132
4132
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
4133
4133
|
}
|
|
4134
|
+
async updateMany(body) {
|
|
4135
|
+
await this.api.put(`${this.route}update_many`, body);
|
|
4136
|
+
}
|
|
4134
4137
|
async delete(selector) {
|
|
4135
4138
|
await this.api.delete(`${this.route}${selector.id}`);
|
|
4136
4139
|
}
|
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.7",
|
|
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.7",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nomalism-com/types": "^0.35.
|
|
12
|
+
"@nomalism-com/types": "^0.35.9",
|
|
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.9",
|
|
878
|
+
"resolved": "https://registry.npmjs.org/@nomalism-com/types/-/types-0.35.9.tgz",
|
|
879
|
+
"integrity": "sha512-2IUHhTQ9gCdAjDCqh4QWgE/g1ZR3mlNX4ea9wakiV7KT5cSo/d9KPjSLOZYDr9NCPEmyGbGUr6GTICpPZPrEWQ==",
|
|
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.8",
|
|
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.9",
|
|
43
43
|
"axios": "^1.9.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
package/src/modules/stock/tag.ts
CHANGED
|
@@ -39,6 +39,10 @@ export default class Repository implements Nomalism.Tag.IRepository {
|
|
|
39
39
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
async updateMany(body: Nomalism.Tag.IUpdateRequest): Promise<void> {
|
|
43
|
+
await this.api.put(`${this.route}update_many`, body);
|
|
44
|
+
}
|
|
45
|
+
|
|
42
46
|
async delete(selector: Nomalism.shared.IFindByIdRequest): Promise<void> {
|
|
43
47
|
await this.api.delete(`${this.route}${selector.id}`);
|
|
44
48
|
}
|