vineanova-redux-artifacts 1.119.167 → 1.119.169

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 CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
- ### 1.119.167 (2025-02-20)
5
+ ### 1.119.169 (2025-02-20)
@@ -6863,228 +6863,119 @@ var ducksActions = (0, _reduxActions.createActions)({
6863
6863
  }]
6864
6864
  }
6865
6865
  },
6866
- workRecordsGeneric: {
6866
+ jobWorkRecordSupervisors: {
6867
6867
  get: {
6868
6868
  REQUEST: [function (payload) {
6869
6869
  return payload;
6870
6870
  }, function () {
6871
6871
  return {
6872
- reducerName: 'workRecordsGeneric'
6873
- };
6874
- }],
6875
- RECEIVE: [function (payload) {
6876
- return payload;
6877
- }, function () {
6878
- return {
6879
- reducerName: 'workRecordsGeneric'
6880
- };
6881
- }],
6882
- ERROR: [function (payload) {
6883
- return payload;
6884
- }, function () {
6885
- return {
6886
- reducerName: 'workRecordsGeneric'
6887
- };
6888
- }],
6889
- CLEARDATA: [function (payload) {
6890
- return payload;
6891
- }, function () {
6892
- return {
6893
- reducerName: 'workRecordsGeneric'
6894
- };
6895
- }],
6896
- UPDATEPARTIALENTITY: [function (payload) {
6897
- return payload;
6898
- }, function () {
6899
- return {
6900
- reducerName: 'workRecordsGeneric'
6901
- };
6902
- }]
6903
- },
6904
- put: {
6905
- REQUEST: [function (payload) {
6906
- return payload;
6907
- }, function () {
6908
- return {
6909
- reducerName: 'workRecordsGeneric'
6910
- };
6911
- }],
6912
- RECEIVE: [function (payload) {
6913
- return payload;
6914
- }, function () {
6915
- return {
6916
- reducerName: 'workRecordsGeneric'
6917
- };
6918
- }],
6919
- ERROR: [function (payload) {
6920
- return payload;
6921
- }, function () {
6922
- return {
6923
- reducerName: 'workRecordsGeneric'
6924
- };
6925
- }],
6926
- CLEARDATA: [function (payload) {
6927
- return payload;
6928
- }, function () {
6929
- return {
6930
- reducerName: 'workRecordsGeneric'
6931
- };
6932
- }],
6933
- UPDATEPARTIALENTITY: [function (payload) {
6934
- return payload;
6935
- }, function () {
6936
- return {
6937
- reducerName: 'workRecordsGeneric'
6938
- };
6939
- }]
6940
- },
6941
- post: {
6942
- REQUEST: [function (payload) {
6943
- return payload;
6944
- }, function () {
6945
- return {
6946
- reducerName: 'workRecordsGeneric'
6872
+ reducerName: 'jobWorkRecordSupervisors'
6947
6873
  };
6948
6874
  }],
6949
6875
  RECEIVE: [function (payload) {
6950
6876
  return payload;
6951
6877
  }, function () {
6952
6878
  return {
6953
- reducerName: 'workRecordsGeneric'
6879
+ reducerName: 'jobWorkRecordSupervisors'
6954
6880
  };
6955
6881
  }],
6956
6882
  ERROR: [function (payload) {
6957
6883
  return payload;
6958
6884
  }, function () {
6959
6885
  return {
6960
- reducerName: 'workRecordsGeneric'
6886
+ reducerName: 'jobWorkRecordSupervisors'
6961
6887
  };
6962
6888
  }],
6963
6889
  CLEARDATA: [function (payload) {
6964
6890
  return payload;
6965
6891
  }, function () {
6966
6892
  return {
6967
- reducerName: 'workRecordsGeneric'
6893
+ reducerName: 'jobWorkRecordSupervisors'
6968
6894
  };
6969
6895
  }],
6970
6896
  UPDATEPARTIALENTITY: [function (payload) {
6971
6897
  return payload;
6972
6898
  }, function () {
6973
6899
  return {
6974
- reducerName: 'workRecordsGeneric'
6900
+ reducerName: 'jobWorkRecordSupervisors'
6975
6901
  };
6976
6902
  }]
6977
6903
  }
6978
6904
  },
6979
- workRecordsHourly: {
6905
+ jobWorkRecordWorkers: {
6980
6906
  get: {
6981
6907
  REQUEST: [function (payload) {
6982
6908
  return payload;
6983
6909
  }, function () {
6984
6910
  return {
6985
- reducerName: 'workRecordsHourly'
6986
- };
6987
- }],
6988
- RECEIVE: [function (payload) {
6989
- return payload;
6990
- }, function () {
6991
- return {
6992
- reducerName: 'workRecordsHourly'
6993
- };
6994
- }],
6995
- ERROR: [function (payload) {
6996
- return payload;
6997
- }, function () {
6998
- return {
6999
- reducerName: 'workRecordsHourly'
7000
- };
7001
- }],
7002
- CLEARDATA: [function (payload) {
7003
- return payload;
7004
- }, function () {
7005
- return {
7006
- reducerName: 'workRecordsHourly'
7007
- };
7008
- }],
7009
- UPDATEPARTIALENTITY: [function (payload) {
7010
- return payload;
7011
- }, function () {
7012
- return {
7013
- reducerName: 'workRecordsHourly'
7014
- };
7015
- }]
7016
- },
7017
- post: {
7018
- REQUEST: [function (payload) {
7019
- return payload;
7020
- }, function () {
7021
- return {
7022
- reducerName: 'workRecordsHourly'
6911
+ reducerName: 'jobWorkRecordWorkers'
7023
6912
  };
7024
6913
  }],
7025
6914
  RECEIVE: [function (payload) {
7026
6915
  return payload;
7027
6916
  }, function () {
7028
6917
  return {
7029
- reducerName: 'workRecordsHourly'
6918
+ reducerName: 'jobWorkRecordWorkers'
7030
6919
  };
7031
6920
  }],
7032
6921
  ERROR: [function (payload) {
7033
6922
  return payload;
7034
6923
  }, function () {
7035
6924
  return {
7036
- reducerName: 'workRecordsHourly'
6925
+ reducerName: 'jobWorkRecordWorkers'
7037
6926
  };
7038
6927
  }],
7039
6928
  CLEARDATA: [function (payload) {
7040
6929
  return payload;
7041
6930
  }, function () {
7042
6931
  return {
7043
- reducerName: 'workRecordsHourly'
6932
+ reducerName: 'jobWorkRecordWorkers'
7044
6933
  };
7045
6934
  }],
7046
6935
  UPDATEPARTIALENTITY: [function (payload) {
7047
6936
  return payload;
7048
6937
  }, function () {
7049
6938
  return {
7050
- reducerName: 'workRecordsHourly'
6939
+ reducerName: 'jobWorkRecordWorkers'
7051
6940
  };
7052
6941
  }]
7053
- },
7054
- put: {
6942
+ }
6943
+ },
6944
+ jobWorkRecordReferenceTypes: {
6945
+ get: {
7055
6946
  REQUEST: [function (payload) {
7056
6947
  return payload;
7057
6948
  }, function () {
7058
6949
  return {
7059
- reducerName: 'workRecordsHourly'
6950
+ reducerName: 'jobWorkRecordReferenceTypes'
7060
6951
  };
7061
6952
  }],
7062
6953
  RECEIVE: [function (payload) {
7063
6954
  return payload;
7064
6955
  }, function () {
7065
6956
  return {
7066
- reducerName: 'workRecordsHourly'
6957
+ reducerName: 'jobWorkRecordReferenceTypes'
7067
6958
  };
7068
6959
  }],
7069
6960
  ERROR: [function (payload) {
7070
6961
  return payload;
7071
6962
  }, function () {
7072
6963
  return {
7073
- reducerName: 'workRecordsHourly'
6964
+ reducerName: 'jobWorkRecordReferenceTypes'
7074
6965
  };
7075
6966
  }],
7076
6967
  CLEARDATA: [function (payload) {
7077
6968
  return payload;
7078
6969
  }, function () {
7079
6970
  return {
7080
- reducerName: 'workRecordsHourly'
6971
+ reducerName: 'jobWorkRecordReferenceTypes'
7081
6972
  };
7082
6973
  }],
7083
6974
  UPDATEPARTIALENTITY: [function (payload) {
7084
6975
  return payload;
7085
6976
  }, function () {
7086
6977
  return {
7087
- reducerName: 'workRecordsHourly'
6978
+ reducerName: 'jobWorkRecordReferenceTypes'
7088
6979
  };
7089
6980
  }]
7090
6981
  }
@@ -10498,6 +10389,232 @@ var ducksActions = (0, _reduxActions.createActions)({
10498
10389
  }]
10499
10390
  }
10500
10391
  },
10392
+ workRecordsGeneric: {
10393
+ get: {
10394
+ REQUEST: [function (payload) {
10395
+ return payload;
10396
+ }, function () {
10397
+ return {
10398
+ reducerName: 'workRecordsGeneric'
10399
+ };
10400
+ }],
10401
+ RECEIVE: [function (payload) {
10402
+ return payload;
10403
+ }, function () {
10404
+ return {
10405
+ reducerName: 'workRecordsGeneric'
10406
+ };
10407
+ }],
10408
+ ERROR: [function (payload) {
10409
+ return payload;
10410
+ }, function () {
10411
+ return {
10412
+ reducerName: 'workRecordsGeneric'
10413
+ };
10414
+ }],
10415
+ CLEARDATA: [function (payload) {
10416
+ return payload;
10417
+ }, function () {
10418
+ return {
10419
+ reducerName: 'workRecordsGeneric'
10420
+ };
10421
+ }],
10422
+ UPDATEPARTIALENTITY: [function (payload) {
10423
+ return payload;
10424
+ }, function () {
10425
+ return {
10426
+ reducerName: 'workRecordsGeneric'
10427
+ };
10428
+ }]
10429
+ },
10430
+ put: {
10431
+ REQUEST: [function (payload) {
10432
+ return payload;
10433
+ }, function () {
10434
+ return {
10435
+ reducerName: 'workRecordsGeneric'
10436
+ };
10437
+ }],
10438
+ RECEIVE: [function (payload) {
10439
+ return payload;
10440
+ }, function () {
10441
+ return {
10442
+ reducerName: 'workRecordsGeneric'
10443
+ };
10444
+ }],
10445
+ ERROR: [function (payload) {
10446
+ return payload;
10447
+ }, function () {
10448
+ return {
10449
+ reducerName: 'workRecordsGeneric'
10450
+ };
10451
+ }],
10452
+ CLEARDATA: [function (payload) {
10453
+ return payload;
10454
+ }, function () {
10455
+ return {
10456
+ reducerName: 'workRecordsGeneric'
10457
+ };
10458
+ }],
10459
+ UPDATEPARTIALENTITY: [function (payload) {
10460
+ return payload;
10461
+ }, function () {
10462
+ return {
10463
+ reducerName: 'workRecordsGeneric'
10464
+ };
10465
+ }]
10466
+ },
10467
+ post: {
10468
+ REQUEST: [function (payload) {
10469
+ return payload;
10470
+ }, function () {
10471
+ return {
10472
+ reducerName: 'workRecordsGeneric'
10473
+ };
10474
+ }],
10475
+ RECEIVE: [function (payload) {
10476
+ return payload;
10477
+ }, function () {
10478
+ return {
10479
+ reducerName: 'workRecordsGeneric'
10480
+ };
10481
+ }],
10482
+ ERROR: [function (payload) {
10483
+ return payload;
10484
+ }, function () {
10485
+ return {
10486
+ reducerName: 'workRecordsGeneric'
10487
+ };
10488
+ }],
10489
+ CLEARDATA: [function (payload) {
10490
+ return payload;
10491
+ }, function () {
10492
+ return {
10493
+ reducerName: 'workRecordsGeneric'
10494
+ };
10495
+ }],
10496
+ UPDATEPARTIALENTITY: [function (payload) {
10497
+ return payload;
10498
+ }, function () {
10499
+ return {
10500
+ reducerName: 'workRecordsGeneric'
10501
+ };
10502
+ }]
10503
+ }
10504
+ },
10505
+ workRecordsHourly: {
10506
+ get: {
10507
+ REQUEST: [function (payload) {
10508
+ return payload;
10509
+ }, function () {
10510
+ return {
10511
+ reducerName: 'workRecordsHourly'
10512
+ };
10513
+ }],
10514
+ RECEIVE: [function (payload) {
10515
+ return payload;
10516
+ }, function () {
10517
+ return {
10518
+ reducerName: 'workRecordsHourly'
10519
+ };
10520
+ }],
10521
+ ERROR: [function (payload) {
10522
+ return payload;
10523
+ }, function () {
10524
+ return {
10525
+ reducerName: 'workRecordsHourly'
10526
+ };
10527
+ }],
10528
+ CLEARDATA: [function (payload) {
10529
+ return payload;
10530
+ }, function () {
10531
+ return {
10532
+ reducerName: 'workRecordsHourly'
10533
+ };
10534
+ }],
10535
+ UPDATEPARTIALENTITY: [function (payload) {
10536
+ return payload;
10537
+ }, function () {
10538
+ return {
10539
+ reducerName: 'workRecordsHourly'
10540
+ };
10541
+ }]
10542
+ },
10543
+ post: {
10544
+ REQUEST: [function (payload) {
10545
+ return payload;
10546
+ }, function () {
10547
+ return {
10548
+ reducerName: 'workRecordsHourly'
10549
+ };
10550
+ }],
10551
+ RECEIVE: [function (payload) {
10552
+ return payload;
10553
+ }, function () {
10554
+ return {
10555
+ reducerName: 'workRecordsHourly'
10556
+ };
10557
+ }],
10558
+ ERROR: [function (payload) {
10559
+ return payload;
10560
+ }, function () {
10561
+ return {
10562
+ reducerName: 'workRecordsHourly'
10563
+ };
10564
+ }],
10565
+ CLEARDATA: [function (payload) {
10566
+ return payload;
10567
+ }, function () {
10568
+ return {
10569
+ reducerName: 'workRecordsHourly'
10570
+ };
10571
+ }],
10572
+ UPDATEPARTIALENTITY: [function (payload) {
10573
+ return payload;
10574
+ }, function () {
10575
+ return {
10576
+ reducerName: 'workRecordsHourly'
10577
+ };
10578
+ }]
10579
+ },
10580
+ put: {
10581
+ REQUEST: [function (payload) {
10582
+ return payload;
10583
+ }, function () {
10584
+ return {
10585
+ reducerName: 'workRecordsHourly'
10586
+ };
10587
+ }],
10588
+ RECEIVE: [function (payload) {
10589
+ return payload;
10590
+ }, function () {
10591
+ return {
10592
+ reducerName: 'workRecordsHourly'
10593
+ };
10594
+ }],
10595
+ ERROR: [function (payload) {
10596
+ return payload;
10597
+ }, function () {
10598
+ return {
10599
+ reducerName: 'workRecordsHourly'
10600
+ };
10601
+ }],
10602
+ CLEARDATA: [function (payload) {
10603
+ return payload;
10604
+ }, function () {
10605
+ return {
10606
+ reducerName: 'workRecordsHourly'
10607
+ };
10608
+ }],
10609
+ UPDATEPARTIALENTITY: [function (payload) {
10610
+ return payload;
10611
+ }, function () {
10612
+ return {
10613
+ reducerName: 'workRecordsHourly'
10614
+ };
10615
+ }]
10616
+ }
10617
+ },
10501
10618
  lookupClassification: {
10502
10619
  get: {
10503
10620
  REQUEST: [function (payload) {
@@ -872,25 +872,36 @@ Object.keys(_useFetchjobWorkRecords).forEach(function (key) {
872
872
  }
873
873
  });
874
874
  });
875
- var _useFetchworkRecordsGeneric = require("./useFetchworkRecordsGeneric");
876
- Object.keys(_useFetchworkRecordsGeneric).forEach(function (key) {
875
+ var _useFetchjobWorkRecordSupervisors = require("./useFetchjobWorkRecordSupervisors");
876
+ Object.keys(_useFetchjobWorkRecordSupervisors).forEach(function (key) {
877
877
  if (key === "default" || key === "__esModule") return;
878
- if (key in exports && exports[key] === _useFetchworkRecordsGeneric[key]) return;
878
+ if (key in exports && exports[key] === _useFetchjobWorkRecordSupervisors[key]) return;
879
879
  Object.defineProperty(exports, key, {
880
880
  enumerable: true,
881
881
  get: function get() {
882
- return _useFetchworkRecordsGeneric[key];
882
+ return _useFetchjobWorkRecordSupervisors[key];
883
883
  }
884
884
  });
885
885
  });
886
- var _useFetchworkRecordsHourly = require("./useFetchworkRecordsHourly");
887
- Object.keys(_useFetchworkRecordsHourly).forEach(function (key) {
886
+ var _useFetchjobWorkRecordWorkers = require("./useFetchjobWorkRecordWorkers");
887
+ Object.keys(_useFetchjobWorkRecordWorkers).forEach(function (key) {
888
888
  if (key === "default" || key === "__esModule") return;
889
- if (key in exports && exports[key] === _useFetchworkRecordsHourly[key]) return;
889
+ if (key in exports && exports[key] === _useFetchjobWorkRecordWorkers[key]) return;
890
890
  Object.defineProperty(exports, key, {
891
891
  enumerable: true,
892
892
  get: function get() {
893
- return _useFetchworkRecordsHourly[key];
893
+ return _useFetchjobWorkRecordWorkers[key];
894
+ }
895
+ });
896
+ });
897
+ var _useFetchjobWorkRecordReferenceTypes = require("./useFetchjobWorkRecordReferenceTypes");
898
+ Object.keys(_useFetchjobWorkRecordReferenceTypes).forEach(function (key) {
899
+ if (key === "default" || key === "__esModule") return;
900
+ if (key in exports && exports[key] === _useFetchjobWorkRecordReferenceTypes[key]) return;
901
+ Object.defineProperty(exports, key, {
902
+ enumerable: true,
903
+ get: function get() {
904
+ return _useFetchjobWorkRecordReferenceTypes[key];
894
905
  }
895
906
  });
896
907
  });
@@ -1532,6 +1543,28 @@ Object.keys(_useFetchworkerWorkRecords).forEach(function (key) {
1532
1543
  }
1533
1544
  });
1534
1545
  });
1546
+ var _useFetchworkRecordsGeneric = require("./useFetchworkRecordsGeneric");
1547
+ Object.keys(_useFetchworkRecordsGeneric).forEach(function (key) {
1548
+ if (key === "default" || key === "__esModule") return;
1549
+ if (key in exports && exports[key] === _useFetchworkRecordsGeneric[key]) return;
1550
+ Object.defineProperty(exports, key, {
1551
+ enumerable: true,
1552
+ get: function get() {
1553
+ return _useFetchworkRecordsGeneric[key];
1554
+ }
1555
+ });
1556
+ });
1557
+ var _useFetchworkRecordsHourly = require("./useFetchworkRecordsHourly");
1558
+ Object.keys(_useFetchworkRecordsHourly).forEach(function (key) {
1559
+ if (key === "default" || key === "__esModule") return;
1560
+ if (key in exports && exports[key] === _useFetchworkRecordsHourly[key]) return;
1561
+ Object.defineProperty(exports, key, {
1562
+ enumerable: true,
1563
+ get: function get() {
1564
+ return _useFetchworkRecordsHourly[key];
1565
+ }
1566
+ });
1567
+ });
1535
1568
  var _useFetchlookupClassification = require("./useFetchlookupClassification");
1536
1569
  Object.keys(_useFetchlookupClassification).forEach(function (key) {
1537
1570
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useFetchJobWorkRecordReferenceTypes = 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 _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
+ 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); }
14
+ 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; }
15
+ 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; }
16
+ 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; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); }
19
+ var useFetchJobWorkRecordReferenceTypes = exports.useFetchJobWorkRecordReferenceTypes = function useFetchJobWorkRecordReferenceTypes(props) {
20
+ // selectors
21
+ var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getJobWorkRecordReferenceTypesEntityData);
22
+ var dispatchAPI = (0, _reactRedux.useDispatch)();
23
+ var _props$queryParams = props.queryParams,
24
+ queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
25
+ (0, _react.useEffect)(function () {
26
+ dispatchAPI(_actions.VineaNovaActions.api.v1.jobWorkRecordReferenceTypes.get.request({
27
+ queryParams: _objectSpread({}, queryParams)
28
+ }));
29
+ }, []);
30
+ var useQuery = function useQuery(queryParams) {
31
+ dispatchAPI(_actions.VineaNovaActions.api.v1.jobWorkRecordReferenceTypes.get.request({
32
+ queryParams: _objectSpread({}, queryParams)
33
+ }));
34
+ };
35
+ return {
36
+ data: data,
37
+ useQuery: useQuery
38
+ };
39
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useFetchJobWorkRecordSupervisors = 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 _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
+ 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); }
14
+ 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; }
15
+ 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; }
16
+ 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; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); }
19
+ var useFetchJobWorkRecordSupervisors = exports.useFetchJobWorkRecordSupervisors = function useFetchJobWorkRecordSupervisors(props) {
20
+ // selectors
21
+ var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getJobWorkRecordSupervisorsEntityData);
22
+ var dispatchAPI = (0, _reactRedux.useDispatch)();
23
+ var _props$queryParams = props.queryParams,
24
+ queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
25
+ (0, _react.useEffect)(function () {
26
+ dispatchAPI(_actions.VineaNovaActions.api.v1.jobWorkRecordSupervisors.get.request({
27
+ queryParams: _objectSpread({}, queryParams)
28
+ }));
29
+ }, []);
30
+ var useQuery = function useQuery(queryParams) {
31
+ dispatchAPI(_actions.VineaNovaActions.api.v1.jobWorkRecordSupervisors.get.request({
32
+ queryParams: _objectSpread({}, queryParams)
33
+ }));
34
+ };
35
+ return {
36
+ data: data,
37
+ useQuery: useQuery
38
+ };
39
+ };
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useFetchJobWorkRecordWorkers = 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 _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
13
+ 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); }
14
+ 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; }
15
+ 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; }
16
+ 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; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); }
19
+ var useFetchJobWorkRecordWorkers = exports.useFetchJobWorkRecordWorkers = function useFetchJobWorkRecordWorkers(props) {
20
+ // selectors
21
+ var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getJobWorkRecordWorkersEntityData);
22
+ var dispatchAPI = (0, _reactRedux.useDispatch)();
23
+ var _props$queryParams = props.queryParams,
24
+ queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
25
+ (0, _react.useEffect)(function () {
26
+ dispatchAPI(_actions.VineaNovaActions.api.v1.jobWorkRecordWorkers.get.request({
27
+ queryParams: _objectSpread({}, queryParams)
28
+ }));
29
+ }, []);
30
+ var useQuery = function useQuery(queryParams) {
31
+ dispatchAPI(_actions.VineaNovaActions.api.v1.jobWorkRecordWorkers.get.request({
32
+ queryParams: _objectSpread({}, queryParams)
33
+ }));
34
+ };
35
+ return {
36
+ data: data,
37
+ useQuery: useQuery
38
+ };
39
+ };