@ovok/native 1.9.0 → 1.10.1

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 (143) hide show
  1. package/lib/commonjs/modules/auth/default-translation.js +8 -0
  2. package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
  3. package/lib/commonjs/modules/auth/profile/components/form-phone-field.js +186 -0
  4. package/lib/commonjs/modules/auth/profile/components/form-phone-field.js.map +1 -0
  5. package/lib/commonjs/modules/auth/profile/components/profile-form-choice-field.js +67 -0
  6. package/lib/commonjs/modules/auth/profile/components/profile-form-choice-field.js.map +1 -0
  7. package/lib/commonjs/modules/auth/profile/components/profile-form-field-component.js +48 -9
  8. package/lib/commonjs/modules/auth/profile/components/profile-form-field-component.js.map +1 -1
  9. package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js +60 -30
  10. package/lib/commonjs/modules/auth/profile/components/profile-form-provider.js.map +1 -1
  11. package/lib/commonjs/modules/auth/profile/components/profile-form.js +2 -0
  12. package/lib/commonjs/modules/auth/profile/components/profile-form.js.map +1 -1
  13. package/lib/commonjs/modules/auth/profile/utils/phone.js +31 -0
  14. package/lib/commonjs/modules/auth/profile/utils/phone.js.map +1 -0
  15. package/lib/commonjs/modules/auth/register/components/form/inputs.js +32 -4
  16. package/lib/commonjs/modules/auth/register/components/form/inputs.js.map +1 -1
  17. package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js +18 -4
  18. package/lib/commonjs/modules/auth/register/components/form/register-form-provider.js.map +1 -1
  19. package/lib/commonjs/modules/auth/register/contexts/register-form-context.js.map +1 -1
  20. package/lib/commonjs/modules/auth/register/utils/create-register-validation-schema.js +23 -3
  21. package/lib/commonjs/modules/auth/register/utils/create-register-validation-schema.js.map +1 -1
  22. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js +2 -2
  23. package/lib/commonjs/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
  24. package/lib/commonjs/modules/bt-device/constants/supported-devices.js +7 -3
  25. package/lib/commonjs/modules/bt-device/constants/supported-devices.js.map +1 -1
  26. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.device-names.js +4 -1
  27. package/lib/commonjs/modules/bt-management/services/devices/lepu/lepu.device-names.js.map +1 -1
  28. package/lib/commonjs/modules/helpers/form-items/form-date-field.js +27 -4
  29. package/lib/commonjs/modules/helpers/form-items/form-date-field.js.map +1 -1
  30. package/lib/commonjs/modules/helpers/form-items/form-field.js +3 -2
  31. package/lib/commonjs/modules/helpers/form-items/form-field.js.map +1 -1
  32. package/lib/commonjs/modules/ui/components/nearby-device-prompt.js +7 -4
  33. package/lib/commonjs/modules/ui/components/nearby-device-prompt.js.map +1 -1
  34. package/lib/module/modules/auth/default-translation.js +8 -0
  35. package/lib/module/modules/auth/default-translation.js.map +1 -1
  36. package/lib/module/modules/auth/profile/components/form-phone-field.js +180 -0
  37. package/lib/module/modules/auth/profile/components/form-phone-field.js.map +1 -0
  38. package/lib/module/modules/auth/profile/components/profile-form-choice-field.js +61 -0
  39. package/lib/module/modules/auth/profile/components/profile-form-choice-field.js.map +1 -0
  40. package/lib/module/modules/auth/profile/components/profile-form-field-component.js +48 -9
  41. package/lib/module/modules/auth/profile/components/profile-form-field-component.js.map +1 -1
  42. package/lib/module/modules/auth/profile/components/profile-form-provider.js +60 -30
  43. package/lib/module/modules/auth/profile/components/profile-form-provider.js.map +1 -1
  44. package/lib/module/modules/auth/profile/components/profile-form.js +2 -0
  45. package/lib/module/modules/auth/profile/components/profile-form.js.map +1 -1
  46. package/lib/module/modules/auth/profile/utils/phone.js +25 -0
  47. package/lib/module/modules/auth/profile/utils/phone.js.map +1 -0
  48. package/lib/module/modules/auth/register/components/form/inputs.js +32 -4
  49. package/lib/module/modules/auth/register/components/form/inputs.js.map +1 -1
  50. package/lib/module/modules/auth/register/components/form/register-form-provider.js +18 -4
  51. package/lib/module/modules/auth/register/components/form/register-form-provider.js.map +1 -1
  52. package/lib/module/modules/auth/register/contexts/register-form-context.js.map +1 -1
  53. package/lib/module/modules/auth/register/utils/create-register-validation-schema.js +23 -3
  54. package/lib/module/modules/auth/register/utils/create-register-validation-schema.js.map +1 -1
  55. package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js +3 -3
  56. package/lib/module/modules/bt-device/constants/supported-device-catalog-entries.js.map +1 -1
  57. package/lib/module/modules/bt-device/constants/supported-devices.js +7 -3
  58. package/lib/module/modules/bt-device/constants/supported-devices.js.map +1 -1
  59. package/lib/module/modules/bt-management/services/devices/lepu/lepu.device-names.js +4 -1
  60. package/lib/module/modules/bt-management/services/devices/lepu/lepu.device-names.js.map +1 -1
  61. package/lib/module/modules/helpers/form-items/form-date-field.js +27 -4
  62. package/lib/module/modules/helpers/form-items/form-date-field.js.map +1 -1
  63. package/lib/module/modules/helpers/form-items/form-field.js +3 -2
  64. package/lib/module/modules/helpers/form-items/form-field.js.map +1 -1
  65. package/lib/module/modules/ui/components/nearby-device-prompt.js +7 -4
  66. package/lib/module/modules/ui/components/nearby-device-prompt.js.map +1 -1
  67. package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +8 -0
  68. package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -1
  69. package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-field.d.ts +20 -0
  70. package/lib/typescript/commonjs/src/modules/auth/profile/components/form-phone-field.d.ts.map +1 -0
  71. package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-choice-field.d.ts +14 -0
  72. package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-choice-field.d.ts.map +1 -0
  73. package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-field-component.d.ts.map +1 -1
  74. package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
  75. package/lib/typescript/commonjs/src/modules/auth/profile/components/profile-form.d.ts.map +1 -1
  76. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts +36 -3
  77. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
  78. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts +3 -8
  79. package/lib/typescript/commonjs/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
  80. package/lib/typescript/commonjs/src/modules/auth/profile/utils/phone.d.ts +6 -0
  81. package/lib/typescript/commonjs/src/modules/auth/profile/utils/phone.d.ts.map +1 -0
  82. package/lib/typescript/commonjs/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
  83. package/lib/typescript/commonjs/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  84. package/lib/typescript/commonjs/src/modules/auth/register/contexts/register-form-context.d.ts +6 -0
  85. package/lib/typescript/commonjs/src/modules/auth/register/contexts/register-form-context.d.ts.map +1 -1
  86. package/lib/typescript/commonjs/src/modules/auth/register/hooks/use-register-form.d.ts +5 -0
  87. package/lib/typescript/commonjs/src/modules/auth/register/hooks/use-register-form.d.ts.map +1 -1
  88. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts +16 -3
  89. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts +1 -0
  91. package/lib/typescript/commonjs/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
  92. package/lib/typescript/commonjs/src/modules/auth/register/utils/create-register-validation-schema.d.ts +10 -3
  93. package/lib/typescript/commonjs/src/modules/auth/register/utils/create-register-validation-schema.d.ts.map +1 -1
  94. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts +1 -1
  95. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
  96. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
  97. package/lib/typescript/commonjs/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  98. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts +3 -1
  99. package/lib/typescript/commonjs/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts.map +1 -1
  100. package/lib/typescript/commonjs/src/modules/helpers/form-items/form-date-field.d.ts +11 -2
  101. package/lib/typescript/commonjs/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
  102. package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts +2 -1
  103. package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
  104. package/lib/typescript/commonjs/src/modules/ui/components/nearby-device-prompt.d.ts.map +1 -1
  105. package/lib/typescript/module/src/modules/auth/default-translation.d.ts +8 -0
  106. package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -1
  107. package/lib/typescript/module/src/modules/auth/profile/components/form-phone-field.d.ts +20 -0
  108. package/lib/typescript/module/src/modules/auth/profile/components/form-phone-field.d.ts.map +1 -0
  109. package/lib/typescript/module/src/modules/auth/profile/components/profile-form-choice-field.d.ts +14 -0
  110. package/lib/typescript/module/src/modules/auth/profile/components/profile-form-choice-field.d.ts.map +1 -0
  111. package/lib/typescript/module/src/modules/auth/profile/components/profile-form-field-component.d.ts.map +1 -1
  112. package/lib/typescript/module/src/modules/auth/profile/components/profile-form-provider.d.ts.map +1 -1
  113. package/lib/typescript/module/src/modules/auth/profile/components/profile-form.d.ts.map +1 -1
  114. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts +36 -3
  115. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-field.d.ts.map +1 -1
  116. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts +3 -8
  117. package/lib/typescript/module/src/modules/auth/profile/types/profile-form-props.d.ts.map +1 -1
  118. package/lib/typescript/module/src/modules/auth/profile/utils/phone.d.ts +6 -0
  119. package/lib/typescript/module/src/modules/auth/profile/utils/phone.d.ts.map +1 -0
  120. package/lib/typescript/module/src/modules/auth/register/components/form/inputs.d.ts.map +1 -1
  121. package/lib/typescript/module/src/modules/auth/register/components/form/register-form-provider.d.ts.map +1 -1
  122. package/lib/typescript/module/src/modules/auth/register/contexts/register-form-context.d.ts +6 -0
  123. package/lib/typescript/module/src/modules/auth/register/contexts/register-form-context.d.ts.map +1 -1
  124. package/lib/typescript/module/src/modules/auth/register/hooks/use-register-form.d.ts +5 -0
  125. package/lib/typescript/module/src/modules/auth/register/hooks/use-register-form.d.ts.map +1 -1
  126. package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts +16 -3
  127. package/lib/typescript/module/src/modules/auth/register/types/register-form-props.d.ts.map +1 -1
  128. package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts +1 -0
  129. package/lib/typescript/module/src/modules/auth/register/types/register-form-values.d.ts.map +1 -1
  130. package/lib/typescript/module/src/modules/auth/register/utils/create-register-validation-schema.d.ts +10 -3
  131. package/lib/typescript/module/src/modules/auth/register/utils/create-register-validation-schema.d.ts.map +1 -1
  132. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts +1 -1
  133. package/lib/typescript/module/src/modules/bt-device/constants/supported-device-catalog-entries.d.ts.map +1 -1
  134. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts +1 -1
  135. package/lib/typescript/module/src/modules/bt-device/constants/supported-devices.d.ts.map +1 -1
  136. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts +3 -1
  137. package/lib/typescript/module/src/modules/bt-management/services/devices/lepu/lepu.device-names.d.ts.map +1 -1
  138. package/lib/typescript/module/src/modules/helpers/form-items/form-date-field.d.ts +11 -2
  139. package/lib/typescript/module/src/modules/helpers/form-items/form-date-field.d.ts.map +1 -1
  140. package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts +2 -1
  141. package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
  142. package/lib/typescript/module/src/modules/ui/components/nearby-device-prompt.d.ts.map +1 -1
  143. package/package.json +4 -2
