@plusscommunities/pluss-maintenance-web 1.1.28 → 1.1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -3383,8 +3383,7 @@ var Job = /*#__PURE__*/function (_Component) {
3383
3383
  })));
3384
3384
 
3385
3385
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
3386
- var res, _error$response;
3387
-
3386
+ var res;
3388
3387
  return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
3389
3388
  while (1) {
3390
3389
  switch (_context3.prev = _context3.next) {
@@ -3414,7 +3413,7 @@ var Job = /*#__PURE__*/function (_Component) {
3414
3413
  _context3.t0 = _context3["catch"](0);
3415
3414
 
3416
3415
  // 404 is expected if no sync - don't show error
3417
- if (((_error$response = _context3.t0.response) === null || _error$response === void 0 ? void 0 : _error$response.status) !== 404) {
3416
+ if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
3418
3417
  console.error('getExternalSync', _context3.t0);
3419
3418
  }
3420
3419
 
@@ -4518,7 +4517,7 @@ var Job = /*#__PURE__*/function (_Component) {
4518
4517
  }
4519
4518
  }, /*#__PURE__*/React__default['default'].createElement("span", {
4520
4519
  className: "statusLabel_text"
4521
- }, isSuccess ? "Synced to ".concat(e.externalSystem || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to external system".concat(e.error ? ": ".concat(e.error) : ''))));
4520
+ }, isSuccess ? "Synced to ".concat(e.systemType || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to ".concat(e.systemType || 'external system').concat(e.error ? ": ".concat(e.error) : ''))));
4522
4521
  }
4523
4522
  }, {
4524
4523
  key: "renderPriority",
@@ -4551,10 +4550,10 @@ var Job = /*#__PURE__*/function (_Component) {
4551
4550
  className: "flex-1"
4552
4551
  }, "External Sync")), /*#__PURE__*/React__default['default'].createElement("div", {
4553
4552
  className: "marginTop-16"
4554
- }, externalSync.externalSystem && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4553
+ }, externalSync.systemType && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4555
4554
  type: "body",
4556
4555
  className: "marginBottom-8"
4557
- }, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.externalSystem), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4556
+ }, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4558
4557
  type: "body",
4559
4558
  className: "marginBottom-8"
4560
4559
  }, /*#__PURE__*/React__default['default'].createElement("strong", null, "External ID:"), " ", externalSync.externalId), externalSync.syncedAt && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
package/dist/index.esm.js CHANGED
@@ -3340,8 +3340,7 @@ var Job = /*#__PURE__*/function (_Component) {
3340
3340
  })));
3341
3341
 
