@pageproof/sdk-pr 495.0.1694289826335 → 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
 
@@ -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",