@sheerid/jslib 1.130.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.
Files changed (59) hide show
  1. package/es5/Tmetrix.bundle.js +5 -5
  2. package/es5/messages_ar.bundle.js +4 -4
  3. package/es5/messages_bg.bundle.js +4 -4
  4. package/es5/messages_cs.bundle.js +4 -4
  5. package/es5/messages_da.bundle.js +4 -4
  6. package/es5/messages_de.bundle.js +4 -4
  7. package/es5/messages_el.bundle.js +4 -4
  8. package/es5/messages_en-GB.bundle.js +4 -4
  9. package/es5/messages_es-ES.bundle.js +4 -4
  10. package/es5/messages_es.bundle.js +4 -4
  11. package/es5/messages_fi.bundle.js +4 -4
  12. package/es5/messages_fr-CA.bundle.js +4 -4
  13. package/es5/messages_fr.bundle.js +4 -4
  14. package/es5/messages_ga.bundle.js +4 -4
  15. package/es5/messages_hr.bundle.js +4 -4
  16. package/es5/messages_hu.bundle.js +4 -4
  17. package/es5/messages_id.bundle.js +4 -4
  18. package/es5/messages_it.bundle.js +4 -4
  19. package/es5/messages_iw.bundle.js +4 -4
  20. package/es5/messages_ja.bundle.js +4 -4
  21. package/es5/messages_ko.bundle.js +4 -4
  22. package/es5/messages_lo.bundle.js +4 -4
  23. package/es5/messages_lt.bundle.js +4 -4
  24. package/es5/messages_ms.bundle.js +4 -4
  25. package/es5/messages_nl.bundle.js +4 -4
  26. package/es5/messages_no.bundle.js +4 -4
  27. package/es5/messages_pl.bundle.js +4 -4
  28. package/es5/messages_pt-BR.bundle.js +4 -4
  29. package/es5/messages_pt.bundle.js +4 -4
  30. package/es5/messages_ru.bundle.js +4 -4
  31. package/es5/messages_sk.bundle.js +4 -4
  32. package/es5/messages_sl.bundle.js +4 -4
  33. package/es5/messages_sr.bundle.js +4 -4
  34. package/es5/messages_sv.bundle.js +4 -4
  35. package/es5/messages_th.bundle.js +4 -4
  36. package/es5/messages_tr.bundle.js +4 -4
  37. package/es5/messages_zh-HK.bundle.js +4 -4
  38. package/es5/messages_zh.bundle.js +4 -4
  39. package/manifest.json +48 -48
  40. package/package.json +1 -1
  41. package/sheerid-requestOrg.css +5 -5
  42. package/sheerid-requestOrg.css.map +1 -1
  43. package/sheerid-requestOrg.js +10 -10
  44. package/sheerid-requestOrg.js.map +1 -1
  45. package/sheerid-utils.js +8 -8
  46. package/sheerid-utils.js.map +1 -1
  47. package/sheerid.css +5 -5
  48. package/sheerid.css.map +1 -1
  49. package/sheerid.js +17 -17
  50. package/sheerid.js.map +1 -1
  51. package/sheerides6.js +113 -136
  52. package/sheerides6.js.map +1 -1
  53. package/src/components/DateComponent/DateComponent.d.ts +14 -0
  54. package/src/components/FormFields/ActiveDutyStartDate/ActiveDutyStartDateComponent.d.ts +2 -0
  55. package/src/components/FormFields/BirthDate/BirthDateComponent.d.ts +1 -11
  56. package/src/components/FormFields/DischargeDate/DischargeDateComponent.d.ts +1 -11
  57. package/src/lib/types/runtimeTypes.d.ts +3 -1
  58. package/src/lib/types/types.d.ts +27 -5
  59. 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
