@opengovsg/formsg-sdk 8.0.2 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/types-v4.d.ts +6 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/types-v4.d.ts +6 -0
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { isFieldResponsesV4 } from './crypto-v3';
|
|
|
9
9
|
export { ADDRESS_SUBFIELD_KEYS, GENERIC_STRING_FIELD_TYPES, } from './constants-v4';
|
|
10
10
|
export { generateUUID } from './util/crypto';
|
|
11
11
|
export type { DecryptedContent, DecryptedContentV3, DecryptParams, DecryptParamsV3, EncryptedAttachmentContent, EncryptedAttachmentRecords, EncryptedContent, EncryptedContentV3, EncryptedFileContent, FieldType, FormField, FormFieldsV3, Keypair, PackageMode, VerificationOptions, } from './types';
|
|
12
|
-
export type { AdaptV3ToV4Options, AnswerV4, AddressAnswerV4, AttachmentAnswerV4, CheckboxAnswerV4, ChildrenAnswerV4, DecryptedContentV4, FieldResponsesV4, FieldResponseV4, FormFieldMeta, FormFieldV4, FormFieldsV4, RadioAnswerV4, ResponseProvenance, SignatureAnswerV4, StringAnswerV4, TableAnswerV4, VerifiableAnswerV4, } from './types-v4';
|
|
12
|
+
export type { AdaptV3ToV4Options, AnswerV4, AddressAnswerV4, AttachmentAnswerV4, CheckboxAnswerV4, ChildEntryV4, ChildrenAnswerV4, ChildSubFieldAnswerV4, DecryptedContentV4, FieldResponsesV4, FieldResponseV4, FormFieldMeta, FormFieldV4, FormFieldsV4, RadioAnswerV4, ResponseProvenance, SignatureAnswerV4, StringAnswerV4, TableAnswerV4, VerifiableAnswerV4, } from './types-v4';
|
|
13
13
|
/**
|
|
14
14
|
* Entrypoint into the FormSG SDK
|
|
15
15
|
*
|
package/dist/cjs/types-v4.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { DecryptParamsV3, EncryptedContent, FieldType } from './types';
|
|
|
2
2
|
export type ResponseProvenance = {
|
|
3
3
|
submittedAt?: string;
|
|
4
4
|
stepNumber?: number;
|
|
5
|
+
/**
|
|
6
|
+
* Server-stamped after the submitted answer was verified against the MyInfo
|
|
7
|
+
* hashes saved at prefill time. Never client-supplied; absent when no
|
|
8
|
+
* verification happened (e.g. user-filled child records).
|
|
9
|
+
*/
|
|
10
|
+
myinfoVerified?: boolean;
|
|
5
11
|
};
|
|
6
12
|
export type PreviousAnswer = {
|
|
7
13
|
answer: AnswerV4;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { isFieldResponsesV4 } from './crypto-v3';
|
|
|
9
9
|
export { ADDRESS_SUBFIELD_KEYS, GENERIC_STRING_FIELD_TYPES, } from './constants-v4';
|
|
10
10
|
export { generateUUID } from './util/crypto';
|
|
11
11
|
export type { DecryptedContent, DecryptedContentV3, DecryptParams, DecryptParamsV3, EncryptedAttachmentContent, EncryptedAttachmentRecords, EncryptedContent, EncryptedContentV3, EncryptedFileContent, FieldType, FormField, FormFieldsV3, Keypair, PackageMode, VerificationOptions, } from './types';
|
|
12
|
-
export type { AdaptV3ToV4Options, AnswerV4, AddressAnswerV4, AttachmentAnswerV4, CheckboxAnswerV4, ChildrenAnswerV4, DecryptedContentV4, FieldResponsesV4, FieldResponseV4, FormFieldMeta, FormFieldV4, FormFieldsV4, RadioAnswerV4, ResponseProvenance, SignatureAnswerV4, StringAnswerV4, TableAnswerV4, VerifiableAnswerV4, } from './types-v4';
|
|
12
|
+
export type { AdaptV3ToV4Options, AnswerV4, AddressAnswerV4, AttachmentAnswerV4, CheckboxAnswerV4, ChildEntryV4, ChildrenAnswerV4, ChildSubFieldAnswerV4, DecryptedContentV4, FieldResponsesV4, FieldResponseV4, FormFieldMeta, FormFieldV4, FormFieldsV4, RadioAnswerV4, ResponseProvenance, SignatureAnswerV4, StringAnswerV4, TableAnswerV4, VerifiableAnswerV4, } from './types-v4';
|
|
13
13
|
/**
|
|
14
14
|
* Entrypoint into the FormSG SDK
|
|
15
15
|
*
|
package/dist/esm/types-v4.d.ts
CHANGED
|
@@ -2,6 +2,12 @@ import { DecryptParamsV3, EncryptedContent, FieldType } from './types';
|
|
|
2
2
|
export type ResponseProvenance = {
|
|
3
3
|
submittedAt?: string;
|
|
4
4
|
stepNumber?: number;
|
|
5
|
+
/**
|
|
6
|
+
* Server-stamped after the submitted answer was verified against the MyInfo
|
|
7
|
+
* hashes saved at prefill time. Never client-supplied; absent when no
|
|
8
|
+
* verification happened (e.g. user-filled child records).
|
|
9
|
+
*/
|
|
10
|
+
myinfoVerified?: boolean;
|
|
5
11
|
};
|
|
6
12
|
export type PreviousAnswer = {
|
|
7
13
|
answer: AnswerV4;
|