@zauru-sdk/services 1.0.32 → 1.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/common.d.ts +55 -0
  3. package/dist/common.js +222 -0
  4. package/dist/index.d.ts +34 -34
  5. package/dist/index.js +34 -34
  6. package/dist/sessions/sessions.d.ts +2 -0
  7. package/dist/sessions/sessions.js +13 -0
  8. package/dist/sessions/upstash.d.ts +1 -0
  9. package/dist/sessions/upstash.js +52 -0
  10. package/dist/zauru/httpGraphQL.d.ts +2 -0
  11. package/dist/zauru/httpGraphQL.js +37 -0
  12. package/dist/zauru/httpOauth.d.ts +2 -0
  13. package/dist/zauru/httpOauth.js +37 -0
  14. package/dist/zauru/httpZauru.d.ts +2 -0
  15. package/dist/zauru/httpZauru.js +37 -0
  16. package/dist/zauru/zauru-agencies.d.ts +8 -0
  17. package/dist/zauru/zauru-agencies.js +20 -0
  18. package/dist/zauru/zauru-automatic-numbers.d.ts +8 -0
  19. package/dist/zauru/zauru-automatic-numbers.js +21 -0
  20. package/dist/zauru/zauru-bookings.d.ts +28 -0
  21. package/dist/zauru/zauru-bookings.js +80 -0
  22. package/dist/zauru/zauru-bundles.d.ts +28 -0
  23. package/dist/zauru/zauru-bundles.js +93 -0
  24. package/dist/zauru/zauru-cases.d.ts +6 -0
  25. package/dist/zauru/zauru-cases.js +23 -0
  26. package/dist/zauru/zauru-consolidated.d.ts +36 -0
  27. package/dist/zauru/zauru-consolidated.js +71 -0
  28. package/dist/zauru/zauru-currencies.d.ts +6 -0
  29. package/dist/zauru/zauru-currencies.js +20 -0
  30. package/dist/zauru/zauru-deliveries.d.ts +22 -0
  31. package/dist/zauru/zauru-deliveries.js +44 -0
  32. package/dist/zauru/zauru-discharges.d.ts +26 -0
  33. package/dist/zauru/zauru-discharges.js +46 -0
  34. package/dist/zauru/zauru-employees.d.ts +6 -0
  35. package/dist/zauru/zauru-employees.js +23 -0
  36. package/dist/zauru/zauru-forms.d.ts +96 -0
  37. package/dist/zauru/zauru-forms.js +343 -0
  38. package/dist/zauru/zauru-invoices.d.ts +26 -0
  39. package/dist/zauru/zauru-invoices.js +94 -0
  40. package/dist/zauru/zauru-items.d.ts +97 -0
  41. package/dist/zauru/zauru-items.js +272 -0
  42. package/dist/zauru/zauru-lote-record.d.ts +8 -0
  43. package/dist/zauru/zauru-lote-record.js +26 -0
  44. package/dist/zauru/zauru-lotes.d.ts +111 -0
  45. package/dist/zauru/zauru-lotes.js +294 -0
  46. package/dist/zauru/zauru-motivos-rechazo.d.ts +9 -0
  47. package/dist/zauru/zauru-motivos-rechazo.js +49 -0
  48. package/dist/zauru/zauru-payees.d.ts +97 -0
  49. package/dist/zauru/zauru-payees.js +227 -0
  50. package/dist/zauru/zauru-payment-terms.d.ts +20 -0
  51. package/dist/zauru/zauru-payment-terms.js +65 -0
  52. package/dist/zauru/zauru-price-lists.d.ts +22 -0
  53. package/dist/zauru/zauru-price-lists.js +40 -0
  54. package/dist/zauru/zauru-profiles.d.ts +28 -0
  55. package/dist/zauru/zauru-profiles.js +69 -0
  56. package/dist/zauru/zauru-purchase-orders.d.ts +160 -0
  57. package/dist/zauru/zauru-purchase-orders.js +414 -0
  58. package/dist/zauru/zauru-receptions.d.ts +33 -0
  59. package/dist/zauru/zauru-receptions.js +94 -0
  60. package/dist/zauru/zauru-shipments.d.ts +20 -0
  61. package/dist/zauru/zauru-shipments.js +53 -0
  62. package/dist/zauru/zauru-suggested-prices.d.ts +31 -0
  63. package/dist/zauru/zauru-suggested-prices.js +84 -0
  64. package/dist/zauru/zauru-tags.d.ts +7 -0
  65. package/dist/zauru/zauru-tags.js +13 -0
  66. package/dist/zauru/zauru-templates.d.ts +7 -0
  67. package/dist/zauru/zauru-templates.js +15 -0
  68. package/dist/zauru/zauru-variables.d.ts +14 -0
  69. package/dist/zauru/zauru-variables.js +48 -0
  70. package/dist/zauru/zauru-web-app-tables.d.ts +55 -0
  71. package/dist/zauru/zauru-web-app-tables.js +154 -0
  72. package/package.json +5 -5
  73. package/src/{common.server.ts → common.ts} +4 -4
  74. package/src/index.ts +34 -34
  75. package/src/sessions/{sessions.server.ts → sessions.ts} +1 -1
  76. package/src/zauru/{zauru-agencies.server.ts → zauru-agencies.ts} +2 -2
  77. package/src/zauru/{zauru-automatic-numbers.server.ts → zauru-automatic-numbers.ts} +1 -1
  78. package/src/zauru/{zauru-bookings.server.ts → zauru-bookings.ts} +3 -3
  79. package/src/zauru/{zauru-bundles.server.ts → zauru-bundles.ts} +3 -3
  80. package/src/zauru/{zauru-cases.server.ts → zauru-cases.ts} +2 -2
  81. package/src/zauru/{zauru-consolidated.server.ts → zauru-consolidated.ts} +3 -3
  82. package/src/zauru/{zauru-currencies.server.ts → zauru-currencies.ts} +2 -2
  83. package/src/zauru/{zauru-deliveries.server.ts → zauru-deliveries.ts} +1 -1
  84. package/src/zauru/{zauru-discharges.server.ts → zauru-discharges.ts} +2 -2
  85. package/src/zauru/{zauru-employees.server.ts → zauru-employees.ts} +2 -2
  86. package/src/zauru/{zauru-forms.server.ts → zauru-forms.ts} +3 -3
  87. package/src/zauru/{zauru-invoices.server.ts → zauru-invoices.ts} +3 -3
  88. package/src/zauru/{zauru-items.server.ts → zauru-items.ts} +3 -3
  89. package/src/zauru/{zauru-lote-record.server.ts → zauru-lote-record.ts} +2 -2
  90. package/src/zauru/{zauru-lotes.server.ts → zauru-lotes.ts} +5 -5
  91. package/src/zauru/{zauru-motivos-rechazo.server.ts → zauru-motivos-rechazo.ts} +2 -2
  92. package/src/zauru/{zauru-payees.server.ts → zauru-payees.ts} +3 -3
  93. package/src/zauru/{zauru-payment-terms.server.ts → zauru-payment-terms.ts} +3 -3
  94. package/src/zauru/{zauru-price-lists.server.ts → zauru-price-lists.ts} +1 -1
  95. package/src/zauru/{zauru-profiles.server.ts → zauru-profiles.ts} +2 -2
  96. package/src/zauru/{zauru-purchase-orders.server.ts → zauru-purchase-orders.ts} +4 -4
  97. package/src/zauru/{zauru-receptions.server.ts → zauru-receptions.ts} +1 -1
  98. package/src/zauru/{zauru-shipments.server.ts → zauru-shipments.ts} +3 -3
  99. package/src/zauru/{zauru-suggested-prices.server.ts → zauru-suggested-prices.ts} +3 -3
  100. package/src/zauru/{zauru-tags.server.ts → zauru-tags.ts} +1 -1
  101. package/src/zauru/{zauru-templates.server.ts → zauru-templates.ts} +1 -1
  102. package/src/zauru/{zauru-variables.server.ts → zauru-variables.ts} +1 -1
  103. package/src/zauru/{zauru-web-app-tables.server.ts → zauru-web-app-tables.ts} +3 -3
  104. /package/src/sessions/{upstash.server.ts → upstash.ts} +0 -0
  105. /package/src/zauru/{httpGraphQL.server.ts → httpGraphQL.ts} +0 -0
  106. /package/src/zauru/{httpOauth.server.ts → httpOauth.ts} +0 -0
  107. /package/src/zauru/{httpZauru.server.ts → httpZauru.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  import type { Session } from "@remix-run/node";
2
2
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
3
3
  import { AxiosUtilsResponse, EmployeeGraphQL } from "@zauru-sdk/types";
4
- import { getGraphQLAPIHeaders } from "../common.server.js";
5
- import httpGraphQLAPI from "./httpGraphQL.server.js";
4
+ import { getGraphQLAPIHeaders } from "../common.js";
5
+ import httpGraphQLAPI from "./httpGraphQL.js";
6
6
  import { getEmployeesByAgencyIdStringQuery } from "@zauru-sdk/graphql";
7
7
 
8
8
  /**
@@ -12,8 +12,8 @@ import {
12
12
  SubmissionCasesGraphQL,
13
13
  SubmissionInvoicesGraphQL,
14
14
  } from "@zauru-sdk/types";
15
- import { getGraphQLAPIHeaders } from "../common.server.js";
16
- import httpGraphQLAPI from "./httpGraphQL.server.js";
15
+ import { getGraphQLAPIHeaders } from "../common.js";
16
+ import httpGraphQLAPI from "./httpGraphQL.js";
17
17
  import {
18
18
  getFormByNameStringQuery,
19
19
  getFormSubmissionByIdStringQuery,
@@ -24,7 +24,7 @@ import {
24
24
  getLastInvoiceFormSubmissionStringQuery,
25
25
  getMyCaseFormSubmissionsStringQuery,
26
26
  } from "@zauru-sdk/graphql";
27
- import httpZauru from "./httpZauru.server.js";
27
+ import httpZauru from "./httpZauru.js";
28
28
 
29
29
  /**
30
30
  * getForms
@@ -5,10 +5,10 @@ import {
5
5
  InvoiceGraphQL,
6
6
  SubmissionInvoicesGraphQL,
7
7
  } from "@zauru-sdk/types";
8
- import { getGraphQLAPIHeaders } from "../common.server.js";
9
- import httpGraphQLAPI from "./httpGraphQL.server.js";
8
+ import { getGraphQLAPIHeaders } from "../common.js";
9
+ import httpGraphQLAPI from "./httpGraphQL.js";
10
10
  import { getInvoicesByAgencyIdStringQuery } from "@zauru-sdk/graphql";
11
- import httpZauru from "./httpZauru.server.js";
11
+ import httpZauru from "./httpZauru.js";
12
12
  /**
13
13
  * getInvoicesByAgencyId
14
14
  */
@@ -13,8 +13,8 @@ import {
13
13
  ResponseItemList,
14
14
  SearchItemParams,
15
15
  } from "@zauru-sdk/types";
16
- import { getGraphQLAPIHeaders } from "../common.server.js";
17
- import httpGraphQLAPI from "./httpGraphQL.server.js";
16
+ import { getGraphQLAPIHeaders } from "../common.js";
17
+ import httpGraphQLAPI from "./httpGraphQL.js";
18
18
  import {
19
19
  getItemByNameStringQuery,
20
20
  getItemCategoryByIdStringQuery,
@@ -23,7 +23,7 @@ import {
23
23
  getItemsStringQuery,
24
24
  getSuperCategoryByIdStringQuery,
25
25
  } from "@zauru-sdk/graphql";
26
- import httpZauru from "./httpZauru.server.js";
26
+ import httpZauru from "./httpZauru.js";
27
27
 
28
28
  //============================ FORMATEADO DE ITEMS
29
29
  function extractIdFromURL(input: string): number {
@@ -1,11 +1,11 @@
1
1
  import type { Session } from "@remix-run/node";
2
2
  import { LoteRecordBody, WebAppRowGraphQL } from "@zauru-sdk/types";
3
- import { getVariablesByName } from "../common.server.js";
3
+ import { getVariablesByName } from "../common.js";
4
4
  import {
5
5
  createWebAppTableRegister,
6
6
  deleteWebAppTableRegister,
7
7
  getWebAppTableRegisters,
8
- } from "./zauru-web-app-tables.server.js";
8
+ } from "./zauru-web-app-tables.js";
9
9
 
10
10
  export async function getLoteRecord(
11
11
  headers: any,
@@ -20,15 +20,15 @@ import {
20
20
  UpdateLoteBody,
21
21
  } from "@zauru-sdk/types";
22
22
  import moment from "moment";
23
- import { getGraphQLAPIHeaders, getVariablesByName } from "../common.server.js";
24
- import httpZauru from "./httpZauru.server.js";
25
- import { createLoteRecord } from "./zauru-lote-record.server.js";
26
- import httpGraphQLAPI from "./httpGraphQL.server.js";
23
+ import { getGraphQLAPIHeaders, getVariablesByName } from "../common.js";
24
+ import httpZauru from "./httpZauru.js";
25
+ import { createLoteRecord } from "./zauru-lote-record.js";
26
+ import httpGraphQLAPI from "./httpGraphQL.js";
27
27
  import {
28
28
  getLotStocksByAgencyIdStringQuery,
29
29
  getLotsByNameStringQuery,
30
30
  } from "@zauru-sdk/graphql";
31
- import { getDeliveriesDataTables } from "./zauru-deliveries.server.js";
31
+ import { getDeliveriesDataTables } from "./zauru-deliveries.js";
32
32
 
33
33
  /**
34
34
  * getBasketsLots
@@ -7,12 +7,12 @@ import {
7
7
  WebAppRowGraphQL,
8
8
  WebAppTableUpdateResponse,
9
9
  } from "@zauru-sdk/types";
10
- import { getVariablesByName } from "../common.server.js";
10
+ import { getVariablesByName } from "../common.js";
11
11
  import {
12
12
  createWebAppTableRegister,
13
13
  deleteWebAppTableRegister,
14
14
  getWebAppTableRegisters,
15
- } from "./zauru-web-app-tables.server.js";
15
+ } from "./zauru-web-app-tables.js";
16
16
 
17
17
  export async function getMotivosRechazo(
18
18
  headers: any,
@@ -5,8 +5,8 @@ import {
5
5
  PayeeCategoryGraphQL,
6
6
  PayeeGraphQL,
7
7
  } from "@zauru-sdk/types";
8
- import httpGraphQLAPI from "./httpGraphQL.server.js";
9
- import { getGraphQLAPIHeaders } from "../common.server.js";
8
+ import httpGraphQLAPI from "./httpGraphQL.js";
9
+ import { getGraphQLAPIHeaders } from "../common.js";
10
10
  import {
11
11
  getClientCategoriesStringQuery,
12
12
  getPayeeByIdStringQuery,
@@ -17,7 +17,7 @@ import {
17
17
  getProviderCategoriesStringQuery,
18
18
  getProvidersStringQuery,
19
19
  } from "@zauru-sdk/graphql";
20
- import httpZauru from "./httpZauru.server.js";
20
+ import httpZauru from "./httpZauru.js";
21
21
 
22
22
  /**
23
23
  * getPayees
@@ -1,13 +1,13 @@
1
1
  import type { Session } from "@remix-run/node";
2
2
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
3
3
  import { AxiosUtilsResponse, PaymentTermGraphQL } from "@zauru-sdk/types";
4
- import { getGraphQLAPIHeaders } from "../common.server.js";
5
- import httpGraphQLAPI from "./httpGraphQL.server.js";
4
+ import { getGraphQLAPIHeaders } from "../common.js";
5
+ import httpGraphQLAPI from "./httpGraphQL.js";
6
6
  import {
7
7
  getPaymentTermByIdStringQuery,
8
8
  getPaymentTermsStringQuery,
9
9
  } from "@zauru-sdk/graphql";
10
- import httpZauru from "./httpZauru.server.js";
10
+ import httpZauru from "./httpZauru.js";
11
11
 
12
12
  /**
13
13
  * getPaymentTerms
@@ -4,7 +4,7 @@ import {
4
4
  CreatePriceListBody,
5
5
  PriceListGraphQL,
6
6
  } from "@zauru-sdk/types";
7
- import httpZauru from "./httpZauru.server.js";
7
+ import httpZauru from "./httpZauru.js";
8
8
 
9
9
  /**
10
10
  * createPriceList
@@ -1,6 +1,6 @@
1
1
  import type { Session } from "@remix-run/node";
2
- import httpZauru from "./httpZauru.server.js";
3
- import httpOauth from "./httpOauth.server.js";
2
+ import httpZauru from "./httpZauru.js";
3
+ import httpOauth from "./httpOauth.js";
4
4
  import {
5
5
  AgencyGraphQL,
6
6
  EmployeeGraphQL,
@@ -22,10 +22,10 @@ import {
22
22
  import {
23
23
  createNewLotPurchaseOrderReception,
24
24
  createNewPurchaseOrderReception,
25
- } from "./zauru-receptions.server.js";
26
- import httpZauru from "./httpZauru.server.js";
27
- import { getGraphQLAPIHeaders, getVariablesByName } from "../common.server.js";
28
- import httpGraphQLAPI from "./httpGraphQL.server.js";
25
+ } from "./zauru-receptions.js";
26
+ import httpZauru from "./httpZauru.js";
27
+ import { getGraphQLAPIHeaders, getVariablesByName } from "../common.js";
28
+ import httpGraphQLAPI from "./httpGraphQL.js";
29
29
  import {
30
30
  getLast100ReceptionsStringQuery,
31
31
  getPurchaseOrderByIdNumberStringQuery,
@@ -9,7 +9,7 @@ import {
9
9
  NewReceptionBody,
10
10
  PurchaseOrderGraphQL,
11
11
  } from "@zauru-sdk/types";
12
- import httpZauru from "./httpZauru.server.js";
12
+ import httpZauru from "./httpZauru.js";
13
13
 
14
14
  /**
15
15
  * createNewReception
@@ -1,10 +1,10 @@
1
1
  import type { Session } from "@remix-run/node";
2
2
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
3
3
  import { AxiosUtilsResponse, ShipmentGraphQL } from "@zauru-sdk/types";
4
- import { getGraphQLAPIHeaders } from "../common.server.js";
5
- import httpGraphQLAPI from "./httpGraphQL.server.js";
4
+ import { getGraphQLAPIHeaders } from "../common.js";
5
+ import httpGraphQLAPI from "./httpGraphQL.js";
6
6
  import { getShipmentsByToAgencyLast100StringQuery } from "@zauru-sdk/graphql";
7
- import httpZauru from "./httpZauru.server.js";
7
+ import httpZauru from "./httpZauru.js";
8
8
 
9
9
  /**
10
10
  * getShipmentsByToAgencyLast100Id_booking
@@ -4,10 +4,10 @@ import {
4
4
  ItemWithPrices,
5
5
  SuggestedPriceGraphQL,
6
6
  } from "@zauru-sdk/types";
7
- import httpZauru from "./httpZauru.server.js";
7
+ import httpZauru from "./httpZauru.js";
8
8
  import { Session } from "@remix-run/node";
9
- import { getGraphQLAPIHeaders } from "../common.server.js";
10
- import httpGraphQLAPI from "./httpGraphQL.server.js";
9
+ import { getGraphQLAPIHeaders } from "../common.js";
10
+ import httpGraphQLAPI from "./httpGraphQL.js";
11
11
  import { getSuggestedPricesStringQuery } from "@zauru-sdk/graphql";
12
12
 
13
13
  /**
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { AxiosUtilsResponse, TagGraphQL } from "@zauru-sdk/types";
3
- import httpZauru from "./httpZauru.server.js";
3
+ import httpZauru from "./httpZauru.js";
4
4
 
5
5
  /**
6
6
  * createTag
@@ -1,6 +1,6 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { AxiosUtilsResponse } from "@zauru-sdk/types";
3
- import httpZauru from "./httpZauru.server.js";
3
+ import httpZauru from "./httpZauru.js";
4
4
 
5
5
  /**
6
6
  *
@@ -1,5 +1,5 @@
1
1
  import chalk from "chalk";
2
- import httpZauru from "./httpZauru.server.js";
2
+ import httpZauru from "./httpZauru.js";
3
3
  import { VariableGraphQL, AxiosUtilsResponse } from "@zauru-sdk/types";
4
4
 
5
5
  /**
@@ -10,13 +10,13 @@ import {
10
10
  WebAppTableGraphQL,
11
11
  WebAppTableUpdateResponse,
12
12
  } from "@zauru-sdk/types";
13
- import { getGraphQLAPIHeaders, getVariablesByName } from "../common.server.js";
14
- import httpGraphQLAPI from "./httpGraphQL.server.js";
13
+ import { getGraphQLAPIHeaders, getVariablesByName } from "../common.js";
14
+ import httpGraphQLAPI from "./httpGraphQL.js";
15
15
  import {
16
16
  getWebAppRowStringQuery,
17
17
  getWebAppRowsByWebAppTableIdStringQuery,
18
18
  } from "@zauru-sdk/graphql";
19
- import httpZauru from "./httpZauru.server.js";
19
+ import httpZauru from "./httpZauru.js";
20
20
 
21
21
  /**
22
22
  * getWebAppRow
File without changes
File without changes
File without changes