@nomalism-com/api 0.40.5 → 0.40.11

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +365 -353
  2. package/dist/index.js +33 -16
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -65,6 +65,7 @@ __export(main_exports, {
65
65
  PaymentMethods: () => paymentMethods_exports,
66
66
  Permissions: () => permission_exports,
67
67
  Persona: () => persona_exports,
68
+ PortalClass: () => portal_exports,
68
69
  PreSale: () => preSale_exports,
69
70
  PreSaleProduct: () => preSaleProduct_exports,
70
71
  Printer: () => printer_exports,
@@ -2278,12 +2279,6 @@ var Repository59 = class {
2278
2279
  const response = await this.api.get(`${this.route}by_owner`, { params });
2279
2280
  return response.data;
2280
2281
  }
2281
- async publicFindByOwnerId(params) {
2282
- const response = await this.api.get(`${this.route}public_by_owner`, {
2283
- params
2284
- });
2285
- return response.data;
2286
- }
2287
2282
  async find(params) {
2288
2283
  const response = await this.api.get(`${this.route}`, { params });
2289
2284
  return response.data;
@@ -2299,14 +2294,6 @@ var Repository59 = class {
2299
2294
  async sendEmailDocument(body) {
2300
2295
  await this.api.post(`${this.route}sendEmail`, body);
2301
2296
  }
2302
- async createPublicDocumentHeaderNote(data) {
2303
- const response = await this.api.post(`${this.route}public_document_header_note`, data);
2304
- return response.data;
2305
- }
2306
- async updatePublicDocumentHeaderNote({ id }, data) {
2307
- const response = await this.api.put(`${this.route}public_document_header_note/${id}`, data);
2308
- return response.data;
2309
- }
2310
2297
  };
2311
2298
 
2312
2299
  // src/modules/supply/vatValidation.ts
@@ -3191,7 +3178,8 @@ var Repository86 = class {
3191
3178
  ef_name,
3192
3179
  pc_document_number,
3193
3180
  prison,
3194
- note
3181
+ note,
3182
+ availableStock
3195
3183
  }, token) {
3196
3184
  const qs = new URLSearchParams();
3197
3185
  qs.set("ef_name", ef_name);
@@ -3203,6 +3191,7 @@ var Repository86 = class {
3203
3191
  qs.set("note", note.toString());
3204
3192
  }
3205
3193
  qs.set("prison", prison.toString());
3194
+ qs.set("availableStock", availableStock.toString());
3206
3195
  qs.set("token", token);
3207
3196
  return `${this.publicRoute}print_label_pdf/${product_id}?${qs.toString()}`;
3208
3197
  }
@@ -3839,7 +3828,7 @@ var Repository107 = class {
3839
3828
  }
3840
3829
  };
3841
3830
 
3842
- // src/modules/stock/sideMenu.ts
3831
+ // src/modules/ui/sideMenu.ts
3843
3832
  var sideMenu_exports = {};
3844
3833
  __export(sideMenu_exports, {
3845
3834
  default: () => Repository108
@@ -4174,6 +4163,33 @@ var Repository119 = class {
4174
4163
  }
4175
4164
  };
4176
4165
 
4166
+ // src/modules/ui/portal.ts
4167
+ var portal_exports = {};
4168
+ __export(portal_exports, {
4169
+ default: () => Repository120
4170
+ });
4171
+ var Repository120 = class {
4172
+ constructor({ api, route, publicRoute }) {
4173
+ this.api = api;
4174
+ this.route = route;
4175
+ this.publicRoute = publicRoute;
4176
+ }
4177
+ async publicFindByOwnerId(params) {
4178
+ const response = await this.api.get(`${this.route}public_by_owner`, {
4179
+ params
4180
+ });
4181
+ return response.data;
4182
+ }
4183
+ async createPublicDocumentHeaderNote(data) {
4184
+ const response = await this.api.post(`${this.route}public_document_header_note`, data);
4185
+ return response.data;
4186
+ }
4187
+ async updatePublicDocumentHeaderNote({ id }, data) {
4188
+ const response = await this.api.put(`${this.route}public_document_header_note/${id}`, data);
4189
+ return response.data;
4190
+ }
4191
+ };
4192
+
4177
4193
  // src/main.ts
4178
4194
  var API = class {
4179
4195
  constructor({ processEnvironment, services, gatewayUrl, apikey, tokenBearer }) {
@@ -4371,6 +4387,7 @@ var API = class {
4371
4387
  this.NRCL = new Repository117(getModuleParams("stock", "nrcl"));
4372
4388
  this.PaymentBatch = new Repository119(getModuleParams("stock", "payment_batch"));
4373
4389
  this.CurrentAccount = new Repository118(getModuleParams("stock", "current_account"));
4390
+ this.Portal = new Repository120(getModuleParams("stock", "portal"));
4374
4391
  }
4375
4392
  };
4376
4393
 
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.5",
4
+ "version": "0.40.11",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",