@pageproof/sdk-pr 736.0.1791868308318 → 737.0.1792027964267
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/README.md +0 -11
- package/lib/api/Dashboard.d.ts +3 -1
- package/lib/api/Users.d.ts +0 -24
- package/lib/api/Users.js +1 -1
- package/lib/api/admin/TeamDashboard.d.ts +3 -1
- package/lib/api/admin/TeamDashboard.js +2 -1
- package/lib/api/admin/TeamFeatures.d.ts +3 -10
- package/lib/api/admin/TeamFeatures.js +6 -0
- package/lib/core/PageProof.d.ts +2 -11
- package/lib/models/Proof.d.ts +7 -0
- package/lib/models/Proof.js +1 -1
- package/lib/models/TeamGeneralFeatures.d.ts +6 -0
- package/lib/models/TeamGeneralFeatures.js +1 -1
- package/lib/models/TeamProofFeatures.d.ts +8 -0
- package/lib/models/TeamProofFeatures.js +1 -1
- package/lib/network/endpoints.json +1 -1
- package/lib/pageproof.js +1 -1
- package/lib/util/dashboardSearchShared.d.ts +10 -0
- package/lib/util/dashboardSearchShared.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -336,17 +336,6 @@ const user = await client.users.byEmail('user@example.com');
|
|
|
336
336
|
console.log(user); // User { id: "UDLCS204C9O9JN6T", name: "John Smith", ... }
|
|
337
337
|
```
|
|
338
338
|
|
|
339
|
-
#### Avatars
|
|
340
|
-
|
|
341
|
-
User profile pictures are served from the public avatar CDN (no API credentials required). Build a URL with `users.avatarUrl` and use it as an image `src`:
|
|
342
|
-
|
|
343
|
-
```js
|
|
344
|
-
const src = client.users.avatarUrl(user.id, { size: 80 });
|
|
345
|
-
// => "https://avatar.pageproof.com/-/UDLCS204C9O9JN6T?size=80"
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
In development or test, set `options.avatarEndpoint` on the client to your environment’s avatar base URL if it is not the production default.
|
|
349
|
-
|
|
350
339
|
There's also a list of APIs in the docs sidebar, under the section "api".
|
|
351
340
|
|
|
352
341
|
### Authenticating as a user/logging in
|
package/lib/api/Dashboard.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/lib/api/Users.d.ts
CHANGED
|
@@ -35,30 +35,6 @@ declare class Users extends API {
|
|
|
35
35
|
* @returns {Promise}
|
|
36
36
|
*/
|
|
37
37
|
requestRoleAccess(requestedRoleAccess: string, requestedPageName: string): Promise<any>;
|
|
38
|
-
/**
|
|
39
|
-
* Returns the public URL for a user's avatar.
|
|
40
|
-
*
|
|
41
|
-
* The avatar service is unauthenticated and serves a JPEG when the user has uploaded
|
|
42
|
-
* an avatar, or a generic SVG placeholder when they haven't. Use this helper to render
|
|
43
|
-
* avatars in `<img>` tags. Pair with `user.hasAvatar` if you want to skip the request
|
|
44
|
-
* for users with no uploaded avatar.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* const url = client.users.avatarUrl('U0F4R3L41F8WT57X', { size: 64 });
|
|
48
|
-
* // => "https://avatar.pageproof.com/-/U0F4R3L41F8WT57X?size=64"
|
|
49
|
-
*
|
|
50
|
-
* @example <caption>By email</caption>
|
|
51
|
-
* const url = client.users.avatarUrl('user@example.com', { size: 120 });
|
|
52
|
-
*
|
|
53
|
-
* @since v2.27.0
|
|
54
|
-
* @param {string} idOrEmail The user's id (preferred) or email address
|
|
55
|
-
* @param {object} [options]
|
|
56
|
-
* @param {number} [options.size] Requested pixel size; server snaps to nearest bucket
|
|
57
|
-
* @returns {string}
|
|
58
|
-
*/
|
|
59
|
-
avatarUrl(idOrEmail: string, { size }?: {
|
|
60
|
-
size: number;
|
|
61
|
-
}): string;
|
|
62
38
|
}
|
|
63
39
|
import API from "./API";
|
|
64
40
|
import User from "../models/User";
|
package/lib/api/Users.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _API2=require("./API");var _API3=_interopRequireDefault(_API2);var _User=require("../models/User");var _User2=_interopRequireDefault(_User);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}function transformResponseUser(response){return response.data.length>0?(new _User2.default).fromUser(response.data[0]):(new _User2.default).fromUser(response.data)}function transformResponseUserArray(response){if(response.data.length){return(new _User2.default).fromUser(response.data[0])}return null}var Users=function(_API){_inherits(Users,_API);function Users(){_classCallCheck(this,Users);return _possibleConstructorReturn(this,_API.apply(this,arguments))}Users.prototype.byEmail=function byEmail(email){return this.client.request("users.by-email",{email:email}).then(transformResponseUserArray)};Users.prototype.byId=function byId(userId){return this.client.request("users.by-id",{userId:userId}).then(transformResponseUser)};Users.prototype.invite=function invite(email){return this.client.request("users.invite",{email:email}).then(transformResponseUser)};Users.prototype.requestRoleAccess=function requestRoleAccess(requestedRoleAccess,requestedPageName){return this.client.request("users.request-role-access",{requestedRoleAccess:requestedRoleAccess,requestedPageName:requestedPageName})};
|
|
1
|
+
"use strict";exports.__esModule=true;var _API2=require("./API");var _API3=_interopRequireDefault(_API2);var _User=require("../models/User");var _User2=_interopRequireDefault(_User);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}function transformResponseUser(response){return response.data.length>0?(new _User2.default).fromUser(response.data[0]):(new _User2.default).fromUser(response.data)}function transformResponseUserArray(response){if(response.data.length){return(new _User2.default).fromUser(response.data[0])}return null}var Users=function(_API){_inherits(Users,_API);function Users(){_classCallCheck(this,Users);return _possibleConstructorReturn(this,_API.apply(this,arguments))}Users.prototype.byEmail=function byEmail(email){return this.client.request("users.by-email",{email:email}).then(transformResponseUserArray)};Users.prototype.byId=function byId(userId){return this.client.request("users.by-id",{userId:userId}).then(transformResponseUser)};Users.prototype.invite=function invite(email){return this.client.request("users.invite",{email:email}).then(transformResponseUser)};Users.prototype.requestRoleAccess=function requestRoleAccess(requestedRoleAccess,requestedPageName){return this.client.request("users.request-role-access",{requestedRoleAccess:requestedRoleAccess,requestedPageName:requestedPageName})};return Users}(_API3.default);exports.default=Users;
|
|
@@ -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
|
|
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
|
|
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
|
|
|
@@ -41,6 +41,7 @@ declare class TeamFeatures extends API {
|
|
|
41
41
|
* @param {boolean} options.proofs.referenceRequired Whether making the reference field required on a proof creation.
|
|
42
42
|
* @param {boolean} options.proofs.publicProofs Whether the public proofs feature is enabled.
|
|
43
43
|
* @param {boolean} options.proofs.usePreviousVersionDueDate Whether the default due date on the proof setup page for a new version is the previous version's due date.
|
|
44
|
+
* @param {boolean} options.proofs.addReviewersViaMention Whether inviters can add team members who aren't on a proof as reviewers by @mentioning them.
|
|
44
45
|
* @param {boolean} options.proofs.defaultIsPublic The default value for whether a proof is public on the proof setup page.
|
|
45
46
|
* @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
|
|
46
47
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
@@ -71,6 +72,7 @@ declare class TeamFeatures extends API {
|
|
|
71
72
|
* @param {boolean} options.general.enableCelebrations Whether celebrations are enabled for the team.
|
|
72
73
|
* @param {boolean} options.proofs.enableProofSoftDeletion Whether the scheduled deletion feature is enabled for the team.
|
|
73
74
|
* @param {boolean} options.general.enableLabels Whether labels are enabled for the team.
|
|
75
|
+
* @param {boolean} options.general.enableBulkNewVersions Whether the bulk upload new version feature is enabled (enterprise only).
|
|
74
76
|
* @returns {Promise}
|
|
75
77
|
*/
|
|
76
78
|
update({ emails, comments, proofs, workflows, addressBook, userGroups, webhooks, intelligence, general, }: {
|
|
@@ -96,16 +98,7 @@ declare class TeamFeatures extends API {
|
|
|
96
98
|
referenceRequired: boolean;
|
|
97
99
|
publicProofs: boolean;
|
|
98
100
|
usePreviousVersionDueDate: boolean;
|
|
99
|
-
|
|
100
|
-
messageToOwners: boolean;
|
|
101
|
-
allowedDecisions: Array<Decision>;
|
|
102
|
-
enableChecklists: boolean;
|
|
103
|
-
enableProofMagicAccess: boolean;
|
|
104
|
-
licenseDigitalVerification: boolean;
|
|
105
|
-
enableDigitalVerification: boolean;
|
|
106
|
-
defaultDigitalVerification: boolean;
|
|
107
|
-
reauthentication: boolean;
|
|
108
|
-
defaultGifOutput: boolean;
|
|
101
|
+
addReviewersViaMention: boolean;
|
|
109
102
|
};
|
|
110
103
|
}): Promise<any>;
|
|
111
104
|
/**
|
|
@@ -79,6 +79,7 @@ var TeamFeatures = function (_API) {
|
|
|
79
79
|
* @param {boolean} options.proofs.referenceRequired Whether making the reference field required on a proof creation.
|
|
80
80
|
* @param {boolean} options.proofs.publicProofs Whether the public proofs feature is enabled.
|
|
81
81
|
* @param {boolean} options.proofs.usePreviousVersionDueDate Whether the default due date on the proof setup page for a new version is the previous version's due date.
|
|
82
|
+
* @param {boolean} options.proofs.addReviewersViaMention Whether inviters can add team members who aren't on a proof as reviewers by @mentioning them.
|
|
82
83
|
* @param {boolean} options.proofs.defaultIsPublic The default value for whether a proof is public on the proof setup page.
|
|
83
84
|
* @param {boolean} options.proofs.messageToOwners Whether reviewers can send a message to the proof owners.
|
|
84
85
|
* @param {Array<Decision>} options.proofs.allowedDecisions The array of proof decisions that allowed to the reviewer.
|
|
@@ -109,6 +110,7 @@ var TeamFeatures = function (_API) {
|
|
|
109
110
|
* @param {boolean} options.general.enableCelebrations Whether celebrations are enabled for the team.
|
|
110
111
|
* @param {boolean} options.proofs.enableProofSoftDeletion Whether the scheduled deletion feature is enabled for the team.
|
|
111
112
|
* @param {boolean} options.general.enableLabels Whether labels are enabled for the team.
|
|
113
|
+
* @param {boolean} options.general.enableBulkNewVersions Whether the bulk upload new version feature is enabled (enterprise only).
|
|
112
114
|
* @returns {Promise}
|
|
113
115
|
*/
|
|
114
116
|
|
|
@@ -142,6 +144,7 @@ var TeamFeatures = function (_API) {
|
|
|
142
144
|
var proofReferenceRequired = proofs && proofs.referenceRequired;
|
|
143
145
|
var publicProofs = proofs && proofs.publicProofs;
|
|
144
146
|
var usePreviousVersionDueDate = proofs && proofs.usePreviousVersionDueDate;
|
|
147
|
+
var addReviewersViaMention = proofs && proofs.addReviewersViaMention;
|
|
145
148
|
var defaultProofIsPublic = proofs && proofs.defaultIsPublic;
|
|
146
149
|
var messageToOwners = proofs && proofs.messageToOwners;
|
|
147
150
|
var allowedDecisions = proofs && proofs.allowedDecisions;
|
|
@@ -171,6 +174,7 @@ var TeamFeatures = function (_API) {
|
|
|
171
174
|
var reauthentication = proofs && proofs.reauthentication;
|
|
172
175
|
var enableProofSoftDeletion = proofs && proofs.enableProofSoftDeletion;
|
|
173
176
|
var enableLabels = general && general.enableLabels;
|
|
177
|
+
var enableBulkNewVersions = general && general.enableBulkNewVersions;
|
|
174
178
|
return this.client.request('admin.team.features.update', {
|
|
175
179
|
displayComments: displayComments,
|
|
176
180
|
displayTeamName: displayTeamName,
|
|
@@ -194,6 +198,7 @@ var TeamFeatures = function (_API) {
|
|
|
194
198
|
messageToOwners: messageToOwners,
|
|
195
199
|
allowedDecisions: allowedDecisions,
|
|
196
200
|
enableChecklists: enableChecklists,
|
|
201
|
+
enableBulkNewVersions: enableBulkNewVersions,
|
|
197
202
|
enableProofMagicAccess: enableProofMagicAccess,
|
|
198
203
|
defaultGifOutput: defaultGifOutput,
|
|
199
204
|
enableIntelligence: enableIntelligence,
|
|
@@ -212,6 +217,7 @@ var TeamFeatures = function (_API) {
|
|
|
212
217
|
suggestionsIncludeTeamMembers: suggestionsIncludeTeamMembers,
|
|
213
218
|
enableUserGroups: enableUserGroups,
|
|
214
219
|
usePreviousVersionDueDate: usePreviousVersionDueDate,
|
|
220
|
+
addReviewersViaMention: addReviewersViaMention,
|
|
215
221
|
enableCelebrations: enableCelebrations,
|
|
216
222
|
licenseDigitalVerification: licenseDigitalVerification,
|
|
217
223
|
enableDigitalVerification: enableDigitalVerification,
|
package/lib/core/PageProof.d.ts
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
export default PageProof;
|
|
2
2
|
declare class PageProof {
|
|
3
|
-
/**
|
|
4
|
-
* @param {object} [config]
|
|
5
|
-
* @param {object} [config.options] Client options passed to the request layer and APIs.
|
|
6
|
-
* @param {string} [config.options.avatarEndpoint] Base URL for the public avatar CDN (default `https://avatar.pageproof.com`).
|
|
7
|
-
* Override in non-production environments when your app already knows the avatar host (for example from `AVATAR_URL`).
|
|
8
|
-
* @param {Array} [config.adapters] Registered adapters (request, crypto, etc.).
|
|
9
|
-
*/
|
|
10
3
|
constructor({ options, adapters, }?: {
|
|
11
|
-
options
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
adapters: Array;
|
|
4
|
+
options?: {};
|
|
5
|
+
adapters?: any[];
|
|
15
6
|
});
|
|
16
7
|
/** @private */
|
|
17
8
|
private events;
|
package/lib/models/Proof.d.ts
CHANGED
|
@@ -456,6 +456,13 @@ declare class Proof {
|
|
|
456
456
|
* @type {boolean}
|
|
457
457
|
*/
|
|
458
458
|
usePreviousVersionDueDate: boolean;
|
|
459
|
+
/**
|
|
460
|
+
* Whether inviters can add team members who aren't on the proof as reviewers by @mentioning them in a comment.
|
|
461
|
+
*
|
|
462
|
+
* @since v2.27.0
|
|
463
|
+
* @type {boolean}
|
|
464
|
+
*/
|
|
465
|
+
canAddReviewersViaMention: boolean;
|
|
459
466
|
/**
|
|
460
467
|
* The date the proof is scheduled to be started.
|
|
461
468
|
*
|
package/lib/models/Proof.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _ProofState=require("../enum/ProofState");var _ProofState2=_interopRequireDefault(_ProofState);var _ProofStatus=require("../enum/ProofStatus");var _ProofStatus2=_interopRequireDefault(_ProofStatus);var _ProofType=require("../enum/ProofType");var _ProofType2=_interopRequireDefault(_ProofType);var _FileStatus=require("../enum/FileStatus");var _FileStatus2=_interopRequireDefault(_FileStatus);var _StatusMessage=require("../enum/StatusMessage");var _StatusMessage2=_interopRequireDefault(_StatusMessage);var _id=require("../util/id");var _getPercentage=require("../util/getPercentage");var _getPercentage2=_interopRequireDefault(_getPercentage);var _User=require("./User");var _User2=_interopRequireDefault(_User);var _DecisionSummary=require("./DecisionSummary");var _DecisionSummary2=_interopRequireDefault(_DecisionSummary);var _ProofIntegrationReference=require("./ProofIntegrationReference");var _ProofIntegrationReference2=_interopRequireDefault(_ProofIntegrationReference);var _ProofChecklist=require("./ProofChecklist");var _ProofChecklist2=_interopRequireDefault(_ProofChecklist);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 isOverdue(){return this.dueDate&&this.dueDate.getTime()<Date.now()}var proofSchema={id:"ProofId",name:"Title",status:"Status",workflowId:"WorkflowId",proofTemplateId:"ProofTemplateId",version:"Version",dueDate:(0,_transform.date)("DueDate"),createdDate:(0,_transform.date)("CreateDate"),approvedDate:(0,_transform.date)("ApprovedDate"),isLocked:"Locked",isArchived:"Closed",isOverdue:isOverdue,uploaderUserId:"UserId",ownerUserIds:"OwnerIds",editorUserId:"EditorId",editorUserIds:"EditorIds",lockerUserId:"ProofLockerId",messageToReviewers:"Description",messageToOwners:"OwnerMessage",messageToEditor:"EditorMessage",fileId:"FileId",fileExtension:"Extension",fileStatus:"FileStatus",fileMessage:"FileStatusMessage",fileSize:"FileSize",pageCount:(0,_transform.number)("Pages"),commentCount:(0,_transform.number)("ParentComments"),canDownload:(0,_transform.truthy)("DownloadOriginal"),type:"Type",processStatus:"ProcessStatus",recipient:"Recipient",recipientEmail:"RecipientEmail",todoCommentCount:(0,_transform.number)("CountTodoComments"),doneCommentCount:(0,_transform.number)("CountDoneComments"),fileCategory:"FileCategory",isAdminOnProof:"IsAdminOnProof",groupId:"GroupId",canReupload:"CanReupload",hasEditors:"HasEditors",groupName:"GroupName",role:"Role",canOthersEditComments:"FeatureEditComments",canAddCommentReplies:"FeatureCanAddCommentReplies",canHaveGeneralComments:"FeatureGeneralComments",canHavePrivateComments:"FeaturePrivateComments",canAddChecklist:"FeatureCanAddChecklist",hasDecisionsEnabled:"FeatureDecisions",hasColorSeparations:"HasColorSeparations",reference:"Reference",integrationReferences:(0,_transform.each)("IntegrationReferences",function(data){return(new _ProofIntegrationReference2.default).fromProofIntegrationReference(data)}),checklist:function checklist(data){return data.Checklist&&(new _ProofChecklist2.default).fromProofChecklist(data.Checklist)},isReferenceEnabled:"FeatureProofReference",source:"Source",owners:(0,_transform.each)("Owners",function(ownerData){return(new _User2.default).fromUser(ownerData)}),decisionSummary:(0,_transform.each)("Decisions",function(decisionsData){return(new _DecisionSummary2.default).fromDecisionSummary(decisionsData)}),tags:(0,_transform.each)("Tags",function(tag){return tag.Value}),teamId:"TeamId",isPublic:"IsPublic",canBePublic:"FeaturePublicProofs",availableWorkflowRoles:"FeatureAvailableWorkflowRoles",usePreviousVersionDueDate:"FeatureUsePreviousVersionDueDate",canSendShareLink:"FeatureSendShareLink",publicProofKeyPair:function publicProofKeyPair(data){return data.PublicProofKeyPair&&{publicKeyPEM:data.PublicProofKeyPair.PublicKey,privateKeyPEM:data.PublicProofKeyPair.PrivateKey}},canSendMessageToOwners:"FeatureMessageToOwners",workflowMetrics:"WorkflowMetrics",commentVisibility:"CommentVisibility",canHaveCommentVisibility:"FeatureCommentVisibility",importUrl:"ImportURL",priority:"Priority",scheduledDate:(0,_transform.date)("ScheduledDate"),statusMessage:"StatusMessage",isDigitalVerificationEnabled:"IsDigitalVerificationEnabled",isProofInsightsEnabled:"FeatureProofInsights",isProofInsightsCommentsEnabled:"FeatureProofInsightsComments",isIntelligenceInsightsTeamOnlyVisibilityEnabled:"FeatureIntelligenceInsightsTeamOnlyVisibility"};var Proof=function(){function Proof(){_classCallCheck(this,Proof)}Proof.prototype.isUserAdminOfProofTeam=function isUserAdminOfProofTeam(user){return user.isAdmin&&this.teamId===user.teamId};Proof.prototype.getState=function getState(){var state=_ProofState2.default.ACTIVE;if(this.fileStatus===_FileStatus2.default.UPLOADING||!this.fileStatus&&this.statusMessage===_StatusMessage2.default.UPLOADING){state=_ProofState2.default.UPLOADING}else if(this.hasFileError()){state=_ProofState2.default.FILE_ERROR}else if(this.isProcessing()){state=_ProofState2.default.PROCESSING}else if(this.type===_ProofType2.default.BRIEF){switch(this.status){case _ProofStatus2.default.NEW:state=_ProofState2.default.SETUP_NEEDED;break;case _ProofStatus2.default.PROOFING:case _ProofStatus2.default.FINAL_APPROVING:state=_ProofState2.default.AWAITING_PROOF;break;case _ProofStatus2.default.AWAITING_NEW_VERSION:state=_ProofState2.default.AWAITING_PROOF;break;case _ProofStatus2.default.HAS_NEW_VERSION:state=_ProofState2.default.HAS_NEW_VERSION;break;case _ProofStatus2.default.APPROVED:state=_ProofState2.default.APPROVED;break;case _ProofStatus2.default.ARCHIVED:state=_ProofState2.default.ARCHIVED;break;default:state=_ProofState2.default.BRIEFING;break}}else if(this.status===_ProofStatus2.default.ARCHIVED){state=_ProofState2.default.ARCHIVED}else if(this.status===_ProofStatus2.default.TODOS_REQUESTED){state=_ProofState2.default.TODOS_REQUESTED}else if(this.status===_ProofStatus2.default.AWAITING_NEW_VERSION){state=_ProofState2.default.AWAITING_NEW_VERSION}else if(this.status===_ProofStatus2.default.HAS_NEW_VERSION){state=_ProofState2.default.HAS_NEW_VERSION}else if(this.status===_ProofStatus2.default.APPROVED){state=_ProofState2.default.APPROVED}else if(!this.hasWorkflow()){state=_ProofState2.default.PROOFERS_NEEDED}else if(!this.hasWorkflowStarted()){state=_ProofState2.default.NOT_STARTED}else if(this.isOverdue||this.dueDate&&this.dueDate.getTime()<Date.now()){state=_ProofState2.default.OVERDUE}return state};Proof.prototype.getVideoProcessingProgress=function getVideoProcessingProgress(){var percent=0;var message=String(this.fileMessage);if(message){var thumbMatch=/^Thumb-\w+\-([-+]?[0-9]*\.?[0-9]*)/g.exec(message);var videoMatch=/^Video-\w+\-([-+]?[0-9]*\.?[0-9]*)/g.exec(message);if(message.startsWith("Video-Scheduled-")){percent=0}else if(videoMatch){percent=(0,_getPercentage2.default)(parseFloat(videoMatch[1])/100,0,.2)}else if(thumbMatch){percent=(0,_getPercentage2.default)(parseFloat(thumbMatch[1])/100,.8,0)}}return percent};Proof.prototype.hasWorkflowStarted=function hasWorkflowStarted(){return this.hasWorkflow()&&this.status!==_ProofStatus2.default.NEW};Proof.prototype.isProcessing=function isProcessing(){if(this.fileStatus===_FileStatus2.default.UPLOADING||this.fileStatus===_FileStatus2.default.QUEUED||this.fileStatus===_FileStatus2.default.RIPPING){return true}if(!this.fileStatus){return this.statusMessage===_StatusMessage2.default.UPLOADING||this.statusMessage===_StatusMessage2.default.PROCESSING}return false};Proof.prototype.isAwaitingFile=function isAwaitingFile(){return this.source&&this.fileStatus===_FileStatus2.default.CREATED};Proof.prototype.getProcessingProgress=function getProcessingProgress(){switch(this.fileStatus){case _FileStatus2.default.UPLOADING:return.1;case _FileStatus2.default.QUEUED:return.2;case _FileStatus2.default.RIPPING:if(this.fileCategory==="video"){return(0,_getPercentage2.default)(this.getVideoProcessingProgress(),.2,.1).toFixed(2)}return.6;default:return-1}};Proof.prototype.hasWorkflow=function hasWorkflow(){return(0,_id.isWorkflowId)(this.workflowId)};Proof.prototype.hasFile=function hasFile(){return(0,_id.isFileId)(this.fileId)};Proof.prototype.hasFileError=function hasFileError(){if(this.fileStatus===_FileStatus2.default.ERROR){return true}if(!this.fileStatus){if(this.statusMessage===_StatusMessage2.default.FILE_ERROR){return true}if(!this.hasFile()){return true}return false}return false};Proof.prototype.hasEditor=function hasEditor(){return(0,_id.isUserId)(this.editorUserId)};Proof.prototype.hasThumbnail=function hasThumbnail(){if(this.fileStatus===_FileStatus2.default.OK){return true}if(!this.fileStatus&&this.hasFile()){if(this.statusMessage===_StatusMessage2.default.FILE_ERROR||this.statusMessage===_StatusMessage2.default.UPLOADING||this.statusMessage===_StatusMessage2.default.PROCESSING||this.statusMessage===_StatusMessage2.default.AWAITING_FILE||this.statusMessage===_StatusMessage2.default.AWAITING_EMAIL){return false}return true}return false};Proof.prototype.canUserUploadNewVersion=function canUserUploadNewVersion(userId){return this.getState()===_ProofState2.default.AWAITING_NEW_VERSION&&(this.isEditor(userId)||this.isOwner(userId))||this.getState()===_ProofState2.default.AWAITING_PROOF&&(this.isEditor(userId)||this.isRecipient(userId))};Proof.prototype.isOwner=function isOwner(userId){return this.ownerUserIds.indexOf(userId)!==-1};Proof.prototype.isEditor=function isEditor(userId){return this.editorUserIds.indexOf(userId)!==-1};Proof.prototype.isRecipient=function isRecipient(userId){return this.recipient===userId};Proof.prototype.calculateState=function calculateState(){this.state=this.getState()};Proof.prototype.fromProof=function fromProof(proofData){(0,_transform2.default)(this,proofSchema,proofData);this.calculateState();return this};Proof.getStateFromRawData=function getStateFromRawData(proofData){var proof=new Proof;proof.fromProof(proofData);return proof.getState()};return Proof}();exports.default=Proof;
|
|
1
|
+
"use strict";exports.__esModule=true;var _transform=require("./transform");var _transform2=_interopRequireDefault(_transform);var _ProofState=require("../enum/ProofState");var _ProofState2=_interopRequireDefault(_ProofState);var _ProofStatus=require("../enum/ProofStatus");var _ProofStatus2=_interopRequireDefault(_ProofStatus);var _ProofType=require("../enum/ProofType");var _ProofType2=_interopRequireDefault(_ProofType);var _FileStatus=require("../enum/FileStatus");var _FileStatus2=_interopRequireDefault(_FileStatus);var _StatusMessage=require("../enum/StatusMessage");var _StatusMessage2=_interopRequireDefault(_StatusMessage);var _id=require("../util/id");var _getPercentage=require("../util/getPercentage");var _getPercentage2=_interopRequireDefault(_getPercentage);var _User=require("./User");var _User2=_interopRequireDefault(_User);var _DecisionSummary=require("./DecisionSummary");var _DecisionSummary2=_interopRequireDefault(_DecisionSummary);var _ProofIntegrationReference=require("./ProofIntegrationReference");var _ProofIntegrationReference2=_interopRequireDefault(_ProofIntegrationReference);var _ProofChecklist=require("./ProofChecklist");var _ProofChecklist2=_interopRequireDefault(_ProofChecklist);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 isOverdue(){return this.dueDate&&this.dueDate.getTime()<Date.now()}var proofSchema={id:"ProofId",name:"Title",status:"Status",workflowId:"WorkflowId",proofTemplateId:"ProofTemplateId",version:"Version",dueDate:(0,_transform.date)("DueDate"),createdDate:(0,_transform.date)("CreateDate"),approvedDate:(0,_transform.date)("ApprovedDate"),isLocked:"Locked",isArchived:"Closed",isOverdue:isOverdue,uploaderUserId:"UserId",ownerUserIds:"OwnerIds",editorUserId:"EditorId",editorUserIds:"EditorIds",lockerUserId:"ProofLockerId",messageToReviewers:"Description",messageToOwners:"OwnerMessage",messageToEditor:"EditorMessage",fileId:"FileId",fileExtension:"Extension",fileStatus:"FileStatus",fileMessage:"FileStatusMessage",fileSize:"FileSize",pageCount:(0,_transform.number)("Pages"),commentCount:(0,_transform.number)("ParentComments"),canDownload:(0,_transform.truthy)("DownloadOriginal"),type:"Type",processStatus:"ProcessStatus",recipient:"Recipient",recipientEmail:"RecipientEmail",todoCommentCount:(0,_transform.number)("CountTodoComments"),doneCommentCount:(0,_transform.number)("CountDoneComments"),fileCategory:"FileCategory",isAdminOnProof:"IsAdminOnProof",groupId:"GroupId",canReupload:"CanReupload",hasEditors:"HasEditors",groupName:"GroupName",role:"Role",canOthersEditComments:"FeatureEditComments",canAddCommentReplies:"FeatureCanAddCommentReplies",canHaveGeneralComments:"FeatureGeneralComments",canHavePrivateComments:"FeaturePrivateComments",canAddChecklist:"FeatureCanAddChecklist",hasDecisionsEnabled:"FeatureDecisions",hasColorSeparations:"HasColorSeparations",reference:"Reference",integrationReferences:(0,_transform.each)("IntegrationReferences",function(data){return(new _ProofIntegrationReference2.default).fromProofIntegrationReference(data)}),checklist:function checklist(data){return data.Checklist&&(new _ProofChecklist2.default).fromProofChecklist(data.Checklist)},isReferenceEnabled:"FeatureProofReference",source:"Source",owners:(0,_transform.each)("Owners",function(ownerData){return(new _User2.default).fromUser(ownerData)}),decisionSummary:(0,_transform.each)("Decisions",function(decisionsData){return(new _DecisionSummary2.default).fromDecisionSummary(decisionsData)}),tags:(0,_transform.each)("Tags",function(tag){return tag.Value}),teamId:"TeamId",isPublic:"IsPublic",canBePublic:"FeaturePublicProofs",availableWorkflowRoles:"FeatureAvailableWorkflowRoles",usePreviousVersionDueDate:"FeatureUsePreviousVersionDueDate",canAddReviewersViaMention:"FeatureAddReviewersViaMention",canSendShareLink:"FeatureSendShareLink",publicProofKeyPair:function publicProofKeyPair(data){return data.PublicProofKeyPair&&{publicKeyPEM:data.PublicProofKeyPair.PublicKey,privateKeyPEM:data.PublicProofKeyPair.PrivateKey}},canSendMessageToOwners:"FeatureMessageToOwners",workflowMetrics:"WorkflowMetrics",commentVisibility:"CommentVisibility",canHaveCommentVisibility:"FeatureCommentVisibility",importUrl:"ImportURL",priority:"Priority",scheduledDate:(0,_transform.date)("ScheduledDate"),statusMessage:"StatusMessage",isDigitalVerificationEnabled:"IsDigitalVerificationEnabled",isProofInsightsEnabled:"FeatureProofInsights",isProofInsightsCommentsEnabled:"FeatureProofInsightsComments",isIntelligenceInsightsTeamOnlyVisibilityEnabled:"FeatureIntelligenceInsightsTeamOnlyVisibility"};var Proof=function(){function Proof(){_classCallCheck(this,Proof)}Proof.prototype.isUserAdminOfProofTeam=function isUserAdminOfProofTeam(user){return user.isAdmin&&this.teamId===user.teamId};Proof.prototype.getState=function getState(){var state=_ProofState2.default.ACTIVE;if(this.fileStatus===_FileStatus2.default.UPLOADING||!this.fileStatus&&this.statusMessage===_StatusMessage2.default.UPLOADING){state=_ProofState2.default.UPLOADING}else if(this.hasFileError()){state=_ProofState2.default.FILE_ERROR}else if(this.isProcessing()){state=_ProofState2.default.PROCESSING}else if(this.type===_ProofType2.default.BRIEF){switch(this.status){case _ProofStatus2.default.NEW:state=_ProofState2.default.SETUP_NEEDED;break;case _ProofStatus2.default.PROOFING:case _ProofStatus2.default.FINAL_APPROVING:state=_ProofState2.default.AWAITING_PROOF;break;case _ProofStatus2.default.AWAITING_NEW_VERSION:state=_ProofState2.default.AWAITING_PROOF;break;case _ProofStatus2.default.HAS_NEW_VERSION:state=_ProofState2.default.HAS_NEW_VERSION;break;case _ProofStatus2.default.APPROVED:state=_ProofState2.default.APPROVED;break;case _ProofStatus2.default.ARCHIVED:state=_ProofState2.default.ARCHIVED;break;default:state=_ProofState2.default.BRIEFING;break}}else if(this.status===_ProofStatus2.default.ARCHIVED){state=_ProofState2.default.ARCHIVED}else if(this.status===_ProofStatus2.default.TODOS_REQUESTED){state=_ProofState2.default.TODOS_REQUESTED}else if(this.status===_ProofStatus2.default.AWAITING_NEW_VERSION){state=_ProofState2.default.AWAITING_NEW_VERSION}else if(this.status===_ProofStatus2.default.HAS_NEW_VERSION){state=_ProofState2.default.HAS_NEW_VERSION}else if(this.status===_ProofStatus2.default.APPROVED){state=_ProofState2.default.APPROVED}else if(!this.hasWorkflow()){state=_ProofState2.default.PROOFERS_NEEDED}else if(!this.hasWorkflowStarted()){state=_ProofState2.default.NOT_STARTED}else if(this.isOverdue||this.dueDate&&this.dueDate.getTime()<Date.now()){state=_ProofState2.default.OVERDUE}return state};Proof.prototype.getVideoProcessingProgress=function getVideoProcessingProgress(){var percent=0;var message=String(this.fileMessage);if(message){var thumbMatch=/^Thumb-\w+\-([-+]?[0-9]*\.?[0-9]*)/g.exec(message);var videoMatch=/^Video-\w+\-([-+]?[0-9]*\.?[0-9]*)/g.exec(message);if(message.startsWith("Video-Scheduled-")){percent=0}else if(videoMatch){percent=(0,_getPercentage2.default)(parseFloat(videoMatch[1])/100,0,.2)}else if(thumbMatch){percent=(0,_getPercentage2.default)(parseFloat(thumbMatch[1])/100,.8,0)}}return percent};Proof.prototype.hasWorkflowStarted=function hasWorkflowStarted(){return this.hasWorkflow()&&this.status!==_ProofStatus2.default.NEW};Proof.prototype.isProcessing=function isProcessing(){if(this.fileStatus===_FileStatus2.default.UPLOADING||this.fileStatus===_FileStatus2.default.QUEUED||this.fileStatus===_FileStatus2.default.RIPPING){return true}if(!this.fileStatus){return this.statusMessage===_StatusMessage2.default.UPLOADING||this.statusMessage===_StatusMessage2.default.PROCESSING}return false};Proof.prototype.isAwaitingFile=function isAwaitingFile(){return this.source&&this.fileStatus===_FileStatus2.default.CREATED};Proof.prototype.getProcessingProgress=function getProcessingProgress(){switch(this.fileStatus){case _FileStatus2.default.UPLOADING:return.1;case _FileStatus2.default.QUEUED:return.2;case _FileStatus2.default.RIPPING:if(this.fileCategory==="video"){return(0,_getPercentage2.default)(this.getVideoProcessingProgress(),.2,.1).toFixed(2)}return.6;default:return-1}};Proof.prototype.hasWorkflow=function hasWorkflow(){return(0,_id.isWorkflowId)(this.workflowId)};Proof.prototype.hasFile=function hasFile(){return(0,_id.isFileId)(this.fileId)};Proof.prototype.hasFileError=function hasFileError(){if(this.fileStatus===_FileStatus2.default.ERROR){return true}if(!this.fileStatus){if(this.statusMessage===_StatusMessage2.default.FILE_ERROR){return true}if(!this.hasFile()){return true}return false}return false};Proof.prototype.hasEditor=function hasEditor(){return(0,_id.isUserId)(this.editorUserId)};Proof.prototype.hasThumbnail=function hasThumbnail(){if(this.fileStatus===_FileStatus2.default.OK){return true}if(!this.fileStatus&&this.hasFile()){if(this.statusMessage===_StatusMessage2.default.FILE_ERROR||this.statusMessage===_StatusMessage2.default.UPLOADING||this.statusMessage===_StatusMessage2.default.PROCESSING||this.statusMessage===_StatusMessage2.default.AWAITING_FILE||this.statusMessage===_StatusMessage2.default.AWAITING_EMAIL){return false}return true}return false};Proof.prototype.canUserUploadNewVersion=function canUserUploadNewVersion(userId){return this.getState()===_ProofState2.default.AWAITING_NEW_VERSION&&(this.isEditor(userId)||this.isOwner(userId))||this.getState()===_ProofState2.default.AWAITING_PROOF&&(this.isEditor(userId)||this.isRecipient(userId))};Proof.prototype.isOwner=function isOwner(userId){return this.ownerUserIds.indexOf(userId)!==-1};Proof.prototype.isEditor=function isEditor(userId){return this.editorUserIds.indexOf(userId)!==-1};Proof.prototype.isRecipient=function isRecipient(userId){return this.recipient===userId};Proof.prototype.calculateState=function calculateState(){this.state=this.getState()};Proof.prototype.fromProof=function fromProof(proofData){(0,_transform2.default)(this,proofSchema,proofData);this.calculateState();return this};Proof.getStateFromRawData=function getStateFromRawData(proofData){var proof=new Proof;proof.fromProof(proofData);return proof.getState()};return Proof}();exports.default=Proof;
|
|
@@ -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;
|
|
@@ -63,6 +63,14 @@ declare class TeamProofFeatures {
|
|
|
63
63
|
* @type {boolean}
|
|
64
64
|
*/
|
|
65
65
|
usePreviousVersionDueDate: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Whether inviters can add team members who aren't on a proof as reviewers by @mentioning them in a comment.
|
|
68
|
+
* Only applies to proofs created after the feature is enabled.
|
|
69
|
+
*
|
|
70
|
+
* @since v2.27.0
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
*/
|
|
73
|
+
addReviewersViaMention: boolean;
|
|
66
74
|
/**
|
|
67
75
|
* Whether the digital verification feature is licensed for the team.
|
|
68
76
|
*
|
|
@@ -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 TeamProofFeatureSchema={reference:"ProofReference",referenceRequired:"ProofReferenceRequired",publicProofs:"PublicProofs",usePreviousVersionDueDate:"UsePreviousVersionDueDate",defaultIsPublic:"DefaultProofIsPublic",messageToOwners:"MessageToOwners",allowedDecisions:"AllowedDecisions",enableChecklists:"EnableChecklists",defaultGifOutput:"DefaultGifOutput",enableProofMagicAccess:"EnableProofMagicAccess",licenseDigitalVerification:"LicenseDigitalVerification",enableDigitalVerification:"EnableDigitalVerification",defaultDigitalVerification:"DefaultDigitalVerification",reauthentication:"Reauthentication",enableProofSoftDeletion:"EnableProofSoftDeletion"};var TeamProofFeatures=function(){function TeamProofFeatures(){_classCallCheck(this,TeamProofFeatures)}TeamProofFeatures.prototype.fromTeamProofFeatures=function fromTeamProofFeatures(teamProofFeaturesData){(0,_transform2.default)(this,TeamProofFeatureSchema,teamProofFeaturesData);return this};return TeamProofFeatures}();exports.default=TeamProofFeatures;
|
|
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 TeamProofFeatureSchema={reference:"ProofReference",referenceRequired:"ProofReferenceRequired",publicProofs:"PublicProofs",usePreviousVersionDueDate:"UsePreviousVersionDueDate",addReviewersViaMention:"AddReviewersViaMention",defaultIsPublic:"DefaultProofIsPublic",messageToOwners:"MessageToOwners",allowedDecisions:"AllowedDecisions",enableChecklists:"EnableChecklists",defaultGifOutput:"DefaultGifOutput",enableProofMagicAccess:"EnableProofMagicAccess",licenseDigitalVerification:"LicenseDigitalVerification",enableDigitalVerification:"EnableDigitalVerification",defaultDigitalVerification:"DefaultDigitalVerification",reauthentication:"Reauthentication",enableProofSoftDeletion:"EnableProofSoftDeletion"};var TeamProofFeatures=function(){function TeamProofFeatures(){_classCallCheck(this,TeamProofFeatures)}TeamProofFeatures.prototype.fromTeamProofFeatures=function fromTeamProofFeatures(teamProofFeaturesData){(0,_transform2.default)(this,TeamProofFeatureSchema,teamProofFeaturesData);return this};return TeamProofFeatures}();exports.default=TeamProofFeatures;
|
|
@@ -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", "addReviewersViaMention", "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,
|