Skip to content

Commit f5683b7

Browse files
fix: unused parameter from SignRequest (box/box-openapi#489) (#450)
1 parent 03d7f3e commit f5683b7

9 files changed

+66
-128
lines changed

.codegen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "engineHash": "3799ab4", "specHash": "c9d7bb5", "version": "1.9.0" }
1+
{ "engineHash": "264bdc9", "specHash": "6886603", "version": "1.9.0" }

package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/schemas/event.generated.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,12 @@ export type EventEventTypeField =
5353
| 'DOWNLOAD'
5454
| 'EDIT'
5555
| 'EDIT_USER'
56+
| 'EDR_CROWDSTRIKE_DEVICE_DETECTED'
57+
| 'EDR_CROWDSTRIKE_NO_BOX_TOOLS'
58+
| 'EDR_CROWDSTRIKE_BOX_TOOLS_OUTDATED'
59+
| 'EDR_CROWDSTRIKE_DRIVE_OUTDATED'
60+
| 'EDR_CROWDSTRIKE_ACCESS_ALLOWED_NO_CROWDSTRIKE_DEVICE'
61+
| 'EDR_CROWDSTRIKE_ACCESS_REVOKED'
5662
| 'EMAIL_ALIAS_CONFIRM'
5763
| 'EMAIL_ALIAS_REMOVE'
5864
| 'ENABLE_TWO_FACTOR_AUTH'
@@ -304,6 +310,24 @@ export function deserializeEventEventTypeField(
304310
if (val == 'EDIT_USER') {
305311
return val;
306312
}
313+
if (val == 'EDR_CROWDSTRIKE_DEVICE_DETECTED') {
314+
return val;
315+
}
316+
if (val == 'EDR_CROWDSTRIKE_NO_BOX_TOOLS') {
317+
return val;
318+
}
319+
if (val == 'EDR_CROWDSTRIKE_BOX_TOOLS_OUTDATED') {
320+
return val;
321+
}
322+
if (val == 'EDR_CROWDSTRIKE_DRIVE_OUTDATED') {
323+
return val;
324+
}
325+
if (val == 'EDR_CROWDSTRIKE_ACCESS_ALLOWED_NO_CROWDSTRIKE_DEVICE') {
326+
return val;
327+
}
328+
if (val == 'EDR_CROWDSTRIKE_ACCESS_REVOKED') {
329+
return val;
330+
}
307331
if (val == 'EMAIL_ALIAS_CONFIRM') {
308332
return val;
309333
}

src/schemas/signRequest.generated.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -431,19 +431,6 @@ export function deserializeSignRequest(val: SerializedData): SignRequest {
431431
}
432432
const externalId: undefined | string =
433433
val.external_id == void 0 ? void 0 : val.external_id;
434-
if (
435-
!(val.is_phone_verification_required_to_view == void 0) &&
436-
!sdIsBoolean(val.is_phone_verification_required_to_view)
437-
) {
438-
throw new BoxSdkError({
439-
message:
440-
'Expecting boolean for "is_phone_verification_required_to_view" of type "SignRequest"',
441-
});
442-
}
443-
const isPhoneVerificationRequiredToView: undefined | boolean =
444-
val.is_phone_verification_required_to_view == void 0
445-
? void 0
446-
: val.is_phone_verification_required_to_view;
447434
if (!(val.template_id == void 0) && !sdIsString(val.template_id)) {
448435
throw new BoxSdkError({
449436
message: 'Expecting string for "template_id" of type "SignRequest"',
@@ -485,7 +472,6 @@ export function deserializeSignRequest(val: SerializedData): SignRequest {
485472
prefillTags: prefillTags,
486473
daysValid: daysValid,
487474
externalId: externalId,
488-
isPhoneVerificationRequiredToView: isPhoneVerificationRequiredToView,
489475
templateId: templateId,
490476
externalSystemName: externalSystemName,
491477
} satisfies SignRequest;

src/schemas/signRequestBase.generated.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ export interface SignRequestBase {
4343
/**
4444
* This can be used to reference an ID in an external system that the sign request is related to. */
4545
readonly externalId?: string | null;
46-
/**
47-
* 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. */
48-
readonly isPhoneVerificationRequiredToView?: boolean | null;
4946
/**
5047
* When a signature request is created from a template this field will indicate the id of that template. */
5148
readonly templateId?: string | null;
@@ -74,8 +71,6 @@ export function serializeSignRequestBase(val: SignRequestBase): SerializedData {
7471
}) as readonly any[]),
7572
['days_valid']: val.daysValid,
7673
['external_id']: val.externalId,
77-
['is_phone_verification_required_to_view']:
78-
val.isPhoneVerificationRequiredToView,
7974
['template_id']: val.templateId,
8075
['external_system_name']: val.externalSystemName,
8176
};
@@ -190,19 +185,6 @@ export function deserializeSignRequestBase(
190185
}
191186
const externalId: undefined | string =
192187
val.external_id == void 0 ? void 0 : val.external_id;
193-
if (
194-
!(val.is_phone_verification_required_to_view == void 0) &&
195-
!sdIsBoolean(val.is_phone_verification_required_to_view)
196-
) {
197-
throw new BoxSdkError({
198-
message:
199-
'Expecting boolean for "is_phone_verification_required_to_view" of type "SignRequestBase"',
200-
});
201-
}
202-
const isPhoneVerificationRequiredToView: undefined | boolean =
203-
val.is_phone_verification_required_to_view == void 0
204-
? void 0
205-
: val.is_phone_verification_required_to_view;
206188
if (!(val.template_id == void 0) && !sdIsString(val.template_id)) {
207189
throw new BoxSdkError({
208190
message: 'Expecting string for "template_id" of type "SignRequestBase"',
@@ -233,7 +215,6 @@ export function deserializeSignRequestBase(
233215
prefillTags: prefillTags,
234216
daysValid: daysValid,
235217
externalId: externalId,
236-
isPhoneVerificationRequiredToView: isPhoneVerificationRequiredToView,
237218
templateId: templateId,
238219
externalSystemName: externalSystemName,
239220
} satisfies SignRequestBase;

src/schemas/signRequestCreateRequest.generated.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -262,19 +262,6 @@ export function deserializeSignRequestCreateRequest(
262262
}
263263
const externalId: undefined | string =
264264
val.external_id == void 0 ? void 0 : val.external_id;
265-
if (
266-
!(val.is_phone_verification_required_to_view == void 0) &&
267-
!sdIsBoolean(val.is_phone_verification_required_to_view)
268-
) {
269-
throw new BoxSdkError({
270-
message:
271-
'Expecting boolean for "is_phone_verification_required_to_view" of type "SignRequestCreateRequest"',
272-
});
273-
}
274-
const isPhoneVerificationRequiredToView: undefined | boolean =
275-
val.is_phone_verification_required_to_view == void 0
276-
? void 0
277-
: val.is_phone_verification_required_to_view;
278265
if (!(val.template_id == void 0) && !sdIsString(val.template_id)) {
279266
throw new BoxSdkError({
280267
message:
@@ -310,7 +297,6 @@ export function deserializeSignRequestCreateRequest(
310297
prefillTags: prefillTags,
311298
daysValid: daysValid,
312299
externalId: externalId,
313-
isPhoneVerificationRequiredToView: isPhoneVerificationRequiredToView,
314300
templateId: templateId,
315301
externalSystemName: externalSystemName,
316302
} satisfies SignRequestCreateRequest;

src/schemas/signRequestCreateSigner.generated.ts

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,8 @@ export interface SignRequestCreateSigner {
5050
* If set to true, the signer will need to log in to a Box account
5151
* before signing the request. If the signer does not have
5252
* an existing account, they will have the option to create
53-
* a free Box account. Cannot be selected in combination with
54-
* `verification_phone_number`. */
53+
* a free Box account. */
5554
readonly loginRequired?: boolean | null;
56-
/**
57-
* If set, this phone number will be used to verify the signer
58-
* via two-factor authentication before they are able to sign the document.
59-
* Cannot be selected in combination with `login_required`. */
60-
readonly verificationPhoneNumber?: string | null;
6155
/**
6256
* If set, the signer is required to enter the password before they are able
6357
* to sign a document. This field is write only. */
@@ -112,7 +106,6 @@ export function serializeSignRequestCreateSigner(
112106
['redirect_url']: val.redirectUrl,
113107
['declined_redirect_url']: val.declinedRedirectUrl,
114108
['login_required']: val.loginRequired,
115-
['verification_phone_number']: val.verificationPhoneNumber,
116109
['password']: val.password,
117110
['signer_group_id']: val.signerGroupId,
118111
['suppress_notifications']: val.suppressNotifications,
@@ -190,19 +183,6 @@ export function deserializeSignRequestCreateSigner(
190183
}
191184
const loginRequired: undefined | boolean =
192185
val.login_required == void 0 ? void 0 : val.login_required;
193-
if (
194-
!(val.verification_phone_number == void 0) &&
195-
!sdIsString(val.verification_phone_number)
196-
) {
197-
throw new BoxSdkError({
198-
message:
199-
'Expecting string for "verification_phone_number" of type "SignRequestCreateSigner"',
200-
});
201-
}
202-
const verificationPhoneNumber: undefined | string =
203-
val.verification_phone_number == void 0
204-
? void 0
205-
: val.verification_phone_number;
206186
if (!(val.password == void 0) && !sdIsString(val.password)) {
207187
throw new BoxSdkError({
208188
message:
@@ -239,7 +219,6 @@ export function deserializeSignRequestCreateSigner(
239219
redirectUrl: redirectUrl,
240220
declinedRedirectUrl: declinedRedirectUrl,
241221
loginRequired: loginRequired,
242-
verificationPhoneNumber: verificationPhoneNumber,
243222
password: password,
244223
signerGroupId: signerGroupId,
245224
suppressNotifications: suppressNotifications,

src/schemas/signRequestSigner.generated.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -268,19 +268,6 @@ export function deserializeSignRequestSigner(
268268
}
269269
const loginRequired: undefined | boolean =
270270
val.login_required == void 0 ? void 0 : val.login_required;
271-
if (
272-
!(val.verification_phone_number == void 0) &&
273-
!sdIsString(val.verification_phone_number)
274-
) {
275-
throw new BoxSdkError({
276-
message:
277-
'Expecting string for "verification_phone_number" of type "SignRequestSigner"',
278-
});
279-
}
280-
const verificationPhoneNumber: undefined | string =
281-
val.verification_phone_number == void 0
282-
? void 0
283-
: val.verification_phone_number;
284271
if (!(val.password == void 0) && !sdIsString(val.password)) {
285272
throw new BoxSdkError({
286273
message: 'Expecting string for "password" of type "SignRequestSigner"',
@@ -321,7 +308,6 @@ export function deserializeSignRequestSigner(
321308
redirectUrl: redirectUrl,
322309
declinedRedirectUrl: declinedRedirectUrl,
323310
loginRequired: loginRequired,
324-
verificationPhoneNumber: verificationPhoneNumber,
325311
password: password,
326312
signerGroupId: signerGroupId,
327313
suppressNotifications: suppressNotifications,

0 commit comments

Comments
 (0)