@@ -2,5 +2,10 @@ export declare const useRegisterForm: () => import("formik").FormikSharedConfig<
2
2
  submitForm: () => Promise<any>;
3
3
  } & Pick<import("formik").FormikConfig<import("..").RegisterFormValues>, "validate" | "validationSchema"> & {
4
4
  defaultValues?: Partial<Omit<import("..").RegisterFormValues, "submit">>;
5
+ nameField?: import("../types/register-form-props").RegisterFormProps["nameField"];
6
+ toRegisterNames?: (fullName: string) => {
7
+ name: string;
8
+ surname: string;
9
+ };
5
10
  };
6
11
  //# sourceMappingURL=use-register-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-register-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/hooks/use-register-form.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;CAU3B,CAAC"}
1
+ {"version":3,"file":"use-register-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/hooks/use-register-form.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;CAU3B,CAAC"}
@@ -3,7 +3,7 @@ import { FormikHelpers } from "formik";
3
3
  import * as Yup from "yup";
4
4
  import type { StyleProp, ViewStyle } from "react-native";
5
5
  import { RegisterFormValues } from "./register-form-values";
6
- export type RegisterFormProps = {
6
+ type RegisterFormBaseProps = {
7
7
  style?: StyleProp<ViewStyle>;
8
8
  customValidations?: {
9
9
  [key in keyof RegisterFormValues]?: Yup.StringSchema | ((existingRule: Yup.StringSchema) => Yup.StringSchema);
@@ -13,7 +13,18 @@ export type RegisterFormProps = {
13
13
  children: React.ReactNode;
14
14
  tenantCode: string;
15
15
  continueAsPatientToken?: string;
16
- } & ({
16
+ };
17
+ type RegisterNameFieldProps = {
18
+ nameField?: "split";
19
+ toRegisterNames?: never;
20
+ } | {
21
+ nameField: "single";
22
+ toRegisterNames: (fullName: string) => {
23
+ name: string;
24
+ surname: string;
25
+ };
26
+ };
27
+ type RegisterFormHandlers = {
17
28
  onSuccess?: undefined;
18
29
  onError?: undefined;
19
30
  onNextStep?: undefined;
@@ -23,5 +34,7 @@ export type RegisterFormProps = {
23
34
  onSuccess?: (values: AuthResponse) => void;
24
35
  onError?: (error: Error) => void;
25
36
  onNextStep?: (step: ClinicianInviteStep) => void;
26
- });
37
+ };
38
+ export type RegisterFormProps = RegisterFormBaseProps & RegisterNameFieldProps & RegisterFormHandlers;
39
+ export {};
27
40
  //# sourceMappingURL=register-form-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB,CAAC,EAAE;SACjB,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAC9B,GAAG,CAAC,YAAY,GAChB,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,YAAY,CAAC;KAC3D,CAAC;IACF,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,GAAG,CACA;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,kBAAkB,EAC1B,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,KAC7C,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,GACD;IACE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD,CACJ,CAAC"}
1
+ {"version":3,"file":"register-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB,CAAC,EAAE;SACjB,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAC9B,GAAG,CAAC,YAAY,GAChB,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,YAAY,CAAC;KAC3D,CAAC;IACF,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,KAAK,sBAAsB,GACvB;IACE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,SAAS,EAAE,QAAQ,CAAC;IACpB,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QACrC,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEN,KAAK,oBAAoB,GACrB;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,kBAAkB,EAC1B,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,KAC7C,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,GACD;IACE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GACnD,sBAAsB,GACtB,oBAAoB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { RegisterBody } from "@ovok/core";
2
2
  export type RegisterFormValues = Omit<RegisterBody, "tenantCode"> & {
3
3
  submit: string;
4
+ fullName?: string;
4
5
  };
5
6
  //# sourceMappingURL=register-form-values.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-form-values.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG;IAClE,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"register-form-values.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -3,16 +3,23 @@ import { RegisterFormProps } from "../types/register-form-props";
3
3
  type CreateRegisterValidationSchemaProps = {
4
4
  customValidations?: RegisterFormProps["customValidations"];
5
5
  disablePasswordConfirm?: boolean;
6
+ singleName?: boolean;
7
+ toRegisterNames?: (fullName: string) => {
8
+ name: string;
9
+ surname: string;
10
+ };
6
11
  };
7
- export declare const createRegisterValidationSchema: ({ customValidations, disablePasswordConfirm, }: CreateRegisterValidationSchemaProps) => Yup.ObjectSchema<{
8
- name: string | undefined;
9
- surname: string | undefined;
12
+ export declare const createRegisterValidationSchema: ({ customValidations, disablePasswordConfirm, singleName, toRegisterNames, }: CreateRegisterValidationSchemaProps) => Yup.ObjectSchema<{
13
+ name: Yup.Maybe<string | undefined>;
14
+ surname: Yup.Maybe<string | undefined>;
15
+ fullName: Yup.Maybe<string | undefined>;
10
16
  email: string | undefined;
11
17
  password: string | undefined;
12
18
  passwordConfirm: string | undefined;
13
19
  }, Yup.AnyObject, {
14
20
  name: undefined;
15
21
  surname: undefined;
22
+ fullName: undefined;
16
23
  email: undefined;
17
24
  password: undefined;
18
25
  passwordConfirm: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-register-validation-schema.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/utils/create-register-validation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAIjE,KAAK,mCAAmC,GAAG;IACzC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,gDAG5C,mCAAmC;;;;;;;;;;;;MA0DrC,CAAC"}
1
+ {"version":3,"file":"create-register-validation-schema.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/utils/create-register-validation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAIjE,KAAK,mCAAmC,GAAG;IACzC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,6EAK5C,mCAAmC;;;;;;;;;;;;;;MA6FrC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { SupportedDevice } from "./supported-devices";
2
- export declare const additionalSupportedDevices: readonly [SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, ...SupportedDevice[]];
2
+ export declare const additionalSupportedDevices: readonly [SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, ...SupportedDevice[]];
3
3
  //# sourceMappingURL=supported-device-catalog-entries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supported-device-catalog-entries.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-device-catalog-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA6H3D,eAAO,MAAM,0BAA0B,8PA0GQ,CAAC"}
1
+ {"version":3,"file":"supported-device-catalog-entries.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-device-catalog-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA8H3D,eAAO,MAAM,0BAA0B,6OAkGQ,CAAC"}
@@ -211,7 +211,7 @@ declare const Devices: readonly [{
211
211
  readonly logo: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBpZD0ibG9nbyIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMzYwIDE0NCI+CiAgPGRlZnM+CiAgICA8c3R5bGU+CiAgICAgIC5jbHMtMSB7CiAgICAgICAgZmlsbDogI2ZmZjsKICAgICAgfQoKICAgICAgLmNscy0yIHsKICAgICAgICBmaWxsOiAjMDA4MmZjOwogICAgICB9CgogICAgICAuY2xzLTIsIC5jbHMtMyB7CiAgICAgICAgZmlsbC1ydWxlOiBldmVub2RkOwogICAgICB9CiAgICA8L3N0eWxlPgogIDwvZGVmcz4KICA8ZyBpZD0iQmx1ZXRvb3RoIj4KICAgIDxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTk0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uMjQsMS45NS0xMC41OCw0Ljg4di0xOS4wNGgtOS4xMnY1OC43Nmg5LjEyWiIvPgogIDwvZz4KICA8ZyBpZD0iQnVnIj4KICAgIDxlbGxpcHNlIGNsYXNzPSJjbHMtMSIgY3g9IjM4LjQxIiBjeT0iNzEuNzgiIHJ4PSIyNC4zMSIgcnk9IjQwLjIyIi8+CiAgICA8cGF0aCBpZD0iQnVnLTIiIGRhdGEtbmFtZT0iQnVnIiBjbGFzcz0iY2xzLTIiIGQ9Ik00MS44Miw1MC42MWw3LjA0LDcuMDQtNy4wMyw3LjAzdi0xNC4wN2gwWk00MS44Miw5My43MWw3LjA0LTcuMDQtNy4wMy03LjAzdjE0LjA3aDBaTTM0LjMxLDcyLjE2bC0xNS4yMi0xNS4yNiw0LjQxLTQuNDEsMTIuMTMsMTIuMTN2LTI5LjA2bDIyLjA1LDIyLjA1LTE0LjU2LDE0LjU2LDE0LjU2LDE0LjU2LTIyLjA1LDIyLjA1di0yOS4wNmwtMTIuMTMsMTIuMTMtNC40MS00LjQxLDE1LjIyLTE1LjI2aDBaTTM4LjM5LDExNC43M2MxOC41OSwwLDMxLjQtOC44MywzMS40LTQyLjU3cy0xMi44MS00Mi41Ny0zMS40LTM0LjU3UzYuOTgsMzguNDIsNi45OCw3Mi4xNnMxMi44Miw0Mi41NywzMS40MSw0Mi41N2gwWiIvPgogIDwvZz4KPC9zdmc+";
212
212
  readonly creditsForImage: "Bluetooth SIG official brand assets: https://www.bluetooth.com/media/";
213
213
  readonly standardProfile: true;
214
- }, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, ...SupportedDevice[]];
214
+ }, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, ...SupportedDevice[]];
215
215
  /** One joined catalog for apps that need names, artwork and ready-made accept-list entries. */
216
216
  declare const supportedDevices: readonly SupportedDeviceDefinition[];
217
217
  declare const SUPPORTED_DEVICES: readonly SupportedDeviceDefinition[];
@@ -1 +1 @@
1
- {"version":3,"file":"supported-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-devices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AA8FhF,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,IAAI,CAAC;CACxB,CAAC;AAEF,KAAK,yBAAyB,GAAG,eAAe,GAAG;IACjD,EAAE,EAAE,MAAM,CAAC;IAEX,4DAA4D;IAC5D,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;IAC3C,gBAAgB,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAeF;;;;;;;GAOG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qPAuNkC,CAAC;AAwiBhD,+FAA+F;AAC/F,QAAA,MAAM,gBAAgB,EAAE,SAAS,yBAAyB,EAUH,CAAC;AAExD,QAAA,MAAM,iBAAiB,sCAAmB,CAAC;AAK3C,iFAAiF;AACjF,QAAA,MAAM,0BAA0B,EAAE,SAAS,cAAc,EAMxD,CAAC;AAEF,OAAO,EACL,OAAO,EACP,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,GACjB,CAAC;AACF,YAAY,EAAE,eAAe,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"supported-devices.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-devices.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AA8FhF,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,IAAI,CAAC;CACxB,CAAC;AAEF,KAAK,yBAAyB,GAAG,eAAe,GAAG;IACjD,EAAE,EAAE,MAAM,CAAC;IAEX,4DAA4D;IAC5D,eAAe,EAAE,SAAS,cAAc,EAAE,CAAC;IAC3C,gBAAgB,EAAE,SAAS,kBAAkB,EAAE,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAeF;;;;;;;GAOG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oOAuNkC,CAAC;AAuiBhD,+FAA+F;AAC/F,QAAA,MAAM,gBAAgB,EAAE,SAAS,yBAAyB,EAoBH,CAAC;AAExD,QAAA,MAAM,iBAAiB,sCAAmB,CAAC;AAK3C,iFAAiF;AACjF,QAAA,MAAM,0BAA0B,EAAE,SAAS,cAAc,EAMxD,CAAC;AAEF,OAAO,EACL,OAAO,EACP,0BAA0B,EAC1B,iBAAiB,EACjB,gBAAgB,GACjB,CAAC;AACF,YAAY,EAAE,eAAe,EAAE,yBAAyB,EAAE,CAAC"}
@@ -22,5 +22,7 @@ declare const LEPU_DEVICE_NAMES: readonly string[];
22
22
  declare const LEPU_FIRST_WORD_DEVICE_NAMES: readonly string[];
23
23
  /** Fetal-doppler and massager names from the vendor vocabulary, kept out of the SDK catalog. */
24
24
  declare const LEPU_CATALOG_EXCLUDED_DEVICE_NAMES: readonly string[];
25
- export { LEPU_CATALOG_EXCLUDED_DEVICE_NAMES, LEPU_DEVICE_NAMES, LEPU_FIRST_WORD_DEVICE_NAMES, };
25
+ /** Advertisement aliases that identify a product but are not customer-facing model names. */
26
+ declare const LEPU_CATALOG_HIDDEN_DEVICE_NAMES: readonly string[];
27
+ export { LEPU_CATALOG_EXCLUDED_DEVICE_NAMES, LEPU_CATALOG_HIDDEN_DEVICE_NAMES, LEPU_DEVICE_NAMES, LEPU_FIRST_WORD_DEVICE_NAMES, };
26
28
  //# sourceMappingURL=lepu.device-names.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lepu.device-names.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.device-names.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,iBAAiB,EAAE,SAAS,MAAM,EA4OvC,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,4BAA4B,EAAE,SAAS,MAAM,EAqClD,CAAC;AAEF,gGAAgG;AAChG,QAAA,MAAM,kCAAkC,EAAE,SAAS,MAAM,EAGxD,CAAC;AAEF,OAAO,EACL,kCAAkC,EAClC,iBAAiB,EACjB,4BAA4B,GAC7B,CAAC"}
1
+ {"version":3,"file":"lepu.device-names.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/bt-management/services/devices/lepu/lepu.device-names.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,QAAA,MAAM,iBAAiB,EAAE,SAAS,MAAM,EA4OvC,CAAC;AAEF,gFAAgF;AAChF,QAAA,MAAM,4BAA4B,EAAE,SAAS,MAAM,EAqClD,CAAC;AAEF,gGAAgG;AAChG,QAAA,MAAM,kCAAkC,EAAE,SAAS,MAAM,EAGxD,CAAC;AAEF,6FAA6F;AAC7F,QAAA,MAAM,gCAAgC,EAAE,SAAS,MAAM,EAAiB,CAAC;AAEzE,OAAO,EACL,kCAAkC,EAClC,gCAAgC,EAChC,iBAAiB,EACjB,4BAA4B,GAC7B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { type ViewStyle, type TextStyle } from "react-native";
3
+ import DateTimePickerModal from "react-native-modal-datetime-picker";
3
4
  interface FormDateFieldProps {
4
5
  name: string;
5
6
  context: React.Context<any>;
@@ -8,7 +9,15 @@ interface FormDateFieldProps {
8
9
  containerStyle?: ViewStyle;
9
10
  labelStyle?: TextStyle;
10
11
  mode?: "date" | "time" | "datetime";
12
+ initialDate?: Date;
13
+ minimumDate?: Date;
14
+ maximumDate?: Date;
15
+ display?: React.ComponentProps<typeof DateTimePickerModal>["display"];
16
+ locale?: string;
17
+ formatValue?: (value: string) => string;
18
+ disabled?: boolean;
11
19
  }
12
- export declare const FormDateField: React.MemoExoticComponent<({ name, context, label, testID, containerStyle, mode, }: FormDateFieldProps) => React.JSX.Element>;
13
- export {};
20
+ declare const parseDatePickerValue: (value: string, fallback: Date) => Date;
21
+ declare const FormDateField: React.MemoExoticComponent<({ name, context, label, testID, containerStyle, mode, initialDate, minimumDate, maximumDate, display, locale, formatValue, disabled, }: FormDateFieldProps) => React.JSX.Element>;
22
+ export { FormDateField, parseDatePickerValue };
14
23
  //# sourceMappingURL=form-date-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-date-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-date-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAMtB,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;CACrC;AAED,eAAO,MAAM,aAAa,sFAQrB,kBAAkB,uBAoEtB,CAAC"}
1
+ {"version":3,"file":"form-date-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-date-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AACtB,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AAKrE,UAAU,kBAAkB;IAC1B,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,oBAAoB,GAAI,OAAO,MAAM,EAAE,UAAU,IAAI,SAY1D,CAAC;AAEF,QAAA,MAAM,aAAa,qKAed,kBAAkB,uBA+EtB,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,CAAC"}
@@ -8,8 +8,9 @@ interface FormFieldProps extends Omit<TextInputProps, "onChangeText" | "value" |
8
8
  inputRef?: React.Ref<{
9
9
  focus: () => void;
10
10
  }>;
11
+ onChangeText?: (value: string) => void;
11
12
  testID?: string;
12
13
  }
13
- export declare const FormField: React.MemoExoticComponent<({ name, context, containerStyle, inputRef, testID, ...props }: FormFieldProps) => React.JSX.Element>;
14
+ export declare const FormField: React.MemoExoticComponent<({ name, context, containerStyle, inputRef, testID, onChangeText, ...props }: FormFieldProps) => React.JSX.Element>;
14
15
  export {};
15
16
  //# sourceMappingURL=form-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIhF,UAAU,cACR,SAAQ,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,GAAG,QAAQ,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;IAE5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,4FAQjB,cAAc,uBAoDlB,CAAC"}
1
+ {"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/helpers/form-items/form-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAyB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAIhF,UAAU,cACR,SAAQ,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,GAAG,QAAQ,CAAC;IACjE,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC;QAAE,KAAK,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,0GASjB,cAAc,uBAoDlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"nearby-device-prompt.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/ui/components/nearby-device-prompt.tsx"],"names":[],"mappings":"AAYA,OAAO,EACL,mBAAmB,EACnB,aAAa,EAGd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAA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,MAAM,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,kBAAkB,GAAI,6HAYhC,uBAAuB,gCA6GzB,CAAC"}
@@ -8,12 +8,20 @@ export declare const defaultTranslation: {
8
8
  delete: string;
9
9
  };
10
10
  profile: {
11
+ form: {
12
+ phone: {
13
+ country: string;
14
+ invalid: string;
15
+ searchCountry: string;
16
+ };
17
+ };
11
18
  save: string;
12
19
  };
13
20
  register: {
14
21
  "already-have-account": string;
15
22
  button: string;
16
23
  name: string;
24
+ "full-name": string;
17
25
  "or-register-with": string;
18
26
  "password-confirm": string;
19
27
  subtitle: string;
@@ -1 +1 @@
1
- {"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmD9B,CAAC"}
1
+ {"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D9B,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type CountryCode } from "libphonenumber-js";
2
+ import * as React from "react";
3
+ type PhoneCountry = {
4
+ label: string;
5
+ value: CountryCode;
6
+ };
7
+ type CountryName = (code: CountryCode, language: string) => string;
8
+ declare const getPhoneCountries: (language: string, countryName?: CountryName) => PhoneCountry[];
9
+ type FormPhoneFieldProps = {
10
+ name: string;
11
+ fieldName: string;
12
+ label: string;
13
+ defaultCountry: CountryCode;
14
+ countryName?: CountryName;
15
+ disabled?: boolean;
16
+ testID?: string;
17
+ };
18
+ declare const FormPhoneField: ({ name, fieldName, label, defaultCountry, countryName, disabled, testID, }: FormPhoneFieldProps) => React.JSX.Element;
19
+ export { FormPhoneField, getPhoneCountries };
20
+ //# sourceMappingURL=form-phone-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-phone-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/form-phone-field.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,WAAW,CAAC;CACpB,CAAC;AAEF,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;AAanE,QAAA,MAAM,iBAAiB,GACrB,UAAU,MAAM,EAChB,cAAc,WAAW,KACxB,YAAY,EA2Bd,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,QAAA,MAAM,cAAc,GAAI,4EAQrB,mBAAmB,sBA4IrB,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ type ProfileFormChoiceFieldProps = {
3
+ name: string;
4
+ label: string;
5
+ options: {
6
+ label: string;
7
+ value: string;
8
+ }[];
9
+ disabled?: boolean;
10
+ testID?: string;
11
+ };
12
+ export declare const ProfileFormChoiceField: ({ name, label, options, disabled, testID, }: ProfileFormChoiceFieldProps) => React.JSX.Element;
13
+ export {};
14
+ //# sourceMappingURL=profile-form-choice-field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-form-choice-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-choice-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,6CAMpC,2BAA2B,sBAmC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"profile-form-field-component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-field-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,UAAU,8BAA8B;IACtC,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,CAsC/B,CAAC"}
1
+ {"version":3,"file":"profile-form-field-component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-field-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAK/D,UAAU,8BAA8B;IACtC,KAAK,EAAE,gBAAgB,CAAC;CACzB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAC9C,8BAA8B,CA8E/B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"profile-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAG/D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACxC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAsG1C,CAAC"}
1
+ {"version":3,"file":"profile-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAQ/D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CACxC,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CA4J1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"profile-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,eAAO,MAAM,WAAW,GAAI,4BAIzB,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,gCAsCpC,CAAC"}
1
+ {"version":3,"file":"profile-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/components/profile-form.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,eAAO,MAAM,WAAW,GAAI,4BAIzB,IAAI,CAAC,gBAAgB,EAAE,UAAU,CAAC,gCAwCpC,CAAC"}
@@ -1,12 +1,26 @@
1
+ import DateTimePickerModal from "react-native-modal-datetime-picker";
1
2
  import * as Yup from "yup";
2
- export type ProfileFormField = {
3
+ import type { Patient } from "@medplum/fhirtypes";
4
+ import type { PatchOperation } from "@ovok/core";
5
+ import type { CountryCode } from "libphonenumber-js";
6
+ import type { ComponentProps } from "react";
7
+ import type { TextInputProps } from "react-native-paper";
8
+ type ProfileFormFieldBase = {
3
9
  name: string;
4
10
  label: string;
5
11
  value: string;
6
12
  validation?: Yup.Schema<string | undefined>;
7
13
  disabled?: boolean;
8
14
  testID?: string;
9
- } & ({
15
+ toPatch?: (value: string, patient: Patient) => PatchOperation[];
16
+ };
17
+ type TextInputFieldProps = Omit<TextInputProps, "value" | "onChangeText" | "testID">;
18
+ type DateFieldProps = Pick<ComponentProps<typeof DateTimePickerModal>, "locale" | "minimumDate" | "maximumDate" | "display"> & {
19
+ mode?: "date" | "time" | "datetime";
20
+ initialDate?: Date;
21
+ formatValue?: (value: string) => string;
22
+ };
23
+ export type ProfileFormField = ProfileFormFieldBase & ({
10
24
  type: "select";
11
25
  options: {
12
26
  label: string;
@@ -14,8 +28,27 @@ export type ProfileFormField = {
14
28
  }[];
15
29
  } | {
16
30
  type: "date";
17
- mode?: "date" | "time" | "datetime";
31
+ mode?: DateFieldProps["mode"];
32
+ initialDate?: DateFieldProps["initialDate"];
33
+ minimumDate?: DateFieldProps["minimumDate"];
34
+ maximumDate?: DateFieldProps["maximumDate"];
35
+ locale?: DateFieldProps["locale"];
36
+ display?: DateFieldProps["display"];
37
+ formatValue?: DateFieldProps["formatValue"];
18
38
  } | {
19
39
  type: "text";
40
+ keyboardType?: TextInputProps["keyboardType"];
41
+ inputProps?: TextInputFieldProps;
42
+ } | {
43
+ type: "choice";
44
+ options: {
45
+ label: string;
46
+ value: string;
47
+ }[];
48
+ } | {
49
+ type: "phone";
50
+ defaultCountry: CountryCode;
51
+ countryName?: (code: CountryCode, language: string) => string;
20
52
  });
53
+ export {};
21
54
  //# sourceMappingURL=profile-form-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile-form-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-field.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,CACA;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;CACrC,GACD;IACE,IAAI,EAAE,MAAM,CAAC;CACd,CACJ,CAAC"}
1
+ {"version":3,"file":"profile-form-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-field.ts"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAA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EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;CAC7C,GACD;IACE,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC,GACD;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE;QACP,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;KACf,EAAE,CAAC;CACL,GACD;IACE,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/D,CACJ,CAAC"}
@@ -7,12 +7,7 @@ export type ProfileFormProps = {
7
7
  fields: ProfileFormField[];
8
8
  style?: StyleProp<ViewStyle>;
9
9
  testID?: string;
10
- onSubmit?: (values: ProfileFormValues, formikHelpers: FormikHelpers<ProfileFormValues>) => Promise<void>;
11
- } & ({
12
- onSubmit?: undefined;
13
- onSuccess?: (response: Patient) => void;
14
- } | {
15
- onSuccess?: undefined;
16
- onSubmit?: (values: ProfileFormValues, formikHelpers: FormikHelpers<ProfileFormValues>) => void;
17
- });
10
+ onSuccess?: (response: Patient, values: ProfileFormValues) => void;
11
+ onSubmit?: (values: ProfileFormValues, formikHelpers: FormikHelpers<ProfileFormValues>) => Promise<void> | void;
12
+ };
18
13
  //# sourceMappingURL=profile-form-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAC5C,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,GAAG,CACA;IACE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC,GACD;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAC5C,IAAI,CAAC;CACX,CACJ,CAAC"}
1
+ {"version":3,"file":"profile-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/types/profile-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAE3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACnE,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,iBAAiB,EACzB,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,KAC5C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type CountryCode } from "libphonenumber-js";
2
+ declare const phoneCountryFieldName: (name: string) => string;
3
+ declare const toPhoneE164: (value: string, country: CountryCode) => string;
4
+ declare const isPhoneValidForCountry: (value: string, country: CountryCode) => boolean;
5
+ export { isPhoneValidForCountry, phoneCountryFieldName, toPhoneE164 };
6
+ //# sourceMappingURL=phone.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/profile/utils/phone.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAC;AAE3B,QAAA,MAAM,qBAAqB,GAAI,MAAM,MAAM,WACqC,CAAC;AAEjF,QAAA,MAAM,WAAW,GAAI,OAAO,MAAM,EAAE,SAAS,WAAW,WAoBvD,CAAC;AAEF,QAAA,MAAM,sBAAsB,GAAI,OAAO,MAAM,EAAE,SAAS,WAAW,YAIlE,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,WAAW,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,sBA4KpE,CAAC"}
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/inputs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,+BAA+B,eAAe,sBAiOpE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CACzC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CA4H3C,CAAC"}
1
+ {"version":3,"file":"register-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/modules/auth/register/components/form/register-form-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AASpE,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CACzC,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAsJ3C,CAAC"}
@@ -1,8 +1,14 @@
1
1
  import { FormikContextType } from "formik";
2
2
  import * as React from "react";
3
+ import type { RegisterFormProps } from "../types/register-form-props";
3
4
  import { RegisterFormValues } from "../types/register-form-values";
4
5
  type RegisterFormContextType = FormikContextType<RegisterFormValues> & {
5
6
  defaultValues?: Partial<Omit<RegisterFormValues, "submit">>;
7
+ nameField?: RegisterFormProps["nameField"];
8
+ toRegisterNames?: (fullName: string) => {
9
+ name: string;
10
+ surname: string;
11
+ };
6
12
  };
7
13
  export declare const RegisterFormContext: React.Context<RegisterFormContextType | undefined>;
8
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"register-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/contexts/register-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,KAAK,uBAAuB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG;IACrE,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,oDAEpB,CAAC"}
1
+ {"version":3,"file":"register-form-context.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/contexts/register-form-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE,KAAK,uBAAuB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,GAAG;IACrE,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC5D,SAAS,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC3C,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,mBAAmB,oDAEpB,CAAC"}
@@ -2,5 +2,10 @@ export declare const useRegisterForm: () => import("formik").FormikSharedConfig<
2
2
  submitForm: () => Promise<any>;
3
3
  } & Pick<import("formik").FormikConfig<import("..").RegisterFormValues>, "validate" | "validationSchema"> & {
4
4
  defaultValues?: Partial<Omit<import("..").RegisterFormValues, "submit">>;
5
+ nameField?: import("../types/register-form-props").RegisterFormProps["nameField"];
6
+ toRegisterNames?: (fullName: string) => {
7
+ name: string;
8
+ surname: string;
9
+ };
5
10
  };
6
11
  //# sourceMappingURL=use-register-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-register-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/hooks/use-register-form.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;CAU3B,CAAC"}
1
+ {"version":3,"file":"use-register-form.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/hooks/use-register-form.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe;;;;;;;;;CAU3B,CAAC"}
@@ -3,7 +3,7 @@ import { FormikHelpers } from "formik";
3
3
  import * as Yup from "yup";
4
4
  import type { StyleProp, ViewStyle } from "react-native";
5
5
  import { RegisterFormValues } from "./register-form-values";
6
- export type RegisterFormProps = {
6
+ type RegisterFormBaseProps = {
7
7
  style?: StyleProp<ViewStyle>;
8
8
  customValidations?: {
9
9
  [key in keyof RegisterFormValues]?: Yup.StringSchema | ((existingRule: Yup.StringSchema) => Yup.StringSchema);
@@ -13,7 +13,18 @@ export type RegisterFormProps = {
13
13
  children: React.ReactNode;
14
14
  tenantCode: string;
15
15
  continueAsPatientToken?: string;
16
- } & ({
16
+ };
17
+ type RegisterNameFieldProps = {
18
+ nameField?: "split";
19
+ toRegisterNames?: never;
20
+ } | {
21
+ nameField: "single";
22
+ toRegisterNames: (fullName: string) => {
23
+ name: string;
24
+ surname: string;
25
+ };
26
+ };
27
+ type RegisterFormHandlers = {
17
28
  onSuccess?: undefined;
18
29
  onError?: undefined;
19
30
  onNextStep?: undefined;
@@ -23,5 +34,7 @@ export type RegisterFormProps = {
23
34
  onSuccess?: (values: AuthResponse) => void;
24
35
  onError?: (error: Error) => void;
25
36
  onNextStep?: (step: ClinicianInviteStep) => void;
26
- });
37
+ };
38
+ export type RegisterFormProps = RegisterFormBaseProps & RegisterNameFieldProps & RegisterFormHandlers;
39
+ export {};
27
40
  //# sourceMappingURL=register-form-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB,CAAC,EAAE;SACjB,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAC9B,GAAG,CAAC,YAAY,GAChB,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,YAAY,CAAC;KAC3D,CAAC;IACF,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,GAAG,CACA;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,kBAAkB,EAC1B,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,KAC7C,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,GACD;IACE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD,CACJ,CAAC"}
1
+ {"version":3,"file":"register-form-props.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,KAAK,qBAAqB,GAAG;IAC3B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,iBAAiB,CAAC,EAAE;SACjB,GAAG,IAAI,MAAM,kBAAkB,CAAC,CAAC,EAC9B,GAAG,CAAC,YAAY,GAChB,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,YAAY,KAAK,GAAG,CAAC,YAAY,CAAC;KAC3D,CAAC;IACF,aAAa,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC,CAAC;IAC5D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC,CAAC;AAEF,KAAK,sBAAsB,GACvB;IACE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,SAAS,EAAE,QAAQ,CAAC;IACpB,eAAe,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QACrC,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEN,KAAK,oBAAoB,GACrB;IACE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,kBAAkB,EAC1B,aAAa,EAAE,aAAa,CAAC,kBAAkB,CAAC,KAC7C,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB,GACD;IACE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IAC3C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAClD,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,GACnD,sBAAsB,GACtB,oBAAoB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { RegisterBody } from "@ovok/core";
2
2
  export type RegisterFormValues = Omit<RegisterBody, "tenantCode"> & {
3
3
  submit: string;
4
+ fullName?: string;
4
5
  };
5
6
  //# sourceMappingURL=register-form-values.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-form-values.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG;IAClE,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"register-form-values.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/types/register-form-values.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG;IAClE,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -3,16 +3,23 @@ import { RegisterFormProps } from "../types/register-form-props";
3
3
  type CreateRegisterValidationSchemaProps = {
4
4
  customValidations?: RegisterFormProps["customValidations"];
5
5
  disablePasswordConfirm?: boolean;
6
+ singleName?: boolean;
7
+ toRegisterNames?: (fullName: string) => {
8
+ name: string;
9
+ surname: string;
10
+ };
6
11
  };
7
- export declare const createRegisterValidationSchema: ({ customValidations, disablePasswordConfirm, }: CreateRegisterValidationSchemaProps) => Yup.ObjectSchema<{
8
- name: string | undefined;
9
- surname: string | undefined;
12
+ export declare const createRegisterValidationSchema: ({ customValidations, disablePasswordConfirm, singleName, toRegisterNames, }: CreateRegisterValidationSchemaProps) => Yup.ObjectSchema<{
13
+ name: Yup.Maybe<string | undefined>;
14
+ surname: Yup.Maybe<string | undefined>;
15
+ fullName: Yup.Maybe<string | undefined>;
10
16
  email: string | undefined;
11
17
  password: string | undefined;
12
18
  passwordConfirm: string | undefined;
13
19
  }, Yup.AnyObject, {
14
20
  name: undefined;
15
21
  surname: undefined;
22
+ fullName: undefined;
16
23
  email: undefined;
17
24
  password: undefined;
18
25
  passwordConfirm: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"create-register-validation-schema.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/utils/create-register-validation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAIjE,KAAK,mCAAmC,GAAG;IACzC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,gDAG5C,mCAAmC;;;;;;;;;;;;MA0DrC,CAAC"}
1
+ {"version":3,"file":"create-register-validation-schema.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/auth/register/utils/create-register-validation-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAIjE,KAAK,mCAAmC,GAAG;IACzC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;IAC3D,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3E,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,6EAK5C,mCAAmC;;;;;;;;;;;;;;MA6FrC,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { SupportedDevice } from "./supported-devices";
2
- export declare const additionalSupportedDevices: readonly [SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, ...SupportedDevice[]];
2
+ export declare const additionalSupportedDevices: readonly [SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, SupportedDevice, ...SupportedDevice[]];
3
3
  //# sourceMappingURL=supported-device-catalog-entries.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supported-device-catalog-entries.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-device-catalog-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA6H3D,eAAO,MAAM,0BAA0B,8PA0GQ,CAAC"}
1
+ {"version":3,"file":"supported-device-catalog-entries.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/bt-device/constants/supported-device-catalog-entries.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA8H3D,eAAO,MAAM,0BAA0B,6OAkGQ,CAAC"}