@nomalism-com/api 0.36.24 → 0.36.26
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 +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/package-lock.json +6 -6
- package/package.json +2 -2
- package/src/modules/stock/task.ts +7 -0
package/dist/index.cjs
CHANGED
|
@@ -3843,6 +3843,10 @@ var Repository103 = class {
|
|
|
3843
3843
|
const response = await this.api.post(`${this.route}`, body);
|
|
3844
3844
|
return response.data;
|
|
3845
3845
|
}
|
|
3846
|
+
async createFromDossier(body) {
|
|
3847
|
+
const response = await this.api.post(`${this.route}from_dossier`, body);
|
|
3848
|
+
return response.data;
|
|
3849
|
+
}
|
|
3846
3850
|
async update(selector, body) {
|
|
3847
3851
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
3848
3852
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1653,6 +1653,7 @@ declare class Repository$d implements Nomalism$1.Task.IRepository {
|
|
|
1653
1653
|
find(selector: Nomalism$1.Task.IFindTasksRequest): Promise<Nomalism$1.Task.IFindResponse[]>;
|
|
1654
1654
|
findWithMessages(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.Task.IFindWithMessagesResponse>;
|
|
1655
1655
|
create(body: Nomalism$1.Task.ICreateRequest): Promise<Nomalism$1.Task.Entity>;
|
|
1656
|
+
createFromDossier(body: Nomalism$1.Task.ICreateFromDossierRequest): Promise<Nomalism$1.Task.Entity>;
|
|
1656
1657
|
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.Task.IUpdateRequest): Promise<void>;
|
|
1657
1658
|
delete(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1658
1659
|
findByOwnerId(selector: Nomalism$1.shared.IFindByOwnerIdRequest): Promise<Nomalism$1.Task.IFindByOwnerResponse[]>;
|
package/dist/index.js
CHANGED
|
@@ -3843,6 +3843,10 @@ var Repository103 = class {
|
|
|
3843
3843
|
const response = await this.api.post(`${this.route}`, body);
|
|
3844
3844
|
return response.data;
|
|
3845
3845
|
}
|
|
3846
|
+
async createFromDossier(body) {
|
|
3847
|
+
const response = await this.api.post(`${this.route}from_dossier`, body);
|
|
3848
|
+
return response.data;
|
|
3849
|
+
}
|
|
3846
3850
|
async update(selector, body) {
|
|
3847
3851
|
await this.api.put(`${this.route}${selector.id}`, body);
|
|
3848
3852
|
}
|
package/package-lock.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nomalism-com/api",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.25",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@nomalism-com/api",
|
|
9
|
-
"version": "0.36.
|
|
9
|
+
"version": "0.36.25",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@nomalism-com/types": "^0.36.
|
|
12
|
+
"@nomalism-com/types": "^0.36.30",
|
|
13
13
|
"axios": "^1.9.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
@@ -887,9 +887,9 @@
|
|
|
887
887
|
}
|
|
888
888
|
},
|
|
889
889
|
"node_modules/@nomalism-com/types": {
|
|
890
|
-
"version": "0.36.
|
|
891
|
-
"resolved": "https://registry.npmjs.org/@nomalism-com/types/-/types-0.36.
|
|
892
|
-
"integrity": "sha512-
|
|
890
|
+
"version": "0.36.30",
|
|
891
|
+
"resolved": "https://registry.npmjs.org/@nomalism-com/types/-/types-0.36.30.tgz",
|
|
892
|
+
"integrity": "sha512-ogU4rCw8Fi0BqWCrwoWnxwvI7JlgPRgpHLOcMhmUgENifpMSiF1vCG7OgzQHLc5+J9p2FtezADupoUJLegzgoA==",
|
|
893
893
|
"license": "UNLICENSED",
|
|
894
894
|
"dependencies": {
|
|
895
895
|
"joi": "^17.13.3"
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript",
|
|
10
10
|
"helper"
|
|
11
11
|
],
|
|
12
|
-
"version": "0.36.
|
|
12
|
+
"version": "0.36.26",
|
|
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.36.
|
|
42
|
+
"@nomalism-com/types": "^0.36.30",
|
|
43
43
|
"axios": "^1.9.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -31,6 +31,13 @@ export default class Repository implements Nomalism.Task.IRepository {
|
|
|
31
31
|
return response.data;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
async createFromDossier(
|
|
35
|
+
body: Nomalism.Task.ICreateFromDossierRequest,
|
|
36
|
+
): Promise<Nomalism.Task.Entity> {
|
|
37
|
+
const response = await this.api.post(`${this.route}from_dossier`, body);
|
|
38
|
+
return response.data;
|
|
39
|
+
}
|
|
40
|
+
|
|
34
41
|
async update(
|
|
35
42
|
selector: Nomalism.shared.IFindByIdRequest,
|
|
36
43
|
body: Nomalism.Task.IUpdateRequest,
|