@pageproof/sdk-pr 494.0.1694240004188 → 496.0.1694735533385

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.0-beta.309
4
+
5
+ Released on the 13th of September 2023.
6
+
7
+ - [[PP-6136](https://goto.pageproof.dev/PP-6136)] Added a new team setting for including team members in user suggestions listings.
8
+
9
+ ## 2.0.0-beta.308
10
+
11
+ Released on the 12th of September 2023.
12
+
13
+ - [[PP-4810](https://goto.pageproof.dev/PP-4810)] Added a new team setting for allowing proof owners to delete comments made by other users on their proofs.
14
+
3
15
  ## 2.0.0-beta.307
4
16
 
5
17
  Released on the 22nd of August 2023.
@@ -57,6 +57,21 @@ declare class Team extends API {
57
57
  * @type {TeamWorkflows}
58
58
  */
59
59
  workflows: TeamWorkflows;
60
+ /**
61
+ * Update the team name.
62
+ *
63
+ * @example <caption>Update the team name</caption>
64
+ * const admin = await client.admin();
65
+ * const updateTeamName = admin.team.updateTeamName('My Team');
66
+ *
67
+ * @example <caption>Resetting the team name back to the default</caption>
68
+ * const admin = await client.admin();
69
+ * const updateTeamName = admin.team.updateTeamName(null);
70
+ *
71
+ * @param {string|null} teamName The team name.
72
+ * @returns {Promise<TeamName>}
73
+ */
74
+ updateTeamName(teamName: string): Promise<any>;
60
75
  }
61
76
  import API from "../API";
62
77
  import TeamUsers from "./TeamUsers";
@@ -104,6 +104,22 @@ var Team = function (_API) {
104
104
  return _this;
105
105
  }
106
106
 
107
+ /**
108
+ * Update the team name.
109
+ *
110
+ * @example <caption>Update the team name</caption>
111
+ * const admin = await client.admin();
112
+ * const updateTeamName = admin.team.updateTeamName('My Team');
113
+ *
114
+ * @example <caption>Resetting the team name back to the default</caption>
115
+ * const admin = await client.admin();
116
+ * const updateTeamName = admin.team.updateTeamName(null);
117
+ *
118
+ * @param {string|null} teamName The team name.
119
+ * @returns {Promise<TeamName>}
120
+ */
121
+
122
+
107
123
  /**
108
124
  * The Admin Team Workflows API.
109
125
  *
@@ -139,6 +155,12 @@ var Team = function (_API) {
139
155
  */
140
156
 
141
157
 
158
+ Team.prototype.updateTeamName = function updateTeamName(teamName) {
159
+ return this.client.request('admin.team.update-team-name', {
160
+ teamName: teamName
161
+ });
162
+ };
163
+
142
164
  return Team;
143
165
  }(_API3.default);
144
166
 
@@ -41,9 +41,10 @@ declare class TeamFeatures extends API {
41
41
  * @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
42
42
  * @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
43
43
  * @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
44
+ * @param {boolean} options.addressBook.suggestionsIncludeTeamMembers Whether other team members are included in suggestions when selecting a user.
44
45
  * @returns {Promise}
45
46
  */
46
- update({ emails, comments, proofs, }: {
47
+ update({ emails, comments, proofs, addressBook }: {
47
48
  emails: {
48
49
  displayComments: boolean;
49
50
  displayTeamName: boolean;
@@ -79,6 +79,7 @@ var TeamFeatures = function (_API) {
79
79
  * @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
80
80
  * @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
81
81
  * @param {boolean} options.proofs.enableChecklists Whether the checklists feature is enabled.
82
+ * @param {boolean} options.addressBook.suggestionsIncludeTeamMembers Whether other team members are included in suggestions when selecting a user.
82
83
  * @returns {Promise}
83
84
  */
84
85
 
@@ -86,7 +87,8 @@ var TeamFeatures = function (_API) {
86
87
  TeamFeatures.prototype.update = function update(_ref) {
87
88
  var emails = _ref.emails,
88
89
  comments = _ref.comments,
89
- proofs = _ref.proofs;
90
+ proofs = _ref.proofs,
91
+ addressBook = _ref.addressBook;
90
92
 
91
93
  var displayComments = emails && emails.displayComments;
92
94
  var displayTeamName = emails && emails.displayTeamName;
@@ -105,6 +107,7 @@ var TeamFeatures = function (_API) {
105
107
  var messageToOwners = proofs && proofs.messageToOwners;
106
108
  var allowedDecisions = proofs && proofs.allowedDecisions;
107
109
  var enableChecklists = proofs && proofs.enableChecklists;
110
+ var suggestionsIncludeTeamMembers = addressBook && addressBook.suggestionsIncludeTeamMembers;
108
111
  return this.client.request('admin.team.features.update', {
109
112
  displayComments: displayComments,
110
113
  displayTeamName: displayTeamName,
@@ -122,7 +125,8 @@ var TeamFeatures = function (_API) {
122
125
  defaultProofIsPublic: defaultProofIsPublic,
123
126
  messageToOwners: messageToOwners,
124
127
  allowedDecisions: allowedDecisions,
125
- enableChecklists: enableChecklists
128
+ enableChecklists: enableChecklists,
129
+ suggestionsIncludeTeamMembers: suggestionsIncludeTeamMembers
126
130
  });
127
131
  };
128
132
 
@@ -0,0 +1,11 @@
1
+ export default TeamAddressBookFeatures;
2
+ declare class TeamAddressBookFeatures {
3
+ /**
4
+ * Whether other team members are included in suggestions when selecting a user.
5
+ *
6
+ * @type {boolean}
7
+ */
8
+ suggestionsIncludeTeamMembers: boolean;
9
+ /** @private */
10
+ fromTeamAddressBookFeatures(TeamAddressBookFeaturesData: any): TeamAddressBookFeatures;
11
+ }
@@ -0,0 +1 @@
1
+ "use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var TeamAddressBookFeaturesSchema={suggestionsIncludeTeamMembers:"SuggestionsIncludeTeamMembers"};var TeamAddressBookFeatures=function(){function TeamAddressBookFeatures(){_classCallCheck(this,TeamAddressBookFeatures)}TeamAddressBookFeatures.prototype.fromTeamAddressBookFeatures=function fromTeamAddressBookFeatures(TeamAddressBookFeaturesData){(0,_transform2.default)(this,TeamAddressBookFeaturesSchema,TeamAddressBookFeaturesData);return this};return TeamAddressBookFeatures}();exports.default=TeamAddressBookFeatures;
@@ -28,6 +28,12 @@ declare class TeamFeatures {
28
28
  * @type {TeamAccountFeatures}
29
29
  */
30
30
  accounts: TeamAccountFeatures;
31
+ /**
32
+ * Address book features.
33
+ *
34
+ * @type {TeamAddressBookFeatures}
35
+ */
36
+ addressBook: TeamAddressBookFeatures;
31
37
  /** @private */
32
38
  fromTeamFeatures(teamFeaturesData: any): TeamFeatures;
33
39
  }
@@ -35,3 +41,4 @@ import TeamEmailFeatures from "./TeamEmailFeatures";
35
41
  import TeamCommentFeatures from "./TeamCommentFeatures";
36
42
  import TeamProofFeatures from "./TeamProofFeatures";
37
43
  import TeamAccountFeatures from "./TeamAccountFeatures";
44
+ import TeamAddressBookFeatures from "./TeamAddressBookFeatures";
@@ -1 +1 @@
1
- "use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _TeamEmailFeatures=require("./TeamEmailFeatures");var _TeamEmailFeatures2=_interopRequireDefault(_TeamEmailFeatures);var _TeamCommentFeatures=require("./TeamCommentFeatures");var _TeamCommentFeatures2=_interopRequireDefault(_TeamCommentFeatures);var _TeamProofFeatures=require("./TeamProofFeatures");var _TeamProofFeatures2=_interopRequireDefault(_TeamProofFeatures);var _TeamAccountFeatures=require("./TeamAccountFeatures");var _TeamAccountFeatures2=_interopRequireDefault(_TeamAccountFeatures);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var teamFeaturesSchema={emails:function emails(data){return(new _TeamEmailFeatures2.default).fromTeamEmailFeatures(data)},comments:function comments(data){return(new _TeamCommentFeatures2.default).fromTeamCommentFeatures(data)},proofs:function proofs(data){return(new _TeamProofFeatures2.default).fromTeamProofFeatures(data)},accounts:function accounts(data){return(new _TeamAccountFeatures2.default).fromTeamAccountFeatures(data)}};var TeamFeatures=function(){function TeamFeatures(){_classCallCheck(this,TeamFeatures)}TeamFeatures.prototype.fromTeamFeatures=function fromTeamFeatures(teamFeaturesData){(0,_transform2.default)(this,teamFeaturesSchema,teamFeaturesData);return this};return TeamFeatures}();exports.default=TeamFeatures;
1
+ "use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _TeamEmailFeatures=require("./TeamEmailFeatures");var _TeamEmailFeatures2=_interopRequireDefault(_TeamEmailFeatures);var _TeamCommentFeatures=require("./TeamCommentFeatures");var _TeamCommentFeatures2=_interopRequireDefault(_TeamCommentFeatures);var _TeamProofFeatures=require("./TeamProofFeatures");var _TeamProofFeatures2=_interopRequireDefault(_TeamProofFeatures);var _TeamAddressBookFeatures=require("./TeamAddressBookFeatures");var _TeamAddressBookFeatures2=_interopRequireDefault(_TeamAddressBookFeatures);var _TeamAccountFeatures=require("./TeamAccountFeatures");var _TeamAccountFeatures2=_interopRequireDefault(_TeamAccountFeatures);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}var teamFeaturesSchema={emails:function emails(data){return(new _TeamEmailFeatures2.default).fromTeamEmailFeatures(data)},comments:function comments(data){return(new _TeamCommentFeatures2.default).fromTeamCommentFeatures(data)},proofs:function proofs(data){return(new _TeamProofFeatures2.default).fromTeamProofFeatures(data)},addressBook:function addressBook(data){return(new _TeamAddressBookFeatures2.default).fromTeamAddressBookFeatures(data)},accounts:function accounts(data){return(new _TeamAccountFeatures2.default).fromTeamAccountFeatures(data)}};var TeamFeatures=function(){function TeamFeatures(){_classCallCheck(this,TeamFeatures)}TeamFeatures.prototype.fromTeamFeatures=function fromTeamFeatures(teamFeaturesData){(0,_transform2.default)(this,teamFeaturesSchema,teamFeaturesData);return this};return TeamFeatures}();exports.default=TeamFeatures;
@@ -883,7 +883,7 @@
883
883
  "version": 2,
884
884
  "method": "POST",
885
885
  "path": "/api/admin/settings",
886
- "body": ["displayComments", "generalComments", "privateComments", "editComments", "ownerCanDeleteComments", "proofReference", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists"]
886
+ "body": ["displayComments", "generalComments", "privateComments", "editComments", "ownerCanDeleteComments", "proofReference", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "suggestionsIncludeTeamMembers"]
887
887
  },
888
888
  "admin.team.features.sender-email.set": {
889
889
  "version": 2,
@@ -891,6 +891,12 @@
891
891
  "path": "/api/admin/sender-email/set",
892
892
  "body": ["senderEmail"]
893
893
  },
894
+ "admin.team.update-team-name": {
895
+ "version": 2,
896
+ "method": "POST",
897
+ "path": "/api/admin/team/update",
898
+ "body": ["teamName"]
899
+ },
894
900
  "integrations.get-setup-url": {
895
901
  "method": "GET",
896
902
  "path": "/api/integrations/setup_url",