@pageproof/sdk-pr 736.0.1791868308318 → 736.0.1792439880702

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.
@@ -105,7 +105,7 @@ declare class Dashboard extends API {
105
105
  /** Search function for dashboard proofs using Spider GraphQL
106
106
  * @param {object} [params] - The parameters for the search.
107
107
  * @param {string} [params.query] - The search query text.
108
- * @param {object} [params.filters] - Filter object containing status, dateFilters, and excludeArchived.
108
+ * @param {object} [params.filters] - Filter object containing status, dateFilters, excludeArchived and roleFilters.
109
109
  * @param {Array<number>} [params.filters.status] - Array of status numbers to filter by.
110
110
  * @param {object} [params.filters.dateFilters] - Date filters object.
111
111
  * @param {boolean} [params.filters.excludeArchived] - Whether to exclude archived proofs.
@@ -159,6 +159,7 @@ declare class Dashboard extends API {
159
159
  * @param {number} [options.page=1] The page number (only used with useAzureSearch)
160
160
  * @param {number} [options.pageSize] Optional page size (only used with useAzureSearch)
161
161
  * @param {boolean} [options.useAzureSearch] Whether to use Azure Search (Spider) instead of legacy API
162
+ * @param {Array<object>} [options.roleFilters] Role filters, e.g. [{role: 'approver', user: {userId}}] (Azure Search only)
162
163
  * @returns {Promise<{proofs: Array<Proof>, totalCount: number}|Array<Proof>>}
163
164
  */
164
165
  search(query: string, options?: {
@@ -167,6 +168,7 @@ declare class Dashboard extends API {
167
168
  page: number;
168
169
  pageSize: number;
169
170
  useAzureSearch: boolean;
171
+ roleFilters: Array<object>;
170
172
  }): Promise<{
171
173
  proofs: Array<Proof>;
172
174
  totalCount: number;
@@ -82,6 +82,66 @@ declare class Integrations extends API {
82
82
  id: string;
83
83
  name: string;
84
84
  }>>;
85
+ /**
86
+ * Lists the SharePoint sites the connected Microsoft account can reach, for
87
+ * picking the site whose document library approved proofs are delivered into.
88
+ *
89
+ * Microsoft offers no delegated way to enumerate every site an account can
90
+ * reach, so the results come from its search index; narrowing by name is the
91
+ * reliable way to find a specific site.
92
+ *
93
+ * @example <caption>Listing the sites the account can reach</caption>
94
+ * const admin = await client.admin();
95
+ * const sites = await admin.team.integrations.getSharePointSites();
96
+ *
97
+ * @example <caption>Searching for a site by name</caption>
98
+ * const sites = await admin.team.integrations.getSharePointSites('marketing');
99
+ *
100
+ * @since 2.29.0
101
+ * @param {string} [query] Search sites by name; omit to list what the search index returns
102
+ * @returns {Promise<Array<{ id: string, name: string, webUrl: string }>>}
103
+ */
104
+ getSharePointSites(query?: string): Promise<Array<{
105
+ id: string;
106
+ name: string;
107
+ webUrl: string;
108
+ }>>;
109
+ /**
110
+ * Lists the document libraries in a SharePoint site, for picking the one
111
+ * approved proofs are delivered into.
112
+ *
113
+ * @example <caption>Listing a site's libraries</caption>
114
+ * const admin = await client.admin();
115
+ * const libraries = await admin.team.integrations.getSharePointLibraries(siteId);
116
+ *
117
+ * @since 2.29.0
118
+ * @param {string} siteId The id of the site to list the libraries of
119
+ * @returns {Promise<Array<{ id: string, name: string, webUrl: string }>>}
120
+ */
121
+ getSharePointLibraries(siteId: string): Promise<Array<{
122
+ id: string;
123
+ name: string;
124
+ webUrl: string;
125
+ }>>;
126
+ /**
127
+ * Lists the folders inside the configured SharePoint document library, for
128
+ * picking the folder approved proofs are delivered to.
129
+ *
130
+ * @example <caption>Listing the folders in the library root</caption>
131
+ * const admin = await client.admin();
132
+ * const folders = await admin.team.integrations.getSharePointFolders();
133
+ *
134
+ * @example <caption>Listing the subfolders of a folder</caption>
135
+ * const folders = await admin.team.integrations.getSharePointFolders(folderId);
136
+ *
137
+ * @since 2.29.0
138
+ * @param {string} [itemId] The id of the folder to list; omit for the library root
139
+ * @returns {Promise<Array<{ id: string, name: string }>>}
140
+ */
141
+ getSharePointFolders(itemId?: string): Promise<Array<{
142
+ id: string;
143
+ name: string;
144
+ }>>;
85
145
  /**
86
146
  * Gets the list of Jira sites associated with a pending connection so the user
87
147
  * can pick which one to finalise the integration against.
@@ -1 +1 @@
1
- "use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _API2=require("./API");var _API3=_interopRequireDefault(_API2);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")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var Integrations=function(_API){_inherits(Integrations,_API);function Integrations(client,level){_classCallCheck(this,Integrations);var _this=_possibleConstructorReturn(this,_API.call(this,client));_this.level=level;return _this}Integrations.prototype.configurations=function configurations(){var integrationKeys=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];return this.client.request("integrations.get-configurations",{level:this.level,integration_keys:integrationKeys.join(",")}).then(function(response){if(response.data){return response.data.integrations}return null})};Integrations.prototype.getSetupUrl=function getSetupUrl(integrationKey,params){return this.client.request("integrations.get-setup-url",{params:_extends({},params,{integration_key:integrationKey,level:this.level})}).then(function(response){return{url:response.data.url,windowFeatures:response.data.windowFeatures}})};Integrations.prototype.disable=function disable(integrationKey){return this.client.request("integrations.disable",{level:this.level,integration_key:integrationKey})};Integrations.prototype.updateConfiguration=function updateConfiguration(integrationKey,key,value){return this.client.request("integrations.update-configuration",{level:this.level,integrationKey:integrationKey,key:key,value:value})};Integrations.prototype.getOneDriveFolders=function getOneDriveFolders(itemId){return this.client.request("integrations.one-drive.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getJiraPendingConnection=function getJiraPendingConnection(pendingId){return this.client.request("integrations.jira.get-pending-connection",{pendingId:pendingId}).then(function(response){return response.data.sites})};Integrations.prototype.completeJiraPendingConnection=function completeJiraPendingConnection(pendingId,cloudId){return this.client.request("integrations.jira.complete-pending-connection",{pendingId:pendingId,cloudId:cloudId})};return Integrations}(_API3.default);exports.default=Integrations;
1
+ "use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var _API2=require("./API");var _API3=_interopRequireDefault(_API2);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")}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass}var Integrations=function(_API){_inherits(Integrations,_API);function Integrations(client,level){_classCallCheck(this,Integrations);var _this=_possibleConstructorReturn(this,_API.call(this,client));_this.level=level;return _this}Integrations.prototype.configurations=function configurations(){var integrationKeys=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];return this.client.request("integrations.get-configurations",{level:this.level,integration_keys:integrationKeys.join(",")}).then(function(response){if(response.data){return response.data.integrations}return null})};Integrations.prototype.getSetupUrl=function getSetupUrl(integrationKey,params){return this.client.request("integrations.get-setup-url",{params:_extends({},params,{integration_key:integrationKey,level:this.level})}).then(function(response){return{url:response.data.url,windowFeatures:response.data.windowFeatures}})};Integrations.prototype.disable=function disable(integrationKey){return this.client.request("integrations.disable",{level:this.level,integration_key:integrationKey})};Integrations.prototype.updateConfiguration=function updateConfiguration(integrationKey,key,value){return this.client.request("integrations.update-configuration",{level:this.level,integrationKey:integrationKey,key:key,value:value})};Integrations.prototype.getOneDriveFolders=function getOneDriveFolders(itemId){return this.client.request("integrations.one-drive.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getSharePointSites=function getSharePointSites(query){return this.client.request("integrations.sharepoint.get-sites",{level:this.level,query:query||""}).then(function(response){return response.data.sites})};Integrations.prototype.getSharePointLibraries=function getSharePointLibraries(siteId){return this.client.request("integrations.sharepoint.get-libraries",{level:this.level,siteId:siteId}).then(function(response){return response.data.libraries})};Integrations.prototype.getSharePointFolders=function getSharePointFolders(itemId){return this.client.request("integrations.sharepoint.get-folders",{level:this.level,itemId:itemId||""}).then(function(response){return response.data.folders})};Integrations.prototype.getJiraPendingConnection=function getJiraPendingConnection(pendingId){return this.client.request("integrations.jira.get-pending-connection",{pendingId:pendingId}).then(function(response){return response.data.sites})};Integrations.prototype.completeJiraPendingConnection=function completeJiraPendingConnection(pendingId,cloudId){return this.client.request("integrations.jira.complete-pending-connection",{pendingId:pendingId,cloudId:cloudId})};return Integrations}(_API3.default);exports.default=Integrations;
@@ -50,7 +50,7 @@ declare class Users extends API {
50
50
  * @example <caption>By email</caption>
51
51
  * const url = client.users.avatarUrl('user@example.com', { size: 120 });
52
52
  *
53
- * @since v2.27.0
53
+ * @since v2.30.0
54
54
  * @param {string} idOrEmail The user's id (preferred) or email address
55
55
  * @param {object} [options]
56
56
  * @param {number} [options.size] Requested pixel size; server snaps to nearest bucket
@@ -78,7 +78,7 @@ declare class TeamDashboard extends API {
78
78
  /** Search function for team dashboard proofs using Spider GraphQL
79
79
  * @param {object} [params] - The parameters for the search.
80
80
  * @param {string} [params.query] - The search query text.
81
- * @param {object} [params.filters] - Filter object containing status, dateFilters, and excludeArchived.
81
+ * @param {object} [params.filters] - Filter object containing status, dateFilters, excludeArchived and roleFilters.
82
82
  * @param {Array<number>} [params.filters.status] - Array of status numbers to filter by.
83
83
  * @param {object} [params.filters.dateFilters] - Date filters object.
84
84
  * @param {boolean} [params.filters.excludeArchived] - Whether to exclude archived proofs.
@@ -194,6 +194,7 @@ declare class TeamDashboard extends API {
194
194
  * @param {number} [options.page=1] The page number for team dashboard
195
195
  * @param {number} [options.pageSize] Optional page size (defaults to TEAM_DASHBOARD_PROOFS_PER_PAGE)
196
196
  * @param {boolean} [options.useAzureSearch] Whether to use Azure Search (Spider) instead of legacy API
197
+ * @param {Array<object>} [options.roleFilters] Role filters, e.g. [{role: 'approver', user: {userId}}] (Azure Search only)
197
198
  * @returns {Promise<TeamDashboardPagination>}
198
199
  */
199
200
  search(query: string, options?: {
@@ -202,6 +203,7 @@ declare class TeamDashboard extends API {
202
203
  page: number;
203
204
  pageSize: number;
204
205
  useAzureSearch: boolean;
206
+ roleFilters: Array<object>;
205
207
  }): Promise<TeamDashboardPagination>;
206
208
  /** @private */
207
209
  private _loadTeamSearchProofs;
@@ -187,7 +187,7 @@ var TeamDashboard = function (_API) {
187
187
  /** Search function for team dashboard proofs using Spider GraphQL
188
188
  * @param {object} [params] - The parameters for the search.
189
189
  * @param {string} [params.query] - The search query text.
190
- * @param {object} [params.filters] - Filter object containing status, dateFilters, and excludeArchived.
190
+ * @param {object} [params.filters] - Filter object containing status, dateFilters, excludeArchived and roleFilters.
191
191
  * @param {Array<number>} [params.filters.status] - Array of status numbers to filter by.
192
192
  * @param {object} [params.filters.dateFilters] - Date filters object.
193
193
  * @param {boolean} [params.filters.excludeArchived] - Whether to exclude archived proofs.
@@ -365,6 +365,7 @@ var TeamDashboard = function (_API) {
365
365
  * @param {number} [options.page=1] The page number for team dashboard
366
366
  * @param {number} [options.pageSize] Optional page size (defaults to TEAM_DASHBOARD_PROOFS_PER_PAGE)
367
367
  * @param {boolean} [options.useAzureSearch] Whether to use Azure Search (Spider) instead of legacy API
368
+ * @param {Array<object>} [options.roleFilters] Role filters, e.g. [{role: 'approver', user: {userId}}] (Azure Search only)
368
369
  * @returns {Promise<TeamDashboardPagination>}
369
370
  */
370
371
 
@@ -71,6 +71,7 @@ declare class TeamFeatures extends API {
71
71
  * @param {boolean} options.general.enableCelebrations Whether celebrations are enabled for the team.
72
72
  * @param {boolean} options.proofs.enableProofSoftDeletion Whether the scheduled deletion feature is enabled for the team.
73
73
  * @param {boolean} options.general.enableLabels Whether labels are enabled for the team.
74
+ * @param {boolean} options.general.enableBulkNewVersions Whether the bulk upload new version feature is enabled (enterprise only).
74
75
  * @returns {Promise}
75
76
  */
76
77
  update({ emails, comments, proofs, workflows, addressBook, userGroups, webhooks, intelligence, general, }: {
@@ -109,6 +109,7 @@ var TeamFeatures = function (_API) {
109
109
  * @param {boolean} options.general.enableCelebrations Whether celebrations are enabled for the team.
110
110
  * @param {boolean} options.proofs.enableProofSoftDeletion Whether the scheduled deletion feature is enabled for the team.
111
111
  * @param {boolean} options.general.enableLabels Whether labels are enabled for the team.
112
+ * @param {boolean} options.general.enableBulkNewVersions Whether the bulk upload new version feature is enabled (enterprise only).
112
113
  * @returns {Promise}
113
114
  */
114
115
 
@@ -171,6 +172,7 @@ var TeamFeatures = function (_API) {
171
172
  var reauthentication = proofs && proofs.reauthentication;
172
173
  var enableProofSoftDeletion = proofs && proofs.enableProofSoftDeletion;
173
174
  var enableLabels = general && general.enableLabels;
175
+ var enableBulkNewVersions = general && general.enableBulkNewVersions;
174
176
  return this.client.request('admin.team.features.update', {
175
177
  displayComments: displayComments,
176
178
  displayTeamName: displayTeamName,
@@ -194,6 +196,7 @@ var TeamFeatures = function (_API) {
194
196
  messageToOwners: messageToOwners,
195
197
  allowedDecisions: allowedDecisions,
196
198
  enableChecklists: enableChecklists,
199
+ enableBulkNewVersions: enableBulkNewVersions,
197
200
  enableProofMagicAccess: enableProofMagicAccess,
198
201
  defaultGifOutput: defaultGifOutput,
199
202
  enableIntelligence: enableIntelligence,
@@ -18,6 +18,12 @@ declare class TeamGeneralFeatures {
18
18
  * @type {boolean}
19
19
  */
20
20
  enableLabels: boolean;
21
+ /**
22
+ * Whether the bulk upload new version feature is enabled (enterprise only).
23
+ *
24
+ * @type {boolean}
25
+ */
26
+ enableBulkNewVersions: boolean;
21
27
  /** @private */
22
28
  private fromTeamGeneralFeatures;
23
29
  }
@@ -1 +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 TeamGeneralFeaturesSchema={enableCelebrations:"EnableCelebrations",licenseLabels:"LicenseLabels",enableLabels:"EnableLabels"};var TeamGeneralFeatures=function(){function TeamGeneralFeatures(){_classCallCheck(this,TeamGeneralFeatures)}TeamGeneralFeatures.prototype.fromTeamGeneralFeatures=function fromTeamGeneralFeatures(teamGeneralFeaturesData){(0,_transform2.default)(this,TeamGeneralFeaturesSchema,teamGeneralFeaturesData);return this};return TeamGeneralFeatures}();exports.default=TeamGeneralFeatures;
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 TeamGeneralFeaturesSchema={enableCelebrations:"EnableCelebrations",licenseLabels:"LicenseLabels",enableLabels:"EnableLabels",enableBulkNewVersions:"EnableBulkNewVersions"};var TeamGeneralFeatures=function(){function TeamGeneralFeatures(){_classCallCheck(this,TeamGeneralFeatures)}TeamGeneralFeatures.prototype.fromTeamGeneralFeatures=function fromTeamGeneralFeatures(teamGeneralFeaturesData){(0,_transform2.default)(this,TeamGeneralFeaturesSchema,teamGeneralFeaturesData);return this};return TeamGeneralFeatures}();exports.default=TeamGeneralFeatures;
@@ -921,7 +921,7 @@
921
921
  "version": 2,
922
922
  "method": "POST",
923
923
  "path": "/api/admin/settings",
924
- "body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "enableViewOnlyReviewers", "enableIntelligence", "licenseIntelligenceInsightsInProofing", "enableIntelligenceInsightsInProofing", "defaultIntelligenceInsightsInProofing", "enableIntelligenceInsightsTeamOnlyVisibility", "enableIntelligenceInsightsCommentsInProofing", "defaultIntelligenceInsightsCommentsInProofing", "licenseIntelligenceInsightsOnDashboard", "defaultIntelligenceInsightsCommentsOnDashboard", "enableIntelligenceInsightsOnDashboard", "licenseIntelligenceInsightsInReports", "enableIntelligenceInsightsInReports", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr", "defaultGifOutput", "enableCelebrations", "licenseDigitalVerification", "enableDigitalVerification", "defaultDigitalVerification", "reauthentication", "enableProofSoftDeletion", "enableLabels"]
924
+ "body": ["displayComments", "generalComments", "privateComments", "enableWebhooks", "editComments", "ownerCanDeleteComments", "proofReference", "proofReferenceRequired", "displayTeamName", "emailTitleTextColor", "emailLinkTextColor", "emailButtonBackgroundColor", "emailButtonTextColor", "disableReplyingToCommentsInStatuses", "publicProofs", "defaultProofIsPublic", "messageToOwners", "allowedDecisions", "enableChecklists", "enableBulkNewVersions", "suggestionsIncludeTeamMembers", "enableUserGroups", "enableCommentVisibility", "defaultCommentVisibility", "usePreviousVersionDueDate", "enableViewOnlyReviewers", "enableIntelligence", "licenseIntelligenceInsightsInProofing", "enableIntelligenceInsightsInProofing", "defaultIntelligenceInsightsInProofing", "enableIntelligenceInsightsTeamOnlyVisibility", "enableIntelligenceInsightsCommentsInProofing", "defaultIntelligenceInsightsCommentsInProofing", "licenseIntelligenceInsightsOnDashboard", "defaultIntelligenceInsightsCommentsOnDashboard", "enableIntelligenceInsightsOnDashboard", "licenseIntelligenceInsightsInReports", "enableIntelligenceInsightsInReports", "enableIntelligenceSmartTags", "enableProofMagicAccess", "enableIntelligenceSmartCheckCr", "defaultGifOutput", "enableCelebrations", "licenseDigitalVerification", "enableDigitalVerification", "defaultDigitalVerification", "reauthentication", "enableProofSoftDeletion", "enableLabels"]
925
925
  },
926
926
  "admin.team.features.sender-email.set": {
927
927
  "version": 2,
@@ -960,6 +960,21 @@
960
960
  "path": "/api/integrations/onedrive/folders",
961
961
  "query": ["level", "itemId"]
962
962
  },
963
+ "integrations.sharepoint.get-sites": {
964
+ "method": "GET",
965
+ "path": "/api/integrations/sharepoint/sites",
966
+ "query": ["level", "query"]
967
+ },
968
+ "integrations.sharepoint.get-libraries": {
969
+ "method": "GET",
970
+ "path": "/api/integrations/sharepoint/libraries",
971
+ "query": ["level", "siteId"]
972
+ },
973
+ "integrations.sharepoint.get-folders": {
974
+ "method": "GET",
975
+ "path": "/api/integrations/sharepoint/folders",
976
+ "query": ["level", "itemId"]
977
+ },
963
978
  "integrations.jira.get-pending-connection": {
964
979
  "method": "GET",
965
980
  "path": "/api/integrations/jira/pending-connection",