@nomalism-com/api 0.40.15 → 0.40.17
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 +2 -3
- package/dist/index.js +5 -9
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -177,6 +177,7 @@ declare class Repository$1K implements Nomalism$1.Proforma.IRepository {
|
|
|
177
177
|
private api;
|
|
178
178
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
179
179
|
create(data: Nomalism$1.Proforma.ICreateRequest): Promise<void>;
|
|
180
|
+
createFromLines(data: Nomalism$1.Proforma.ICreateFromLinesRequest): Promise<void>;
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
declare class Repository$1J implements Nomalism$1.PropostaFornecedor.IRepository {
|
|
@@ -1556,9 +1557,7 @@ declare class Repository$m implements Nomalism$1.SavedProviderProposal.IReposito
|
|
|
1556
1557
|
private api;
|
|
1557
1558
|
constructor({ api, route, publicRoute }: IModuleConstructor);
|
|
1558
1559
|
findByProviderId(selector: Nomalism$1.shared.IFindByIdRequest): Promise<Nomalism$1.SavedProviderProposal.IFindManyResponse[]>;
|
|
1559
|
-
|
|
1560
|
-
update(selector: Nomalism$1.shared.IFindByIdRequest, body: Nomalism$1.SavedProviderProposal.IUpdateRequest): Promise<void>;
|
|
1561
|
-
deleteOne(selector: Nomalism$1.shared.IFindByIdRequest): Promise<void>;
|
|
1560
|
+
set(body: Nomalism$1.SavedProviderProposal.ISetRequest): Promise<void>;
|
|
1562
1561
|
}
|
|
1563
1562
|
|
|
1564
1563
|
declare namespace savedProviderProposal {
|
package/dist/index.js
CHANGED
|
@@ -546,6 +546,10 @@ var Repository11 = class {
|
|
|
546
546
|
const result = await this.api.post(`${this.route}pro_forma`, data);
|
|
547
547
|
return result.data;
|
|
548
548
|
}
|
|
549
|
+
async createFromLines(data) {
|
|
550
|
+
const result = await this.api.post(`${this.route}pro_forma_from_lines`, data);
|
|
551
|
+
return result.data;
|
|
552
|
+
}
|
|
549
553
|
};
|
|
550
554
|
|
|
551
555
|
// src/modules/document/propostaFornecedor.ts
|
|
@@ -3530,18 +3534,10 @@ var Repository99 = class {
|
|
|
3530
3534
|
const response = await this.api.get(`${this.route}${selector.id}`);
|
|
3531
3535
|
return response.data;
|
|
3532
3536
|
}
|
|
3533
|
-
async
|
|
3537
|
+
async set(body) {
|
|
3534
3538
|
const response = await this.api.post(`${this.route}`, body);
|
|
3535
3539
|
return response.data;
|
|
3536
3540
|
}
|
|
3537
|
-
async update(selector, body) {
|
|
3538
|
-
const response = await this.api.put(`${this.route}${selector.id}`, body);
|
|
3539
|
-
return response.data;
|
|
3540
|
-
}
|
|
3541
|
-
async deleteOne(selector) {
|
|
3542
|
-
const response = await this.api.delete(`${this.route}${selector.id}`);
|
|
3543
|
-
return response.data;
|
|
3544
|
-
}
|
|
3545
3541
|
};
|
|
3546
3542
|
|
|
3547
3543
|
// src/modules/stock/productGoogleSheets.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.40.
|
|
4
|
+
"version": "0.40.17",
|
|
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.40.
|
|
26
|
+
"@nomalism-com/types": "^0.40.19",
|
|
27
27
|
"axios": "^1.9.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|