files.com 1.0.174 → 1.0.177
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/lib/models/As2IncomingMessage.js +57 -0
- package/lib/models/As2OutgoingMessage.js +51 -0
- package/lib/models/As2Partner.js +6 -0
- package/lib/models/As2Station.js +6 -0
- package/lib/models/Site.js +110 -99
- package/package.json +1 -1
- package/src/models/As2IncomingMessage.js +57 -0
- package/src/models/As2OutgoingMessage.js +52 -1
- package/src/models/As2Partner.js +7 -0
- package/src/models/As2Station.js +7 -0
- package/src/models/Site.js +8 -0
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.177
|
@@ -47,6 +47,9 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
|
|
47
47
|
(0, _defineProperty2.default)(this, "getAs2PartnerId", function () {
|
48
48
|
return _this.attributes.as2_partner_id;
|
49
49
|
});
|
50
|
+
(0, _defineProperty2.default)(this, "getAs2StationId", function () {
|
51
|
+
return _this.attributes.as2_station_id;
|
52
|
+
});
|
50
53
|
(0, _defineProperty2.default)(this, "getUuid", function () {
|
51
54
|
return _this.attributes.uuid;
|
52
55
|
});
|
@@ -62,6 +65,12 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
|
|
62
65
|
(0, _defineProperty2.default)(this, "getProcessingResult", function () {
|
63
66
|
return _this.attributes.processing_result;
|
64
67
|
});
|
68
|
+
(0, _defineProperty2.default)(this, "getMic", function () {
|
69
|
+
return _this.attributes.mic;
|
70
|
+
});
|
71
|
+
(0, _defineProperty2.default)(this, "getMicAlgo", function () {
|
72
|
+
return _this.attributes.mic_algo;
|
73
|
+
});
|
65
74
|
(0, _defineProperty2.default)(this, "getAs2To", function () {
|
66
75
|
return _this.attributes.as2_to;
|
67
76
|
});
|
@@ -80,9 +89,57 @@ var As2IncomingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Inc
|
|
80
89
|
(0, _defineProperty2.default)(this, "getAttachmentFilename", function () {
|
81
90
|
return _this.attributes.attachment_filename;
|
82
91
|
});
|
92
|
+
(0, _defineProperty2.default)(this, "getIp", function () {
|
93
|
+
return _this.attributes.ip;
|
94
|
+
});
|
83
95
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
84
96
|
return _this.attributes.created_at;
|
85
97
|
});
|
98
|
+
(0, _defineProperty2.default)(this, "getHttpResponseCode", function () {
|
99
|
+
return _this.attributes.http_response_code;
|
100
|
+
});
|
101
|
+
(0, _defineProperty2.default)(this, "getHttpResponseHeaders", function () {
|
102
|
+
return _this.attributes.http_response_headers;
|
103
|
+
});
|
104
|
+
(0, _defineProperty2.default)(this, "getRecipientSerial", function () {
|
105
|
+
return _this.attributes.recipient_serial;
|
106
|
+
});
|
107
|
+
(0, _defineProperty2.default)(this, "getHexRecipientSerial", function () {
|
108
|
+
return _this.attributes.hex_recipient_serial;
|
109
|
+
});
|
110
|
+
(0, _defineProperty2.default)(this, "getRecipientIssuer", function () {
|
111
|
+
return _this.attributes.recipient_issuer;
|
112
|
+
});
|
113
|
+
(0, _defineProperty2.default)(this, "getMessageReceived", function () {
|
114
|
+
return _this.attributes.message_received;
|
115
|
+
});
|
116
|
+
(0, _defineProperty2.default)(this, "getMessageDecrypted", function () {
|
117
|
+
return _this.attributes.message_decrypted;
|
118
|
+
});
|
119
|
+
(0, _defineProperty2.default)(this, "getMessageSignatureVerified", function () {
|
120
|
+
return _this.attributes.message_signature_verified;
|
121
|
+
});
|
122
|
+
(0, _defineProperty2.default)(this, "getMessageProcessingSuccess", function () {
|
123
|
+
return _this.attributes.message_processing_success;
|
124
|
+
});
|
125
|
+
(0, _defineProperty2.default)(this, "getMessageMdnReturned", function () {
|
126
|
+
return _this.attributes.message_mdn_returned;
|
127
|
+
});
|
128
|
+
(0, _defineProperty2.default)(this, "getEncryptedUri", function () {
|
129
|
+
return _this.attributes.encrypted_uri;
|
130
|
+
});
|
131
|
+
(0, _defineProperty2.default)(this, "getSmimeSignedUri", function () {
|
132
|
+
return _this.attributes.smime_signed_uri;
|
133
|
+
});
|
134
|
+
(0, _defineProperty2.default)(this, "getSmimeUri", function () {
|
135
|
+
return _this.attributes.smime_uri;
|
136
|
+
});
|
137
|
+
(0, _defineProperty2.default)(this, "getRawUri", function () {
|
138
|
+
return _this.attributes.raw_uri;
|
139
|
+
});
|
140
|
+
(0, _defineProperty2.default)(this, "getMdnResponseUri", function () {
|
141
|
+
return _this.attributes.mdn_response_uri;
|
142
|
+
});
|
86
143
|
Object.entries(attributes).forEach(function (_ref) {
|
87
144
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
88
145
|
key = _ref2[0],
|
@@ -47,6 +47,9 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
47
47
|
(0, _defineProperty2.default)(this, "getAs2PartnerId", function () {
|
48
48
|
return _this.attributes.as2_partner_id;
|
49
49
|
});
|
50
|
+
(0, _defineProperty2.default)(this, "getAs2StationId", function () {
|
51
|
+
return _this.attributes.as2_station_id;
|
52
|
+
});
|
50
53
|
(0, _defineProperty2.default)(this, "getUuid", function () {
|
51
54
|
return _this.attributes.uuid;
|
52
55
|
});
|
@@ -62,6 +65,15 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
62
65
|
(0, _defineProperty2.default)(this, "getMic", function () {
|
63
66
|
return _this.attributes.mic;
|
64
67
|
});
|
68
|
+
(0, _defineProperty2.default)(this, "getMicSha256", function () {
|
69
|
+
return _this.attributes.mic_sha_256;
|
70
|
+
});
|
71
|
+
(0, _defineProperty2.default)(this, "getAs2To", function () {
|
72
|
+
return _this.attributes.as2_to;
|
73
|
+
});
|
74
|
+
(0, _defineProperty2.default)(this, "getAs2From", function () {
|
75
|
+
return _this.attributes.as2_from;
|
76
|
+
});
|
65
77
|
(0, _defineProperty2.default)(this, "getMessageId", function () {
|
66
78
|
return _this.attributes.message_id;
|
67
79
|
});
|
@@ -74,6 +86,45 @@ var As2OutgoingMessage = /*#__PURE__*/(0, _createClass2.default)(function As2Out
|
|
74
86
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
75
87
|
return _this.attributes.created_at;
|
76
88
|
});
|
89
|
+
(0, _defineProperty2.default)(this, "getHttpResponseCode", function () {
|
90
|
+
return _this.attributes.http_response_code;
|
91
|
+
});
|
92
|
+
(0, _defineProperty2.default)(this, "getHttpResponseHeaders", function () {
|
93
|
+
return _this.attributes.http_response_headers;
|
94
|
+
});
|
95
|
+
(0, _defineProperty2.default)(this, "getMdnReceived", function () {
|
96
|
+
return _this.attributes.mdn_received;
|
97
|
+
});
|
98
|
+
(0, _defineProperty2.default)(this, "getMdnValid", function () {
|
99
|
+
return _this.attributes.mdn_valid;
|
100
|
+
});
|
101
|
+
(0, _defineProperty2.default)(this, "getMdnSignatureVerified", function () {
|
102
|
+
return _this.attributes.mdn_signature_verified;
|
103
|
+
});
|
104
|
+
(0, _defineProperty2.default)(this, "getMdnMessageIdMatched", function () {
|
105
|
+
return _this.attributes.mdn_message_id_matched;
|
106
|
+
});
|
107
|
+
(0, _defineProperty2.default)(this, "getMdnMicMatched", function () {
|
108
|
+
return _this.attributes.mdn_mic_matched;
|
109
|
+
});
|
110
|
+
(0, _defineProperty2.default)(this, "getMdnProcessingSuccess", function () {
|
111
|
+
return _this.attributes.mdn_processing_success;
|
112
|
+
});
|
113
|
+
(0, _defineProperty2.default)(this, "getRawUri", function () {
|
114
|
+
return _this.attributes.raw_uri;
|
115
|
+
});
|
116
|
+
(0, _defineProperty2.default)(this, "getSmimeUri", function () {
|
117
|
+
return _this.attributes.smime_uri;
|
118
|
+
});
|
119
|
+
(0, _defineProperty2.default)(this, "getSmimeSignedUri", function () {
|
120
|
+
return _this.attributes.smime_signed_uri;
|
121
|
+
});
|
122
|
+
(0, _defineProperty2.default)(this, "getEncryptedUri", function () {
|
123
|
+
return _this.attributes.encrypted_uri;
|
124
|
+
});
|
125
|
+
(0, _defineProperty2.default)(this, "getMdnResponseUri", function () {
|
126
|
+
return _this.attributes.mdn_response_uri;
|
127
|
+
});
|
77
128
|
Object.entries(attributes).forEach(function (_ref) {
|
78
129
|
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
79
130
|
key = _ref2[0],
|
package/lib/models/As2Partner.js
CHANGED
@@ -71,6 +71,12 @@ var As2Partner = /*#__PURE__*/(0, _createClass2.default)(function As2Partner() {
|
|
71
71
|
(0, _defineProperty2.default)(this, "setServerCertificate", function (value) {
|
72
72
|
_this.attributes.server_certificate = value;
|
73
73
|
});
|
74
|
+
(0, _defineProperty2.default)(this, "getHexPublicCertificateSerial", function () {
|
75
|
+
return _this.attributes.hex_public_certificate_serial;
|
76
|
+
});
|
77
|
+
(0, _defineProperty2.default)(this, "setHexPublicCertificateSerial", function (value) {
|
78
|
+
_this.attributes.hex_public_certificate_serial = value;
|
79
|
+
});
|
74
80
|
(0, _defineProperty2.default)(this, "getPublicCertificateMd5", function () {
|
75
81
|
return _this.attributes.public_certificate_md5;
|
76
82
|
});
|
package/lib/models/As2Station.js
CHANGED
@@ -65,6 +65,12 @@ var As2Station = /*#__PURE__*/(0, _createClass2.default)(function As2Station() {
|
|
65
65
|
(0, _defineProperty2.default)(this, "setDomain", function (value) {
|
66
66
|
_this.attributes.domain = value;
|
67
67
|
});
|
68
|
+
(0, _defineProperty2.default)(this, "getHexPublicCertificateSerial", function () {
|
69
|
+
return _this.attributes.hex_public_certificate_serial;
|
70
|
+
});
|
71
|
+
(0, _defineProperty2.default)(this, "setHexPublicCertificateSerial", function (value) {
|
72
|
+
_this.attributes.hex_public_certificate_serial = value;
|
73
|
+
});
|
68
74
|
(0, _defineProperty2.default)(this, "getPublicCertificateMd5", function () {
|
69
75
|
return _this.attributes.public_certificate_md5;
|
70
76
|
});
|
package/lib/models/Site.js
CHANGED
@@ -410,6 +410,9 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
410
410
|
(0, _defineProperty2.default)(this, "getWelcomeEmailCc", function () {
|
411
411
|
return _this.attributes.welcome_email_cc;
|
412
412
|
});
|
413
|
+
(0, _defineProperty2.default)(this, "getWelcomeEmailSubject", function () {
|
414
|
+
return _this.attributes.welcome_email_subject;
|
415
|
+
});
|
413
416
|
(0, _defineProperty2.default)(this, "getWelcomeEmailEnabled", function () {
|
414
417
|
return _this.attributes.welcome_email_enabled;
|
415
418
|
});
|
@@ -562,398 +565,406 @@ var Site = /*#__PURE__*/(0, _createClass2.default)(function Site() {
|
|
562
565
|
throw new Error("Bad parameter: welcome_email_cc must be of type String, received ".concat((0, _utils.getType)(welcome_email_cc)));
|
563
566
|
|
564
567
|
case 18:
|
565
|
-
if (!(params['
|
568
|
+
if (!(params['welcome_email_subject'] && !(0, _utils.isString)(params['welcome_email_subject']))) {
|
566
569
|
_context3.next = 20;
|
567
570
|
break;
|
568
571
|
}
|
569
572
|
|
570
|
-
throw new Error("Bad parameter:
|
573
|
+
throw new Error("Bad parameter: welcome_email_subject must be of type String, received ".concat((0, _utils.getType)(welcome_email_subject)));
|
571
574
|
|
572
575
|
case 20:
|
573
|
-
if (!(params['
|
576
|
+
if (!(params['welcome_custom_text'] && !(0, _utils.isString)(params['welcome_custom_text']))) {
|
574
577
|
_context3.next = 22;
|
575
578
|
break;
|
576
579
|
}
|
577
580
|
|
578
|
-
throw new Error("Bad parameter:
|
581
|
+
throw new Error("Bad parameter: welcome_custom_text must be of type String, received ".concat((0, _utils.getType)(welcome_custom_text)));
|
579
582
|
|
580
583
|
case 22:
|
581
|
-
if (!(params['
|
584
|
+
if (!(params['language'] && !(0, _utils.isString)(params['language']))) {
|
582
585
|
_context3.next = 24;
|
583
586
|
break;
|
584
587
|
}
|
585
588
|
|
586
|
-
throw new Error("Bad parameter:
|
589
|
+
throw new Error("Bad parameter: language must be of type String, received ".concat((0, _utils.getType)(language)));
|
587
590
|
|
588
591
|
case 24:
|
589
|
-
if (!(params['
|
592
|
+
if (!(params['default_time_zone'] && !(0, _utils.isString)(params['default_time_zone']))) {
|
590
593
|
_context3.next = 26;
|
591
594
|
break;
|
592
595
|
}
|
593
596
|
|
594
|
-
throw new Error("Bad parameter:
|
597
|
+
throw new Error("Bad parameter: default_time_zone must be of type String, received ".concat((0, _utils.getType)(default_time_zone)));
|
595
598
|
|
596
599
|
case 26:
|
597
|
-
if (!(params['
|
600
|
+
if (!(params['desktop_app_session_lifetime'] && !(0, _utils.isInt)(params['desktop_app_session_lifetime']))) {
|
598
601
|
_context3.next = 28;
|
599
602
|
break;
|
600
603
|
}
|
601
604
|
|
602
|
-
throw new Error("Bad parameter:
|
605
|
+
throw new Error("Bad parameter: desktop_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(desktop_app_session_lifetime)));
|
603
606
|
|
604
607
|
case 28:
|
605
|
-
if (!(params['
|
608
|
+
if (!(params['mobile_app_session_lifetime'] && !(0, _utils.isInt)(params['mobile_app_session_lifetime']))) {
|
606
609
|
_context3.next = 30;
|
607
610
|
break;
|
608
611
|
}
|
609
612
|
|
610
|
-
throw new Error("Bad parameter:
|
613
|
+
throw new Error("Bad parameter: mobile_app_session_lifetime must be of type Int, received ".concat((0, _utils.getType)(mobile_app_session_lifetime)));
|
611
614
|
|
612
615
|
case 30:
|
613
|
-
if (!(params['
|
616
|
+
if (!(params['welcome_screen'] && !(0, _utils.isString)(params['welcome_screen']))) {
|
614
617
|
_context3.next = 32;
|
615
618
|
break;
|
616
619
|
}
|
617
620
|
|
618
|
-
throw new Error("Bad parameter:
|
621
|
+
throw new Error("Bad parameter: welcome_screen must be of type String, received ".concat((0, _utils.getType)(welcome_screen)));
|
619
622
|
|
620
623
|
case 32:
|
621
|
-
if (!(params['
|
624
|
+
if (!(params['user_lockout_tries'] && !(0, _utils.isInt)(params['user_lockout_tries']))) {
|
622
625
|
_context3.next = 34;
|
623
626
|
break;
|
624
627
|
}
|
625
628
|
|
626
|
-
throw new Error("Bad parameter:
|
629
|
+
throw new Error("Bad parameter: user_lockout_tries must be of type Int, received ".concat((0, _utils.getType)(user_lockout_tries)));
|
627
630
|
|
628
631
|
case 34:
|
629
|
-
if (!(params['
|
632
|
+
if (!(params['user_lockout_within'] && !(0, _utils.isInt)(params['user_lockout_within']))) {
|
630
633
|
_context3.next = 36;
|
631
634
|
break;
|
632
635
|
}
|
633
636
|
|
634
|
-
throw new Error("Bad parameter:
|
637
|
+
throw new Error("Bad parameter: user_lockout_within must be of type Int, received ".concat((0, _utils.getType)(user_lockout_within)));
|
635
638
|
|
636
639
|
case 36:
|
637
|
-
if (!(params['
|
640
|
+
if (!(params['user_lockout_lock_period'] && !(0, _utils.isInt)(params['user_lockout_lock_period']))) {
|
638
641
|
_context3.next = 38;
|
639
642
|
break;
|
640
643
|
}
|
641
644
|
|
642
|
-
throw new Error("Bad parameter:
|
645
|
+
throw new Error("Bad parameter: user_lockout_lock_period must be of type Int, received ".concat((0, _utils.getType)(user_lockout_lock_period)));
|
643
646
|
|
644
647
|
case 38:
|
645
|
-
if (!(params['
|
648
|
+
if (!(params['allowed_countries'] && !(0, _utils.isString)(params['allowed_countries']))) {
|
646
649
|
_context3.next = 40;
|
647
650
|
break;
|
648
651
|
}
|
649
652
|
|
650
|
-
throw new Error("Bad parameter:
|
653
|
+
throw new Error("Bad parameter: allowed_countries must be of type String, received ".concat((0, _utils.getType)(allowed_countries)));
|
651
654
|
|
652
655
|
case 40:
|
653
|
-
if (!(params['
|
656
|
+
if (!(params['allowed_ips'] && !(0, _utils.isString)(params['allowed_ips']))) {
|
654
657
|
_context3.next = 42;
|
655
658
|
break;
|
656
659
|
}
|
657
660
|
|
658
|
-
throw new Error("Bad parameter:
|
661
|
+
throw new Error("Bad parameter: allowed_ips must be of type String, received ".concat((0, _utils.getType)(allowed_ips)));
|
659
662
|
|
660
663
|
case 42:
|
661
|
-
if (!(params['
|
664
|
+
if (!(params['disallowed_countries'] && !(0, _utils.isString)(params['disallowed_countries']))) {
|
662
665
|
_context3.next = 44;
|
663
666
|
break;
|
664
667
|
}
|
665
668
|
|
666
|
-
throw new Error("Bad parameter:
|
669
|
+
throw new Error("Bad parameter: disallowed_countries must be of type String, received ".concat((0, _utils.getType)(disallowed_countries)));
|
667
670
|
|
668
671
|
case 44:
|
669
|
-
if (!(params['
|
672
|
+
if (!(params['days_to_retain_backups'] && !(0, _utils.isInt)(params['days_to_retain_backups']))) {
|
670
673
|
_context3.next = 46;
|
671
674
|
break;
|
672
675
|
}
|
673
676
|
|
674
|
-
throw new Error("Bad parameter:
|
677
|
+
throw new Error("Bad parameter: days_to_retain_backups must be of type Int, received ".concat((0, _utils.getType)(days_to_retain_backups)));
|
675
678
|
|
676
679
|
case 46:
|
677
|
-
if (!(params['
|
680
|
+
if (!(params['max_prior_passwords'] && !(0, _utils.isInt)(params['max_prior_passwords']))) {
|
678
681
|
_context3.next = 48;
|
679
682
|
break;
|
680
683
|
}
|
681
684
|
|
682
|
-
throw new Error("Bad parameter:
|
685
|
+
throw new Error("Bad parameter: max_prior_passwords must be of type Int, received ".concat((0, _utils.getType)(max_prior_passwords)));
|
683
686
|
|
684
687
|
case 48:
|
685
|
-
if (!(params['
|
688
|
+
if (!(params['password_validity_days'] && !(0, _utils.isInt)(params['password_validity_days']))) {
|
686
689
|
_context3.next = 50;
|
687
690
|
break;
|
688
691
|
}
|
689
692
|
|
690
|
-
throw new Error("Bad parameter:
|
693
|
+
throw new Error("Bad parameter: password_validity_days must be of type Int, received ".concat((0, _utils.getType)(password_validity_days)));
|
691
694
|
|
692
695
|
case 50:
|
693
|
-
if (!(params['
|
696
|
+
if (!(params['password_min_length'] && !(0, _utils.isInt)(params['password_min_length']))) {
|
694
697
|
_context3.next = 52;
|
695
698
|
break;
|
696
699
|
}
|
697
700
|
|
698
|
-
throw new Error("Bad parameter:
|
701
|
+
throw new Error("Bad parameter: password_min_length must be of type Int, received ".concat((0, _utils.getType)(password_min_length)));
|
699
702
|
|
700
703
|
case 52:
|
701
|
-
if (!(params['
|
704
|
+
if (!(params['disable_users_from_inactivity_period_days'] && !(0, _utils.isInt)(params['disable_users_from_inactivity_period_days']))) {
|
702
705
|
_context3.next = 54;
|
703
706
|
break;
|
704
707
|
}
|
705
708
|
|
706
|
-
throw new Error("Bad parameter:
|
709
|
+
throw new Error("Bad parameter: disable_users_from_inactivity_period_days must be of type Int, received ".concat((0, _utils.getType)(disable_users_from_inactivity_period_days)));
|
707
710
|
|
708
711
|
case 54:
|
709
|
-
if (!(params['
|
712
|
+
if (!(params['require_2fa_user_type'] && !(0, _utils.isString)(params['require_2fa_user_type']))) {
|
710
713
|
_context3.next = 56;
|
711
714
|
break;
|
712
715
|
}
|
713
716
|
|
714
|
-
throw new Error("Bad parameter:
|
717
|
+
throw new Error("Bad parameter: require_2fa_user_type must be of type String, received ".concat((0, _utils.getType)(require_2fa_user_type)));
|
715
718
|
|
716
719
|
case 56:
|
717
|
-
if (!(params['
|
720
|
+
if (!(params['color2_top'] && !(0, _utils.isString)(params['color2_top']))) {
|
718
721
|
_context3.next = 58;
|
719
722
|
break;
|
720
723
|
}
|
721
724
|
|
722
|
-
throw new Error("Bad parameter:
|
725
|
+
throw new Error("Bad parameter: color2_top must be of type String, received ".concat((0, _utils.getType)(color2_top)));
|
723
726
|
|
724
727
|
case 58:
|
725
|
-
if (!(params['
|
728
|
+
if (!(params['color2_left'] && !(0, _utils.isString)(params['color2_left']))) {
|
726
729
|
_context3.next = 60;
|
727
730
|
break;
|
728
731
|
}
|
729
732
|
|
730
|
-
throw new Error("Bad parameter:
|
733
|
+
throw new Error("Bad parameter: color2_left must be of type String, received ".concat((0, _utils.getType)(color2_left)));
|
731
734
|
|
732
735
|
case 60:
|
733
|
-
if (!(params['
|
736
|
+
if (!(params['color2_link'] && !(0, _utils.isString)(params['color2_link']))) {
|
734
737
|
_context3.next = 62;
|
735
738
|
break;
|
736
739
|
}
|
737
740
|
|
738
|
-
throw new Error("Bad parameter:
|
741
|
+
throw new Error("Bad parameter: color2_link must be of type String, received ".concat((0, _utils.getType)(color2_link)));
|
739
742
|
|
740
743
|
case 62:
|
741
|
-
if (!(params['
|
744
|
+
if (!(params['color2_text'] && !(0, _utils.isString)(params['color2_text']))) {
|
742
745
|
_context3.next = 64;
|
743
746
|
break;
|
744
747
|
}
|
745
748
|
|
746
|
-
throw new Error("Bad parameter:
|
749
|
+
throw new Error("Bad parameter: color2_text must be of type String, received ".concat((0, _utils.getType)(color2_text)));
|
747
750
|
|
748
751
|
case 64:
|
749
|
-
if (!(params['
|
752
|
+
if (!(params['color2_top_text'] && !(0, _utils.isString)(params['color2_top_text']))) {
|
750
753
|
_context3.next = 66;
|
751
754
|
break;
|
752
755
|
}
|
753
756
|
|
754
|
-
throw new Error("Bad parameter:
|
757
|
+
throw new Error("Bad parameter: color2_top_text must be of type String, received ".concat((0, _utils.getType)(color2_top_text)));
|
755
758
|
|
756
759
|
case 66:
|
757
|
-
if (!(params['
|
760
|
+
if (!(params['site_header'] && !(0, _utils.isString)(params['site_header']))) {
|
758
761
|
_context3.next = 68;
|
759
762
|
break;
|
760
763
|
}
|
761
764
|
|
762
|
-
throw new Error("Bad parameter:
|
765
|
+
throw new Error("Bad parameter: site_header must be of type String, received ".concat((0, _utils.getType)(site_header)));
|
763
766
|
|
764
767
|
case 68:
|
765
|
-
if (!(params['
|
768
|
+
if (!(params['site_footer'] && !(0, _utils.isString)(params['site_footer']))) {
|
766
769
|
_context3.next = 70;
|
767
770
|
break;
|
768
771
|
}
|
769
772
|
|
770
|
-
throw new Error("Bad parameter:
|
773
|
+
throw new Error("Bad parameter: site_footer must be of type String, received ".concat((0, _utils.getType)(site_footer)));
|
771
774
|
|
772
775
|
case 70:
|
773
|
-
if (!(params['
|
776
|
+
if (!(params['login_help_text'] && !(0, _utils.isString)(params['login_help_text']))) {
|
774
777
|
_context3.next = 72;
|
775
778
|
break;
|
776
779
|
}
|
777
780
|
|
778
|
-
throw new Error("Bad parameter:
|
781
|
+
throw new Error("Bad parameter: login_help_text must be of type String, received ".concat((0, _utils.getType)(login_help_text)));
|
779
782
|
|
780
783
|
case 72:
|
781
|
-
if (!(params['
|
784
|
+
if (!(params['smtp_address'] && !(0, _utils.isString)(params['smtp_address']))) {
|
782
785
|
_context3.next = 74;
|
783
786
|
break;
|
784
787
|
}
|
785
788
|
|
786
|
-
throw new Error("Bad parameter:
|
789
|
+
throw new Error("Bad parameter: smtp_address must be of type String, received ".concat((0, _utils.getType)(smtp_address)));
|
787
790
|
|
788
791
|
case 74:
|
789
|
-
if (!(params['
|
792
|
+
if (!(params['smtp_authentication'] && !(0, _utils.isString)(params['smtp_authentication']))) {
|
790
793
|
_context3.next = 76;
|
791
794
|
break;
|
792
795
|
}
|
793
796
|
|
794
|
-
throw new Error("Bad parameter:
|
797
|
+
throw new Error("Bad parameter: smtp_authentication must be of type String, received ".concat((0, _utils.getType)(smtp_authentication)));
|
795
798
|
|
796
799
|
case 76:
|
797
|
-
if (!(params['
|
800
|
+
if (!(params['smtp_from'] && !(0, _utils.isString)(params['smtp_from']))) {
|
798
801
|
_context3.next = 78;
|
799
802
|
break;
|
800
803
|
}
|
801
804
|
|
802
|
-
throw new Error("Bad parameter:
|
805
|
+
throw new Error("Bad parameter: smtp_from must be of type String, received ".concat((0, _utils.getType)(smtp_from)));
|
803
806
|
|
804
807
|
case 78:
|
805
|
-
if (!(params['
|
808
|
+
if (!(params['smtp_username'] && !(0, _utils.isString)(params['smtp_username']))) {
|
806
809
|
_context3.next = 80;
|
807
810
|
break;
|
808
811
|
}
|
809
812
|
|
810
|
-
throw new Error("Bad parameter:
|
813
|
+
throw new Error("Bad parameter: smtp_username must be of type String, received ".concat((0, _utils.getType)(smtp_username)));
|
811
814
|
|
812
815
|
case 80:
|
813
|
-
if (!(params['
|
816
|
+
if (!(params['smtp_port'] && !(0, _utils.isInt)(params['smtp_port']))) {
|
814
817
|
_context3.next = 82;
|
815
818
|
break;
|
816
819
|
}
|
817
820
|
|
818
|
-
throw new Error("Bad parameter:
|
821
|
+
throw new Error("Bad parameter: smtp_port must be of type Int, received ".concat((0, _utils.getType)(smtp_port)));
|
819
822
|
|
820
823
|
case 82:
|
821
|
-
if (!(params['
|
824
|
+
if (!(params['ldap_type'] && !(0, _utils.isString)(params['ldap_type']))) {
|
822
825
|
_context3.next = 84;
|
823
826
|
break;
|
824
827
|
}
|
825
828
|
|
826
|
-
throw new Error("Bad parameter:
|
829
|
+
throw new Error("Bad parameter: ldap_type must be of type String, received ".concat((0, _utils.getType)(ldap_type)));
|
827
830
|
|
828
831
|
case 84:
|
829
|
-
if (!(params['
|
832
|
+
if (!(params['ldap_host'] && !(0, _utils.isString)(params['ldap_host']))) {
|
830
833
|
_context3.next = 86;
|
831
834
|
break;
|
832
835
|
}
|
833
836
|
|
834
|
-
throw new Error("Bad parameter:
|
837
|
+
throw new Error("Bad parameter: ldap_host must be of type String, received ".concat((0, _utils.getType)(ldap_host)));
|
835
838
|
|
836
839
|
case 86:
|
837
|
-
if (!(params['
|
840
|
+
if (!(params['ldap_host_2'] && !(0, _utils.isString)(params['ldap_host_2']))) {
|
838
841
|
_context3.next = 88;
|
839
842
|
break;
|
840
843
|
}
|
841
844
|
|
842
|
-
throw new Error("Bad parameter:
|
845
|
+
throw new Error("Bad parameter: ldap_host_2 must be of type String, received ".concat((0, _utils.getType)(ldap_host_2)));
|
843
846
|
|
844
847
|
case 88:
|
845
|
-
if (!(params['
|
848
|
+
if (!(params['ldap_host_3'] && !(0, _utils.isString)(params['ldap_host_3']))) {
|
846
849
|
_context3.next = 90;
|
847
850
|
break;
|
848
851
|
}
|
849
852
|
|
850
|
-
throw new Error("Bad parameter:
|
853
|
+
throw new Error("Bad parameter: ldap_host_3 must be of type String, received ".concat((0, _utils.getType)(ldap_host_3)));
|
851
854
|
|
852
855
|
case 90:
|
853
|
-
if (!(params['
|
856
|
+
if (!(params['ldap_port'] && !(0, _utils.isInt)(params['ldap_port']))) {
|
854
857
|
_context3.next = 92;
|
855
858
|
break;
|
856
859
|
}
|
857
860
|
|
858
|
-
throw new Error("Bad parameter:
|
861
|
+
throw new Error("Bad parameter: ldap_port must be of type Int, received ".concat((0, _utils.getType)(ldap_port)));
|
859
862
|
|
860
863
|
case 92:
|
861
|
-
if (!(params['
|
864
|
+
if (!(params['ldap_username'] && !(0, _utils.isString)(params['ldap_username']))) {
|
862
865
|
_context3.next = 94;
|
863
866
|
break;
|
864
867
|
}
|
865
868
|
|
866
|
-
throw new Error("Bad parameter:
|
869
|
+
throw new Error("Bad parameter: ldap_username must be of type String, received ".concat((0, _utils.getType)(ldap_username)));
|
867
870
|
|
868
871
|
case 94:
|
869
|
-
if (!(params['
|
872
|
+
if (!(params['ldap_username_field'] && !(0, _utils.isString)(params['ldap_username_field']))) {
|
870
873
|
_context3.next = 96;
|
871
874
|
break;
|
872
875
|
}
|
873
876
|
|
874
|
-
throw new Error("Bad parameter:
|
877
|
+
throw new Error("Bad parameter: ldap_username_field must be of type String, received ".concat((0, _utils.getType)(ldap_username_field)));
|
875
878
|
|
876
879
|
case 96:
|
877
|
-
if (!(params['
|
880
|
+
if (!(params['ldap_domain'] && !(0, _utils.isString)(params['ldap_domain']))) {
|
878
881
|
_context3.next = 98;
|
879
882
|
break;
|
880
883
|
}
|
881
884
|
|
882
|
-
throw new Error("Bad parameter:
|
885
|
+
throw new Error("Bad parameter: ldap_domain must be of type String, received ".concat((0, _utils.getType)(ldap_domain)));
|
883
886
|
|
884
887
|
case 98:
|
885
|
-
if (!(params['
|
888
|
+
if (!(params['ldap_user_action'] && !(0, _utils.isString)(params['ldap_user_action']))) {
|
886
889
|
_context3.next = 100;
|
887
890
|
break;
|
888
891
|
}
|
889
892
|
|
890
|
-
throw new Error("Bad parameter:
|
893
|
+
throw new Error("Bad parameter: ldap_user_action must be of type String, received ".concat((0, _utils.getType)(ldap_user_action)));
|
891
894
|
|
892
895
|
case 100:
|
893
|
-
if (!(params['
|
896
|
+
if (!(params['ldap_group_action'] && !(0, _utils.isString)(params['ldap_group_action']))) {
|
894
897
|
_context3.next = 102;
|
895
898
|
break;
|
896
899
|
}
|
897
900
|
|
898
|
-
throw new Error("Bad parameter:
|
901
|
+
throw new Error("Bad parameter: ldap_group_action must be of type String, received ".concat((0, _utils.getType)(ldap_group_action)));
|
899
902
|
|
900
903
|
case 102:
|
901
|
-
if (!(params['
|
904
|
+
if (!(params['ldap_user_include_groups'] && !(0, _utils.isString)(params['ldap_user_include_groups']))) {
|
902
905
|
_context3.next = 104;
|
903
906
|
break;
|
904
907
|
}
|
905
908
|
|
906
|
-
throw new Error("Bad parameter:
|
909
|
+
throw new Error("Bad parameter: ldap_user_include_groups must be of type String, received ".concat((0, _utils.getType)(ldap_user_include_groups)));
|
907
910
|
|
908
911
|
case 104:
|
909
|
-
if (!(params['
|
912
|
+
if (!(params['ldap_group_exclusion'] && !(0, _utils.isString)(params['ldap_group_exclusion']))) {
|
910
913
|
_context3.next = 106;
|
911
914
|
break;
|
912
915
|
}
|
913
916
|
|
914
|
-
throw new Error("Bad parameter:
|
917
|
+
throw new Error("Bad parameter: ldap_group_exclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_exclusion)));
|
915
918
|
|
916
919
|
case 106:
|
917
|
-
if (!(params['
|
920
|
+
if (!(params['ldap_group_inclusion'] && !(0, _utils.isString)(params['ldap_group_inclusion']))) {
|
918
921
|
_context3.next = 108;
|
919
922
|
break;
|
920
923
|
}
|
921
924
|
|
922
|
-
throw new Error("Bad parameter:
|
925
|
+
throw new Error("Bad parameter: ldap_group_inclusion must be of type String, received ".concat((0, _utils.getType)(ldap_group_inclusion)));
|
923
926
|
|
924
927
|
case 108:
|
925
|
-
if (!(params['
|
928
|
+
if (!(params['ldap_base_dn'] && !(0, _utils.isString)(params['ldap_base_dn']))) {
|
926
929
|
_context3.next = 110;
|
927
930
|
break;
|
928
931
|
}
|
929
932
|
|
930
|
-
throw new Error("Bad parameter:
|
933
|
+
throw new Error("Bad parameter: ldap_base_dn must be of type String, received ".concat((0, _utils.getType)(ldap_base_dn)));
|
931
934
|
|
932
935
|
case 110:
|
933
|
-
if (!(params['
|
936
|
+
if (!(params['ldap_password_change'] && !(0, _utils.isString)(params['ldap_password_change']))) {
|
934
937
|
_context3.next = 112;
|
935
938
|
break;
|
936
939
|
}
|
937
940
|
|
938
|
-
throw new Error("Bad parameter:
|
941
|
+
throw new Error("Bad parameter: ldap_password_change must be of type String, received ".concat((0, _utils.getType)(ldap_password_change)));
|
939
942
|
|
940
943
|
case 112:
|
941
|
-
if (!(params['
|
944
|
+
if (!(params['ldap_password_change_confirmation'] && !(0, _utils.isString)(params['ldap_password_change_confirmation']))) {
|
942
945
|
_context3.next = 114;
|
943
946
|
break;
|
944
947
|
}
|
945
948
|
|
946
|
-
throw new Error("Bad parameter:
|
949
|
+
throw new Error("Bad parameter: ldap_password_change_confirmation must be of type String, received ".concat((0, _utils.getType)(ldap_password_change_confirmation)));
|
947
950
|
|
948
951
|
case 114:
|
949
|
-
|
950
|
-
|
952
|
+
if (!(params['smtp_password'] && !(0, _utils.isString)(params['smtp_password']))) {
|
953
|
+
_context3.next = 116;
|
954
|
+
break;
|
955
|
+
}
|
956
|
+
|
957
|
+
throw new Error("Bad parameter: smtp_password must be of type String, received ".concat((0, _utils.getType)(smtp_password)));
|
951
958
|
|
952
959
|
case 116:
|
960
|
+
_context3.next = 118;
|
961
|
+
return _Api.default.sendRequest("/site", 'PATCH', params, options);
|
962
|
+
|
963
|
+
case 118:
|
953
964
|
response = _context3.sent;
|
954
965
|
return _context3.abrupt("return", new Site(response === null || response === void 0 ? void 0 : response.data, options));
|
955
966
|
|
956
|
-
case
|
967
|
+
case 120:
|
957
968
|
case "end":
|
958
969
|
return _context3.stop();
|
959
970
|
}
|
package/package.json
CHANGED
@@ -28,6 +28,9 @@ class As2IncomingMessage {
|
|
28
28
|
// int64 # Id of the AS2 Partner associated with this message.
|
29
29
|
getAs2PartnerId = () => this.attributes.as2_partner_id
|
30
30
|
|
31
|
+
// int64 # Id of the AS2 Station associated with this message.
|
32
|
+
getAs2StationId = () => this.attributes.as2_station_id
|
33
|
+
|
31
34
|
// string # UUID assigned to this message.
|
32
35
|
getUuid = () => this.attributes.uuid
|
33
36
|
|
@@ -43,6 +46,12 @@ class As2IncomingMessage {
|
|
43
46
|
// string # Result of processing.
|
44
47
|
getProcessingResult = () => this.attributes.processing_result
|
45
48
|
|
49
|
+
// string # AS2 Message Integrity Check
|
50
|
+
getMic = () => this.attributes.mic
|
51
|
+
|
52
|
+
// string # AS2 Message Integrity Check Algorithm Used
|
53
|
+
getMicAlgo = () => this.attributes.mic_algo
|
54
|
+
|
46
55
|
// string # AS2 TO header of message
|
47
56
|
getAs2To = () => this.attributes.as2_to
|
48
57
|
|
@@ -61,9 +70,57 @@ class As2IncomingMessage {
|
|
61
70
|
// string # Filename of the file being received.
|
62
71
|
getAttachmentFilename = () => this.attributes.attachment_filename
|
63
72
|
|
73
|
+
// string # IP Address of the Sender
|
74
|
+
getIp = () => this.attributes.ip
|
75
|
+
|
64
76
|
// date-time # Message creation date/time
|
65
77
|
getCreatedAt = () => this.attributes.created_at
|
66
78
|
|
79
|
+
// string # HTTP Response Code sent for this message
|
80
|
+
getHttpResponseCode = () => this.attributes.http_response_code
|
81
|
+
|
82
|
+
// object # HTTP Headers sent for this message.
|
83
|
+
getHttpResponseHeaders = () => this.attributes.http_response_headers
|
84
|
+
|
85
|
+
// string # Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial
|
86
|
+
getRecipientSerial = () => this.attributes.recipient_serial
|
87
|
+
|
88
|
+
// string # Incoming Message Recipient(the Client Cert used to encrypt this message)'s serial in hex format.
|
89
|
+
getHexRecipientSerial = () => this.attributes.hex_recipient_serial
|
90
|
+
|
91
|
+
// string # Incoming Message Recipient(the Client Cert used to encrypt this message)'s issuer
|
92
|
+
getRecipientIssuer = () => this.attributes.recipient_issuer
|
93
|
+
|
94
|
+
// boolean # Message body received?
|
95
|
+
getMessageReceived = () => this.attributes.message_received
|
96
|
+
|
97
|
+
// boolean # Message decrypted successfully?
|
98
|
+
getMessageDecrypted = () => this.attributes.message_decrypted
|
99
|
+
|
100
|
+
// boolean # Message signature verified?
|
101
|
+
getMessageSignatureVerified = () => this.attributes.message_signature_verified
|
102
|
+
|
103
|
+
// boolean # Message processed successfully?
|
104
|
+
getMessageProcessingSuccess = () => this.attributes.message_processing_success
|
105
|
+
|
106
|
+
// boolean # MDN returned?
|
107
|
+
getMessageMdnReturned = () => this.attributes.message_mdn_returned
|
108
|
+
|
109
|
+
// string # URL to download the encrypted signed smime that is to sent as AS2 body
|
110
|
+
getEncryptedUri = () => this.attributes.encrypted_uri
|
111
|
+
|
112
|
+
// string # URL to download the file contents as smime with signature
|
113
|
+
getSmimeSignedUri = () => this.attributes.smime_signed_uri
|
114
|
+
|
115
|
+
// string # URL to download the file contents encoded as smime
|
116
|
+
getSmimeUri = () => this.attributes.smime_uri
|
117
|
+
|
118
|
+
// string # URL to download the original file contents
|
119
|
+
getRawUri = () => this.attributes.raw_uri
|
120
|
+
|
121
|
+
// string # URL to download the http response body
|
122
|
+
getMdnResponseUri = () => this.attributes.mdn_response_uri
|
123
|
+
|
67
124
|
|
68
125
|
// Parameters:
|
69
126
|
// cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
@@ -28,6 +28,9 @@ class As2OutgoingMessage {
|
|
28
28
|
// int64 # Id of the AS2 Partner associated with this message.
|
29
29
|
getAs2PartnerId = () => this.attributes.as2_partner_id
|
30
30
|
|
31
|
+
// int64 # Id of the AS2 Station associated with this message.
|
32
|
+
getAs2StationId = () => this.attributes.as2_station_id
|
33
|
+
|
31
34
|
// string # UUID assigned to this message.
|
32
35
|
getUuid = () => this.attributes.uuid
|
33
36
|
|
@@ -40,9 +43,18 @@ class As2OutgoingMessage {
|
|
40
43
|
// string # Result of processing.
|
41
44
|
getProcessingResult = () => this.attributes.processing_result
|
42
45
|
|
43
|
-
// string # AS2 Message Integrity Check
|
46
|
+
// string # AS2 Message Integrity Check SHA1
|
44
47
|
getMic = () => this.attributes.mic
|
45
48
|
|
49
|
+
// string # AS2 Message Integrity Check SHA256
|
50
|
+
getMicSha256 = () => this.attributes.mic_sha_256
|
51
|
+
|
52
|
+
// string # AS2 TO
|
53
|
+
getAs2To = () => this.attributes.as2_to
|
54
|
+
|
55
|
+
// string # AS2 FROM
|
56
|
+
getAs2From = () => this.attributes.as2_from
|
57
|
+
|
46
58
|
// string # AS2 Message Id
|
47
59
|
getMessageId = () => this.attributes.message_id
|
48
60
|
|
@@ -55,6 +67,45 @@ class As2OutgoingMessage {
|
|
55
67
|
// date-time # Message creation date/time
|
56
68
|
getCreatedAt = () => this.attributes.created_at
|
57
69
|
|
70
|
+
// string # HTTP Response Code received for this message
|
71
|
+
getHttpResponseCode = () => this.attributes.http_response_code
|
72
|
+
|
73
|
+
// object # HTTP Headers received for this message.
|
74
|
+
getHttpResponseHeaders = () => this.attributes.http_response_headers
|
75
|
+
|
76
|
+
// boolean # Did the partner give a response body?
|
77
|
+
getMdnReceived = () => this.attributes.mdn_received
|
78
|
+
|
79
|
+
// boolean # Is the response in MDN format?
|
80
|
+
getMdnValid = () => this.attributes.mdn_valid
|
81
|
+
|
82
|
+
// boolean # MDN signature verified?
|
83
|
+
getMdnSignatureVerified = () => this.attributes.mdn_signature_verified
|
84
|
+
|
85
|
+
// boolean # MDN message id matched?
|
86
|
+
getMdnMessageIdMatched = () => this.attributes.mdn_message_id_matched
|
87
|
+
|
88
|
+
// boolean # MDN MIC matched?
|
89
|
+
getMdnMicMatched = () => this.attributes.mdn_mic_matched
|
90
|
+
|
91
|
+
// boolean # MDN disposition indicate a successful processing?
|
92
|
+
getMdnProcessingSuccess = () => this.attributes.mdn_processing_success
|
93
|
+
|
94
|
+
// string # URL to download the original file contents
|
95
|
+
getRawUri = () => this.attributes.raw_uri
|
96
|
+
|
97
|
+
// string # URL to download the file contents encoded as smime
|
98
|
+
getSmimeUri = () => this.attributes.smime_uri
|
99
|
+
|
100
|
+
// string # URL to download the file contents as smime with signature
|
101
|
+
getSmimeSignedUri = () => this.attributes.smime_signed_uri
|
102
|
+
|
103
|
+
// string # URL to download the encrypted signed smime that is to sent as AS2 body
|
104
|
+
getEncryptedUri = () => this.attributes.encrypted_uri
|
105
|
+
|
106
|
+
// string # URL to download the http response body
|
107
|
+
getMdnResponseUri = () => this.attributes.mdn_response_uri
|
108
|
+
|
58
109
|
|
59
110
|
// Parameters:
|
60
111
|
// cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
|
package/src/models/As2Partner.js
CHANGED
@@ -57,6 +57,13 @@ class As2Partner {
|
|
57
57
|
this.attributes.server_certificate = value
|
58
58
|
}
|
59
59
|
|
60
|
+
// string # Serial of public certificate used for message security in hex format.
|
61
|
+
getHexPublicCertificateSerial = () => this.attributes.hex_public_certificate_serial
|
62
|
+
|
63
|
+
setHexPublicCertificateSerial = value => {
|
64
|
+
this.attributes.hex_public_certificate_serial = value
|
65
|
+
}
|
66
|
+
|
60
67
|
// string # MD5 hash of public certificate used for message security.
|
61
68
|
getPublicCertificateMd5 = () => this.attributes.public_certificate_md5
|
62
69
|
|
package/src/models/As2Station.js
CHANGED
@@ -50,6 +50,13 @@ class As2Station {
|
|
50
50
|
this.attributes.domain = value
|
51
51
|
}
|
52
52
|
|
53
|
+
// string # Serial of public certificate used for message security in hex format.
|
54
|
+
getHexPublicCertificateSerial = () => this.attributes.hex_public_certificate_serial
|
55
|
+
|
56
|
+
setHexPublicCertificateSerial = value => {
|
57
|
+
this.attributes.hex_public_certificate_serial = value
|
58
|
+
}
|
59
|
+
|
53
60
|
// string # MD5 hash of public certificate used for message security.
|
54
61
|
getPublicCertificateMd5 = () => this.attributes.public_certificate_md5
|
55
62
|
|
package/src/models/Site.js
CHANGED
@@ -391,6 +391,9 @@ class Site {
|
|
391
391
|
// email # Include this email in welcome emails if enabled
|
392
392
|
getWelcomeEmailCc = () => this.attributes.welcome_email_cc
|
393
393
|
|
394
|
+
// string # Include this email subject in welcome emails if enabled
|
395
|
+
getWelcomeEmailSubject = () => this.attributes.welcome_email_subject
|
396
|
+
|
394
397
|
// boolean # Will the welcome email be sent to new users?
|
395
398
|
getWelcomeEmailEnabled = () => this.attributes.welcome_email_enabled
|
396
399
|
|
@@ -431,6 +434,7 @@ class Site {
|
|
431
434
|
// ask_about_overwrites - boolean - If false, rename conflicting files instead of asking for overwrite confirmation. Only applies to web interface.
|
432
435
|
// show_request_access_link - boolean - Show request access link for users without access? Currently unused.
|
433
436
|
// welcome_email_cc - string - Include this email in welcome emails if enabled
|
437
|
+
// welcome_email_subject - string - Include this email subject in welcome emails if enabled
|
434
438
|
// welcome_custom_text - string - Custom text send in user welcome email
|
435
439
|
// language - string - Site default language
|
436
440
|
// windows_mode_ftp - boolean - Does FTP user Windows emulation mode?
|
@@ -567,6 +571,10 @@ class Site {
|
|
567
571
|
throw new Error(`Bad parameter: welcome_email_cc must be of type String, received ${getType(welcome_email_cc)}`)
|
568
572
|
}
|
569
573
|
|
574
|
+
if (params['welcome_email_subject'] && !isString(params['welcome_email_subject'])) {
|
575
|
+
throw new Error(`Bad parameter: welcome_email_subject must be of type String, received ${getType(welcome_email_subject)}`)
|
576
|
+
}
|
577
|
+
|
570
578
|
if (params['welcome_custom_text'] && !isString(params['welcome_custom_text'])) {
|
571
579
|
throw new Error(`Bad parameter: welcome_custom_text must be of type String, received ${getType(welcome_custom_text)}`)
|
572
580
|
}
|