@commercetools-frontend-extensions/change-history 8.43.2 → 8.44.0
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.
|
@@ -137,7 +137,7 @@ var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
|
137
137
|
var RadioInput__default = /*#__PURE__*/_interopDefault(RadioInput);
|
|
138
138
|
|
|
139
139
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
140
|
-
var version = "8.
|
|
140
|
+
var version = "8.44.0";
|
|
141
141
|
|
|
142
142
|
var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
143
143
|
/**
|
|
@@ -13210,7 +13210,7 @@ const getEntityLabelCustomerWhereFromChangeHistoryData = data => {
|
|
|
13210
13210
|
};
|
|
13211
13211
|
|
|
13212
13212
|
function ownKeys$D(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13213
|
-
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
13213
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$D(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$D(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13214
13214
|
var FetchAllUsersOfOrganization = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchAllUsersOfOrganization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allUsersOfOrganization" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "organizationId" }, value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 172, source: { body: "query FetchAllUsersOfOrganization($organizationId: String!) {\n allUsersOfOrganization(organizationId: $organizationId) {\n id\n firstName\n lastName\n email\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13215
13215
|
var FetchApiClientsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchOAuthClientsQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "oAuthClients" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "500" } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "StringValue", value: "name asc", block: false } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 124, source: { body: "query FetchOAuthClientsQuery {\n oAuthClients(limit: 500, sort: \"name asc\") {\n results {\n id\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13216
13216
|
var FetchCurrentRecords = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCurrentRecords" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "status" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "currentRecords" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 64, source: { body: "query FetchCurrentRecords {\n status {\n currentRecords\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
@@ -13372,12 +13372,24 @@ const ChangeHistoryListConnector = props => {
|
|
|
13372
13372
|
const members = !isUserDataLoading ? gatherMembersFromGraphqlResponse(userData) : {};
|
|
13373
13373
|
const apiClients = !isApiClientsLoading ? gatherApiClientsFromGraphqlResponse(apiClientsData) : {};
|
|
13374
13374
|
const customers = !isCustomersLoading ? gatherCustomersFromGraphqlResponse(customersData) : {};
|
|
13375
|
+
|
|
13376
|
+
/**
|
|
13377
|
+
* Based on the available translations we filter out all those changes that the Backend returns but we don't
|
|
13378
|
+
* have a proper support on frontend.
|
|
13379
|
+
* In case the record ends up with no changes, the UI will render the current label "Unknown changes"
|
|
13380
|
+
*/
|
|
13381
|
+
const historyWithSupportedChanges = history?.results.map(result => {
|
|
13382
|
+
var _context2;
|
|
13383
|
+
return _objectSpread$D(_objectSpread$D({}, result), {}, {
|
|
13384
|
+
changes: _filterInstanceProperty__default["default"](_context2 = result.changes).call(_context2, change => getChangeNameMessage(result.resource.typeId, change?.['change']))
|
|
13385
|
+
});
|
|
13386
|
+
}) || [];
|
|
13375
13387
|
return props.children({
|
|
13376
13388
|
isLoading: Boolean(isChangeHistoryLoading || isUserDataLoading || isApiClientsLoading || isCustomersLoading || isCurrentRecordsLoading || isStoresLoading || isEntityLabelCustomerLoading),
|
|
13377
13389
|
changeHistoryFetcher: {
|
|
13378
13390
|
history: {
|
|
13379
13391
|
total: history?.total || 0,
|
|
13380
|
-
results:
|
|
13392
|
+
results: historyWithSupportedChanges
|
|
13381
13393
|
},
|
|
13382
13394
|
searchQuery: props.searchQuery
|
|
13383
13395
|
},
|
|
@@ -137,7 +137,7 @@ var debounce__default = /*#__PURE__*/_interopDefault(debounce);
|
|
|
137
137
|
var RadioInput__default = /*#__PURE__*/_interopDefault(RadioInput);
|
|
138
138
|
|
|
139
139
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
140
|
-
var version = "8.
|
|
140
|
+
var version = "8.44.0";
|
|
141
141
|
|
|
142
142
|
var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
143
143
|
/**
|
|
@@ -13152,7 +13152,7 @@ const getEntityLabelCustomerWhereFromChangeHistoryData = data => {
|
|
|
13152
13152
|
};
|
|
13153
13153
|
|
|
13154
13154
|
function ownKeys$D(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13155
|
-
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
13155
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context3 = ownKeys$D(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context4 = ownKeys$D(Object(t))).call(_context4, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
13156
13156
|
var FetchAllUsersOfOrganization = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchAllUsersOfOrganization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allUsersOfOrganization" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "organizationId" }, value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 172, source: { body: "query FetchAllUsersOfOrganization($organizationId: String!) {\n allUsersOfOrganization(organizationId: $organizationId) {\n id\n firstName\n lastName\n email\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13157
13157
|
var FetchApiClientsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchOAuthClientsQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "oAuthClients" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "500" } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "StringValue", value: "name asc", block: false } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 124, source: { body: "query FetchOAuthClientsQuery {\n oAuthClients(limit: 500, sort: \"name asc\") {\n results {\n id\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13158
13158
|
var FetchCurrentRecords = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCurrentRecords" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "status" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "currentRecords" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 64, source: { body: "query FetchCurrentRecords {\n status {\n currentRecords\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
@@ -13314,12 +13314,24 @@ const ChangeHistoryListConnector = props => {
|
|
|
13314
13314
|
const members = !isUserDataLoading ? gatherMembersFromGraphqlResponse(userData) : {};
|
|
13315
13315
|
const apiClients = !isApiClientsLoading ? gatherApiClientsFromGraphqlResponse(apiClientsData) : {};
|
|
13316
13316
|
const customers = !isCustomersLoading ? gatherCustomersFromGraphqlResponse(customersData) : {};
|
|
13317
|
+
|
|
13318
|
+
/**
|
|
13319
|
+
* Based on the available translations we filter out all those changes that the Backend returns but we don't
|
|
13320
|
+
* have a proper support on frontend.
|
|
13321
|
+
* In case the record ends up with no changes, the UI will render the current label "Unknown changes"
|
|
13322
|
+
*/
|
|
13323
|
+
const historyWithSupportedChanges = history?.results.map(result => {
|
|
13324
|
+
var _context2;
|
|
13325
|
+
return _objectSpread$D(_objectSpread$D({}, result), {}, {
|
|
13326
|
+
changes: _filterInstanceProperty__default["default"](_context2 = result.changes).call(_context2, change => getChangeNameMessage(result.resource.typeId, change?.['change']))
|
|
13327
|
+
});
|
|
13328
|
+
}) || [];
|
|
13317
13329
|
return props.children({
|
|
13318
13330
|
isLoading: Boolean(isChangeHistoryLoading || isUserDataLoading || isApiClientsLoading || isCustomersLoading || isCurrentRecordsLoading || isStoresLoading || isEntityLabelCustomerLoading),
|
|
13319
13331
|
changeHistoryFetcher: {
|
|
13320
13332
|
history: {
|
|
13321
13333
|
total: history?.total || 0,
|
|
13322
|
-
results:
|
|
13334
|
+
results: historyWithSupportedChanges
|
|
13323
13335
|
},
|
|
13324
13336
|
searchQuery: props.searchQuery
|
|
13325
13337
|
},
|
|
@@ -81,7 +81,7 @@ import { oneLineTrim } from 'common-tags';
|
|
|
81
81
|
import { parseChunkImport, mapLocaleToIntlLocale } from '@commercetools-frontend/i18n';
|
|
82
82
|
|
|
83
83
|
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
|
|
84
|
-
var version = "8.
|
|
84
|
+
var version = "8.44.0";
|
|
85
85
|
|
|
86
86
|
var fetchFeatureStatusQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchFeatureStatusQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allFeatures" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "reason" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 84, source: { body: "query FetchFeatureStatusQuery {\n allFeatures {\n name\n value\n reason\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
87
87
|
/**
|
|
@@ -13154,7 +13154,7 @@ const getEntityLabelCustomerWhereFromChangeHistoryData = data => {
|
|
|
13154
13154
|
};
|
|
13155
13155
|
|
|
13156
13156
|
function ownKeys$D(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13157
|
-
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
13157
|
+
function _objectSpread$D(e) { for (var r = 1; r < arguments.length; r++) { var _context3, _context4; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context3 = ownKeys$D(Object(t), !0)).call(_context3, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context4 = ownKeys$D(Object(t))).call(_context4, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13158
13158
|
var FetchAllUsersOfOrganization = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchAllUsersOfOrganization" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "allUsersOfOrganization" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "organizationId" }, value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "firstName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "lastName" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "email" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 172, source: { body: "query FetchAllUsersOfOrganization($organizationId: String!) {\n allUsersOfOrganization(organizationId: $organizationId) {\n id\n firstName\n lastName\n email\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13159
13159
|
var FetchApiClientsQuery = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchOAuthClientsQuery" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "oAuthClients" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "limit" }, value: { kind: "IntValue", value: "500" } }, { kind: "Argument", name: { kind: "Name", value: "sort" }, value: { kind: "StringValue", value: "name asc", block: false } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 124, source: { body: "query FetchOAuthClientsQuery {\n oAuthClients(limit: 500, sort: \"name asc\") {\n results {\n id\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
13160
13160
|
var FetchCurrentRecords = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCurrentRecords" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "status" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "currentRecords" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 64, source: { body: "query FetchCurrentRecords {\n status {\n currentRecords\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
@@ -13316,12 +13316,24 @@ const ChangeHistoryListConnector = props => {
|
|
|
13316
13316
|
const members = !isUserDataLoading ? gatherMembersFromGraphqlResponse(userData) : {};
|
|
13317
13317
|
const apiClients = !isApiClientsLoading ? gatherApiClientsFromGraphqlResponse(apiClientsData) : {};
|
|
13318
13318
|
const customers = !isCustomersLoading ? gatherCustomersFromGraphqlResponse(customersData) : {};
|
|
13319
|
+
|
|
13320
|
+
/**
|
|
13321
|
+
* Based on the available translations we filter out all those changes that the Backend returns but we don't
|
|
13322
|
+
* have a proper support on frontend.
|
|
13323
|
+
* In case the record ends up with no changes, the UI will render the current label "Unknown changes"
|
|
13324
|
+
*/
|
|
13325
|
+
const historyWithSupportedChanges = history?.results.map(result => {
|
|
13326
|
+
var _context2;
|
|
13327
|
+
return _objectSpread$D(_objectSpread$D({}, result), {}, {
|
|
13328
|
+
changes: _filterInstanceProperty(_context2 = result.changes).call(_context2, change => getChangeNameMessage(result.resource.typeId, change?.['change']))
|
|
13329
|
+
});
|
|
13330
|
+
}) || [];
|
|
13319
13331
|
return props.children({
|
|
13320
13332
|
isLoading: Boolean(isChangeHistoryLoading || isUserDataLoading || isApiClientsLoading || isCustomersLoading || isCurrentRecordsLoading || isStoresLoading || isEntityLabelCustomerLoading),
|
|
13321
13333
|
changeHistoryFetcher: {
|
|
13322
13334
|
history: {
|
|
13323
13335
|
total: history?.total || 0,
|
|
13324
|
-
results:
|
|
13336
|
+
results: historyWithSupportedChanges
|
|
13325
13337
|
},
|
|
13326
13338
|
searchQuery: props.searchQuery
|
|
13327
13339
|
},
|
package/package.json
CHANGED