@nomalism-com/api 0.39.72 → 0.39.73
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.d.ts +1 -3
- package/dist/index.js +1 -9
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1567,9 +1567,7 @@ declare class Repository$h implements Nomalism$1.DocumentLineNote.IRepository {
|
|
|
1567
1567
|
publicRoute: string;
|
|
1568
1568
|
private api;
|
|
1569
1569
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
1570
|
-
|
|
1571
|
-
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.DocumentLineNote.IUpdateRequest): Promise<void>;
|
|
1572
|
-
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1570
|
+
upsertOrDelete(body: Nomalism$1.DocumentLineNote.IUpsertOrDeleteRequest): Promise<void>;
|
|
1573
1571
|
}
|
|
1574
1572
|
|
|
1575
1573
|
declare namespace documentLineNote {
|
package/dist/index.js
CHANGED
|
@@ -3615,18 +3615,10 @@ var Repository98 = class {
|
|
|
3615
3615
|
this.route = route;
|
|
3616
3616
|
this.publicRoute = publicRoute;
|
|
3617
3617
|
}
|
|
3618
|
-
async
|
|
3618
|
+
async upsertOrDelete(body) {
|
|
3619
3619
|
const response = await this.api.post(`${this.route}`, body);
|
|
3620
3620
|
return response.data;
|
|
3621
3621
|
}
|
|
3622
|
-
async update(selector, body) {
|
|
3623
|
-
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
3624
|
-
return response.data;
|
|
3625
|
-
}
|
|
3626
|
-
async deleteOne(selector) {
|
|
3627
|
-
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
3628
|
-
return response.data;
|
|
3629
|
-
}
|
|
3630
3622
|
};
|
|
3631
3623
|
|
|
3632
3624
|
// src/modules/stock/savedProviderProposal.ts
|
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": "0.39.
|
|
4
|
+
"version": "0.39.73",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prepack": "npm run lint && npm run build"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nomalism-com/types": "^0.39.
|
|
26
|
+
"@nomalism-com/types": "^0.39.75",
|
|
27
27
|
"axios": "^1.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|