@nomalism-com/api 0.51.17 → 0.52.0

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
@@ -61,6 +61,7 @@ __export(main_exports, {
61
61
  NRCL: () => NRCL_exports,
62
62
  Npc: () => npc_exports,
63
63
  Observation: () => observation_exports,
64
+ OnlineStore: () => onlineStore_exports,
64
65
  Order: () => order_exports,
65
66
  OrderManagement: () => orderManagement_exports,
66
67
  Password: () => password_exports,
@@ -200,22 +201,6 @@ var ApiError = class _ApiError extends Error {
200
201
  function isApiError(error) {
201
202
  return error instanceof ApiError;
202
203
  }
203
- var MENSAGEM_POR_ESTADO = {
204
- 400: "Os dados enviados n\xE3o s\xE3o v\xE1lidos. Verifique-os e tente novamente.",
205
- 401: "A sess\xE3o terminou. Inicie sess\xE3o novamente.",
206
- 403: "N\xE3o tem permiss\xE3o para realizar esta opera\xE7\xE3o.",
207
- 404: "O que pediu n\xE3o foi encontrado. Atualize a p\xE1gina e tente novamente.",
208
- 409: "Esta opera\xE7\xE3o entra em conflito com dados j\xE1 existentes. Atualize a p\xE1gina e tente novamente.",
209
- 413: "O pedido \xE9 demasiado grande. Reduza a quantidade de informa\xE7\xE3o ou o tamanho do ficheiro.",
210
- 422: "Os dados enviados n\xE3o s\xE3o v\xE1lidos. Verifique-os e tente novamente.",
211
- 429: "Foram feitos demasiados pedidos seguidos. Aguarde um momento e tente novamente.",
212
- 502: "O servidor n\xE3o est\xE1 a responder neste momento. Tente novamente dentro de instantes.",
213
- 503: "O servidor n\xE3o est\xE1 dispon\xEDvel neste momento. Tente novamente dentro de instantes.",
214
- 504: "O servidor demorou demasiado a responder. Tente novamente dentro de instantes."
215
- };
216
- function messageForStatus(status) {
217
- return MENSAGEM_POR_ESTADO[status] ?? (status >= 500 ? "O sistema teve um problema ao tratar o pedido. Tente novamente; se o problema continuar, contacte o suporte." : "N\xE3o foi poss\xEDvel concluir a opera\xE7\xE3o. Tente novamente.");
218
- }
219
204
  function extractServerMessage(data, fallback) {
220
205
  if (typeof data === "string" && data.trim()) return data;
221
206
  if (isRecord(data)) {
@@ -237,24 +222,21 @@ function parseApiError(error) {
237
222
  const code = axiosError.code;
238
223
  if (axiosError.response) {
239
224
  const { status, data } = axiosError.response;
240
- const message = extractServerMessage(data, messageForStatus(status));
225
+ const message = extractServerMessage(
226
+ data,
227
+ `Request failed with status ${status}`
228
+ );
241
229
  return new ApiError(
242
230
  { kind: "response", message, status, code, method, url, data },
243
231
  error
244
232
  );
245
233
  }
246
234
  if (axiosError.request) {
247
- const message = code === "ECONNABORTED" ? "O servidor demorou demasiado a responder. Tente novamente dentro de instantes." : "N\xE3o foi poss\xEDvel comunicar com o servidor. Verifique a liga\xE7\xE3o \xE0 internet e tente novamente.";
235
+ const message = code === "ECONNABORTED" ? `Request timed out${url ? ` (${method} ${url})` : ""}` : `No response received${url ? ` from ${method} ${url}` : ""}`;
248
236
  return new ApiError({ kind: "request", message, code, method, url }, error);
249
237
  }
250
238
  return new ApiError(
251
- {
252
- kind: "setup",
253
- message: "N\xE3o foi poss\xEDvel enviar o pedido. Atualize a p\xE1gina e tente novamente.",
254
- code,
255
- method,
256
- url
257
- },
239
+ { kind: "setup", message: axiosError.message, code, method, url },
258
240
  error
259
241
  );
260
242
  }
@@ -354,8 +336,7 @@ var Repository4 = class {
354
336
  prison,
355
337
  note,
356
338
  availableStock,
357
- token,
358
- as
339
+ token
359
340
  }) {
360
341
  const qs = new URLSearchParams();
361
342
  qs.set("ef_name", ef_name);
@@ -368,8 +349,7 @@ var Repository4 = class {
368
349
  }
369
350
  qs.set("prison", prison.toString());
370
351
  qs.set("availableStock", availableStock.toString());
371
- if (token) qs.set("token", token);
372
- if (as) qs.set("as", as);
352
+ qs.set("token", token);
373
353
  return `${this.route}print_label_pdf/${product_id}?${qs.toString()}`;
374
354
  }
375
355
  printBulkLabelToPdfUrl({
@@ -378,8 +358,7 @@ var Repository4 = class {
378
358
  notOk,
379
359
  clientOrders,
380
360
  saved_em_picking_ids,
381
- token,
382
- as
361
+ token
383
362
  }) {
384
363
  const qs = new URLSearchParams();
385
364
  qs.set("groupLabel", groupLabel.toString());
@@ -387,8 +366,7 @@ var Repository4 = class {
387
366
  qs.set("notOk", notOk);
388
367
  qs.set("clientOrders", clientOrders);
389
368
  qs.set("saved_em_picking_ids", saved_em_picking_ids);
390
- if (token) qs.set("token", token);
391
- if (as) qs.set("as", as);
369
+ qs.set("token", token);
392
370
  return `${this.route}print_bulk_label_pdf?${qs.toString()}`;
393
371
  }
394
372
  };
@@ -941,13 +919,6 @@ var Repository21 = class {
941
919
  }
942
920
  );
943
921
  }
944
- async setPublic(data) {
945
- const response = await this.api.post(
946
- `${this.route}public`,
947
- data
948
- );
949
- return response.data;
950
- }
951
922
  };
952
923
 
953
924
  // src/modules/integration/emailLog.ts
@@ -1262,6 +1233,13 @@ var Repository32 = class {
1262
1233
  this.api = api;
1263
1234
  this.route = route;
1264
1235
  }
1236
+ async create(body) {
1237
+ const response = await this.api.post(
1238
+ `${this.route}`,
1239
+ body
1240
+ );
1241
+ return response.data;
1242
+ }
1265
1243
  async findByKey(params) {
1266
1244
  const response = await this.api.get(
1267
1245
  `${this.route}by_key`,
@@ -1449,10 +1427,6 @@ var Repository36 = class {
1449
1427
  );
1450
1428
  return response.data;
1451
1429
  }
1452
- async findToday() {
1453
- const response = await this.api.get(`${this.route}today`);
1454
- return response.data;
1455
- }
1456
1430
  async findByOwner(params) {
1457
1431
  const response = await this.api.get(
1458
1432
  `${this.route}by_owner`,
@@ -1850,10 +1824,9 @@ var Repository47 = class {
1850
1824
  const response = await this.api.get(`${this.route}auth`);
1851
1825
  return response.data;
1852
1826
  }
1853
- async emails(params) {
1827
+ async emails() {
1854
1828
  const response = await this.api.get(
1855
- `${this.route}emails`,
1856
- { params }
1829
+ `${this.route}emails`
1857
1830
  );
1858
1831
  return response.data;
1859
1832
  }
@@ -1904,12 +1877,44 @@ var Repository49 = class {
1904
1877
  }
1905
1878
  };
1906
1879
 
1880
+ // src/modules/stock/onlineStore.ts
1881
+ var onlineStore_exports = {};
1882
+ __export(onlineStore_exports, {
1883
+ default: () => Repository50
1884
+ });
1885
+ var Repository50 = class {
1886
+ route;
1887
+ api;
1888
+ constructor({ api, route }) {
1889
+ this.api = api;
1890
+ this.route = route;
1891
+ }
1892
+ async findProducts(params) {
1893
+ const response = await this.api.get(
1894
+ `${this.route}products`,
1895
+ { params }
1896
+ );
1897
+ return response.data;
1898
+ }
1899
+ async findStock(body) {
1900
+ const response = await this.api.post(`${this.route}stock`, body);
1901
+ return response.data;
1902
+ }
1903
+ async createOrder(body) {
1904
+ const response = await this.api.post(
1905
+ `${this.route}orders`,
1906
+ body
1907
+ );
1908
+ return response.data;
1909
+ }
1910
+ };
1911
+
1907
1912
  // src/modules/stock/priceTable.ts
1908
1913
  var priceTable_exports = {};
1909
1914
  __export(priceTable_exports, {
1910
- default: () => Repository50
1915
+ default: () => Repository51
1911
1916
  });
1912
- var Repository50 = class {
1917
+ var Repository51 = class {
1913
1918
  route;
1914
1919
  api;
1915
1920
  constructor({ api, route }) {
@@ -1963,9 +1968,9 @@ var Repository50 = class {
1963
1968
  // src/modules/stock/prison.ts
1964
1969
  var prison_exports = {};
1965
1970
  __export(prison_exports, {
1966
- default: () => Repository51
1971
+ default: () => Repository52
1967
1972
  });
1968
- var Repository51 = class {
1973
+ var Repository52 = class {
1969
1974
  route;
1970
1975
  api;
1971
1976
  constructor({ api, route }) {
@@ -2005,9 +2010,9 @@ var Repository51 = class {
2005
2010
  // src/modules/stock/productGoogleSheets.ts
2006
2011
  var productGoogleSheets_exports = {};
2007
2012
  __export(productGoogleSheets_exports, {
2008
- default: () => Repository52
2013
+ default: () => Repository53
2009
2014
  });
2010
- var Repository52 = class {
2015
+ var Repository53 = class {
2011
2016
  route;
2012
2017
  api;
2013
2018
  constructor({ api, route }) {
@@ -2121,7 +2126,7 @@ var Repository52 = class {
2121
2126
  }
2122
2127
  printLabelToPdfUrl({ id }, { token }) {
2123
2128
  const qs = new URLSearchParams();
2124
- if (token) qs.set("token", token);
2129
+ qs.set("token", token);
2125
2130
  return `${this.route}print_label_pdf/${id}?${qs.toString()}`;
2126
2131
  }
2127
2132
  printLabelToPdfBulk({
@@ -2129,7 +2134,7 @@ var Repository52 = class {
2129
2134
  token
2130
2135
  }) {
2131
2136
  const qs = new URLSearchParams();
2132
- if (token) qs.set("token", token);
2137
+ qs.set("token", token);
2133
2138
  qs.set("ids", ids);
2134
2139
  return `${this.route}print_label_pdf/bulk?${qs.toString()}`;
2135
2140
  }
@@ -2147,9 +2152,9 @@ var Repository52 = class {
2147
2152
  // src/modules/stock/productImage.ts
2148
2153
  var productImage_exports = {};
2149
2154
  __export(productImage_exports, {
2150
- default: () => Repository53
2155
+ default: () => Repository54
2151
2156
  });
2152
- var Repository53 = class {
2157
+ var Repository54 = class {
2153
2158
  route;
2154
2159
  api;
2155
2160
  constructor({ api, route }) {
@@ -2178,9 +2183,9 @@ var Repository53 = class {
2178
2183
  // src/modules/stock/productLocation.ts
2179
2184
  var productLocation_exports = {};
2180
2185
  __export(productLocation_exports, {
2181
- default: () => Repository54
2186
+ default: () => Repository55
2182
2187
  });
2183
- var Repository54 = class {
2188
+ var Repository55 = class {
2184
2189
  route;
2185
2190
  api;
2186
2191
  constructor({ api, route }) {
@@ -2196,9 +2201,9 @@ var Repository54 = class {
2196
2201
  // src/modules/stock/productUpdate.ts
2197
2202
  var productUpdate_exports = {};
2198
2203
  __export(productUpdate_exports, {
2199
- default: () => Repository55
2204
+ default: () => Repository56
2200
2205
  });
2201
- var Repository55 = class {
2206
+ var Repository56 = class {
2202
2207
  route;
2203
2208
  api;
2204
2209
  constructor({ api, route }) {
@@ -2259,9 +2264,9 @@ var Repository55 = class {
2259
2264
  // src/modules/stock/promotion.ts
2260
2265
  var promotion_exports = {};
2261
2266
  __export(promotion_exports, {
2262
- default: () => Repository56
2267
+ default: () => Repository57
2263
2268
  });
2264
- var Repository56 = class {
2269
+ var Repository57 = class {
2265
2270
  route;
2266
2271
  constructor({ route }) {
2267
2272
  this.route = route;
@@ -2283,9 +2288,9 @@ var Repository56 = class {
2283
2288
  // src/modules/stock/queryList.ts
2284
2289
  var queryList_exports = {};
2285
2290
  __export(queryList_exports, {
2286
- default: () => Repository57
2291
+ default: () => Repository58
2287
2292
  });
2288
- var Repository57 = class {
2293
+ var Repository58 = class {
2289
2294
  route;
2290
2295
  api;
2291
2296
  constructor({ api, route }) {
@@ -2308,11 +2313,15 @@ var Repository57 = class {
2308
2313
  getQueryExecuteUrl({
2309
2314
  query_id,
2310
2315
  output,
2316
+ token,
2311
2317
  ...data
2312
2318
  }) {
2313
2319
  const qs = new URLSearchParams();
2314
2320
  qs.set("query_id", query_id);
2315
2321
  qs.set("output", output);
2322
+ if (token) {
2323
+ qs.set("token", token);
2324
+ }
2316
2325
  Object.entries(data).forEach(([key, value]) => {
2317
2326
  if (typeof value === "undefined") return;
2318
2327
  if (value === null) return;
@@ -2325,9 +2334,9 @@ var Repository57 = class {
2325
2334
  // src/modules/stock/recurrentTasks.ts
2326
2335
  var recurrentTasks_exports = {};
2327
2336
  __export(recurrentTasks_exports, {
2328
- default: () => Repository58
2337
+ default: () => Repository59
2329
2338
  });
2330
- var Repository58 = class {
2339
+ var Repository59 = class {
2331
2340
  route;
2332
2341
  api;
2333
2342
  constructor({ api, route }) {
@@ -2339,9 +2348,7 @@ var Repository58 = class {
2339
2348
  return response.data;
2340
2349
  }
2341
2350
  async from_master_checked() {
2342
- const response = await this.api.post(
2343
- `${this.route}from_master_checked`
2344
- );
2351
+ const response = await this.api.post(`${this.route}from_master`);
2345
2352
  return response.data;
2346
2353
  }
2347
2354
  };
@@ -2349,9 +2356,9 @@ var Repository58 = class {
2349
2356
  // src/modules/stock/returnReason.ts
2350
2357
  var returnReason_exports = {};
2351
2358
  __export(returnReason_exports, {
2352
- default: () => Repository59
2359
+ default: () => Repository60
2353
2360
  });
2354
- var Repository59 = class {
2361
+ var Repository60 = class {
2355
2362
  route;
2356
2363
  api;
2357
2364
  constructor({ api, route }) {
@@ -2369,9 +2376,9 @@ var Repository59 = class {
2369
2376
  // src/modules/stock/savedEmPicking.ts
2370
2377
  var savedEmPicking_exports = {};
2371
2378
  __export(savedEmPicking_exports, {
2372
- default: () => Repository60
2379
+ default: () => Repository61
2373
2380
  });
2374
- var Repository60 = class {
2381
+ var Repository61 = class {
2375
2382
  route;
2376
2383
  api;
2377
2384
  constructor({ api, route }) {
@@ -2397,9 +2404,9 @@ var Repository60 = class {
2397
2404
  // src/modules/stock/savedProviderProposal.ts
2398
2405
  var savedProviderProposal_exports = {};
2399
2406
  __export(savedProviderProposal_exports, {
2400
- default: () => Repository61
2407
+ default: () => Repository62
2401
2408
  });
2402
- var Repository61 = class {
2409
+ var Repository62 = class {
2403
2410
  route;
2404
2411
  api;
2405
2412
  constructor({ api, route }) {
@@ -2418,9 +2425,9 @@ var Repository61 = class {
2418
2425
  // src/modules/stock/schedule.ts
2419
2426
  var schedule_exports = {};
2420
2427
  __export(schedule_exports, {
2421
- default: () => Repository62
2428
+ default: () => Repository63
2422
2429
  });
2423
- var Repository62 = class {
2430
+ var Repository63 = class {
2424
2431
  route;
2425
2432
  api;
2426
2433
  constructor({ api, route }) {
@@ -2435,9 +2442,9 @@ var Repository62 = class {
2435
2442
  // src/modules/stock/stockMovement.ts
2436
2443
  var stockMovement_exports = {};
2437
2444
  __export(stockMovement_exports, {
2438
- default: () => Repository63
2445
+ default: () => Repository64
2439
2446
  });
2440
- var Repository63 = class {
2447
+ var Repository64 = class {
2441
2448
  route;
2442
2449
  api;
2443
2450
  constructor({ api, route }) {
@@ -2465,12 +2472,14 @@ var Repository63 = class {
2465
2472
  getStockCsvUrl({
2466
2473
  date,
2467
2474
  version,
2468
- format
2475
+ format,
2476
+ token
2469
2477
  }) {
2470
2478
  const qs = new URLSearchParams();
2471
2479
  qs.set("date", date.toISOString());
2472
2480
  qs.set("version", version);
2473
2481
  qs.set("format", format);
2482
+ qs.set("token", token);
2474
2483
  return `${this.route}csv?${qs.toString()}`;
2475
2484
  }
2476
2485
  };
@@ -2478,9 +2487,9 @@ var Repository63 = class {
2478
2487
  // src/modules/stock/tag.ts
2479
2488
  var tag_exports = {};
2480
2489
  __export(tag_exports, {
2481
- default: () => Repository64
2490
+ default: () => Repository65
2482
2491
  });
2483
- var Repository64 = class {
2492
+ var Repository65 = class {
2484
2493
  route;
2485
2494
  api;
2486
2495
  constructor({ api, route }) {
@@ -2507,9 +2516,9 @@ var Repository64 = class {
2507
2516
  // src/modules/stock/task.ts
2508
2517
  var task_exports = {};
2509
2518
  __export(task_exports, {
2510
- default: () => Repository65
2519
+ default: () => Repository66
2511
2520
  });
2512
- var Repository65 = class {
2521
+ var Repository66 = class {
2513
2522
  route;
2514
2523
  api;
2515
2524
  constructor({ api, route }) {
@@ -2562,9 +2571,9 @@ var Repository65 = class {
2562
2571
  // src/modules/stock/taskMessage.ts
2563
2572
  var taskMessage_exports = {};
2564
2573
  __export(taskMessage_exports, {
2565
- default: () => Repository66
2574
+ default: () => Repository67
2566
2575
  });
2567
- var Repository66 = class {
2576
+ var Repository67 = class {
2568
2577
  route;
2569
2578
  api;
2570
2579
  constructor({ api, route }) {
@@ -2589,9 +2598,9 @@ var Repository66 = class {
2589
2598
  // src/modules/stock/unitOfMeasure.ts
2590
2599
  var unitOfMeasure_exports = {};
2591
2600
  __export(unitOfMeasure_exports, {
2592
- default: () => Repository67
2601
+ default: () => Repository68
2593
2602
  });
2594
- var Repository67 = class {
2603
+ var Repository68 = class {
2595
2604
  route;
2596
2605
  api;
2597
2606
  constructor({ api, route }) {
@@ -2630,9 +2639,9 @@ var Repository67 = class {
2630
2639
  // src/modules/stock/vatTax.ts
2631
2640
  var vatTax_exports = {};
2632
2641
  __export(vatTax_exports, {
2633
- default: () => Repository68
2642
+ default: () => Repository69
2634
2643
  });
2635
- var Repository68 = class {
2644
+ var Repository69 = class {
2636
2645
  route;
2637
2646
  api;
2638
2647
  constructor({ api, route }) {
@@ -2671,9 +2680,9 @@ var Repository68 = class {
2671
2680
  // src/modules/stock/vatTaxZone.ts
2672
2681
  var vatTaxZone_exports = {};
2673
2682
  __export(vatTaxZone_exports, {
2674
- default: () => Repository69
2683
+ default: () => Repository70
2675
2684
  });
2676
- var Repository69 = class {
2685
+ var Repository70 = class {
2677
2686
  route;
2678
2687
  api;
2679
2688
  constructor({ api, route }) {
@@ -2712,9 +2721,9 @@ var Repository69 = class {
2712
2721
  // src/modules/supply/currentAccount.ts
2713
2722
  var currentAccount_exports = {};
2714
2723
  __export(currentAccount_exports, {
2715
- default: () => Repository70
2724
+ default: () => Repository71
2716
2725
  });
2717
- var Repository70 = class {
2726
+ var Repository71 = class {
2718
2727
  route;
2719
2728
  api;
2720
2729
  constructor({ api, route }) {
@@ -2775,13 +2784,15 @@ var Repository70 = class {
2775
2784
  owner_id,
2776
2785
  start_date,
2777
2786
  end_date,
2778
- output
2787
+ output,
2788
+ token
2779
2789
  }) {
2780
2790
  const qs = new URLSearchParams();
2781
2791
  qs.set("owner_id", owner_id);
2782
2792
  qs.set("output", output);
2783
2793
  if (start_date) qs.set("start_date", start_date.toISOString());
2784
2794
  if (end_date) qs.set("end_date", end_date.toISOString());
2795
+ qs.set("token", token);
2785
2796
  return `${this.route}export?${qs.toString()}`;
2786
2797
  }
2787
2798
  };
@@ -2789,9 +2800,9 @@ var Repository70 = class {
2789
2800
  // src/modules/supply/documentHeader.ts
2790
2801
  var documentHeader_exports = {};
2791
2802
  __export(documentHeader_exports, {
2792
- default: () => Repository71
2803
+ default: () => Repository72
2793
2804
  });
2794
- var Repository71 = class {
2805
+ var Repository72 = class {
2795
2806
  route;
2796
2807
  api;
2797
2808
  constructor({ api, route }) {
@@ -2873,9 +2884,6 @@ var Repository71 = class {
2873
2884
  if (data?.token) {
2874
2885
  qs.set("token", data.token);
2875
2886
  }
2876
- if (data?.as) {
2877
- qs.set("as", data.as);
2878
- }
2879
2887
  return `${this.route}document_pdf/${id}?${qs.toString()}`;
2880
2888
  }
2881
2889
  async documentThermalPrint({ id }, query) {
@@ -2919,9 +2927,9 @@ var Repository71 = class {
2919
2927
  // src/modules/supply/documentHeaderHistory.ts
2920
2928
  var documentHeaderHistory_exports = {};
2921
2929
  __export(documentHeaderHistory_exports, {
2922
- default: () => Repository72
2930
+ default: () => Repository73
2923
2931
  });
2924
- var Repository72 = class {
2932
+ var Repository73 = class {
2925
2933
  route;
2926
2934
  api;
2927
2935
  constructor({ api, route }) {
@@ -2937,9 +2945,9 @@ var Repository72 = class {
2937
2945
  // src/modules/supply/documentHeaderSubscriber.ts
2938
2946
  var documentHeaderSubscriber_exports = {};
2939
2947
  __export(documentHeaderSubscriber_exports, {
2940
- default: () => Repository73
2948
+ default: () => Repository74
2941
2949
  });
2942
- var Repository73 = class {
2950
+ var Repository74 = class {
2943
2951
  route;
2944
2952
  api;
2945
2953
  constructor({ api, route }) {
@@ -2963,9 +2971,9 @@ var Repository73 = class {
2963
2971
  // src/modules/supply/documentHeaderSurvey.ts
2964
2972
  var documentHeaderSurvey_exports = {};
2965
2973
  __export(documentHeaderSurvey_exports, {
2966
- default: () => Repository74
2974
+ default: () => Repository75
2967
2975
  });
2968
- var Repository74 = class {
2976
+ var Repository75 = class {
2969
2977
  route;
2970
2978
  api;
2971
2979
  constructor({ api, route }) {
@@ -2987,9 +2995,9 @@ var Repository74 = class {
2987
2995
  // src/modules/supply/documentLine.ts
2988
2996
  var documentLine_exports = {};
2989
2997
  __export(documentLine_exports, {
2990
- default: () => Repository75
2998
+ default: () => Repository76
2991
2999
  });
2992
- var Repository75 = class {
3000
+ var Repository76 = class {
2993
3001
  route;
2994
3002
  api;
2995
3003
  constructor({ api, route }) {
@@ -3031,12 +3039,12 @@ var Repository75 = class {
3031
3039
  }
3032
3040
  printLabelToPdfUrl({ document_line_ids }, { token }) {
3033
3041
  const qs = new URLSearchParams();
3034
- if (token) qs.set("token", token);
3042
+ qs.set("token", token);
3035
3043
  return `${this.route}print_label_pdf/${document_line_ids}?${qs.toString()}`;
3036
3044
  }
3037
3045
  printGroupLabelToPdfUrl({ document_line_ids }, { token }) {
3038
3046
  const qs = new URLSearchParams();
3039
- if (token) qs.set("token", token);
3047
+ qs.set("token", token);
3040
3048
  return `${this.route}print_group_label_pdf/${document_line_ids}?${qs.toString()}`;
3041
3049
  }
3042
3050
  };
@@ -3044,9 +3052,9 @@ var Repository75 = class {
3044
3052
  // src/modules/supply/documentLineAssoc.ts
3045
3053
  var documentLineAssoc_exports = {};
3046
3054
  __export(documentLineAssoc_exports, {
3047
- default: () => Repository76
3055
+ default: () => Repository77
3048
3056
  });
3049
- var Repository76 = class {
3057
+ var Repository77 = class {
3050
3058
  route;
3051
3059
  api;
3052
3060
  constructor({ api, route }) {
@@ -3077,9 +3085,9 @@ var Repository76 = class {
3077
3085
  // src/modules/supply/documentLineMt.ts
3078
3086
  var documentLineMt_exports = {};
3079
3087
  __export(documentLineMt_exports, {
3080
- default: () => Repository77
3088
+ default: () => Repository78
3081
3089
  });
3082
- var Repository77 = class {
3090
+ var Repository78 = class {
3083
3091
  route;
3084
3092
  api;
3085
3093
  constructor({ api, route }) {
@@ -3102,9 +3110,9 @@ var Repository77 = class {
3102
3110
  // src/modules/supply/documentLineNote.ts
3103
3111
  var documentLineNote_exports = {};
3104
3112
  __export(documentLineNote_exports, {
3105
- default: () => Repository78
3113
+ default: () => Repository79
3106
3114
  });
3107
- var Repository78 = class {
3115
+ var Repository79 = class {
3108
3116
  route;
3109
3117
  api;
3110
3118
  constructor({ api, route }) {
@@ -3119,9 +3127,9 @@ var Repository78 = class {
3119
3127
  // src/modules/supply/documentLineRm.ts
3120
3128
  var documentLineRm_exports = {};
3121
3129
  __export(documentLineRm_exports, {
3122
- default: () => Repository79
3130
+ default: () => Repository80
3123
3131
  });
3124
- var Repository79 = class {
3132
+ var Repository80 = class {
3125
3133
  route;
3126
3134
  api;
3127
3135
  constructor({ api, route }) {
@@ -3144,9 +3152,9 @@ var Repository79 = class {
3144
3152
  // src/modules/supply/documentSet.ts
3145
3153
  var documentSet_exports = {};
3146
3154
  __export(documentSet_exports, {
3147
- default: () => Repository80
3155
+ default: () => Repository81
3148
3156
  });
3149
- var Repository80 = class {
3157
+ var Repository81 = class {
3150
3158
  route;
3151
3159
  api;
3152
3160
  constructor({ api, route }) {
@@ -3169,9 +3177,9 @@ var Repository80 = class {
3169
3177
  // src/modules/supply/documentType.ts
3170
3178
  var documentType_exports = {};
3171
3179
  __export(documentType_exports, {
3172
- default: () => Repository81
3180
+ default: () => Repository82
3173
3181
  });
3174
- var Repository81 = class {
3182
+ var Repository82 = class {
3175
3183
  route;
3176
3184
  api;
3177
3185
  constructor({ api, route }) {
@@ -3198,9 +3206,9 @@ var Repository81 = class {
3198
3206
  // src/modules/supply/externalDocumentHeader.ts
3199
3207
  var externalDocumentHeader_exports = {};
3200
3208
  __export(externalDocumentHeader_exports, {
3201
- default: () => Repository82
3209
+ default: () => Repository83
3202
3210
  });
3203
- var Repository82 = class {
3211
+ var Repository83 = class {
3204
3212
  route;
3205
3213
  api;
3206
3214
  constructor({ api, route }) {
@@ -3263,9 +3271,9 @@ var Repository82 = class {
3263
3271
  // src/modules/supply/googleSheetPool.ts
3264
3272
  var googleSheetPool_exports = {};
3265
3273
  __export(googleSheetPool_exports, {
3266
- default: () => Repository83
3274
+ default: () => Repository84
3267
3275
  });
3268
- var Repository83 = class {
3276
+ var Repository84 = class {
3269
3277
  route;
3270
3278
  api;
3271
3279
  constructor({ api, route }) {
@@ -3280,9 +3288,9 @@ var Repository83 = class {
3280
3288
  // src/modules/supply/orderManagement.ts
3281
3289
  var orderManagement_exports = {};
3282
3290
  __export(orderManagement_exports, {
3283
- default: () => Repository84
3291
+ default: () => Repository85
3284
3292
  });
3285
- var Repository84 = class {
3293
+ var Repository85 = class {
3286
3294
  route;
3287
3295
  api;
3288
3296
  constructor({ api, route }) {
@@ -3295,8 +3303,8 @@ var Repository84 = class {
3295
3303
  });
3296
3304
  return response.data;
3297
3305
  }
3298
- async findAllProviderProducts(params) {
3299
- const response = await this.api.get(`${this.route}all_provider_products`, { params });
3306
+ async findAllProviderProducts() {
3307
+ const response = await this.api.get(`${this.route}all_provider_products`);
3300
3308
  return response.data;
3301
3309
  }
3302
3310
  };
@@ -3304,9 +3312,9 @@ var Repository84 = class {
3304
3312
  // src/modules/supply/payment.ts
3305
3313
  var payment_exports = {};
3306
3314
  __export(payment_exports, {
3307
- default: () => Repository85
3315
+ default: () => Repository86
3308
3316
  });
3309
- var Repository85 = class {
3317
+ var Repository86 = class {
3310
3318
  route;
3311
3319
  api;
3312
3320
  constructor({ api, route }) {
@@ -3338,9 +3346,9 @@ var Repository85 = class {
3338
3346
  // src/modules/supply/paymentBatch.ts
3339
3347
  var paymentBatch_exports = {};
3340
3348
  __export(paymentBatch_exports, {
3341
- default: () => Repository86
3349
+ default: () => Repository87
3342
3350
  });
3343
- var Repository86 = class {
3351
+ var Repository87 = class {
3344
3352
  route;
3345
3353
  api;
3346
3354
  constructor({ api, route }) {
@@ -3375,7 +3383,7 @@ var Repository86 = class {
3375
3383
  year
3376
3384
  }) {
3377
3385
  const qs = new URLSearchParams();
3378
- if (token) qs.set("token", token);
3386
+ qs.set("token", token);
3379
3387
  if (ids) {
3380
3388
  qs.set("ids", ids);
3381
3389
  return `${this.route}create_batch_pdf?${qs.toString()}`;
@@ -3392,9 +3400,9 @@ var Repository86 = class {
3392
3400
  // src/modules/supply/preSale.ts
3393
3401
  var preSale_exports = {};
3394
3402
  __export(preSale_exports, {
3395
- default: () => Repository87
3403
+ default: () => Repository88
3396
3404
  });
3397
- var Repository87 = class {
3405
+ var Repository88 = class {
3398
3406
  route;
3399
3407
  api;
3400
3408
  constructor({ api, route }) {
@@ -3449,9 +3457,9 @@ var Repository87 = class {
3449
3457
  // src/modules/supply/preSaleProduct.ts
3450
3458
  var preSaleProduct_exports = {};
3451
3459
  __export(preSaleProduct_exports, {
3452
- default: () => Repository88
3460
+ default: () => Repository89
3453
3461
  });
3454
- var Repository88 = class {
3462
+ var Repository89 = class {
3455
3463
  route;
3456
3464
  api;
3457
3465
  constructor({ api, route }) {
@@ -3473,17 +3481,22 @@ var Repository88 = class {
3473
3481
  // src/modules/supply/saft.ts
3474
3482
  var saft_exports = {};
3475
3483
  __export(saft_exports, {
3476
- default: () => Repository89
3484
+ default: () => Repository90
3477
3485
  });
3478
- var Repository89 = class {
3486
+ var Repository90 = class {
3479
3487
  route;
3480
3488
  constructor({ route }) {
3481
3489
  this.route = route;
3482
3490
  }
3483
- getUrl({ date_start, date_end }) {
3491
+ getUrl({
3492
+ date_start,
3493
+ date_end,
3494
+ token
3495
+ }) {
3484
3496
  const qs = new URLSearchParams();
3485
3497
  qs.set("date_start", date_start);
3486
3498
  qs.set("date_end", date_end);
3499
+ qs.set("token", token);
3487
3500
  return `${this.route}download?${qs.toString()}`;
3488
3501
  }
3489
3502
  };
@@ -3491,9 +3504,9 @@ var Repository89 = class {
3491
3504
  // src/modules/supply/startDocumentHeaderLastUpdate.ts
3492
3505
  var startDocumentHeaderLastUpdate_exports = {};
3493
3506
  __export(startDocumentHeaderLastUpdate_exports, {
3494
- default: () => Repository90
3507
+ default: () => Repository91
3495
3508
  });
3496
- var Repository90 = class {
3509
+ var Repository91 = class {
3497
3510
  route;
3498
3511
  api;
3499
3512
  constructor({ api, route }) {
@@ -3511,9 +3524,9 @@ var Repository90 = class {
3511
3524
  // src/modules/supply/vatValidation.ts
3512
3525
  var vatValidation_exports = {};
3513
3526
  __export(vatValidation_exports, {
3514
- default: () => Repository91
3527
+ default: () => Repository92
3515
3528
  });
3516
- var Repository91 = class {
3529
+ var Repository92 = class {
3517
3530
  route;
3518
3531
  api;
3519
3532
  constructor({ api, route }) {
@@ -3536,9 +3549,9 @@ var Repository91 = class {
3536
3549
  // src/modules/tickets/channel.ts
3537
3550
  var channel_exports = {};
3538
3551
  __export(channel_exports, {
3539
- default: () => Repository92
3552
+ default: () => Repository93
3540
3553
  });
3541
- var Repository92 = class {
3554
+ var Repository93 = class {
3542
3555
  route;
3543
3556
  api;
3544
3557
  constructor({ api, route }) {
@@ -3576,7 +3589,7 @@ var Repository92 = class {
3576
3589
  return response.data;
3577
3590
  }
3578
3591
  async update({ id }, body) {
3579
- await this.api.put(`${this.route}${id}`, body);
3592
+ await this.api.post(`${this.route}${id}`, body);
3580
3593
  }
3581
3594
  async deleteOne({
3582
3595
  id
@@ -3588,15 +3601,22 @@ var Repository92 = class {
3588
3601
  // src/modules/tickets/clt.ts
3589
3602
  var clt_exports = {};
3590
3603
  __export(clt_exports, {
3591
- default: () => Repository93
3604
+ default: () => Repository94
3592
3605
  });
3593
- var Repository93 = class {
3606
+ var Repository94 = class {
3594
3607
  route;
3595
3608
  api;
3596
3609
  constructor({ api, route }) {
3597
3610
  this.api = api;
3598
3611
  this.route = route;
3599
3612
  }
3613
+ async create(body) {
3614
+ const response = await this.api.post(
3615
+ `${this.route}`,
3616
+ body
3617
+ );
3618
+ return response.data;
3619
+ }
3600
3620
  async find() {
3601
3621
  const response = await this.api.get(`${this.route}`);
3602
3622
  return response.data;
@@ -3619,16 +3639,21 @@ var Repository93 = class {
3619
3639
  return response.data;
3620
3640
  }
3621
3641
  async update({ id }, body) {
3622
- await this.api.put(`${this.route}${id}`, body);
3642
+ await this.api.post(`${this.route}${id}`, body);
3643
+ }
3644
+ async deleteOne({
3645
+ id
3646
+ }) {
3647
+ await this.api.delete(`${this.route}${id}`);
3623
3648
  }
3624
3649
  };
3625
3650
 
3626
3651
  // src/modules/tickets/language.ts
3627
3652
  var language_exports = {};
3628
3653
  __export(language_exports, {
3629
- default: () => Repository94
3654
+ default: () => Repository95
3630
3655
  });
3631
- var Repository94 = class {
3656
+ var Repository95 = class {
3632
3657
  route;
3633
3658
  api;
3634
3659
  constructor({ api, route }) {
@@ -3666,7 +3691,7 @@ var Repository94 = class {
3666
3691
  return response.data;
3667
3692
  }
3668
3693
  async update({ id }, body) {
3669
- await this.api.put(`${this.route}${id}`, body);
3694
+ await this.api.post(`${this.route}${id}`, body);
3670
3695
  }
3671
3696
  async deleteOne({
3672
3697
  id
@@ -3678,9 +3703,9 @@ var Repository94 = class {
3678
3703
  // src/modules/tickets/tickets.ts
3679
3704
  var tickets_exports = {};
3680
3705
  __export(tickets_exports, {
3681
- default: () => Repository95
3706
+ default: () => Repository96
3682
3707
  });
3683
- var Repository95 = class {
3708
+ var Repository96 = class {
3684
3709
  route;
3685
3710
  api;
3686
3711
  constructor({ api, route }) {
@@ -3718,9 +3743,9 @@ var Repository95 = class {
3718
3743
  // src/modules/tickets/tts.ts
3719
3744
  var tts_exports = {};
3720
3745
  __export(tts_exports, {
3721
- default: () => Repository96
3746
+ default: () => Repository97
3722
3747
  });
3723
- var Repository96 = class {
3748
+ var Repository97 = class {
3724
3749
  route;
3725
3750
  api;
3726
3751
  constructor({ api, route }) {
@@ -3739,9 +3764,9 @@ var Repository96 = class {
3739
3764
  // src/modules/ui/portal.ts
3740
3765
  var portal_exports = {};
3741
3766
  __export(portal_exports, {
3742
- default: () => Repository97
3767
+ default: () => Repository98
3743
3768
  });
3744
- var Repository97 = class {
3769
+ var Repository98 = class {
3745
3770
  route;
3746
3771
  api;
3747
3772
  constructor({ api, route }) {
@@ -3770,9 +3795,9 @@ var Repository97 = class {
3770
3795
  // src/modules/ui/sideMenu.ts
3771
3796
  var sideMenu_exports = {};
3772
3797
  __export(sideMenu_exports, {
3773
- default: () => Repository98
3798
+ default: () => Repository99
3774
3799
  });
3775
- var Repository98 = class {
3800
+ var Repository99 = class {
3776
3801
  route;
3777
3802
  api;
3778
3803
  constructor({ api, route }) {
@@ -3808,9 +3833,9 @@ var Repository98 = class {
3808
3833
  // src/modules/ui/sidemenuHighlight.ts
3809
3834
  var sidemenuHighlight_exports = {};
3810
3835
  __export(sidemenuHighlight_exports, {
3811
- default: () => Repository99
3836
+ default: () => Repository100
3812
3837
  });
3813
- var Repository99 = class {
3838
+ var Repository100 = class {
3814
3839
  route;
3815
3840
  api;
3816
3841
  constructor({ api, route }) {
@@ -3829,9 +3854,9 @@ var Repository99 = class {
3829
3854
  // src/modules/ui/storeOperatorSaftLock.ts
3830
3855
  var storeOperatorSaftLock_exports = {};
3831
3856
  __export(storeOperatorSaftLock_exports, {
3832
- default: () => Repository100
3857
+ default: () => Repository101
3833
3858
  });
3834
- var Repository100 = class {
3859
+ var Repository101 = class {
3835
3860
  route;
3836
3861
  api;
3837
3862
  constructor({ api, route }) {
@@ -3847,9 +3872,9 @@ var Repository100 = class {
3847
3872
  // src/modules/ui/tenantSaftLock.ts
3848
3873
  var tenantSaftLock_exports = {};
3849
3874
  __export(tenantSaftLock_exports, {
3850
- default: () => Repository101
3875
+ default: () => Repository102
3851
3876
  });
3852
- var Repository101 = class {
3877
+ var Repository102 = class {
3853
3878
  route;
3854
3879
  api;
3855
3880
  constructor({ api, route }) {
@@ -3867,9 +3892,9 @@ var Repository101 = class {
3867
3892
  // src/modules/user/bankData.ts
3868
3893
  var bankData_exports = {};
3869
3894
  __export(bankData_exports, {
3870
- default: () => Repository102
3895
+ default: () => Repository103
3871
3896
  });
3872
- var Repository102 = class {
3897
+ var Repository103 = class {
3873
3898
  route;
3874
3899
  api;
3875
3900
  constructor({ api, route }) {
@@ -3907,9 +3932,9 @@ var Repository102 = class {
3907
3932
  // src/modules/user/chatSubscriber.ts
3908
3933
  var chatSubscriber_exports = {};
3909
3934
  __export(chatSubscriber_exports, {
3910
- default: () => Repository103
3935
+ default: () => Repository104
3911
3936
  });
3912
- var Repository103 = class {
3937
+ var Repository104 = class {
3913
3938
  route;
3914
3939
  api;
3915
3940
  constructor({ api, route }) {
@@ -3985,9 +4010,9 @@ var Repository103 = class {
3985
4010
  // src/modules/user/clients.ts
3986
4011
  var clients_exports = {};
3987
4012
  __export(clients_exports, {
3988
- default: () => Repository104
4013
+ default: () => Repository105
3989
4014
  });
3990
- var Repository104 = class {
4015
+ var Repository105 = class {
3991
4016
  route;
3992
4017
  api;
3993
4018
  constructor({ api, route }) {
@@ -4032,9 +4057,9 @@ var Repository104 = class {
4032
4057
  // src/modules/user/clientType.ts
4033
4058
  var clientType_exports = {};
4034
4059
  __export(clientType_exports, {
4035
- default: () => Repository105
4060
+ default: () => Repository106
4036
4061
  });
4037
- var Repository105 = class {
4062
+ var Repository106 = class {
4038
4063
  route;
4039
4064
  api;
4040
4065
  constructor({ api, route }) {
@@ -4059,9 +4084,9 @@ var Repository105 = class {
4059
4084
  // src/modules/user/commissioner.ts
4060
4085
  var commissioner_exports = {};
4061
4086
  __export(commissioner_exports, {
4062
- default: () => Repository106
4087
+ default: () => Repository107
4063
4088
  });
4064
- var Repository106 = class {
4089
+ var Repository107 = class {
4065
4090
  route;
4066
4091
  api;
4067
4092
  constructor({ api, route }) {
@@ -4087,9 +4112,9 @@ var Repository106 = class {
4087
4112
  // src/modules/user/country.ts
4088
4113
  var country_exports = {};
4089
4114
  __export(country_exports, {
4090
- default: () => Repository107
4115
+ default: () => Repository108
4091
4116
  });
4092
- var Repository107 = class {
4117
+ var Repository108 = class {
4093
4118
  route;
4094
4119
  api;
4095
4120
  constructor({ api, route }) {
@@ -4121,9 +4146,9 @@ var Repository107 = class {
4121
4146
  // src/modules/user/deliveryMethods.ts
4122
4147
  var deliveryMethods_exports = {};
4123
4148
  __export(deliveryMethods_exports, {
4124
- default: () => Repository108
4149
+ default: () => Repository109
4125
4150
  });
4126
- var Repository108 = class {
4151
+ var Repository109 = class {
4127
4152
  route;
4128
4153
  api;
4129
4154
  constructor({ api, route }) {
@@ -4167,9 +4192,9 @@ var Repository108 = class {
4167
4192
  // src/modules/user/favorites.ts
4168
4193
  var favorites_exports = {};
4169
4194
  __export(favorites_exports, {
4170
- default: () => Repository109
4195
+ default: () => Repository110
4171
4196
  });
4172
- var Repository109 = class {
4197
+ var Repository110 = class {
4173
4198
  route;
4174
4199
  api;
4175
4200
  constructor({ api, route }) {
@@ -4187,9 +4212,9 @@ var Repository109 = class {
4187
4212
  // src/modules/user/language.ts
4188
4213
  var language_exports2 = {};
4189
4214
  __export(language_exports2, {
4190
- default: () => Repository110
4215
+ default: () => Repository111
4191
4216
  });
4192
- var Repository110 = class {
4217
+ var Repository111 = class {
4193
4218
  route;
4194
4219
  api;
4195
4220
  constructor({ api, route }) {
@@ -4227,9 +4252,9 @@ var Repository110 = class {
4227
4252
  // src/modules/user/maturityDates.ts
4228
4253
  var maturityDates_exports = {};
4229
4254
  __export(maturityDates_exports, {
4230
- default: () => Repository111
4255
+ default: () => Repository112
4231
4256
  });
4232
- var Repository111 = class {
4257
+ var Repository112 = class {
4233
4258
  route;
4234
4259
  api;
4235
4260
  constructor({ api, route }) {
@@ -4273,9 +4298,9 @@ var Repository111 = class {
4273
4298
  // src/modules/user/password.ts
4274
4299
  var password_exports = {};
4275
4300
  __export(password_exports, {
4276
- default: () => Repository112
4301
+ default: () => Repository113
4277
4302
  });
4278
- var Repository112 = class {
4303
+ var Repository113 = class {
4279
4304
  route;
4280
4305
  api;
4281
4306
  constructor({ api, route }) {
@@ -4300,9 +4325,9 @@ var Repository112 = class {
4300
4325
  // src/modules/user/paymentMethods.ts
4301
4326
  var paymentMethods_exports = {};
4302
4327
  __export(paymentMethods_exports, {
4303
- default: () => Repository113
4328
+ default: () => Repository114
4304
4329
  });
4305
- var Repository113 = class {
4330
+ var Repository114 = class {
4306
4331
  route;
4307
4332
  api;
4308
4333
  constructor({ api, route }) {
@@ -4346,9 +4371,9 @@ var Repository113 = class {
4346
4371
  // src/modules/user/persona.ts
4347
4372
  var persona_exports = {};
4348
4373
  __export(persona_exports, {
4349
- default: () => Repository114
4374
+ default: () => Repository115
4350
4375
  });
4351
- var Repository114 = class {
4376
+ var Repository115 = class {
4352
4377
  route;
4353
4378
  api;
4354
4379
  constructor({ api, route }) {
@@ -4394,6 +4419,15 @@ var Repository114 = class {
4394
4419
  });
4395
4420
  return response.data;
4396
4421
  }
4422
+ async findForBillOfLading(data) {
4423
+ const response = await this.api.get(
4424
+ `${this.route}`,
4425
+ {
4426
+ data
4427
+ }
4428
+ );
4429
+ return response.data;
4430
+ }
4397
4431
  async findByEmail(data) {
4398
4432
  const response = await this.api.get(`${this.route}by_email`, {
4399
4433
  data
@@ -4432,9 +4466,9 @@ var Repository114 = class {
4432
4466
  // src/modules/user/plugin.ts
4433
4467
  var plugin_exports = {};
4434
4468
  __export(plugin_exports, {
4435
- default: () => Repository115
4469
+ default: () => Repository116
4436
4470
  });
4437
- var Repository115 = class {
4471
+ var Repository116 = class {
4438
4472
  route;
4439
4473
  api;
4440
4474
  constructor({ api, route }) {
@@ -4498,9 +4532,9 @@ var Repository115 = class {
4498
4532
  // src/modules/user/provider.ts
4499
4533
  var provider_exports = {};
4500
4534
  __export(provider_exports, {
4501
- default: () => Repository116
4535
+ default: () => Repository117
4502
4536
  });
4503
- var Repository116 = class {
4537
+ var Repository117 = class {
4504
4538
  route;
4505
4539
  api;
4506
4540
  constructor({ api, route }) {
@@ -4551,9 +4585,9 @@ var Repository116 = class {
4551
4585
  // src/modules/user/providerType.ts
4552
4586
  var providerType_exports = {};
4553
4587
  __export(providerType_exports, {
4554
- default: () => Repository117
4588
+ default: () => Repository118
4555
4589
  });
4556
- var Repository117 = class {
4590
+ var Repository118 = class {
4557
4591
  route;
4558
4592
  api;
4559
4593
  constructor({ api, route }) {
@@ -4578,9 +4612,9 @@ var Repository117 = class {
4578
4612
  // src/modules/user/purchaseCondition.ts
4579
4613
  var purchaseCondition_exports = {};
4580
4614
  __export(purchaseCondition_exports, {
4581
- default: () => Repository118
4615
+ default: () => Repository119
4582
4616
  });
4583
- var Repository118 = class {
4617
+ var Repository119 = class {
4584
4618
  route;
4585
4619
  api;
4586
4620
  constructor({ api, route }) {
@@ -4621,9 +4655,9 @@ var Repository118 = class {
4621
4655
  // src/modules/user/reasonForExemption.ts
4622
4656
  var reasonForExemption_exports = {};
4623
4657
  __export(reasonForExemption_exports, {
4624
- default: () => Repository119
4658
+ default: () => Repository120
4625
4659
  });
4626
- var Repository119 = class {
4660
+ var Repository120 = class {
4627
4661
  route;
4628
4662
  api;
4629
4663
  constructor({ api, route }) {
@@ -4669,9 +4703,9 @@ var Repository119 = class {
4669
4703
  // src/modules/user/refreshToken.ts
4670
4704
  var refreshToken_exports = {};
4671
4705
  __export(refreshToken_exports, {
4672
- default: () => Repository120
4706
+ default: () => Repository121
4673
4707
  });
4674
- var Repository120 = class {
4708
+ var Repository121 = class {
4675
4709
  route;
4676
4710
  api;
4677
4711
  constructor({ api, route }) {
@@ -4690,9 +4724,9 @@ var Repository120 = class {
4690
4724
  // src/modules/user/segmentsArea.ts
4691
4725
  var segmentsArea_exports = {};
4692
4726
  __export(segmentsArea_exports, {
4693
- default: () => Repository121
4727
+ default: () => Repository122
4694
4728
  });
4695
- var Repository121 = class {
4729
+ var Repository122 = class {
4696
4730
  route;
4697
4731
  api;
4698
4732
  constructor({ api, route }) {
@@ -4717,9 +4751,9 @@ var Repository121 = class {
4717
4751
  // src/modules/user/sessions.ts
4718
4752
  var sessions_exports = {};
4719
4753
  __export(sessions_exports, {
4720
- default: () => Repository122
4754
+ default: () => Repository123
4721
4755
  });
4722
- var Repository122 = class {
4756
+ var Repository123 = class {
4723
4757
  route;
4724
4758
  api;
4725
4759
  constructor({ api, route }) {
@@ -4741,9 +4775,9 @@ var Repository122 = class {
4741
4775
  // src/modules/user/shippings.ts
4742
4776
  var shippings_exports = {};
4743
4777
  __export(shippings_exports, {
4744
- default: () => Repository123
4778
+ default: () => Repository124
4745
4779
  });
4746
- var Repository123 = class {
4780
+ var Repository124 = class {
4747
4781
  route;
4748
4782
  api;
4749
4783
  constructor({ api, route }) {
@@ -4784,9 +4818,9 @@ var Repository123 = class {
4784
4818
  // src/modules/user/storeOperator.ts
4785
4819
  var storeOperator_exports = {};
4786
4820
  __export(storeOperator_exports, {
4787
- default: () => Repository124
4821
+ default: () => Repository125
4788
4822
  });
4789
- var Repository124 = class {
4823
+ var Repository125 = class {
4790
4824
  route;
4791
4825
  api;
4792
4826
  constructor({ api, route }) {
@@ -4828,9 +4862,9 @@ var Repository124 = class {
4828
4862
  // src/modules/user/swift.ts
4829
4863
  var swift_exports = {};
4830
4864
  __export(swift_exports, {
4831
- default: () => Repository125
4865
+ default: () => Repository126
4832
4866
  });
4833
- var Repository125 = class {
4867
+ var Repository126 = class {
4834
4868
  route;
4835
4869
  api;
4836
4870
  constructor({ api, route }) {
@@ -4855,9 +4889,9 @@ var Repository125 = class {
4855
4889
  // src/modules/user/systemModule.ts
4856
4890
  var systemModule_exports = {};
4857
4891
  __export(systemModule_exports, {
4858
- default: () => Repository126
4892
+ default: () => Repository127
4859
4893
  });
4860
- var Repository126 = class {
4894
+ var Repository127 = class {
4861
4895
  route;
4862
4896
  api;
4863
4897
  constructor({ api, route }) {
@@ -4876,9 +4910,9 @@ var Repository126 = class {
4876
4910
  // src/modules/user/tenant.ts
4877
4911
  var tenant_exports = {};
4878
4912
  __export(tenant_exports, {
4879
- default: () => Repository127
4913
+ default: () => Repository128
4880
4914
  });
4881
- var Repository127 = class {
4915
+ var Repository128 = class {
4882
4916
  route;
4883
4917
  api;
4884
4918
  constructor({ api, route }) {
@@ -4916,9 +4950,9 @@ var Repository127 = class {
4916
4950
  // src/modules/user/theme.ts
4917
4951
  var theme_exports = {};
4918
4952
  __export(theme_exports, {
4919
- default: () => Repository128
4953
+ default: () => Repository129
4920
4954
  });
4921
- var Repository128 = class {
4955
+ var Repository129 = class {
4922
4956
  route;
4923
4957
  api;
4924
4958
  constructor({ api, route }) {
@@ -5004,9 +5038,9 @@ var TimesheetRepository = class {
5004
5038
  // src/modules/user/user.ts
5005
5039
  var user_exports = {};
5006
5040
  __export(user_exports, {
5007
- default: () => Repository129
5041
+ default: () => Repository130
5008
5042
  });
5009
- var Repository129 = class {
5043
+ var Repository130 = class {
5010
5044
  route;
5011
5045
  api;
5012
5046
  constructor({ api, route }) {
@@ -5032,9 +5066,9 @@ var Repository129 = class {
5032
5066
  // src/modules/user/vehicles.ts
5033
5067
  var vehicles_exports = {};
5034
5068
  __export(vehicles_exports, {
5035
- default: () => Repository130
5069
+ default: () => Repository131
5036
5070
  });
5037
- var Repository130 = class {
5071
+ var Repository131 = class {
5038
5072
  route;
5039
5073
  api;
5040
5074
  constructor({ api, route }) {
@@ -5072,9 +5106,9 @@ var Repository130 = class {
5072
5106
  // src/modules/view/adminPanel.ts
5073
5107
  var adminPanel_exports = {};
5074
5108
  __export(adminPanel_exports, {
5075
- default: () => Repository131
5109
+ default: () => Repository132
5076
5110
  });
5077
- var Repository131 = class {
5111
+ var Repository132 = class {
5078
5112
  route;
5079
5113
  api;
5080
5114
  constructor({ api, route }) {
@@ -5093,9 +5127,9 @@ var Repository131 = class {
5093
5127
  // src/modules/view/errorLog.ts
5094
5128
  var errorLog_exports = {};
5095
5129
  __export(errorLog_exports, {
5096
- default: () => Repository132
5130
+ default: () => Repository133
5097
5131
  });
5098
- var Repository132 = class {
5132
+ var Repository133 = class {
5099
5133
  route;
5100
5134
  api;
5101
5135
  constructor({ api, route }) {
@@ -5120,7 +5154,6 @@ var Repository132 = class {
5120
5154
  // src/modules/view/webSocket.ts
5121
5155
  var CLOSE_AUTH_REJECTED = 4401;
5122
5156
  var CLOSE_AUTH_UNAVAILABLE = 4503;
5123
- var MAX_AUTH_RETRIES = 3;
5124
5157
  var PING_INTERVAL_MS = 25e3;
5125
5158
  var MAX_BACKOFF_MS = 3e4;
5126
5159
  var BASE_BACKOFF_MS = 1e3;
@@ -5134,7 +5167,6 @@ var Service = class {
5134
5167
  }
5135
5168
  openSocket({
5136
5169
  token,
5137
- onAuthRejected,
5138
5170
  channel,
5139
5171
  onEvent,
5140
5172
  onOpen,
@@ -5144,15 +5176,11 @@ var Service = class {
5144
5176
  }) {
5145
5177
  let ws = null;
5146
5178
  let attempts = 0;
5147
- let authRejections = 0;
5148
5179
  let opensSoFar = 0;
5149
5180
  let pingTimer = null;
5150
5181
  let reconnectTimer = null;
5151
5182
  let closedByCaller = false;
5152
- const subprotocols = () => {
5153
- const current = typeof token === "function" ? token() : token;
5154
- return channel ? [`bearer.${current}`, `channel.${channel}`] : [`bearer.${current}`];
5155
- };
5183
+ const subprotocols = channel ? [`bearer.${token}`, `channel.${channel}`] : [`bearer.${token}`];
5156
5184
  const stopPing = () => {
5157
5185
  if (pingTimer !== null) {
5158
5186
  window.clearInterval(pingTimer);
@@ -5183,7 +5211,7 @@ var Service = class {
5183
5211
  const connect = () => {
5184
5212
  if (closedByCaller) return;
5185
5213
  try {
5186
- ws = new WebSocket(this.route, subprotocols());
5214
+ ws = new WebSocket(this.route, subprotocols);
5187
5215
  } catch (err) {
5188
5216
  console.error("WebSocket constructor threw", err);
5189
5217
  scheduleReconnect();
@@ -5191,7 +5219,6 @@ var Service = class {
5191
5219
  }
5192
5220
  ws.onopen = () => {
5193
5221
  attempts = 0;
5194
- authRejections = 0;
5195
5222
  opensSoFar += 1;
5196
5223
  startPing();
5197
5224
  if (opensSoFar === 1) {
@@ -5228,13 +5255,6 @@ var Service = class {
5228
5255
  ws = null;
5229
5256
  onClose?.();
5230
5257
  if (e.code === CLOSE_AUTH_REJECTED) {
5231
- if (typeof token === "function" && authRejections < MAX_AUTH_RETRIES) {
5232
- authRejections += 1;
5233
- void Promise.resolve().then(() => onAuthRejected?.()).catch((err) => {
5234
- console.warn("WebSocket onAuthRejected failed", err);
5235
- }).finally(scheduleReconnect);
5236
- return;
5237
- }
5238
5258
  console.error("WebSocket auth rejected by server, not reconnecting");
5239
5259
  closedByCaller = true;
5240
5260
  return;
@@ -5298,6 +5318,7 @@ var API = class {
5298
5318
  GoogleSheets;
5299
5319
  Language;
5300
5320
  Location;
5321
+ OnlineStore;
5301
5322
  Multimedia;
5302
5323
  Observation;
5303
5324
  Password;
@@ -5454,26 +5475,26 @@ var API = class {
5454
5475
  route: `${this.services[service]}${module}/`
5455
5476
  });
5456
5477
  this.WebSocket = new Service(getModuleParams("view", "ws"));
5457
- this.BankData = new Repository102(
5478
+ this.BankData = new Repository103(
5458
5479
  getModuleParams("users", Nomalism.BankData.Route)
5459
5480
  );
5460
- this.Client = new Repository104(
5481
+ this.Client = new Repository105(
5461
5482
  getModuleParams("users", Nomalism.Client.Route)
5462
5483
  );
5463
- this.ClientType = new Repository105(
5484
+ this.ClientType = new Repository106(
5464
5485
  getModuleParams("users", Nomalism.ClientType.Route)
5465
5486
  );
5466
5487
  this.Chat = new Repository41(getModuleParams("stock", Nomalism.Chat.Route));
5467
- this.Commissioner = new Repository106(
5488
+ this.Commissioner = new Repository107(
5468
5489
  getModuleParams("users", Nomalism.Commissioner.Route)
5469
5490
  );
5470
- this.Country = new Repository107(
5491
+ this.Country = new Repository108(
5471
5492
  getModuleParams("users", Nomalism.Country.Route)
5472
5493
  );
5473
- this.DocumentHeader = new Repository71(
5494
+ this.DocumentHeader = new Repository72(
5474
5495
  getModuleParams("stock", Nomalism.DocumentHeader.Route)
5475
5496
  );
5476
- this.DocumentHeaderHistory = new Repository72(
5497
+ this.DocumentHeaderHistory = new Repository73(
5477
5498
  getModuleParams("stock", Nomalism.DocumentHeaderHistory.Route)
5478
5499
  );
5479
5500
  this.BillOfLading = new Repository(
@@ -5494,124 +5515,127 @@ var API = class {
5494
5515
  this.ProviderServiceInvoice = new Repository15(
5495
5516
  getModuleParams("stock", Nomalism.ProviderServiceInvoice.Route)
5496
5517
  );
5497
- this.DocumentLine = new Repository75(
5518
+ this.DocumentLine = new Repository76(
5498
5519
  getModuleParams("stock", Nomalism.DocumentLine.Route)
5499
5520
  );
5500
- this.DocumentLineAssoc = new Repository76(
5521
+ this.DocumentLineAssoc = new Repository77(
5501
5522
  getModuleParams("stock", Nomalism.DocumentLineAssoc.Route)
5502
5523
  );
5503
- this.DocumentType = new Repository81(
5524
+ this.DocumentType = new Repository82(
5504
5525
  getModuleParams("stock", Nomalism.DocumentType.Route)
5505
5526
  );
5506
- this.Favorites = new Repository109(
5527
+ this.Favorites = new Repository110(
5507
5528
  getModuleParams("users", Nomalism.Favorites.Route)
5508
5529
  );
5509
5530
  this.File = new Repository46(getModuleParams("stock", Nomalism.File.Route));
5510
5531
  this.GoogleSheets = new Repository27(
5511
5532
  getModuleParams("integration", Nomalism.GoogleSheets.Route)
5512
5533
  );
5513
- this.Language = new Repository110(
5534
+ this.Language = new Repository111(
5514
5535
  getModuleParams("users", Nomalism.Language.Route)
5515
5536
  );
5516
5537
  this.Location = new Repository49(
5517
5538
  getModuleParams("stock", Nomalism.Location.Route)
5518
5539
  );
5540
+ this.OnlineStore = new Repository50(
5541
+ getModuleParams("stock", Nomalism.OnlineStore.Route)
5542
+ );
5519
5543
  this.Multimedia = new Repository21(
5520
5544
  getModuleParams("documents", Nomalism.Multimedia.Route)
5521
5545
  );
5522
5546
  this.Observation = new Repository28(
5523
5547
  getModuleParams("integration", Nomalism.Observation.Route)
5524
5548
  );
5525
- this.Password = new Repository112(
5549
+ this.Password = new Repository113(
5526
5550
  getModuleParams("users", Nomalism.Password.Route)
5527
5551
  );
5528
- this.ProductImage = new Repository53(
5552
+ this.ProductImage = new Repository54(
5529
5553
  getModuleParams("stock", Nomalism.ProductImage.Route)
5530
5554
  );
5531
- this.Promotion = new Repository56(
5555
+ this.Promotion = new Repository57(
5532
5556
  getModuleParams("stock", Nomalism.Promotion.Route)
5533
5557
  );
5534
- this.Providers = new Repository116(
5558
+ this.Providers = new Repository117(
5535
5559
  getModuleParams("users", Nomalism.Providers.Route)
5536
5560
  );
5537
- this.ProviderType = new Repository117(
5561
+ this.ProviderType = new Repository118(
5538
5562
  getModuleParams("users", Nomalism.ProviderType.Route)
5539
5563
  );
5540
- this.PurchaseConditions = new Repository118(
5564
+ this.PurchaseConditions = new Repository119(
5541
5565
  getModuleParams("users", Nomalism.PurchaseConditions.Route)
5542
5566
  );
5543
- this.ReasonForExemption = new Repository119(
5567
+ this.ReasonForExemption = new Repository120(
5544
5568
  getModuleParams("users", Nomalism.ReasonForExemption.Route)
5545
5569
  );
5546
- this.RefreshToken = new Repository120(
5570
+ this.RefreshToken = new Repository121(
5547
5571
  getModuleParams("users", Nomalism.RefreshToken.Route)
5548
5572
  );
5549
- this.SegmentsArea = new Repository121(
5573
+ this.SegmentsArea = new Repository122(
5550
5574
  getModuleParams("users", Nomalism.SegmentsArea.Route)
5551
5575
  );
5552
- this.Sessions = new Repository122(
5576
+ this.Sessions = new Repository123(
5553
5577
  getModuleParams("users", Nomalism.Sessions.Route)
5554
5578
  );
5555
- this.Shippings = new Repository123(
5579
+ this.Shippings = new Repository124(
5556
5580
  getModuleParams("users", Nomalism.Shippings.Route)
5557
5581
  );
5558
- this.StoreOperator = new Repository124(
5582
+ this.StoreOperator = new Repository125(
5559
5583
  getModuleParams("users", Nomalism.StoreOperator.Route)
5560
5584
  );
5561
- this.Plugin = new Repository115(
5585
+ this.Plugin = new Repository116(
5562
5586
  getModuleParams("users", Nomalism.Plugin.Route)
5563
5587
  );
5564
- this.SystemModule = new Repository126(
5588
+ this.SystemModule = new Repository127(
5565
5589
  getModuleParams("users", Nomalism.SystemModule.Route)
5566
5590
  );
5567
- this.Swift = new Repository125(getModuleParams("users", Nomalism.Swift.Route));
5568
- this.UnitOfMeasure = new Repository67(
5591
+ this.Swift = new Repository126(getModuleParams("users", Nomalism.Swift.Route));
5592
+ this.UnitOfMeasure = new Repository68(
5569
5593
  getModuleParams("stock", Nomalism.UnitOfMeasure.Route)
5570
5594
  );
5571
- this.Users = new Repository129(getModuleParams("users", Nomalism.Users.Route));
5572
- this.VatTax = new Repository68(
5595
+ this.Users = new Repository130(getModuleParams("users", Nomalism.Users.Route));
5596
+ this.VatTax = new Repository69(
5573
5597
  getModuleParams("stock", Nomalism.VatTax.Route)
5574
5598
  );
5575
- this.VatTaxZone = new Repository69(
5599
+ this.VatTaxZone = new Repository70(
5576
5600
  getModuleParams("stock", Nomalism.VatTaxZone.Route)
5577
5601
  );
5578
- this.DeliveryMethods = new Repository108(
5602
+ this.DeliveryMethods = new Repository109(
5579
5603
  getModuleParams("users", Nomalism.DeliveryMethods.Route)
5580
5604
  );
5581
- this.MaturityDates = new Repository111(
5605
+ this.MaturityDates = new Repository112(
5582
5606
  getModuleParams("users", Nomalism.MaturityDates.Route)
5583
5607
  );
5584
- this.PaymentMethods = new Repository113(
5608
+ this.PaymentMethods = new Repository114(
5585
5609
  getModuleParams("users", Nomalism.PaymentMethods.Route)
5586
5610
  );
5587
- this.Vehicles = new Repository130(
5611
+ this.Vehicles = new Repository131(
5588
5612
  getModuleParams("users", Nomalism.Vehicles.Route)
5589
5613
  );
5590
- this.DocumentSet = new Repository80(
5614
+ this.DocumentSet = new Repository81(
5591
5615
  getModuleParams("stock", Nomalism.DocumentSet.Route)
5592
5616
  );
5593
- this.Payment = new Repository85(
5617
+ this.Payment = new Repository86(
5594
5618
  getModuleParams("stock", Nomalism.Payment.Route)
5595
5619
  );
5596
- this.ExternalDocumentHeader = new Repository82(
5620
+ this.ExternalDocumentHeader = new Repository83(
5597
5621
  getModuleParams("stock", Nomalism.ExternalDocumentHeader.Route)
5598
5622
  );
5599
- this.VatValidation = new Repository91(
5623
+ this.VatValidation = new Repository92(
5600
5624
  getModuleParams("stock", Nomalism.VatValidation.Route)
5601
5625
  );
5602
- this.StockMovement = new Repository63(
5626
+ this.StockMovement = new Repository64(
5603
5627
  getModuleParams("stock", Nomalism.StockMovement.Route)
5604
5628
  );
5605
- this.Tenant = new Repository127(
5629
+ this.Tenant = new Repository128(
5606
5630
  getModuleParams("users", Nomalism.Tenant.Route)
5607
5631
  );
5608
- this.PreSale = new Repository87(
5632
+ this.PreSale = new Repository88(
5609
5633
  getModuleParams("stock", Nomalism.PreSale.Route)
5610
5634
  );
5611
- this.PreSaleProduct = new Repository88(
5635
+ this.PreSaleProduct = new Repository89(
5612
5636
  getModuleParams("stock", Nomalism.PreSaleProduct.Route)
5613
5637
  );
5614
- this.OrderManagement = new Repository84(
5638
+ this.OrderManagement = new Repository85(
5615
5639
  getModuleParams("stock", Nomalism.OrderManagement.Route)
5616
5640
  );
5617
5641
  this.Npc = new Repository34(getModuleParams("print", Nomalism.Npc.Route));
@@ -5621,16 +5645,16 @@ var API = class {
5621
5645
  this.SchedulePrintJob = new Repository36(
5622
5646
  getModuleParams("print", Nomalism.SchedulePrintJob.Route)
5623
5647
  );
5624
- this.QueryList = new Repository57(
5648
+ this.QueryList = new Repository58(
5625
5649
  getModuleParams("stock", Nomalism.QueryList.Route)
5626
5650
  );
5627
- this.ReturnReason = new Repository59(
5651
+ this.ReturnReason = new Repository60(
5628
5652
  getModuleParams("stock", Nomalism.ReturnReason.Route)
5629
5653
  );
5630
5654
  this.PropostaBuilder = new Repository9(
5631
5655
  getModuleParams("stock", Nomalism.PropostaBuilder.Route)
5632
5656
  );
5633
- this.PriceTable = new Repository50(
5657
+ this.PriceTable = new Repository51(
5634
5658
  getModuleParams("stock", Nomalism.PriceTable.Route)
5635
5659
  );
5636
5660
  this.PropostaMigration = new Repository11(
@@ -5639,7 +5663,7 @@ var API = class {
5639
5663
  this.PropostaSheets = new Repository12(
5640
5664
  getModuleParams("stock", Nomalism.PropostaSheets.Route)
5641
5665
  );
5642
- this.Schedule = new Repository62(
5666
+ this.Schedule = new Repository63(
5643
5667
  getModuleParams("stock", Nomalism.Schedule.Route)
5644
5668
  );
5645
5669
  this.GoogleFilePermission = new Repository26(
@@ -5648,21 +5672,21 @@ var API = class {
5648
5672
  this.Settings = new Repository32(
5649
5673
  getModuleParams("integration", Nomalism.Settings.Route)
5650
5674
  );
5651
- this.Tickets = new Repository95(
5675
+ this.Tickets = new Repository96(
5652
5676
  getModuleParams("tickets", Nomalism.Tickets.Route)
5653
5677
  );
5654
- this.Channel = new Repository92(
5678
+ this.Channel = new Repository93(
5655
5679
  getModuleParams("tickets", Nomalism.Channel.Route)
5656
5680
  );
5657
- this.TicketsLanguage = new Repository94(
5681
+ this.TicketsLanguage = new Repository95(
5658
5682
  getModuleParams("tickets", Nomalism.TicketsLanguage.Route)
5659
5683
  );
5660
- this.Tts = new Repository96(getModuleParams("tickets", Nomalism.Tts.Route));
5661
- this.Clt = new Repository93(getModuleParams("tickets", Nomalism.CLT.Route));
5662
- this.StartDocumentHeaderLastUpdate = new Repository90(
5684
+ this.Tts = new Repository97(getModuleParams("tickets", Nomalism.Tts.Route));
5685
+ this.Clt = new Repository94(getModuleParams("tickets", Nomalism.CLT.Route));
5686
+ this.StartDocumentHeaderLastUpdate = new Repository91(
5663
5687
  getModuleParams("stock", Nomalism.StartDocumentHeaderLastUpdate.Route)
5664
5688
  );
5665
- this.Persona = new Repository114(
5689
+ this.Persona = new Repository115(
5666
5690
  getModuleParams("users", Nomalism.Persona.Route)
5667
5691
  );
5668
5692
  this.PersonaMerge = new Repository30(
@@ -5684,13 +5708,13 @@ var API = class {
5684
5708
  this.UpfrontReturn = new Repository20(
5685
5709
  getModuleParams("stock", Nomalism.UpfrontReturn.Route)
5686
5710
  );
5687
- this.SavedEmPicking = new Repository60(
5711
+ this.SavedEmPicking = new Repository61(
5688
5712
  getModuleParams("stock", Nomalism.SavedEmPicking.Route)
5689
5713
  );
5690
5714
  this.EmailTemplate = new Repository23(
5691
5715
  getModuleParams("integration", Nomalism.EmailTemplate.Route)
5692
5716
  );
5693
- this.Prison = new Repository51(
5717
+ this.Prison = new Repository52(
5694
5718
  getModuleParams("stock", Nomalism.Prison.Route)
5695
5719
  );
5696
5720
  this.Quebra = new Repository17(
@@ -5711,57 +5735,57 @@ var API = class {
5711
5735
  this.EuPago = new Repository25(
5712
5736
  getModuleParams("integration", Nomalism.EuPago.Route)
5713
5737
  );
5714
- this.DocumentLineNote = new Repository78(
5738
+ this.DocumentLineNote = new Repository79(
5715
5739
  getModuleParams("stock", Nomalism.DocumentLineNote.Route)
5716
5740
  );
5717
- this.SavedProviderProposal = new Repository61(
5741
+ this.SavedProviderProposal = new Repository62(
5718
5742
  getModuleParams("stock", Nomalism.SavedProviderProposal.Route)
5719
5743
  );
5720
- this.ProductGoogleSheets = new Repository52(
5744
+ this.ProductGoogleSheets = new Repository53(
5721
5745
  getModuleParams("stock", Nomalism.ProductGoogleSheets.Route)
5722
5746
  );
5723
- this.Task = new Repository65(getModuleParams("stock", Nomalism.Task.Route));
5724
- this.TaskMessage = new Repository66(
5747
+ this.Task = new Repository66(getModuleParams("stock", Nomalism.Task.Route));
5748
+ this.TaskMessage = new Repository67(
5725
5749
  getModuleParams("stock", Nomalism.TaskMessage.Route)
5726
5750
  );
5727
- this.RecurrentTasks = new Repository58(
5751
+ this.RecurrentTasks = new Repository59(
5728
5752
  getModuleParams("stock", Nomalism.RecurrentTasks.Route)
5729
5753
  );
5730
- this.Theme = new Repository128(getModuleParams("users", Nomalism.Theme.Route));
5754
+ this.Theme = new Repository129(getModuleParams("users", Nomalism.Theme.Route));
5731
5755
  this.Dashboard = new Repository43(
5732
5756
  getModuleParams("stock", Nomalism.Dashboard.Route)
5733
5757
  );
5734
5758
  this.ChatRapidMessage = new Repository42(
5735
5759
  getModuleParams("stock", Nomalism.ChatRapidMessage.Route)
5736
5760
  );
5737
- this.SideMenu = new Repository98(
5761
+ this.SideMenu = new Repository99(
5738
5762
  getModuleParams("stock", Nomalism.SideMenu.Route)
5739
5763
  );
5740
- this.SidemenuHighlight = new Repository99(
5764
+ this.SidemenuHighlight = new Repository100(
5741
5765
  getModuleParams("stock", Nomalism.SidemenuHighlight.Route)
5742
5766
  );
5743
- this.StoreOperatorSaftLock = new Repository100(
5767
+ this.StoreOperatorSaftLock = new Repository101(
5744
5768
  getModuleParams("stock", Nomalism.StoreOperatorSaftLock.Route)
5745
5769
  );
5746
- this.TenantSaftLock = new Repository101(
5770
+ this.TenantSaftLock = new Repository102(
5747
5771
  getModuleParams("stock", Nomalism.TenantSaftLock.Route)
5748
5772
  );
5749
- this.ErrorLog = new Repository132(
5773
+ this.ErrorLog = new Repository133(
5750
5774
  getModuleParams("view", Nomalism.ErrorLog.Route)
5751
5775
  );
5752
- this.AdminPanel = new Repository131(
5776
+ this.AdminPanel = new Repository132(
5753
5777
  getModuleParams("view", Nomalism.AdminPanel.Route)
5754
5778
  );
5755
- this.DocumentLineRm = new Repository79(
5779
+ this.DocumentLineRm = new Repository80(
5756
5780
  getModuleParams("stock", Nomalism.DocumentLineRm.Route)
5757
5781
  );
5758
- this.DocumentLineMt = new Repository77(
5782
+ this.DocumentLineMt = new Repository78(
5759
5783
  getModuleParams("stock", Nomalism.DocumentLineMt.Route)
5760
5784
  );
5761
- this.ChatSubscriber = new Repository103(
5785
+ this.ChatSubscriber = new Repository104(
5762
5786
  getModuleParams("users", Nomalism.ChatSubscriber.Route)
5763
5787
  );
5764
- this.Tag = new Repository64(getModuleParams("stock", Nomalism.Tag.Route));
5788
+ this.Tag = new Repository65(getModuleParams("stock", Nomalism.Tag.Route));
5765
5789
  this.Gmails = new Repository47(
5766
5790
  getModuleParams("stock", Nomalism.Gmails.Route)
5767
5791
  );
@@ -5770,20 +5794,20 @@ var API = class {
5770
5794
  );
5771
5795
  this.NPF = new Repository5(getModuleParams("stock", Nomalism.NPF.Route));
5772
5796
  this.NRCL = new Repository6(getModuleParams("stock", Nomalism.NRCL.Route));
5773
- this.PaymentBatch = new Repository86(
5797
+ this.PaymentBatch = new Repository87(
5774
5798
  getModuleParams("stock", Nomalism.PaymentBatch.Route)
5775
5799
  );
5776
- this.CurrentAccount = new Repository70(
5800
+ this.CurrentAccount = new Repository71(
5777
5801
  getModuleParams("stock", Nomalism.CurrentAccount.Route)
5778
5802
  );
5779
- this.Portal = new Repository97(
5803
+ this.Portal = new Repository98(
5780
5804
  getModuleParams("stock", Nomalism.Portal.Route)
5781
5805
  );
5782
- this.Saft = new Repository89(getModuleParams("stock", "saft"));
5806
+ this.Saft = new Repository90(getModuleParams("stock", "saft"));
5783
5807
  this.AccountCode = new Repository40(
5784
5808
  getModuleParams("stock", "account_code")
5785
5809
  );
5786
- this.GoogleSheetPool = new Repository83(
5810
+ this.GoogleSheetPool = new Repository84(
5787
5811
  getModuleParams("stock", Nomalism.GoogleSheetPool.Route)
5788
5812
  );
5789
5813
  this.AccountCode = new Repository40(
@@ -5793,16 +5817,16 @@ var API = class {
5793
5817
  this.PatchNotes = new Repository29(
5794
5818
  getModuleParams("integration", Nomalism.PatchNotes.Route)
5795
5819
  );
5796
- this.DocumentHeaderSurvey = new Repository74(
5820
+ this.DocumentHeaderSurvey = new Repository75(
5797
5821
  getModuleParams("stock", Nomalism.DocumentHeaderSurvey.Route)
5798
5822
  );
5799
- this.DocumentHeaderSubscriber = new Repository73(
5823
+ this.DocumentHeaderSubscriber = new Repository74(
5800
5824
  getModuleParams("stock", Nomalism.DocumentHeaderSubscriber.Route)
5801
5825
  );
5802
5826
  this.GoogleCalendar = new Repository48(
5803
5827
  getModuleParams("stock", Nomalism.GoogleCalendar.Route)
5804
5828
  );
5805
- this.ProductLocation = new Repository54(
5829
+ this.ProductLocation = new Repository55(
5806
5830
  getModuleParams("stock", Nomalism.ProductLocation.Route)
5807
5831
  );
5808
5832
  this.TimeSheet = new TimesheetRepository(
@@ -5823,7 +5847,7 @@ var API = class {
5823
5847
  this.DisplayLabels = new Repository44(
5824
5848
  getModuleParams("stock", Nomalism.DisplayLabel.Route)
5825
5849
  );
5826
- this.ProductUpdate = new Repository55(
5850
+ this.ProductUpdate = new Repository56(
5827
5851
  getModuleParams("stock", Nomalism.ProductUpdate.Route)
5828
5852
  );
5829
5853
  }