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