@pageproof/sdk-pr 495.0.1694289826335 → 496.0.1695950320044

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,24 @@ declare class Team extends API {
57
57
  * @type {TeamWorkflows}
58
58
  */
59
59
  workflows: TeamWorkflows;
60
+ /**
61
+ * Updates a team data e.g: team name.
62
+ *
63
+ * @example <caption>Update the team name</caption>
64
+ * const admin = await client.admin();
65
+ * const updateTeamName = admin.team.update({name: 'My Team Name'});
66
+ *
67
+ * @example <caption>Resetting the team name back to the default</caption>
68
+ * const admin = await client.admin();
69
+ * const updateTeamName = admin.team.update(null);
70
+ *
71
+ * @param {object} options
72
+ * @param {string} options.name The team name.
73
+ * @returns {Promise<TeamName>}
74
+ */
75
+ update({ name }: {
76
+ name: string;
77
+ }): Promise<any>;
60
78
  }
61
79
  import API from "../API";
62
80
  import TeamUsers from "./TeamUsers";
@@ -104,6 +104,23 @@ var Team = function (_API) {
104
104
  return _this;
105
105
  }
106
106
 
107
+ /**
108
+ * Updates a team data e.g: team name.
109
+ *
110
+ * @example <caption>Update the team name</caption>
111
+ * const admin = await client.admin();
112
+ * const updateTeamName = admin.team.update({name: 'My Team Name'});
113
+ *
114
+ * @example <caption>Resetting the team name back to the default</caption>
115
+ * const admin = await client.admin();
116
+ * const updateTeamName = admin.team.update(null);
117
+ *
118
+ * @param {object} options
119
+ * @param {string} options.name The team name.
120
+ * @returns {Promise<TeamName>}
121
+ */
122
+
123
+
107
124
  /**
108
125
  * The Admin Team Workflows API.
109
126
  *
@@ -139,6 +156,14 @@ var Team = function (_API) {
139
156
  */
140
157
 
141
158
 
159
+ Team.prototype.update = function update(_ref) {
160
+ var name = _ref.name;
161
+
162
+ return this.client.request('admin.team.update', {
163
+ name: name
164
+ });
165
+ };
166
+
142
167
  return Team;
143
168
  }(_API3.default);
144
169
 
@@ -891,6 +891,12 @@
891
891
  "path": "/api/admin/sender-email/set",
892
892
  "body": ["senderEmail"]
893
893
  },
894
+ "admin.team.update": {
895
+ "version": 2,
896
+ "method": "POST",
897
+ "path": "/api/admin/team/update",
898
+ "body": ["name"]
899
+ },
894
900
  "integrations.get-setup-url": {
895
901
  "method": "GET",
896
902
  "path": "/api/integrations/setup_url",