@nomalism-com/api 0.43.26 → 0.43.28

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.js CHANGED
@@ -4091,6 +4091,26 @@ var Repository121 = class {
4091
4091
  }
4092
4092
  };
4093
4093
 
4094
+ // src/modules/supply/documentHeaderSurvey.ts
4095
+ var Repository122 = class {
4096
+ constructor({ api, route }) {
4097
+ this.api = api;
4098
+ this.route = route;
4099
+ }
4100
+ async find() {
4101
+ const response = await this.api.get(`${this.route}`);
4102
+ return response.data;
4103
+ }
4104
+ async updateSent(body) {
4105
+ const response = await this.api.put(`${this.route}sent`, body);
4106
+ return response.data;
4107
+ }
4108
+ async updateSurvey(body) {
4109
+ const response = await this.api.put(`${this.route}survey`, body);
4110
+ return response.data;
4111
+ }
4112
+ };
4113
+
4094
4114
  // src/main.ts
4095
4115
  var API = class {
4096
4116
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4290,6 +4310,9 @@ var API = class {
4290
4310
  this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
4291
4311
  this.LLM = new Repository120(getModuleParams("llm", "llm"));
4292
4312
  this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
4313
+ this.DocumentHeaderSurvey = new Repository122(
4314
+ getModuleParams("stock", "DocumentHeaderSurvey")
4315
+ );
4293
4316
  }
4294
4317
  };
4295
4318
 
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.43.26",
4
+ "version": "0.43.28",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",