@nomalism-com/types 0.40.129 → 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 +92 -103
- package/dist/index.js +92 -103
- package/dist/main.d.ts +1 -2
- package/dist/modules/stock/gmails/interface.d.ts +1 -4
- package/package.json +1 -1
- package/dist/modules/stock/gmails/route.schema.d.ts +0 -3
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: () =>
|
|
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: () =>
|
|
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: () =>
|
|
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: () =>
|
|
97
|
+
NPFRoutes: () => route_schema_exports106,
|
|
99
98
|
NRCL: () => interface_exports60,
|
|
100
|
-
NRCLRoutes: () =>
|
|
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: () =>
|
|
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: () =>
|
|
121
|
+
PortalRoutes: () => route_schema_exports110,
|
|
123
122
|
PreSale: () => interface_exports37,
|
|
124
123
|
PreSaleProduct: () => interface_exports38,
|
|
125
124
|
PreSaleProductRoutes: () => route_schema_exports60,
|
|
@@ -5728,16 +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
|
-
authQuery: () => authQuery
|
|
5735
|
-
});
|
|
5736
|
-
import joi107 from "joi";
|
|
5737
|
-
var authQuery = joi107.object().keys({
|
|
5738
|
-
forceConsent: joi107.boolean().optional()
|
|
5739
|
-
}).messages(messages);
|
|
5740
|
-
|
|
5741
5730
|
// src/modules/document/NPF/interface.ts
|
|
5742
5731
|
var interface_exports59 = {};
|
|
5743
5732
|
__export(interface_exports59, {
|
|
@@ -5746,28 +5735,28 @@ __export(interface_exports59, {
|
|
|
5746
5735
|
var Route103 = "npf";
|
|
5747
5736
|
|
|
5748
5737
|
// src/modules/document/NPF/route.schema.ts
|
|
5749
|
-
var
|
|
5750
|
-
__export(
|
|
5738
|
+
var route_schema_exports106 = {};
|
|
5739
|
+
__export(route_schema_exports106, {
|
|
5751
5740
|
providerPaymentBody: () => providerPaymentBody
|
|
5752
5741
|
});
|
|
5753
|
-
import
|
|
5742
|
+
import joi107 from "joi";
|
|
5754
5743
|
var providerPaymentDocumentKeys = {
|
|
5755
|
-
document_header_id:
|
|
5756
|
-
value:
|
|
5757
|
-
discount_value:
|
|
5758
|
-
is:
|
|
5759
|
-
then:
|
|
5760
|
-
otherwise:
|
|
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"))
|
|
5761
5750
|
})
|
|
5762
5751
|
};
|
|
5763
|
-
var providerPaymentDocument =
|
|
5752
|
+
var providerPaymentDocument = joi107.object().keys(providerPaymentDocumentKeys).required();
|
|
5764
5753
|
var providerPaymentBodyKeys = {
|
|
5765
|
-
provider_id:
|
|
5766
|
-
client_id:
|
|
5767
|
-
documents:
|
|
5768
|
-
total:
|
|
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()
|
|
5769
5758
|
};
|
|
5770
|
-
var providerPaymentBody =
|
|
5759
|
+
var providerPaymentBody = joi107.array().items(joi107.object().keys(providerPaymentBodyKeys)).messages(messages);
|
|
5771
5760
|
|
|
5772
5761
|
// src/modules/document/NRCL/interface.ts
|
|
5773
5762
|
var interface_exports60 = {};
|
|
@@ -5781,27 +5770,27 @@ var UpperName102 = "DocumentHeader";
|
|
|
5781
5770
|
var LowerName102 = UpperName102[0].toLowerCase() + UpperName102.substring(1);
|
|
5782
5771
|
|
|
5783
5772
|
// src/modules/document/NRCL/route.schema.ts
|
|
5784
|
-
var
|
|
5785
|
-
__export(
|
|
5773
|
+
var route_schema_exports107 = {};
|
|
5774
|
+
__export(route_schema_exports107, {
|
|
5786
5775
|
regularizarMultiplosBody: () => regularizarMultiplosBody
|
|
5787
5776
|
});
|
|
5788
|
-
import
|
|
5777
|
+
import joi108 from "joi";
|
|
5789
5778
|
var multipleDocumentsBodyKeys = {
|
|
5790
|
-
owner_id:
|
|
5791
|
-
document_header_id:
|
|
5792
|
-
type:
|
|
5793
|
-
value:
|
|
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()
|
|
5794
5783
|
};
|
|
5795
5784
|
var multiplePaymentsBodyKeys = {
|
|
5796
|
-
value:
|
|
5797
|
-
payment_method_id:
|
|
5798
|
-
payment_method:
|
|
5785
|
+
value: joi108.number().positive().required(),
|
|
5786
|
+
payment_method_id: joi108.string().uuid().required(),
|
|
5787
|
+
payment_method: joi108.string().required()
|
|
5799
5788
|
};
|
|
5800
5789
|
var regularizarMultiplosBodyKeys = {
|
|
5801
|
-
documents:
|
|
5802
|
-
payments:
|
|
5790
|
+
documents: joi108.array().items(multipleDocumentsBodyKeys).required(),
|
|
5791
|
+
payments: joi108.array().items(multiplePaymentsBodyKeys).optional()
|
|
5803
5792
|
};
|
|
5804
|
-
var regularizarMultiplosBody =
|
|
5793
|
+
var regularizarMultiplosBody = joi108.object().keys(regularizarMultiplosBodyKeys).messages(messages);
|
|
5805
5794
|
|
|
5806
5795
|
// src/modules/supply/currentAccount/interface.ts
|
|
5807
5796
|
var interface_exports61 = {};
|
|
@@ -5822,8 +5811,8 @@ var IExportCurrentAccountOutputEnum = {
|
|
|
5822
5811
|
var IExportCurrentAccountOutputOptions = Object.keys(IExportCurrentAccountOutputEnum);
|
|
5823
5812
|
|
|
5824
5813
|
// src/modules/supply/currentAccount/route.schema.ts
|
|
5825
|
-
var
|
|
5826
|
-
__export(
|
|
5814
|
+
var route_schema_exports108 = {};
|
|
5815
|
+
__export(route_schema_exports108, {
|
|
5827
5816
|
exportCurrentAccountBetweenDatesQuery: () => exportCurrentAccountBetweenDatesQuery,
|
|
5828
5817
|
exportPaymentsBody: () => exportPaymentsBody,
|
|
5829
5818
|
findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery,
|
|
@@ -5832,39 +5821,39 @@ __export(route_schema_exports109, {
|
|
|
5832
5821
|
findSettledMaterialEntranceQuery: () => findSettledMaterialEntranceQuery2,
|
|
5833
5822
|
findWithPaginationQuery: () => findWithPaginationQuery28
|
|
5834
5823
|
});
|
|
5835
|
-
import
|
|
5824
|
+
import joi109 from "joi";
|
|
5836
5825
|
var findQueryKeys32 = {};
|
|
5837
|
-
var findQuery34 =
|
|
5826
|
+
var findQuery34 = joi109.object().keys(findQueryKeys32).messages(messages);
|
|
5838
5827
|
var findWithPaginationQueryKeys29 = {
|
|
5839
|
-
per_page:
|
|
5840
|
-
current_page:
|
|
5828
|
+
per_page: joi109.number().integer().positive().default(10).optional(),
|
|
5829
|
+
current_page: joi109.number().integer().positive().default(1).optional()
|
|
5841
5830
|
};
|
|
5842
|
-
var findWithPaginationQuery28 =
|
|
5831
|
+
var findWithPaginationQuery28 = joi109.object().keys(findWithPaginationQueryKeys29).messages(messages);
|
|
5843
5832
|
var findSettledMaterialEntranceQueryKeys2 = {
|
|
5844
|
-
provider_id:
|
|
5845
|
-
client_id:
|
|
5833
|
+
provider_id: joi109.string().uuid().required(),
|
|
5834
|
+
client_id: joi109.string().uuid().allow(null).required()
|
|
5846
5835
|
};
|
|
5847
|
-
var findSettledMaterialEntranceQuery2 =
|
|
5836
|
+
var findSettledMaterialEntranceQuery2 = joi109.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
|
|
5848
5837
|
var exportPaymentsBodyKeys = {
|
|
5849
|
-
value:
|
|
5850
|
-
provider:
|
|
5851
|
-
npf_ids:
|
|
5838
|
+
value: joi109.number().positive().required(),
|
|
5839
|
+
provider: joi109.string().required(),
|
|
5840
|
+
npf_ids: joi109.array().items(joi109.string().uuid().required()).optional()
|
|
5852
5841
|
};
|
|
5853
|
-
var exportPaymentsBody =
|
|
5842
|
+
var exportPaymentsBody = joi109.array().items(joi109.object().keys(exportPaymentsBodyKeys)).messages(messages);
|
|
5854
5843
|
var exportCurrentAccountBetweenDatesQueryKeys = {
|
|
5855
|
-
owner_id:
|
|
5856
|
-
output:
|
|
5857
|
-
start_date:
|
|
5858
|
-
end_date:
|
|
5859
|
-
token:
|
|
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()
|
|
5860
5849
|
};
|
|
5861
|
-
var exportCurrentAccountBetweenDatesQuery =
|
|
5850
|
+
var exportCurrentAccountBetweenDatesQuery = joi109.object().keys(exportCurrentAccountBetweenDatesQueryKeys).messages(messages);
|
|
5862
5851
|
var findSettledMaterialEntranceBuDateParamsKeys2 = {
|
|
5863
|
-
due_date:
|
|
5852
|
+
due_date: joi109.string().optional()
|
|
5864
5853
|
};
|
|
5865
|
-
var findSettledMaterialEntranceBuDateParams2 =
|
|
5866
|
-
var findPaymentsNotExportedQuery =
|
|
5867
|
-
whiteList:
|
|
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()
|
|
5868
5857
|
}).messages(messages);
|
|
5869
5858
|
|
|
5870
5859
|
// src/modules/supply/paymentBatch/interface.ts
|
|
@@ -5879,20 +5868,20 @@ var UpperName104 = "Payment";
|
|
|
5879
5868
|
var LowerName104 = UpperName104[0].toLowerCase() + UpperName104.substring(1);
|
|
5880
5869
|
|
|
5881
5870
|
// src/modules/supply/paymentBatch/route.schema.ts
|
|
5882
|
-
var
|
|
5883
|
-
__export(
|
|
5871
|
+
var route_schema_exports109 = {};
|
|
5872
|
+
__export(route_schema_exports109, {
|
|
5884
5873
|
exportPaymentsBody: () => exportPaymentsBody2,
|
|
5885
5874
|
findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery2
|
|
5886
5875
|
});
|
|
5887
|
-
import
|
|
5876
|
+
import joi110 from "joi";
|
|
5888
5877
|
var exportPaymentsBodyKeys2 = {
|
|
5889
|
-
value:
|
|
5890
|
-
provider:
|
|
5891
|
-
npf_ids:
|
|
5878
|
+
value: joi110.number().positive().required(),
|
|
5879
|
+
provider: joi110.string().required(),
|
|
5880
|
+
npf_ids: joi110.array().items(joi110.string().uuid().required()).optional()
|
|
5892
5881
|
};
|
|
5893
|
-
var exportPaymentsBody2 =
|
|
5894
|
-
var findPaymentsNotExportedQuery2 =
|
|
5895
|
-
whiteList:
|
|
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()
|
|
5896
5885
|
}).messages(messages);
|
|
5897
5886
|
|
|
5898
5887
|
// src/modules/ui/portal/interface.ts
|
|
@@ -5907,28 +5896,28 @@ var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteT
|
|
|
5907
5896
|
})(IPublicDocumentHeaderNoteType || {});
|
|
5908
5897
|
|
|
5909
5898
|
// src/modules/ui/portal/route.schema.ts
|
|
5910
|
-
var
|
|
5911
|
-
__export(
|
|
5899
|
+
var route_schema_exports110 = {};
|
|
5900
|
+
__export(route_schema_exports110, {
|
|
5912
5901
|
createNoteBody: () => createNoteBody,
|
|
5913
5902
|
publicFindByOwnerId: () => publicFindByOwnerId,
|
|
5914
5903
|
updateNoteBody: () => updateNoteBody
|
|
5915
5904
|
});
|
|
5916
|
-
import
|
|
5905
|
+
import joi111 from "joi";
|
|
5917
5906
|
var createNoteBodyKeys = {
|
|
5918
|
-
document_header_id:
|
|
5919
|
-
note:
|
|
5920
|
-
type:
|
|
5907
|
+
document_header_id: joi111.string().uuid().required(),
|
|
5908
|
+
note: joi111.string().required(),
|
|
5909
|
+
type: joi111.string().required().valid("Client", "Provider")
|
|
5921
5910
|
};
|
|
5922
|
-
var createNoteBody =
|
|
5911
|
+
var createNoteBody = joi111.object().keys(createNoteBodyKeys).messages(messages);
|
|
5923
5912
|
var updateNoteBodyKeys = {
|
|
5924
|
-
note:
|
|
5913
|
+
note: joi111.string().required().allow("")
|
|
5925
5914
|
};
|
|
5926
|
-
var updateNoteBody =
|
|
5915
|
+
var updateNoteBody = joi111.object().keys(updateNoteBodyKeys).messages(messages);
|
|
5927
5916
|
var publicFindByOwnerIdParams = {
|
|
5928
|
-
owner_id:
|
|
5929
|
-
include_closed:
|
|
5917
|
+
owner_id: joi111.string().uuid().required(),
|
|
5918
|
+
include_closed: joi111.boolean().optional()
|
|
5930
5919
|
};
|
|
5931
|
-
var publicFindByOwnerId =
|
|
5920
|
+
var publicFindByOwnerId = joi111.object().keys(publicFindByOwnerIdParams).messages(messages);
|
|
5932
5921
|
|
|
5933
5922
|
// src/modules/stock/googleSheetPool/interface.ts
|
|
5934
5923
|
var interface_exports64 = {};
|
|
@@ -5953,15 +5942,15 @@ var UpperName106 = "AccountCode";
|
|
|
5953
5942
|
var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
|
|
5954
5943
|
|
|
5955
5944
|
// src/modules/stock/accountCode/route.schema.ts
|
|
5956
|
-
var
|
|
5957
|
-
__export(
|
|
5945
|
+
var route_schema_exports111 = {};
|
|
5946
|
+
__export(route_schema_exports111, {
|
|
5958
5947
|
findByCode: () => findByCode
|
|
5959
5948
|
});
|
|
5960
|
-
import
|
|
5949
|
+
import joi112 from "joi";
|
|
5961
5950
|
var findByCodeParams = {
|
|
5962
|
-
code:
|
|
5951
|
+
code: joi112.string().required()
|
|
5963
5952
|
};
|
|
5964
|
-
var findByCode =
|
|
5953
|
+
var findByCode = joi112.object().keys(findByCodeParams).messages(messages);
|
|
5965
5954
|
|
|
5966
5955
|
// src/modules/llm/llm/interfaces.ts
|
|
5967
5956
|
var interfaces_exports57 = {};
|
|
@@ -5971,17 +5960,17 @@ __export(interfaces_exports57, {
|
|
|
5971
5960
|
var Route109 = "llm";
|
|
5972
5961
|
|
|
5973
5962
|
// src/modules/llm/llm/route.schema.ts
|
|
5974
|
-
var
|
|
5975
|
-
__export(
|
|
5963
|
+
var route_schema_exports112 = {};
|
|
5964
|
+
__export(route_schema_exports112, {
|
|
5976
5965
|
promptBody: () => promptBody
|
|
5977
5966
|
});
|
|
5978
|
-
import
|
|
5967
|
+
import joi113 from "joi";
|
|
5979
5968
|
var promptBodyKeys = {
|
|
5980
|
-
prompt:
|
|
5981
|
-
owner_id:
|
|
5982
|
-
document_header_id:
|
|
5969
|
+
prompt: joi113.string().required(),
|
|
5970
|
+
owner_id: joi113.string().required(),
|
|
5971
|
+
document_header_id: joi113.string().required()
|
|
5983
5972
|
};
|
|
5984
|
-
var promptBody =
|
|
5973
|
+
var promptBody = joi113.object().keys(promptBodyKeys).messages(messages);
|
|
5985
5974
|
|
|
5986
5975
|
// src/modules/integration/patchNotes/interfaces.ts
|
|
5987
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: () =>
|
|
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: () =>
|
|
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: () =>
|
|
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: () =>
|
|
97
|
+
NPFRoutes: () => route_schema_exports106,
|
|
99
98
|
NRCL: () => interface_exports60,
|
|
100
|
-
NRCLRoutes: () =>
|
|
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: () =>
|
|
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: () =>
|
|
121
|
+
PortalRoutes: () => route_schema_exports110,
|
|
123
122
|
PreSale: () => interface_exports37,
|
|
124
123
|
PreSaleProduct: () => interface_exports38,
|
|
125
124
|
PreSaleProductRoutes: () => route_schema_exports60,
|
|
@@ -5728,16 +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
|
-
authQuery: () => authQuery
|
|
5735
|
-
});
|
|
5736
|
-
import joi107 from "joi";
|
|
5737
|
-
var authQuery = joi107.object().keys({
|
|
5738
|
-
forceConsent: joi107.boolean().optional()
|
|
5739
|
-
}).messages(messages);
|
|
5740
|
-
|
|
5741
5730
|
// src/modules/document/NPF/interface.ts
|
|
5742
5731
|
var interface_exports59 = {};
|
|
5743
5732
|
__export(interface_exports59, {
|
|
@@ -5746,28 +5735,28 @@ __export(interface_exports59, {
|
|
|
5746
5735
|
var Route103 = "npf";
|
|
5747
5736
|
|
|
5748
5737
|
// src/modules/document/NPF/route.schema.ts
|
|
5749
|
-
var
|
|
5750
|
-
__export(
|
|
5738
|
+
var route_schema_exports106 = {};
|
|
5739
|
+
__export(route_schema_exports106, {
|
|
5751
5740
|
providerPaymentBody: () => providerPaymentBody
|
|
5752
5741
|
});
|
|
5753
|
-
import
|
|
5742
|
+
import joi107 from "joi";
|
|
5754
5743
|
var providerPaymentDocumentKeys = {
|
|
5755
|
-
document_header_id:
|
|
5756
|
-
value:
|
|
5757
|
-
discount_value:
|
|
5758
|
-
is:
|
|
5759
|
-
then:
|
|
5760
|
-
otherwise:
|
|
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"))
|
|
5761
5750
|
})
|
|
5762
5751
|
};
|
|
5763
|
-
var providerPaymentDocument =
|
|
5752
|
+
var providerPaymentDocument = joi107.object().keys(providerPaymentDocumentKeys).required();
|
|
5764
5753
|
var providerPaymentBodyKeys = {
|
|
5765
|
-
provider_id:
|
|
5766
|
-
client_id:
|
|
5767
|
-
documents:
|
|
5768
|
-
total:
|
|
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()
|
|
5769
5758
|
};
|
|
5770
|
-
var providerPaymentBody =
|
|
5759
|
+
var providerPaymentBody = joi107.array().items(joi107.object().keys(providerPaymentBodyKeys)).messages(messages);
|
|
5771
5760
|
|
|
5772
5761
|
// src/modules/document/NRCL/interface.ts
|
|
5773
5762
|
var interface_exports60 = {};
|
|
@@ -5781,27 +5770,27 @@ var UpperName102 = "DocumentHeader";
|
|
|
5781
5770
|
var LowerName102 = UpperName102[0].toLowerCase() + UpperName102.substring(1);
|
|
5782
5771
|
|
|
5783
5772
|
// src/modules/document/NRCL/route.schema.ts
|
|
5784
|
-
var
|
|
5785
|
-
__export(
|
|
5773
|
+
var route_schema_exports107 = {};
|
|
5774
|
+
__export(route_schema_exports107, {
|
|
5786
5775
|
regularizarMultiplosBody: () => regularizarMultiplosBody
|
|
5787
5776
|
});
|
|
5788
|
-
import
|
|
5777
|
+
import joi108 from "joi";
|
|
5789
5778
|
var multipleDocumentsBodyKeys = {
|
|
5790
|
-
owner_id:
|
|
5791
|
-
document_header_id:
|
|
5792
|
-
type:
|
|
5793
|
-
value:
|
|
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()
|
|
5794
5783
|
};
|
|
5795
5784
|
var multiplePaymentsBodyKeys = {
|
|
5796
|
-
value:
|
|
5797
|
-
payment_method_id:
|
|
5798
|
-
payment_method:
|
|
5785
|
+
value: joi108.number().positive().required(),
|
|
5786
|
+
payment_method_id: joi108.string().uuid().required(),
|
|
5787
|
+
payment_method: joi108.string().required()
|
|
5799
5788
|
};
|
|
5800
5789
|
var regularizarMultiplosBodyKeys = {
|
|
5801
|
-
documents:
|
|
5802
|
-
payments:
|
|
5790
|
+
documents: joi108.array().items(multipleDocumentsBodyKeys).required(),
|
|
5791
|
+
payments: joi108.array().items(multiplePaymentsBodyKeys).optional()
|
|
5803
5792
|
};
|
|
5804
|
-
var regularizarMultiplosBody =
|
|
5793
|
+
var regularizarMultiplosBody = joi108.object().keys(regularizarMultiplosBodyKeys).messages(messages);
|
|
5805
5794
|
|
|
5806
5795
|
// src/modules/supply/currentAccount/interface.ts
|
|
5807
5796
|
var interface_exports61 = {};
|
|
@@ -5822,8 +5811,8 @@ var IExportCurrentAccountOutputEnum = {
|
|
|
5822
5811
|
var IExportCurrentAccountOutputOptions = Object.keys(IExportCurrentAccountOutputEnum);
|
|
5823
5812
|
|
|
5824
5813
|
// src/modules/supply/currentAccount/route.schema.ts
|
|
5825
|
-
var
|
|
5826
|
-
__export(
|
|
5814
|
+
var route_schema_exports108 = {};
|
|
5815
|
+
__export(route_schema_exports108, {
|
|
5827
5816
|
exportCurrentAccountBetweenDatesQuery: () => exportCurrentAccountBetweenDatesQuery,
|
|
5828
5817
|
exportPaymentsBody: () => exportPaymentsBody,
|
|
5829
5818
|
findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery,
|
|
@@ -5832,39 +5821,39 @@ __export(route_schema_exports109, {
|
|
|
5832
5821
|
findSettledMaterialEntranceQuery: () => findSettledMaterialEntranceQuery2,
|
|
5833
5822
|
findWithPaginationQuery: () => findWithPaginationQuery28
|
|
5834
5823
|
});
|
|
5835
|
-
import
|
|
5824
|
+
import joi109 from "joi";
|
|
5836
5825
|
var findQueryKeys32 = {};
|
|
5837
|
-
var findQuery34 =
|
|
5826
|
+
var findQuery34 = joi109.object().keys(findQueryKeys32).messages(messages);
|
|
5838
5827
|
var findWithPaginationQueryKeys29 = {
|
|
5839
|
-
per_page:
|
|
5840
|
-
current_page:
|
|
5828
|
+
per_page: joi109.number().integer().positive().default(10).optional(),
|
|
5829
|
+
current_page: joi109.number().integer().positive().default(1).optional()
|
|
5841
5830
|
};
|
|
5842
|
-
var findWithPaginationQuery28 =
|
|
5831
|
+
var findWithPaginationQuery28 = joi109.object().keys(findWithPaginationQueryKeys29).messages(messages);
|
|
5843
5832
|
var findSettledMaterialEntranceQueryKeys2 = {
|
|
5844
|
-
provider_id:
|
|
5845
|
-
client_id:
|
|
5833
|
+
provider_id: joi109.string().uuid().required(),
|
|
5834
|
+
client_id: joi109.string().uuid().allow(null).required()
|
|
5846
5835
|
};
|
|
5847
|
-
var findSettledMaterialEntranceQuery2 =
|
|
5836
|
+
var findSettledMaterialEntranceQuery2 = joi109.object().keys(findSettledMaterialEntranceQueryKeys2).messages(messages);
|
|
5848
5837
|
var exportPaymentsBodyKeys = {
|
|
5849
|
-
value:
|
|
5850
|
-
provider:
|
|
5851
|
-
npf_ids:
|
|
5838
|
+
value: joi109.number().positive().required(),
|
|
5839
|
+
provider: joi109.string().required(),
|
|
5840
|
+
npf_ids: joi109.array().items(joi109.string().uuid().required()).optional()
|
|
5852
5841
|
};
|
|
5853
|
-
var exportPaymentsBody =
|
|
5842
|
+
var exportPaymentsBody = joi109.array().items(joi109.object().keys(exportPaymentsBodyKeys)).messages(messages);
|
|
5854
5843
|
var exportCurrentAccountBetweenDatesQueryKeys = {
|
|
5855
|
-
owner_id:
|
|
5856
|
-
output:
|
|
5857
|
-
start_date:
|
|
5858
|
-
end_date:
|
|
5859
|
-
token:
|
|
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()
|
|
5860
5849
|
};
|
|
5861
|
-
var exportCurrentAccountBetweenDatesQuery =
|
|
5850
|
+
var exportCurrentAccountBetweenDatesQuery = joi109.object().keys(exportCurrentAccountBetweenDatesQueryKeys).messages(messages);
|
|
5862
5851
|
var findSettledMaterialEntranceBuDateParamsKeys2 = {
|
|
5863
|
-
due_date:
|
|
5852
|
+
due_date: joi109.string().optional()
|
|
5864
5853
|
};
|
|
5865
|
-
var findSettledMaterialEntranceBuDateParams2 =
|
|
5866
|
-
var findPaymentsNotExportedQuery =
|
|
5867
|
-
whiteList:
|
|
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()
|
|
5868
5857
|
}).messages(messages);
|
|
5869
5858
|
|
|
5870
5859
|
// src/modules/supply/paymentBatch/interface.ts
|
|
@@ -5879,20 +5868,20 @@ var UpperName104 = "Payment";
|
|
|
5879
5868
|
var LowerName104 = UpperName104[0].toLowerCase() + UpperName104.substring(1);
|
|
5880
5869
|
|
|
5881
5870
|
// src/modules/supply/paymentBatch/route.schema.ts
|
|
5882
|
-
var
|
|
5883
|
-
__export(
|
|
5871
|
+
var route_schema_exports109 = {};
|
|
5872
|
+
__export(route_schema_exports109, {
|
|
5884
5873
|
exportPaymentsBody: () => exportPaymentsBody2,
|
|
5885
5874
|
findPaymentsNotExportedQuery: () => findPaymentsNotExportedQuery2
|
|
5886
5875
|
});
|
|
5887
|
-
import
|
|
5876
|
+
import joi110 from "joi";
|
|
5888
5877
|
var exportPaymentsBodyKeys2 = {
|
|
5889
|
-
value:
|
|
5890
|
-
provider:
|
|
5891
|
-
npf_ids:
|
|
5878
|
+
value: joi110.number().positive().required(),
|
|
5879
|
+
provider: joi110.string().required(),
|
|
5880
|
+
npf_ids: joi110.array().items(joi110.string().uuid().required()).optional()
|
|
5892
5881
|
};
|
|
5893
|
-
var exportPaymentsBody2 =
|
|
5894
|
-
var findPaymentsNotExportedQuery2 =
|
|
5895
|
-
whiteList:
|
|
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()
|
|
5896
5885
|
}).messages(messages);
|
|
5897
5886
|
|
|
5898
5887
|
// src/modules/ui/portal/interface.ts
|
|
@@ -5907,28 +5896,28 @@ var IPublicDocumentHeaderNoteType = /* @__PURE__ */ ((IPublicDocumentHeaderNoteT
|
|
|
5907
5896
|
})(IPublicDocumentHeaderNoteType || {});
|
|
5908
5897
|
|
|
5909
5898
|
// src/modules/ui/portal/route.schema.ts
|
|
5910
|
-
var
|
|
5911
|
-
__export(
|
|
5899
|
+
var route_schema_exports110 = {};
|
|
5900
|
+
__export(route_schema_exports110, {
|
|
5912
5901
|
createNoteBody: () => createNoteBody,
|
|
5913
5902
|
publicFindByOwnerId: () => publicFindByOwnerId,
|
|
5914
5903
|
updateNoteBody: () => updateNoteBody
|
|
5915
5904
|
});
|
|
5916
|
-
import
|
|
5905
|
+
import joi111 from "joi";
|
|
5917
5906
|
var createNoteBodyKeys = {
|
|
5918
|
-
document_header_id:
|
|
5919
|
-
note:
|
|
5920
|
-
type:
|
|
5907
|
+
document_header_id: joi111.string().uuid().required(),
|
|
5908
|
+
note: joi111.string().required(),
|
|
5909
|
+
type: joi111.string().required().valid("Client", "Provider")
|
|
5921
5910
|
};
|
|
5922
|
-
var createNoteBody =
|
|
5911
|
+
var createNoteBody = joi111.object().keys(createNoteBodyKeys).messages(messages);
|
|
5923
5912
|
var updateNoteBodyKeys = {
|
|
5924
|
-
note:
|
|
5913
|
+
note: joi111.string().required().allow("")
|
|
5925
5914
|
};
|
|
5926
|
-
var updateNoteBody =
|
|
5915
|
+
var updateNoteBody = joi111.object().keys(updateNoteBodyKeys).messages(messages);
|
|
5927
5916
|
var publicFindByOwnerIdParams = {
|
|
5928
|
-
owner_id:
|
|
5929
|
-
include_closed:
|
|
5917
|
+
owner_id: joi111.string().uuid().required(),
|
|
5918
|
+
include_closed: joi111.boolean().optional()
|
|
5930
5919
|
};
|
|
5931
|
-
var publicFindByOwnerId =
|
|
5920
|
+
var publicFindByOwnerId = joi111.object().keys(publicFindByOwnerIdParams).messages(messages);
|
|
5932
5921
|
|
|
5933
5922
|
// src/modules/stock/googleSheetPool/interface.ts
|
|
5934
5923
|
var interface_exports64 = {};
|
|
@@ -5953,15 +5942,15 @@ var UpperName106 = "AccountCode";
|
|
|
5953
5942
|
var LowerName106 = UpperName106[0].toLowerCase() + UpperName106.substring(1);
|
|
5954
5943
|
|
|
5955
5944
|
// src/modules/stock/accountCode/route.schema.ts
|
|
5956
|
-
var
|
|
5957
|
-
__export(
|
|
5945
|
+
var route_schema_exports111 = {};
|
|
5946
|
+
__export(route_schema_exports111, {
|
|
5958
5947
|
findByCode: () => findByCode
|
|
5959
5948
|
});
|
|
5960
|
-
import
|
|
5949
|
+
import joi112 from "joi";
|
|
5961
5950
|
var findByCodeParams = {
|
|
5962
|
-
code:
|
|
5951
|
+
code: joi112.string().required()
|
|
5963
5952
|
};
|
|
5964
|
-
var findByCode =
|
|
5953
|
+
var findByCode = joi112.object().keys(findByCodeParams).messages(messages);
|
|
5965
5954
|
|
|
5966
5955
|
// src/modules/llm/llm/interfaces.ts
|
|
5967
5956
|
var interfaces_exports57 = {};
|
|
@@ -5971,17 +5960,17 @@ __export(interfaces_exports57, {
|
|
|
5971
5960
|
var Route109 = "llm";
|
|
5972
5961
|
|
|
5973
5962
|
// src/modules/llm/llm/route.schema.ts
|
|
5974
|
-
var
|
|
5975
|
-
__export(
|
|
5963
|
+
var route_schema_exports112 = {};
|
|
5964
|
+
__export(route_schema_exports112, {
|
|
5976
5965
|
promptBody: () => promptBody
|
|
5977
5966
|
});
|
|
5978
|
-
import
|
|
5967
|
+
import joi113 from "joi";
|
|
5979
5968
|
var promptBodyKeys = {
|
|
5980
|
-
prompt:
|
|
5981
|
-
owner_id:
|
|
5982
|
-
document_header_id:
|
|
5969
|
+
prompt: joi113.string().required(),
|
|
5970
|
+
owner_id: joi113.string().required(),
|
|
5971
|
+
document_header_id: joi113.string().required()
|
|
5983
5972
|
};
|
|
5984
|
-
var promptBody =
|
|
5973
|
+
var promptBody = joi113.object().keys(promptBodyKeys).messages(messages);
|
|
5985
5974
|
|
|
5986
5975
|
// src/modules/integration/patchNotes/interfaces.ts
|
|
5987
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,
|
|
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, };
|
|
@@ -23,11 +23,8 @@ export interface IGmailsResponse {
|
|
|
23
23
|
proposal_url: string | null;
|
|
24
24
|
gmail_attachments: unknown[] | null;
|
|
25
25
|
}
|
|
26
|
-
export interface IAuthRequest {
|
|
27
|
-
forceConsent: boolean;
|
|
28
|
-
}
|
|
29
26
|
export interface IRepository {
|
|
30
|
-
auth(
|
|
27
|
+
auth(): Promise<string>;
|
|
31
28
|
emails(): Promise<IGmailsResponse[]>;
|
|
32
29
|
}
|
|
33
30
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
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.
|
|
4
|
+
"version": "0.40.130",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|