@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.cjs CHANGED
@@ -94,6 +94,7 @@ __export(main_exports, {
94
94
  NRCL: () => NRCL_exports,
95
95
  Npc: () => npc_exports,
96
96
  Observation: () => observation_exports,
97
+ OnlineStore: () => onlineStore_exports,
97
98
  Order: () => order_exports,
98
99
  OrderManagement: () => orderManagement_exports,
99
100
  Password: () => password_exports,
@@ -233,22 +234,6 @@ var ApiError = class _ApiError extends Error {
233
234
  function isApiError(error) {
234
235
  return error instanceof ApiError;
235
236
  }
236
- var MENSAGEM_POR_ESTADO = {
237
- 400: "Os dados enviados n\xE3o s\xE3o v\xE1lidos. Verifique-os e tente novamente.",
238
- 401: "A sess\xE3o terminou. Inicie sess\xE3o novamente.",
239
- 403: "N\xE3o tem permiss\xE3o para realizar esta opera\xE7\xE3o.",
240
- 404: "O que pediu n\xE3o foi encontrado. Atualize a p\xE1gina e tente novamente.",
241
- 409: "Esta opera\xE7\xE3o entra em conflito com dados j\xE1 existentes. Atualize a p\xE1gina e tente novamente.",
242
- 413: "O pedido \xE9 demasiado grande. Reduza a quantidade de informa\xE7\xE3o ou o tamanho do ficheiro.",
243
- 422: "Os dados enviados n\xE3o s\xE3o v\xE1lidos. Verifique-os e tente novamente.",
244
- 429: "Foram feitos demasiados pedidos seguidos. Aguarde um momento e tente novamente.",
245
- 502: "O servidor n\xE3o est\xE1 a responder neste momento. Tente novamente dentro de instantes.",
246
- 503: "O servidor n\xE3o est\xE1 dispon\xEDvel neste momento. Tente novamente dentro de instantes.",
247
- 504: "O servidor demorou demasiado a responder. Tente novamente dentro de instantes."
248
- };
249
- function messageForStatus(status) {
250
- 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.");
251
- }
252
237
  function extractServerMessage(data, fallback) {
253
238
  if (typeof data === "string" && data.trim()) return data;
254
239
  if (isRecord(data)) {
@@ -270,24 +255,21 @@ function parseApiError(error) {
270
255
  const code = axiosError.code;
271
256
  if (axiosError.response) {
272
257
  const { status, data } = axiosError.response;
273
- const message = extractServerMessage(data, messageForStatus(status));
258
+ const message = extractServerMessage(
259
+ data,
260
+ `Request failed with status ${status}`
261
+ );
274
262
  return new ApiError(
275
263
  { kind: "response", message, status, code, method, url, data },
276
264
  error
277
265
  );
278
266
  }
279
267
  if (axiosError.request) {
280
- 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.";
268
+ const message = code === "ECONNABORTED" ? `Request timed out${url ? ` (${method} ${url})` : ""}` : `No response received${url ? ` from ${method} ${url}` : ""}`;
281
269
  return new ApiError({ kind: "request", message, code, method, url }, error);
282
270
  }
283
271
  return new ApiError(
284
- {
285
- kind: "setup",
286
- message: "N\xE3o foi poss\xEDvel enviar o pedido. Atualize a p\xE1gina e tente novamente.",
287
- code,
288
- method,
289
- url
290
- },
272
+ { kind: "setup", message: axiosError.message, code, method, url },
291
273
  error
292
274
  );
293
275
  }
@@ -387,8 +369,7 @@ var Repository4 = class {
387
369
  prison,
388
370
  note,
389
371
  availableStock,
390
- token,
391
- as
372
+ token
392
373
  }) {
393
374
  const qs = new URLSearchParams();
394
375
  qs.set("ef_name", ef_name);
@@ -401,8 +382,7 @@ var Repository4 = class {
401
382
  }
402
383
  qs.set("prison", prison.toString());
403
384
  qs.set("availableStock", availableStock.toString());
404
- if (token) qs.set("token", token);
405
- if (as) qs.set("as", as);
385
+ qs.set("token", token);
406
386
  return `${this.route}print_label_pdf/${product_id}?${qs.toString()}`;
407
387
  }
408
388
  printBulkLabelToPdfUrl({
@@ -411,8 +391,7 @@ var Repository4 = class {
411
391
  notOk,
412
392
  clientOrders,
413
393
  saved_em_picking_ids,
414
- token,
415
- as
394
+ token
416
395
  }) {
417
396
  const qs = new URLSearchParams();
418
397
  qs.set("groupLabel", groupLabel.toString());
@@ -420,8 +399,7 @@ var Repository4 = class {
420
399
  qs.set("notOk", notOk);
421
400
  qs.set("clientOrders", clientOrders);
422
401
  qs.set("saved_em_picking_ids", saved_em_picking_ids);
423
- if (token) qs.set("token", token);
424
- if (as) qs.set("as", as);
402
+ qs.set("token", token);
425
403
  return `${this.route}print_bulk_label_pdf?${qs.toString()}`;
426
404
  }
427
405
  };
@@ -974,13 +952,6 @@ var Repository21 = class {
974
952
  }
975
953
  );
976
954
  }
977
- async setPublic(data) {
978
- const response = await this.api.post(
979
- `${this.route}public`,
980
- data
981
- );
982
- return response.data;
983
- }
984
955
  };
985
956
 
986
957
  // src/modules/integration/emailLog.ts
@@ -1295,6 +1266,13 @@ var Repository32 = class {
1295
1266
  this.api = api;
1296
1267
  this.route = route;
1297
1268
  }
1269
+ async create(body) {
1270
+ const response = await this.api.post(
1271
+ `${this.route}`,
1272
+ body
1273
+ );
1274
+ return response.data;
1275
+ }
1298
1276
  async findByKey(params) {
1299
1277
  const response = await this.api.get(
1300
1278
  `${this.route}by_key`,
@@ -1482,10 +1460,6 @@ var Repository36 = class {
1482
1460
  );
1483
1461
  return response.data;
1484
1462
  }
1485
- async findToday() {
1486
- const response = await this.api.get(`${this.route}today`);
1487
- return response.data;
1488
- }
1489
1463
  async findByOwner(params) {
1490
1464
  const response = await this.api.get(
1491
1465
  `${this.route}by_owner`,
@@ -1883,10 +1857,9 @@ var Repository47 = class {
1883
1857
  const response = await this.api.get(`${this.route}auth`);
1884
1858
  return response.data;
1885
1859
  }
1886
- async emails(params) {
1860
+ async emails() {
1887
1861
  const response = await this.api.get(
1888
- `${this.route}emails`,
1889
- { params }
1862
+ `${this.route}emails`
1890
1863
  );
1891
1864
  return response.data;
1892
1865
  }
@@ -1937,12 +1910,44 @@ var Repository49 = class {
1937
1910
  }
1938
1911
  };
1939
1912
 
1913
+ // src/modules/stock/onlineStore.ts
1914
+ var onlineStore_exports = {};
1915
+ __export(onlineStore_exports, {
1916
+ default: () => Repository50
1917
+ });
1918
+ var Repository50 = class {
1919
+ route;
1920
+ api;
1921
+ constructor({ api, route }) {
1922
+ this.api = api;
1923
+ this.route = route;
1924
+ }
1925
+ async findProducts(params) {
1926
+ const response = await this.api.get(
1927
+ `${this.route}products`,
1928
+ { params }
1929
+ );
1930
+ return response.data;
1931
+ }
1932
+ async findStock(body) {
1933
+ const response = await this.api.post(`${this.route}stock`, body);
1934
+ return response.data;
1935
+ }
1936
+ async createOrder(body) {
1937
+ const response = await this.api.post(
1938
+ `${this.route}orders`,
1939
+ body
1940
+ );
1941
+ return response.data;
1942
+ }
1943
+ };
1944
+
1940
1945
  // src/modules/stock/priceTable.ts
1941
1946
  var priceTable_exports = {};
1942
1947
  __export(priceTable_exports, {
1943
- default: () => Repository50
1948
+ default: () => Repository51
1944
1949
  });
1945
- var Repository50 = class {
1950
+ var Repository51 = class {
1946
1951
  route;
1947
1952
  api;
1948
1953
  constructor({ api, route }) {
@@ -1996,9 +2001,9 @@ var Repository50 = class {
1996
2001
  // src/modules/stock/prison.ts
1997
2002
  var prison_exports = {};
1998
2003
  __export(prison_exports, {
1999
- default: () => Repository51
2004
+ default: () => Repository52
2000
2005
  });
2001
- var Repository51 = class {
2006
+ var Repository52 = class {
2002
2007
  route;
2003
2008
  api;
2004
2009
  constructor({ api, route }) {
@@ -2038,9 +2043,9 @@ var Repository51 = class {
2038
2043
  // src/modules/stock/productGoogleSheets.ts
2039
2044
  var productGoogleSheets_exports = {};
2040
2045
  __export(productGoogleSheets_exports, {
2041
- default: () => Repository52
2046
+ default: () => Repository53
2042
2047
  });
2043
- var Repository52 = class {
2048
+ var Repository53 = class {
2044
2049
  route;
2045
2050
  api;
2046
2051
  constructor({ api, route }) {
@@ -2154,7 +2159,7 @@ var Repository52 = class {
2154
2159
  }
2155
2160
  printLabelToPdfUrl({ id }, { token }) {
2156
2161
  const qs = new URLSearchParams();
2157
- if (token) qs.set("token", token);
2162
+ qs.set("token", token);
2158
2163
  return `${this.route}print_label_pdf/${id}?${qs.toString()}`;
2159
2164
  }
2160
2165
  printLabelToPdfBulk({
@@ -2162,7 +2167,7 @@ var Repository52 = class {
2162
2167
  token
2163
2168
  }) {
2164
2169
  const qs = new URLSearchParams();
2165
- if (token) qs.set("token", token);
2170
+ qs.set("token", token);
2166
2171
  qs.set("ids", ids);
2167
2172
  return `${this.route}print_label_pdf/bulk?${qs.toString()}`;
2168
2173
  }
@@ -2180,9 +2185,9 @@ var Repository52 = class {
2180
2185
  // src/modules/stock/productImage.ts
2181
2186
  var productImage_exports = {};
2182
2187
  __export(productImage_exports, {
2183
- default: () => Repository53
2188
+ default: () => Repository54
2184
2189
  });
2185
- var Repository53 = class {
2190
+ var Repository54 = class {
2186
2191
  route;
2187
2192
  api;
2188
2193
  constructor({ api, route }) {
@@ -2211,9 +2216,9 @@ var Repository53 = class {
2211
2216
  // src/modules/stock/productLocation.ts
2212
2217
  var productLocation_exports = {};
2213
2218
  __export(productLocation_exports, {
2214
- default: () => Repository54
2219
+ default: () => Repository55
2215
2220
  });
2216
- var Repository54 = class {
2221
+ var Repository55 = class {
2217
2222
  route;
2218
2223
  api;
2219
2224
  constructor({ api, route }) {
@@ -2229,9 +2234,9 @@ var Repository54 = class {
2229
2234
  // src/modules/stock/productUpdate.ts
2230
2235
  var productUpdate_exports = {};
2231
2236
  __export(productUpdate_exports, {
2232
- default: () => Repository55
2237
+ default: () => Repository56
2233
2238
  });
2234
- var Repository55 = class {
2239
+ var Repository56 = class {
2235
2240
  route;
2236
2241
  api;
2237
2242
  constructor({ api, route }) {
@@ -2292,9 +2297,9 @@ var Repository55 = class {
2292
2297
  // src/modules/stock/promotion.ts
2293
2298
  var promotion_exports = {};
2294
2299
  __export(promotion_exports, {
2295
- default: () => Repository56
2300
+ default: () => Repository57
2296
2301
  });
2297
- var Repository56 = class {
2302
+ var Repository57 = class {
2298
2303
  route;
2299
2304
  constructor({ route }) {
2300
2305
  this.route = route;
@@ -2316,9 +2321,9 @@ var Repository56 = class {
2316
2321
  // src/modules/stock/queryList.ts
2317
2322
  var queryList_exports = {};
2318
2323
  __export(queryList_exports, {
2319
- default: () => Repository57
2324
+ default: () => Repository58
2320
2325
  });
2321
- var Repository57 = class {
2326
+ var Repository58 = class {
2322
2327
  route;
2323
2328
  api;
2324
2329
  constructor({ api, route }) {
@@ -2341,11 +2346,15 @@ var Repository57 = class {
2341
2346
  getQueryExecuteUrl({
2342
2347
  query_id,
2343
2348
  output,
2349
+ token,
2344
2350
  ...data
2345
2351
  }) {
2346
2352
  const qs = new URLSearchParams();
2347
2353
  qs.set("query_id", query_id);
2348
2354
  qs.set("output", output);
2355
+ if (token) {
2356
+ qs.set("token", token);
2357
+ }
2349
2358
  Object.entries(data).forEach(([key, value]) => {
2350
2359
  if (typeof value === "undefined") return;
2351
2360
  if (value === null) return;
@@ -2358,9 +2367,9 @@ var Repository57 = class {
2358
2367
  // src/modules/stock/recurrentTasks.ts
2359
2368
  var recurrentTasks_exports = {};
2360
2369
  __export(recurrentTasks_exports, {
2361
- default: () => Repository58
2370
+ default: () => Repository59
2362
2371
  });
2363
- var Repository58 = class {
2372
+ var Repository59 = class {
2364
2373
  route;
2365
2374
  api;
2366
2375
  constructor({ api, route }) {
@@ -2372,9 +2381,7 @@ var Repository58 = class {
2372
2381
  return response.data;
2373
2382
  }
2374
2383
  async from_master_checked() {
2375
- const response = await this.api.post(
2376
- `${this.route}from_master_checked`
2377
- );
2384
+ const response = await this.api.post(`${this.route}from_master`);
2378
2385
  return response.data;
2379
2386
  }
2380
2387
  };
@@ -2382,9 +2389,9 @@ var Repository58 = class {
2382
2389
  // src/modules/stock/returnReason.ts
2383
2390
  var returnReason_exports = {};
2384
2391
  __export(returnReason_exports, {
2385
- default: () => Repository59
2392
+ default: () => Repository60
2386
2393
  });
2387
- var Repository59 = class {
2394
+ var Repository60 = class {
2388
2395
  route;
2389
2396
  api;
2390
2397
  constructor({ api, route }) {
@@ -2402,9 +2409,9 @@ var Repository59 = class {
2402
2409
  // src/modules/stock/savedEmPicking.ts
2403
2410
  var savedEmPicking_exports = {};
2404
2411
  __export(savedEmPicking_exports, {
2405
- default: () => Repository60
2412
+ default: () => Repository61
2406
2413
  });
2407
- var Repository60 = class {
2414
+ var Repository61 = class {
2408
2415
  route;
2409
2416
  api;
2410
2417
  constructor({ api, route }) {
@@ -2430,9 +2437,9 @@ var Repository60 = class {
2430
2437
  // src/modules/stock/savedProviderProposal.ts
2431
2438
  var savedProviderProposal_exports = {};
2432
2439
  __export(savedProviderProposal_exports, {
2433
- default: () => Repository61
2440
+ default: () => Repository62
2434
2441
  });
2435
- var Repository61 = class {
2442
+ var Repository62 = class {
2436
2443
  route;
2437
2444
  api;
2438
2445
  constructor({ api, route }) {
@@ -2451,9 +2458,9 @@ var Repository61 = class {
2451
2458
  // src/modules/stock/schedule.ts
2452
2459
  var schedule_exports = {};
2453
2460
  __export(schedule_exports, {
2454
- default: () => Repository62
2461
+ default: () => Repository63
2455
2462
  });
2456
- var Repository62 = class {
2463
+ var Repository63 = class {
2457
2464
  route;
2458
2465
  api;
2459
2466
  constructor({ api, route }) {
@@ -2468,9 +2475,9 @@ var Repository62 = class {
2468
2475
  // src/modules/stock/stockMovement.ts
2469
2476
  var stockMovement_exports = {};
2470
2477
  __export(stockMovement_exports, {
2471
- default: () => Repository63
2478
+ default: () => Repository64
2472
2479
  });
2473
- var Repository63 = class {
2480
+ var Repository64 = class {
2474
2481
  route;
2475
2482
  api;
2476
2483
  constructor({ api, route }) {
@@ -2498,12 +2505,14 @@ var Repository63 = class {
2498
2505
  getStockCsvUrl({
2499
2506
  date,
2500
2507
  version,
2501
- format
2508
+ format,
2509
+ token
2502
2510
  }) {
2503
2511
  const qs = new URLSearchParams();
2504
2512
  qs.set("date", date.toISOString());
2505
2513
  qs.set("version", version);
2506
2514
  qs.set("format", format);
2515
+ qs.set("token", token);
2507
2516
  return `${this.route}csv?${qs.toString()}`;
2508
2517
  }
2509
2518
  };
@@ -2511,9 +2520,9 @@ var Repository63 = class {
2511
2520
  // src/modules/stock/tag.ts
2512
2521
  var tag_exports = {};
2513
2522
  __export(tag_exports, {
2514
- default: () => Repository64
2523
+ default: () => Repository65
2515
2524
  });
2516
- var Repository64 = class {
2525
+ var Repository65 = class {
2517
2526
  route;
2518
2527
  api;
2519
2528
  constructor({ api, route }) {
@@ -2540,9 +2549,9 @@ var Repository64 = class {
2540
2549
  // src/modules/stock/task.ts
2541
2550
  var task_exports = {};
2542
2551
  __export(task_exports, {
2543
- default: () => Repository65
2552
+ default: () => Repository66
2544
2553
  });
2545
- var Repository65 = class {
2554
+ var Repository66 = class {
2546
2555
  route;
2547
2556
  api;
2548
2557
  constructor({ api, route }) {
@@ -2595,9 +2604,9 @@ var Repository65 = class {
2595
2604
  // src/modules/stock/taskMessage.ts
2596
2605
  var taskMessage_exports = {};
2597
2606
  __export(taskMessage_exports, {
2598
- default: () => Repository66
2607
+ default: () => Repository67
2599
2608
  });
2600
- var Repository66 = class {
2609
+ var Repository67 = class {
2601
2610
  route;
2602
2611
  api;
2603
2612
  constructor({ api, route }) {
@@ -2622,9 +2631,9 @@ var Repository66 = class {
2622
2631
  // src/modules/stock/unitOfMeasure.ts
2623
2632
  var unitOfMeasure_exports = {};
2624
2633
  __export(unitOfMeasure_exports, {
2625
- default: () => Repository67
2634
+ default: () => Repository68
2626
2635
  });
2627
- var Repository67 = class {
2636
+ var Repository68 = class {
2628
2637
  route;
2629
2638
  api;
2630
2639
  constructor({ api, route }) {
@@ -2663,9 +2672,9 @@ var Repository67 = class {
2663
2672
  // src/modules/stock/vatTax.ts
2664
2673
  var vatTax_exports = {};
2665
2674
  __export(vatTax_exports, {
2666
- default: () => Repository68
2675
+ default: () => Repository69
2667
2676
  });
2668
- var Repository68 = class {
2677
+ var Repository69 = class {
2669
2678
  route;
2670
2679
  api;
2671
2680
  constructor({ api, route }) {
@@ -2704,9 +2713,9 @@ var Repository68 = class {
2704
2713
  // src/modules/stock/vatTaxZone.ts
2705
2714
  var vatTaxZone_exports = {};
2706
2715
  __export(vatTaxZone_exports, {
2707
- default: () => Repository69
2716
+ default: () => Repository70
2708
2717
  });
2709
- var Repository69 = class {
2718
+ var Repository70 = class {
2710
2719
  route;
2711
2720
  api;
2712
2721
  constructor({ api, route }) {
@@ -2745,9 +2754,9 @@ var Repository69 = class {
2745
2754
  // src/modules/supply/currentAccount.ts
2746
2755
  var currentAccount_exports = {};
2747
2756
  __export(currentAccount_exports, {
2748
- default: () => Repository70
2757
+ default: () => Repository71
2749
2758
  });
2750
- var Repository70 = class {
2759
+ var Repository71 = class {
2751
2760
  route;
2752
2761
  api;
2753
2762
  constructor({ api, route }) {
@@ -2808,13 +2817,15 @@ var Repository70 = class {
2808
2817
  owner_id,
2809
2818
  start_date,
2810
2819
  end_date,
2811
- output
2820
+ output,
2821
+ token
2812
2822
  }) {
2813
2823
  const qs = new URLSearchParams();
2814
2824
  qs.set("owner_id", owner_id);
2815
2825
  qs.set("output", output);
2816
2826
  if (start_date) qs.set("start_date", start_date.toISOString());
2817
2827
  if (end_date) qs.set("end_date", end_date.toISOString());
2828
+ qs.set("token", token);
2818
2829
  return `${this.route}export?${qs.toString()}`;
2819
2830
  }
2820
2831
  };
@@ -2822,9 +2833,9 @@ var Repository70 = class {
2822
2833
  // src/modules/supply/documentHeader.ts
2823
2834
  var documentHeader_exports = {};
2824
2835
  __export(documentHeader_exports, {
2825
- default: () => Repository71
2836
+ default: () => Repository72
2826
2837
  });
2827
- var Repository71 = class {
2838
+ var Repository72 = class {
2828
2839
  route;
2829
2840
  api;
2830
2841
  constructor({ api, route }) {
@@ -2906,9 +2917,6 @@ var Repository71 = class {
2906
2917
  if (data?.token) {
2907
2918
  qs.set("token", data.token);
2908
2919
  }
2909
- if (data?.as) {
2910
- qs.set("as", data.as);
2911
- }
2912
2920
  return `${this.route}document_pdf/${id}?${qs.toString()}`;
2913
2921
  }
2914
2922
  async documentThermalPrint({ id }, query) {
@@ -2952,9 +2960,9 @@ var Repository71 = class {
2952
2960
  // src/modules/supply/documentHeaderHistory.ts
2953
2961
  var documentHeaderHistory_exports = {};
2954
2962
  __export(documentHeaderHistory_exports, {
2955
- default: () => Repository72
2963
+ default: () => Repository73
2956
2964
  });
2957
- var Repository72 = class {
2965
+ var Repository73 = class {
2958
2966
  route;
2959
2967
  api;
2960
2968
  constructor({ api, route }) {
@@ -2970,9 +2978,9 @@ var Repository72 = class {
2970
2978
  // src/modules/supply/documentHeaderSubscriber.ts
2971
2979
  var documentHeaderSubscriber_exports = {};
2972
2980
  __export(documentHeaderSubscriber_exports, {
2973
- default: () => Repository73
2981
+ default: () => Repository74
2974
2982
  });
2975
- var Repository73 = class {
2983
+ var Repository74 = class {
2976
2984
  route;
2977
2985
  api;
2978
2986
  constructor({ api, route }) {
@@ -2996,9 +3004,9 @@ var Repository73 = class {
2996
3004
  // src/modules/supply/documentHeaderSurvey.ts
2997
3005
  var documentHeaderSurvey_exports = {};
2998
3006
  __export(documentHeaderSurvey_exports, {
2999
- default: () => Repository74
3007
+ default: () => Repository75
3000
3008
  });
3001
- var Repository74 = class {
3009
+ var Repository75 = class {
3002
3010
  route;
3003
3011
  api;
3004
3012
  constructor({ api, route }) {
@@ -3020,9 +3028,9 @@ var Repository74 = class {
3020
3028
  // src/modules/supply/documentLine.ts
3021
3029
  var documentLine_exports = {};
3022
3030
  __export(documentLine_exports, {
3023
- default: () => Repository75
3031
+ default: () => Repository76
3024
3032
  });
3025
- var Repository75 = class {
3033
+ var Repository76 = class {
3026
3034
  route;
3027
3035
  api;
3028
3036
  constructor({ api, route }) {
@@ -3064,12 +3072,12 @@ var Repository75 = class {
3064
3072
  }
3065
3073
  printLabelToPdfUrl({ document_line_ids }, { token }) {
3066
3074
  const qs = new URLSearchParams();
3067
- if (token) qs.set("token", token);
3075
+ qs.set("token", token);
3068
3076
  return `${this.route}print_label_pdf/${document_line_ids}?${qs.toString()}`;
3069
3077
  }
3070
3078
  printGroupLabelToPdfUrl({ document_line_ids }, { token }) {
3071
3079
  const qs = new URLSearchParams();
3072
- if (token) qs.set("token", token);
3080
+ qs.set("token", token);
3073
3081
  return `${this.route}print_group_label_pdf/${document_line_ids}?${qs.toString()}`;
3074
3082
  }
3075
3083
  };
@@ -3077,9 +3085,9 @@ var Repository75 = class {
3077
3085
  // src/modules/supply/documentLineAssoc.ts
3078
3086
  var documentLineAssoc_exports = {};
3079
3087
  __export(documentLineAssoc_exports, {
3080
- default: () => Repository76
3088
+ default: () => Repository77
3081
3089
  });
3082
- var Repository76 = class {
3090
+ var Repository77 = class {
3083
3091
  route;
3084
3092
  api;
3085
3093
  constructor({ api, route }) {
@@ -3110,9 +3118,9 @@ var Repository76 = class {
3110
3118
  // src/modules/supply/documentLineMt.ts
3111
3119
  var documentLineMt_exports = {};
3112
3120
  __export(documentLineMt_exports, {
3113
- default: () => Repository77
3121
+ default: () => Repository78
3114
3122
  });
3115
- var Repository77 = class {
3123
+ var Repository78 = class {
3116
3124
  route;
3117
3125
  api;
3118
3126
  constructor({ api, route }) {
@@ -3135,9 +3143,9 @@ var Repository77 = class {
3135
3143
  // src/modules/supply/documentLineNote.ts
3136
3144
  var documentLineNote_exports = {};
3137
3145
  __export(documentLineNote_exports, {
3138
- default: () => Repository78
3146
+ default: () => Repository79
3139
3147
  });
3140
- var Repository78 = class {
3148
+ var Repository79 = class {
3141
3149
  route;
3142
3150
  api;
3143
3151
  constructor({ api, route }) {
@@ -3152,9 +3160,9 @@ var Repository78 = class {
3152
3160
  // src/modules/supply/documentLineRm.ts
3153
3161
  var documentLineRm_exports = {};
3154
3162
  __export(documentLineRm_exports, {
3155
- default: () => Repository79
3163
+ default: () => Repository80
3156
3164
  });
3157
- var Repository79 = class {
3165
+ var Repository80 = class {
3158
3166
  route;
3159
3167
  api;
3160
3168
  constructor({ api, route }) {
@@ -3177,9 +3185,9 @@ var Repository79 = class {
3177
3185
  // src/modules/supply/documentSet.ts
3178
3186
  var documentSet_exports = {};
3179
3187
  __export(documentSet_exports, {
3180
- default: () => Repository80
3188
+ default: () => Repository81
3181
3189
  });
3182
- var Repository80 = class {
3190
+ var Repository81 = class {
3183
3191
  route;
3184
3192
  api;
3185
3193
  constructor({ api, route }) {
@@ -3202,9 +3210,9 @@ var Repository80 = class {
3202
3210
  // src/modules/supply/documentType.ts
3203
3211
  var documentType_exports = {};
3204
3212
  __export(documentType_exports, {
3205
- default: () => Repository81
3213
+ default: () => Repository82
3206
3214
  });
3207
- var Repository81 = class {
3215
+ var Repository82 = class {
3208
3216
  route;
3209
3217
  api;
3210
3218
  constructor({ api, route }) {
@@ -3231,9 +3239,9 @@ var Repository81 = class {
3231
3239
  // src/modules/supply/externalDocumentHeader.ts
3232
3240
  var externalDocumentHeader_exports = {};
3233
3241
  __export(externalDocumentHeader_exports, {
3234
- default: () => Repository82
3242
+ default: () => Repository83
3235
3243
  });
3236
- var Repository82 = class {
3244
+ var Repository83 = class {
3237
3245
  route;
3238
3246
  api;
3239
3247
  constructor({ api, route }) {
@@ -3296,9 +3304,9 @@ var Repository82 = class {
3296
3304
  // src/modules/supply/googleSheetPool.ts
3297
3305
  var googleSheetPool_exports = {};
3298
3306
  __export(googleSheetPool_exports, {
3299
- default: () => Repository83
3307
+ default: () => Repository84
3300
3308
  });
3301
- var Repository83 = class {
3309
+ var Repository84 = class {
3302
3310
  route;
3303
3311
  api;
3304
3312
  constructor({ api, route }) {
@@ -3313,9 +3321,9 @@ var Repository83 = class {
3313
3321
  // src/modules/supply/orderManagement.ts
3314
3322
  var orderManagement_exports = {};
3315
3323
  __export(orderManagement_exports, {
3316
- default: () => Repository84
3324
+ default: () => Repository85
3317
3325
  });
3318
- var Repository84 = class {
3326
+ var Repository85 = class {
3319
3327
  route;
3320
3328
  api;
3321
3329
  constructor({ api, route }) {
@@ -3328,8 +3336,8 @@ var Repository84 = class {
3328
3336
  });
3329
3337
  return response.data;
3330
3338
  }
3331
- async findAllProviderProducts(params) {
3332
- const response = await this.api.get(`${this.route}all_provider_products`, { params });
3339
+ async findAllProviderProducts() {
3340
+ const response = await this.api.get(`${this.route}all_provider_products`);
3333
3341
  return response.data;
3334
3342
  }
3335
3343
  };
@@ -3337,9 +3345,9 @@ var Repository84 = class {
3337
3345
  // src/modules/supply/payment.ts
3338
3346
  var payment_exports = {};
3339
3347
  __export(payment_exports, {
3340
- default: () => Repository85
3348
+ default: () => Repository86
3341
3349
  });
3342
- var Repository85 = class {
3350
+ var Repository86 = class {
3343
3351
  route;
3344
3352
  api;
3345
3353
  constructor({ api, route }) {
@@ -3371,9 +3379,9 @@ var Repository85 = class {
3371
3379
  // src/modules/supply/paymentBatch.ts
3372
3380
  var paymentBatch_exports = {};
3373
3381
  __export(paymentBatch_exports, {
3374
- default: () => Repository86
3382
+ default: () => Repository87
3375
3383
  });
3376
- var Repository86 = class {
3384
+ var Repository87 = class {
3377
3385
  route;
3378
3386
  api;
3379
3387
  constructor({ api, route }) {
@@ -3408,7 +3416,7 @@ var Repository86 = class {
3408
3416
  year
3409
3417
  }) {
3410
3418
  const qs = new URLSearchParams();
3411
- if (token) qs.set("token", token);
3419
+ qs.set("token", token);
3412
3420
  if (ids) {
3413
3421
  qs.set("ids", ids);
3414
3422
  return `${this.route}create_batch_pdf?${qs.toString()}`;
@@ -3425,9 +3433,9 @@ var Repository86 = class {
3425
3433
  // src/modules/supply/preSale.ts
3426
3434
  var preSale_exports = {};
3427
3435
  __export(preSale_exports, {
3428
- default: () => Repository87
3436
+ default: () => Repository88
3429
3437
  });
3430
- var Repository87 = class {
3438
+ var Repository88 = class {
3431
3439
  route;
3432
3440
  api;
3433
3441
  constructor({ api, route }) {
@@ -3482,9 +3490,9 @@ var Repository87 = class {
3482
3490
  // src/modules/supply/preSaleProduct.ts
3483
3491
  var preSaleProduct_exports = {};
3484
3492
  __export(preSaleProduct_exports, {
3485
- default: () => Repository88
3493
+ default: () => Repository89
3486
3494
  });
3487
- var Repository88 = class {
3495
+ var Repository89 = class {
3488
3496
  route;
3489
3497
  api;
3490
3498
  constructor({ api, route }) {
@@ -3506,17 +3514,22 @@ var Repository88 = class {
3506
3514
  // src/modules/supply/saft.ts
3507
3515
  var saft_exports = {};
3508
3516
  __export(saft_exports, {
3509
- default: () => Repository89
3517
+ default: () => Repository90
3510
3518
  });
3511
- var Repository89 = class {
3519
+ var Repository90 = class {
3512
3520
  route;
3513
3521
  constructor({ route }) {
3514
3522
  this.route = route;
3515
3523
  }
3516
- getUrl({ date_start, date_end }) {
3524
+ getUrl({
3525
+ date_start,
3526
+ date_end,
3527
+ token
3528
+ }) {
3517
3529
  const qs = new URLSearchParams();
3518
3530
  qs.set("date_start", date_start);
3519
3531
  qs.set("date_end", date_end);
3532
+ qs.set("token", token);
3520
3533
  return `${this.route}download?${qs.toString()}`;
3521
3534
  }
3522
3535
  };
@@ -3524,9 +3537,9 @@ var Repository89 = class {
3524
3537
  // src/modules/supply/startDocumentHeaderLastUpdate.ts
3525
3538
  var startDocumentHeaderLastUpdate_exports = {};
3526
3539
  __export(startDocumentHeaderLastUpdate_exports, {
3527
- default: () => Repository90
3540
+ default: () => Repository91
3528
3541
  });
3529
- var Repository90 = class {
3542
+ var Repository91 = class {
3530
3543
  route;
3531
3544
  api;
3532
3545
  constructor({ api, route }) {
@@ -3544,9 +3557,9 @@ var Repository90 = class {
3544
3557
  // src/modules/supply/vatValidation.ts
3545
3558
  var vatValidation_exports = {};
3546
3559
  __export(vatValidation_exports, {
3547
- default: () => Repository91
3560
+ default: () => Repository92
3548
3561
  });
3549
- var Repository91 = class {
3562
+ var Repository92 = class {
3550
3563
  route;
3551
3564
  api;
3552
3565
  constructor({ api, route }) {
@@ -3569,9 +3582,9 @@ var Repository91 = class {
3569
3582
  // src/modules/tickets/channel.ts
3570
3583
  var channel_exports = {};
3571
3584
  __export(channel_exports, {
3572
- default: () => Repository92
3585
+ default: () => Repository93
3573
3586
  });
3574
- var Repository92 = class {
3587
+ var Repository93 = class {
3575
3588
  route;
3576
3589
  api;
3577
3590
  constructor({ api, route }) {
@@ -3609,7 +3622,7 @@ var Repository92 = class {
3609
3622
  return response.data;
3610
3623
  }
3611
3624
  async update({ id }, body) {
3612
- await this.api.put(`${this.route}${id}`, body);
3625
+ await this.api.post(`${this.route}${id}`, body);
3613
3626
  }
3614
3627
  async deleteOne({
3615
3628
  id
@@ -3621,15 +3634,22 @@ var Repository92 = class {
3621
3634
  // src/modules/tickets/clt.ts
3622
3635
  var clt_exports = {};
3623
3636
  __export(clt_exports, {
3624
- default: () => Repository93
3637
+ default: () => Repository94
3625
3638
  });
3626
- var Repository93 = class {
3639
+ var Repository94 = class {
3627
3640
  route;
3628
3641
  api;
3629
3642
  constructor({ api, route }) {
3630
3643
  this.api = api;
3631
3644
  this.route = route;
3632
3645
  }
3646
+ async create(body) {
3647
+ const response = await this.api.post(
3648
+ `${this.route}`,
3649
+ body
3650
+ );
3651
+ return response.data;
3652
+ }
3633
3653
  async find() {
3634
3654
  const response = await this.api.get(`${this.route}`);
3635
3655
  return response.data;
@@ -3652,16 +3672,21 @@ var Repository93 = class {
3652
3672
  return response.data;
3653
3673
  }
3654
3674
  async update({ id }, body) {
3655
- await this.api.put(`${this.route}${id}`, body);
3675
+ await this.api.post(`${this.route}${id}`, body);
3676
+ }
3677
+ async deleteOne({
3678
+ id
3679
+ }) {
3680
+ await this.api.delete(`${this.route}${id}`);
3656
3681
  }
3657
3682
  };
3658
3683
 
3659
3684
  // src/modules/tickets/language.ts
3660
3685
  var language_exports = {};
3661
3686
  __export(language_exports, {
3662
- default: () => Repository94
3687
+ default: () => Repository95
3663
3688
  });
3664
- var Repository94 = class {
3689
+ var Repository95 = class {
3665
3690
  route;
3666
3691
  api;
3667
3692
  constructor({ api, route }) {
@@ -3699,7 +3724,7 @@ var Repository94 = class {
3699
3724
  return response.data;
3700
3725
  }
3701
3726
  async update({ id }, body) {
3702
- await this.api.put(`${this.route}${id}`, body);
3727
+ await this.api.post(`${this.route}${id}`, body);
3703
3728
  }
3704
3729
  async deleteOne({
3705
3730
  id
@@ -3711,9 +3736,9 @@ var Repository94 = class {
3711
3736
  // src/modules/tickets/tickets.ts
3712
3737
  var tickets_exports = {};
3713
3738
  __export(tickets_exports, {
3714
- default: () => Repository95
3739
+ default: () => Repository96
3715
3740
  });
3716
- var Repository95 = class {
3741
+ var Repository96 = class {
3717
3742
  route;
3718
3743
  api;
3719
3744
  constructor({ api, route }) {
@@ -3751,9 +3776,9 @@ var Repository95 = class {
3751
3776
  // src/modules/tickets/tts.ts
3752
3777
  var tts_exports = {};
3753
3778
  __export(tts_exports, {
3754
- default: () => Repository96
3779
+ default: () => Repository97
3755
3780
  });
3756
- var Repository96 = class {
3781
+ var Repository97 = class {
3757
3782
  route;
3758
3783
  api;
3759
3784
  constructor({ api, route }) {
@@ -3772,9 +3797,9 @@ var Repository96 = class {
3772
3797
  // src/modules/ui/portal.ts
3773
3798
  var portal_exports = {};
3774
3799
  __export(portal_exports, {
3775
- default: () => Repository97
3800
+ default: () => Repository98
3776
3801
  });
3777
- var Repository97 = class {
3802
+ var Repository98 = class {
3778
3803
  route;
3779
3804
  api;
3780
3805
  constructor({ api, route }) {
@@ -3803,9 +3828,9 @@ var Repository97 = class {
3803
3828
  // src/modules/ui/sideMenu.ts
3804
3829
  var sideMenu_exports = {};
3805
3830
  __export(sideMenu_exports, {
3806
- default: () => Repository98
3831
+ default: () => Repository99
3807
3832
  });
3808
- var Repository98 = class {
3833
+ var Repository99 = class {
3809
3834
  route;
3810
3835
  api;
3811
3836
  constructor({ api, route }) {
@@ -3841,9 +3866,9 @@ var Repository98 = class {
3841
3866
  // src/modules/ui/sidemenuHighlight.ts
3842
3867
  var sidemenuHighlight_exports = {};
3843
3868
  __export(sidemenuHighlight_exports, {
3844
- default: () => Repository99
3869
+ default: () => Repository100
3845
3870
  });
3846
- var Repository99 = class {
3871
+ var Repository100 = class {
3847
3872
  route;
3848
3873
  api;
3849
3874
  constructor({ api, route }) {
@@ -3862,9 +3887,9 @@ var Repository99 = class {
3862
3887
  // src/modules/ui/storeOperatorSaftLock.ts
3863
3888
  var storeOperatorSaftLock_exports = {};
3864
3889
  __export(storeOperatorSaftLock_exports, {
3865
- default: () => Repository100
3890
+ default: () => Repository101
3866
3891
  });
3867
- var Repository100 = class {
3892
+ var Repository101 = class {
3868
3893
  route;
3869
3894
  api;
3870
3895
  constructor({ api, route }) {
@@ -3880,9 +3905,9 @@ var Repository100 = class {
3880
3905
  // src/modules/ui/tenantSaftLock.ts
3881
3906
  var tenantSaftLock_exports = {};
3882
3907
  __export(tenantSaftLock_exports, {
3883
- default: () => Repository101
3908
+ default: () => Repository102
3884
3909
  });
3885
- var Repository101 = class {
3910
+ var Repository102 = class {
3886
3911
  route;
3887
3912
  api;
3888
3913
  constructor({ api, route }) {
@@ -3900,9 +3925,9 @@ var Repository101 = class {
3900
3925
  // src/modules/user/bankData.ts
3901
3926
  var bankData_exports = {};
3902
3927
  __export(bankData_exports, {
3903
- default: () => Repository102
3928
+ default: () => Repository103
3904
3929
  });
3905
- var Repository102 = class {
3930
+ var Repository103 = class {
3906
3931
  route;
3907
3932
  api;
3908
3933
  constructor({ api, route }) {
@@ -3940,9 +3965,9 @@ var Repository102 = class {
3940
3965
  // src/modules/user/chatSubscriber.ts
3941
3966
  var chatSubscriber_exports = {};
3942
3967
  __export(chatSubscriber_exports, {
3943
- default: () => Repository103
3968
+ default: () => Repository104
3944
3969
  });
3945
- var Repository103 = class {
3970
+ var Repository104 = class {
3946
3971
  route;
3947
3972
  api;
3948
3973
  constructor({ api, route }) {
@@ -4018,9 +4043,9 @@ var Repository103 = class {
4018
4043
  // src/modules/user/clients.ts
4019
4044
  var clients_exports = {};
4020
4045
  __export(clients_exports, {
4021
- default: () => Repository104
4046
+ default: () => Repository105
4022
4047
  });
4023
- var Repository104 = class {
4048
+ var Repository105 = class {
4024
4049
  route;
4025
4050
  api;
4026
4051
  constructor({ api, route }) {
@@ -4065,9 +4090,9 @@ var Repository104 = class {
4065
4090
  // src/modules/user/clientType.ts
4066
4091
  var clientType_exports = {};
4067
4092
  __export(clientType_exports, {
4068
- default: () => Repository105
4093
+ default: () => Repository106
4069
4094
  });
4070
- var Repository105 = class {
4095
+ var Repository106 = class {
4071
4096
  route;
4072
4097
  api;
4073
4098
  constructor({ api, route }) {
@@ -4092,9 +4117,9 @@ var Repository105 = class {
4092
4117
  // src/modules/user/commissioner.ts
4093
4118
  var commissioner_exports = {};
4094
4119
  __export(commissioner_exports, {
4095
- default: () => Repository106
4120
+ default: () => Repository107
4096
4121
  });
4097
- var Repository106 = class {
4122
+ var Repository107 = class {
4098
4123
  route;
4099
4124
  api;
4100
4125
  constructor({ api, route }) {
@@ -4120,9 +4145,9 @@ var Repository106 = class {
4120
4145
  // src/modules/user/country.ts
4121
4146
  var country_exports = {};
4122
4147
  __export(country_exports, {
4123
- default: () => Repository107
4148
+ default: () => Repository108
4124
4149
  });
4125
- var Repository107 = class {
4150
+ var Repository108 = class {
4126
4151
  route;
4127
4152
  api;
4128
4153
  constructor({ api, route }) {
@@ -4154,9 +4179,9 @@ var Repository107 = class {
4154
4179
  // src/modules/user/deliveryMethods.ts
4155
4180
  var deliveryMethods_exports = {};
4156
4181
  __export(deliveryMethods_exports, {
4157
- default: () => Repository108
4182
+ default: () => Repository109
4158
4183
  });
4159
- var Repository108 = class {
4184
+ var Repository109 = class {
4160
4185
  route;
4161
4186
  api;
4162
4187
  constructor({ api, route }) {
@@ -4200,9 +4225,9 @@ var Repository108 = class {
4200
4225
  // src/modules/user/favorites.ts
4201
4226
  var favorites_exports = {};
4202
4227
  __export(favorites_exports, {
4203
- default: () => Repository109
4228
+ default: () => Repository110
4204
4229
  });
4205
- var Repository109 = class {
4230
+ var Repository110 = class {
4206
4231
  route;
4207
4232
  api;
4208
4233
  constructor({ api, route }) {
@@ -4220,9 +4245,9 @@ var Repository109 = class {
4220
4245
  // src/modules/user/language.ts
4221
4246
  var language_exports2 = {};
4222
4247
  __export(language_exports2, {
4223
- default: () => Repository110
4248
+ default: () => Repository111
4224
4249
  });
4225
- var Repository110 = class {
4250
+ var Repository111 = class {
4226
4251
  route;
4227
4252
  api;
4228
4253
  constructor({ api, route }) {
@@ -4260,9 +4285,9 @@ var Repository110 = class {
4260
4285
  // src/modules/user/maturityDates.ts
4261
4286
  var maturityDates_exports = {};
4262
4287
  __export(maturityDates_exports, {
4263
- default: () => Repository111
4288
+ default: () => Repository112
4264
4289
  });
4265
- var Repository111 = class {
4290
+ var Repository112 = class {
4266
4291
  route;
4267
4292
  api;
4268
4293
  constructor({ api, route }) {
@@ -4306,9 +4331,9 @@ var Repository111 = class {
4306
4331
  // src/modules/user/password.ts
4307
4332
  var password_exports = {};
4308
4333
  __export(password_exports, {
4309
- default: () => Repository112
4334
+ default: () => Repository113
4310
4335
  });
4311
- var Repository112 = class {
4336
+ var Repository113 = class {
4312
4337
  route;
4313
4338
  api;
4314
4339
  constructor({ api, route }) {
@@ -4333,9 +4358,9 @@ var Repository112 = class {
4333
4358
  // src/modules/user/paymentMethods.ts
4334
4359
  var paymentMethods_exports = {};
4335
4360
  __export(paymentMethods_exports, {
4336
- default: () => Repository113
4361
+ default: () => Repository114
4337
4362
  });
4338
- var Repository113 = class {
4363
+ var Repository114 = class {
4339
4364
  route;
4340
4365
  api;
4341
4366
  constructor({ api, route }) {
@@ -4379,9 +4404,9 @@ var Repository113 = class {
4379
4404
  // src/modules/user/persona.ts
4380
4405
  var persona_exports = {};
4381
4406
  __export(persona_exports, {
4382
- default: () => Repository114
4407
+ default: () => Repository115
4383
4408
  });
4384
- var Repository114 = class {
4409
+ var Repository115 = class {
4385
4410
  route;
4386
4411
  api;
4387
4412
  constructor({ api, route }) {
@@ -4427,6 +4452,15 @@ var Repository114 = class {
4427
4452
  });
4428
4453
  return response.data;
4429
4454
  }
4455
+ async findForBillOfLading(data) {
4456
+ const response = await this.api.get(
4457
+ `${this.route}`,
4458
+ {
4459
+ data
4460
+ }
4461
+ );
4462
+ return response.data;
4463
+ }
4430
4464
  async findByEmail(data) {
4431
4465
  const response = await this.api.get(`${this.route}by_email`, {
4432
4466
  data
@@ -4465,9 +4499,9 @@ var Repository114 = class {
4465
4499
  // src/modules/user/plugin.ts
4466
4500
  var plugin_exports = {};
4467
4501
  __export(plugin_exports, {
4468
- default: () => Repository115
4502
+ default: () => Repository116
4469
4503
  });
4470
- var Repository115 = class {
4504
+ var Repository116 = class {
4471
4505
  route;
4472
4506
  api;
4473
4507
  constructor({ api, route }) {
@@ -4531,9 +4565,9 @@ var Repository115 = class {
4531
4565
  // src/modules/user/provider.ts
4532
4566
  var provider_exports = {};
4533
4567
  __export(provider_exports, {
4534
- default: () => Repository116
4568
+ default: () => Repository117
4535
4569
  });
4536
- var Repository116 = class {
4570
+ var Repository117 = class {
4537
4571
  route;
4538
4572
  api;
4539
4573
  constructor({ api, route }) {
@@ -4584,9 +4618,9 @@ var Repository116 = class {
4584
4618
  // src/modules/user/providerType.ts
4585
4619
  var providerType_exports = {};
4586
4620
  __export(providerType_exports, {
4587
- default: () => Repository117
4621
+ default: () => Repository118
4588
4622
  });
4589
- var Repository117 = class {
4623
+ var Repository118 = class {
4590
4624
  route;
4591
4625
  api;
4592
4626
  constructor({ api, route }) {
@@ -4611,9 +4645,9 @@ var Repository117 = class {
4611
4645
  // src/modules/user/purchaseCondition.ts
4612
4646
  var purchaseCondition_exports = {};
4613
4647
  __export(purchaseCondition_exports, {
4614
- default: () => Repository118
4648
+ default: () => Repository119
4615
4649
  });
4616
- var Repository118 = class {
4650
+ var Repository119 = class {
4617
4651
  route;
4618
4652
  api;
4619
4653
  constructor({ api, route }) {
@@ -4654,9 +4688,9 @@ var Repository118 = class {
4654
4688
  // src/modules/user/reasonForExemption.ts
4655
4689
  var reasonForExemption_exports = {};
4656
4690
  __export(reasonForExemption_exports, {
4657
- default: () => Repository119
4691
+ default: () => Repository120
4658
4692
  });
4659
- var Repository119 = class {
4693
+ var Repository120 = class {
4660
4694
  route;
4661
4695
  api;
4662
4696
  constructor({ api, route }) {
@@ -4702,9 +4736,9 @@ var Repository119 = class {
4702
4736
  // src/modules/user/refreshToken.ts
4703
4737
  var refreshToken_exports = {};
4704
4738
  __export(refreshToken_exports, {
4705
- default: () => Repository120
4739
+ default: () => Repository121
4706
4740
  });
4707
- var Repository120 = class {
4741
+ var Repository121 = class {
4708
4742
  route;
4709
4743
  api;
4710
4744
  constructor({ api, route }) {
@@ -4723,9 +4757,9 @@ var Repository120 = class {
4723
4757
  // src/modules/user/segmentsArea.ts
4724
4758
  var segmentsArea_exports = {};
4725
4759
  __export(segmentsArea_exports, {
4726
- default: () => Repository121
4760
+ default: () => Repository122
4727
4761
  });
4728
- var Repository121 = class {
4762
+ var Repository122 = class {
4729
4763
  route;
4730
4764
  api;
4731
4765
  constructor({ api, route }) {
@@ -4750,9 +4784,9 @@ var Repository121 = class {
4750
4784
  // src/modules/user/sessions.ts
4751
4785
  var sessions_exports = {};
4752
4786
  __export(sessions_exports, {
4753
- default: () => Repository122
4787
+ default: () => Repository123
4754
4788
  });
4755
- var Repository122 = class {
4789
+ var Repository123 = class {
4756
4790
  route;
4757
4791
  api;
4758
4792
  constructor({ api, route }) {
@@ -4774,9 +4808,9 @@ var Repository122 = class {
4774
4808
  // src/modules/user/shippings.ts
4775
4809
  var shippings_exports = {};
4776
4810
  __export(shippings_exports, {
4777
- default: () => Repository123
4811
+ default: () => Repository124
4778
4812
  });
4779
- var Repository123 = class {
4813
+ var Repository124 = class {
4780
4814
  route;
4781
4815
  api;
4782
4816
  constructor({ api, route }) {
@@ -4817,9 +4851,9 @@ var Repository123 = class {
4817
4851
  // src/modules/user/storeOperator.ts
4818
4852
  var storeOperator_exports = {};
4819
4853
  __export(storeOperator_exports, {
4820
- default: () => Repository124
4854
+ default: () => Repository125
4821
4855
  });
4822
- var Repository124 = class {
4856
+ var Repository125 = class {
4823
4857
  route;
4824
4858
  api;
4825
4859
  constructor({ api, route }) {
@@ -4861,9 +4895,9 @@ var Repository124 = class {
4861
4895
  // src/modules/user/swift.ts
4862
4896
  var swift_exports = {};
4863
4897
  __export(swift_exports, {
4864
- default: () => Repository125
4898
+ default: () => Repository126
4865
4899
  });
4866
- var Repository125 = class {
4900
+ var Repository126 = class {
4867
4901
  route;
4868
4902
  api;
4869
4903
  constructor({ api, route }) {
@@ -4888,9 +4922,9 @@ var Repository125 = class {
4888
4922
  // src/modules/user/systemModule.ts
4889
4923
  var systemModule_exports = {};
4890
4924
  __export(systemModule_exports, {
4891
- default: () => Repository126
4925
+ default: () => Repository127
4892
4926
  });
4893
- var Repository126 = class {
4927
+ var Repository127 = class {
4894
4928
  route;
4895
4929
  api;
4896
4930
  constructor({ api, route }) {
@@ -4909,9 +4943,9 @@ var Repository126 = class {
4909
4943
  // src/modules/user/tenant.ts
4910
4944
  var tenant_exports = {};
4911
4945
  __export(tenant_exports, {
4912
- default: () => Repository127
4946
+ default: () => Repository128
4913
4947
  });
4914
- var Repository127 = class {
4948
+ var Repository128 = class {
4915
4949
  route;
4916
4950
  api;
4917
4951
  constructor({ api, route }) {
@@ -4949,9 +4983,9 @@ var Repository127 = class {
4949
4983
  // src/modules/user/theme.ts
4950
4984
  var theme_exports = {};
4951
4985
  __export(theme_exports, {
4952
- default: () => Repository128
4986
+ default: () => Repository129
4953
4987
  });
4954
- var Repository128 = class {
4988
+ var Repository129 = class {
4955
4989
  route;
4956
4990
  api;
4957
4991
  constructor({ api, route }) {
@@ -5037,9 +5071,9 @@ var TimesheetRepository = class {
5037
5071
  // src/modules/user/user.ts
5038
5072
  var user_exports = {};
5039
5073
  __export(user_exports, {
5040
- default: () => Repository129
5074
+ default: () => Repository130
5041
5075
  });
5042
- var Repository129 = class {
5076
+ var Repository130 = class {
5043
5077
  route;
5044
5078
  api;
5045
5079
  constructor({ api, route }) {
@@ -5065,9 +5099,9 @@ var Repository129 = class {
5065
5099
  // src/modules/user/vehicles.ts
5066
5100
  var vehicles_exports = {};
5067
5101
  __export(vehicles_exports, {
5068
- default: () => Repository130
5102
+ default: () => Repository131
5069
5103
  });
5070
- var Repository130 = class {
5104
+ var Repository131 = class {
5071
5105
  route;
5072
5106
  api;
5073
5107
  constructor({ api, route }) {
@@ -5105,9 +5139,9 @@ var Repository130 = class {
5105
5139
  // src/modules/view/adminPanel.ts
5106
5140
  var adminPanel_exports = {};
5107
5141
  __export(adminPanel_exports, {
5108
- default: () => Repository131
5142
+ default: () => Repository132
5109
5143
  });
5110
- var Repository131 = class {
5144
+ var Repository132 = class {
5111
5145
  route;
5112
5146
  api;
5113
5147
  constructor({ api, route }) {
@@ -5126,9 +5160,9 @@ var Repository131 = class {
5126
5160
  // src/modules/view/errorLog.ts
5127
5161
  var errorLog_exports = {};
5128
5162
  __export(errorLog_exports, {
5129
- default: () => Repository132
5163
+ default: () => Repository133
5130
5164
  });
5131
- var Repository132 = class {
5165
+ var Repository133 = class {
5132
5166
  route;
5133
5167
  api;
5134
5168
  constructor({ api, route }) {
@@ -5153,7 +5187,6 @@ var Repository132 = class {
5153
5187
  // src/modules/view/webSocket.ts
5154
5188
  var CLOSE_AUTH_REJECTED = 4401;
5155
5189
  var CLOSE_AUTH_UNAVAILABLE = 4503;
5156
- var MAX_AUTH_RETRIES = 3;
5157
5190
  var PING_INTERVAL_MS = 25e3;
5158
5191
  var MAX_BACKOFF_MS = 3e4;
5159
5192
  var BASE_BACKOFF_MS = 1e3;
@@ -5167,7 +5200,6 @@ var Service = class {
5167
5200
  }
5168
5201
  openSocket({
5169
5202
  token,
5170
- onAuthRejected,
5171
5203
  channel,
5172
5204
  onEvent,
5173
5205
  onOpen,
@@ -5177,15 +5209,11 @@ var Service = class {
5177
5209
  }) {
5178
5210
  let ws = null;
5179
5211
  let attempts = 0;
5180
- let authRejections = 0;
5181
5212
  let opensSoFar = 0;
5182
5213
  let pingTimer = null;
5183
5214
  let reconnectTimer = null;
5184
5215
  let closedByCaller = false;
5185
- const subprotocols = () => {
5186
- const current = typeof token === "function" ? token() : token;
5187
- return channel ? [`bearer.${current}`, `channel.${channel}`] : [`bearer.${current}`];
5188
- };
5216
+ const subprotocols = channel ? [`bearer.${token}`, `channel.${channel}`] : [`bearer.${token}`];
5189
5217
  const stopPing = () => {
5190
5218
  if (pingTimer !== null) {
5191
5219
  window.clearInterval(pingTimer);
@@ -5216,7 +5244,7 @@ var Service = class {
5216
5244
  const connect = () => {
5217
5245
  if (closedByCaller) return;
5218
5246
  try {
5219
- ws = new WebSocket(this.route, subprotocols());
5247
+ ws = new WebSocket(this.route, subprotocols);
5220
5248
  } catch (err) {
5221
5249
  console.error("WebSocket constructor threw", err);
5222
5250
  scheduleReconnect();
@@ -5224,7 +5252,6 @@ var Service = class {
5224
5252
  }
5225
5253
  ws.onopen = () => {
5226
5254
  attempts = 0;
5227
- authRejections = 0;
5228
5255
  opensSoFar += 1;
5229
5256
  startPing();
5230
5257
  if (opensSoFar === 1) {
@@ -5261,13 +5288,6 @@ var Service = class {
5261
5288
  ws = null;
5262
5289
  onClose?.();
5263
5290
  if (e.code === CLOSE_AUTH_REJECTED) {
5264
- if (typeof token === "function" && authRejections < MAX_AUTH_RETRIES) {
5265
- authRejections += 1;
5266
- void Promise.resolve().then(() => onAuthRejected?.()).catch((err) => {
5267
- console.warn("WebSocket onAuthRejected failed", err);
5268
- }).finally(scheduleReconnect);
5269
- return;
5270
- }
5271
5291
  console.error("WebSocket auth rejected by server, not reconnecting");
5272
5292
  closedByCaller = true;
5273
5293
  return;
@@ -5331,6 +5351,7 @@ var API = class {
5331
5351
  GoogleSheets;
5332
5352
  Language;
5333
5353
  Location;
5354
+ OnlineStore;
5334
5355
  Multimedia;
5335
5356
  Observation;
5336
5357
  Password;
@@ -5487,26 +5508,26 @@ var API = class {
5487
5508
  route: `${this.services[service]}${module2}/`
5488
5509
  });
5489
5510
  this.WebSocket = new Service(getModuleParams("view", "ws"));
5490
- this.BankData = new Repository102(
5511
+ this.BankData = new Repository103(
5491
5512
  getModuleParams("users", Nomalism.BankData.Route)
5492
5513
  );
5493
- this.Client = new Repository104(
5514
+ this.Client = new Repository105(
5494
5515
  getModuleParams("users", Nomalism.Client.Route)
5495
5516
  );
5496
- this.ClientType = new Repository105(
5517
+ this.ClientType = new Repository106(
5497
5518
  getModuleParams("users", Nomalism.ClientType.Route)
5498
5519
  );
5499
5520
  this.Chat = new Repository41(getModuleParams("stock", Nomalism.Chat.Route));
5500
- this.Commissioner = new Repository106(
5521
+ this.Commissioner = new Repository107(
5501
5522
  getModuleParams("users", Nomalism.Commissioner.Route)
5502
5523
  );
5503
- this.Country = new Repository107(
5524
+ this.Country = new Repository108(
5504
5525
  getModuleParams("users", Nomalism.Country.Route)
5505
5526
  );
5506
- this.DocumentHeader = new Repository71(
5527
+ this.DocumentHeader = new Repository72(
5507
5528
  getModuleParams("stock", Nomalism.DocumentHeader.Route)
5508
5529
  );
5509
- this.DocumentHeaderHistory = new Repository72(
5530
+ this.DocumentHeaderHistory = new Repository73(
5510
5531
  getModuleParams("stock", Nomalism.DocumentHeaderHistory.Route)
5511
5532
  );
5512
5533
  this.BillOfLading = new Repository(
@@ -5527,124 +5548,127 @@ var API = class {
5527
5548
  this.ProviderServiceInvoice = new Repository15(
5528
5549
  getModuleParams("stock", Nomalism.ProviderServiceInvoice.Route)
5529
5550
  );
5530
- this.DocumentLine = new Repository75(
5551
+ this.DocumentLine = new Repository76(
5531
5552
  getModuleParams("stock", Nomalism.DocumentLine.Route)
5532
5553
  );
5533
- this.DocumentLineAssoc = new Repository76(
5554
+ this.DocumentLineAssoc = new Repository77(
5534
5555
  getModuleParams("stock", Nomalism.DocumentLineAssoc.Route)
5535
5556
  );
5536
- this.DocumentType = new Repository81(
5557
+ this.DocumentType = new Repository82(
5537
5558
  getModuleParams("stock", Nomalism.DocumentType.Route)
5538
5559
  );
5539
- this.Favorites = new Repository109(
5560
+ this.Favorites = new Repository110(
5540
5561
  getModuleParams("users", Nomalism.Favorites.Route)
5541
5562
  );
5542
5563
  this.File = new Repository46(getModuleParams("stock", Nomalism.File.Route));
5543
5564
  this.GoogleSheets = new Repository27(
5544
5565
  getModuleParams("integration", Nomalism.GoogleSheets.Route)
5545
5566
  );
5546
- this.Language = new Repository110(
5567
+ this.Language = new Repository111(
5547
5568
  getModuleParams("users", Nomalism.Language.Route)
5548
5569
  );
5549
5570
  this.Location = new Repository49(
5550
5571
  getModuleParams("stock", Nomalism.Location.Route)
5551
5572
  );
5573
+ this.OnlineStore = new Repository50(
5574
+ getModuleParams("stock", Nomalism.OnlineStore.Route)
5575
+ );
5552
5576
  this.Multimedia = new Repository21(
5553
5577
  getModuleParams("documents", Nomalism.Multimedia.Route)
5554
5578
  );
5555
5579
  this.Observation = new Repository28(
5556
5580
  getModuleParams("integration", Nomalism.Observation.Route)
5557
5581
  );
5558
- this.Password = new Repository112(
5582
+ this.Password = new Repository113(
5559
5583
  getModuleParams("users", Nomalism.Password.Route)
5560
5584
  );
5561
- this.ProductImage = new Repository53(
5585
+ this.ProductImage = new Repository54(
5562
5586
  getModuleParams("stock", Nomalism.ProductImage.Route)
5563
5587
  );
5564
- this.Promotion = new Repository56(
5588
+ this.Promotion = new Repository57(
5565
5589
  getModuleParams("stock", Nomalism.Promotion.Route)
5566
5590
  );
5567
- this.Providers = new Repository116(
5591
+ this.Providers = new Repository117(
5568
5592
  getModuleParams("users", Nomalism.Providers.Route)
5569
5593
  );
5570
- this.ProviderType = new Repository117(
5594
+ this.ProviderType = new Repository118(
5571
5595
  getModuleParams("users", Nomalism.ProviderType.Route)
5572
5596
  );
5573
- this.PurchaseConditions = new Repository118(
5597
+ this.PurchaseConditions = new Repository119(
5574
5598
  getModuleParams("users", Nomalism.PurchaseConditions.Route)
5575
5599
  );
5576
- this.ReasonForExemption = new Repository119(
5600
+ this.ReasonForExemption = new Repository120(
5577
5601
  getModuleParams("users", Nomalism.ReasonForExemption.Route)
5578
5602
  );
5579
- this.RefreshToken = new Repository120(
5603
+ this.RefreshToken = new Repository121(
5580
5604
  getModuleParams("users", Nomalism.RefreshToken.Route)
5581
5605
  );
5582
- this.SegmentsArea = new Repository121(
5606
+ this.SegmentsArea = new Repository122(
5583
5607
  getModuleParams("users", Nomalism.SegmentsArea.Route)
5584
5608
  );
5585
- this.Sessions = new Repository122(
5609
+ this.Sessions = new Repository123(
5586
5610
  getModuleParams("users", Nomalism.Sessions.Route)
5587
5611
  );
5588
- this.Shippings = new Repository123(
5612
+ this.Shippings = new Repository124(
5589
5613
  getModuleParams("users", Nomalism.Shippings.Route)
5590
5614
  );
5591
- this.StoreOperator = new Repository124(
5615
+ this.StoreOperator = new Repository125(
5592
5616
  getModuleParams("users", Nomalism.StoreOperator.Route)
5593
5617
  );
5594
- this.Plugin = new Repository115(
5618
+ this.Plugin = new Repository116(
5595
5619
  getModuleParams("users", Nomalism.Plugin.Route)
5596
5620
  );
5597
- this.SystemModule = new Repository126(
5621
+ this.SystemModule = new Repository127(
5598
5622
  getModuleParams("users", Nomalism.SystemModule.Route)
5599
5623
  );
5600
- this.Swift = new Repository125(getModuleParams("users", Nomalism.Swift.Route));
5601
- this.UnitOfMeasure = new Repository67(
5624
+ this.Swift = new Repository126(getModuleParams("users", Nomalism.Swift.Route));
5625
+ this.UnitOfMeasure = new Repository68(
5602
5626
  getModuleParams("stock", Nomalism.UnitOfMeasure.Route)
5603
5627
  );
5604
- this.Users = new Repository129(getModuleParams("users", Nomalism.Users.Route));
5605
- this.VatTax = new Repository68(
5628
+ this.Users = new Repository130(getModuleParams("users", Nomalism.Users.Route));
5629
+ this.VatTax = new Repository69(
5606
5630
  getModuleParams("stock", Nomalism.VatTax.Route)
5607
5631
  );
5608
- this.VatTaxZone = new Repository69(
5632
+ this.VatTaxZone = new Repository70(
5609
5633
  getModuleParams("stock", Nomalism.VatTaxZone.Route)
5610
5634
  );
5611
- this.DeliveryMethods = new Repository108(
5635
+ this.DeliveryMethods = new Repository109(
5612
5636
  getModuleParams("users", Nomalism.DeliveryMethods.Route)
5613
5637
  );
5614
- this.MaturityDates = new Repository111(
5638
+ this.MaturityDates = new Repository112(
5615
5639
  getModuleParams("users", Nomalism.MaturityDates.Route)
5616
5640
  );
5617
- this.PaymentMethods = new Repository113(
5641
+ this.PaymentMethods = new Repository114(
5618
5642
  getModuleParams("users", Nomalism.PaymentMethods.Route)
5619
5643
  );
5620
- this.Vehicles = new Repository130(
5644
+ this.Vehicles = new Repository131(
5621
5645
  getModuleParams("users", Nomalism.Vehicles.Route)
5622
5646
  );
5623
- this.DocumentSet = new Repository80(
5647
+ this.DocumentSet = new Repository81(
5624
5648
  getModuleParams("stock", Nomalism.DocumentSet.Route)
5625
5649
  );
5626
- this.Payment = new Repository85(
5650
+ this.Payment = new Repository86(
5627
5651
  getModuleParams("stock", Nomalism.Payment.Route)
5628
5652
  );
5629
- this.ExternalDocumentHeader = new Repository82(
5653
+ this.ExternalDocumentHeader = new Repository83(
5630
5654
  getModuleParams("stock", Nomalism.ExternalDocumentHeader.Route)
5631
5655
  );
5632
- this.VatValidation = new Repository91(
5656
+ this.VatValidation = new Repository92(
5633
5657
  getModuleParams("stock", Nomalism.VatValidation.Route)
5634
5658
  );
5635
- this.StockMovement = new Repository63(
5659
+ this.StockMovement = new Repository64(
5636
5660
  getModuleParams("stock", Nomalism.StockMovement.Route)
5637
5661
  );
5638
- this.Tenant = new Repository127(
5662
+ this.Tenant = new Repository128(
5639
5663
  getModuleParams("users", Nomalism.Tenant.Route)
5640
5664
  );
5641
- this.PreSale = new Repository87(
5665
+ this.PreSale = new Repository88(
5642
5666
  getModuleParams("stock", Nomalism.PreSale.Route)
5643
5667
  );
5644
- this.PreSaleProduct = new Repository88(
5668
+ this.PreSaleProduct = new Repository89(
5645
5669
  getModuleParams("stock", Nomalism.PreSaleProduct.Route)
5646
5670
  );
5647
- this.OrderManagement = new Repository84(
5671
+ this.OrderManagement = new Repository85(
5648
5672
  getModuleParams("stock", Nomalism.OrderManagement.Route)
5649
5673
  );
5650
5674
  this.Npc = new Repository34(getModuleParams("print", Nomalism.Npc.Route));
@@ -5654,16 +5678,16 @@ var API = class {
5654
5678
  this.SchedulePrintJob = new Repository36(
5655
5679
  getModuleParams("print", Nomalism.SchedulePrintJob.Route)
5656
5680
  );
5657
- this.QueryList = new Repository57(
5681
+ this.QueryList = new Repository58(
5658
5682
  getModuleParams("stock", Nomalism.QueryList.Route)
5659
5683
  );
5660
- this.ReturnReason = new Repository59(
5684
+ this.ReturnReason = new Repository60(
5661
5685
  getModuleParams("stock", Nomalism.ReturnReason.Route)
5662
5686
  );
5663
5687
  this.PropostaBuilder = new Repository9(
5664
5688
  getModuleParams("stock", Nomalism.PropostaBuilder.Route)
5665
5689
  );
5666
- this.PriceTable = new Repository50(
5690
+ this.PriceTable = new Repository51(
5667
5691
  getModuleParams("stock", Nomalism.PriceTable.Route)
5668
5692
  );
5669
5693
  this.PropostaMigration = new Repository11(
@@ -5672,7 +5696,7 @@ var API = class {
5672
5696
  this.PropostaSheets = new Repository12(
5673
5697
  getModuleParams("stock", Nomalism.PropostaSheets.Route)
5674
5698
  );
5675
- this.Schedule = new Repository62(
5699
+ this.Schedule = new Repository63(
5676
5700
  getModuleParams("stock", Nomalism.Schedule.Route)
5677
5701
  );
5678
5702
  this.GoogleFilePermission = new Repository26(
@@ -5681,21 +5705,21 @@ var API = class {
5681
5705
  this.Settings = new Repository32(
5682
5706
  getModuleParams("integration", Nomalism.Settings.Route)
5683
5707
  );
5684
- this.Tickets = new Repository95(
5708
+ this.Tickets = new Repository96(
5685
5709
  getModuleParams("tickets", Nomalism.Tickets.Route)
5686
5710
  );
5687
- this.Channel = new Repository92(
5711
+ this.Channel = new Repository93(
5688
5712
  getModuleParams("tickets", Nomalism.Channel.Route)
5689
5713
  );
5690
- this.TicketsLanguage = new Repository94(
5714
+ this.TicketsLanguage = new Repository95(
5691
5715
  getModuleParams("tickets", Nomalism.TicketsLanguage.Route)
5692
5716
  );
5693
- this.Tts = new Repository96(getModuleParams("tickets", Nomalism.Tts.Route));
5694
- this.Clt = new Repository93(getModuleParams("tickets", Nomalism.CLT.Route));
5695
- this.StartDocumentHeaderLastUpdate = new Repository90(
5717
+ this.Tts = new Repository97(getModuleParams("tickets", Nomalism.Tts.Route));
5718
+ this.Clt = new Repository94(getModuleParams("tickets", Nomalism.CLT.Route));
5719
+ this.StartDocumentHeaderLastUpdate = new Repository91(
5696
5720
  getModuleParams("stock", Nomalism.StartDocumentHeaderLastUpdate.Route)
5697
5721
  );
5698
- this.Persona = new Repository114(
5722
+ this.Persona = new Repository115(
5699
5723
  getModuleParams("users", Nomalism.Persona.Route)
5700
5724
  );
5701
5725
  this.PersonaMerge = new Repository30(
@@ -5717,13 +5741,13 @@ var API = class {
5717
5741
  this.UpfrontReturn = new Repository20(
5718
5742
  getModuleParams("stock", Nomalism.UpfrontReturn.Route)
5719
5743
  );
5720
- this.SavedEmPicking = new Repository60(
5744
+ this.SavedEmPicking = new Repository61(
5721
5745
  getModuleParams("stock", Nomalism.SavedEmPicking.Route)
5722
5746
  );
5723
5747
  this.EmailTemplate = new Repository23(
5724
5748
  getModuleParams("integration", Nomalism.EmailTemplate.Route)
5725
5749
  );
5726
- this.Prison = new Repository51(
5750
+ this.Prison = new Repository52(
5727
5751
  getModuleParams("stock", Nomalism.Prison.Route)
5728
5752
  );
5729
5753
  this.Quebra = new Repository17(
@@ -5744,57 +5768,57 @@ var API = class {
5744
5768
  this.EuPago = new Repository25(
5745
5769
  getModuleParams("integration", Nomalism.EuPago.Route)
5746
5770
  );
5747
- this.DocumentLineNote = new Repository78(
5771
+ this.DocumentLineNote = new Repository79(
5748
5772
  getModuleParams("stock", Nomalism.DocumentLineNote.Route)
5749
5773
  );
5750
- this.SavedProviderProposal = new Repository61(
5774
+ this.SavedProviderProposal = new Repository62(
5751
5775
  getModuleParams("stock", Nomalism.SavedProviderProposal.Route)
5752
5776
  );
5753
- this.ProductGoogleSheets = new Repository52(
5777
+ this.ProductGoogleSheets = new Repository53(
5754
5778
  getModuleParams("stock", Nomalism.ProductGoogleSheets.Route)
5755
5779
  );
5756
- this.Task = new Repository65(getModuleParams("stock", Nomalism.Task.Route));
5757
- this.TaskMessage = new Repository66(
5780
+ this.Task = new Repository66(getModuleParams("stock", Nomalism.Task.Route));
5781
+ this.TaskMessage = new Repository67(
5758
5782
  getModuleParams("stock", Nomalism.TaskMessage.Route)
5759
5783
  );
5760
- this.RecurrentTasks = new Repository58(
5784
+ this.RecurrentTasks = new Repository59(
5761
5785
  getModuleParams("stock", Nomalism.RecurrentTasks.Route)
5762
5786
  );
5763
- this.Theme = new Repository128(getModuleParams("users", Nomalism.Theme.Route));
5787
+ this.Theme = new Repository129(getModuleParams("users", Nomalism.Theme.Route));
5764
5788
  this.Dashboard = new Repository43(
5765
5789
  getModuleParams("stock", Nomalism.Dashboard.Route)
5766
5790
  );
5767
5791
  this.ChatRapidMessage = new Repository42(
5768
5792
  getModuleParams("stock", Nomalism.ChatRapidMessage.Route)
5769
5793
  );
5770
- this.SideMenu = new Repository98(
5794
+ this.SideMenu = new Repository99(
5771
5795
  getModuleParams("stock", Nomalism.SideMenu.Route)
5772
5796
  );
5773
- this.SidemenuHighlight = new Repository99(
5797
+ this.SidemenuHighlight = new Repository100(
5774
5798
  getModuleParams("stock", Nomalism.SidemenuHighlight.Route)
5775
5799
  );
5776
- this.StoreOperatorSaftLock = new Repository100(
5800
+ this.StoreOperatorSaftLock = new Repository101(
5777
5801
  getModuleParams("stock", Nomalism.StoreOperatorSaftLock.Route)
5778
5802
  );
5779
- this.TenantSaftLock = new Repository101(
5803
+ this.TenantSaftLock = new Repository102(
5780
5804
  getModuleParams("stock", Nomalism.TenantSaftLock.Route)
5781
5805
  );
5782
- this.ErrorLog = new Repository132(
5806
+ this.ErrorLog = new Repository133(
5783
5807
  getModuleParams("view", Nomalism.ErrorLog.Route)
5784
5808
  );
5785
- this.AdminPanel = new Repository131(
5809
+ this.AdminPanel = new Repository132(
5786
5810
  getModuleParams("view", Nomalism.AdminPanel.Route)
5787
5811
  );
5788
- this.DocumentLineRm = new Repository79(
5812
+ this.DocumentLineRm = new Repository80(
5789
5813
  getModuleParams("stock", Nomalism.DocumentLineRm.Route)
5790
5814
  );
5791
- this.DocumentLineMt = new Repository77(
5815
+ this.DocumentLineMt = new Repository78(
5792
5816
  getModuleParams("stock", Nomalism.DocumentLineMt.Route)
5793
5817
  );
5794
- this.ChatSubscriber = new Repository103(
5818
+ this.ChatSubscriber = new Repository104(
5795
5819
  getModuleParams("users", Nomalism.ChatSubscriber.Route)
5796
5820
  );
5797
- this.Tag = new Repository64(getModuleParams("stock", Nomalism.Tag.Route));
5821
+ this.Tag = new Repository65(getModuleParams("stock", Nomalism.Tag.Route));
5798
5822
  this.Gmails = new Repository47(
5799
5823
  getModuleParams("stock", Nomalism.Gmails.Route)
5800
5824
  );
@@ -5803,20 +5827,20 @@ var API = class {
5803
5827
  );
5804
5828
  this.NPF = new Repository5(getModuleParams("stock", Nomalism.NPF.Route));
5805
5829
  this.NRCL = new Repository6(getModuleParams("stock", Nomalism.NRCL.Route));
5806
- this.PaymentBatch = new Repository86(
5830
+ this.PaymentBatch = new Repository87(
5807
5831
  getModuleParams("stock", Nomalism.PaymentBatch.Route)
5808
5832
  );
5809
- this.CurrentAccount = new Repository70(
5833
+ this.CurrentAccount = new Repository71(
5810
5834
  getModuleParams("stock", Nomalism.CurrentAccount.Route)
5811
5835
  );
5812
- this.Portal = new Repository97(
5836
+ this.Portal = new Repository98(
5813
5837
  getModuleParams("stock", Nomalism.Portal.Route)
5814
5838
  );
5815
- this.Saft = new Repository89(getModuleParams("stock", "saft"));
5839
+ this.Saft = new Repository90(getModuleParams("stock", "saft"));
5816
5840
  this.AccountCode = new Repository40(
5817
5841
  getModuleParams("stock", "account_code")
5818
5842
  );
5819
- this.GoogleSheetPool = new Repository83(
5843
+ this.GoogleSheetPool = new Repository84(
5820
5844
  getModuleParams("stock", Nomalism.GoogleSheetPool.Route)
5821
5845
  );
5822
5846
  this.AccountCode = new Repository40(
@@ -5826,16 +5850,16 @@ var API = class {
5826
5850
  this.PatchNotes = new Repository29(
5827
5851
  getModuleParams("integration", Nomalism.PatchNotes.Route)
5828
5852
  );
5829
- this.DocumentHeaderSurvey = new Repository74(
5853
+ this.DocumentHeaderSurvey = new Repository75(
5830
5854
  getModuleParams("stock", Nomalism.DocumentHeaderSurvey.Route)
5831
5855
  );
5832
- this.DocumentHeaderSubscriber = new Repository73(
5856
+ this.DocumentHeaderSubscriber = new Repository74(
5833
5857
  getModuleParams("stock", Nomalism.DocumentHeaderSubscriber.Route)
5834
5858
  );
5835
5859
  this.GoogleCalendar = new Repository48(
5836
5860
  getModuleParams("stock", Nomalism.GoogleCalendar.Route)
5837
5861
  );
5838
- this.ProductLocation = new Repository54(
5862
+ this.ProductLocation = new Repository55(
5839
5863
  getModuleParams("stock", Nomalism.ProductLocation.Route)
5840
5864
  );
5841
5865
  this.TimeSheet = new TimesheetRepository(
@@ -5856,7 +5880,7 @@ var API = class {
5856
5880
  this.DisplayLabels = new Repository44(
5857
5881
  getModuleParams("stock", Nomalism.DisplayLabel.Route)
5858
5882
  );
5859
- this.ProductUpdate = new Repository55(
5883
+ this.ProductUpdate = new Repository56(
5860
5884
  getModuleParams("stock", Nomalism.ProductUpdate.Route)
5861
5885
  );
5862
5886
  }