@nomalism-com/types 1.3.59 → 1.3.61
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 +128 -53
- package/dist/index.js +122 -47
- package/dist/main.d.ts +2 -2
- package/dist/modules/stock/chat/interfaces.d.ts +0 -1
- package/dist/modules/stock/displayLabel/interface.d.ts +6 -1
- package/dist/modules/stock/productUpdate/interface.d.ts +214 -0
- package/dist/modules/supply/currentAccount/interface.d.ts +9 -0
- package/dist/modules/supply/payment/interface.d.ts +2 -0
- package/dist/modules/supply/paymentBatch/interface.d.ts +2 -0
- package/package.json +4 -4
- package/dist/modules/stock/taskRead/interface.d.ts +0 -11
package/dist/index.cjs
CHANGED
|
@@ -95,10 +95,11 @@ __export(main_exports, {
|
|
|
95
95
|
ProductGoogleSheets: () => interface_exports19,
|
|
96
96
|
ProductImage: () => interface_exports20,
|
|
97
97
|
ProductLocation: () => interface_exports21,
|
|
98
|
+
ProductUpdate: () => interface_exports22,
|
|
98
99
|
ProductionOrder: () => interfaces_exports11,
|
|
99
100
|
Proforma: () => interfaces_exports12,
|
|
100
101
|
ProjectInfo: () => interfaces_exports34,
|
|
101
|
-
Promotion: () =>
|
|
102
|
+
Promotion: () => interface_exports23,
|
|
102
103
|
PropostaFornecedor: () => interfaces_exports13,
|
|
103
104
|
PropostaSheets: () => interface_exports4,
|
|
104
105
|
ProviderCreditNoteFromReturn: () => interfaces_exports14,
|
|
@@ -113,7 +114,7 @@ __export(main_exports, {
|
|
|
113
114
|
QueryParameter: () => interfaces_exports45,
|
|
114
115
|
ReasonForExemption: () => interface_exports62,
|
|
115
116
|
Recibo: () => interfaces_exports19,
|
|
116
|
-
RecurrentTasks: () =>
|
|
117
|
+
RecurrentTasks: () => interface_exports24,
|
|
117
118
|
RefreshToken: () => interface_exports63,
|
|
118
119
|
ReturnReason: () => interfaces_exports46,
|
|
119
120
|
ReturnToProvider: () => interface_exports5,
|
|
@@ -131,15 +132,14 @@ __export(main_exports, {
|
|
|
131
132
|
SmsSender: () => interfaces_exports41,
|
|
132
133
|
SmsTemplate: () => interfaces_exports42,
|
|
133
134
|
StartDocumentHeaderLastUpdate: () => interface_exports46,
|
|
134
|
-
StockMovement: () =>
|
|
135
|
+
StockMovement: () => interface_exports25,
|
|
135
136
|
StoreOperator: () => interface_exports67,
|
|
136
137
|
StoreOperatorSaftLock: () => interface_exports50,
|
|
137
138
|
Swift: () => interface_exports68,
|
|
138
139
|
SystemModule: () => interface_exports69,
|
|
139
|
-
Tag: () =>
|
|
140
|
-
Task: () =>
|
|
141
|
-
TaskMessage: () =>
|
|
142
|
-
TaskRead: () => interface_exports28,
|
|
140
|
+
Tag: () => interface_exports26,
|
|
141
|
+
Task: () => interface_exports27,
|
|
142
|
+
TaskMessage: () => interface_exports28,
|
|
143
143
|
Tenant: () => interface_exports70,
|
|
144
144
|
TenantSaftLock: () => interface_exports51,
|
|
145
145
|
Theme: () => interfaces_exports69,
|
|
@@ -832,30 +832,112 @@ __export(interface_exports21, {
|
|
|
832
832
|
});
|
|
833
833
|
var Route64 = "product_location";
|
|
834
834
|
|
|
835
|
-
// src/modules/stock/
|
|
835
|
+
// src/modules/stock/productUpdate/interface.ts
|
|
836
836
|
var interface_exports22 = {};
|
|
837
837
|
__export(interface_exports22, {
|
|
838
|
-
|
|
838
|
+
ApplyActionLabels: () => ApplyActionLabels,
|
|
839
|
+
ApplyStatusEnum: () => ApplyStatusEnum,
|
|
840
|
+
ExtractErrorCodeEnum: () => ExtractErrorCodeEnum,
|
|
841
|
+
ImportTabEnum: () => ImportTabEnum,
|
|
842
|
+
ImportTabLabels: () => ImportTabLabels,
|
|
843
|
+
LengthUnitEnum: () => LengthUnitEnum,
|
|
844
|
+
MasterColumnKinds: () => MasterColumnKinds,
|
|
845
|
+
RefMatchEnum: () => RefMatchEnum,
|
|
846
|
+
RefMatchLabels: () => RefMatchLabels,
|
|
847
|
+
Route: () => Route65,
|
|
848
|
+
WeightUnitEnum: () => WeightUnitEnum
|
|
849
|
+
});
|
|
850
|
+
var Route65 = "product_update";
|
|
851
|
+
var ExtractErrorCodeEnum = {
|
|
852
|
+
NOT_A_PDF: "NOT_A_PDF",
|
|
853
|
+
// o multimedia não é um PDF
|
|
854
|
+
INVALID_PDF: "INVALID_PDF",
|
|
855
|
+
// PDF corrompido/ilegível
|
|
856
|
+
FILE_NOT_FOUND: "FILE_NOT_FOUND",
|
|
857
|
+
// multimedia_id inexistente
|
|
858
|
+
TIMEOUT: "TIMEOUT",
|
|
859
|
+
// o Python excedeu o tempo máximo
|
|
860
|
+
EXTRACTION_FAILED: "EXTRACTION_FAILED"
|
|
861
|
+
// outra falha
|
|
862
|
+
};
|
|
863
|
+
var ImportTabEnum = {
|
|
864
|
+
PRODUTOS: "PRODUTOS",
|
|
865
|
+
// stock
|
|
866
|
+
NOVA_ENCOMENDA: "NOVA_ENCOMENDA"
|
|
867
|
+
// encomenda (pré-artigos)
|
|
868
|
+
};
|
|
869
|
+
var ImportTabLabels = {
|
|
870
|
+
PRODUTOS: "Stock (PRODUTOS)",
|
|
871
|
+
NOVA_ENCOMENDA: "Encomenda (NOVA_ENCOMENDA)"
|
|
872
|
+
};
|
|
873
|
+
var MasterColumnKinds = {
|
|
874
|
+
price_cost: "price",
|
|
875
|
+
price_sale: "price",
|
|
876
|
+
price_sale_less_3m: "price",
|
|
877
|
+
price_sale_greater_3m: "price",
|
|
878
|
+
price_sale_piece: "price",
|
|
879
|
+
shipping: "price",
|
|
880
|
+
margin: "number",
|
|
881
|
+
tax_value: "number",
|
|
882
|
+
max_discount: "number",
|
|
883
|
+
width: "length",
|
|
884
|
+
height: "length",
|
|
885
|
+
length: "length",
|
|
886
|
+
diameter: "length",
|
|
887
|
+
weight: "weight"
|
|
888
|
+
};
|
|
889
|
+
var LengthUnitEnum = {
|
|
890
|
+
m: "m",
|
|
891
|
+
cm: "cm",
|
|
892
|
+
mm: "mm"
|
|
893
|
+
};
|
|
894
|
+
var WeightUnitEnum = { kg: "kg", g: "g" };
|
|
895
|
+
var RefMatchEnum = {
|
|
896
|
+
exact: "exact",
|
|
897
|
+
contains: "contains"
|
|
898
|
+
};
|
|
899
|
+
var RefMatchLabels = {
|
|
900
|
+
exact: "Igual \xE0 ref. fornecedor",
|
|
901
|
+
contains: "Contida na ref. fornecedor"
|
|
902
|
+
};
|
|
903
|
+
var ApplyStatusEnum = {
|
|
904
|
+
applied: "applied",
|
|
905
|
+
// escrito no MA
|
|
906
|
+
conflict: "conflict",
|
|
907
|
+
// o MA mudou desde a análise: nada escrito
|
|
908
|
+
not_found: "not_found"
|
|
909
|
+
// a linha já não existe no MA
|
|
910
|
+
};
|
|
911
|
+
var ApplyActionLabels = {
|
|
912
|
+
update: "Alterar",
|
|
913
|
+
create: "Criar",
|
|
914
|
+
deactivate: "Desativar"
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
// src/modules/stock/promotion/interface.ts
|
|
918
|
+
var interface_exports23 = {};
|
|
919
|
+
__export(interface_exports23, {
|
|
920
|
+
Route: () => Route66
|
|
839
921
|
});
|
|
840
|
-
var
|
|
922
|
+
var Route66 = "promotion";
|
|
841
923
|
|
|
842
924
|
// src/modules/stock/queryList/interfaces.ts
|
|
843
925
|
var interfaces_exports44 = {};
|
|
844
926
|
__export(interfaces_exports44, {
|
|
845
|
-
Route: () =>
|
|
927
|
+
Route: () => Route67,
|
|
846
928
|
executeOutput: () => executeOutput
|
|
847
929
|
});
|
|
848
|
-
var
|
|
930
|
+
var Route67 = "query";
|
|
849
931
|
var executeOutput = ["csv", "pdf", "xlsx", "json"];
|
|
850
932
|
|
|
851
933
|
// src/modules/stock/queryParameter/interfaces.ts
|
|
852
934
|
var interfaces_exports45 = {};
|
|
853
935
|
__export(interfaces_exports45, {
|
|
854
936
|
QueryParameterDatatypeEnum: () => QueryParameterDatatypeEnum,
|
|
855
|
-
Route: () =>
|
|
937
|
+
Route: () => Route68,
|
|
856
938
|
queryParametersDatatypes: () => queryParametersDatatypes
|
|
857
939
|
});
|
|
858
|
-
var
|
|
940
|
+
var Route68 = "query_parameter";
|
|
859
941
|
var QueryParameterDatatypeEnum = {
|
|
860
942
|
boolean: "boolean",
|
|
861
943
|
decimal: "decimal",
|
|
@@ -871,50 +953,50 @@ var QueryParameterDatatypeEnum = {
|
|
|
871
953
|
var queryParametersDatatypes = Object.keys(QueryParameterDatatypeEnum);
|
|
872
954
|
|
|
873
955
|
// src/modules/stock/recurrentTasks/interface.ts
|
|
874
|
-
var
|
|
875
|
-
__export(
|
|
876
|
-
Route: () =>
|
|
956
|
+
var interface_exports24 = {};
|
|
957
|
+
__export(interface_exports24, {
|
|
958
|
+
Route: () => Route69
|
|
877
959
|
});
|
|
878
|
-
var
|
|
960
|
+
var Route69 = "recurrent_tasks";
|
|
879
961
|
|
|
880
962
|
// src/modules/stock/returnReason/interfaces.ts
|
|
881
963
|
var interfaces_exports46 = {};
|
|
882
964
|
__export(interfaces_exports46, {
|
|
883
|
-
Route: () =>
|
|
965
|
+
Route: () => Route70
|
|
884
966
|
});
|
|
885
|
-
var
|
|
967
|
+
var Route70 = "return_reason";
|
|
886
968
|
|
|
887
969
|
// src/modules/stock/saft/interfaces.ts
|
|
888
970
|
var interfaces_exports47 = {};
|
|
889
971
|
__export(interfaces_exports47, {
|
|
890
|
-
Route: () =>
|
|
972
|
+
Route: () => Route71
|
|
891
973
|
});
|
|
892
|
-
var
|
|
974
|
+
var Route71 = "saft";
|
|
893
975
|
|
|
894
976
|
// src/modules/stock/savedEmPicking/interfaces.ts
|
|
895
977
|
var interfaces_exports48 = {};
|
|
896
978
|
__export(interfaces_exports48, {
|
|
897
|
-
Route: () =>
|
|
979
|
+
Route: () => Route72
|
|
898
980
|
});
|
|
899
|
-
var
|
|
981
|
+
var Route72 = "saved_em_picking";
|
|
900
982
|
|
|
901
983
|
// src/modules/stock/savedProviderProposal/interfaces.ts
|
|
902
984
|
var interfaces_exports49 = {};
|
|
903
985
|
__export(interfaces_exports49, {
|
|
904
|
-
Route: () =>
|
|
986
|
+
Route: () => Route73
|
|
905
987
|
});
|
|
906
|
-
var
|
|
988
|
+
var Route73 = "saved_provider_proposal";
|
|
907
989
|
|
|
908
990
|
// src/modules/stock/stockMovement/interface.ts
|
|
909
|
-
var
|
|
910
|
-
__export(
|
|
991
|
+
var interface_exports25 = {};
|
|
992
|
+
__export(interface_exports25, {
|
|
911
993
|
ExportFormatEnum: () => ExportFormatEnum,
|
|
912
994
|
ExportVersionEnum: () => ExportVersionEnum,
|
|
913
|
-
Route: () =>
|
|
995
|
+
Route: () => Route74,
|
|
914
996
|
exportFormats: () => exportFormats,
|
|
915
997
|
exportVersions: () => exportVersions
|
|
916
998
|
});
|
|
917
|
-
var
|
|
999
|
+
var Route74 = "stock_movement";
|
|
918
1000
|
var ExportFormatEnum = {
|
|
919
1001
|
csv: "csv",
|
|
920
1002
|
xml: "xml"
|
|
@@ -927,13 +1009,13 @@ var ExportVersionEnum = {
|
|
|
927
1009
|
var exportVersions = Object.keys(ExportVersionEnum);
|
|
928
1010
|
|
|
929
1011
|
// src/modules/stock/tag/interface.ts
|
|
930
|
-
var
|
|
931
|
-
__export(
|
|
1012
|
+
var interface_exports26 = {};
|
|
1013
|
+
__export(interface_exports26, {
|
|
932
1014
|
ITagType: () => ITagType,
|
|
933
1015
|
ITagTypeEnum: () => ITagTypeEnum,
|
|
934
|
-
Route: () =>
|
|
1016
|
+
Route: () => Route75
|
|
935
1017
|
});
|
|
936
|
-
var
|
|
1018
|
+
var Route75 = "tag";
|
|
937
1019
|
var ITagTypeEnum = {
|
|
938
1020
|
private: "private",
|
|
939
1021
|
public: "public"
|
|
@@ -941,15 +1023,15 @@ var ITagTypeEnum = {
|
|
|
941
1023
|
var ITagType = Object.keys(ITagTypeEnum);
|
|
942
1024
|
|
|
943
1025
|
// src/modules/stock/task/interface.ts
|
|
944
|
-
var
|
|
945
|
-
__export(
|
|
1026
|
+
var interface_exports27 = {};
|
|
1027
|
+
__export(interface_exports27, {
|
|
946
1028
|
IHistoryStatusDataTypeEnum: () => IHistoryStatusDataTypeEnum,
|
|
947
1029
|
ITaskStatusDataTypeEnum: () => ITaskStatusDataTypeEnum,
|
|
948
|
-
Route: () =>
|
|
1030
|
+
Route: () => Route76,
|
|
949
1031
|
historyStatusDataType: () => historyStatusDataType,
|
|
950
1032
|
taskStatusDataType: () => taskStatusDataType
|
|
951
1033
|
});
|
|
952
|
-
var
|
|
1034
|
+
var Route76 = "task";
|
|
953
1035
|
var ITaskStatusDataTypeEnum = {
|
|
954
1036
|
Normal: "Normal",
|
|
955
1037
|
Urgent: "Urgent",
|
|
@@ -966,18 +1048,11 @@ var IHistoryStatusDataTypeEnum = {
|
|
|
966
1048
|
var historyStatusDataType = Object.keys(IHistoryStatusDataTypeEnum);
|
|
967
1049
|
|
|
968
1050
|
// src/modules/stock/taskMessage/interface.ts
|
|
969
|
-
var interface_exports27 = {};
|
|
970
|
-
__export(interface_exports27, {
|
|
971
|
-
Route: () => Route76
|
|
972
|
-
});
|
|
973
|
-
var Route76 = "task_message";
|
|
974
|
-
|
|
975
|
-
// src/modules/stock/taskRead/interface.ts
|
|
976
1051
|
var interface_exports28 = {};
|
|
977
1052
|
__export(interface_exports28, {
|
|
978
1053
|
Route: () => Route77
|
|
979
1054
|
});
|
|
980
|
-
var Route77 = "
|
|
1055
|
+
var Route77 = "task_message";
|
|
981
1056
|
|
|
982
1057
|
// src/modules/stock/typeOfLocation/interface.ts
|
|
983
1058
|
var interface_exports29 = {};
|
|
@@ -2369,10 +2444,11 @@ exports.Prison = interface_exports18;
|
|
|
2369
2444
|
exports.ProductGoogleSheets = interface_exports19;
|
|
2370
2445
|
exports.ProductImage = interface_exports20;
|
|
2371
2446
|
exports.ProductLocation = interface_exports21;
|
|
2447
|
+
exports.ProductUpdate = interface_exports22;
|
|
2372
2448
|
exports.ProductionOrder = interfaces_exports11;
|
|
2373
2449
|
exports.Proforma = interfaces_exports12;
|
|
2374
2450
|
exports.ProjectInfo = interfaces_exports34;
|
|
2375
|
-
exports.Promotion =
|
|
2451
|
+
exports.Promotion = interface_exports23;
|
|
2376
2452
|
exports.PropostaFornecedor = interfaces_exports13;
|
|
2377
2453
|
exports.PropostaSheets = interface_exports4;
|
|
2378
2454
|
exports.ProviderCreditNoteFromReturn = interfaces_exports14;
|
|
@@ -2387,7 +2463,7 @@ exports.QueryList = interfaces_exports44;
|
|
|
2387
2463
|
exports.QueryParameter = interfaces_exports45;
|
|
2388
2464
|
exports.ReasonForExemption = interface_exports62;
|
|
2389
2465
|
exports.Recibo = interfaces_exports19;
|
|
2390
|
-
exports.RecurrentTasks =
|
|
2466
|
+
exports.RecurrentTasks = interface_exports24;
|
|
2391
2467
|
exports.RefreshToken = interface_exports63;
|
|
2392
2468
|
exports.ReturnReason = interfaces_exports46;
|
|
2393
2469
|
exports.ReturnToProvider = interface_exports5;
|
|
@@ -2405,15 +2481,14 @@ exports.SidemenuHighlight = interface_exports49;
|
|
|
2405
2481
|
exports.SmsSender = interfaces_exports41;
|
|
2406
2482
|
exports.SmsTemplate = interfaces_exports42;
|
|
2407
2483
|
exports.StartDocumentHeaderLastUpdate = interface_exports46;
|
|
2408
|
-
exports.StockMovement =
|
|
2484
|
+
exports.StockMovement = interface_exports25;
|
|
2409
2485
|
exports.StoreOperator = interface_exports67;
|
|
2410
2486
|
exports.StoreOperatorSaftLock = interface_exports50;
|
|
2411
2487
|
exports.Swift = interface_exports68;
|
|
2412
2488
|
exports.SystemModule = interface_exports69;
|
|
2413
|
-
exports.Tag =
|
|
2414
|
-
exports.Task =
|
|
2415
|
-
exports.TaskMessage =
|
|
2416
|
-
exports.TaskRead = interface_exports28;
|
|
2489
|
+
exports.Tag = interface_exports26;
|
|
2490
|
+
exports.Task = interface_exports27;
|
|
2491
|
+
exports.TaskMessage = interface_exports28;
|
|
2417
2492
|
exports.Tenant = interface_exports70;
|
|
2418
2493
|
exports.TenantSaftLock = interface_exports51;
|
|
2419
2494
|
exports.Theme = interfaces_exports69;
|
package/dist/index.js
CHANGED
|
@@ -91,10 +91,11 @@ __export(main_exports, {
|
|
|
91
91
|
ProductGoogleSheets: () => interface_exports19,
|
|
92
92
|
ProductImage: () => interface_exports20,
|
|
93
93
|
ProductLocation: () => interface_exports21,
|
|
94
|
+
ProductUpdate: () => interface_exports22,
|
|
94
95
|
ProductionOrder: () => interfaces_exports11,
|
|
95
96
|
Proforma: () => interfaces_exports12,
|
|
96
97
|
ProjectInfo: () => interfaces_exports34,
|
|
97
|
-
Promotion: () =>
|
|
98
|
+
Promotion: () => interface_exports23,
|
|
98
99
|
PropostaFornecedor: () => interfaces_exports13,
|
|
99
100
|
PropostaSheets: () => interface_exports4,
|
|
100
101
|
ProviderCreditNoteFromReturn: () => interfaces_exports14,
|
|
@@ -109,7 +110,7 @@ __export(main_exports, {
|
|
|
109
110
|
QueryParameter: () => interfaces_exports45,
|
|
110
111
|
ReasonForExemption: () => interface_exports62,
|
|
111
112
|
Recibo: () => interfaces_exports19,
|
|
112
|
-
RecurrentTasks: () =>
|
|
113
|
+
RecurrentTasks: () => interface_exports24,
|
|
113
114
|
RefreshToken: () => interface_exports63,
|
|
114
115
|
ReturnReason: () => interfaces_exports46,
|
|
115
116
|
ReturnToProvider: () => interface_exports5,
|
|
@@ -127,15 +128,14 @@ __export(main_exports, {
|
|
|
127
128
|
SmsSender: () => interfaces_exports41,
|
|
128
129
|
SmsTemplate: () => interfaces_exports42,
|
|
129
130
|
StartDocumentHeaderLastUpdate: () => interface_exports46,
|
|
130
|
-
StockMovement: () =>
|
|
131
|
+
StockMovement: () => interface_exports25,
|
|
131
132
|
StoreOperator: () => interface_exports67,
|
|
132
133
|
StoreOperatorSaftLock: () => interface_exports50,
|
|
133
134
|
Swift: () => interface_exports68,
|
|
134
135
|
SystemModule: () => interface_exports69,
|
|
135
|
-
Tag: () =>
|
|
136
|
-
Task: () =>
|
|
137
|
-
TaskMessage: () =>
|
|
138
|
-
TaskRead: () => interface_exports28,
|
|
136
|
+
Tag: () => interface_exports26,
|
|
137
|
+
Task: () => interface_exports27,
|
|
138
|
+
TaskMessage: () => interface_exports28,
|
|
139
139
|
Tenant: () => interface_exports70,
|
|
140
140
|
TenantSaftLock: () => interface_exports51,
|
|
141
141
|
Theme: () => interfaces_exports69,
|
|
@@ -828,30 +828,112 @@ __export(interface_exports21, {
|
|
|
828
828
|
});
|
|
829
829
|
var Route64 = "product_location";
|
|
830
830
|
|
|
831
|
-
// src/modules/stock/
|
|
831
|
+
// src/modules/stock/productUpdate/interface.ts
|
|
832
832
|
var interface_exports22 = {};
|
|
833
833
|
__export(interface_exports22, {
|
|
834
|
-
|
|
834
|
+
ApplyActionLabels: () => ApplyActionLabels,
|
|
835
|
+
ApplyStatusEnum: () => ApplyStatusEnum,
|
|
836
|
+
ExtractErrorCodeEnum: () => ExtractErrorCodeEnum,
|
|
837
|
+
ImportTabEnum: () => ImportTabEnum,
|
|
838
|
+
ImportTabLabels: () => ImportTabLabels,
|
|
839
|
+
LengthUnitEnum: () => LengthUnitEnum,
|
|
840
|
+
MasterColumnKinds: () => MasterColumnKinds,
|
|
841
|
+
RefMatchEnum: () => RefMatchEnum,
|
|
842
|
+
RefMatchLabels: () => RefMatchLabels,
|
|
843
|
+
Route: () => Route65,
|
|
844
|
+
WeightUnitEnum: () => WeightUnitEnum
|
|
845
|
+
});
|
|
846
|
+
var Route65 = "product_update";
|
|
847
|
+
var ExtractErrorCodeEnum = {
|
|
848
|
+
NOT_A_PDF: "NOT_A_PDF",
|
|
849
|
+
// o multimedia não é um PDF
|
|
850
|
+
INVALID_PDF: "INVALID_PDF",
|
|
851
|
+
// PDF corrompido/ilegível
|
|
852
|
+
FILE_NOT_FOUND: "FILE_NOT_FOUND",
|
|
853
|
+
// multimedia_id inexistente
|
|
854
|
+
TIMEOUT: "TIMEOUT",
|
|
855
|
+
// o Python excedeu o tempo máximo
|
|
856
|
+
EXTRACTION_FAILED: "EXTRACTION_FAILED"
|
|
857
|
+
// outra falha
|
|
858
|
+
};
|
|
859
|
+
var ImportTabEnum = {
|
|
860
|
+
PRODUTOS: "PRODUTOS",
|
|
861
|
+
// stock
|
|
862
|
+
NOVA_ENCOMENDA: "NOVA_ENCOMENDA"
|
|
863
|
+
// encomenda (pré-artigos)
|
|
864
|
+
};
|
|
865
|
+
var ImportTabLabels = {
|
|
866
|
+
PRODUTOS: "Stock (PRODUTOS)",
|
|
867
|
+
NOVA_ENCOMENDA: "Encomenda (NOVA_ENCOMENDA)"
|
|
868
|
+
};
|
|
869
|
+
var MasterColumnKinds = {
|
|
870
|
+
price_cost: "price",
|
|
871
|
+
price_sale: "price",
|
|
872
|
+
price_sale_less_3m: "price",
|
|
873
|
+
price_sale_greater_3m: "price",
|
|
874
|
+
price_sale_piece: "price",
|
|
875
|
+
shipping: "price",
|
|
876
|
+
margin: "number",
|
|
877
|
+
tax_value: "number",
|
|
878
|
+
max_discount: "number",
|
|
879
|
+
width: "length",
|
|
880
|
+
height: "length",
|
|
881
|
+
length: "length",
|
|
882
|
+
diameter: "length",
|
|
883
|
+
weight: "weight"
|
|
884
|
+
};
|
|
885
|
+
var LengthUnitEnum = {
|
|
886
|
+
m: "m",
|
|
887
|
+
cm: "cm",
|
|
888
|
+
mm: "mm"
|
|
889
|
+
};
|
|
890
|
+
var WeightUnitEnum = { kg: "kg", g: "g" };
|
|
891
|
+
var RefMatchEnum = {
|
|
892
|
+
exact: "exact",
|
|
893
|
+
contains: "contains"
|
|
894
|
+
};
|
|
895
|
+
var RefMatchLabels = {
|
|
896
|
+
exact: "Igual \xE0 ref. fornecedor",
|
|
897
|
+
contains: "Contida na ref. fornecedor"
|
|
898
|
+
};
|
|
899
|
+
var ApplyStatusEnum = {
|
|
900
|
+
applied: "applied",
|
|
901
|
+
// escrito no MA
|
|
902
|
+
conflict: "conflict",
|
|
903
|
+
// o MA mudou desde a análise: nada escrito
|
|
904
|
+
not_found: "not_found"
|
|
905
|
+
// a linha já não existe no MA
|
|
906
|
+
};
|
|
907
|
+
var ApplyActionLabels = {
|
|
908
|
+
update: "Alterar",
|
|
909
|
+
create: "Criar",
|
|
910
|
+
deactivate: "Desativar"
|
|
911
|
+
};
|
|
912
|
+
|
|
913
|
+
// src/modules/stock/promotion/interface.ts
|
|
914
|
+
var interface_exports23 = {};
|
|
915
|
+
__export(interface_exports23, {
|
|
916
|
+
Route: () => Route66
|
|
835
917
|
});
|
|
836
|
-
var
|
|
918
|
+
var Route66 = "promotion";
|
|
837
919
|
|
|
838
920
|
// src/modules/stock/queryList/interfaces.ts
|
|
839
921
|
var interfaces_exports44 = {};
|
|
840
922
|
__export(interfaces_exports44, {
|
|
841
|
-
Route: () =>
|
|
923
|
+
Route: () => Route67,
|
|
842
924
|
executeOutput: () => executeOutput
|
|
843
925
|
});
|
|
844
|
-
var
|
|
926
|
+
var Route67 = "query";
|
|
845
927
|
var executeOutput = ["csv", "pdf", "xlsx", "json"];
|
|
846
928
|
|
|
847
929
|
// src/modules/stock/queryParameter/interfaces.ts
|
|
848
930
|
var interfaces_exports45 = {};
|
|
849
931
|
__export(interfaces_exports45, {
|
|
850
932
|
QueryParameterDatatypeEnum: () => QueryParameterDatatypeEnum,
|
|
851
|
-
Route: () =>
|
|
933
|
+
Route: () => Route68,
|
|
852
934
|
queryParametersDatatypes: () => queryParametersDatatypes
|
|
853
935
|
});
|
|
854
|
-
var
|
|
936
|
+
var Route68 = "query_parameter";
|
|
855
937
|
var QueryParameterDatatypeEnum = {
|
|
856
938
|
boolean: "boolean",
|
|
857
939
|
decimal: "decimal",
|
|
@@ -867,50 +949,50 @@ var QueryParameterDatatypeEnum = {
|
|
|
867
949
|
var queryParametersDatatypes = Object.keys(QueryParameterDatatypeEnum);
|
|
868
950
|
|
|
869
951
|
// src/modules/stock/recurrentTasks/interface.ts
|
|
870
|
-
var
|
|
871
|
-
__export(
|
|
872
|
-
Route: () =>
|
|
952
|
+
var interface_exports24 = {};
|
|
953
|
+
__export(interface_exports24, {
|
|
954
|
+
Route: () => Route69
|
|
873
955
|
});
|
|
874
|
-
var
|
|
956
|
+
var Route69 = "recurrent_tasks";
|
|
875
957
|
|
|
876
958
|
// src/modules/stock/returnReason/interfaces.ts
|
|
877
959
|
var interfaces_exports46 = {};
|
|
878
960
|
__export(interfaces_exports46, {
|
|
879
|
-
Route: () =>
|
|
961
|
+
Route: () => Route70
|
|
880
962
|
});
|
|
881
|
-
var
|
|
963
|
+
var Route70 = "return_reason";
|
|
882
964
|
|
|
883
965
|
// src/modules/stock/saft/interfaces.ts
|
|
884
966
|
var interfaces_exports47 = {};
|
|
885
967
|
__export(interfaces_exports47, {
|
|
886
|
-
Route: () =>
|
|
968
|
+
Route: () => Route71
|
|
887
969
|
});
|
|
888
|
-
var
|
|
970
|
+
var Route71 = "saft";
|
|
889
971
|
|
|
890
972
|
// src/modules/stock/savedEmPicking/interfaces.ts
|
|
891
973
|
var interfaces_exports48 = {};
|
|
892
974
|
__export(interfaces_exports48, {
|
|
893
|
-
Route: () =>
|
|
975
|
+
Route: () => Route72
|
|
894
976
|
});
|
|
895
|
-
var
|
|
977
|
+
var Route72 = "saved_em_picking";
|
|
896
978
|
|
|
897
979
|
// src/modules/stock/savedProviderProposal/interfaces.ts
|
|
898
980
|
var interfaces_exports49 = {};
|
|
899
981
|
__export(interfaces_exports49, {
|
|
900
|
-
Route: () =>
|
|
982
|
+
Route: () => Route73
|
|
901
983
|
});
|
|
902
|
-
var
|
|
984
|
+
var Route73 = "saved_provider_proposal";
|
|
903
985
|
|
|
904
986
|
// src/modules/stock/stockMovement/interface.ts
|
|
905
|
-
var
|
|
906
|
-
__export(
|
|
987
|
+
var interface_exports25 = {};
|
|
988
|
+
__export(interface_exports25, {
|
|
907
989
|
ExportFormatEnum: () => ExportFormatEnum,
|
|
908
990
|
ExportVersionEnum: () => ExportVersionEnum,
|
|
909
|
-
Route: () =>
|
|
991
|
+
Route: () => Route74,
|
|
910
992
|
exportFormats: () => exportFormats,
|
|
911
993
|
exportVersions: () => exportVersions
|
|
912
994
|
});
|
|
913
|
-
var
|
|
995
|
+
var Route74 = "stock_movement";
|
|
914
996
|
var ExportFormatEnum = {
|
|
915
997
|
csv: "csv",
|
|
916
998
|
xml: "xml"
|
|
@@ -923,13 +1005,13 @@ var ExportVersionEnum = {
|
|
|
923
1005
|
var exportVersions = Object.keys(ExportVersionEnum);
|
|
924
1006
|
|
|
925
1007
|
// src/modules/stock/tag/interface.ts
|
|
926
|
-
var
|
|
927
|
-
__export(
|
|
1008
|
+
var interface_exports26 = {};
|
|
1009
|
+
__export(interface_exports26, {
|
|
928
1010
|
ITagType: () => ITagType,
|
|
929
1011
|
ITagTypeEnum: () => ITagTypeEnum,
|
|
930
|
-
Route: () =>
|
|
1012
|
+
Route: () => Route75
|
|
931
1013
|
});
|
|
932
|
-
var
|
|
1014
|
+
var Route75 = "tag";
|
|
933
1015
|
var ITagTypeEnum = {
|
|
934
1016
|
private: "private",
|
|
935
1017
|
public: "public"
|
|
@@ -937,15 +1019,15 @@ var ITagTypeEnum = {
|
|
|
937
1019
|
var ITagType = Object.keys(ITagTypeEnum);
|
|
938
1020
|
|
|
939
1021
|
// src/modules/stock/task/interface.ts
|
|
940
|
-
var
|
|
941
|
-
__export(
|
|
1022
|
+
var interface_exports27 = {};
|
|
1023
|
+
__export(interface_exports27, {
|
|
942
1024
|
IHistoryStatusDataTypeEnum: () => IHistoryStatusDataTypeEnum,
|
|
943
1025
|
ITaskStatusDataTypeEnum: () => ITaskStatusDataTypeEnum,
|
|
944
|
-
Route: () =>
|
|
1026
|
+
Route: () => Route76,
|
|
945
1027
|
historyStatusDataType: () => historyStatusDataType,
|
|
946
1028
|
taskStatusDataType: () => taskStatusDataType
|
|
947
1029
|
});
|
|
948
|
-
var
|
|
1030
|
+
var Route76 = "task";
|
|
949
1031
|
var ITaskStatusDataTypeEnum = {
|
|
950
1032
|
Normal: "Normal",
|
|
951
1033
|
Urgent: "Urgent",
|
|
@@ -962,18 +1044,11 @@ var IHistoryStatusDataTypeEnum = {
|
|
|
962
1044
|
var historyStatusDataType = Object.keys(IHistoryStatusDataTypeEnum);
|
|
963
1045
|
|
|
964
1046
|
// src/modules/stock/taskMessage/interface.ts
|
|
965
|
-
var interface_exports27 = {};
|
|
966
|
-
__export(interface_exports27, {
|
|
967
|
-
Route: () => Route76
|
|
968
|
-
});
|
|
969
|
-
var Route76 = "task_message";
|
|
970
|
-
|
|
971
|
-
// src/modules/stock/taskRead/interface.ts
|
|
972
1047
|
var interface_exports28 = {};
|
|
973
1048
|
__export(interface_exports28, {
|
|
974
1049
|
Route: () => Route77
|
|
975
1050
|
});
|
|
976
|
-
var Route77 = "
|
|
1051
|
+
var Route77 = "task_message";
|
|
977
1052
|
|
|
978
1053
|
// src/modules/stock/typeOfLocation/interface.ts
|
|
979
1054
|
var interface_exports29 = {};
|
|
@@ -2281,4 +2356,4 @@ var IBrokerTopic = /* @__PURE__ */ ((IBrokerTopic2) => {
|
|
|
2281
2356
|
// src/index.ts
|
|
2282
2357
|
var index_default = main_exports;
|
|
2283
2358
|
|
|
2284
|
-
export { interface_exports6 as AccountCode, interfaces_exports as Adiantamento, interfaces_exports72 as AdminPanel, interfaces_exports40 as AllowedDevice, interface_exports52 as BankData, interfaces_exports2 as BillOfLading, interfaces_exports60 as CLT, interfaces_exports3 as Catalogo, interfaces_exports59 as Channel, interfaces_exports43 as Chat, interface_exports7 as ChatRapidMessage, interfaces_exports63 as ChatSubscriber, interface_exports53 as Client, interface_exports54 as ClientType, interface_exports55 as Commissioner, interface_exports8 as ConferirEncomenda, interface_exports56 as Country, interface_exports33 as CurrentAccount, interface_exports9 as Dashboard, interfaces_exports64 as DeliveryMethods, interface_exports10 as DisplayLabel, interface_exports10 as DisplayLabels, interfaces_exports52 as DocumentHeader, interfaces_exports53 as DocumentHeaderHistory, interface_exports34 as DocumentHeaderSubscriber, interfaces_exports54 as DocumentHeaderSurvey, interfaces_exports55 as DocumentLine, interfaces_exports56 as DocumentLineAssoc, interface_exports35 as DocumentLineMt, interfaces_exports57 as DocumentLineNote, interface_exports36 as DocumentLineRm, interface_exports37 as DocumentSet, interfaces_exports58 as DocumentType, interface_exports11 as EmailAccount, interfaces_exports23 as EmailLog, interfaces_exports24 as EmailTemplate, interfaces_exports25 as EmailTemplateAttachment, interfaces_exports26 as EmailVerification, interfaces_exports73 as ErrorLog, interfaces_exports27 as EuPago, interface_exports38 as ExternalDocumentHeader, interface_exports39 as ExternalDocumentType, interfaces_exports4 as FaturaCredito, interfaces_exports5 as FaturaRecibo, interfaces_exports6 as FaturaSimplificada, interfaces_exports65 as Favorites, interface_exports12 as File, interface_exports13 as Gmails, interface_exports14 as GoogleCalendar, interfaces_exports28 as GoogleFilePermission, interface_exports15 as GoogleSheetPool, interfaces_exports29 as GoogleSheets, interface_exports as Inventario, interfaces_exports36 as LLM, interface_exports57 as Language, interface_exports16 as Location, interfaces_exports7 as MaterialEntrance, interfaces_exports66 as MaturityDates, interface_exports17 as MobilePrint, interfaces_exports22 as Multimedia, interface_exports2 as NPF, interface_exports3 as NRCL, interfaces_exports8 as NotaCredito, interfaces_exports9 as NotaCreditoAdiantamento, interfaces_exports37 as Npc, interfaces_exports30 as Observation, interfaces_exports31 as ObservationType, interfaces_exports10 as Order, interface_exports40 as OrderManagement, interfaces_exports67 as Password, interfaces_exports32 as PatchNotes, interface_exports41 as Payment, interface_exports42 as PaymentBatch, interfaces_exports68 as PaymentMethods, interface_exports58 as Persona, interfaces_exports33 as PersonaMerge, interface_exports47 as Portal, interface_exports43 as PreSale, interface_exports44 as PreSaleProduct, interfaces_exports38 as Printer, interface_exports18 as Prison, interface_exports19 as ProductGoogleSheets, interface_exports20 as ProductImage, interface_exports21 as ProductLocation, interfaces_exports11 as ProductionOrder, interfaces_exports12 as Proforma, interfaces_exports34 as ProjectInfo,
|
|
2359
|
+
export { interface_exports6 as AccountCode, interfaces_exports as Adiantamento, interfaces_exports72 as AdminPanel, interfaces_exports40 as AllowedDevice, interface_exports52 as BankData, interfaces_exports2 as BillOfLading, interfaces_exports60 as CLT, interfaces_exports3 as Catalogo, interfaces_exports59 as Channel, interfaces_exports43 as Chat, interface_exports7 as ChatRapidMessage, interfaces_exports63 as ChatSubscriber, interface_exports53 as Client, interface_exports54 as ClientType, interface_exports55 as Commissioner, interface_exports8 as ConferirEncomenda, interface_exports56 as Country, interface_exports33 as CurrentAccount, interface_exports9 as Dashboard, interfaces_exports64 as DeliveryMethods, interface_exports10 as DisplayLabel, interface_exports10 as DisplayLabels, interfaces_exports52 as DocumentHeader, interfaces_exports53 as DocumentHeaderHistory, interface_exports34 as DocumentHeaderSubscriber, interfaces_exports54 as DocumentHeaderSurvey, interfaces_exports55 as DocumentLine, interfaces_exports56 as DocumentLineAssoc, interface_exports35 as DocumentLineMt, interfaces_exports57 as DocumentLineNote, interface_exports36 as DocumentLineRm, interface_exports37 as DocumentSet, interfaces_exports58 as DocumentType, interface_exports11 as EmailAccount, interfaces_exports23 as EmailLog, interfaces_exports24 as EmailTemplate, interfaces_exports25 as EmailTemplateAttachment, interfaces_exports26 as EmailVerification, interfaces_exports73 as ErrorLog, interfaces_exports27 as EuPago, interface_exports38 as ExternalDocumentHeader, interface_exports39 as ExternalDocumentType, interfaces_exports4 as FaturaCredito, interfaces_exports5 as FaturaRecibo, interfaces_exports6 as FaturaSimplificada, interfaces_exports65 as Favorites, interface_exports12 as File, interface_exports13 as Gmails, interface_exports14 as GoogleCalendar, interfaces_exports28 as GoogleFilePermission, interface_exports15 as GoogleSheetPool, interfaces_exports29 as GoogleSheets, interface_exports as Inventario, interfaces_exports36 as LLM, interface_exports57 as Language, interface_exports16 as Location, interfaces_exports7 as MaterialEntrance, interfaces_exports66 as MaturityDates, interface_exports17 as MobilePrint, interfaces_exports22 as Multimedia, interface_exports2 as NPF, interface_exports3 as NRCL, interfaces_exports8 as NotaCredito, interfaces_exports9 as NotaCreditoAdiantamento, interfaces_exports37 as Npc, interfaces_exports30 as Observation, interfaces_exports31 as ObservationType, interfaces_exports10 as Order, interface_exports40 as OrderManagement, interfaces_exports67 as Password, interfaces_exports32 as PatchNotes, interface_exports41 as Payment, interface_exports42 as PaymentBatch, interfaces_exports68 as PaymentMethods, interface_exports58 as Persona, interfaces_exports33 as PersonaMerge, interface_exports47 as Portal, interface_exports43 as PreSale, interface_exports44 as PreSaleProduct, interfaces_exports38 as Printer, interface_exports18 as Prison, interface_exports19 as ProductGoogleSheets, interface_exports20 as ProductImage, interface_exports21 as ProductLocation, interface_exports22 as ProductUpdate, interfaces_exports11 as ProductionOrder, interfaces_exports12 as Proforma, interfaces_exports34 as ProjectInfo, interface_exports23 as Promotion, interfaces_exports13 as PropostaFornecedor, interface_exports4 as PropostaSheets, interfaces_exports14 as ProviderCreditNoteFromReturn, interfaces_exports15 as ProviderFinancialCreditNote, interfaces_exports16 as ProviderServiceInvoice, interface_exports60 as ProviderType, interface_exports59 as Providers, interfaces_exports17 as Purchase, interface_exports61 as PurchaseConditions, interfaces_exports18 as Quebra, interfaces_exports44 as QueryList, interfaces_exports45 as QueryParameter, interface_exports62 as ReasonForExemption, interfaces_exports19 as Recibo, interface_exports24 as RecurrentTasks, interface_exports63 as RefreshToken, interfaces_exports46 as ReturnReason, interface_exports5 as ReturnToProvider, interfaces_exports47 as Saft, interfaces_exports48 as SavedEmPicking, interfaces_exports49 as SavedProviderProposal, interface_exports45 as Schedule, interfaces_exports39 as SchedulePrintJob, interface_exports64 as SegmentsArea, interface_exports65 as Sessions, interfaces_exports35 as Settings, interface_exports66 as Shippings, interface_exports48 as SideMenu, interface_exports49 as SidemenuHighlight, interfaces_exports41 as SmsSender, interfaces_exports42 as SmsTemplate, interface_exports46 as StartDocumentHeaderLastUpdate, interface_exports25 as StockMovement, interface_exports67 as StoreOperator, interface_exports50 as StoreOperatorSaftLock, interface_exports68 as Swift, interface_exports69 as SystemModule, interface_exports26 as Tag, interface_exports27 as Task, interface_exports28 as TaskMessage, interface_exports70 as Tenant, interface_exports51 as TenantSaftLock, interfaces_exports69 as Theme, interfaces_exports62 as Tickets, interfaces_exports61 as TicketsLanguage, interfaces_exports70 as TimeSheet, interfaces_exports20 as Transformado, interface_exports29 as TypeOfLocation, interface_exports30 as UnitOfMeasure, interfaces_exports21 as UpfrontReturn, interface_exports71 as UserPositions, interface_exports73 as UserTokens, interface_exports72 as Users, interface_exports31 as VatTax, interface_exports32 as VatTaxZone, interfaces_exports50 as VatValidation, interfaces_exports71 as Vehicles, interfaces_exports74 as WebSocket, interfaces_exports51 as Workflow, index_default as default, documentManagementErrors_exports as documentManagementErrors, integrationErrors_exports as integrationErrors, interface_exports74 as shared, stockErrors_exports as stockErrors, userErrors_exports as userErrors, viewErrors_exports as viewErrors };
|
package/dist/main.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ import * as Prison from "./modules/stock/prison/interface";
|
|
|
63
63
|
import * as ProductGoogleSheets from "./modules/stock/productGoogleSheets/interface";
|
|
64
64
|
import * as ProductImage from "./modules/stock/productImage/interface";
|
|
65
65
|
import * as ProductLocation from "./modules/stock/productLocation/interface";
|
|
66
|
+
import * as ProductUpdate from "./modules/stock/productUpdate/interface";
|
|
66
67
|
import * as Promotion from "./modules/stock/promotion/interface";
|
|
67
68
|
import * as QueryList from "./modules/stock/queryList/interfaces";
|
|
68
69
|
import * as QueryParameter from "./modules/stock/queryParameter/interfaces";
|
|
@@ -75,7 +76,6 @@ import * as StockMovement from "./modules/stock/stockMovement/interface";
|
|
|
75
76
|
import * as Tag from "./modules/stock/tag/interface";
|
|
76
77
|
import * as Task from "./modules/stock/task/interface";
|
|
77
78
|
import * as TaskMessage from "./modules/stock/taskMessage/interface";
|
|
78
|
-
import * as TaskRead from "./modules/stock/taskRead/interface";
|
|
79
79
|
import * as TypeOfLocation from "./modules/stock/typeOfLocation/interface";
|
|
80
80
|
import * as UnitOfMeasure from "./modules/stock/unitOfMeasure/interface";
|
|
81
81
|
import * as VatTax from "./modules/stock/vatTax/interface";
|
|
@@ -152,4 +152,4 @@ import * as stockErrors from "./shared/errors/stockErrors";
|
|
|
152
152
|
import * as userErrors from "./shared/errors/userErrors";
|
|
153
153
|
import * as viewErrors from "./shared/errors/viewErrors";
|
|
154
154
|
import * as shared from "./shared/interface";
|
|
155
|
-
export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DisplayLabel, DisplayLabels, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, Proforma, ProjectInfo, Promotion, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, Recibo, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, Saft, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, StoreOperatorSaftLock, Swift, SystemModule, Tag, Task, TaskMessage,
|
|
155
|
+
export { AccountCode, Adiantamento, AdminPanel, AllowedDevice, BankData, BillOfLading, Catalogo, Channel, Chat, ChatRapidMessage, ChatSubscriber, Client, ClientType, CLT, Commissioner, ConferirEncomenda, Country, CurrentAccount, Dashboard, DeliveryMethods, DisplayLabel, DisplayLabels, DocumentHeader, DocumentHeaderHistory, DocumentHeaderSubscriber, DocumentHeaderSurvey, DocumentLine, DocumentLineAssoc, DocumentLineMt, DocumentLineNote, DocumentLineRm, documentManagementErrors, DocumentSet, DocumentType, EmailAccount, EmailLog, EmailTemplate, EmailTemplateAttachment, EmailVerification, ErrorLog, EuPago, ExternalDocumentHeader, ExternalDocumentType, FaturaCredito, FaturaRecibo, FaturaSimplificada, Favorites, File, Gmails, GoogleCalendar, GoogleFilePermission, GoogleSheetPool, GoogleSheets, integrationErrors, Inventario, Language, LLM, Location, MaterialEntrance, MaturityDates, MobilePrint, Multimedia, NotaCredito, NotaCreditoAdiantamento, Npc, NPF, NRCL, Observation, ObservationType, Order, OrderManagement, Password, PatchNotes, Payment, PaymentBatch, PaymentMethods, Persona, PersonaMerge, Portal, PreSale, PreSaleProduct, Printer, Prison, ProductGoogleSheets, ProductImage, ProductionOrder, ProductLocation, ProductUpdate, Proforma, ProjectInfo, Promotion, PropostaFornecedor, PropostaSheets, ProviderCreditNoteFromReturn, ProviderFinancialCreditNote, Providers, ProviderServiceInvoice, ProviderType, Purchase, PurchaseConditions, Quebra, QueryList, QueryParameter, ReasonForExemption, Recibo, RecurrentTasks, RefreshToken, ReturnReason, ReturnToProvider, Saft, SavedEmPicking, SavedProviderProposal, Schedule, SchedulePrintJob, SegmentsArea, Sessions, Settings, shared, Shippings, SideMenu, SidemenuHighlight, SmsSender, SmsTemplate, StartDocumentHeaderLastUpdate, stockErrors, StockMovement, StoreOperator, StoreOperatorSaftLock, Swift, SystemModule, Tag, Task, TaskMessage, Tenant, TenantSaftLock, Theme, Tickets, TicketsLanguage, TimeSheet, Transformado, TypeOfLocation, UnitOfMeasure, UpfrontReturn, userErrors, UserPositions, Users, UserTokens, VatTax, VatTaxZone, VatValidation, Vehicles, viewErrors, WebSocket, Workflow, };
|
|
@@ -61,6 +61,5 @@ export interface IRepository {
|
|
|
61
61
|
markAllAsUnread(params: IShared.IFindByIdRequest): Promise<void>;
|
|
62
62
|
publicMarkAllClientReadUnread(params: IMarkAllClientReadUnreadRequest): Promise<void>;
|
|
63
63
|
resendLast(params: IShared.IFindByIdRequest): Promise<void>;
|
|
64
|
-
translate(data: ITranslateRequest): Promise<string>;
|
|
65
64
|
}
|
|
66
65
|
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -4,11 +4,16 @@ export declare const Route = "display_labels";
|
|
|
4
4
|
export interface ICreateRequest {
|
|
5
5
|
references: string[];
|
|
6
6
|
}
|
|
7
|
+
export interface IFindResponse extends Entity {
|
|
8
|
+
reference: string;
|
|
9
|
+
designation: string;
|
|
10
|
+
pvp: number | null;
|
|
11
|
+
}
|
|
7
12
|
export interface IDeleteManyRequest {
|
|
8
13
|
ids: string[];
|
|
9
14
|
}
|
|
10
15
|
export interface IRepository {
|
|
11
|
-
|
|
16
|
+
findMany(): Promise<IFindResponse[]>;
|
|
12
17
|
create(data: ICreateRequest): Promise<void>;
|
|
13
18
|
deleteMany(data: IDeleteManyRequest): Promise<void>;
|
|
14
19
|
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
export declare const Route = "product_update";
|
|
3
|
+
export interface IExtractRequest {
|
|
4
|
+
multimedia_ids: string[];
|
|
5
|
+
}
|
|
6
|
+
export interface IExtractionResult {
|
|
7
|
+
source: string;
|
|
8
|
+
page_count: number;
|
|
9
|
+
tables: IExtractedTable[];
|
|
10
|
+
}
|
|
11
|
+
export interface IExtractedTable {
|
|
12
|
+
id: string;
|
|
13
|
+
pages: number[];
|
|
14
|
+
row_count: number;
|
|
15
|
+
columns: IExtractedColumn[];
|
|
16
|
+
rows: IExtractedRow[];
|
|
17
|
+
}
|
|
18
|
+
export interface IExtractedColumn {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
samples: string[];
|
|
22
|
+
suggested_field: string | null;
|
|
23
|
+
}
|
|
24
|
+
export interface IExtractedRow {
|
|
25
|
+
_page: number;
|
|
26
|
+
_section: string | null;
|
|
27
|
+
_note?: string;
|
|
28
|
+
[columnId: string]: string | number | null | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare const ExtractErrorCodeEnum: {
|
|
31
|
+
NOT_A_PDF: "NOT_A_PDF";
|
|
32
|
+
INVALID_PDF: "INVALID_PDF";
|
|
33
|
+
FILE_NOT_FOUND: "FILE_NOT_FOUND";
|
|
34
|
+
TIMEOUT: "TIMEOUT";
|
|
35
|
+
EXTRACTION_FAILED: "EXTRACTION_FAILED";
|
|
36
|
+
};
|
|
37
|
+
export type IExtractErrorCode = (typeof ExtractErrorCodeEnum)[keyof typeof ExtractErrorCodeEnum];
|
|
38
|
+
export interface IExtractError {
|
|
39
|
+
code: IExtractErrorCode;
|
|
40
|
+
message: string;
|
|
41
|
+
}
|
|
42
|
+
interface IExtractFileResultBase {
|
|
43
|
+
multimedia_id: string;
|
|
44
|
+
file_name: string;
|
|
45
|
+
}
|
|
46
|
+
export type IExtractFileResult = (IExtractFileResultBase & {
|
|
47
|
+
status: "ok";
|
|
48
|
+
data: IExtractionResult;
|
|
49
|
+
}) | (IExtractFileResultBase & {
|
|
50
|
+
status: "error";
|
|
51
|
+
error: IExtractError;
|
|
52
|
+
});
|
|
53
|
+
export interface IExtractResponse {
|
|
54
|
+
results: IExtractFileResult[];
|
|
55
|
+
}
|
|
56
|
+
export declare const ImportTabEnum: {
|
|
57
|
+
PRODUTOS: "PRODUTOS";
|
|
58
|
+
NOVA_ENCOMENDA: "NOVA_ENCOMENDA";
|
|
59
|
+
};
|
|
60
|
+
export type IImportTab = (typeof ImportTabEnum)[keyof typeof ImportTabEnum];
|
|
61
|
+
export declare const ImportTabLabels: Record<IImportTab, string>;
|
|
62
|
+
export type IColumnKind = "text" | "price" | "number" | "length" | "weight";
|
|
63
|
+
export declare const MasterColumnKinds: Record<string, IColumnKind>;
|
|
64
|
+
export interface IMasterColumn {
|
|
65
|
+
key: string;
|
|
66
|
+
letter: string;
|
|
67
|
+
kind: IColumnKind;
|
|
68
|
+
locked: string | null;
|
|
69
|
+
}
|
|
70
|
+
export interface IColumnsRequest {
|
|
71
|
+
tab: IImportTab;
|
|
72
|
+
}
|
|
73
|
+
export interface IColumnsResponse {
|
|
74
|
+
tab: IImportTab;
|
|
75
|
+
columns: IMasterColumn[];
|
|
76
|
+
suggested_match_column: string | null;
|
|
77
|
+
}
|
|
78
|
+
export declare const LengthUnitEnum: {
|
|
79
|
+
m: "m";
|
|
80
|
+
cm: "cm";
|
|
81
|
+
mm: "mm";
|
|
82
|
+
};
|
|
83
|
+
export type ILengthUnit = (typeof LengthUnitEnum)[keyof typeof LengthUnitEnum];
|
|
84
|
+
export declare const WeightUnitEnum: {
|
|
85
|
+
kg: "kg";
|
|
86
|
+
g: "g";
|
|
87
|
+
};
|
|
88
|
+
export type IWeightUnit = (typeof WeightUnitEnum)[keyof typeof WeightUnitEnum];
|
|
89
|
+
export declare const RefMatchEnum: {
|
|
90
|
+
exact: "exact";
|
|
91
|
+
contains: "contains";
|
|
92
|
+
};
|
|
93
|
+
export type IRefMatch = (typeof RefMatchEnum)[keyof typeof RefMatchEnum];
|
|
94
|
+
export declare const RefMatchLabels: Record<IRefMatch, string>;
|
|
95
|
+
export type IAnalyzeRowValues = Record<string, string>;
|
|
96
|
+
export interface IAnalyzeRowInput {
|
|
97
|
+
page: number;
|
|
98
|
+
provider_ref: string;
|
|
99
|
+
values: IAnalyzeRowValues;
|
|
100
|
+
}
|
|
101
|
+
export interface IAnalyzeRequest {
|
|
102
|
+
id_provider: number;
|
|
103
|
+
tab: IImportTab;
|
|
104
|
+
match_column: string;
|
|
105
|
+
ref_match: IRefMatch;
|
|
106
|
+
length_unit: ILengthUnit;
|
|
107
|
+
weight_unit: IWeightUnit;
|
|
108
|
+
rows: IAnalyzeRowInput[];
|
|
109
|
+
}
|
|
110
|
+
export type IMasterValue = string | number | null;
|
|
111
|
+
export type IMasterValues = Record<string, IMasterValue>;
|
|
112
|
+
export interface IMasterRow {
|
|
113
|
+
key: string;
|
|
114
|
+
row_number: number;
|
|
115
|
+
reference: string;
|
|
116
|
+
match_value: string;
|
|
117
|
+
state: string | null;
|
|
118
|
+
values: IMasterValues;
|
|
119
|
+
}
|
|
120
|
+
export interface IAnalyzeUpdate extends IMasterRow {
|
|
121
|
+
provider_ref: string;
|
|
122
|
+
page: number;
|
|
123
|
+
new: IMasterValues;
|
|
124
|
+
changes: string[];
|
|
125
|
+
reactivate: boolean;
|
|
126
|
+
warnings: string[];
|
|
127
|
+
}
|
|
128
|
+
export interface IAnalyzeCreate {
|
|
129
|
+
provider_ref: string;
|
|
130
|
+
page: number;
|
|
131
|
+
values: IMasterValues;
|
|
132
|
+
warnings: string[];
|
|
133
|
+
}
|
|
134
|
+
export type IAnalyzeDeactivate = IMasterRow;
|
|
135
|
+
export interface IAnalyzeProblem {
|
|
136
|
+
page: number;
|
|
137
|
+
provider_ref: string | null;
|
|
138
|
+
message: string;
|
|
139
|
+
}
|
|
140
|
+
export interface IAnalyzeResponse {
|
|
141
|
+
tab: IImportTab;
|
|
142
|
+
columns: IMasterColumn[];
|
|
143
|
+
to_update: IAnalyzeUpdate[];
|
|
144
|
+
to_create: IAnalyzeCreate[];
|
|
145
|
+
to_deactivate: IAnalyzeDeactivate[];
|
|
146
|
+
problems: IAnalyzeProblem[];
|
|
147
|
+
unchanged_count: number;
|
|
148
|
+
provider_row_count: number;
|
|
149
|
+
without_match_value: IMasterRow[];
|
|
150
|
+
}
|
|
151
|
+
export interface IApplyRowItem {
|
|
152
|
+
key: string;
|
|
153
|
+
current: IMasterValues;
|
|
154
|
+
}
|
|
155
|
+
export interface IApplyUpdateRequest extends IAnalyzeRequest {
|
|
156
|
+
items: IApplyRowItem[];
|
|
157
|
+
}
|
|
158
|
+
export interface IApplyCreateRequest extends IAnalyzeRequest {
|
|
159
|
+
provider_refs: string[];
|
|
160
|
+
}
|
|
161
|
+
export interface IApplyDeactivateRequest extends IAnalyzeRequest {
|
|
162
|
+
items: IApplyRowItem[];
|
|
163
|
+
}
|
|
164
|
+
export declare const ApplyStatusEnum: {
|
|
165
|
+
applied: "applied";
|
|
166
|
+
conflict: "conflict";
|
|
167
|
+
not_found: "not_found";
|
|
168
|
+
};
|
|
169
|
+
export type IApplyStatus = (typeof ApplyStatusEnum)[keyof typeof ApplyStatusEnum];
|
|
170
|
+
export interface IApplyResult {
|
|
171
|
+
key: string;
|
|
172
|
+
status: IApplyStatus;
|
|
173
|
+
message: string | null;
|
|
174
|
+
}
|
|
175
|
+
export interface IApplyResponse {
|
|
176
|
+
applied: number;
|
|
177
|
+
results: IApplyResult[];
|
|
178
|
+
}
|
|
179
|
+
export type IApplyAction = "update" | "create" | "deactivate";
|
|
180
|
+
export declare const ApplyActionLabels: Record<IApplyAction, string>;
|
|
181
|
+
export interface IHistoryItem {
|
|
182
|
+
key: string;
|
|
183
|
+
row_number: number | null;
|
|
184
|
+
before: IMasterValues;
|
|
185
|
+
after: IMasterValues;
|
|
186
|
+
}
|
|
187
|
+
export interface IHistoryRequest {
|
|
188
|
+
id_provider?: number;
|
|
189
|
+
limit?: number;
|
|
190
|
+
}
|
|
191
|
+
export interface IHistoryEntry {
|
|
192
|
+
id: string;
|
|
193
|
+
created_at: Date;
|
|
194
|
+
user_id: string;
|
|
195
|
+
user_name: string | null;
|
|
196
|
+
id_provider: number;
|
|
197
|
+
tab: IImportTab;
|
|
198
|
+
action: IApplyAction;
|
|
199
|
+
items: IHistoryItem[];
|
|
200
|
+
}
|
|
201
|
+
export interface IHistoryResponse {
|
|
202
|
+
entries: IHistoryEntry[];
|
|
203
|
+
}
|
|
204
|
+
export interface IRepository {
|
|
205
|
+
extract(data: IExtractRequest): Promise<IExtractResponse>;
|
|
206
|
+
columns(data: IColumnsRequest): Promise<IColumnsResponse>;
|
|
207
|
+
analyze(data: IAnalyzeRequest): Promise<IAnalyzeResponse>;
|
|
208
|
+
applyUpdate(data: IApplyUpdateRequest): Promise<IApplyResponse>;
|
|
209
|
+
applyCreate(data: IApplyCreateRequest): Promise<IApplyResponse>;
|
|
210
|
+
applyDeactivate(data: IApplyDeactivateRequest): Promise<IApplyResponse>;
|
|
211
|
+
history(data: IHistoryRequest): Promise<IHistoryResponse>;
|
|
212
|
+
}
|
|
213
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
214
|
+
export {};
|
|
@@ -32,12 +32,20 @@ export interface ICurrentAccountNotes {
|
|
|
32
32
|
payment_method: string | null;
|
|
33
33
|
notes: string | null;
|
|
34
34
|
owner_name: string;
|
|
35
|
+
owner_id: string | null;
|
|
36
|
+
owner_href: string | null;
|
|
35
37
|
created_at: string;
|
|
36
38
|
created_by: string;
|
|
37
39
|
updated_at: string;
|
|
38
40
|
updated_by: string;
|
|
39
41
|
}
|
|
42
|
+
export interface ICurrentAccountAffected {
|
|
43
|
+
document_header_id: string;
|
|
44
|
+
document_name: string;
|
|
45
|
+
href: string | null;
|
|
46
|
+
}
|
|
40
47
|
export interface IFindCurrentAccountByOwnerIdResponse {
|
|
48
|
+
id: string;
|
|
41
49
|
payment_date: string;
|
|
42
50
|
emission_date: string;
|
|
43
51
|
document_description: string;
|
|
@@ -49,6 +57,7 @@ export interface IFindCurrentAccountByOwnerIdResponse {
|
|
|
49
57
|
balance: number;
|
|
50
58
|
saldo_a_data: number;
|
|
51
59
|
href?: string | null;
|
|
60
|
+
affected: ICurrentAccountAffected[];
|
|
52
61
|
}
|
|
53
62
|
export interface IUnpaidPurchasesRequest {
|
|
54
63
|
provider_id: string;
|
|
@@ -26,6 +26,7 @@ export interface ICreateRequest extends ICreateForThisDocumentHeaderRequest {
|
|
|
26
26
|
export interface IUnpaidPurchasesRequest {
|
|
27
27
|
provider_id: string;
|
|
28
28
|
client_id: string | null;
|
|
29
|
+
include_internal_regularization?: boolean;
|
|
29
30
|
}
|
|
30
31
|
export interface IUnpaidByDatePurchasesRequest {
|
|
31
32
|
due_date: Date;
|
|
@@ -46,6 +47,7 @@ export interface IUnpaidPurchasesResponse extends Pick<Entity, "date" | "debit"
|
|
|
46
47
|
};
|
|
47
48
|
maturity_days: number;
|
|
48
49
|
observations: IObservation.IFindByOwnerResponse[];
|
|
50
|
+
internal_regularization?: boolean;
|
|
49
51
|
}
|
|
50
52
|
export interface IRepository {
|
|
51
53
|
findById(selector: IShared.IFindByIdRequest): Promise<IFindByIdResponse | null>;
|
|
@@ -25,7 +25,9 @@ export interface IExportPaymentsRequest {
|
|
|
25
25
|
export interface ICreateBulkPdfRequest {
|
|
26
26
|
month?: number;
|
|
27
27
|
year?: number;
|
|
28
|
+
/** ids separados por vírgula */
|
|
28
29
|
ids?: string;
|
|
30
|
+
token: string;
|
|
29
31
|
}
|
|
30
32
|
export type IBatchType = "national" | "international" | "null";
|
|
31
33
|
export interface IPaymentsBatchNpfDh {
|
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": "1.3.
|
|
4
|
+
"version": "1.3.61",
|
|
5
5
|
"author": "Nomalism <it.nomalism@gmail.com> (https://nomalism.com/)",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@eslint/js": "^10.0.1",
|
|
28
|
-
"@swc/core": "^1.16.
|
|
28
|
+
"@swc/core": "^1.16.18",
|
|
29
29
|
"@types/node": "^26.6.5",
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
31
31
|
"@typescript-eslint/parser": "^8.62.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
"allowScripts": {
|
|
61
|
-
"esbuild
|
|
62
|
-
"@swc/core
|
|
61
|
+
"esbuild": true,
|
|
62
|
+
"@swc/core": true
|
|
63
63
|
}
|
|
64
64
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TaskRead } from "../../../shared/entities/stock";
|
|
2
|
-
import * as IShared from "../../../shared/interface";
|
|
3
|
-
export type Entity = TaskRead;
|
|
4
|
-
export declare const Route = "task_read";
|
|
5
|
-
export type ICreateRequest = Pick<Entity, "user_id" | "task_id">;
|
|
6
|
-
export type IDeleteRequest = Pick<Entity, "user_id" | "task_id">;
|
|
7
|
-
export interface IRepository {
|
|
8
|
-
create(data: ICreateRequest): Promise<void>;
|
|
9
|
-
delete(selector: IDeleteRequest): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
export type IController = IShared.IEntityWithUserToken<IRepository>;
|