box-node-sdk 2.8.1 → 2.10.0
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 +19 -0
- package/README.md +4 -0
- package/lib/box-client.d.ts +10 -0
- package/lib/box-client.js +10 -0
- package/lib/box-client.js.map +1 -1
- package/lib/managers/metadata.d.ts +2 -0
- package/lib/managers/metadata.js.map +1 -1
- package/lib/managers/retention-policies.d.ts +19 -0
- package/lib/managers/retention-policies.js +9 -0
- package/lib/managers/retention-policies.js.map +1 -1
- package/lib/managers/shield-information-barrier-reports.generated.d.ts +65 -0
- package/lib/managers/shield-information-barrier-reports.generated.js +77 -0
- package/lib/managers/shield-information-barrier-reports.generated.js.map +1 -0
- package/lib/managers/shield-information-barrier-segment-members.generated.d.ts +83 -0
- package/lib/managers/shield-information-barrier-segment-members.generated.js +95 -0
- package/lib/managers/shield-information-barrier-segment-members.generated.js.map +1 -0
- package/lib/managers/shield-information-barrier-segment-restrictions.generated.d.ts +84 -0
- package/lib/managers/shield-information-barrier-segment-restrictions.generated.js +96 -0
- package/lib/managers/shield-information-barrier-segment-restrictions.generated.js.map +1 -0
- package/lib/managers/shield-information-barrier-segments.generated.d.ts +98 -0
- package/lib/managers/shield-information-barrier-segments.generated.js +111 -0
- package/lib/managers/shield-information-barrier-segments.generated.js.map +1 -0
- package/lib/managers/shield-information-barriers.generated.d.ts +73 -0
- package/lib/managers/shield-information-barriers.generated.js +95 -0
- package/lib/managers/shield-information-barriers.generated.js.map +1 -0
- package/lib/managers/sign-requests.generated.d.ts +2 -2
- package/lib/managers/sign-requests.generated.js +1 -1
- package/lib/managers/terms-of-service.js +7 -3
- package/lib/managers/terms-of-service.js.map +1 -1
- package/lib/schemas/enterprise-base.generated.d.ts +18 -0
- package/lib/schemas/enterprise-base.generated.js +3 -0
- package/lib/schemas/enterprise-base.generated.js.map +1 -0
- package/lib/schemas/index.d.ts +1 -13
- package/lib/schemas/index.generated.d.ts +29 -0
- package/lib/schemas/index.generated.js +42 -0
- package/lib/schemas/index.generated.js.map +1 -0
- package/lib/schemas/index.js +1 -13
- package/lib/schemas/index.js.map +1 -1
- package/lib/schemas/shield-information-barrier-base.generated.d.ts +18 -0
- package/lib/schemas/shield-information-barrier-base.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-base.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-reference.generated.d.ts +9 -0
- package/lib/schemas/shield-information-barrier-reference.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-reference.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-report-base.generated.d.ts +18 -0
- package/lib/schemas/shield-information-barrier-report-base.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-report-base.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-report-details.generated.d.ts +9 -0
- package/lib/schemas/shield-information-barrier-report-details.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-report-details.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-report.generated.d.ts +32 -0
- package/lib/schemas/shield-information-barrier-report.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-report.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-segment-member-base.generated.d.ts +19 -0
- package/lib/schemas/shield-information-barrier-segment-member-base.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-segment-member-base.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-segment-member-mini.generated.d.ts +13 -0
- package/lib/schemas/shield-information-barrier-segment-member-mini.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-segment-member-mini.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-segment-member.generated.d.ts +39 -0
- package/lib/schemas/shield-information-barrier-segment-member.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-segment-member.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-segment-restriction-base.generated.d.ts +20 -0
- package/lib/schemas/shield-information-barrier-segment-restriction-base.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-segment-restriction-base.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-segment-restriction-mini.generated.d.ts +20 -0
- package/lib/schemas/shield-information-barrier-segment-restriction-mini.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-segment-restriction-mini.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-segment-restriction.generated.d.ts +33 -0
- package/lib/schemas/shield-information-barrier-segment-restriction.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-segment-restriction.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier-segment.generated.d.ts +50 -0
- package/lib/schemas/shield-information-barrier-segment.generated.js +3 -0
- package/lib/schemas/shield-information-barrier-segment.generated.js.map +1 -0
- package/lib/schemas/shield-information-barrier.generated.d.ts +56 -0
- package/lib/schemas/shield-information-barrier.generated.js +3 -0
- package/lib/schemas/shield-information-barrier.generated.js.map +1 -0
- package/lib/schemas/sign-request-base.generated.d.ts +74 -0
- package/lib/schemas/sign-request-base.generated.js +3 -0
- package/lib/schemas/sign-request-base.generated.js.map +1 -0
- package/lib/schemas/sign-request-create-request.generated.d.ts +11 -71
- package/lib/schemas/sign-request-create-signer.generated.d.ts +8 -0
- package/lib/schemas/sign-request-signer-input.generated.d.ts +1 -1
- package/lib/schemas/sign-request.generated.d.ts +13 -4
- package/lib/schemas/user-base.generated.d.ts +18 -0
- package/lib/schemas/user-base.generated.js +3 -0
- package/lib/schemas/user-base.generated.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Shield information barrier segment restriction (Mini)
|
|
4
|
+
*
|
|
5
|
+
* A mini representation of
|
|
6
|
+
* a segment restriction object for
|
|
7
|
+
* the shield information barrier
|
|
8
|
+
*/
|
|
9
|
+
export interface ShieldInformationBarrierSegmentRestrictionMini extends schemas.ShieldInformationBarrierSegmentRestrictionBase {
|
|
10
|
+
/**
|
|
11
|
+
* The `type` and `id` of the
|
|
12
|
+
* requested shield information barrier segment.
|
|
13
|
+
*/
|
|
14
|
+
shield_information_barrier_segment: object;
|
|
15
|
+
/**
|
|
16
|
+
* The `type` and `id` of the
|
|
17
|
+
* restricted shield information barrier segment.
|
|
18
|
+
*/
|
|
19
|
+
restricted_segment: object;
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shield-information-barrier-segment-restriction-mini.generated.js","sourceRoot":"","sources":["../../src/schemas/shield-information-barrier-segment-restriction-mini.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Shield information barrier segment restriction
|
|
4
|
+
*
|
|
5
|
+
* A standard representation of a
|
|
6
|
+
* segment restriction of a shield information barrier
|
|
7
|
+
* object
|
|
8
|
+
*/
|
|
9
|
+
export interface ShieldInformationBarrierSegmentRestriction extends schemas.ShieldInformationBarrierSegmentRestrictionMini {
|
|
10
|
+
shield_information_barrier?: schemas.ShieldInformationBarrierBase;
|
|
11
|
+
/**
|
|
12
|
+
* ISO date time string when this
|
|
13
|
+
* shield information barrier
|
|
14
|
+
* Segment Restriction object was created.
|
|
15
|
+
* Example: 2020-06-26T18:44:45.869Z
|
|
16
|
+
*/
|
|
17
|
+
created_at?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The user who created this shield information barrier segment Restriction.
|
|
20
|
+
*/
|
|
21
|
+
created_by?: schemas.UserBase;
|
|
22
|
+
/**
|
|
23
|
+
* ISO date time string when this
|
|
24
|
+
* shield information barrier segment
|
|
25
|
+
* Restriction was updated.
|
|
26
|
+
* Example: 2020-07-26T18:44:45.869Z
|
|
27
|
+
*/
|
|
28
|
+
updated_at?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The user that updated this shield information barrier segment Restriction.
|
|
31
|
+
*/
|
|
32
|
+
updated_by?: schemas.UserBase;
|
|
33
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shield-information-barrier-segment-restriction.generated.js","sourceRoot":"","sources":["../../src/schemas/shield-information-barrier-segment-restriction.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Shield information barrier segment
|
|
4
|
+
*
|
|
5
|
+
* A shield information barrier segment object
|
|
6
|
+
*/
|
|
7
|
+
export interface ShieldInformationBarrierSegment {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier for the shield information barrier segment
|
|
10
|
+
* Example: 11446498
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The type of the shield information barrier segment
|
|
15
|
+
* Example: shield_information_barrier_segment
|
|
16
|
+
*/
|
|
17
|
+
type?: 'shield_information_barrier_segment';
|
|
18
|
+
shield_information_barrier?: schemas.ShieldInformationBarrierBase;
|
|
19
|
+
/**
|
|
20
|
+
* Name of the shield information barrier segment
|
|
21
|
+
* Example: Investment Banking
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Description of the shield information barrier segment
|
|
26
|
+
* Example: 'Corporate division that engages in advisory_based financial
|
|
27
|
+
* transactions on behalf of individuals, corporations, and governments.'
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
* ISO date time string when this shield information
|
|
32
|
+
* barrier object was created.
|
|
33
|
+
* Example: 2020-06-26T18:44:45.869Z
|
|
34
|
+
*/
|
|
35
|
+
created_at?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The user who created this shield information barrier segment.
|
|
38
|
+
*/
|
|
39
|
+
created_by?: schemas.UserBase;
|
|
40
|
+
/**
|
|
41
|
+
* ISO date time string when this
|
|
42
|
+
* shield information barrier segment was updated.
|
|
43
|
+
* Example: 2020-07-26T18:44:45.869Z
|
|
44
|
+
*/
|
|
45
|
+
updated_at?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The user that updated this shield information barrier segment.
|
|
48
|
+
*/
|
|
49
|
+
updated_by?: schemas.UserBase;
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shield-information-barrier-segment.generated.js","sourceRoot":"","sources":["../../src/schemas/shield-information-barrier-segment.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Shield information barrier
|
|
4
|
+
*
|
|
5
|
+
* A standard representation of a
|
|
6
|
+
* shield information barrier object
|
|
7
|
+
*/
|
|
8
|
+
export interface ShieldInformationBarrier {
|
|
9
|
+
/**
|
|
10
|
+
* The unique identifier for the shield information barrier
|
|
11
|
+
* Example: 11446498
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The type of the shield information barrier
|
|
16
|
+
* Example: shield_information_barrier
|
|
17
|
+
*/
|
|
18
|
+
type?: 'shield_information_barrier';
|
|
19
|
+
/**
|
|
20
|
+
* The `type` and `id` of enterprise this barrier is under.
|
|
21
|
+
*/
|
|
22
|
+
enterprise?: schemas.EnterpriseBase;
|
|
23
|
+
/**
|
|
24
|
+
* Status of the shield information barrier
|
|
25
|
+
* Example: draft
|
|
26
|
+
*/
|
|
27
|
+
status?: 'draft' | 'pending' | 'disabled' | 'enabled' | 'invalid';
|
|
28
|
+
/**
|
|
29
|
+
* ISO date time string when this
|
|
30
|
+
* shield information barrier object was created.
|
|
31
|
+
* Example: 2020-06-26T18:44:45.869Z
|
|
32
|
+
*/
|
|
33
|
+
created_at?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The user who created this shield information barrier.
|
|
36
|
+
*/
|
|
37
|
+
created_by?: schemas.UserBase;
|
|
38
|
+
/**
|
|
39
|
+
* ISO date time string when this shield information barrier was updated.
|
|
40
|
+
* Example: 2020-07-26T18:44:45.869Z
|
|
41
|
+
*/
|
|
42
|
+
updated_at?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The user that updated this shield information barrier.
|
|
45
|
+
*/
|
|
46
|
+
updated_by?: schemas.UserBase;
|
|
47
|
+
/**
|
|
48
|
+
* ISO date time string when this shield information barrier was enabled.
|
|
49
|
+
* Example: 2020-07-26T18:44:45.869Z
|
|
50
|
+
*/
|
|
51
|
+
enabled_at?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The user that enabled this shield information barrier.
|
|
54
|
+
*/
|
|
55
|
+
enabled_by?: schemas.UserBase;
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shield-information-barrier.generated.js","sourceRoot":"","sources":["../../src/schemas/shield-information-barrier.generated.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as schemas from '.';
|
|
2
|
+
/**
|
|
3
|
+
* Create a sign request
|
|
4
|
+
*
|
|
5
|
+
* A request to create a sign request object
|
|
6
|
+
*/
|
|
7
|
+
export interface SignRequestBase {
|
|
8
|
+
/**
|
|
9
|
+
* Indicates if the sender should receive a `prepare_url` in the response to complete document preparation via UI.
|
|
10
|
+
* Example: true
|
|
11
|
+
*/
|
|
12
|
+
is_document_preparation_needed?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* When specified, signature request will be redirected to this url when a document is signed.
|
|
15
|
+
* Example: https://www.example.com
|
|
16
|
+
*/
|
|
17
|
+
redirect_url?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The uri that a signer will be redirected to after declining to sign a document.
|
|
20
|
+
* Example: https://declined-redirect.com
|
|
21
|
+
*/
|
|
22
|
+
declined_redirect_url?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Disables the usage of signatures generated by typing (text).
|
|
25
|
+
* Example: true
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
are_text_signatures_enabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Subject of sign request email. This is cleaned by sign request. If this field is not passed, a default subject will be used.
|
|
31
|
+
* Example: Sign Request from Acme
|
|
32
|
+
*/
|
|
33
|
+
email_subject?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Message to include in sign request email. The field is cleaned through sanitization of specific characters. However, some html tags are allowed. Links included in the message are also converted to hyperlinks in the email. The message may contain the following html tags including `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong`. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used.
|
|
36
|
+
* Example: Hello! Please sign the document below
|
|
37
|
+
*/
|
|
38
|
+
email_message?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Reminds signers to sign a document on day 3, 8, 13 and 18. Reminders are only sent to outstanding signers.
|
|
41
|
+
* Example: true
|
|
42
|
+
*/
|
|
43
|
+
are_reminders_enabled?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The destination folder to place final, signed document and signing
|
|
46
|
+
* log. Only `ID` and `type` fields are required. The root folder,
|
|
47
|
+
* folder ID `0`, cannot be used.
|
|
48
|
+
*/
|
|
49
|
+
parent_folder: schemas.FolderMini;
|
|
50
|
+
/**
|
|
51
|
+
* Name of the sign request.
|
|
52
|
+
* Example: name
|
|
53
|
+
*/
|
|
54
|
+
name?: string;
|
|
55
|
+
/**
|
|
56
|
+
* When a document contains sign related tags in the content, you can prefill them using this `prefill_tags` by referencing the 'id' of the tag as the `external_id` field of the prefill tag.
|
|
57
|
+
*/
|
|
58
|
+
prefill_tags?: schemas.SignRequestPrefillTag[];
|
|
59
|
+
/**
|
|
60
|
+
* Number of days after which this request will automatically expire if not completed.
|
|
61
|
+
* Example: 2
|
|
62
|
+
*/
|
|
63
|
+
days_valid?: number;
|
|
64
|
+
/**
|
|
65
|
+
* This can be used to reference an ID in an external system that the sign request is related to.
|
|
66
|
+
* Example: 123
|
|
67
|
+
*/
|
|
68
|
+
external_id?: string;
|
|
69
|
+
/**
|
|
70
|
+
* Forces signers to verify a text message prior to viewing the document. You must specify the phone number of signers to have this setting apply to them.
|
|
71
|
+
* Example: true
|
|
72
|
+
*/
|
|
73
|
+
is_phone_verification_required_to_view?: boolean;
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sign-request-base.generated.js","sourceRoot":"","sources":["../../src/schemas/sign-request-base.generated.ts"],"names":[],"mappings":""}
|
|
@@ -4,82 +4,22 @@ import * as schemas from '.';
|
|
|
4
4
|
*
|
|
5
5
|
* A request to create a sign request object
|
|
6
6
|
*/
|
|
7
|
-
export interface SignRequestCreateRequest {
|
|
7
|
+
export interface SignRequestCreateRequest extends schemas.SignRequestBase {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* List of files to create a signing document from. This is currently
|
|
10
|
+
* limited to 10 files. Only the ID and type fields are required
|
|
11
|
+
* for each file. The array will be empty if the `source_files`
|
|
12
|
+
* are deleted.
|
|
11
13
|
*/
|
|
12
|
-
|
|
14
|
+
source_files?: schemas.FileMini[];
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* overrides the default redirect URL for all
|
|
17
|
-
* signers.
|
|
18
|
-
* If no declined redirect URL is specified,
|
|
19
|
-
* this URL will be used for decline actions as well.
|
|
20
|
-
* Example: https://example.com
|
|
16
|
+
* Force a specific signature color (blue, black, or red).
|
|
17
|
+
* Example: blue
|
|
21
18
|
*/
|
|
22
|
-
|
|
19
|
+
signature_color?: 'blue' | 'black' | 'red';
|
|
23
20
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* Defining this URL overrides the default
|
|
27
|
-
* redirect URL for all signers.
|
|
28
|
-
* Example: https://declined-example.com
|
|
29
|
-
*/
|
|
30
|
-
declined_redirect_url?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Disables the usage of signatures generated by typing (text).
|
|
33
|
-
* Example: true
|
|
34
|
-
* @default true
|
|
35
|
-
*/
|
|
36
|
-
are_text_signatures_enabled?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Subject of sign request email. This is cleaned by sign request. If this field is not passed, a default subject will be used.
|
|
39
|
-
* Example: Sign Request from Acme
|
|
40
|
-
*/
|
|
41
|
-
email_subject?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Message to include in sign request email. The field is cleaned through sanitization of specific characters. However, some html tags are allowed. Links included in the message are also converted to hyperlinks in the email. The message may contain the following html tags including `a`, `abbr`, `acronym`, `b`, `blockquote`, `code`, `em`, `i`, `ul`, `li`, `ol`, and `strong`. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used.
|
|
44
|
-
* Example: Hello! Please sign the document below
|
|
45
|
-
*/
|
|
46
|
-
email_message?: string;
|
|
47
|
-
/**
|
|
48
|
-
* If set, signers receive reminders to sign a document on day 3, 8, 13 and 18. Reminders are only sent to any outstanding signers.
|
|
49
|
-
* Example: true
|
|
50
|
-
*/
|
|
51
|
-
are_reminders_enabled?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Array of signers for the sign request. 35 is the max number of signers permitted.
|
|
21
|
+
* Array of signers for the sign request. 35 is the
|
|
22
|
+
* max number of signers permitted.
|
|
54
23
|
*/
|
|
55
24
|
signers: schemas.SignRequestCreateSigner[];
|
|
56
|
-
/**
|
|
57
|
-
* List of files to create a signing document from. This is currently limited to one file. Only the ID and type fields are required for each file. The array will be empty if the `source_files` are deleted.
|
|
58
|
-
*/
|
|
59
|
-
source_files: schemas.FileMini[];
|
|
60
|
-
/**
|
|
61
|
-
* The destination folder to place final, signed document and signing
|
|
62
|
-
* log. Only `ID` and `type` fields are required. The root folder,
|
|
63
|
-
* folder ID `0`, cannot be used.
|
|
64
|
-
*/
|
|
65
|
-
parent_folder: schemas.FolderMini;
|
|
66
|
-
/**
|
|
67
|
-
* When a document contains sign related tags in the content, you can prefill them using this `prefill_tags` by referencing the 'id' of the tag as the `external_id` field of the prefill tag.
|
|
68
|
-
*/
|
|
69
|
-
prefill_tags?: schemas.SignRequestPrefillTag[];
|
|
70
|
-
/**
|
|
71
|
-
* Number of days after which this request will automatically expire if not completed
|
|
72
|
-
* Example: 2
|
|
73
|
-
*/
|
|
74
|
-
days_valid?: number;
|
|
75
|
-
/**
|
|
76
|
-
* This can be used to reference an ID in an external system that the sign request is related to.
|
|
77
|
-
* Example: 123
|
|
78
|
-
*/
|
|
79
|
-
external_id?: string;
|
|
80
|
-
/**
|
|
81
|
-
* If set, signers must complete a two factor authentication text message prior to viewing the document. A `verification_phone_number` must be specified for a signer for this setting to apply.
|
|
82
|
-
* Example: true
|
|
83
|
-
*/
|
|
84
|
-
is_phone_verification_required_to_view?: boolean;
|
|
85
25
|
}
|
|
@@ -53,6 +53,14 @@ export interface SignRequestCreateSigner {
|
|
|
53
53
|
* Example: https://declined-example.com
|
|
54
54
|
*/
|
|
55
55
|
declined_redirect_url?: string;
|
|
56
|
+
/**
|
|
57
|
+
* If set to true, signer will need to login to a Box account
|
|
58
|
+
* before signing the request. If the signer does not have
|
|
59
|
+
* an existing account, they will have an option to create
|
|
60
|
+
* a free Box account.
|
|
61
|
+
* Example: true
|
|
62
|
+
*/
|
|
63
|
+
login_required?: boolean;
|
|
56
64
|
/**
|
|
57
65
|
* If set, this phone number is be used to verify the signer
|
|
58
66
|
* via two factor authentication before they are able to sign the document.
|
|
@@ -14,7 +14,7 @@ export interface SignRequestSignerInput extends schemas.SignRequestPrefillTag {
|
|
|
14
14
|
* Content type of input
|
|
15
15
|
* Example: signature
|
|
16
16
|
*/
|
|
17
|
-
content_type?: 'initial' | 'stamp' | 'signature' | 'company' | 'title' | 'email' | 'full_name' | 'first_name' | 'last_name' | 'text' | 'date' | 'checkbox';
|
|
17
|
+
content_type?: 'initial' | 'stamp' | 'signature' | 'company' | 'title' | 'email' | 'full_name' | 'first_name' | 'last_name' | 'text' | 'date' | 'checkbox' | 'attachment';
|
|
18
18
|
/**
|
|
19
19
|
* Index of page that the input is on
|
|
20
20
|
* Example: 4
|
|
@@ -4,7 +4,7 @@ import * as schemas from '.';
|
|
|
4
4
|
*
|
|
5
5
|
* A Sign Request Object
|
|
6
6
|
*/
|
|
7
|
-
export interface SignRequest extends schemas.
|
|
7
|
+
export interface SignRequest extends schemas.SignRequestBase {
|
|
8
8
|
/**
|
|
9
9
|
* object type
|
|
10
10
|
* Example: sign-request
|
|
@@ -13,7 +13,12 @@ export interface SignRequest extends schemas.SignRequestCreateRequest {
|
|
|
13
13
|
/**
|
|
14
14
|
* Array of signers for the sign request
|
|
15
15
|
*/
|
|
16
|
-
signers
|
|
16
|
+
signers?: schemas.SignRequestSigner[];
|
|
17
|
+
/**
|
|
18
|
+
* Force a specific color for the signature (blue, black, or red).
|
|
19
|
+
* Example: blue
|
|
20
|
+
*/
|
|
21
|
+
signature_color?: string;
|
|
17
22
|
/**
|
|
18
23
|
* Sign request ID
|
|
19
24
|
* Example: 12345
|
|
@@ -28,14 +33,14 @@ export interface SignRequest extends schemas.SignRequestCreateRequest {
|
|
|
28
33
|
prepare_url?: string;
|
|
29
34
|
/**
|
|
30
35
|
* Reference to a file that holds a log of all signer activity for
|
|
31
|
-
* the request
|
|
36
|
+
* the request
|
|
32
37
|
*/
|
|
33
38
|
signing_log?: schemas.FileMini;
|
|
34
39
|
/**
|
|
35
40
|
* Describes the status of the sign request
|
|
36
41
|
* Example: converting
|
|
37
42
|
*/
|
|
38
|
-
status?: 'converting' | 'created' | 'sent' | 'viewed' | 'signed' | 'cancelled' | 'declined' | 'error_converting' | 'error_sending' | 'expired'
|
|
43
|
+
status?: 'converting' | 'created' | 'sent' | 'viewed' | 'signed' | 'cancelled' | 'declined' | 'error_converting' | 'error_sending' | 'expired';
|
|
39
44
|
/**
|
|
40
45
|
* List of files that will be signed, which are copies of the original
|
|
41
46
|
* source files. A new version of these files are created as signers sign
|
|
@@ -47,4 +52,8 @@ export interface SignRequest extends schemas.SignRequestCreateRequest {
|
|
|
47
52
|
* Example: 2021-04-26T08:12:13.982Z
|
|
48
53
|
*/
|
|
49
54
|
auto_expire_at?: string;
|
|
55
|
+
/**
|
|
56
|
+
* List of files to create a signing document from. Only the ID and type fields are required for each file. The array will be empty if the `source_files` are deleted.
|
|
57
|
+
*/
|
|
58
|
+
source_files?: schemas.FileMini[];
|
|
50
59
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User (Base)
|
|
3
|
+
*
|
|
4
|
+
* A mini representation of a user, used when
|
|
5
|
+
* nested within another resource.
|
|
6
|
+
*/
|
|
7
|
+
export interface UserBase {
|
|
8
|
+
/**
|
|
9
|
+
* The unique identifier for this user
|
|
10
|
+
* Example: 11446498
|
|
11
|
+
*/
|
|
12
|
+
id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* `user`
|
|
15
|
+
* Example: user
|
|
16
|
+
*/
|
|
17
|
+
type: 'user';
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-base.generated.js","sourceRoot":"","sources":["../../src/schemas/user-base.generated.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "box-node-sdk",
|
|
3
3
|
"author": "Box <oss@box.com>",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.10.0",
|
|
5
5
|
"description": "Official SDK for Box Plaform APIs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"uuid": "^3.3.3"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@types/jest": "^
|
|
51
|
+
"@types/jest": "^27.1.5",
|
|
52
52
|
"@types/jsonwebtoken": "^8.5.1",
|
|
53
53
|
"@types/lodash": "^4.14.172",
|
|
54
54
|
"@types/prettier": "^2.3.2",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"eslint": "^6.8.0",
|
|
64
64
|
"eslint-plugin-jest": "^23.20.0",
|
|
65
65
|
"eslint-plugin-node": "^11.1.0",
|
|
66
|
-
"eslint-plugin-promise": "^
|
|
66
|
+
"eslint-plugin-promise": "^4.3.1",
|
|
67
67
|
"eslint-plugin-unicorn": "^4.0.3",
|
|
68
68
|
"istanbul": "^0.4.3",
|
|
69
69
|
"jest": "^27.5.1",
|