@nomalism-com/types 0.40.128 → 0.40.130

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
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  var main_exports = {};
9
9
  __export(main_exports, {
10
10
  AccountCode: () => interface_exports65,
11
- AccountCodeRoutes: () => route_schema_exports112,
11
+ AccountCodeRoutes: () => route_schema_exports111,
12
12
  AdminPanel: () => interfaces_exports54,
13
13
  BankData: () => interface_exports2,
14
14
  BankDataRoutes: () => route_schema_exports,
@@ -34,7 +34,7 @@ __export(main_exports, {
34
34
  Country: () => interface_exports6,
35
35
  CountryRoutes: () => route_schema_exports7,
36
36
  CurrentAccount: () => interface_exports61,
37
- CurrentAccountRoutes: () => route_schema_exports109,
37
+ CurrentAccountRoutes: () => route_schema_exports108,
38
38
  Dashboard: () => interface_exports52,
39
39
  DashboardRoutes: () => route_schema_exports98,
40
40
  DeliveryMethods: () => interfaces_exports3,
@@ -74,7 +74,6 @@ __export(main_exports, {
74
74
  File: () => interface_exports10,
75
75
  FileRoutes: () => route_schema_exports23,
76
76
  Gmails: () => interface_exports58,
77
- GmailsRoutes: () => route_schema_exports106,
78
77
  GoogleFilePermission: () => interfaces_exports33,
79
78
  GoogleFilePermissionRoutes: () => route_schema_exports69,
80
79
  GoogleSheetPool: () => interface_exports64,
@@ -83,7 +82,7 @@ __export(main_exports, {
83
82
  Inventario: () => interface_exports44,
84
83
  InventarioRoutes: () => route_schema_exports88,
85
84
  LLM: () => interfaces_exports57,
86
- LLMRoutes: () => route_schema_exports113,
85
+ LLMRoutes: () => route_schema_exports112,
87
86
  Language: () => interface_exports11,
88
87
  LanguageRoutes: () => route_schema_exports25,
89
88
  Location: () => interface_exports12,
@@ -95,9 +94,9 @@ __export(main_exports, {
95
94
  Multimedia: () => interfaces_exports19,
96
95
  MultimediaRoutes: () => route_schema_exports28,
97
96
  NPF: () => interface_exports59,
98
- NPFRoutes: () => route_schema_exports107,
97
+ NPFRoutes: () => route_schema_exports106,
99
98
  NRCL: () => interface_exports60,
100
- NRCLRoutes: () => route_schema_exports108,
99
+ NRCLRoutes: () => route_schema_exports107,
101
100
  Npc: () => interfaces_exports27,
102
101
  NpcRoutes: () => route_schema_exports61,
103
102
  Observation: () => interfaces_exports20,
@@ -112,14 +111,14 @@ __export(main_exports, {
112
111
  PatchNotes: () => interfaces_exports58,
113
112
  Payment: () => interface_exports14,
114
113
  PaymentBatch: () => interface_exports62,
115
- PaymentBatchRoutes: () => route_schema_exports110,
114
+ PaymentBatchRoutes: () => route_schema_exports109,
116
115
  PaymentMethods: () => interfaces_exports23,
117
116
  PaymentMethodsRoutes: () => route_schema_exports33,
118
117
  PaymentRoutes: () => route_schema_exports32,
119
118
  Persona: () => interface_exports42,
120
119
  PersonaRoutes: () => route_schema_exports75,
121
120
  Portal: () => interface_exports63,
122
- PortalRoutes: () => route_schema_exports111,
121
+ PortalRoutes: () => route_schema_exports110,
123
122
  PreSale: () => interface_exports37,
124
123
  PreSaleProduct: () => interface_exports38,
125
124
  PreSaleProductRoutes: () => route_schema_exports60,
@@ -5728,17 +5727,6 @@ var Route102 = "gmail";
5728
5727
  var UpperName101 = "Gmail";
5729
5728
  var LowerName101 = UpperName101[0].toLowerCase() + UpperName101.substring(1);
5730
5729
 
5731
- // src/modules/stock/gmails/route.schema.ts
5732
- var route_schema_exports106 = {};
5733
- __export(route_schema_exports106, {
5734
- editPreviewChatMessageRequest: () => editPreviewChatMessageRequest
5735
- });
5736
- import joi107 from "joi";
5737
- var editPreviewChatMessageRequestBody = {
5738
- text_to_chat: joi107.string().required()
5739
- };
5740
- var editPreviewChatMessageRequest = joi107.object().keys(editPreviewChatMessageRequestBody).messages(messages);
5741
-
5742
5730
  // src/modules/document/NPF/interface.ts
5743
5731
  var interface_exports59 = {};
5744
5732
  __export(interface_exports59, {
@@ -5747,28 +5735,28 @@ __export(interface_exports59, {
5747
5735
  var Route103 = "npf";
5748
5736
 
5749
5737
  // src/modules/document/NPF/route.schema.ts
5750
- var route_schema_exports107 = {};
5751
- __export(route_schema_exports107, {
5738
+ var route_schema_exports106 = {};
5739
+ __export(route_schema_exports106, {
5752
5740
  providerPaymentBody: () => providerPaymentBody
5753
5741
  });
5754
- import joi108 from "joi";
5742
+ import joi107 from "joi";
5755
5743
  var providerPaymentDocumentKeys = {
5756
- document_header_id: joi108.string().uuid().required(),
5757
- value: joi108.number().required(),
5758
- discount_value: joi108.number().optional().allow(0, "", null).when("value", {
5759
- is: joi108.number().positive(),
5760
- then: joi108.number().max(joi108.ref("value")),
5761
- otherwise: joi108.number().min(joi108.ref("value"))
5744
+ document_header_id: joi107.string().uuid().required(),
5745
+ value: joi107.number().required(),
5746
+ discount_value: joi107.number().optional().allow(0, "", null).when("value", {
5747
+ is: joi107.number().positive(),
5748
+ then: joi107.number().max(joi107.ref("value")),
5749
+ otherwise: joi107.number().min(joi107.ref("value"))
5762
5750
  })
5763
5751
  };
5764
- var providerPaymentDocument = joi108.object().keys(providerPaymentDocumentKeys).required();
5752
+ var providerPaymentDocument = joi107.object().keys(providerPaymentDocumentKeys).required();
5765
5753
  var providerPaymentBodyKeys = {
5766
- provider_id: joi108.string().uuid().required(),
5767
- client_id: joi108.string().uuid().allow(null).optional(),
5768
- documents: joi108.array().items(providerPaymentDocument).required(),
5769
- total: joi108.number().positive().allow(0).required()
5754
+ provider_id: joi107.string().uuid().required(),
5755
+ client_id: joi107.string().uuid().allow(null).optional(),
5756
+ documents: joi107.array().items(providerPaymentDocument).required(),
5757
+ total: joi107.number().positive().allow(0).required()
5770
5758
  };
5771
- var providerPaymentBody = joi108.array().items(joi108.object().keys(providerPaymentBodyKeys)).messages(messages);
5759
+ var providerPaymentBody = joi107.array().items(joi107.object().keys(providerPaymentBodyKeys)).messages(messages);
5772
5760
 
5773
5761
  // src/modules/document/NRCL/interface.ts
5774
5762
  var interface_exports60 = {};
@@ -5782,27 +5770,27 @@ var UpperName102 = "DocumentHeader";
5782
5770
  var LowerName102 = UpperName102[0].toLowerCase() + UpperName102.substring(1);
5783
5771
 
5784
5772
  // src/modules/document/NRCL/route.schema.ts
5785
- var route_schema_exports108 = {};
5786
- __export(route_schema_exports108, {
5773
+ var route_schema_exports107 = {};
5774
+ __export(route_schema_exports107, {
5787
5775
  regularizarMultiplosBody: () => regularizarMultiplosBody
5788
5776
  });
5789
- import joi109 from "joi";
5777
+ import joi108 from "joi";
5790
5778
  var multipleDocumentsBodyKeys = {
5791
- owner_id: joi109.string().uuid().required(),
5792
- document_header_id: joi109.string().uuid().required(),
5793
- type: joi109.string().valid("credit", "debit").required(),
5794
- value: joi109.number().positive().required()
5779
+ owner_id: joi108.string().uuid().required(),
5780
+ document_header_id: joi108.string().uuid().required(),
5781
+ type: joi108.string().valid("credit", "debit").required(),
5782
+ value: joi108.number().positive().required()
5795
5783
  };
5796
5784
  var multiplePaymentsBodyKeys = {
5797
- value: joi109.number().positive().required(),
5798
- payment_method_id: joi109.string().uuid().required(),
5799
- payment_method: joi109.string().required()
5785
+ value: joi108.number().positive().required(),
5786
+ payment_method_id: joi108.string().uuid().required(),
5787
+ payment_method: joi108.string().required()
5800
5788
  };
5801
5789
  var regularizarMultiplosBodyKeys = {
5802
- documents: joi109.array().items(multipleDocumentsBodyKeys).required(),
5803
- payments: joi109.array().items(multiplePaymentsBodyKeys).optional()
5790
+ documents: joi108.array().items(multipleDocumentsBodyKeys).required(),
5791
+ payments: joi108.array().items(multiplePaymentsBodyKeys).optional()
5804
5792
  };
5805
- var regularizarMultiplosBody = joi109.object().keys(regularizarMultiplosBodyKeys).messages(messages);
5793
+ var regularizarMultiplosBody = joi108.object().keys(regularizarMultiplosBodyKeys).messages(messages);
5806
5794
 
5807
5795
  // src/modules/supply/currentAccount/interface.ts
5808
5796
  var interface_exports61 = {};
@@ -5823,8 +5811,8 @@ var IExportCurrentAccountOutputEnum = {
5823
5811
  var IExportCurrentAccountOutputOptions = Object.keys(IExportCurrentAccountOutputEnum);
5824
5812
 
5825
5813
  // src/modules/supply/currentAccount/route.schema.ts
5826
- var route_schema_exports109 = {};
5827
- __export(route_schema_exports109, {
5814
+ var route_schema_exports108 = {};
5815
+ __export(route_schema_exports108, {
5828
5816
  exportCurrentAccountBetweenDatesQuery: () => exportCurrentAccountBetweenDatesQuery,
5829
5817
  exportPaymentsBody: () => exportPaymentsBody,
5830
5818
  findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery,
@@ -5833,39 +5821,39 @@ __export(route_schema_exports109, {
5833
5821
  findSettledMaterialEntranceQuery: () => findSettledMaterialEntranceQuery2,
5834
5822
  findWithPaginationQuery: () => findWithPaginationQuery28
5835
5823
  });
5836
- import joi110 from "joi";
5824
+ import joi109 from "joi";
5837
5825
  var findQueryKeys32 = {};
5838
- var findQuery34 = joi110.object().keys(findQueryKeys32).messages(messages);
5826
+ var findQuery34 = joi109.object().keys(findQueryKeys32).messages(messages);
5839
5827
  var findWithPaginationQueryKeys29 = {
5840
- per_page: joi110.number().integer().positive().default(10).optional(),
5841
- current_page: joi110.number().integer().positive().default(1).optional()
5828
+ per_page: joi109.number().integer().positive().default(10).optional(),
5829
+ current_page: joi109.number().integer().positive().default(1).optional()
5842
5830
  };
5843
- var findWithPaginationQuery28 = joi110.object().keys(findWithPaginationQueryKeys29).messages(messages);
5831
+ var findWithPaginationQuery28 = joi109.object().keys(findWithPaginationQueryKeys29).messages(messages);
5844
5832
  var findSettledMaterialEntranceQueryKeys2 = {
5845
- provider_id: joi110.string().uuid().required(),
5846
- client_id: joi110.string().uuid().allow(null).required()
5833
+ provider_id: joi109.string().uuid().required(),
5834
+ client_id: joi109.string().uuid().allow(null).required()
5847
5835
  };
5848
- var findSettledMaterialEntranceQuery2 = joi110.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
5836
+ var findSettledMaterialEntranceQuery2 = joi109.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
5849
5837
  var exportPaymentsBodyKeys = {
5850
- value: joi110.number().positive().required(),
5851
- provider: joi110.string().required(),
5852
- npf_ids: joi110.array().items(joi110.string().uuid().required()).optional()
5838
+ value: joi109.number().positive().required(),
5839
+ provider: joi109.string().required(),
5840
+ npf_ids: joi109.array().items(joi109.string().uuid().required()).optional()
5853
5841
  };
5854
- var exportPaymentsBody = joi110.array().items(joi110.object().keys(exportPaymentsBodyKeys)).messages(messages);
5842
+ var exportPaymentsBody = joi109.array().items(joi109.object().keys(exportPaymentsBodyKeys)).messages(messages);
5855
5843
  var exportCurrentAccountBetweenDatesQueryKeys = {
5856
- owner_id: joi110.string().required(),
5857
- output: joi110.string().valid(...IExportCurrentAccountOutputOptions).required(),
5858
- start_date: joi110.string().optional(),
5859
- end_date: joi110.string().optional(),
5860
- token: joi110.string().required()
5844
+ owner_id: joi109.string().required(),
5845
+ output: joi109.string().valid(...IExportCurrentAccountOutputOptions).required(),
5846
+ start_date: joi109.string().optional(),
5847
+ end_date: joi109.string().optional(),
5848
+ token: joi109.string().required()
5861
5849
  };
5862
- var exportCurrentAccountBetweenDatesQuery = joi110.object().keys(exportCurrentAccountBetweenDatesQueryKeys).messages(messages);
5850
+ var exportCurrentAccountBetweenDatesQuery = joi109.object().keys(exportCurrentAccountBetweenDatesQueryKeys).messages(messages);
5863
5851
  var findSettledMaterialEntranceBuDateParamsKeys2 = {
5864
- due_date: joi110.string().optional()
5852
+ due_date: joi109.string().optional()
5865
5853
  };
5866
- var findSettledMaterialEntranceBuDateParams2 = joi110.object().keys(findSettledMaterialEntranceBuDateParamsKeys2).messages(messages);
5867
- var findPaymentsNotExportedQuery = joi110.object().keys({
5868
- whiteList: joi110.array().items(joi110.string().uuid().required()).optional()
5854
+ var findSettledMaterialEntranceBuDateParams2 = joi109.object().keys(findSettledMaterialEntranceBuDateParamsKeys2).messages(messages);
5855
+ var findPaymentsNotExportedQuery = joi109.object().keys({
5856
+ whiteList: joi109.array().items(joi109.string().uuid().required()).optional()
5869
5857
  }).messages(messages);
5870
5858
 
5871
5859
  // src/modules/supply/paymentBatch/interface.ts
@@ -5880,20 +5868,20 @@ var UpperName104 = "Payment";
5880
5868
  var LowerName104 = UpperName104[0].toLowerCase() + UpperName104.substring(1);
5881
5869
 
5882
5870
  // src/modules/supply/paymentBatch/route.schema.ts
5883
- var route_schema_exports110 = {};
5884
- __export(route_schema_exports110, {
5871
+ var route_schema_exports109 = {};
5872
+ __export(route_schema_exports109, {
5885
5873
  exportPaymentsBody: () => exportPaymentsBody2,
5886
5874
  findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery2
5887
5875
  });
5888
- import joi111 from "joi";
5876
+ import joi110 from "joi";
5889
5877
  var exportPaymentsBodyKeys2 = {
5890
- value: joi111.number().positive().required(),
5891
- provider: joi111.string().required(),
5892
- npf_ids: joi111.array().items(joi111.string().uuid().required()).optional()
5878
+ value: joi110.number().positive().required(),
5879
+ provider: joi110.string().required(),
5880
+ npf_ids: joi110.array().items(joi110.string().uuid().required()).optional()
5893
5881
  };
5894
- var exportPaymentsBody2 = joi111.array().items(joi111.object().keys(exportPaymentsBodyKeys2)).messages(messages);
5895
- var findPaymentsNotExportedQuery2 = joi111.object().keys({
5896
- whiteList: joi111.array().items(joi111.string().uuid().required()).optional()
5882
+ var exportPaymentsBody2 = joi110.array().items(joi110.object().keys(exportPaymentsBodyKeys2)).messages(messages);
5883
+ var findPaymentsNotExportedQuery2 = joi110.object().keys({
5884
+ whiteList: joi110.array().items(joi110.string().uuid().required()).optional()
5897
5885
  }).messages(messages);
5898
5886
 
5899
5887
  // src/modules/ui/portal/interface.ts
@@ -5908,28 +5896,28 @@ var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteT
5908
5896
  })(IPublicDocumentHeaderNoteType || {});
5909
5897
 
5910
5898
  // src/modules/ui/portal/route.schema.ts
5911
- var route_schema_exports111 = {};
5912
- __export(route_schema_exports111, {
5899
+ var route_schema_exports110 = {};
5900
+ __export(route_schema_exports110, {
5913
5901
  createNoteBody: () => createNoteBody,
5914
5902
  publicFindByOwnerId: () => publicFindByOwnerId,
5915
5903
  updateNoteBody: () => updateNoteBody
5916
5904
  });
5917
- import joi112 from "joi";
5905
+ import joi111 from "joi";
5918
5906
  var createNoteBodyKeys = {
5919
- document_header_id: joi112.string().uuid().required(),
5920
- note: joi112.string().required(),
5921
- type: joi112.string().required().valid("Client", "Provider")
5907
+ document_header_id: joi111.string().uuid().required(),
5908
+ note: joi111.string().required(),
5909
+ type: joi111.string().required().valid("Client", "Provider")
5922
5910
  };
5923
- var createNoteBody = joi112.object().keys(createNoteBodyKeys).messages(messages);
5911
+ var createNoteBody = joi111.object().keys(createNoteBodyKeys).messages(messages);
5924
5912
  var updateNoteBodyKeys = {
5925
- note: joi112.string().required().allow("")
5913
+ note: joi111.string().required().allow("")
5926
5914
  };
5927
- var updateNoteBody = joi112.object().keys(updateNoteBodyKeys).messages(messages);
5915
+ var updateNoteBody = joi111.object().keys(updateNoteBodyKeys).messages(messages);
5928
5916
  var publicFindByOwnerIdParams = {
5929
- owner_id: joi112.string().uuid().required(),
5930
- include_closed: joi112.boolean().optional()
5917
+ owner_id: joi111.string().uuid().required(),
5918
+ include_closed: joi111.boolean().optional()
5931
5919
  };
5932
- var publicFindByOwnerId = joi112.object().keys(publicFindByOwnerIdParams).messages(messages);
5920
+ var publicFindByOwnerId = joi111.object().keys(publicFindByOwnerIdParams).messages(messages);
5933
5921
 
5934
5922
  // src/modules/stock/googleSheetPool/interface.ts
5935
5923
  var interface_exports64 = {};
@@ -5954,15 +5942,15 @@ var UpperName106 = "AccountCode";
5954
5942
  var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
5955
5943
 
5956
5944
  // src/modules/stock/accountCode/route.schema.ts
5957
- var route_schema_exports112 = {};
5958
- __export(route_schema_exports112, {
5945
+ var route_schema_exports111 = {};
5946
+ __export(route_schema_exports111, {
5959
5947
  findByCode: () => findByCode
5960
5948
  });
5961
- import joi113 from "joi";
5949
+ import joi112 from "joi";
5962
5950
  var findByCodeParams = {
5963
- code: joi113.string().required()
5951
+ code: joi112.string().required()
5964
5952
  };
5965
- var findByCode = joi113.object().keys(findByCodeParams).messages(messages);
5953
+ var findByCode = joi112.object().keys(findByCodeParams).messages(messages);
5966
5954
 
5967
5955
  // src/modules/llm/llm/interfaces.ts
5968
5956
  var interfaces_exports57 = {};
@@ -5972,17 +5960,17 @@ __export(interfaces_exports57, {
5972
5960
  var Route109 = "llm";
5973
5961
 
5974
5962
  // src/modules/llm/llm/route.schema.ts
5975
- var route_schema_exports113 = {};
5976
- __export(route_schema_exports113, {
5963
+ var route_schema_exports112 = {};
5964
+ __export(route_schema_exports112, {
5977
5965
  promptBody: () => promptBody
5978
5966
  });
5979
- import joi114 from "joi";
5967
+ import joi113 from "joi";
5980
5968
  var promptBodyKeys = {
5981
- prompt: joi114.string().required(),
5982
- owner_id: joi114.string().required(),
5983
- document_header_id: joi114.string().required()
5969
+ prompt: joi113.string().required(),
5970
+ owner_id: joi113.string().required(),
5971
+ document_header_id: joi113.string().required()
5984
5972
  };
5985
- var promptBody = joi114.object().keys(promptBodyKeys).messages(messages);
5973
+ var promptBody = joi113.object().keys(promptBodyKeys).messages(messages);
5986
5974
 
5987
5975
  // src/modules/integration/patchNotes/interfaces.ts
5988
5976
  var interfaces_exports58 = {};
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  var main_exports = {};
9
9
  __export(main_exports, {
10
10
  AccountCode: () => interface_exports65,
11
- AccountCodeRoutes: () => route_schema_exports112,
11
+ AccountCodeRoutes: () => route_schema_exports111,
12
12
  AdminPanel: () => interfaces_exports54,
13
13
  BankData: () => interface_exports2,
14
14
  BankDataRoutes: () => route_schema_exports,
@@ -34,7 +34,7 @@ __export(main_exports, {
34
34
  Country: () => interface_exports6,
35
35
  CountryRoutes: () => route_schema_exports7,
36
36
  CurrentAccount: () => interface_exports61,
37
- CurrentAccountRoutes: () => route_schema_exports109,
37
+ CurrentAccountRoutes: () => route_schema_exports108,
38
38
  Dashboard: () => interface_exports52,
39
39
  DashboardRoutes: () => route_schema_exports98,
40
40
  DeliveryMethods: () => interfaces_exports3,
@@ -74,7 +74,6 @@ __export(main_exports, {
74
74
  File: () => interface_exports10,
75
75
  FileRoutes: () => route_schema_exports23,
76
76
  Gmails: () => interface_exports58,
77
- GmailsRoutes: () => route_schema_exports106,
78
77
  GoogleFilePermission: () => interfaces_exports33,
79
78
  GoogleFilePermissionRoutes: () => route_schema_exports69,
80
79
  GoogleSheetPool: () => interface_exports64,
@@ -83,7 +82,7 @@ __export(main_exports, {
83
82
  Inventario: () => interface_exports44,
84
83
  InventarioRoutes: () => route_schema_exports88,
85
84
  LLM: () => interfaces_exports57,
86
- LLMRoutes: () => route_schema_exports113,
85
+ LLMRoutes: () => route_schema_exports112,
87
86
  Language: () => interface_exports11,
88
87
  LanguageRoutes: () => route_schema_exports25,
89
88
  Location: () => interface_exports12,
@@ -95,9 +94,9 @@ __export(main_exports, {
95
94
  Multimedia: () => interfaces_exports19,
96
95
  MultimediaRoutes: () => route_schema_exports28,
97
96
  NPF: () => interface_exports59,
98
- NPFRoutes: () => route_schema_exports107,
97
+ NPFRoutes: () => route_schema_exports106,
99
98
  NRCL: () => interface_exports60,
100
- NRCLRoutes: () => route_schema_exports108,
99
+ NRCLRoutes: () => route_schema_exports107,
101
100
  Npc: () => interfaces_exports27,
102
101
  NpcRoutes: () => route_schema_exports61,
103
102
  Observation: () => interfaces_exports20,
@@ -112,14 +111,14 @@ __export(main_exports, {
112
111
  PatchNotes: () => interfaces_exports58,
113
112
  Payment: () => interface_exports14,
114
113
  PaymentBatch: () => interface_exports62,
115
- PaymentBatchRoutes: () => route_schema_exports110,
114
+ PaymentBatchRoutes: () => route_schema_exports109,
116
115
  PaymentMethods: () => interfaces_exports23,
117
116
  PaymentMethodsRoutes: () => route_schema_exports33,
118
117
  PaymentRoutes: () => route_schema_exports32,
119
118
  Persona: () => interface_exports42,
120
119
  PersonaRoutes: () => route_schema_exports75,
121
120
  Portal: () => interface_exports63,
122
- PortalRoutes: () => route_schema_exports111,
121
+ PortalRoutes: () => route_schema_exports110,
123
122
  PreSale: () => interface_exports37,
124
123
  PreSaleProduct: () => interface_exports38,
125
124
  PreSaleProductRoutes: () => route_schema_exports60,
@@ -5728,17 +5727,6 @@ var Route102 = "gmail";
5728
5727
  var UpperName101 = "Gmail";
5729
5728
  var LowerName101 = UpperName101[0].toLowerCase() + UpperName101.substring(1);
5730
5729
 
5731
- // src/modules/stock/gmails/route.schema.ts
5732
- var route_schema_exports106 = {};
5733
- __export(route_schema_exports106, {
5734
- editPreviewChatMessageRequest: () => editPreviewChatMessageRequest
5735
- });
5736
- import joi107 from "joi";
5737
- var editPreviewChatMessageRequestBody = {
5738
- text_to_chat: joi107.string().required()
5739
- };
5740
- var editPreviewChatMessageRequest = joi107.object().keys(editPreviewChatMessageRequestBody).messages(messages);
5741
-
5742
5730
  // src/modules/document/NPF/interface.ts
5743
5731
  var interface_exports59 = {};
5744
5732
  __export(interface_exports59, {
@@ -5747,28 +5735,28 @@ __export(interface_exports59, {
5747
5735
  var Route103 = "npf";
5748
5736
 
5749
5737
  // src/modules/document/NPF/route.schema.ts
5750
- var route_schema_exports107 = {};
5751
- __export(route_schema_exports107, {
5738
+ var route_schema_exports106 = {};
5739
+ __export(route_schema_exports106, {
5752
5740
  providerPaymentBody: () => providerPaymentBody
5753
5741
  });
5754
- import joi108 from "joi";
5742
+ import joi107 from "joi";
5755
5743
  var providerPaymentDocumentKeys = {
5756
- document_header_id: joi108.string().uuid().required(),
5757
- value: joi108.number().required(),
5758
- discount_value: joi108.number().optional().allow(0, "", null).when("value", {
5759
- is: joi108.number().positive(),
5760
- then: joi108.number().max(joi108.ref("value")),
5761
- otherwise: joi108.number().min(joi108.ref("value"))
5744
+ document_header_id: joi107.string().uuid().required(),
5745
+ value: joi107.number().required(),
5746
+ discount_value: joi107.number().optional().allow(0, "", null).when("value", {
5747
+ is: joi107.number().positive(),
5748
+ then: joi107.number().max(joi107.ref("value")),
5749
+ otherwise: joi107.number().min(joi107.ref("value"))
5762
5750
  })
5763
5751
  };
5764
- var providerPaymentDocument = joi108.object().keys(providerPaymentDocumentKeys).required();
5752
+ var providerPaymentDocument = joi107.object().keys(providerPaymentDocumentKeys).required();
5765
5753
  var providerPaymentBodyKeys = {
5766
- provider_id: joi108.string().uuid().required(),
5767
- client_id: joi108.string().uuid().allow(null).optional(),
5768
- documents: joi108.array().items(providerPaymentDocument).required(),
5769
- total: joi108.number().positive().allow(0).required()
5754
+ provider_id: joi107.string().uuid().required(),
5755
+ client_id: joi107.string().uuid().allow(null).optional(),
5756
+ documents: joi107.array().items(providerPaymentDocument).required(),
5757
+ total: joi107.number().positive().allow(0).required()
5770
5758
  };
5771
- var providerPaymentBody = joi108.array().items(joi108.object().keys(providerPaymentBodyKeys)).messages(messages);
5759
+ var providerPaymentBody = joi107.array().items(joi107.object().keys(providerPaymentBodyKeys)).messages(messages);
5772
5760
 
5773
5761
  // src/modules/document/NRCL/interface.ts
5774
5762
  var interface_exports60 = {};
@@ -5782,27 +5770,27 @@ var UpperName102 = "DocumentHeader";
5782
5770
  var LowerName102 = UpperName102[0].toLowerCase() + UpperName102.substring(1);
5783
5771
 
5784
5772
  // src/modules/document/NRCL/route.schema.ts
5785
- var route_schema_exports108 = {};
5786
- __export(route_schema_exports108, {
5773
+ var route_schema_exports107 = {};
5774
+ __export(route_schema_exports107, {
5787
5775
  regularizarMultiplosBody: () => regularizarMultiplosBody
5788
5776
  });
5789
- import joi109 from "joi";
5777
+ import joi108 from "joi";
5790
5778
  var multipleDocumentsBodyKeys = {
5791
- owner_id: joi109.string().uuid().required(),
5792
- document_header_id: joi109.string().uuid().required(),
5793
- type: joi109.string().valid("credit", "debit").required(),
5794
- value: joi109.number().positive().required()
5779
+ owner_id: joi108.string().uuid().required(),
5780
+ document_header_id: joi108.string().uuid().required(),
5781
+ type: joi108.string().valid("credit", "debit").required(),
5782
+ value: joi108.number().positive().required()
5795
5783
  };
5796
5784
  var multiplePaymentsBodyKeys = {
5797
- value: joi109.number().positive().required(),
5798
- payment_method_id: joi109.string().uuid().required(),
5799
- payment_method: joi109.string().required()
5785
+ value: joi108.number().positive().required(),
5786
+ payment_method_id: joi108.string().uuid().required(),
5787
+ payment_method: joi108.string().required()
5800
5788
  };
5801
5789
  var regularizarMultiplosBodyKeys = {
5802
- documents: joi109.array().items(multipleDocumentsBodyKeys).required(),
5803
- payments: joi109.array().items(multiplePaymentsBodyKeys).optional()
5790
+ documents: joi108.array().items(multipleDocumentsBodyKeys).required(),
5791
+ payments: joi108.array().items(multiplePaymentsBodyKeys).optional()
5804
5792
  };
5805
- var regularizarMultiplosBody = joi109.object().keys(regularizarMultiplosBodyKeys).messages(messages);
5793
+ var regularizarMultiplosBody = joi108.object().keys(regularizarMultiplosBodyKeys).messages(messages);
5806
5794
 
5807
5795
  // src/modules/supply/currentAccount/interface.ts
5808
5796
  var interface_exports61 = {};
@@ -5823,8 +5811,8 @@ var IExportCurrentAccountOutputEnum = {
5823
5811
  var IExportCurrentAccountOutputOptions = Object.keys(IExportCurrentAccountOutputEnum);
5824
5812
 
5825
5813
  // src/modules/supply/currentAccount/route.schema.ts
5826
- var route_schema_exports109 = {};
5827
- __export(route_schema_exports109, {
5814
+ var route_schema_exports108 = {};
5815
+ __export(route_schema_exports108, {
5828
5816
  exportCurrentAccountBetweenDatesQuery: () => exportCurrentAccountBetweenDatesQuery,
5829
5817
  exportPaymentsBody: () => exportPaymentsBody,
5830
5818
  findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery,
@@ -5833,39 +5821,39 @@ __export(route_schema_exports109, {
5833
5821
  findSettledMaterialEntranceQuery: () => findSettledMaterialEntranceQuery2,
5834
5822
  findWithPaginationQuery: () => findWithPaginationQuery28
5835
5823
  });
5836
- import joi110 from "joi";
5824
+ import joi109 from "joi";
5837
5825
  var findQueryKeys32 = {};
5838
- var findQuery34 = joi110.object().keys(findQueryKeys32).messages(messages);
5826
+ var findQuery34 = joi109.object().keys(findQueryKeys32).messages(messages);
5839
5827
  var findWithPaginationQueryKeys29 = {
5840
- per_page: joi110.number().integer().positive().default(10).optional(),
5841
- current_page: joi110.number().integer().positive().default(1).optional()
5828
+ per_page: joi109.number().integer().positive().default(10).optional(),
5829
+ current_page: joi109.number().integer().positive().default(1).optional()
5842
5830
  };
5843
- var findWithPaginationQuery28 = joi110.object().keys(findWithPaginationQueryKeys29).messages(messages);
5831
+ var findWithPaginationQuery28 = joi109.object().keys(findWithPaginationQueryKeys29).messages(messages);
5844
5832
  var findSettledMaterialEntranceQueryKeys2 = {
5845
- provider_id: joi110.string().uuid().required(),
5846
- client_id: joi110.string().uuid().allow(null).required()
5833
+ provider_id: joi109.string().uuid().required(),
5834
+ client_id: joi109.string().uuid().allow(null).required()
5847
5835
  };
5848
- var findSettledMaterialEntranceQuery2 = joi110.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
5836
+ var findSettledMaterialEntranceQuery2 = joi109.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
5849
5837
  var exportPaymentsBodyKeys = {
5850
- value: joi110.number().positive().required(),
5851
- provider: joi110.string().required(),
5852
- npf_ids: joi110.array().items(joi110.string().uuid().required()).optional()
5838
+ value: joi109.number().positive().required(),
5839
+ provider: joi109.string().required(),
5840
+ npf_ids: joi109.array().items(joi109.string().uuid().required()).optional()
5853
5841
  };
5854
- var exportPaymentsBody = joi110.array().items(joi110.object().keys(exportPaymentsBodyKeys)).messages(messages);
5842
+ var exportPaymentsBody = joi109.array().items(joi109.object().keys(exportPaymentsBodyKeys)).messages(messages);
5855
5843
  var exportCurrentAccountBetweenDatesQueryKeys = {
5856
- owner_id: joi110.string().required(),
5857
- output: joi110.string().valid(...IExportCurrentAccountOutputOptions).required(),
5858
- start_date: joi110.string().optional(),
5859
- end_date: joi110.string().optional(),
5860
- token: joi110.string().required()
5844
+ owner_id: joi109.string().required(),
5845
+ output: joi109.string().valid(...IExportCurrentAccountOutputOptions).required(),
5846
+ start_date: joi109.string().optional(),
5847
+ end_date: joi109.string().optional(),
5848
+ token: joi109.string().required()
5861
5849
  };
5862
- var exportCurrentAccountBetweenDatesQuery = joi110.object().keys(exportCurrentAccountBetweenDatesQueryKeys).messages(messages);
5850
+ var exportCurrentAccountBetweenDatesQuery = joi109.object().keys(exportCurrentAccountBetweenDatesQueryKeys).messages(messages);
5863
5851
  var findSettledMaterialEntranceBuDateParamsKeys2 = {
5864
- due_date: joi110.string().optional()
5852
+ due_date: joi109.string().optional()
5865
5853
  };
5866
- var findSettledMaterialEntranceBuDateParams2 = joi110.object().keys(findSettledMaterialEntranceBuDateParamsKeys2).messages(messages);
5867
- var findPaymentsNotExportedQuery = joi110.object().keys({
5868
- whiteList: joi110.array().items(joi110.string().uuid().required()).optional()
5854
+ var findSettledMaterialEntranceBuDateParams2 = joi109.object().keys(findSettledMaterialEntranceBuDateParamsKeys2).messages(messages);
5855
+ var findPaymentsNotExportedQuery = joi109.object().keys({
5856
+ whiteList: joi109.array().items(joi109.string().uuid().required()).optional()
5869
5857
  }).messages(messages);
5870
5858
 
5871
5859
  // src/modules/supply/paymentBatch/interface.ts
@@ -5880,20 +5868,20 @@ var UpperName104 = "Payment";
5880
5868
  var LowerName104 = UpperName104[0].toLowerCase() + UpperName104.substring(1);
5881
5869
 
5882
5870
  // src/modules/supply/paymentBatch/route.schema.ts
5883
- var route_schema_exports110 = {};
5884
- __export(route_schema_exports110, {
5871
+ var route_schema_exports109 = {};
5872
+ __export(route_schema_exports109, {
5885
5873
  exportPaymentsBody: () => exportPaymentsBody2,
5886
5874
  findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery2
5887
5875
  });
5888
- import joi111 from "joi";
5876
+ import joi110 from "joi";
5889
5877
  var exportPaymentsBodyKeys2 = {
5890
- value: joi111.number().positive().required(),
5891
- provider: joi111.string().required(),
5892
- npf_ids: joi111.array().items(joi111.string().uuid().required()).optional()
5878
+ value: joi110.number().positive().required(),
5879
+ provider: joi110.string().required(),
5880
+ npf_ids: joi110.array().items(joi110.string().uuid().required()).optional()
5893
5881
  };
5894
- var exportPaymentsBody2 = joi111.array().items(joi111.object().keys(exportPaymentsBodyKeys2)).messages(messages);
5895
- var findPaymentsNotExportedQuery2 = joi111.object().keys({
5896
- whiteList: joi111.array().items(joi111.string().uuid().required()).optional()
5882
+ var exportPaymentsBody2 = joi110.array().items(joi110.object().keys(exportPaymentsBodyKeys2)).messages(messages);
5883
+ var findPaymentsNotExportedQuery2 = joi110.object().keys({
5884
+ whiteList: joi110.array().items(joi110.string().uuid().required()).optional()
5897
5885
  }).messages(messages);
5898
5886
 
5899
5887
  // src/modules/ui/portal/interface.ts
@@ -5908,28 +5896,28 @@ var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteT
5908
5896
  })(IPublicDocumentHeaderNoteType || {});
5909
5897
 
5910
5898
  // src/modules/ui/portal/route.schema.ts
5911
- var route_schema_exports111 = {};
5912
- __export(route_schema_exports111, {
5899
+ var route_schema_exports110 = {};
5900
+ __export(route_schema_exports110, {
5913
5901
  createNoteBody: () => createNoteBody,
5914
5902
  publicFindByOwnerId: () => publicFindByOwnerId,
5915
5903
  updateNoteBody: () => updateNoteBody
5916
5904
  });
5917
- import joi112 from "joi";
5905
+ import joi111 from "joi";
5918
5906
  var createNoteBodyKeys = {
5919
- document_header_id: joi112.string().uuid().required(),
5920
- note: joi112.string().required(),
5921
- type: joi112.string().required().valid("Client", "Provider")
5907
+ document_header_id: joi111.string().uuid().required(),
5908
+ note: joi111.string().required(),
5909
+ type: joi111.string().required().valid("Client", "Provider")
5922
5910
  };
5923
- var createNoteBody = joi112.object().keys(createNoteBodyKeys).messages(messages);
5911
+ var createNoteBody = joi111.object().keys(createNoteBodyKeys).messages(messages);
5924
5912
  var updateNoteBodyKeys = {
5925
- note: joi112.string().required().allow("")
5913
+ note: joi111.string().required().allow("")
5926
5914
  };
5927
- var updateNoteBody = joi112.object().keys(updateNoteBodyKeys).messages(messages);
5915
+ var updateNoteBody = joi111.object().keys(updateNoteBodyKeys).messages(messages);
5928
5916
  var publicFindByOwnerIdParams = {
5929
- owner_id: joi112.string().uuid().required(),
5930
- include_closed: joi112.boolean().optional()
5917
+ owner_id: joi111.string().uuid().required(),
5918
+ include_closed: joi111.boolean().optional()
5931
5919
  };
5932
- var publicFindByOwnerId = joi112.object().keys(publicFindByOwnerIdParams).messages(messages);
5920
+ var publicFindByOwnerId = joi111.object().keys(publicFindByOwnerIdParams).messages(messages);
5933
5921
 
5934
5922
  // src/modules/stock/googleSheetPool/interface.ts
5935
5923
  var interface_exports64 = {};
@@ -5954,15 +5942,15 @@ var UpperName106 = "AccountCode";
5954
5942
  var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
5955
5943
 
5956
5944
  // src/modules/stock/accountCode/route.schema.ts
5957
- var route_schema_exports112 = {};
5958
- __export(route_schema_exports112, {
5945
+ var route_schema_exports111 = {};
5946
+ __export(route_schema_exports111, {
5959
5947
  findByCode: () => findByCode
5960
5948
  });
5961
- import joi113 from "joi";
5949
+ import joi112 from "joi";
5962
5950
  var findByCodeParams = {
5963
- code: joi113.string().required()
5951
+ code: joi112.string().required()
5964
5952
  };
5965
- var findByCode = joi113.object().keys(findByCodeParams).messages(messages);
5953
+ var findByCode = joi112.object().keys(findByCodeParams).messages(messages);
5966
5954
 
5967
5955
  // src/modules/llm/llm/interfaces.ts
5968
5956
  var interfaces_exports57 = {};
@@ -5972,17 +5960,17 @@ __export(interfaces_exports57, {
5972
5960
  var Route109 = "llm";
5973
5961
 
5974
5962
  // src/modules/llm/llm/route.schema.ts
5975
- var route_schema_exports113 = {};
5976
- __export(route_schema_exports113, {
5963
+ var route_schema_exports112 = {};
5964
+ __export(route_schema_exports112, {
5977
5965
  promptBody: () => promptBody
5978
5966
  });
5979
- import joi114 from "joi";
5967
+ import joi113 from "joi";
5980
5968
  var promptBodyKeys = {
5981
- prompt: joi114.string().required(),
5982
- owner_id: joi114.string().required(),
5983
- document_header_id: joi114.string().required()
5969
+ prompt: joi113.string().required(),
5970
+ owner_id: joi113.string().required(),
5971
+ document_header_id: joi113.string().required()
5984
5972
  };
5985
- var promptBody = joi114.object().keys(promptBodyKeys).messages(messages);
5973
+ var promptBody = joi113.object().keys(promptBodyKeys).messages(messages);
5986
5974
 
5987
5975
  // src/modules/integration/patchNotes/interfaces.ts
5988
5976
  var interfaces_exports58 = {};
package/dist/main.d.ts CHANGED
@@ -221,7 +221,6 @@ import * as ChatSubscriberRoutes from './modules/user/chatSubscribers/route.sche
221
221
  import * as Tag from './modules/stock/tag/interface';
222
222
  import * as TagRoutes from './modules/stock/tag/route.schema';
223
223
  import * as Gmails from './modules/stock/gmails/interface';
224
- import * as GmailsRoutes from './modules/stock/gmails/route.schema';
225
224
  import * as NPF from './modules/document/NPF/interface';
226
225
  import * as NPFRoutes from './modules/document/NPF/route.schema';
227
226
  import * as NRCL from './modules/document/NRCL/interface';
@@ -239,4 +238,4 @@ import * as LLM from './modules/llm/llm/interfaces';
239
238
  import * as LLMRoutes from './modules/llm/llm/route.schema';
240
239
  import * as PatchNotes from './modules/integration/patchNotes/interfaces';
241
240
  import * as ConferirEncomenda from './modules/stock/conferirEncomenda/interface';
242
- export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, BankData, BankDataRoutes, Client, ClientRoutes, ClientType, ClientTypeRoutes, Chat, ChatRoutes, Commissioner, CommissionerRoutes, Country, CountryRoutes, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, DocumentHeaderHistory, BillOfLading, BillOfLadingRoutes, ProductionOrder, ProductionOrderRoutes, Proforma, ProformaRoutes, PropostaFornecedor, PropostaFornecedorRoutes, ProviderCreditNoteFromReturn, ProviderCreditNoteFromReturnRoutes, ProviderFinancialCreditNote, ProviderFinancialCreditNoteRoutes, ProviderServiceInvoice, ProviderServiceInvoiceRoutes, DocumentLine, DocumentLineRoutes, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, ProductImage, ProductImageRoutes, Promotion, PromotionRoutes, PromotionAssoc, PromotionAssocRoutes, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, PurchaseConditions, PurchaseConditionsRoutes, ReasonForExemption, ReasonForExemptionRoutes, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, TypeOfLocation, TypeOfLocationRoutes, UnitOfMeasure, UnitOfMeasureRoutes, UserPositions, UserPositionsRoutes, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxZone, VatTaxZoneRoutes, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, StockMovement, StockMovementRoutes, Tenant, TenantRoutes, PreSale, PreSaleRoutes, PreSaleProduct, PreSaleProductRoutes, Npc, NpcRoutes, Printer, PrinterRoutes, SchedulePrintJob, SchedulePrintJobRoutes, QueryList, QueryListRoutes, QueryParameter, QueryParameterRoutes, ReturnReason, ReturnReasonRoutes, PropostaSheets, PropostaSheetsRoutes, Schedule, ScheduleRoutes, GoogleFilePermission, GoogleFilePermissionRoutes, Settings, SettingsRoutes, Tickets, TicketsRoutes, Channel, ChannelRoutes, TicketsLanguage, TicketsLanguageRoutes, CLT, CLTRoutes, StartDocumentHeaderLastUpdate, Persona, PersonaRoutes, ProjectInfo, ProjectInfoRoutes, EmailVerification, EmailVerificationRoutes, EmailLog, EmailLogRoutes, Purchase, PurchaseRoutes, Order, OrderRoutes, MaterialEntrance, MaterialEntranceRoutes, Transformado, TransformadoRoutes, Quebra, QuebraRoutes, UpfrontReturn, UpfrontReturnRoutes, SavedEmPicking, SavedEmPickingRoutes, EmailTemplate, EmailTemplateRoutes, EmailTemplateAttachment, EmailTemplateAttachmentRoutes, Inventario, InventarioRoutes, ReturnToProvider, ReturnToProviderRoutes, Prison, PrisonRoutes, DocumentLineNote, DocumentLineNoteRoutes, SavedProviderProposal, SavedProviderProposalRoutes, ProductGoogleSheets, ProductGoogleSheetsRoutes, Task, TaskRoutes, TaskMessage, TaskMessageRoutes, RecurrentTasks, TaskRead, TaskReadRoutes, Theme, ThemeRoutes, Dashboard, DashboardRoutes, ChatRapidMessage, ChatRapidMessageRoutes, SideMenu, SideMenuRoutes, AdminPanel, ErrorLog, ErrorLogRoutes, DocumentLineRm, DocumentLineRmRoutes, DocumentLineMt, DocumentLineMtRoutes, ChatSubscriber, ChatSubscriberRoutes, Tag, TagRoutes, Gmails, GmailsRoutes, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, GoogleSheetPool, AccountCode, AccountCodeRoutes, LLM, LLMRoutes, PatchNotes, ConferirEncomenda, };
241
+ export { shared, viewErrors, stockErrors, userErrors, documentManagementErrors, integrationErrors, ZipCode, ZipCodeRoutes, BankData, BankDataRoutes, Client, ClientRoutes, ClientType, ClientTypeRoutes, Chat, ChatRoutes, Commissioner, CommissionerRoutes, Country, CountryRoutes, DeliveryMethods, DeliveryMethodsRoutes, DocumentHeader, DocumentHeaderRoutes, DocumentHeaderHistory, BillOfLading, BillOfLadingRoutes, ProductionOrder, ProductionOrderRoutes, Proforma, ProformaRoutes, PropostaFornecedor, PropostaFornecedorRoutes, ProviderCreditNoteFromReturn, ProviderCreditNoteFromReturnRoutes, ProviderFinancialCreditNote, ProviderFinancialCreditNoteRoutes, ProviderServiceInvoice, ProviderServiceInvoiceRoutes, DocumentLine, DocumentLineRoutes, DocumentLineAssoc, DocumentLineAssocRoutes, DocumentSet, DocumentSetRoutes, DocumentType, DocumentTypeRoutes, ExternalDocumentType, ExternalDocumentHeader, ExternalDocumentHeaderRoutes, Favorites, FavoritesRoutes, File, FileRoutes, GoogleSheets, GoogleSheetsRoutes, Language, LanguageRoutes, Location, LocationRoutes, MaturityDates, MaturityDatesRoutes, Multimedia, MultimediaRoutes, OrderManagement, Observation, ObservationRoutes, ObservationType, ObservationTypeRoutes, Password, PasswordRoutes, Payment, PaymentRoutes, PaymentMethods, PaymentMethodsRoutes, ProductImage, ProductImageRoutes, Promotion, PromotionRoutes, PromotionAssoc, PromotionAssocRoutes, Providers, ProvidersRoutes, ProviderType, ProviderTypeRoutes, PurchaseConditions, PurchaseConditionsRoutes, ReasonForExemption, ReasonForExemptionRoutes, RefreshToken, RefreshTokenRoutes, SegmentsArea, SegmentsAreaRoutes, Sessions, SessionsRoutes, Shippings, ShippingsRoutes, StoreOperator, StoreOperatorRoutes, Swift, SwiftRoutes, TypeOfLocation, TypeOfLocationRoutes, UnitOfMeasure, UnitOfMeasureRoutes, UserPositions, UserPositionsRoutes, Users, UsersRoutes, UserTokens, UserTokensRoutes, VatValidation, VatValidationRoutes, VatTax, VatTaxRoutes, VatTaxZone, VatTaxZoneRoutes, Vehicles, VehiclesRoutes, Workflow, WorkflowRoutes, StockMovement, StockMovementRoutes, Tenant, TenantRoutes, PreSale, PreSaleRoutes, PreSaleProduct, PreSaleProductRoutes, Npc, NpcRoutes, Printer, PrinterRoutes, SchedulePrintJob, SchedulePrintJobRoutes, QueryList, QueryListRoutes, QueryParameter, QueryParameterRoutes, ReturnReason, ReturnReasonRoutes, PropostaSheets, PropostaSheetsRoutes, Schedule, ScheduleRoutes, GoogleFilePermission, GoogleFilePermissionRoutes, Settings, SettingsRoutes, Tickets, TicketsRoutes, Channel, ChannelRoutes, TicketsLanguage, TicketsLanguageRoutes, CLT, CLTRoutes, StartDocumentHeaderLastUpdate, Persona, PersonaRoutes, ProjectInfo, ProjectInfoRoutes, EmailVerification, EmailVerificationRoutes, EmailLog, EmailLogRoutes, Purchase, PurchaseRoutes, Order, OrderRoutes, MaterialEntrance, MaterialEntranceRoutes, Transformado, TransformadoRoutes, Quebra, QuebraRoutes, UpfrontReturn, UpfrontReturnRoutes, SavedEmPicking, SavedEmPickingRoutes, EmailTemplate, EmailTemplateRoutes, EmailTemplateAttachment, EmailTemplateAttachmentRoutes, Inventario, InventarioRoutes, ReturnToProvider, ReturnToProviderRoutes, Prison, PrisonRoutes, DocumentLineNote, DocumentLineNoteRoutes, SavedProviderProposal, SavedProviderProposalRoutes, ProductGoogleSheets, ProductGoogleSheetsRoutes, Task, TaskRoutes, TaskMessage, TaskMessageRoutes, RecurrentTasks, TaskRead, TaskReadRoutes, Theme, ThemeRoutes, Dashboard, DashboardRoutes, ChatRapidMessage, ChatRapidMessageRoutes, SideMenu, SideMenuRoutes, AdminPanel, ErrorLog, ErrorLogRoutes, DocumentLineRm, DocumentLineRmRoutes, DocumentLineMt, DocumentLineMtRoutes, ChatSubscriber, ChatSubscriberRoutes, Tag, TagRoutes, Gmails, NPF, NPFRoutes, NRCL, NRCLRoutes, CurrentAccount, CurrentAccountRoutes, PaymentBatch, PaymentBatchRoutes, Portal, PortalRoutes, GoogleSheetPool, AccountCode, AccountCodeRoutes, LLM, LLMRoutes, PatchNotes, ConferirEncomenda, };
@@ -1,34 +1,10 @@
1
1
  import * as IShared from '../../../shared/interface';
2
2
  import { Gmails } from '../../../shared/entities/stock';
3
+ import { IChatType } from '../chat/interfaces';
3
4
  export type Entity = Gmails;
4
5
  export declare const Route = "gmail";
5
6
  export declare const UpperName = "Gmail";
6
7
  export declare const LowerName: string;
7
- export interface IGmailEmailWithAction {
8
- id: string;
9
- from: string;
10
- subject: string;
11
- gmail_id: string;
12
- gmail_internal_date: number;
13
- gmail_payload: unknown;
14
- gmail_snippet: string;
15
- action: string;
16
- }
17
- export interface IGmailEmailWithActionAndDocumentNumber {
18
- id: string;
19
- from: string;
20
- subject: string;
21
- gmail_id: string;
22
- gmail_internal_date: number;
23
- gmail_snippet: string;
24
- action: string;
25
- document_number?: number;
26
- }
27
- export interface IWebsiteProposalGmailSearchResponse {
28
- id: string;
29
- document_number: number;
30
- owner_id: string;
31
- }
32
8
  export interface IGmailsResponse {
33
9
  id: string;
34
10
  gmail_id: string;
@@ -47,14 +23,8 @@ export interface IGmailsResponse {
47
23
  proposal_url: string | null;
48
24
  gmail_attachments: unknown[] | null;
49
25
  }
50
- type ChatTypeEnum = readonly ['por_proposta', 'global'];
51
- type IChatType = ChatTypeEnum[number];
52
- export interface IEditPreviewChatMessageRequest {
53
- text_to_chat: string;
54
- }
55
26
  export interface IRepository {
56
27
  auth(): Promise<string>;
57
28
  emails(): Promise<IGmailsResponse[]>;
58
29
  }
59
30
  export type IController = IShared.IEntityWithUserToken<IRepository>;
60
- export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nomalism-com/types",
3
3
  "description": "A nomalism package with all necessary types and validations for developing APIs",
4
- "version": "0.40.128",
4
+ "version": "0.40.130",
5
5
  "author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
@@ -29,10 +29,10 @@
29
29
  "joi": "^18.0.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@swc/core": "^1.15.10",
32
+ "@swc/core": "^1.15.11",
33
33
  "@types/node": "^24.10.9",
34
- "@typescript-eslint/eslint-plugin": "^8.53.1",
35
- "@typescript-eslint/parser": "^8.53.1",
34
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
35
+ "@typescript-eslint/parser": "^8.54.0",
36
36
  "eslint": "^9.39.2",
37
37
  "eslint-config-prettier": "^10.1.8",
38
38
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -1,2 +0,0 @@
1
- import joi from 'joi';
2
- export declare const editPreviewChatMessageRequest: joi.ObjectSchema<any>;