vineanova-redux-artifacts 1.119.276 → 1.119.278
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/CHANGELOG.md +1 -1
- package/dist/actions/commonActions.js +153 -36
- package/dist/hooks/index.js +44 -11
- package/dist/hooks/useFetchinvoiceHeader.js +38 -0
- package/dist/hooks/useFetchinvoiceLine.js +38 -0
- package/dist/hooks/useFetchinvoiceLines.js +38 -0
- package/dist/reducers/index.js +4 -1
- package/dist/sagas/vineaNovaApi.sagas.js +1348 -1213
- package/dist/selectors/index.js +44 -11
- package/dist/selectors/invoiceHeaderSelector.js +57 -0
- package/dist/selectors/invoiceLineSelector.js +57 -0
- package/dist/selectors/invoiceLinesSelector.js +57 -0
- package/dist/services/apiServices.js +1094 -985
- package/package.json +1 -1
- package/src/actions/commonActions.js +36 -9
- package/src/hooks/index.js +4 -1
- package/src/hooks/useFetchinvoiceHeader.js +38 -0
- package/src/hooks/useFetchinvoiceLine.js +38 -0
- package/src/hooks/useFetchinvoiceLines.js +38 -0
- package/src/reducers/index.js +4 -1
- package/src/sagas/vineaNovaApi.sagas.js +111 -15
- package/src/selectors/index.js +4 -1
- package/src/selectors/invoiceHeaderSelector.js +62 -0
- package/src/selectors/invoiceLineSelector.js +62 -0
- package/src/selectors/invoiceLinesSelector.js +62 -0
- package/src/services/apiServices.js +87 -17
package/CHANGELOG.md
CHANGED
|
@@ -5844,162 +5844,281 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5844
5844
|
}]
|
|
5845
5845
|
}
|
|
5846
5846
|
},
|
|
5847
|
-
|
|
5847
|
+
invoiceBatchHeaders: {
|
|
5848
5848
|
get: {
|
|
5849
5849
|
REQUEST: [function (payload) {
|
|
5850
5850
|
return payload;
|
|
5851
5851
|
}, function () {
|
|
5852
5852
|
return {
|
|
5853
|
-
reducerName: '
|
|
5853
|
+
reducerName: 'invoiceBatchHeaders'
|
|
5854
5854
|
};
|
|
5855
5855
|
}],
|
|
5856
5856
|
RECEIVE: [function (payload) {
|
|
5857
5857
|
return payload;
|
|
5858
5858
|
}, function () {
|
|
5859
5859
|
return {
|
|
5860
|
-
reducerName: '
|
|
5860
|
+
reducerName: 'invoiceBatchHeaders'
|
|
5861
5861
|
};
|
|
5862
5862
|
}],
|
|
5863
5863
|
ERROR: [function (payload) {
|
|
5864
5864
|
return payload;
|
|
5865
5865
|
}, function () {
|
|
5866
5866
|
return {
|
|
5867
|
-
reducerName: '
|
|
5867
|
+
reducerName: 'invoiceBatchHeaders'
|
|
5868
5868
|
};
|
|
5869
5869
|
}],
|
|
5870
5870
|
CLEARDATA: [function (payload) {
|
|
5871
5871
|
return payload;
|
|
5872
5872
|
}, function () {
|
|
5873
5873
|
return {
|
|
5874
|
-
reducerName: '
|
|
5874
|
+
reducerName: 'invoiceBatchHeaders'
|
|
5875
5875
|
};
|
|
5876
5876
|
}],
|
|
5877
5877
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5878
5878
|
return payload;
|
|
5879
5879
|
}, function () {
|
|
5880
5880
|
return {
|
|
5881
|
-
reducerName: '
|
|
5881
|
+
reducerName: 'invoiceBatchHeaders'
|
|
5882
5882
|
};
|
|
5883
5883
|
}]
|
|
5884
5884
|
}
|
|
5885
5885
|
},
|
|
5886
|
-
|
|
5886
|
+
invoiceHeader: {
|
|
5887
5887
|
get: {
|
|
5888
5888
|
REQUEST: [function (payload) {
|
|
5889
5889
|
return payload;
|
|
5890
5890
|
}, function () {
|
|
5891
5891
|
return {
|
|
5892
|
-
reducerName: '
|
|
5892
|
+
reducerName: 'invoiceHeader'
|
|
5893
5893
|
};
|
|
5894
5894
|
}],
|
|
5895
5895
|
RECEIVE: [function (payload) {
|
|
5896
5896
|
return payload;
|
|
5897
5897
|
}, function () {
|
|
5898
5898
|
return {
|
|
5899
|
-
reducerName: '
|
|
5899
|
+
reducerName: 'invoiceHeader'
|
|
5900
5900
|
};
|
|
5901
5901
|
}],
|
|
5902
5902
|
ERROR: [function (payload) {
|
|
5903
5903
|
return payload;
|
|
5904
5904
|
}, function () {
|
|
5905
5905
|
return {
|
|
5906
|
-
reducerName: '
|
|
5906
|
+
reducerName: 'invoiceHeader'
|
|
5907
5907
|
};
|
|
5908
5908
|
}],
|
|
5909
5909
|
CLEARDATA: [function (payload) {
|
|
5910
5910
|
return payload;
|
|
5911
5911
|
}, function () {
|
|
5912
5912
|
return {
|
|
5913
|
-
reducerName: '
|
|
5913
|
+
reducerName: 'invoiceHeader'
|
|
5914
5914
|
};
|
|
5915
5915
|
}],
|
|
5916
5916
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5917
5917
|
return payload;
|
|
5918
5918
|
}, function () {
|
|
5919
5919
|
return {
|
|
5920
|
-
reducerName: '
|
|
5920
|
+
reducerName: 'invoiceHeader'
|
|
5921
5921
|
};
|
|
5922
5922
|
}]
|
|
5923
5923
|
}
|
|
5924
5924
|
},
|
|
5925
|
-
|
|
5925
|
+
invoiceLines: {
|
|
5926
5926
|
get: {
|
|
5927
5927
|
REQUEST: [function (payload) {
|
|
5928
5928
|
return payload;
|
|
5929
5929
|
}, function () {
|
|
5930
5930
|
return {
|
|
5931
|
-
reducerName: '
|
|
5931
|
+
reducerName: 'invoiceLines'
|
|
5932
5932
|
};
|
|
5933
5933
|
}],
|
|
5934
5934
|
RECEIVE: [function (payload) {
|
|
5935
5935
|
return payload;
|
|
5936
5936
|
}, function () {
|
|
5937
5937
|
return {
|
|
5938
|
-
reducerName: '
|
|
5938
|
+
reducerName: 'invoiceLines'
|
|
5939
5939
|
};
|
|
5940
5940
|
}],
|
|
5941
5941
|
ERROR: [function (payload) {
|
|
5942
5942
|
return payload;
|
|
5943
5943
|
}, function () {
|
|
5944
5944
|
return {
|
|
5945
|
-
reducerName: '
|
|
5945
|
+
reducerName: 'invoiceLines'
|
|
5946
5946
|
};
|
|
5947
5947
|
}],
|
|
5948
5948
|
CLEARDATA: [function (payload) {
|
|
5949
5949
|
return payload;
|
|
5950
5950
|
}, function () {
|
|
5951
5951
|
return {
|
|
5952
|
-
reducerName: '
|
|
5952
|
+
reducerName: 'invoiceLines'
|
|
5953
5953
|
};
|
|
5954
5954
|
}],
|
|
5955
5955
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5956
5956
|
return payload;
|
|
5957
5957
|
}, function () {
|
|
5958
5958
|
return {
|
|
5959
|
-
reducerName: '
|
|
5959
|
+
reducerName: 'invoiceLines'
|
|
5960
5960
|
};
|
|
5961
5961
|
}]
|
|
5962
5962
|
}
|
|
5963
5963
|
},
|
|
5964
|
-
|
|
5964
|
+
invoiceLine: {
|
|
5965
|
+
put: {
|
|
5966
|
+
REQUEST: [function (payload) {
|
|
5967
|
+
return payload;
|
|
5968
|
+
}, function () {
|
|
5969
|
+
return {
|
|
5970
|
+
reducerName: 'invoiceLine'
|
|
5971
|
+
};
|
|
5972
|
+
}],
|
|
5973
|
+
RECEIVE: [function (payload) {
|
|
5974
|
+
return payload;
|
|
5975
|
+
}, function () {
|
|
5976
|
+
return {
|
|
5977
|
+
reducerName: 'invoiceLine'
|
|
5978
|
+
};
|
|
5979
|
+
}],
|
|
5980
|
+
ERROR: [function (payload) {
|
|
5981
|
+
return payload;
|
|
5982
|
+
}, function () {
|
|
5983
|
+
return {
|
|
5984
|
+
reducerName: 'invoiceLine'
|
|
5985
|
+
};
|
|
5986
|
+
}],
|
|
5987
|
+
CLEARDATA: [function (payload) {
|
|
5988
|
+
return payload;
|
|
5989
|
+
}, function () {
|
|
5990
|
+
return {
|
|
5991
|
+
reducerName: 'invoiceLine'
|
|
5992
|
+
};
|
|
5993
|
+
}],
|
|
5994
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5995
|
+
return payload;
|
|
5996
|
+
}, function () {
|
|
5997
|
+
return {
|
|
5998
|
+
reducerName: 'invoiceLine'
|
|
5999
|
+
};
|
|
6000
|
+
}]
|
|
6001
|
+
}
|
|
6002
|
+
},
|
|
6003
|
+
invoiceBatches: {
|
|
5965
6004
|
get: {
|
|
5966
6005
|
REQUEST: [function (payload) {
|
|
5967
6006
|
return payload;
|
|
5968
6007
|
}, function () {
|
|
5969
6008
|
return {
|
|
5970
|
-
reducerName: '
|
|
6009
|
+
reducerName: 'invoiceBatches'
|
|
5971
6010
|
};
|
|
5972
6011
|
}],
|
|
5973
6012
|
RECEIVE: [function (payload) {
|
|
5974
6013
|
return payload;
|
|
5975
6014
|
}, function () {
|
|
5976
6015
|
return {
|
|
5977
|
-
reducerName: '
|
|
6016
|
+
reducerName: 'invoiceBatches'
|
|
5978
6017
|
};
|
|
5979
6018
|
}],
|
|
5980
6019
|
ERROR: [function (payload) {
|
|
5981
6020
|
return payload;
|
|
5982
6021
|
}, function () {
|
|
5983
6022
|
return {
|
|
5984
|
-
reducerName: '
|
|
6023
|
+
reducerName: 'invoiceBatches'
|
|
5985
6024
|
};
|
|
5986
6025
|
}],
|
|
5987
6026
|
CLEARDATA: [function (payload) {
|
|
5988
6027
|
return payload;
|
|
5989
6028
|
}, function () {
|
|
5990
6029
|
return {
|
|
5991
|
-
reducerName: '
|
|
6030
|
+
reducerName: 'invoiceBatches'
|
|
5992
6031
|
};
|
|
5993
6032
|
}],
|
|
5994
6033
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5995
6034
|
return payload;
|
|
5996
6035
|
}, function () {
|
|
5997
6036
|
return {
|
|
5998
|
-
reducerName: '
|
|
6037
|
+
reducerName: 'invoiceBatches'
|
|
5999
6038
|
};
|
|
6000
6039
|
}]
|
|
6001
|
-
}
|
|
6002
|
-
|
|
6040
|
+
}
|
|
6041
|
+
},
|
|
6042
|
+
invoiceJobs: {
|
|
6043
|
+
get: {
|
|
6044
|
+
REQUEST: [function (payload) {
|
|
6045
|
+
return payload;
|
|
6046
|
+
}, function () {
|
|
6047
|
+
return {
|
|
6048
|
+
reducerName: 'invoiceJobs'
|
|
6049
|
+
};
|
|
6050
|
+
}],
|
|
6051
|
+
RECEIVE: [function (payload) {
|
|
6052
|
+
return payload;
|
|
6053
|
+
}, function () {
|
|
6054
|
+
return {
|
|
6055
|
+
reducerName: 'invoiceJobs'
|
|
6056
|
+
};
|
|
6057
|
+
}],
|
|
6058
|
+
ERROR: [function (payload) {
|
|
6059
|
+
return payload;
|
|
6060
|
+
}, function () {
|
|
6061
|
+
return {
|
|
6062
|
+
reducerName: 'invoiceJobs'
|
|
6063
|
+
};
|
|
6064
|
+
}],
|
|
6065
|
+
CLEARDATA: [function (payload) {
|
|
6066
|
+
return payload;
|
|
6067
|
+
}, function () {
|
|
6068
|
+
return {
|
|
6069
|
+
reducerName: 'invoiceJobs'
|
|
6070
|
+
};
|
|
6071
|
+
}],
|
|
6072
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6073
|
+
return payload;
|
|
6074
|
+
}, function () {
|
|
6075
|
+
return {
|
|
6076
|
+
reducerName: 'invoiceJobs'
|
|
6077
|
+
};
|
|
6078
|
+
}]
|
|
6079
|
+
}
|
|
6080
|
+
},
|
|
6081
|
+
draftInvoiceJobs: {
|
|
6082
|
+
get: {
|
|
6083
|
+
REQUEST: [function (payload) {
|
|
6084
|
+
return payload;
|
|
6085
|
+
}, function () {
|
|
6086
|
+
return {
|
|
6087
|
+
reducerName: 'draftInvoiceJobs'
|
|
6088
|
+
};
|
|
6089
|
+
}],
|
|
6090
|
+
RECEIVE: [function (payload) {
|
|
6091
|
+
return payload;
|
|
6092
|
+
}, function () {
|
|
6093
|
+
return {
|
|
6094
|
+
reducerName: 'draftInvoiceJobs'
|
|
6095
|
+
};
|
|
6096
|
+
}],
|
|
6097
|
+
ERROR: [function (payload) {
|
|
6098
|
+
return payload;
|
|
6099
|
+
}, function () {
|
|
6100
|
+
return {
|
|
6101
|
+
reducerName: 'draftInvoiceJobs'
|
|
6102
|
+
};
|
|
6103
|
+
}],
|
|
6104
|
+
CLEARDATA: [function (payload) {
|
|
6105
|
+
return payload;
|
|
6106
|
+
}, function () {
|
|
6107
|
+
return {
|
|
6108
|
+
reducerName: 'draftInvoiceJobs'
|
|
6109
|
+
};
|
|
6110
|
+
}],
|
|
6111
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6112
|
+
return payload;
|
|
6113
|
+
}, function () {
|
|
6114
|
+
return {
|
|
6115
|
+
reducerName: 'draftInvoiceJobs'
|
|
6116
|
+
};
|
|
6117
|
+
}]
|
|
6118
|
+
}
|
|
6119
|
+
},
|
|
6120
|
+
invoiceBatch: {
|
|
6121
|
+
get: {
|
|
6003
6122
|
REQUEST: [function (payload) {
|
|
6004
6123
|
return payload;
|
|
6005
6124
|
}, function () {
|
|
@@ -6036,7 +6155,7 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6036
6155
|
};
|
|
6037
6156
|
}]
|
|
6038
6157
|
},
|
|
6039
|
-
|
|
6158
|
+
post: {
|
|
6040
6159
|
REQUEST: [function (payload) {
|
|
6041
6160
|
return payload;
|
|
6042
6161
|
}, function () {
|
|
@@ -6072,43 +6191,41 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6072
6191
|
reducerName: 'invoiceBatch'
|
|
6073
6192
|
};
|
|
6074
6193
|
}]
|
|
6075
|
-
}
|
|
6076
|
-
|
|
6077
|
-
invoiceBatchHeaders: {
|
|
6078
|
-
get: {
|
|
6194
|
+
},
|
|
6195
|
+
put: {
|
|
6079
6196
|
REQUEST: [function (payload) {
|
|
6080
6197
|
return payload;
|
|
6081
6198
|
}, function () {
|
|
6082
6199
|
return {
|
|
6083
|
-
reducerName: '
|
|
6200
|
+
reducerName: 'invoiceBatch'
|
|
6084
6201
|
};
|
|
6085
6202
|
}],
|
|
6086
6203
|
RECEIVE: [function (payload) {
|
|
6087
6204
|
return payload;
|
|
6088
6205
|
}, function () {
|
|
6089
6206
|
return {
|
|
6090
|
-
reducerName: '
|
|
6207
|
+
reducerName: 'invoiceBatch'
|
|
6091
6208
|
};
|
|
6092
6209
|
}],
|
|
6093
6210
|
ERROR: [function (payload) {
|
|
6094
6211
|
return payload;
|
|
6095
6212
|
}, function () {
|
|
6096
6213
|
return {
|
|
6097
|
-
reducerName: '
|
|
6214
|
+
reducerName: 'invoiceBatch'
|
|
6098
6215
|
};
|
|
6099
6216
|
}],
|
|
6100
6217
|
CLEARDATA: [function (payload) {
|
|
6101
6218
|
return payload;
|
|
6102
6219
|
}, function () {
|
|
6103
6220
|
return {
|
|
6104
|
-
reducerName: '
|
|
6221
|
+
reducerName: 'invoiceBatch'
|
|
6105
6222
|
};
|
|
6106
6223
|
}],
|
|
6107
6224
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
6108
6225
|
return payload;
|
|
6109
6226
|
}, function () {
|
|
6110
6227
|
return {
|
|
6111
|
-
reducerName: '
|
|
6228
|
+
reducerName: 'invoiceBatch'
|
|
6112
6229
|
};
|
|
6113
6230
|
}]
|
|
6114
6231
|
}
|
package/dist/hooks/index.js
CHANGED
|
@@ -762,6 +762,50 @@ Object.keys(_useFetchimportSheets).forEach(function (key) {
|
|
|
762
762
|
}
|
|
763
763
|
});
|
|
764
764
|
});
|
|
765
|
+
var _useFetchinvoiceBatchHeaders = require("./useFetchinvoiceBatchHeaders");
|
|
766
|
+
Object.keys(_useFetchinvoiceBatchHeaders).forEach(function (key) {
|
|
767
|
+
if (key === "default" || key === "__esModule") return;
|
|
768
|
+
if (key in exports && exports[key] === _useFetchinvoiceBatchHeaders[key]) return;
|
|
769
|
+
Object.defineProperty(exports, key, {
|
|
770
|
+
enumerable: true,
|
|
771
|
+
get: function get() {
|
|
772
|
+
return _useFetchinvoiceBatchHeaders[key];
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
});
|
|
776
|
+
var _useFetchinvoiceHeader = require("./useFetchinvoiceHeader");
|
|
777
|
+
Object.keys(_useFetchinvoiceHeader).forEach(function (key) {
|
|
778
|
+
if (key === "default" || key === "__esModule") return;
|
|
779
|
+
if (key in exports && exports[key] === _useFetchinvoiceHeader[key]) return;
|
|
780
|
+
Object.defineProperty(exports, key, {
|
|
781
|
+
enumerable: true,
|
|
782
|
+
get: function get() {
|
|
783
|
+
return _useFetchinvoiceHeader[key];
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
});
|
|
787
|
+
var _useFetchinvoiceLines = require("./useFetchinvoiceLines");
|
|
788
|
+
Object.keys(_useFetchinvoiceLines).forEach(function (key) {
|
|
789
|
+
if (key === "default" || key === "__esModule") return;
|
|
790
|
+
if (key in exports && exports[key] === _useFetchinvoiceLines[key]) return;
|
|
791
|
+
Object.defineProperty(exports, key, {
|
|
792
|
+
enumerable: true,
|
|
793
|
+
get: function get() {
|
|
794
|
+
return _useFetchinvoiceLines[key];
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
});
|
|
798
|
+
var _useFetchinvoiceLine = require("./useFetchinvoiceLine");
|
|
799
|
+
Object.keys(_useFetchinvoiceLine).forEach(function (key) {
|
|
800
|
+
if (key === "default" || key === "__esModule") return;
|
|
801
|
+
if (key in exports && exports[key] === _useFetchinvoiceLine[key]) return;
|
|
802
|
+
Object.defineProperty(exports, key, {
|
|
803
|
+
enumerable: true,
|
|
804
|
+
get: function get() {
|
|
805
|
+
return _useFetchinvoiceLine[key];
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
});
|
|
765
809
|
var _useFetchinvoiceBatches = require("./useFetchinvoiceBatches");
|
|
766
810
|
Object.keys(_useFetchinvoiceBatches).forEach(function (key) {
|
|
767
811
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -806,17 +850,6 @@ Object.keys(_useFetchinvoiceBatch).forEach(function (key) {
|
|
|
806
850
|
}
|
|
807
851
|
});
|
|
808
852
|
});
|
|
809
|
-
var _useFetchinvoiceBatchHeaders = require("./useFetchinvoiceBatchHeaders");
|
|
810
|
-
Object.keys(_useFetchinvoiceBatchHeaders).forEach(function (key) {
|
|
811
|
-
if (key === "default" || key === "__esModule") return;
|
|
812
|
-
if (key in exports && exports[key] === _useFetchinvoiceBatchHeaders[key]) return;
|
|
813
|
-
Object.defineProperty(exports, key, {
|
|
814
|
-
enumerable: true,
|
|
815
|
-
get: function get() {
|
|
816
|
-
return _useFetchinvoiceBatchHeaders[key];
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
});
|
|
820
853
|
var _useFetchexportInvoiceBatch = require("./useFetchexportInvoiceBatch");
|
|
821
854
|
Object.keys(_useFetchexportInvoiceBatch).forEach(function (key) {
|
|
822
855
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchInvoiceHeader = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _actions = require("../actions");
|
|
10
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
var useFetchInvoiceHeader = exports.useFetchInvoiceHeader = function useFetchInvoiceHeader(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getInvoiceHeaderEntityData);
|
|
21
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
22
|
+
var _props$queryParams = props.queryParams,
|
|
23
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceHeader.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceHeader.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchInvoiceLine = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _actions = require("../actions");
|
|
10
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
var useFetchInvoiceLine = exports.useFetchInvoiceLine = function useFetchInvoiceLine(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getInvoiceLineEntityData);
|
|
21
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
22
|
+
var _props$queryParams = props.queryParams,
|
|
23
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceLine.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceLine.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchInvoiceLines = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _actions = require("../actions");
|
|
10
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
+
var useFetchInvoiceLines = exports.useFetchInvoiceLines = function useFetchInvoiceLines(props) {
|
|
19
|
+
// selectors
|
|
20
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getInvoiceLinesEntityData);
|
|
21
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
22
|
+
var _props$queryParams = props.queryParams,
|
|
23
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
24
|
+
(0, _react.useEffect)(function () {
|
|
25
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceLines.get.request({
|
|
26
|
+
queryParams: _objectSpread({}, queryParams)
|
|
27
|
+
}));
|
|
28
|
+
}, []);
|
|
29
|
+
var useQuery = function useQuery(queryParams) {
|
|
30
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.invoiceLines.get.request({
|
|
31
|
+
queryParams: _objectSpread({}, queryParams)
|
|
32
|
+
}));
|
|
33
|
+
};
|
|
34
|
+
return {
|
|
35
|
+
data: data,
|
|
36
|
+
useQuery: useQuery
|
|
37
|
+
};
|
|
38
|
+
};
|
package/dist/reducers/index.js
CHANGED
|
@@ -78,11 +78,14 @@ var rootReducer = {
|
|
|
78
78
|
identityVineyardBlockRow: (0, _createNamedReducer["default"])('identityVineyardBlockRow'),
|
|
79
79
|
importTypeFilters: (0, _createNamedReducer["default"])('importTypeFilters'),
|
|
80
80
|
importSheets: (0, _createNamedReducer["default"])('importSheets'),
|
|
81
|
+
invoiceBatchHeaders: (0, _createNamedReducer["default"])('invoiceBatchHeaders'),
|
|
82
|
+
invoiceHeader: (0, _createNamedReducer["default"])('invoiceHeader'),
|
|
83
|
+
invoiceLines: (0, _createNamedReducer["default"])('invoiceLines'),
|
|
84
|
+
invoiceLine: (0, _createNamedReducer["default"])('invoiceLine'),
|
|
81
85
|
invoiceBatches: (0, _createNamedReducer["default"])('invoiceBatches'),
|
|
82
86
|
invoiceJobs: (0, _createNamedReducer["default"])('invoiceJobs'),
|
|
83
87
|
draftInvoiceJobs: (0, _createNamedReducer["default"])('draftInvoiceJobs'),
|
|
84
88
|
invoiceBatch: (0, _createNamedReducer["default"])('invoiceBatch'),
|
|
85
|
-
invoiceBatchHeaders: (0, _createNamedReducer["default"])('invoiceBatchHeaders'),
|
|
86
89
|
exportInvoiceBatch: (0, _createNamedReducer["default"])('exportInvoiceBatch'),
|
|
87
90
|
invoice: (0, _createNamedReducer["default"])('invoice'),
|
|
88
91
|
jobActivity: (0, _createNamedReducer["default"])('jobActivity'),
|