@wise/dynamic-flow-client 0.2.0 → 0.3.0-beta-d45b31.38
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/package.json +34 -32
- package/build/common/api/utils.d.ts +0 -4
- package/build/common/api/utils.js +0 -13
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.d.ts +0 -11
- package/build/common/contexts/dynamicFlowContext/dynamicFlowContext.js +0 -36
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.d.ts +0 -4
- package/build/common/contexts/dynamicFlowContext/usePendingPromiseCounter.js +0 -13
- package/build/common/contexts/fetcherContext/fetcherContext.d.ts +0 -18
- package/build/common/contexts/fetcherContext/fetcherContext.js +0 -35
- package/build/common/contexts/fetcherContext/index.d.ts +0 -2
- package/build/common/contexts/fetcherContext/index.js +0 -2
- package/build/common/contexts/fetcherContext/makeFetcher.d.ts +0 -2
- package/build/common/contexts/fetcherContext/makeFetcher.js +0 -33
- package/build/common/general/index.d.ts +0 -2
- package/build/common/general/index.js +0 -22
- package/build/common/hooks/useDebouncedFunction.d.ts +0 -2
- package/build/common/hooks/useDebouncedFunction.js +0 -9
- package/build/common/hooks/useDebouncedFunction.test.d.ts +0 -1
- package/build/common/hooks/useDebouncedFunction.test.js +0 -59
- package/build/common/hooks/usePersistAsync.d.ts +0 -7
- package/build/common/hooks/usePersistAsync.js +0 -170
- package/build/common/hooks/usePolling.d.ts +0 -11
- package/build/common/hooks/usePolling.js +0 -48
- package/build/common/hooks/usePrevious.d.ts +0 -2
- package/build/common/hooks/usePrevious.js +0 -9
- package/build/common/index.d.ts +0 -4
- package/build/common/index.js +0 -4
- package/build/common/logging/index.d.ts +0 -22
- package/build/common/logging/index.js +0 -39
- package/build/common/logging/spec.d.ts +0 -1
- package/build/common/logging/spec.js +0 -45
- package/build/common/messages.d.ts +0 -8
- package/build/common/messages.js +0 -8
- package/build/common/propsValues/dateMode.d.ts +0 -4
- package/build/common/propsValues/dateMode.js +0 -4
- package/build/common/propsValues/formControlType.d.ts +0 -17
- package/build/common/propsValues/formControlType.js +0 -17
- package/build/common/propsValues/monthFormat.d.ts +0 -4
- package/build/common/propsValues/monthFormat.js +0 -4
- package/build/common/propsValues/size.d.ts +0 -7
- package/build/common/propsValues/size.js +0 -7
- package/build/common/requirements.d.ts +0 -10
- package/build/common/requirements.js +0 -50
- package/build/common/schemaTypes/schemaTypes.d.ts +0 -23
- package/build/common/schemaTypes/schemaTypes.js +0 -53
- package/build/common/schemaTypes/shouldDebounceSchema.d.ts +0 -2
- package/build/common/schemaTypes/shouldDebounceSchema.js +0 -6
- package/build/common/stepTypes/stepTypes.d.ts +0 -7
- package/build/common/stepTypes/stepTypes.js +0 -42
- package/build/common/tracking/index.d.ts +0 -15
- package/build/common/tracking/index.js +0 -33
- package/build/common/tracking/spec.d.ts +0 -1
- package/build/common/tracking/spec.js +0 -49
- package/build/common/utils/file-utils.d.ts +0 -4
- package/build/common/utils/file-utils.js +0 -45
- package/build/common/utils/generate-random-id.d.ts +0 -1
- package/build/common/utils/generate-random-id.js +0 -5
- package/build/common/utils/generate-random-id.test.d.ts +0 -1
- package/build/common/utils/generate-random-id.test.js +0 -12
- package/build/common/validation/rule-validators/index.d.ts +0 -10
- package/build/common/validation/rule-validators/index.js +0 -40
- package/build/common/validation/rule-validators/spec.d.ts +0 -1
- package/build/common/validation/rule-validators/spec.js +0 -145
- package/build/common/validation/schema-validators/index.d.ts +0 -9
- package/build/common/validation/schema-validators/index.js +0 -98
- package/build/common/validation/schema-validators/spec.d.ts +0 -1
- package/build/common/validation/schema-validators/spec.js +0 -137
- package/build/common/validation/valid-model/index.d.ts +0 -5
- package/build/common/validation/valid-model/index.js +0 -64
- package/build/common/validation/valid-model/spec.d.ts +0 -1
- package/build/common/validation/valid-model/spec.js +0 -605
- package/build/common/validation/valid-model/utils.d.ts +0 -11
- package/build/common/validation/valid-model/utils.js +0 -118
- package/build/common/validation/validation-failures/index.d.ts +0 -23
- package/build/common/validation/validation-failures/index.js +0 -140
- package/build/common/validation/validation-failures/spec.d.ts +0 -1
- package/build/common/validation/validation-failures/spec.js +0 -185
- package/build/dynamic-flow-types/Action.d.ts +0 -19
- package/build/dynamic-flow-types/Action.js +0 -1
- package/build/dynamic-flow-types/FileUploadSchema.d.ts +0 -23
- package/build/dynamic-flow-types/FileUploadSchema.js +0 -3
- package/build/dynamic-flow-types/LayoutComponent.d.ts +0 -129
- package/build/dynamic-flow-types/LayoutComponent.js +0 -1
- package/build/dynamic-flow-types/Model.d.ts +0 -12
- package/build/dynamic-flow-types/Model.js +0 -28
- package/build/dynamic-flow-types/PersistAsync.d.ts +0 -8
- package/build/dynamic-flow-types/PersistAsync.js +0 -1
- package/build/dynamic-flow-types/Polling.d.ts +0 -12
- package/build/dynamic-flow-types/Polling.js +0 -1
- package/build/dynamic-flow-types/Promotion.d.ts +0 -20
- package/build/dynamic-flow-types/Promotion.js +0 -1
- package/build/dynamic-flow-types/Schema.d.ts +0 -184
- package/build/dynamic-flow-types/Schema.js +0 -49
- package/build/dynamic-flow-types/Step.d.ts +0 -127
- package/build/dynamic-flow-types/Step.js +0 -4
- package/build/dynamic-flow-types/ValidationAsync.d.ts +0 -6
- package/build/dynamic-flow-types/ValidationAsync.js +0 -1
- package/build/dynamic-flow-types/core.d.ts +0 -29
- package/build/dynamic-flow-types/core.js +0 -1
- package/build/dynamic-flow-types/index.d.ts +0 -14
- package/build/dynamic-flow-types/index.js +0 -12
- package/build/field/Field.d.ts +0 -69
- package/build/field/Field.js +0 -311
- package/build/field/index.d.ts +0 -2
- package/build/field/index.js +0 -2
- package/build/flow/DynamicFlow.d.ts +0 -3
- package/build/flow/DynamicFlow.js +0 -368
- package/build/flow/DynamicFlowStep.d.ts +0 -8
- package/build/flow/DynamicFlowStep.js +0 -32
- package/build/flow/errorBoundary/ErrorBoundary.d.ts +0 -20
- package/build/flow/errorBoundary/ErrorBoundary.js +0 -45
- package/build/flow/errorBoundary/ErrorBoundary.messages.d.ts +0 -13
- package/build/flow/errorBoundary/ErrorBoundary.messages.js +0 -13
- package/build/flow/errorBoundary/ErrorBoundaryAlert.d.ts +0 -5
- package/build/flow/errorBoundary/ErrorBoundaryAlert.js +0 -12
- package/build/flow/errorBoundary/index.d.ts +0 -1
- package/build/flow/errorBoundary/index.js +0 -1
- package/build/flow/fixtures/components/alert.d.ts +0 -3
- package/build/flow/fixtures/components/alert.js +0 -31
- package/build/flow/fixtures/components/box.d.ts +0 -3
- package/build/flow/fixtures/components/box.js +0 -20
- package/build/flow/fixtures/components/button.d.ts +0 -3
- package/build/flow/fixtures/components/button.js +0 -65
- package/build/flow/fixtures/components/columns.d.ts +0 -3
- package/build/flow/fixtures/components/columns.js +0 -36
- package/build/flow/fixtures/components/copyable.d.ts +0 -3
- package/build/flow/fixtures/components/copyable.js +0 -22
- package/build/flow/fixtures/components/decision.d.ts +0 -3
- package/build/flow/fixtures/components/decision.js +0 -54
- package/build/flow/fixtures/components/heading.d.ts +0 -3
- package/build/flow/fixtures/components/heading.js +0 -14
- package/build/flow/fixtures/components/image.d.ts +0 -3
- package/build/flow/fixtures/components/image.js +0 -22
- package/build/flow/fixtures/components/info.d.ts +0 -3
- package/build/flow/fixtures/components/info.js +0 -17
- package/build/flow/fixtures/components/list.d.ts +0 -3
- package/build/flow/fixtures/components/list.js +0 -34
- package/build/flow/fixtures/components/loading-indicator.d.ts +0 -3
- package/build/flow/fixtures/components/loading-indicator.js +0 -16
- package/build/flow/fixtures/components/paragraph.d.ts +0 -3
- package/build/flow/fixtures/components/paragraph.js +0 -28
- package/build/flow/fixtures/components/review.d.ts +0 -3
- package/build/flow/fixtures/components/review.js +0 -60
- package/build/flow/fixtures/examples/camera-capture.d.ts +0 -3
- package/build/flow/fixtures/examples/camera-capture.js +0 -121
- package/build/flow/fixtures/examples/recipient-update.d.ts +0 -3
- package/build/flow/fixtures/examples/recipient-update.js +0 -250
- package/build/flow/fixtures/examples/recipient.d.ts +0 -3
- package/build/flow/fixtures/examples/recipient.js +0 -313
- package/build/flow/fixtures/examples/single-file-upload.d.ts +0 -3
- package/build/flow/fixtures/examples/single-file-upload.js +0 -96
- package/build/flow/fixtures/examples/step-validation-errors.d.ts +0 -3
- package/build/flow/fixtures/examples/step-validation-errors.js +0 -75
- package/build/flow/fixtures/features/action-response.d.ts +0 -3
- package/build/flow/fixtures/features/action-response.js +0 -29
- package/build/flow/fixtures/features/external.d.ts +0 -3
- package/build/flow/fixtures/features/external.js +0 -31
- package/build/flow/fixtures/features/persist-async.d.ts +0 -3
- package/build/flow/fixtures/features/persist-async.js +0 -44
- package/build/flow/fixtures/features/polling.d.ts +0 -3
- package/build/flow/fixtures/features/polling.js +0 -33
- package/build/flow/fixtures/index.d.ts +0 -42
- package/build/flow/fixtures/index.js +0 -66
- package/build/flow/fixtures/responses/action-response-final.d.ts +0 -3
- package/build/flow/fixtures/responses/action-response-final.js +0 -24
- package/build/flow/fixtures/responses/action.d.ts +0 -5
- package/build/flow/fixtures/responses/action.js +0 -2
- package/build/flow/fixtures/responses/exit.d.ts +0 -6
- package/build/flow/fixtures/responses/exit.js +0 -2
- package/build/flow/fixtures/responses/recipient-update-final.d.ts +0 -3
- package/build/flow/fixtures/responses/recipient-update-final.js +0 -24
- package/build/flow/fixtures/schemas/basic-form.d.ts +0 -3
- package/build/flow/fixtures/schemas/basic-form.js +0 -39
- package/build/flow/fixtures/schemas/number-and-integer.d.ts +0 -3
- package/build/flow/fixtures/schemas/number-and-integer.js +0 -41
- package/build/flow/fixtures/schemas/one-of.d.ts +0 -3
- package/build/flow/fixtures/schemas/one-of.js +0 -223
- package/build/flow/fixtures/schemas/string-formats.d.ts +0 -3
- package/build/flow/fixtures/schemas/string-formats.js +0 -58
- package/build/flow/index.d.ts +0 -1
- package/build/flow/index.js +0 -1
- package/build/flow/response-parsers/index.d.ts +0 -17
- package/build/flow/response-parsers/index.js +0 -112
- package/build/flow/response-parsers/spec.d.ts +0 -1
- package/build/flow/response-parsers/spec.js +0 -263
- package/build/flow/stories/EditableDynamicFlow.d.ts +0 -4
- package/build/flow/stories/EditableDynamicFlow.js +0 -61
- package/build/flow/types.d.ts +0 -77
- package/build/flow/types.js +0 -3
- package/build/flow/useDebouncedRefresh/index.d.ts +0 -1
- package/build/flow/useDebouncedRefresh/index.js +0 -1
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.d.ts +0 -5
- package/build/flow/useDebouncedRefresh/useDebouncedRefresh.js +0 -24
- package/build/flow/useDynamicFlowState.d.ts +0 -18
- package/build/flow/useDynamicFlowState.js +0 -111
- package/build/flow/useLoader.d.ts +0 -9
- package/build/flow/useLoader.js +0 -22
- package/build/formControl/FormControl.d.ts +0 -86
- package/build/formControl/FormControl.js +0 -241
- package/build/formControl/index.d.ts +0 -1
- package/build/formControl/index.js +0 -1
- package/build/formControl/types.d.ts +0 -57
- package/build/formControl/types.js +0 -1
- package/build/formControl/value-utils.d.ts +0 -9
- package/build/formControl/value-utils.js +0 -108
- package/build/i18n/cs.json +0 -8
- package/build/i18n/de.json +0 -34
- package/build/i18n/en.json +0 -38
- package/build/i18n/es.json +0 -34
- package/build/i18n/fr.json +0 -34
- package/build/i18n/hu.json +0 -34
- package/build/i18n/id.json +0 -34
- package/build/i18n/index.d.ts +0 -2
- package/build/i18n/index.js +0 -31
- package/build/i18n/it.json +0 -34
- package/build/i18n/ja.json +0 -34
- package/build/i18n/pl.json +0 -11
- package/build/i18n/pt.json +0 -34
- package/build/i18n/ro.json +0 -34
- package/build/i18n/ru.json +0 -34
- package/build/i18n/th.json +0 -34
- package/build/i18n/tr.json +0 -11
- package/build/i18n/uk.json +0 -8
- package/build/i18n/zh-CN.json +0 -34
- package/build/i18n/zh.json +0 -34
- package/build/index.d.ts +0 -12
- package/build/index.js +0 -11
- package/build/jsonSchemaForm/JsonSchemaForm.d.ts +0 -65
- package/build/jsonSchemaForm/JsonSchemaForm.js +0 -31
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.d.ts +0 -13
- package/build/jsonSchemaForm/allOfSchema/AllOfSchema.js +0 -54
- package/build/jsonSchemaForm/allOfSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/allOfSchema/index.js +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.d.ts +0 -14
- package/build/jsonSchemaForm/arrayTypeSchema/ArraySchema.js +0 -25
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.d.ts +0 -15
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/ArrayListSchema.js +0 -26
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/index.js +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.d.ts +0 -17
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.js +0 -141
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.d.ts +0 -24
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/MultipleFileUploadSchema.messages.js +0 -18
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/index.js +0 -1
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.d.ts +0 -9
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/useFormattedDefaultErrorMessages.js +0 -14
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.d.ts +0 -6
- package/build/jsonSchemaForm/arrayTypeSchema/arrayListSchema/multipleFileUploadSchema/utils.js +0 -85
- package/build/jsonSchemaForm/arrayTypeSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/arrayTypeSchema/index.js +0 -1
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.d.ts +0 -21
- package/build/jsonSchemaForm/basicTypeSchema/BasicTypeSchema.js +0 -105
- package/build/jsonSchemaForm/basicTypeSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/basicTypeSchema/index.js +0 -1
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.d.ts +0 -30
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.js +0 -79
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.d.ts +0 -53
- package/build/jsonSchemaForm/controlFeedback/ControlFeedback.messages.js +0 -53
- package/build/jsonSchemaForm/controlFeedback/index.d.ts +0 -1
- package/build/jsonSchemaForm/controlFeedback/index.js +0 -1
- package/build/jsonSchemaForm/genericSchema/GenericSchema.d.ts +0 -18
- package/build/jsonSchemaForm/genericSchema/GenericSchema.js +0 -122
- package/build/jsonSchemaForm/genericSchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/genericSchema/index.js +0 -1
- package/build/jsonSchemaForm/help/Help.d.ts +0 -7
- package/build/jsonSchemaForm/help/Help.js +0 -9
- package/build/jsonSchemaForm/help/Help.messages.d.ts +0 -8
- package/build/jsonSchemaForm/help/Help.messages.js +0 -8
- package/build/jsonSchemaForm/help/index.d.ts +0 -1
- package/build/jsonSchemaForm/help/index.js +0 -1
- package/build/jsonSchemaForm/index.d.ts +0 -1
- package/build/jsonSchemaForm/index.js +0 -1
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.d.ts +0 -15
- package/build/jsonSchemaForm/objectSchema/ObjectSchema.js +0 -78
- package/build/jsonSchemaForm/objectSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/objectSchema/index.js +0 -1
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.d.ts +0 -14
- package/build/jsonSchemaForm/oneOfSchema/OneOfSchema.js +0 -153
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.d.ts +0 -3
- package/build/jsonSchemaForm/oneOfSchema/getActiveSchemaIndex.js +0 -40
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.d.ts +0 -2
- package/build/jsonSchemaForm/oneOfSchema/getBestMatchingSchemaIndexForValue.js +0 -27
- package/build/jsonSchemaForm/oneOfSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/oneOfSchema/index.js +0 -1
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.d.ts +0 -3
- package/build/jsonSchemaForm/oneOfSchema/isConstSchema.js +0 -7
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.d.ts +0 -15
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.js +0 -26
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.d.ts +0 -8
- package/build/jsonSchemaForm/persistAsyncSchema/PersistAsyncSchema.messages.js +0 -8
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.d.ts +0 -20
- package/build/jsonSchemaForm/persistAsyncSchema/basic/PersistAsyncBasicSchema.js +0 -168
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/basic/index.js +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.d.ts +0 -19
- package/build/jsonSchemaForm/persistAsyncSchema/blob/PersistAsyncBlobSchema.js +0 -127
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.d.ts +0 -16
- package/build/jsonSchemaForm/persistAsyncSchema/blob/UploadInputAdapter.js +0 -32
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.d.ts +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/blob/index.js +0 -1
- package/build/jsonSchemaForm/persistAsyncSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/persistAsyncSchema/index.js +0 -1
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.d.ts +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchema.js +0 -72
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.d.ts +0 -2
- package/build/jsonSchemaForm/promotedOneOfSchema/PromotedOneOfSchemaModelMatcher.js +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.d.ts +0 -6
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfCheckboxControl.js +0 -27
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.d.ts +0 -23
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfControl.js +0 -31
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.d.ts +0 -8
- package/build/jsonSchemaForm/promotedOneOfSchema/control/PromotedOneOfRadioControl.js +0 -32
- package/build/jsonSchemaForm/promotedOneOfSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/promotedOneOfSchema/index.js +0 -1
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.d.ts +0 -7
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.js +0 -55
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.d.ts +0 -16
- package/build/jsonSchemaForm/readOnlySchema/ReadOnlySchema.messages.js +0 -13
- package/build/jsonSchemaForm/readOnlySchema/index.d.ts +0 -1
- package/build/jsonSchemaForm/readOnlySchema/index.js +0 -1
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.d.ts +0 -24
- package/build/jsonSchemaForm/schemaFormControl/SchemaFormControl.js +0 -106
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.d.ts +0 -3
- package/build/jsonSchemaForm/schemaFormControl/availableCurrencyFlags.js +0 -73
- package/build/jsonSchemaForm/schemaFormControl/index.d.ts +0 -1
- package/build/jsonSchemaForm/schemaFormControl/index.js +0 -1
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.d.ts +0 -39
- package/build/jsonSchemaForm/schemaFormControl/optionMapper.js +0 -89
- package/build/jsonSchemaForm/schemas/allOf.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/allOf.json.js +0 -119
- package/build/jsonSchemaForm/schemas/audRecipient.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/audRecipient.json.js +0 -1104
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/base64Url_MultipleFileUpload.json.js +0 -37
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/blob_MultipleFileUpload.json.js +0 -36
- package/build/jsonSchemaForm/schemas/currency.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/currency.json.js +0 -48
- package/build/jsonSchemaForm/schemas/oneOf.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/oneOf.json.js +0 -119
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/oneOfTabs.json.js +0 -53
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/promotedOneOf.json.js +0 -56
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/promotedOneOfCheckbox.json.js +0 -102
- package/build/jsonSchemaForm/schemas/simple.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/simple.json.js +0 -48
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/uploadPersistAsync.json.js +0 -71
- package/build/jsonSchemaForm/schemas/validationAsync.json.d.ts +0 -3
- package/build/jsonSchemaForm/schemas/validationAsync.json.js +0 -23
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.d.ts +0 -16
- package/build/jsonSchemaForm/validationAsyncSchema/ValidationAsyncSchema.js +0 -149
- package/build/jsonSchemaForm/validationAsyncSchema/index.d.ts +0 -2
- package/build/jsonSchemaForm/validationAsyncSchema/index.js +0 -1
- package/build/layout/DynamicLayout.d.ts +0 -16
- package/build/layout/DynamicLayout.js +0 -75
- package/build/layout/alert/index.d.ts +0 -5
- package/build/layout/alert/index.js +0 -29
- package/build/layout/box/index.d.ts +0 -7
- package/build/layout/box/index.js +0 -41
- package/build/layout/button/index.d.ts +0 -7
- package/build/layout/button/index.js +0 -58
- package/build/layout/columns/index.d.ts +0 -7
- package/build/layout/columns/index.js +0 -38
- package/build/layout/decision/index.d.ts +0 -8
- package/build/layout/decision/index.js +0 -38
- package/build/layout/divider/index.d.ts +0 -6
- package/build/layout/divider/index.js +0 -9
- package/build/layout/external/DynamicExternal.d.ts +0 -7
- package/build/layout/external/DynamicExternal.js +0 -30
- package/build/layout/external/DynamicExternal.messages.d.ts +0 -8
- package/build/layout/external/DynamicExternal.messages.js +0 -8
- package/build/layout/external/index.d.ts +0 -1
- package/build/layout/external/index.js +0 -1
- package/build/layout/external/useExternalStepPolling.d.ts +0 -11
- package/build/layout/external/useExternalStepPolling.js +0 -68
- package/build/layout/form/index.d.ts +0 -7
- package/build/layout/form/index.js +0 -22
- package/build/layout/heading/index.d.ts +0 -5
- package/build/layout/heading/index.js +0 -31
- package/build/layout/icon/index.d.ts +0 -6
- package/build/layout/icon/index.js +0 -22
- package/build/layout/image/index.d.ts +0 -5
- package/build/layout/image/index.js +0 -126
- package/build/layout/index.d.ts +0 -1
- package/build/layout/index.js +0 -1
- package/build/layout/info/index.d.ts +0 -6
- package/build/layout/info/index.js +0 -19
- package/build/layout/layouts/all.json.d.ts +0 -3
- package/build/layout/layouts/all.json.js +0 -176
- package/build/layout/layouts/final-step-layout.json.d.ts +0 -3
- package/build/layout/layouts/final-step-layout.json.js +0 -39
- package/build/layout/layouts/finalStep.json.d.ts +0 -3
- package/build/layout/layouts/finalStep.json.js +0 -24
- package/build/layout/layouts/list.json.d.ts +0 -3
- package/build/layout/layouts/list.json.js +0 -33
- package/build/layout/layouts/pay-in.json.d.ts +0 -3
- package/build/layout/layouts/pay-in.json.js +0 -97
- package/build/layout/layouts/review.json.d.ts +0 -3
- package/build/layout/layouts/review.json.js +0 -160
- package/build/layout/layouts/success.json.d.ts +0 -3
- package/build/layout/layouts/success.json.js +0 -66
- package/build/layout/list/index.d.ts +0 -7
- package/build/layout/list/index.js +0 -30
- package/build/layout/loading-indicator/index.d.ts +0 -6
- package/build/layout/loading-indicator/index.js +0 -10
- package/build/layout/loading-indicator/spec.d.ts +0 -1
- package/build/layout/loading-indicator/spec.js +0 -11
- package/build/layout/paragraph/DynamicParagraph.d.ts +0 -6
- package/build/layout/paragraph/DynamicParagraph.js +0 -42
- package/build/layout/paragraph/DynamicParagraph.messages.d.ts +0 -13
- package/build/layout/paragraph/DynamicParagraph.messages.js +0 -13
- package/build/layout/paragraph/index.d.ts +0 -1
- package/build/layout/paragraph/index.js +0 -1
- package/build/layout/paragraph/useSnackBarIfAvailable.d.ts +0 -10
- package/build/layout/paragraph/useSnackBarIfAvailable.js +0 -9
- package/build/layout/review/index.d.ts +0 -8
- package/build/layout/review/index.js +0 -33
- package/build/layout/utils.d.ts +0 -7
- package/build/layout/utils.js +0 -31
- package/build/main.css +0 -143
- package/build/schema.d.ts +0 -1
- package/build/schema.js +0 -1
- package/build/step/cameraStep/CameraStep.d.ts +0 -7
- package/build/step/cameraStep/CameraStep.js +0 -125
- package/build/step/cameraStep/cameraCapture/CameraCapture.d.ts +0 -15
- package/build/step/cameraStep/cameraCapture/CameraCapture.js +0 -122
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.d.ts +0 -18
- package/build/step/cameraStep/cameraCapture/CameraCapture.messages.js +0 -18
- package/build/step/cameraStep/cameraCapture/components/index.d.ts +0 -7
- package/build/step/cameraStep/cameraCapture/components/index.js +0 -28
- package/build/step/cameraStep/cameraCapture/hooks/index.d.ts +0 -4
- package/build/step/cameraStep/cameraCapture/hooks/index.js +0 -80
- package/build/step/cameraStep/cameraCapture/index.d.ts +0 -1
- package/build/step/cameraStep/cameraCapture/index.js +0 -1
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.d.ts +0 -10
- package/build/step/cameraStep/cameraCapture/overlay/Overlay.js +0 -78
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.d.ts +0 -2
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.js +0 -19
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.d.ts +0 -13
- package/build/step/cameraStep/cameraCapture/screens/CameraNotSupported/CameraNotSupported.messages.js +0 -13
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.d.ts +0 -5
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.js +0 -21
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.d.ts +0 -18
- package/build/step/cameraStep/cameraCapture/screens/NoCameraAccess/NoCameraAccess.messages.js +0 -18
- package/build/step/cameraStep/cameraCapture/screens/index.d.ts +0 -2
- package/build/step/cameraStep/cameraCapture/screens/index.js +0 -2
- package/build/step/cameraStep/cameraCapture/tracking/index.d.ts +0 -7
- package/build/step/cameraStep/cameraCapture/tracking/index.js +0 -101
- package/build/step/cameraStep/cameraCapture/utils/index.d.ts +0 -8
- package/build/step/cameraStep/cameraCapture/utils/index.js +0 -103
- package/build/step/cameraStep/index.d.ts +0 -1
- package/build/step/cameraStep/index.js +0 -1
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.d.ts +0 -6
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.js +0 -64
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.d.ts +0 -23
- package/build/step/externalConfirmationStep/ExternalConfirmationStep.messages.js +0 -23
- package/build/step/externalConfirmationStep/index.d.ts +0 -1
- package/build/step/externalConfirmationStep/index.js +0 -1
- package/build/step/features/external/useExternal.d.ts +0 -4
- package/build/step/features/external/useExternal.js +0 -15
- package/build/step/features/index.d.ts +0 -2
- package/build/step/features/index.js +0 -2
- package/build/step/features/polling/useStepPolling.d.ts +0 -2
- package/build/step/features/polling/useStepPolling.js +0 -44
- package/build/step/index.d.ts +0 -3
- package/build/step/index.js +0 -3
- package/build/step/layoutStep/LayoutStep.d.ts +0 -10
- package/build/step/layoutStep/LayoutStep.js +0 -34
- package/build/step/layoutStep/index.d.ts +0 -1
- package/build/step/layoutStep/index.js +0 -1
- package/build/step/layoutStep/layoutService/convertStepToLayout.d.ts +0 -8
- package/build/step/layoutStep/layoutService/convertStepToLayout.js +0 -217
- package/build/step/layoutStep/layoutService/index.d.ts +0 -2
- package/build/step/layoutStep/layoutService/index.js +0 -2
- package/build/step/layoutStep/layoutService/inlineReferences.d.ts +0 -7
- package/build/step/layoutStep/layoutService/inlineReferences.js +0 -91
|
@@ -1,250 +0,0 @@
|
|
|
1
|
-
var step = {
|
|
2
|
-
key: 'Examples/Recipient Update',
|
|
3
|
-
type: 'form',
|
|
4
|
-
title: 'Edit recipient',
|
|
5
|
-
actions: [
|
|
6
|
-
{
|
|
7
|
-
title: 'Update',
|
|
8
|
-
url: '/responses/recipientUpdate/?delay=5000',
|
|
9
|
-
type: 'primary',
|
|
10
|
-
method: 'PATCH',
|
|
11
|
-
$id: 'submit'
|
|
12
|
-
},
|
|
13
|
-
],
|
|
14
|
-
schemas: [
|
|
15
|
-
{
|
|
16
|
-
allOf: [
|
|
17
|
-
{
|
|
18
|
-
type: 'object',
|
|
19
|
-
displayOrder: ['currency'],
|
|
20
|
-
properties: {
|
|
21
|
-
currency: {
|
|
22
|
-
title: 'Currency',
|
|
23
|
-
type: 'string',
|
|
24
|
-
analyticsId: 'currency-select',
|
|
25
|
-
oneOf: [
|
|
26
|
-
{
|
|
27
|
-
title: 'GBP',
|
|
28
|
-
analyticsId: 'GBP',
|
|
29
|
-
icon: {
|
|
30
|
-
name: 'flag-gbp'
|
|
31
|
-
},
|
|
32
|
-
description: 'British pound',
|
|
33
|
-
"const": 'GBP'
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
readOnly: true
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
required: []
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
title: 'Bank details',
|
|
43
|
-
type: 'object',
|
|
44
|
-
analyticsId: 'SortCode',
|
|
45
|
-
icon: {
|
|
46
|
-
name: 'bank'
|
|
47
|
-
},
|
|
48
|
-
displayOrder: ['name', 'details', 'address'],
|
|
49
|
-
properties: {
|
|
50
|
-
name: {
|
|
51
|
-
type: 'object',
|
|
52
|
-
displayOrder: ['fullName'],
|
|
53
|
-
properties: {
|
|
54
|
-
fullName: {
|
|
55
|
-
title: 'Full name of the account holder',
|
|
56
|
-
type: 'string',
|
|
57
|
-
disabled: true,
|
|
58
|
-
readOnly: true,
|
|
59
|
-
validationMessages: {
|
|
60
|
-
minLength: 'Name needs to be between 2 and 140 characters long.',
|
|
61
|
-
maxLength: 'Recipient name cannot be longer than 140 characters.',
|
|
62
|
-
pattern: 'This recipient name may contain invalid characters or is not the full name. Please try again.'
|
|
63
|
-
},
|
|
64
|
-
autofillProvider: 'contact',
|
|
65
|
-
autofillKey: 'contact.fullName',
|
|
66
|
-
pattern: "^[0-9A-Za-zÀ-ÖØ-öø-ÿ-_()'*,.]+ +[0-9A-Za-zÀ-ÖØ-öø-ÿ-_()'*,.]+([0-9A-Za-zÀ-ÖØ-öø-ÿ-_()'*,. ]*)$",
|
|
67
|
-
minLength: 2,
|
|
68
|
-
maxLength: 140
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
required: []
|
|
72
|
-
},
|
|
73
|
-
details: {
|
|
74
|
-
type: 'object',
|
|
75
|
-
displayOrder: ['sortCode', 'accountNumber'],
|
|
76
|
-
properties: {
|
|
77
|
-
sortCode: {
|
|
78
|
-
title: 'UK sort code',
|
|
79
|
-
type: 'string',
|
|
80
|
-
placeholder: '40-30-20',
|
|
81
|
-
disabled: true,
|
|
82
|
-
readOnly: true,
|
|
83
|
-
validationMessages: {
|
|
84
|
-
pattern: 'Please enter a valid bank code.'
|
|
85
|
-
},
|
|
86
|
-
pattern: '^\\d{2}-?\\d{2}-?\\d{2}$',
|
|
87
|
-
minLength: 6,
|
|
88
|
-
maxLength: 8,
|
|
89
|
-
format: 'numeric',
|
|
90
|
-
displayFormat: '**-**-**'
|
|
91
|
-
},
|
|
92
|
-
accountNumber: {
|
|
93
|
-
title: 'Account number',
|
|
94
|
-
type: 'string',
|
|
95
|
-
placeholder: '12345678',
|
|
96
|
-
disabled: true,
|
|
97
|
-
readOnly: true,
|
|
98
|
-
validationMessages: {
|
|
99
|
-
minLength: 'Account number is too short.',
|
|
100
|
-
maxLength: 'Account number is too large.',
|
|
101
|
-
pattern: 'Please enter a valid account number.'
|
|
102
|
-
},
|
|
103
|
-
pattern: '[0-9]{8}',
|
|
104
|
-
minLength: 8,
|
|
105
|
-
maxLength: 8,
|
|
106
|
-
format: 'numeric'
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
required: []
|
|
110
|
-
},
|
|
111
|
-
address: {
|
|
112
|
-
title: 'Recipient address',
|
|
113
|
-
type: 'object',
|
|
114
|
-
displayOrder: ['country', 'city', 'firstLine', 'postCode'],
|
|
115
|
-
properties: {
|
|
116
|
-
country: {
|
|
117
|
-
title: 'Country',
|
|
118
|
-
type: 'string',
|
|
119
|
-
placeholder: 'Choose a country',
|
|
120
|
-
oneOf: [
|
|
121
|
-
{ title: 'Argentina', "const": 'AR' },
|
|
122
|
-
{ title: 'Brazil', "const": 'BR' },
|
|
123
|
-
{ title: 'Canada', "const": 'CA' },
|
|
124
|
-
{ title: 'Denmark', "const": 'DK' },
|
|
125
|
-
{ title: 'Egypt', "const": 'EG' },
|
|
126
|
-
{ title: 'France', "const": 'FR' },
|
|
127
|
-
{ title: 'Germany', "const": 'DE' },
|
|
128
|
-
{ title: 'Honduras', "const": 'HN' },
|
|
129
|
-
{ title: 'Italy', "const": 'IT' },
|
|
130
|
-
{ title: 'Japan', "const": 'JP' },
|
|
131
|
-
{ title: 'Korea, Republic of', "const": 'KR' },
|
|
132
|
-
{ title: 'Liberia', "const": 'LR' },
|
|
133
|
-
{ title: 'Morocco', "const": 'MA' },
|
|
134
|
-
{ title: 'New Zealand', "const": 'NZ' },
|
|
135
|
-
{ title: 'Oman', "const": 'OM' },
|
|
136
|
-
{ title: 'Peru', "const": 'PE' },
|
|
137
|
-
{ title: 'Qatar', "const": 'QA' },
|
|
138
|
-
{ title: 'Russian Federation', "const": 'RU' },
|
|
139
|
-
{ title: 'Spain', "const": 'ES' },
|
|
140
|
-
{ title: 'Turkey', "const": 'TR' },
|
|
141
|
-
{ title: 'United Kingdom of Great Britain and Northern Ireland', "const": 'GB' },
|
|
142
|
-
{ title: 'United States of America', "const": 'US' },
|
|
143
|
-
{ title: 'Viet Nam', "const": 'VN' },
|
|
144
|
-
{ title: 'Yemen', "const": 'YE' },
|
|
145
|
-
{ title: 'Zimbabwe', "const": 'ZW' },
|
|
146
|
-
],
|
|
147
|
-
validationMessages: {
|
|
148
|
-
required: 'Please select a country.'
|
|
149
|
-
},
|
|
150
|
-
autofillProvider: 'contact',
|
|
151
|
-
autofillKey: 'contact.countryCode'
|
|
152
|
-
},
|
|
153
|
-
city: {
|
|
154
|
-
title: 'City',
|
|
155
|
-
type: 'string',
|
|
156
|
-
autofillProvider: 'contact',
|
|
157
|
-
autofillKey: 'contact.city',
|
|
158
|
-
pattern: '^.{1,255}$',
|
|
159
|
-
minLength: 1,
|
|
160
|
-
maxLength: 255
|
|
161
|
-
},
|
|
162
|
-
firstLine: {
|
|
163
|
-
title: 'Recipient address',
|
|
164
|
-
type: 'string',
|
|
165
|
-
autofillProvider: 'contact',
|
|
166
|
-
autofillKey: 'contact.firstLine',
|
|
167
|
-
pattern: '^.{1,255}$',
|
|
168
|
-
minLength: 1,
|
|
169
|
-
maxLength: 255
|
|
170
|
-
},
|
|
171
|
-
postCode: {
|
|
172
|
-
title: 'Post code',
|
|
173
|
-
type: 'string',
|
|
174
|
-
validationMessages: {
|
|
175
|
-
pattern: 'Please specify a valid post code.',
|
|
176
|
-
required: "Please specify the recipient's post code."
|
|
177
|
-
},
|
|
178
|
-
autofillProvider: 'contact',
|
|
179
|
-
autofillKey: 'contact.postalCode',
|
|
180
|
-
pattern: '^.{1,32}$',
|
|
181
|
-
minLength: 1,
|
|
182
|
-
maxLength: 32
|
|
183
|
-
}
|
|
184
|
-
},
|
|
185
|
-
required: ['country', 'city', 'firstLine', 'postCode'],
|
|
186
|
-
help: {
|
|
187
|
-
markdown: "For legal reasons, we need to ask for the recipient's address (not the bank's address). Don't worry, they won't get any post from us."
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
required: ['address']
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
$id: 'form'
|
|
195
|
-
},
|
|
196
|
-
],
|
|
197
|
-
errors: {
|
|
198
|
-
validation: {
|
|
199
|
-
address: {
|
|
200
|
-
country: 'Please select a country.',
|
|
201
|
-
city: 'Please enter a city.',
|
|
202
|
-
postCode: 'Please enter a post code.',
|
|
203
|
-
firstLine: 'Please enter a residential address.'
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
},
|
|
207
|
-
refreshFormUrl: '/steps/recipientUpdate/?refresh',
|
|
208
|
-
model: {
|
|
209
|
-
country: 'GB',
|
|
210
|
-
ownedByCustomer: false,
|
|
211
|
-
creatorId: 5465158,
|
|
212
|
-
accountSummary: '(04-00-04) 27832001',
|
|
213
|
-
active: true,
|
|
214
|
-
longAccountSummary: 'GBP account ending in 2001',
|
|
215
|
-
type: 'SortCode',
|
|
216
|
-
isInternal: false,
|
|
217
|
-
profileId: 5461759,
|
|
218
|
-
legalEntityType: 'PERSON',
|
|
219
|
-
name: {
|
|
220
|
-
fullName: 'Fergus Jordan'
|
|
221
|
-
},
|
|
222
|
-
currency: 'GBP',
|
|
223
|
-
details: {
|
|
224
|
-
accountNumber: '27832001',
|
|
225
|
-
sortCode: '040004',
|
|
226
|
-
hashedByLooseHashAlgorithm: '5c577703b845c613532bf0e08bbb38ce37644f76af58e1af6fa7447df7041a27'
|
|
227
|
-
},
|
|
228
|
-
id: 67912450,
|
|
229
|
-
hash: 'fe319d809ce8a4f155412afe1b62bc2f1abf6e4af89f762a85a47811f54dab53',
|
|
230
|
-
commonFieldMap: {
|
|
231
|
-
bankCodeField: 'sortCode',
|
|
232
|
-
accountNumberField: 'accountNumber'
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
layout: [
|
|
236
|
-
{
|
|
237
|
-
schema: {
|
|
238
|
-
$ref: 'form'
|
|
239
|
-
},
|
|
240
|
-
type: 'form'
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
type: 'button',
|
|
244
|
-
action: {
|
|
245
|
-
$ref: 'submit'
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
]
|
|
249
|
-
};
|
|
250
|
-
export default step;
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
var step = {
|
|
2
|
-
key: 'Examples/Recipient Creation',
|
|
3
|
-
type: 'form',
|
|
4
|
-
title: 'Recipient Creation Example',
|
|
5
|
-
description: 'A form step with the typical recipient creation form.',
|
|
6
|
-
actions: [],
|
|
7
|
-
schemas: [
|
|
8
|
-
{
|
|
9
|
-
$id: '#new-recipient',
|
|
10
|
-
allOf: [
|
|
11
|
-
{
|
|
12
|
-
type: 'object',
|
|
13
|
-
displayOrder: ['profileId', 'currency', 'legalEntityType', 'email'],
|
|
14
|
-
properties: {
|
|
15
|
-
profileId: {
|
|
16
|
-
type: 'number',
|
|
17
|
-
hidden: true,
|
|
18
|
-
"const": 123456789
|
|
19
|
-
},
|
|
20
|
-
currency: {
|
|
21
|
-
title: 'Currency',
|
|
22
|
-
type: 'string',
|
|
23
|
-
analyticsId: 'currency',
|
|
24
|
-
oneOf: [
|
|
25
|
-
{
|
|
26
|
-
title: 'EUR',
|
|
27
|
-
analyticsId: 'currency-eur',
|
|
28
|
-
icon: {
|
|
29
|
-
name: 'flag-eur'
|
|
30
|
-
},
|
|
31
|
-
description: 'Euro',
|
|
32
|
-
"const": 'EUR'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
title: 'GBP',
|
|
36
|
-
analyticsId: 'currency-gbp',
|
|
37
|
-
icon: {
|
|
38
|
-
name: 'flag-gbp'
|
|
39
|
-
},
|
|
40
|
-
description: 'British pound',
|
|
41
|
-
"const": 'GBP'
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
title: 'INR',
|
|
45
|
-
analyticsId: 'currency-inr',
|
|
46
|
-
icon: {
|
|
47
|
-
name: 'flag-inr'
|
|
48
|
-
},
|
|
49
|
-
description: 'Indian rupee',
|
|
50
|
-
"const": 'INR'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
title: 'USD',
|
|
54
|
-
analyticsId: 'currency-usd',
|
|
55
|
-
icon: {
|
|
56
|
-
name: 'flag-usd'
|
|
57
|
-
},
|
|
58
|
-
description: 'United States dollar',
|
|
59
|
-
"const": 'USD'
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
validationMessages: {
|
|
63
|
-
required: 'Please enter currency.'
|
|
64
|
-
},
|
|
65
|
-
"default": 'EUR',
|
|
66
|
-
refreshFormOnChange: true
|
|
67
|
-
},
|
|
68
|
-
legalEntityType: {
|
|
69
|
-
title: 'Select recipient type',
|
|
70
|
-
type: 'string',
|
|
71
|
-
analyticsId: 'legalEntityType',
|
|
72
|
-
oneOf: [
|
|
73
|
-
{
|
|
74
|
-
title: 'Person',
|
|
75
|
-
analyticsId: 'legalEntityType-person',
|
|
76
|
-
"const": 'PERSON'
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
title: 'Business',
|
|
80
|
-
analyticsId: 'legalEntityType-business',
|
|
81
|
-
"const": 'INSTITUTION'
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
validationMessages: {
|
|
85
|
-
required: 'Please specify the type of recipient.'
|
|
86
|
-
},
|
|
87
|
-
refreshFormOnChange: true
|
|
88
|
-
},
|
|
89
|
-
email: {
|
|
90
|
-
title: 'Their email',
|
|
91
|
-
type: 'string',
|
|
92
|
-
analyticsId: 'email',
|
|
93
|
-
placeholder: 'example@example.ex',
|
|
94
|
-
validationMessages: {
|
|
95
|
-
maxLength: 'The email you have entered is too long.',
|
|
96
|
-
pattern: 'The email address is invalid.'
|
|
97
|
-
},
|
|
98
|
-
refreshFormOnChange: true,
|
|
99
|
-
autofillProvider: 'contact',
|
|
100
|
-
autofillKey: 'contact.email',
|
|
101
|
-
refreshFormUrl: '/steps/recipient',
|
|
102
|
-
pattern: "\\s*[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+\\s*",
|
|
103
|
-
maxLength: 255
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
required: ['currency', 'legalEntityType']
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
title: 'Bank details',
|
|
110
|
-
analyticsId: 'bank-details',
|
|
111
|
-
oneOf: [
|
|
112
|
-
{
|
|
113
|
-
title: 'Inside Europe',
|
|
114
|
-
analyticsId: 'bank-details-europe',
|
|
115
|
-
type: 'object',
|
|
116
|
-
displayOrder: ['name', 'ownedByCustomer', 'details', 'type'],
|
|
117
|
-
properties: {
|
|
118
|
-
name: {
|
|
119
|
-
type: 'object',
|
|
120
|
-
displayOrder: ['fullName'],
|
|
121
|
-
properties: {
|
|
122
|
-
fullName: {
|
|
123
|
-
title: 'Full name of the account holder',
|
|
124
|
-
type: 'string',
|
|
125
|
-
validationMessages: {
|
|
126
|
-
minLength: 'Name needs to be between 2 and 140 characters long.',
|
|
127
|
-
maxLength: 'Recipient name cannot be longer than 140 characters.',
|
|
128
|
-
pattern: 'This recipient name contains invalid characters. Please use latin characters only.',
|
|
129
|
-
required: 'Name cannot be empty.'
|
|
130
|
-
},
|
|
131
|
-
autofillProvider: 'contact',
|
|
132
|
-
autofillKey: 'contact.fullName',
|
|
133
|
-
pattern: '^[0-9A-Za-zÀ-ÖØ-öø-ÿ-_()\'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$',
|
|
134
|
-
minLength: 2,
|
|
135
|
-
maxLength: 140
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
required: ['fullName']
|
|
139
|
-
},
|
|
140
|
-
ownedByCustomer: {
|
|
141
|
-
title: 'My own Account',
|
|
142
|
-
type: 'boolean',
|
|
143
|
-
hidden: true,
|
|
144
|
-
"const": false
|
|
145
|
-
},
|
|
146
|
-
details: {
|
|
147
|
-
type: 'object',
|
|
148
|
-
displayOrder: ['bic', 'iban'],
|
|
149
|
-
properties: {
|
|
150
|
-
bic: {
|
|
151
|
-
title: 'Bank code (BIC/SWIFT)',
|
|
152
|
-
type: 'string',
|
|
153
|
-
placeholder: 'BARCGB22XXX',
|
|
154
|
-
hidden: true,
|
|
155
|
-
validationMessages: {
|
|
156
|
-
minLength: 'The BIC you have entered is too short.',
|
|
157
|
-
maxLength: 'The BIC you have entered is too long.',
|
|
158
|
-
pattern: 'Please specify a valid BIC.'
|
|
159
|
-
},
|
|
160
|
-
pattern: '^[A-Za-z]{6}[A-Za-z\\d]{2}([A-Za-z\\d]{3})?$',
|
|
161
|
-
minLength: 8,
|
|
162
|
-
maxLength: 11
|
|
163
|
-
},
|
|
164
|
-
iban: {
|
|
165
|
-
title: 'IBAN',
|
|
166
|
-
type: 'string',
|
|
167
|
-
placeholder: 'DE12345678901234567890',
|
|
168
|
-
displayFormat: '**** **** **** **** **** **** **** ****',
|
|
169
|
-
help: {
|
|
170
|
-
markdown: 'IBANs are long account numbers used by banks for cross-border transfers. Each country structures this number differently, but it always starts with a 2 digit country code (e.g. DE for Germany).'
|
|
171
|
-
},
|
|
172
|
-
validationMessages: {
|
|
173
|
-
minLength: 'The IBAN you have entered is too short.',
|
|
174
|
-
maxLength: 'The IBAN you have entered is too long.',
|
|
175
|
-
pattern: 'Please specify a valid IBAN.',
|
|
176
|
-
required: 'Please specify an IBAN.'
|
|
177
|
-
},
|
|
178
|
-
refreshFormOnChange: true,
|
|
179
|
-
pattern: '^[a-zA-Z]{2}[a-zA-Z0-9 ]{12,40}$',
|
|
180
|
-
minLength: 14,
|
|
181
|
-
maxLength: 42
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
required: ['iban']
|
|
185
|
-
},
|
|
186
|
-
type: {
|
|
187
|
-
title: 'Type',
|
|
188
|
-
type: 'string',
|
|
189
|
-
hidden: true,
|
|
190
|
-
"const": 'Iban'
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
required: ['type', 'name', 'details'],
|
|
194
|
-
icon: {
|
|
195
|
-
name: 'bank'
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
title: 'Outside Europe',
|
|
200
|
-
analyticsId: 'bank-details-outside-europe',
|
|
201
|
-
type: 'object',
|
|
202
|
-
displayOrder: ['name', 'ownedByCustomer', 'details', 'type'],
|
|
203
|
-
properties: {
|
|
204
|
-
name: {
|
|
205
|
-
type: 'object',
|
|
206
|
-
displayOrder: ['fullName'],
|
|
207
|
-
properties: {
|
|
208
|
-
fullName: {
|
|
209
|
-
title: 'Full name of the account holder',
|
|
210
|
-
type: 'string',
|
|
211
|
-
validationMessages: {
|
|
212
|
-
minLength: 'Name needs to be between 2 and 140 characters long.',
|
|
213
|
-
maxLength: 'Recipient name cannot be longer than 140 characters.',
|
|
214
|
-
pattern: 'This recipient name contains invalid characters. Please use latin characters only.',
|
|
215
|
-
required: 'Name cannot be empty.'
|
|
216
|
-
},
|
|
217
|
-
autofillProvider: 'contact',
|
|
218
|
-
autofillKey: 'contact.fullName',
|
|
219
|
-
pattern: '^[0-9A-Za-zÀ-ÖØ-öø-ÿ-_()\'*,.%#^@&{}~<>+$"\\[\\]\\\\ ]+$',
|
|
220
|
-
minLength: 2,
|
|
221
|
-
maxLength: 140
|
|
222
|
-
}
|
|
223
|
-
},
|
|
224
|
-
required: ['fullName']
|
|
225
|
-
},
|
|
226
|
-
ownedByCustomer: {
|
|
227
|
-
title: 'My own Account',
|
|
228
|
-
type: 'boolean',
|
|
229
|
-
hidden: true,
|
|
230
|
-
"const": false
|
|
231
|
-
},
|
|
232
|
-
details: {
|
|
233
|
-
type: 'object',
|
|
234
|
-
displayOrder: ['bic', 'accountNumber'],
|
|
235
|
-
properties: {
|
|
236
|
-
bic: {
|
|
237
|
-
title: 'SWIFT / BIC code',
|
|
238
|
-
type: 'string',
|
|
239
|
-
placeholder: 'BUKBGB22',
|
|
240
|
-
validationMessages: {
|
|
241
|
-
minLength: 'The BIC you have entered is too short.',
|
|
242
|
-
maxLength: 'The BIC you have entered is too long.',
|
|
243
|
-
pattern: 'Please specify a valid BIC.',
|
|
244
|
-
required: 'Please specify a BIC.'
|
|
245
|
-
},
|
|
246
|
-
pattern: '^[a-zA-Z]{6}(([a-zA-Z0-9]{2})|([a-zA-Z0-9]{5}))$',
|
|
247
|
-
minLength: 8,
|
|
248
|
-
maxLength: 11
|
|
249
|
-
},
|
|
250
|
-
accountNumber: {
|
|
251
|
-
title: 'IBAN / Account Number',
|
|
252
|
-
type: 'string',
|
|
253
|
-
placeholder: '123456789012',
|
|
254
|
-
validationMessages: {
|
|
255
|
-
minLength: 'Account number is too short.',
|
|
256
|
-
maxLength: 'Account number is too large.',
|
|
257
|
-
pattern: 'Please enter a valid account number.',
|
|
258
|
-
required: 'Please enter an IBAN or account number.'
|
|
259
|
-
},
|
|
260
|
-
pattern: '^[a-zA-Z0-9]{4,34}$',
|
|
261
|
-
minLength: 4,
|
|
262
|
-
maxLength: 34
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
required: ['bic', 'accountNumber']
|
|
266
|
-
},
|
|
267
|
-
type: {
|
|
268
|
-
title: 'Type',
|
|
269
|
-
type: 'string',
|
|
270
|
-
hidden: true,
|
|
271
|
-
"const": 'SwiftCode'
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
required: ['type', 'name', 'details'],
|
|
275
|
-
icon: {
|
|
276
|
-
name: 'bank'
|
|
277
|
-
},
|
|
278
|
-
alert: {
|
|
279
|
-
context: 'warning',
|
|
280
|
-
markdown: 'To send EUR to this account, we need to use the SWIFT network. It’s slower, so the transfer might take a day or two longer. Also note that intermediary banks and your recipient’s bank might charge extra fees to the amount received.'
|
|
281
|
-
}
|
|
282
|
-
},
|
|
283
|
-
],
|
|
284
|
-
control: 'tab',
|
|
285
|
-
placeholder: 'Please select where you are sending to...'
|
|
286
|
-
},
|
|
287
|
-
]
|
|
288
|
-
},
|
|
289
|
-
],
|
|
290
|
-
refreshFormUrl: '/steps/recipient',
|
|
291
|
-
layout: [
|
|
292
|
-
{
|
|
293
|
-
type: 'form',
|
|
294
|
-
schema: {
|
|
295
|
-
$ref: '#new-recipient'
|
|
296
|
-
}
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
type: 'button',
|
|
300
|
-
action: {
|
|
301
|
-
type: 'primary',
|
|
302
|
-
title: 'Confirm',
|
|
303
|
-
url: '/v2/accounts',
|
|
304
|
-
method: 'POST'
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
],
|
|
308
|
-
model: {
|
|
309
|
-
ownedByCustomer: false,
|
|
310
|
-
details: {}
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
export default step;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
var step = {
|
|
2
|
-
key: 'Examples/Single File Upload',
|
|
3
|
-
type: 'form',
|
|
4
|
-
title: 'Single File Upload Example',
|
|
5
|
-
actions: [],
|
|
6
|
-
schemas: [
|
|
7
|
-
{
|
|
8
|
-
$id: 'the-schema',
|
|
9
|
-
type: 'object',
|
|
10
|
-
displayOrder: ['frontSide'],
|
|
11
|
-
properties: {
|
|
12
|
-
frontSide: {
|
|
13
|
-
refreshFormOnChange: false,
|
|
14
|
-
$id: 'frontSide',
|
|
15
|
-
persistAsync: {
|
|
16
|
-
url: '/single-file-upload-url',
|
|
17
|
-
param: 'file',
|
|
18
|
-
idProperty: 'frontSide',
|
|
19
|
-
schema: {
|
|
20
|
-
accepts: ['image/jpeg', 'image/png'],
|
|
21
|
-
maxSize: 41943040,
|
|
22
|
-
source: 'file',
|
|
23
|
-
description: 'JPEG or PNG less than 10MB',
|
|
24
|
-
$id: 'cb22a588-c404-43fd-b3fa-754afb3729f4',
|
|
25
|
-
title: 'Upload file',
|
|
26
|
-
type: 'blob'
|
|
27
|
-
},
|
|
28
|
-
method: 'POST'
|
|
29
|
-
},
|
|
30
|
-
title: 'Single File Upload',
|
|
31
|
-
type: 'integer'
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
required: ['frontSide']
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
layout: [
|
|
38
|
-
{
|
|
39
|
-
type: 'paragraph',
|
|
40
|
-
text: 'The upload component below uses /single-file-upload-url'
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
type: 'form',
|
|
44
|
-
schema: { $ref: 'the-schema' }
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
type: 'paragraph',
|
|
48
|
-
text: 'The upload component below uses /single-file-upload-url-fail'
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
type: 'form',
|
|
52
|
-
schema: {
|
|
53
|
-
type: 'object',
|
|
54
|
-
displayOrder: ['frontSide'],
|
|
55
|
-
properties: {
|
|
56
|
-
frontSide: {
|
|
57
|
-
refreshFormOnChange: false,
|
|
58
|
-
$id: 'backSide',
|
|
59
|
-
persistAsync: {
|
|
60
|
-
url: '/single-file-upload-url-fail',
|
|
61
|
-
param: 'file',
|
|
62
|
-
idProperty: 'backSide',
|
|
63
|
-
schema: {
|
|
64
|
-
accepts: ['image/jpeg', 'image/png'],
|
|
65
|
-
maxSize: 41943040,
|
|
66
|
-
source: 'file',
|
|
67
|
-
description: 'JPEG or PNG less than 10MB',
|
|
68
|
-
$id: 'cb22a588-c404-43fd-b3fa-754afb3729f4',
|
|
69
|
-
title: 'Upload file',
|
|
70
|
-
type: 'blob'
|
|
71
|
-
},
|
|
72
|
-
method: 'POST'
|
|
73
|
-
},
|
|
74
|
-
title: 'Single File Upload',
|
|
75
|
-
type: 'integer'
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
required: ['backSide']
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
type: 'button',
|
|
83
|
-
action: {
|
|
84
|
-
url: '/submit-uploads',
|
|
85
|
-
type: 'primary',
|
|
86
|
-
method: 'POST',
|
|
87
|
-
disabled: false,
|
|
88
|
-
title: 'Next'
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
model: {
|
|
93
|
-
frontSide: 0
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
export default step;
|