@ovok/native 1.10.4 → 1.10.6
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/lib/commonjs/modules/auth/default-translation.js +0 -9
- package/lib/commonjs/modules/auth/default-translation.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js +1 -1
- package/lib/commonjs/modules/auth/hooks/use-delete-account.js.map +1 -1
- package/lib/commonjs/modules/auth/hooks/use-session.js +2 -0
- package/lib/commonjs/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/commonjs/modules/auth/session/logout-session.js +6 -1
- package/lib/commonjs/modules/auth/session/logout-session.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-refresh.js +7 -2
- package/lib/commonjs/modules/auth/session/session-store-refresh.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/commonjs/modules/auth/session/session-store.js +56 -28
- package/lib/commonjs/modules/auth/session/session-store.js.map +1 -1
- package/lib/commonjs/modules/helpers/form-items/form-field.js +12 -3
- package/lib/commonjs/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/README.md +26 -3
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +3 -2
- package/lib/commonjs/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js +15 -2
- package/lib/commonjs/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/default-translation.js +70 -0
- package/lib/commonjs/modules/questionnaire-response-form/default-translation.js.map +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/index.js +1 -0
- package/lib/commonjs/modules/questionnaire-response-form/index.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js +2 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -1
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +78 -0
- package/lib/commonjs/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/module/modules/auth/default-translation.js +0 -9
- package/lib/module/modules/auth/default-translation.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-delete-account.js +1 -1
- package/lib/module/modules/auth/hooks/use-delete-account.js.map +1 -1
- package/lib/module/modules/auth/hooks/use-session.js +2 -0
- package/lib/module/modules/auth/hooks/use-session.js.map +1 -1
- package/lib/module/modules/auth/session/logout-session.js +6 -1
- package/lib/module/modules/auth/session/logout-session.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-refresh.js +7 -2
- package/lib/module/modules/auth/session/session-store-refresh.js.map +1 -1
- package/lib/module/modules/auth/session/session-store-types.js.map +1 -1
- package/lib/module/modules/auth/session/session-store.js +57 -29
- package/lib/module/modules/auth/session/session-store.js.map +1 -1
- package/lib/module/modules/helpers/form-items/form-field.js +12 -3
- package/lib/module/modules/helpers/form-items/form-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/README.md +26 -3
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js +3 -2
- package/lib/module/modules/questionnaire-response-form/components/fields/questionnaire-text-field.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js +15 -2
- package/lib/module/modules/questionnaire-response-form/components/questionnaire-form-provider.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/default-translation.js +65 -0
- package/lib/module/modules/questionnaire-response-form/default-translation.js.map +1 -0
- package/lib/module/modules/questionnaire-response-form/index.js +1 -0
- package/lib/module/modules/questionnaire-response-form/index.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js +2 -1
- package/lib/module/modules/questionnaire-response-form/utils/create-answer-from-value.js.map +1 -1
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js +78 -0
- package/lib/module/modules/questionnaire-response-form/utils/questionnaire-submit-utils.js.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts +0 -9
- package/lib/typescript/commonjs/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts +4 -2
- package/lib/typescript/commonjs/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-refresh.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts +2 -0
- package/lib/typescript/commonjs/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/default-translation.d.ts +36 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/default-translation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts +1 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +3 -0
- package/lib/typescript/commonjs/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts +0 -9
- package/lib/typescript/module/src/modules/auth/default-translation.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts +2 -0
- package/lib/typescript/module/src/modules/auth/hooks/use-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts +4 -2
- package/lib/typescript/module/src/modules/auth/session/logout-session.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-refresh.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts +2 -0
- package/lib/typescript/module/src/modules/auth/session/session-store-types.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/auth/session/session-store.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/helpers/form-items/form-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/components/questionnaire-form-provider.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/default-translation.d.ts +36 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/default-translation.d.ts.map +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts +1 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/index.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/create-answer-from-value.d.ts.map +1 -1
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts +3 -0
- package/lib/typescript/module/src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.d.ts.map +1 -1
- package/package.json +18 -3
package/lib/typescript/commonjs/src/modules/questionnaire-response-form/default-translation.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const questionnaireDefaultTranslation: {
|
|
2
|
+
common: {
|
|
3
|
+
next: string;
|
|
4
|
+
no: string;
|
|
5
|
+
previous: string;
|
|
6
|
+
submit: string;
|
|
7
|
+
"try-again": string;
|
|
8
|
+
yes: string;
|
|
9
|
+
};
|
|
10
|
+
"questionnaire-form": {
|
|
11
|
+
constraints: {
|
|
12
|
+
maximum: string;
|
|
13
|
+
minimum: string;
|
|
14
|
+
step: string;
|
|
15
|
+
};
|
|
16
|
+
error: {
|
|
17
|
+
"atomic-save-required": string;
|
|
18
|
+
"extraction-failed": string;
|
|
19
|
+
"invalid-answer": string;
|
|
20
|
+
"profile-not-found": string;
|
|
21
|
+
"required-fields": string;
|
|
22
|
+
"submit-failed": string;
|
|
23
|
+
};
|
|
24
|
+
header: {
|
|
25
|
+
subtitle: string;
|
|
26
|
+
};
|
|
27
|
+
item: {
|
|
28
|
+
unsupported: string;
|
|
29
|
+
};
|
|
30
|
+
picker: {
|
|
31
|
+
increase: string;
|
|
32
|
+
decrease: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=default-translation.d.ts.map
|
package/lib/typescript/commonjs/src/modules/questionnaire-response-form/default-translation.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/questionnaire-response-form/default-translation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./default-translation";
|
|
1
2
|
export { QuestionnaireForm } from "./components/questionnaire-form";
|
|
2
3
|
export { QuestionnaireFormProvider } from "./components/questionnaire-form-provider";
|
|
3
4
|
export { QuestionnaireNavigationProvider } from "./components/questionnaire-navigation-provider";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/questionnaire-response-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,+BAA+B,E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EACL,mCAAmC,EACnC,oCAAoC,EACpC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,GACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,GACtC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-answer-from-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/create-answer-from-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"create-answer-from-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/create-answer-from-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AA6F1D,QAAA,MAAM,qBAAqB,GACzB,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,MAAM,yBAAyB,KAC9B,+BAA+B,GAAG,SAwDpC,CAAC;AAEF,QAAA,MAAM,2BAA2B,GAC/B,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,MAAM,yBAAyB,KAC9B,OAA2D,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Questionnaire, QuestionnaireResponse } from "@medplum/fhirtypes";
|
|
2
|
+
import type { OvokClient } from "@ovok/core";
|
|
2
3
|
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
3
4
|
import { QuestionnaireItemRenderer } from "../types/questionnaire-item-render-props";
|
|
4
5
|
import { ResponseValues } from "../types/response-values";
|
|
5
6
|
import { QuestionnaireConstraintResolver, QuestionnaireUnitOptionsResolver } from "./questionnaire-item-constraints";
|
|
6
7
|
export declare class QuestionnaireSubmitUtils {
|
|
8
|
+
static questionnaireHasObservationExtraction(questionnaire: Questionnaire): boolean;
|
|
9
|
+
static persistQuestionnaireResponse(client: OvokClient, response: QuestionnaireResponse, extractObservations: boolean): Promise<QuestionnaireResponse>;
|
|
7
10
|
static createQuestionnaireResponse(responses: ResponseValues, pages: ExtendedQuestionnaireItem[], questionnaire: Questionnaire, renderItem?: QuestionnaireItemRenderer, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver): QuestionnaireResponse;
|
|
8
11
|
}
|
|
9
12
|
//# sourceMappingURL=questionnaire-submit-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEb,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAoB1C,qBAAa,wBAAwB;IACnC,MAAM,CAAC,qCAAqC,CAC1C,aAAa,EAAE,aAAa,GAC3B,OAAO;WAUG,4BAA4B,CACvC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,mBAAmB,EAAE,OAAO,GAC3B,OAAO,CAAC,qBAAqB,CAAC;IA6HjC,MAAM,CAAC,2BAA2B,CAChC,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,yBAAyB,EAAE,EAClC,aAAa,EAAE,aAAa,EAC5B,UAAU,CAAC,EAAE,yBAAyB,EACtC,QAAQ,CAAC,EAAE,+BAA+B,EAC1C,mBAAmB,CAAC,EAAE,gCAAgC,GACrD,qBAAqB;CAwBzB"}
|
|
@@ -7,15 +7,6 @@ export declare const defaultTranslation: {
|
|
|
7
7
|
cancel: string;
|
|
8
8
|
delete: string;
|
|
9
9
|
};
|
|
10
|
-
"questionnaire-form": {
|
|
11
|
-
item: {
|
|
12
|
-
unsupported: string;
|
|
13
|
-
};
|
|
14
|
-
picker: {
|
|
15
|
-
increase: string;
|
|
16
|
-
decrease: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
10
|
profile: {
|
|
20
11
|
form: {
|
|
21
12
|
error: {
|
|
@@ -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
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/auth/default-translation.ts"],"names":[],"mappings":"AAEA,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0E9B,CAAC"}
|
|
@@ -4,11 +4,13 @@ type Client = ReturnType<typeof useClient>;
|
|
|
4
4
|
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
5
|
interface UseSessionResult {
|
|
6
6
|
status: SessionStatus;
|
|
7
|
+
reason?: "session-ended";
|
|
7
8
|
isAuthenticated: boolean;
|
|
8
9
|
accounts: OvokSavedAccount[];
|
|
9
10
|
profile: Profile;
|
|
10
11
|
sessions: OvokNativeSession[];
|
|
11
12
|
loading: boolean;
|
|
13
|
+
switching: boolean;
|
|
12
14
|
error?: Error;
|
|
13
15
|
refresh: () => Promise<void>;
|
|
14
16
|
refreshSessions: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/hooks/use-session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAM9D,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAC9D,UAAU,gBAAgB;IACxB,MAAM,EAAE,aAAa,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,C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;IACrC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,gGAAgG;AAChG,QAAA,MAAM,UAAU,GAAI,oDAGjB,iBAAsB,KAAG,gBAoD3B,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
interface SessionLogoutClient {
|
|
2
2
|
logout: () => Promise<void>;
|
|
3
3
|
}
|
|
4
|
+
declare const isLogoutInProgress: (client: object) => boolean;
|
|
4
5
|
/** Uses one native/provider logout path for hooks and the built-in logout control. */
|
|
5
|
-
|
|
6
|
+
declare const logoutSession: (client: SessionLogoutClient) => Promise<void>;
|
|
7
|
+
export { isLogoutInProgress, logoutSession, type SessionLogoutClient };
|
|
6
8
|
//# sourceMappingURL=logout-session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"logout-session.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/logout-session.ts"],"names":[],"mappings":"AAIA,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAKD,QAAA,MAAM,kBAAkB,GAAI,QAAQ,MAAM,KAAG,OACf,CAAC;AAE/B,sFAAsF;AACtF,QAAA,MAAM,aAAa,GAAI,QAAQ,mBAAmB,KAAG,OAAO,CAAC,IAAI,CAyBhE,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store-refresh.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-refresh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAEL,KAAK,MAAM,EAEX,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,2BAA2B,GAC/B,QAAQ,MAAM,EACd,cAAc,wBAAwB,EACtC,UAAU,MAAM,YAAY,EAC5B,QAAQ,MAAM,IAAI;+BAEsB,OAAO;;
|
|
1
|
+
{"version":3,"file":"session-store-refresh.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-refresh.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAEL,KAAK,MAAM,EAEX,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAE/B,QAAA,MAAM,2BAA2B,GAC/B,QAAQ,MAAM,EACd,cAAc,wBAAwB,EACtC,UAAU,MAAM,YAAY,EAC5B,QAAQ,MAAM,IAAI;+BAEsB,OAAO;;CAmKhD,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -4,6 +4,8 @@ type Client = ReturnType<typeof useClient>;
|
|
|
4
4
|
type Profile = Awaited<ReturnType<Client["getProfileAsync"]>>;
|
|
5
5
|
interface SessionSnapshot {
|
|
6
6
|
status: SessionStatus;
|
|
7
|
+
reason?: "session-ended";
|
|
8
|
+
switching?: boolean;
|
|
7
9
|
accounts: OvokSavedAccount[];
|
|
8
10
|
profile?: Profile;
|
|
9
11
|
sessions: OvokNativeSession[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9D,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE9D,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED,UAAU,aAAa;IACrB,gBAAgB,EAAE,MAAM,gBAAgB,EAAE,CAAC;IAC3C,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,WAAW,EAAE,MAAM,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAAC;IAChD,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,UAAU,YAAY;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAChD,OAAO,EAAE,CAAC,eAAe,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,cAAc,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAChE;AAED,QAAA,MAAM,gBAAgB,GAAI,SAAS,iBAAiB,KAAG,iBAatD,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAC5B,YAAY,EACV,MAAM,EACN,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,GACb,CAAC"}
|
|
1
|
+
{"version":3,"file":"session-store-types.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE9D,KAAK,MAAM,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAC3C,KAAK,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AAE9D,UAAU,eAAe;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,O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ACjB,gBAAgB,EAChB,OAAO,EACP,aAAa,EACb,eAAe,EACf,YAAY,GACb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,MAAM,EAEN,YAAY,EACb,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"session-store.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/auth/session/session-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,MAAM,EAEN,YAAY,EACb,MAAM,uBAAuB,CAAC;AAgL/B,QAAA,MAAM,eAAe,GAAI,QAAQ,MAAM,KAAG,YAazC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -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;IAC5C,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEvC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,SAAS,0GASjB,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,uBA+DlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-text-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAyB,MAAM,cAAc,CAAC;AAK1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAK5F,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,cAAc,CAAC,EAAE,gCAAgC,EAAE,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,+EAQpC,2BAA2B,
|
|
1
|
+
{"version":3,"file":"questionnaire-text-field.d.ts","sourceRoot":"","sources":["../../../../../../../../src/modules/questionnaire-response-form/components/fields/questionnaire-text-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAyB,MAAM,cAAc,CAAC;AAK1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,4CAA4C,CAAC;AAC1F,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAK5F,KAAK,2BAA2B,GAAG;IACjC,IAAI,EAAE,yBAAyB,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,mBAAmB,CAAC;IACnC,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,cAAc,CAAC,EAAE,gCAAgC,EAAE,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,+EAQpC,2BAA2B,sBAkG7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/components/questionnaire-form-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAS5F,eAAO,MAAM,yBAAyB,oNAajC,KAAK,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,
|
|
1
|
+
{"version":3,"file":"questionnaire-form-provider.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/components/questionnaire-form-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAS5F,eAAO,MAAM,yBAAyB,oNAajC,KAAK,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,uBA0U3D,CAAC"}
|
package/lib/typescript/module/src/modules/questionnaire-response-form/default-translation.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const questionnaireDefaultTranslation: {
|
|
2
|
+
common: {
|
|
3
|
+
next: string;
|
|
4
|
+
no: string;
|
|
5
|
+
previous: string;
|
|
6
|
+
submit: string;
|
|
7
|
+
"try-again": string;
|
|
8
|
+
yes: string;
|
|
9
|
+
};
|
|
10
|
+
"questionnaire-form": {
|
|
11
|
+
constraints: {
|
|
12
|
+
maximum: string;
|
|
13
|
+
minimum: string;
|
|
14
|
+
step: string;
|
|
15
|
+
};
|
|
16
|
+
error: {
|
|
17
|
+
"atomic-save-required": string;
|
|
18
|
+
"extraction-failed": string;
|
|
19
|
+
"invalid-answer": string;
|
|
20
|
+
"profile-not-found": string;
|
|
21
|
+
"required-fields": string;
|
|
22
|
+
"submit-failed": string;
|
|
23
|
+
};
|
|
24
|
+
header: {
|
|
25
|
+
subtitle: string;
|
|
26
|
+
};
|
|
27
|
+
item: {
|
|
28
|
+
unsupported: string;
|
|
29
|
+
};
|
|
30
|
+
picker: {
|
|
31
|
+
increase: string;
|
|
32
|
+
decrease: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=default-translation.d.ts.map
|
package/lib/typescript/module/src/modules/questionnaire-response-form/default-translation.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-translation.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/questionnaire-response-form/default-translation.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoC3C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "./default-translation";
|
|
1
2
|
export { QuestionnaireForm } from "./components/questionnaire-form";
|
|
2
3
|
export { QuestionnaireFormProvider } from "./components/questionnaire-form-provider";
|
|
3
4
|
export { QuestionnaireNavigationProvider } from "./components/questionnaire-navigation-provider";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/questionnaire-response-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AAEjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAE/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAE7F,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,YAAY,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAChG,YAAY,EAAE,oCAAoC,EAAE,MAAM,iDAAiD,CAAC;AAC5G,YAAY,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAC5F,YAAY,EACV,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,yCAAyC,CAAC;AACjD,YAAY,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,YAAY,EACV,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,GACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,GACtC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/questionnaire-response-form/index.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,gDAAgD,CAAC;AAEjG,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,4CAA4C,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAE/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAE7F,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,YAAY,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAChG,YAAY,EAAE,oCAAoC,EAAE,MAAM,iDAAiD,CAAC;AAC5G,YAAY,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAC5F,YAAY,EACV,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,yCAAyC,CAAC;AACjD,YAAY,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AACnF,YAAY,EACV,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AACzD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,GACtC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,+BAA+B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,4BAA4B,EACjC,KAAK,gCAAgC,GACtC,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-answer-from-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/create-answer-from-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"create-answer-from-value.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/create-answer-from-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,oBAAoB,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AA6F1D,QAAA,MAAM,qBAAqB,GACzB,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,MAAM,yBAAyB,KAC9B,+BAA+B,GAAG,SAwDpC,CAAC;AAEF,QAAA,MAAM,2BAA2B,GAC/B,OAAO,cAAc,CAAC,MAAM,CAAC,EAC7B,MAAM,yBAAyB,KAC9B,OAA2D,CAAC;AAE/D,OAAO,EAAE,qBAAqB,EAAE,2BAA2B,EAAE,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Questionnaire, QuestionnaireResponse } from "@medplum/fhirtypes";
|
|
2
|
+
import type { OvokClient } from "@ovok/core";
|
|
2
3
|
import { ExtendedQuestionnaireItem } from "../types/extended-questionnaire-item";
|
|
3
4
|
import { QuestionnaireItemRenderer } from "../types/questionnaire-item-render-props";
|
|
4
5
|
import { ResponseValues } from "../types/response-values";
|
|
5
6
|
import { QuestionnaireConstraintResolver, QuestionnaireUnitOptionsResolver } from "./questionnaire-item-constraints";
|
|
6
7
|
export declare class QuestionnaireSubmitUtils {
|
|
8
|
+
static questionnaireHasObservationExtraction(questionnaire: Questionnaire): boolean;
|
|
9
|
+
static persistQuestionnaireResponse(client: OvokClient, response: QuestionnaireResponse, extractObservations: boolean): Promise<QuestionnaireResponse>;
|
|
7
10
|
static createQuestionnaireResponse(responses: ResponseValues, pages: ExtendedQuestionnaireItem[], questionnaire: Questionnaire, renderItem?: QuestionnaireItemRenderer, resolver?: QuestionnaireConstraintResolver, unitOptionsResolver?: QuestionnaireUnitOptionsResolver): QuestionnaireResponse;
|
|
8
11
|
}
|
|
9
12
|
//# sourceMappingURL=questionnaire-submit-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"questionnaire-submit-utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/modules/questionnaire-response-form/utils/questionnaire-submit-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,aAAa,EAEb,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,kCAAkC,CAAC;AAoB1C,qBAAa,wBAAwB;IACnC,MAAM,CAAC,qCAAqC,CAC1C,aAAa,EAAE,aAAa,GAC3B,OAAO;WAUG,4BAA4B,CACvC,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,qBAAqB,EAC/B,mBAAmB,EAAE,OAAO,GAC3B,OAAO,CAAC,qBAAqB,CAAC;IA6HjC,MAAM,CAAC,2BAA2B,CAChC,SAAS,EAAE,cAAc,EACzB,KAAK,EAAE,yBAAyB,EAAE,EAClC,aAAa,EAAE,aAAa,EAC5B,UAAU,CAAC,EAAE,yBAAyB,EACtC,QAAQ,CAAC,EAAE,+BAA+B,EAC1C,mBAAmB,CAAC,EAAE,gCAAgC,GACrD,qBAAqB;CAwBzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovok/native",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.6",
|
|
4
4
|
"description": "React native component sdk for OVOK",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -18,6 +18,16 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"./package.json": "./package.json",
|
|
21
|
+
"./polyfills": {
|
|
22
|
+
"import": {
|
|
23
|
+
"types": "./lib/typescript/module/src/polyfills/index.d.ts",
|
|
24
|
+
"default": "./lib/module/polyfills/index.js"
|
|
25
|
+
},
|
|
26
|
+
"require": {
|
|
27
|
+
"types": "./lib/typescript/commonjs/src/polyfills/index.d.ts",
|
|
28
|
+
"default": "./lib/commonjs/polyfills/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
21
31
|
"./*": {
|
|
22
32
|
"import": {
|
|
23
33
|
"types": "./lib/typescript/module/src/modules/*/index.d.ts",
|
|
@@ -45,6 +55,11 @@
|
|
|
45
55
|
"build:doc": "tsc --project doc/tsconfig.json",
|
|
46
56
|
"docs:llms": "node scripts/generate-llms-docs.mjs",
|
|
47
57
|
"docs:api-reference": "node scripts/generate-api-reference.mjs",
|
|
58
|
+
"docs:api": "node scripts/generate-public-api.mjs",
|
|
59
|
+
"docs:api:check": "node scripts/generate-public-api.mjs --check",
|
|
60
|
+
"docs:supported-devices": "node scripts/generate-supported-devices.mjs",
|
|
61
|
+
"docs:supported-devices:check": "node scripts/generate-supported-devices.mjs --check",
|
|
62
|
+
"docs:generate": "yarn docs:api && yarn docs:api-reference && yarn docs:supported-devices && yarn docs:llms",
|
|
48
63
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
49
64
|
"clean": "del-cli lib",
|
|
50
65
|
"prepare": "bob build",
|
|
@@ -92,7 +107,7 @@
|
|
|
92
107
|
"@medplum/react-hooks": "3.2.23",
|
|
93
108
|
"@opentelemetry/api": "^1.9.1",
|
|
94
109
|
"@opentelemetry/api-logs": "^0.222.0",
|
|
95
|
-
"@ovok/core": "^0.4.
|
|
110
|
+
"@ovok/core": "^0.4.27",
|
|
96
111
|
"@react-native-community/datetimepicker": "^9.1.0",
|
|
97
112
|
"@react-native-community/netinfo": "^12.0.1",
|
|
98
113
|
"@react-native-google-signin/google-signin": "^16.1.2",
|
|
@@ -174,7 +189,7 @@
|
|
|
174
189
|
"@kingstinct/react-native-healthkit": "*",
|
|
175
190
|
"@opentelemetry/api": "^1.9.1",
|
|
176
191
|
"@opentelemetry/api-logs": "^0.222.0",
|
|
177
|
-
"@ovok/core": ">=0.4.
|
|
192
|
+
"@ovok/core": ">=0.4.27",
|
|
178
193
|
"@react-native-community/datetimepicker": "*",
|
|
179
194
|
"@react-native-community/netinfo": "*",
|
|
180
195
|
"@react-native-google-signin/google-signin": "*",
|