3342
3342
  _defineProperty(_assertThisInitialized(_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
3343
- var res, _error$response;
3344
-
3343
+ var res;
3345
3344
  return _regeneratorRuntime.wrap(function _callee3$(_context3) {
3346
3345
  while (1) {
3347
3346
  switch (_context3.prev = _context3.next) {
@@ -3371,7 +3370,7 @@ var Job = /*#__PURE__*/function (_Component) {
3371
3370
  _context3.t0 = _context3["catch"](0);
3372
3371
 
3373
3372
  // 404 is expected if no sync - don't show error
3374
- if (((_error$response = _context3.t0.response) === null || _error$response === void 0 ? void 0 : _error$response.status) !== 404) {
3373
+ if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
3375
3374
  console.error('getExternalSync', _context3.t0);
3376
3375
  }
3377
3376
 
@@ -4475,7 +4474,7 @@ var Job = /*#__PURE__*/function (_Component) {
4475
4474
  }
4476
4475
  }, /*#__PURE__*/React.createElement("span", {
4477
4476
  className: "statusLabel_text"
4478
- }, isSuccess ? "Synced to ".concat(e.externalSystem || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to external system".concat(e.error ? ": ".concat(e.error) : ''))));
4477
+ }, isSuccess ? "Synced to ".concat(e.systemType || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to ".concat(e.systemType || 'external system').concat(e.error ? ": ".concat(e.error) : ''))));
4479
4478
  }
4480
4479
  }, {
4481
4480
  key: "renderPriority",
@@ -4508,10 +4507,10 @@ var Job = /*#__PURE__*/function (_Component) {
4508
4507
  className: "flex-1"
4509
4508
  }, "External Sync")), /*#__PURE__*/React.createElement("div", {
4510
4509
  className: "marginTop-16"
4511
- }, externalSync.externalSystem && /*#__PURE__*/React.createElement(Components$3.Text, {
4510
+ }, externalSync.systemType && /*#__PURE__*/React.createElement(Components$3.Text, {
4512
4511
  type: "body",
4513
4512
  className: "marginBottom-8"
4514
- }, /*#__PURE__*/React.createElement("strong", null, "System:"), " ", externalSync.externalSystem), externalSync.externalId && /*#__PURE__*/React.createElement(Components$3.Text, {
4513
+ }, /*#__PURE__*/React.createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React.createElement(Components$3.Text, {
4515
4514
  type: "body",
4516
4515
  className: "marginBottom-8"
4517
4516
  }, /*#__PURE__*/React.createElement("strong", null, "External ID:"), " ", externalSync.externalId), externalSync.syncedAt && /*#__PURE__*/React.createElement(Components$3.Text, {
package/dist/index.umd.js CHANGED
@@ -3362,8 +3362,7 @@
3362
3362
  })));
3363
3363
 
3364
3364
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getExternalSync", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee3() {
3365
- var res, _error$response;
3366
-
3365
+ var res;
3367
3366
  return _regeneratorRuntime__default['default'].wrap(function _callee3$(_context3) {
3368
3367
  while (1) {
3369
3368
  switch (_context3.prev = _context3.next) {
@@ -3393,7 +3392,7 @@
3393
3392
  _context3.t0 = _context3["catch"](0);
3394
3393
 
3395
3394
  // 404 is expected if no sync - don't show error
3396
- if (((_error$response = _context3.t0.response) === null || _error$response === void 0 ? void 0 : _error$response.status) !== 404) {
3395
+ if (_context3.t0 && _context3.t0.response && _context3.t0.response.status !== 404) {
3397
3396
  console.error('getExternalSync', _context3.t0);
3398
3397
  }
3399
3398
 
@@ -4497,7 +4496,7 @@
4497
4496
  }
4498
4497
  }, /*#__PURE__*/React__default['default'].createElement("span", {
4499
4498
  className: "statusLabel_text"
4500
- }, isSuccess ? "Synced to ".concat(e.externalSystem || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to external system".concat(e.error ? ": ".concat(e.error) : ''))));
4499
+ }, isSuccess ? "Synced to ".concat(e.systemType || 'external system').concat(e.externalId ? " (ID: ".concat(e.externalId, ")") : '') : "Failed to sync to ".concat(e.systemType || 'external system').concat(e.error ? ": ".concat(e.error) : ''))));
4501
4500
  }
4502
4501
  }, {
4503
4502
  key: "renderPriority",
@@ -4530,10 +4529,10 @@
4530
4529
  className: "flex-1"
4531
4530
  }, "External Sync")), /*#__PURE__*/React__default['default'].createElement("div", {
4532
4531
  className: "marginTop-16"
4533
- }, externalSync.externalSystem && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4532
+ }, externalSync.systemType && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4534
4533
  type: "body",
4535
4534
  className: "marginBottom-8"
4536
- }, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.externalSystem), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4535
+ }, /*#__PURE__*/React__default['default'].createElement("strong", null, "System:"), " ", externalSync.systemType), externalSync.externalId && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
4537
4536
  type: "body",
4538
4537
  className: "marginBottom-8"
4539
4538
  }, /*#__PURE__*/React__default['default'].createElement("strong", null, "External ID:"), " ", externalSync.externalId), externalSync.syncedAt && /*#__PURE__*/React__default['default'].createElement(Components$3.Text, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plusscommunities/pluss-maintenance-web",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "description": "Extension package to enable maintenance on Pluss Communities Platform",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {
@@ -79,7 +79,7 @@ class Job extends Component {
79
79
  this.setState({ externalSync: res.data, loadingExternalSync: false });
80
80
  } catch (error) {
81
81
  // 404 is expected if no sync - don't show error
82
- if (error.response?.status !== 404) {
82
+ if (error && error.response && error.response.status !== 404) {
83
83
  console.error('getExternalSync', error);
84
84
  }
85
85
  this.setState({ loadingExternalSync: false });
@@ -828,8 +828,8 @@ class Job extends Component {
828
828
  <div className="statusLabel statusLabel-large statusLabel-full" style={{ backgroundColor }}>
829
829
  <span className="statusLabel_text">
830
830
  {isSuccess
831
- ? `Synced to ${e.externalSystem || 'external system'}${e.externalId ? ` (ID: ${e.externalId})` : ''}`
832
- : `Failed to sync to external system${e.error ? `: ${e.error}` : ''}`}
831
+ ? `Synced to ${e.systemType || 'external system'}${e.externalId ? ` (ID: ${e.externalId})` : ''}`
832
+ : `Failed to sync to ${e.systemType || 'external system'}${e.error ? `: ${e.error}` : ''}`}
833
833
  </span>
834
834
  </div>
835
835
  </div>
@@ -866,9 +866,9 @@ class Job extends Component {
866
866
  </Components.Text>
867
867
  </div>
868
868
  <div className="marginTop-16">
869
- {externalSync.externalSystem && (
869
+ {externalSync.systemType && (
870
870
  <Components.Text type="body" className="marginBottom-8">
871
- <strong>System:</strong> {externalSync.externalSystem}
871
+ <strong>System:</strong> {externalSync.systemType}
872
872
  </Components.Text>
873
873
  )}
874
874
  {externalSync.externalId && (