@bjsdistribution/dms-client-return 0.0.68 → 0.0.69
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/common/date-picker/header/ClearDate.d.ts +1 -1
- package/dist/components/order-daily-overview/table/table-data/styles.d.ts +3 -3
- package/dist/components/order-daily-overview/table-view/TableStyle.d.ts +4 -4
- package/dist/components/order-view/view-reminder/reminder-styles.d.ts +2 -2
- package/dist/dms-client-return.cjs.development.js +25 -26
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +25 -26
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/index.tsx +1 -1
|
@@ -62,7 +62,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
62
62
|
if (null == r) return {};
|
|
63
63
|
var t = {};
|
|
64
64
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
65
|
-
if (e.
|
|
65
|
+
if (e.includes(n)) continue;
|
|
66
66
|
t[n] = r[n];
|
|
67
67
|
}
|
|
68
68
|
return t;
|
|
@@ -3843,7 +3843,7 @@ function SpokePhoneIcon() {
|
|
|
3843
3843
|
|
|
3844
3844
|
function useCopyToClipboard() {
|
|
3845
3845
|
var copy = /*#__PURE__*/function () {
|
|
3846
|
-
var _ref = _asyncToGenerator(
|
|
3846
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
|
|
3847
3847
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3848
3848
|
while (1) switch (_context.prev = _context.next) {
|
|
3849
3849
|
case 0:
|
|
@@ -5236,7 +5236,7 @@ function useUpdateOrder() {
|
|
|
5236
5236
|
var _useUpdateApiCall = useUpdateApiCall(),
|
|
5237
5237
|
setCallApi = _useUpdateApiCall[1]; //single detail
|
|
5238
5238
|
var update = /*#__PURE__*/function () {
|
|
5239
|
-
var _ref = _asyncToGenerator(
|
|
5239
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
5240
5240
|
var endpoint, signal, requestOptions, response, json;
|
|
5241
5241
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5242
5242
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5344,7 +5344,7 @@ function OrderDetailsFooter() {
|
|
|
5344
5344
|
return !isSame;
|
|
5345
5345
|
};
|
|
5346
5346
|
var onSave = /*#__PURE__*/function () {
|
|
5347
|
-
var _ref = _asyncToGenerator(
|
|
5347
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5348
5348
|
var _response$data;
|
|
5349
5349
|
var payload, response, _response$data$, _response$data$2;
|
|
5350
5350
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -5462,7 +5462,7 @@ function AddNote() {
|
|
|
5462
5462
|
notificationData = _useState2[0],
|
|
5463
5463
|
setNotificationData = _useState2[1];
|
|
5464
5464
|
var saveNote = /*#__PURE__*/function () {
|
|
5465
|
-
var _ref = _asyncToGenerator(
|
|
5465
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5466
5466
|
var endpoint, payload, response;
|
|
5467
5467
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5468
5468
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5965,7 +5965,7 @@ var tableColumns = [{
|
|
|
5965
5965
|
function useGetEventNotes() {
|
|
5966
5966
|
var ssoToken = getCookie('id_token');
|
|
5967
5967
|
var perform = /*#__PURE__*/function () {
|
|
5968
|
-
var _ref = _asyncToGenerator(
|
|
5968
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5969
5969
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
5970
5970
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5971
5971
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6050,7 +6050,7 @@ function SystemLogs() {
|
|
|
6050
6050
|
setNotesData = _useEventNotesData[1];
|
|
6051
6051
|
// const gsitId = orderDetails?.gsit_order_id;
|
|
6052
6052
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
6053
|
-
var _ref = _asyncToGenerator(
|
|
6053
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6054
6054
|
var result;
|
|
6055
6055
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6056
6056
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8254,7 +8254,7 @@ function ConfirmOrder() {
|
|
|
8254
8254
|
return Object.keys(obj).length === 1 && obj.hasOwnProperty('id');
|
|
8255
8255
|
}
|
|
8256
8256
|
var ConfirmOrder = /*#__PURE__*/function () {
|
|
8257
|
-
var _ref = _asyncToGenerator(
|
|
8257
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8258
8258
|
var keysToRemovefromOrders, filteredOrderDetails, filteredPrevOrderDetails, payload, notUpdateOrder, _response$data, _response, formattedDate;
|
|
8259
8259
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8260
8260
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9101,7 +9101,7 @@ function useFetchSingleReminderData() {
|
|
|
9101
9101
|
setLoading = _useFlagsLoading[1];
|
|
9102
9102
|
var ssoToken = getCookie('id_token');
|
|
9103
9103
|
var res = /*#__PURE__*/function () {
|
|
9104
|
-
var _ref = _asyncToGenerator(
|
|
9104
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9105
9105
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9106
9106
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9107
9107
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9200,7 +9200,7 @@ function useUpdateReminder() {
|
|
|
9200
9200
|
var _useFlagsLoading = useFlagsLoading(),
|
|
9201
9201
|
setLoading = _useFlagsLoading[1];
|
|
9202
9202
|
var update = /*#__PURE__*/function () {
|
|
9203
|
-
var _ref = _asyncToGenerator(
|
|
9203
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9204
9204
|
var endpoint, requestOptions, response, json;
|
|
9205
9205
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9206
9206
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9270,7 +9270,7 @@ function useFetchReminders() {
|
|
|
9270
9270
|
var _useOrderDetails = useOrderDetails(),
|
|
9271
9271
|
OrderData = _useOrderDetails[0];
|
|
9272
9272
|
var perform = /*#__PURE__*/function () {
|
|
9273
|
-
var _ref = _asyncToGenerator(
|
|
9273
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9274
9274
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9275
9275
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9276
9276
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9378,7 +9378,7 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
9378
9378
|
setCurrentAction(undefined);
|
|
9379
9379
|
};
|
|
9380
9380
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
9381
|
-
var _ref = _asyncToGenerator(
|
|
9381
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9382
9382
|
var result;
|
|
9383
9383
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9384
9384
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9451,7 +9451,7 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
9451
9451
|
}));
|
|
9452
9452
|
};
|
|
9453
9453
|
var handleEditReminder = /*#__PURE__*/function () {
|
|
9454
|
-
var _ref2 = _asyncToGenerator(
|
|
9454
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
9455
9455
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9456
9456
|
while (1) switch (_context2.prev = _context2.next) {
|
|
9457
9457
|
case 0:
|
|
@@ -9772,7 +9772,7 @@ function useCreateReminder() {
|
|
|
9772
9772
|
var _useFlagsLoading = useFlagsLoading(),
|
|
9773
9773
|
setLoading = _useFlagsLoading[1];
|
|
9774
9774
|
var create = /*#__PURE__*/function () {
|
|
9775
|
-
var _ref = _asyncToGenerator(
|
|
9775
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9776
9776
|
var endpoint, requestOptions, response, json;
|
|
9777
9777
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9778
9778
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9850,7 +9850,7 @@ function useFetchUnresolvedTasks() {
|
|
|
9850
9850
|
var _useOrderDetails = useOrderDetails(),
|
|
9851
9851
|
OrderData = _useOrderDetails[0];
|
|
9852
9852
|
var perform = /*#__PURE__*/function () {
|
|
9853
|
-
var _ref = _asyncToGenerator(
|
|
9853
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9854
9854
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9855
9855
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9856
9856
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10000,7 +10000,7 @@ function TaskReminderModal() {
|
|
|
10000
10000
|
setReminderPayload(initialValue);
|
|
10001
10001
|
};
|
|
10002
10002
|
var handleReminderSubmit = /*#__PURE__*/function () {
|
|
10003
|
-
var _ref = _asyncToGenerator(
|
|
10003
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10004
10004
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10005
10005
|
while (1) switch (_context.prev = _context.next) {
|
|
10006
10006
|
case 0:
|
|
@@ -10050,7 +10050,7 @@ function OrderLock() {
|
|
|
10050
10050
|
setCurrentAction(undefined);
|
|
10051
10051
|
};
|
|
10052
10052
|
var onComplete = /*#__PURE__*/function () {
|
|
10053
|
-
var _ref = _asyncToGenerator(
|
|
10053
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10054
10054
|
var isLocked, payload, response;
|
|
10055
10055
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10056
10056
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10097,7 +10097,7 @@ function useUpdateFlag() {
|
|
|
10097
10097
|
var _useFlagsLoading = useFlagsLoading(),
|
|
10098
10098
|
setLoading = _useFlagsLoading[1];
|
|
10099
10099
|
var create = /*#__PURE__*/function () {
|
|
10100
|
-
var _ref = _asyncToGenerator(
|
|
10100
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
10101
10101
|
var endpoint, requestOptions, response, json;
|
|
10102
10102
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10103
10103
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10189,7 +10189,7 @@ function HeaderSection() {
|
|
|
10189
10189
|
setIsModalOpen(false);
|
|
10190
10190
|
};
|
|
10191
10191
|
var saveButton = /*#__PURE__*/function () {
|
|
10192
|
-
var _ref = _asyncToGenerator(
|
|
10192
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10193
10193
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10194
10194
|
while (1) switch (_context.prev = _context.next) {
|
|
10195
10195
|
case 0:
|
|
@@ -10365,7 +10365,7 @@ function ActionSection() {
|
|
|
10365
10365
|
setLoading = _useFlagsLoading[1];
|
|
10366
10366
|
var updateFlag = useUpdateFlag();
|
|
10367
10367
|
var onSubmit = /*#__PURE__*/function () {
|
|
10368
|
-
var _ref = _asyncToGenerator(
|
|
10368
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10369
10369
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10370
10370
|
while (1) switch (_context.prev = _context.next) {
|
|
10371
10371
|
case 0:
|
|
@@ -10472,7 +10472,7 @@ function useFetchSingleFlagsData() {
|
|
|
10472
10472
|
var ssoToken = getCookie('id_token');
|
|
10473
10473
|
console.log(loading, 'loading loading');
|
|
10474
10474
|
var res = /*#__PURE__*/function () {
|
|
10475
|
-
var _ref = _asyncToGenerator(
|
|
10475
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10476
10476
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
10477
10477
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10478
10478
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10603,7 +10603,7 @@ function ViewFlag() {
|
|
|
10603
10603
|
}
|
|
10604
10604
|
}, [staticData]);
|
|
10605
10605
|
var fetchAndSetSingleFlagData = /*#__PURE__*/function () {
|
|
10606
|
-
var _ref = _asyncToGenerator(
|
|
10606
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10607
10607
|
var result;
|
|
10608
10608
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10609
10609
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10787,7 +10787,7 @@ function useSystemLogs() {
|
|
|
10787
10787
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
10788
10788
|
setSystemLogsEvents = _useOrderProductSyste[1];
|
|
10789
10789
|
var perform = /*#__PURE__*/function () {
|
|
10790
|
-
var _ref = _asyncToGenerator(
|
|
10790
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10791
10791
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
10792
10792
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10793
10793
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -11392,7 +11392,7 @@ function OrderView() {
|
|
|
11392
11392
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
11393
11393
|
setSystemLogsEvents = _useOrderProductSyste[1];
|
|
11394
11394
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
11395
|
-
var _ref = _asyncToGenerator(
|
|
11395
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11396
11396
|
var result;
|
|
11397
11397
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11398
11398
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -11928,8 +11928,7 @@ function ReturnClient() {
|
|
|
11928
11928
|
method: 'GET',
|
|
11929
11929
|
//@ts-ignore
|
|
11930
11930
|
pagination: {
|
|
11931
|
-
|
|
11932
|
-
per_page: 50
|
|
11931
|
+
is_pagination: false
|
|
11933
11932
|
}
|
|
11934
11933
|
}),
|
|
11935
11934
|
fetchedCustomerData = _useApiHook.data,
|