@nomalism-com/api 0.43.32 → 0.43.33

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
@@ -26,6 +26,7 @@ __export(main_exports, {
26
26
  DeliveryMethods: () => deliveryMethods_exports,
27
27
  DocumentHeader: () => documentHeader_exports,
28
28
  DocumentHeaderHistory: () => documentHeaderHistory_exports,
29
+ DocumentHeaderSubscriberClass: () => documentHeaderSubscriber_exports,
29
30
  DocumentLine: () => documentLine_exports,
30
31
  DocumentLineAssoc: () => documentLineAssoc_exports,
31
32
  DocumentLineMtClass: () => documentLineMt_exports,
@@ -4111,6 +4112,30 @@ var Repository122 = class {
4111
4112
  }
4112
4113
  };
4113
4114
 
4115
+ // src/modules/supply/documentHeaderSubscriber.ts
4116
+ var documentHeaderSubscriber_exports = {};
4117
+ __export(documentHeaderSubscriber_exports, {
4118
+ default: () => Repository123
4119
+ });
4120
+ var Repository123 = class {
4121
+ constructor({ api, route }) {
4122
+ this.api = api;
4123
+ this.route = route;
4124
+ }
4125
+ async findByOwnerId(params) {
4126
+ const response = await this.api.get(`${this.route}by_owner`, {
4127
+ params
4128
+ });
4129
+ return response.data;
4130
+ }
4131
+ async create(body) {
4132
+ await this.api.post(`${this.route}`, body);
4133
+ }
4134
+ async deleteOne(selector) {
4135
+ await this.api.delete(`${this.route}${selector.id}`);
4136
+ }
4137
+ };
4138
+
4114
4139
  // src/main.ts
4115
4140
  var API = class {
4116
4141
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4310,6 +4335,9 @@ var API = class {
4310
4335
  this.AccountCode = new Repository119(getModuleParams("stock", "account_code"));
4311
4336
  this.LLM = new Repository120(getModuleParams("llm", "llm"));
4312
4337
  this.PatchNotes = new Repository121(getModuleParams("integration", "patch_notes"));
4338
+ this.DocumentHeaderSubscriber = new Repository123(
4339
+ getModuleParams("stock", "document_header_subscriber")
4340
+ );
4313
4341
  this.DocumentHeaderSurvey = new Repository122(
4314
4342
  getModuleParams("stock", "document_header_survey")
4315
4343
  );
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.32",
4
+ "version": "0.43.33",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -23,12 +23,12 @@
23
23
  "prepack": "npm run lint && npm run build"
24
24
  },
25
25
  "dependencies": {
26
- "@nomalism-com/types": "^0.43.31",
27
- "axios": "^1.13.5"
26
+ "@nomalism-com/types": "^0.43.34",
27
+ "axios": "^1.13.6"
28
28
  },
29
29
  "devDependencies": {
30
- "@swc/core": "^1.15.13",
31
- "@types/node": "^24.10.14",
30
+ "@swc/core": "^1.15.18",
31
+ "@types/node": "^24.12.0",
32
32
  "@typescript-eslint/eslint-plugin": "^8.56.1",
33
33
  "@typescript-eslint/parser": "^8.56.1",
34
34
  "eslint": "^9.39.3",