@sheerid/jslib 1.131.0 → 1.132.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/es5/Tmetrix.bundle.js +4 -4
- package/es5/messages_ar.bundle.js +4 -4
- package/es5/messages_bg.bundle.js +4 -4
- package/es5/messages_cs.bundle.js +4 -4
- package/es5/messages_da.bundle.js +4 -4
- package/es5/messages_de.bundle.js +4 -4
- package/es5/messages_el.bundle.js +4 -4
- package/es5/messages_en-GB.bundle.js +4 -4
- package/es5/messages_es-ES.bundle.js +4 -4
- package/es5/messages_es.bundle.js +4 -4
- package/es5/messages_fi.bundle.js +4 -4
- package/es5/messages_fr-CA.bundle.js +4 -4
- package/es5/messages_fr.bundle.js +4 -4
- package/es5/messages_ga.bundle.js +4 -4
- package/es5/messages_hr.bundle.js +4 -4
- package/es5/messages_hu.bundle.js +4 -4
- package/es5/messages_id.bundle.js +4 -4
- package/es5/messages_it.bundle.js +4 -4
- package/es5/messages_iw.bundle.js +4 -4
- package/es5/messages_ja.bundle.js +4 -4
- package/es5/messages_ko.bundle.js +4 -4
- package/es5/messages_lo.bundle.js +4 -4
- package/es5/messages_lt.bundle.js +4 -4
- package/es5/messages_ms.bundle.js +4 -4
- package/es5/messages_nl.bundle.js +4 -4
- package/es5/messages_no.bundle.js +4 -4
- package/es5/messages_pl.bundle.js +4 -4
- package/es5/messages_pt-BR.bundle.js +4 -4
- package/es5/messages_pt.bundle.js +4 -4
- package/es5/messages_ru.bundle.js +4 -4
- package/es5/messages_sk.bundle.js +4 -4
- package/es5/messages_sl.bundle.js +4 -4
- package/es5/messages_sr.bundle.js +4 -4
- package/es5/messages_sv.bundle.js +4 -4
- package/es5/messages_th.bundle.js +4 -4
- package/es5/messages_tr.bundle.js +4 -4
- package/es5/messages_zh-HK.bundle.js +4 -4
- package/es5/messages_zh.bundle.js +4 -4
- package/manifest.json +48 -48
- package/package.json +1 -1
- package/sheerid-requestOrg.css +5 -5
- package/sheerid-requestOrg.css.map +1 -1
- package/sheerid-requestOrg.js +10 -10
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +8 -8
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +5 -5
- package/sheerid.css.map +1 -1
- package/sheerid.js +16 -16
- package/sheerid.js.map +1 -1
- package/sheerides6.js +88 -133
- package/sheerides6.js.map +1 -1
- package/src/components/DateComponent/DateComponent.d.ts +14 -0
- package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +2 -0
- package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -11
- package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -11
- package/src/lib/types/runtimeTypes.d.ts +1 -0
- package/src/lib/types/types.d.ts +15 -3
- package/types-reference.zip +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { InjectedIntlProps } from "react-intl";
|
|
3
|
+
import { FormFieldComponentProps } from "../../lib/types/types";
|
|
4
|
+
export interface DateComponentProps {
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
errorMsg: ReactNode;
|
|
7
|
+
fieldName: string;
|
|
8
|
+
fieldId: string;
|
|
9
|
+
mode?: "date" | "month";
|
|
10
|
+
}
|
|
11
|
+
export declare const DateInput: ({ onChange, intl, isErrored, isRequired, value, errorMsg, label, fieldName, fieldId, mode, }: Omit<FormFieldComponentProps, "errorId"> & InjectedIntlProps & DateComponentProps) => JSX.Element;
|
|
12
|
+
export declare const DateComponent: React.ComponentClass<Pick<Pick<FormFieldComponentProps<any>, "label" | "intl" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService"> & DateComponentProps, "label" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "fieldId" | "verificationService" | "errorMsg" | "fieldName" | "mode">, any> & {
|
|
13
|
+
WrappedComponent: React.ComponentType<Pick<FormFieldComponentProps<any>, "label" | "intl" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService"> & DateComponentProps & InjectedIntlProps>;
|
|
14
|
+
};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InjectedIntlProps } from "react-intl";
|
|
3
1
|
import { FormFieldComponentProps } from "../../../lib/types/types";
|
|
4
|
-
export declare const
|
|
5
|
-
({ onChange, intl, isErrored, isRequired, errorId, value, }: FormFieldComponentProps & InjectedIntlProps): JSX.Element;
|
|
6
|
-
defaultProps: {
|
|
7
|
-
value: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const BirthDateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & InjectedIntlProps>;
|
|
12
|
-
};
|
|
2
|
+
export declare const BirthDateComponent: ({ onChange, isErrored, isRequired, errorId, value, }: FormFieldComponentProps) => JSX.Element;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { InjectedIntlProps } from "react-intl";
|
|
3
1
|
import { FormFieldComponentProps } from "../../../lib/types/types";
|
|
4
|
-
export declare const
|
|
5
|
-
({ onChange, intl, isErrored, value, }: FormFieldComponentProps & InjectedIntlProps): JSX.Element;
|
|
6
|
-
defaultProps: {
|
|
7
|
-
value: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const DischargeDateComponent: React.ComponentClass<Pick<FormFieldComponentProps<any>, "label" | "errorId" | "isErrored" | "onChange" | "onKeyDown" | "autoFocus" | "placeholder" | "value" | "isRequired" | "verificationService">, any> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<FormFieldComponentProps<any> & InjectedIntlProps>;
|
|
12
|
-
};
|
|
2
|
+
export declare const DischargeDateComponent: ({ onChange, isErrored, value, }: FormFieldComponentProps) => JSX.Element;
|
package/src/lib/types/types.d.ts
CHANGED
|
@@ -259,9 +259,16 @@ export declare type BirthDate = string;
|
|
|
259
259
|
*/
|
|
260
260
|
export declare type MemberId = string;
|
|
261
261
|
/**
|
|
262
|
-
* @
|
|
262
|
+
* @example 2013-03-06
|
|
263
|
+
* @template ISO-8601 'YYYY-MM-DD'
|
|
264
|
+
* The `day` portion of this date is not editable or displayed to the user
|
|
263
265
|
*/
|
|
264
266
|
export declare type DischargeDate = string;
|
|
267
|
+
/**
|
|
268
|
+
* @example 2013-03-06
|
|
269
|
+
* @template ISO-8601 'YYYY-MM-DD'
|
|
270
|
+
*/
|
|
271
|
+
export declare type ActiveDutyStartDate = string;
|
|
265
272
|
/**
|
|
266
273
|
* @description TODO
|
|
267
274
|
*/
|
|
@@ -285,11 +292,12 @@ export declare type OrganizationName = string;
|
|
|
285
292
|
/**
|
|
286
293
|
* @description All possible fields
|
|
287
294
|
*/
|
|
288
|
-
export declare type FieldId = "firstName" | "lastName" | "memberId" | "organization" | "birthDate" | "email" | "phoneNumber" | "postalCode" | "address1" | "city" | "state" | "dischargeDate" | "status" | "statuses" | "docUpload" | "country" | "smsCode" | "socialSecurityNumber" | "marketConsentValue" | "carrierConsentValue" | "driverLicenseNumber" | "overrideCode" | "ebtCardNumber";
|
|
295
|
+
export declare type FieldId = "firstName" | "lastName" | "memberId" | "organization" | "birthDate" | "email" | "phoneNumber" | "postalCode" | "address1" | "city" | "state" | "dischargeDate" | "activeDutyStartDate" | "status" | "statuses" | "docUpload" | "country" | "smsCode" | "socialSecurityNumber" | "marketConsentValue" | "carrierConsentValue" | "driverLicenseNumber" | "overrideCode" | "ebtCardNumber";
|
|
289
296
|
export declare type FormValidationOptions = {
|
|
290
297
|
minAge?: number;
|
|
291
298
|
maxAge?: number;
|
|
292
299
|
smsLoopEnabled?: boolean;
|
|
300
|
+
strictMilitaryValidationEnabled?: boolean;
|
|
293
301
|
currentStep?: VerificationStep;
|
|
294
302
|
viewModel?: ViewModel;
|
|
295
303
|
};
|
|
@@ -374,7 +382,7 @@ export interface InputSelectComponentProps {
|
|
|
374
382
|
label?: string | JSX.Element;
|
|
375
383
|
intl?: InjectedIntl;
|
|
376
384
|
}
|
|
377
|
-
export declare type ErrorId = "apiRateLimitExceeded" | "dischargeDateBeforeBirthDate" | "docReviewLimitExceeded" | "inactiveProgram" | "expiredProgram" | "expiredEmailLoopToken" | "expiredSMSCode" | "expiredVerification" | "fraudRulesReject" | "futureBirthDate" | "futureDischargeDate" | "incorrectVerificationOverrideCodeAttemptLimitExceeded" | "internalServerError" | "invalidAddress" | "invalidApiToken" | "invalidBirthDate" | "invalidCity" | "invalidCountry" | "invalidDischargeDate" | "invalidDocUploadToken" | "invalidEbtCardNumber" | "invalidEmail" | "invalidFileSizeEmpty" | "invalidFileSizeMax" | "invalidFirstName" | "invalidFirstResponderStatus" | "invalidLastName" | "invalidMemberId" | "invalidMilitaryStatus" | "invalidNumberOfFiles" | "invalidOptIn" | "invalidOrganization" | "invalidOverrideCode" | "invalidPhoneNumber" | "invalidPostalCode" | "invalidProgram" | "invalidRequest" | "invalidSMSCode" | "invalidSocialSecurityNumber" | "invalidState" | "invalidStatus" | "invalidStatuses" | "invalidDriverLicenseNumber" | "invalidStep" | "marketConsentRequired" | "maxMetadataLengthExceeded" | "maxMetadataValuesExceeded" | "maxSMSCodeLimitExceeded" | "incorrectSMSCodeAttemptLimitExceeded" | "noProgram" | "noRemainingRewardCodes" | "notApproved" | "notFound" | "noValidFiles" | "noVerification" | "outsideAgePerson" | "simulatedError" | "unauthorizedAccountStatus" | "unauthorizedDomain" | "underagePerson" | "unknownError" | "unsupportedDocMimeType" | "verificationLimitExceeded" | "invalidEmailLoopToken" | "missingRequiredMetadata" | NetworkErrorId;
|
|
385
|
+
export declare type ErrorId = "activeDutyStartDateBeforeBirthDate" | "apiRateLimitExceeded" | "dischargeDateBeforeBirthDate" | "docReviewLimitExceeded" | "inactiveProgram" | "expiredProgram" | "expiredEmailLoopToken" | "expiredSMSCode" | "expiredVerification" | "fraudRulesReject" | "futureBirthDate" | "futureDischargeDate" | "futureActiveDutyStartDate" | "incorrectVerificationOverrideCodeAttemptLimitExceeded" | "internalServerError" | "invalidActiveDutyStartDate" | "invalidAddress" | "invalidApiToken" | "invalidBirthDate" | "invalidCity" | "invalidCountry" | "invalidDischargeDate" | "invalidDocUploadToken" | "invalidEbtCardNumber" | "invalidEmail" | "invalidFileSizeEmpty" | "invalidFileSizeMax" | "invalidFirstName" | "invalidFirstResponderStatus" | "invalidLastName" | "invalidMemberId" | "invalidMilitaryStatus" | "invalidNumberOfFiles" | "invalidOptIn" | "invalidOrganization" | "invalidOverrideCode" | "invalidPhoneNumber" | "invalidPostalCode" | "invalidProgram" | "invalidRequest" | "invalidSMSCode" | "invalidSocialSecurityNumber" | "invalidState" | "invalidStatus" | "invalidStatuses" | "invalidDriverLicenseNumber" | "invalidStep" | "marketConsentRequired" | "maxMetadataLengthExceeded" | "maxMetadataValuesExceeded" | "maxSMSCodeLimitExceeded" | "incorrectSMSCodeAttemptLimitExceeded" | "noProgram" | "noRemainingRewardCodes" | "notApproved" | "notFound" | "noValidFiles" | "noVerification" | "outsideAgePerson" | "simulatedError" | "unauthorizedAccountStatus" | "unauthorizedDomain" | "underagePerson" | "unknownError" | "unsupportedDocMimeType" | "verificationLimitExceeded" | "invalidEmailLoopToken" | "missingRequiredMetadata" | NetworkErrorId;
|
|
378
386
|
export declare type NetworkErrorId = "failedToFetch" | "requestTimeout";
|
|
379
387
|
export declare type ExtendedErrorId = string | undefined;
|
|
380
388
|
export declare type RejectionReasons = "DOCUMENT_UNREADABLE" | "DOCUMENT_PASSWORD_PROTECTED" | "DOCUMENT_LIKELY_FRAUD" | "DOCUMENT_UNSUPPORTED" | "DOCUMENT_HANDWRITTEN" | "MISSING_INFORMATION" | "MISSING_INFORMATION_PERSON_NAME" | "MISSING_INFORMATION_ORGANIZATION_NAME" | "DOCUMENT_EXPIRED" | "DOCUMENT_OUTDATED" | "MISMATCH_PERSON_NAME" | "MISMATCH_ORGANIZATION" | "MISMATCH_STATUS" | "INELIGIBLE_ORGANIZATION" | "MISSING_INFORMATION_UNIVERSITY_ENROLLMENT" | "INELIGIBLE_PERSON_HIGH_SCHOOL_STUDENT" | "MISSING_INFORMATION_AFFILIATION_US_ARMED_FORCES" | "MISMATCH_COMPANY_NAME_OR_ADDRESS" | "PAYSTUB_OUTDATED_LAST_30_DAYS" | "MISSING_INFORMATION_BIRTHDATE" | "MISMATCH_BIRTHDATE" | "DOCUMENT_OUTDATED_FACULTY" | "MISSING_OR_MISMATCH_JOB_TITLE" | "OTHER_CONTACT_US";
|
|
@@ -434,6 +442,7 @@ export declare type MilitaryStatusRequest = {
|
|
|
434
442
|
*/
|
|
435
443
|
export declare type ActiveMilitaryPersonalInfoRequest = {
|
|
436
444
|
birthDate: BirthDate;
|
|
445
|
+
activeDutyStartDate?: ActiveDutyStartDate;
|
|
437
446
|
country?: Country;
|
|
438
447
|
} & WithOrganization & WithCoreFields;
|
|
439
448
|
export declare type ActiveMilitaryPersonalInfoViewModel = {
|
|
@@ -445,6 +454,7 @@ export declare type ActiveMilitaryPersonalInfoViewModel = {
|
|
|
445
454
|
export declare type InactiveMilitaryPersonalInfoRequest = {
|
|
446
455
|
birthDate: BirthDate;
|
|
447
456
|
dischargeDate: DischargeDate;
|
|
457
|
+
activeDutyStartDate?: ActiveDutyStartDate;
|
|
448
458
|
country?: Country;
|
|
449
459
|
} & WithOrganization & WithCoreFields;
|
|
450
460
|
export declare type InactiveMilitaryPersonalInfoViewModel = {
|
|
@@ -972,6 +982,7 @@ export declare type ProgramTheme = {
|
|
|
972
982
|
threatMetrixEnabled?: boolean;
|
|
973
983
|
idCheckAddOnEnabled?: boolean;
|
|
974
984
|
ipqsDeviceFingerprintEnabled?: boolean;
|
|
985
|
+
strictMilitaryValidationEnabled?: boolean;
|
|
975
986
|
config: {
|
|
976
987
|
brandInfo?: {
|
|
977
988
|
faqUrl: string | null;
|
|
@@ -1110,6 +1121,7 @@ export declare type SegmentSpecificMessages = {
|
|
|
1110
1121
|
* @description These strings are provided by default
|
|
1111
1122
|
*/
|
|
1112
1123
|
export declare type DefaultMessages = {
|
|
1124
|
+
activeDutyStartDate: string;
|
|
1113
1125
|
address: string;
|
|
1114
1126
|
addressPlaceholder: string;
|
|
1115
1127
|
birthDate: string;
|
package/types-reference.zip
CHANGED
|
Binary file
|