+ };
@@ -0,0 +1,2 @@
1
+ import { FormFieldComponentProps } from "../../../lib/types/types";
2
+ export declare const ActiveDutyStartDateComponent: ({ onChange, isErrored, 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 BirthDate: {
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 DischargeDate: {
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;
@@ -31,7 +31,8 @@ export declare enum VerificationStepsEnum {
31
31
  cancelEmailLoop = "cancelEmailLoop",
32
32
  consolation = "consolation",
33
33
  override = "override",
34
- cancelDocUpload = "cancelDocUpload"
34
+ cancelDocUpload = "cancelDocUpload",
35
+ missingRequiredMetadata = "missingRequiredMetadata"
35
36
  }
36
37
  export declare const VerificationSteps: any;
37
38
  export declare const CollectInfoSteps: string[];
@@ -148,6 +149,7 @@ export declare enum FieldIdEnum {
148
149
  country = "country",
149
150
  state = "state",
150
151
  dischargeDate = "dischargeDate",
152
+ activeDutyStartDate = "activeDutyStartDate",
151
153
  docUpload = "docUpload",
152
154
  status = "status",
153
155
  statuses = "statuses",
@@ -189,6 +189,7 @@ export declare type MarketConsentOptions = {
189
189
  export declare type MetadataConfig = {
190
190
  enabled: boolean;
191
191
  keys: string[];
192
+ requiredKeys?: string[];
192
193
  };
193
194
  export declare type RestResources = {
194
195
  verification: string;
@@ -258,9 +259,16 @@ export declare type BirthDate = string;
258
259
  */
259
260
  export declare type MemberId = string;
260
261
  /**
261
- * @description TODO
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
262
265
  */
263
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;
264
272
  /**
265
273
  * @description TODO
266
274
  */
@@ -284,11 +292,12 @@ export declare type OrganizationName = string;
284
292
  /**
285
293
  * @description All possible fields
286
294
  */
287
- 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";
288
296
  export declare type FormValidationOptions = {
289
297
  minAge?: number;
290
298
  maxAge?: number;
291
299
  smsLoopEnabled?: boolean;
300
+ strictMilitaryValidationEnabled?: boolean;
292
301
  currentStep?: VerificationStep;
293
302
  viewModel?: ViewModel;
294
303
  };
@@ -373,11 +382,11 @@ export interface InputSelectComponentProps {
373
382
  label?: string | JSX.Element;
374
383
  intl?: InjectedIntl;
375
384
  }
376
- 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" | 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;
377
386
  export declare type NetworkErrorId = "failedToFetch" | "requestTimeout";
378
387
  export declare type ExtendedErrorId = string | undefined;
379
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";
380
- export declare type VerificationStep = "collectStudentPersonalInfo" | "collectTeacherPersonalInfo" | "collectMemberPersonalInfo" | "collectMilitaryStatus" | "collectActiveMilitaryPersonalInfo" | "collectInactiveMilitaryPersonalInfo" | "collectSeniorPersonalInfo" | "collectAgePersonalInfo" | "collectFirstResponderPersonalInfo" | "collectMedicalProfessionalPersonalInfo" | "collectEmployeePersonalInfo" | "collectDriverLicensePersonalInfo" | "collectGeneralIdentityPersonalInfo" | "collectHybridIdentityPersonalInfo" | "collectLicensedProfessionalPersonalInfo" | "collectLowIncomePersonalInfo" | "collectMoverPersonalInfo" | "collectSocialSecurityNumber" | "cancelSocialSecurityNumber" | "docUpload" | "pending" | "docReviewLimitExceeded" | "success" | "error" | "sso" | "smsLoop" | "emailLoop" | "cancelEmailLoop" | "consolation" | "override" | "cancelDocUpload";
389
+ export declare type VerificationStep = "collectStudentPersonalInfo" | "collectTeacherPersonalInfo" | "collectMemberPersonalInfo" | "collectMilitaryStatus" | "collectActiveMilitaryPersonalInfo" | "collectInactiveMilitaryPersonalInfo" | "collectSeniorPersonalInfo" | "collectAgePersonalInfo" | "collectFirstResponderPersonalInfo" | "collectMedicalProfessionalPersonalInfo" | "collectEmployeePersonalInfo" | "collectDriverLicensePersonalInfo" | "collectGeneralIdentityPersonalInfo" | "collectHybridIdentityPersonalInfo" | "collectLicensedProfessionalPersonalInfo" | "collectLowIncomePersonalInfo" | "collectMoverPersonalInfo" | "collectSocialSecurityNumber" | "cancelSocialSecurityNumber" | "docUpload" | "pending" | "docReviewLimitExceeded" | "success" | "error" | "sso" | "smsLoop" | "emailLoop" | "cancelEmailLoop" | "consolation" | "override" | "cancelDocUpload" | "missingRequiredMetadata";
381
390
  export declare type VerificationStepMap<T> = {
382
391
  [P in VerificationStep]: T;
383
392
  };
@@ -433,6 +442,7 @@ export declare type MilitaryStatusRequest = {
433
442
  */
434
443
  export declare type ActiveMilitaryPersonalInfoRequest = {
435
444
  birthDate: BirthDate;
445
+ activeDutyStartDate?: ActiveDutyStartDate;
436
446
  country?: Country;
437
447
  } & WithOrganization & WithCoreFields;
438
448
  export declare type ActiveMilitaryPersonalInfoViewModel = {
@@ -444,6 +454,7 @@ export declare type ActiveMilitaryPersonalInfoViewModel = {
444
454
  export declare type InactiveMilitaryPersonalInfoRequest = {
445
455
  birthDate: BirthDate;
446
456
  dischargeDate: DischargeDate;
457
+ activeDutyStartDate?: ActiveDutyStartDate;
447
458
  country?: Country;
448
459
  } & WithOrganization & WithCoreFields;
449
460
  export declare type InactiveMilitaryPersonalInfoViewModel = {
@@ -971,6 +982,7 @@ export declare type ProgramTheme = {
971
982
  threatMetrixEnabled?: boolean;
972
983
  idCheckAddOnEnabled?: boolean;
973
984
  ipqsDeviceFingerprintEnabled?: boolean;
985
+ strictMilitaryValidationEnabled?: boolean;
974
986
  config: {
975
987
  brandInfo?: {
976
988
  faqUrl: string | null;
@@ -1059,6 +1071,10 @@ export declare type ProgramThemeMessages = {
1059
1071
  title?: string;
1060
1072
  buttonText?: string;
1061
1073
  };
1074
+ missingRequiredMetadata?: {
1075
+ title?: string;
1076
+ buttonText?: string;
1077
+ };
1062
1078
  };
1063
1079
  };
1064
1080
  };
@@ -1105,6 +1121,7 @@ export declare type SegmentSpecificMessages = {
1105
1121
  * @description These strings are provided by default
1106
1122
  */
1107
1123
  export declare type DefaultMessages = {
1124
+ activeDutyStartDate: string;
1108
1125
  address: string;
1109
1126
  addressPlaceholder: string;
1110
1127
  birthDate: string;
@@ -1563,6 +1580,7 @@ export interface VerificationServiceValues {
1563
1580
  readonly programId: DatabaseId;
1564
1581
  readonly orgList: Organization[];
1565
1582
  readonly formValidationOptions?: FormValidationOptions;
1583
+ readonly overrideStep?: VerificationStep;
1566
1584
  }
1567
1585
  export interface VerificationServiceFunctions {
1568
1586
  readonly fetchNewVerificationRequest: (programId: DatabaseId, segment: Segment, previousViewModel: ViewModel, trackingId?: string, forceNewVerificationRequest?: boolean) => Promise<void>;
@@ -1606,6 +1624,7 @@ export declare type ReduxState = {
1606
1624
  messages: StringMap;
1607
1625
  orgList: Organization[];
1608
1626
  formValidationOptions: FormValidationOptions;
1627
+ overrideStep?: VerificationStep;
1609
1628
  };
1610
1629
  export declare type VerificationStore = Store<ReduxState, VerificationServiceAction>;
1611
1630
  /**
@@ -1641,6 +1660,9 @@ export interface ViewModelAction {
1641
1660
  export interface FormValidationOptionsAction {
1642
1661
  type: "FORM_VALIDATION_OPTIONS";
1643
1662
  }
1663
+ export interface RequiredMetadataCheckAction {
1664
+ type: "REQUIRED_METADATA_CHECK";
1665
+ }
1644
1666
  export interface PreLoadOrgsAction {
1645
1667
  type: "PRE_LOAD_ORGS";
1646
1668
  orgList: Organization[];
@@ -1668,7 +1690,7 @@ export interface ResetStateAction {
1668
1690
  export interface ForceUpdate {
1669
1691
  type: "FORCE_UPDATE";
1670
1692
  }
1671
- export declare type VerificationServiceAction = SetMessagesAction | ProgramIdAction | VerificationResponseAction | FieldValidationErrorsAction | ViewModelAction | PreLoadOrgsAction | PreviousViewModelAction | ProgramThemeAction | IsLoadingAction | IsErroredAction | ResetStateAction | FormValidationOptionsAction | ForceUpdate;
1693
+ export declare type VerificationServiceAction = SetMessagesAction | ProgramIdAction | VerificationResponseAction | FieldValidationErrorsAction | ViewModelAction | PreLoadOrgsAction | PreviousViewModelAction | ProgramThemeAction | IsLoadingAction | IsErroredAction | ResetStateAction | FormValidationOptionsAction | ForceUpdate | RequiredMetadataCheckAction;
1672
1694
  /**
1673
1695
  * @private
1674
1696
  * @deprecated Use a specific action interface (or create one) from below
Binary file