@lingk/sync 1.1.58 → 1.1.60

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.
@@ -4559,20 +4559,20 @@ module.exports =
4559
4559
  var _this = _possibleConstructorReturn(this, (DocuSign.__proto__ || Object.getPrototypeOf(DocuSign)).call(this));
4560
4560
 
4561
4561
  _this.finishOauth = function (e) {
4562
- if (e.data && e.data.lingkOauthMessage && e.data.lingkOauthMessage === 'complete') {
4563
- _this.props.checkOauthCreds('finish');
4562
+ if (e.data && e.data.lingkOauthMessage && e.data.lingkOauthMessage === "complete") {
4563
+ _this.props.checkOauthCreds("finish");
4564
4564
  }
4565
4565
  };
4566
4566
 
4567
4567
  _this.startOauth = function () {
4568
4568
  var wizard = _this.props.wizard;
4569
4569
 
4570
- _this.props.checkOauthCreds('start');
4570
+ _this.props.checkOauthCreds("start");
4571
4571
  var width = 600;
4572
4572
  var height = 600;
4573
4573
  var left = window.screenX + (window.outerWidth - width) / 2;
4574
4574
  var top = window.screenY + (window.outerHeight - height) / 2.5;
4575
- var popup = window.open(wizard.dsOauthUrl, 'Oauth', "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
4575
+ var popup = window.open(wizard.dsOauthUrl, "Oauth", "width=" + width + ",height=" + height + ",top=" + top + ",left=" + left);
4576
4576
  popup.focus();
4577
4577
  };
4578
4578
 
@@ -4586,12 +4586,12 @@ module.exports =
4586
4586
  _createClass(DocuSign, [{
4587
4587
  key: "componentWillMount",
4588
4588
  value: function componentWillMount() {
4589
- window.addEventListener('message', this.finishOauth);
4589
+ window.addEventListener("message", this.finishOauth);
4590
4590
  }
4591
4591
  }, {
4592
4592
  key: "componentWillUnmount",
4593
4593
  value: function componentWillUnmount() {
4594
- window.removeEventListener('message', this.finishOauth);
4594
+ window.removeEventListener("message", this.finishOauth);
4595
4595
  }
4596
4596
  }, {
4597
4597
  key: "render",
@@ -4618,31 +4618,50 @@ module.exports =
4618
4618
  var credentials = config && config.credentials;
4619
4619
  var userName = creds && creds.userName;
4620
4620
  var Name = creds && creds.name;
4621
-
4621
+ var Account = creds && creds.accountId;
4622
+ var isSanbox = creds && creds.isSandbox;
4622
4623
  return _react2.default.createElement(
4623
4624
  "div",
4624
4625
  null,
4625
4626
  userName && _react2.default.createElement(
4626
4627
  "div",
4627
4628
  null,
4628
- userName === '_' ? _react2.default.createElement(
4629
+ userName === "_" ? _react2.default.createElement(
4629
4630
  "div",
4630
4631
  null,
4631
4632
  _react2.default.createElement(DotDot, { text: "Authorizing" })
4632
4633
  ) : _react2.default.createElement(
4633
4634
  "div",
4634
4635
  null,
4635
- "Authorized with API Username Id ",
4636
+ "Authorized with",
4637
+ " ",
4638
+ _react2.default.createElement(
4639
+ "strong",
4640
+ null,
4641
+ isSanbox ? "Developer" : "Production",
4642
+ " "
4643
+ ),
4644
+ "environment",
4645
+ _react2.default.createElement("br", null),
4646
+ "API Username ID ",
4636
4647
  _react2.default.createElement(
4637
4648
  "strong",
4638
4649
  null,
4639
4650
  userName
4640
4651
  ),
4641
- " and Username ",
4652
+ "\xA0\xA0 Username",
4653
+ " ",
4642
4654
  _react2.default.createElement(
4643
4655
  "strong",
4644
4656
  null,
4645
4657
  Name
4658
+ ),
4659
+ "\xA0\xA0 API Account ID",
4660
+ " ",
4661
+ _react2.default.createElement(
4662
+ "strong",
4663
+ null,
4664
+ Account
4646
4665
  )
4647
4666
  ),
4648
4667
  _react2.default.createElement("br", null)
@@ -4706,7 +4725,7 @@ module.exports =
4706
4725
  ),
4707
4726
  _react2.default.createElement(
4708
4727
  "div",
4709
- { style: { display: 'inline-block', marginLeft: 12 } },
4728
+ { style: { display: "inline-block", marginLeft: 12 } },
4710
4729
  checking && _react2.default.createElement(Spinner, null),
4711
4730
  envCheckResult && _react2.default.createElement(
4712
4731
  "span",
@@ -4778,7 +4797,7 @@ module.exports =
4778
4797
  var text = _this3.state.text;
4779
4798
 
4780
4799
  if (text.length < 28) {
4781
- _this3.setState({ text: text + '.' });
4800
+ _this3.setState({ text: text + "." });
4782
4801
  } else {
4783
4802
  _this3.setState({ text: _this3.props.text });
4784
4803
  }
@@ -5745,7 +5764,6 @@ module.exports =
5745
5764
  var isAdapter = config && (config.metadataEndpoint === 'testconnection' || config.metadataEndpoint === 'adaptermetadata');
5746
5765
 
5747
5766
  var isWebSocket = config.type === 'LingkWebSocket';
5748
-
5749
5767
  var isAWS = config.type.startsWith('AWS');
5750
5768
 
5751
5769
  var isSFTP = config.type === 'SFTP';
@@ -5767,10 +5785,6 @@ module.exports =
5767
5785
  { style: { marginBottom: 16 } },
5768
5786
  config.message
5769
5787
  ) : _react2.default.createElement('div', null),
5770
- _react2.default.createElement(APIAcessHandle, {
5771
- APIAccess: wizard.APIAccess,
5772
- onChangeHandle: onAPIAccessChange
5773
- }),
5774
5788
  isOauth ? _react2.default.createElement(_oauth2.default, { wizard: wizard, onCheck: check, change: change,
5775
5789
  creds: this.props.creds, providerType: providerType,
5776
5790
  onGenerateUrl: function onGenerateUrl(urlType) {
@@ -5942,7 +5956,11 @@ module.exports =
5942
5956
  null,
5943
5957
  this.props.children
5944
5958
  ),
5945
- _react2.default.createElement('br', null)
5959
+ _react2.default.createElement('br', null),
5960
+ config.type != "LocalFile" && _react2.default.createElement(APIAcessHandle, {
5961
+ APIAccess: wizard.APIAccess,
5962
+ onChangeHandle: onAPIAccessChange
5963
+ })
5946
5964
  );
5947
5965
  }
5948
5966
  }]);