Members
-
<constant> ValidationError :number
-
Validation error values
Type:
- number
- Source:
Properties:
Name Type Default Description NONEnumber 0 No validation error
NO_FIELDnumber 1 The field to validate does not exist in the descriptor
REQUIRED_FIELDnumber 2 A required field was omitted
NOT_ALLOWEDnumber 3 A value didn't match the restricted values for this field
INVALID_VALUEnumber 4 The value doesn't match the pattern allowed
INVALID_MAPnumber 5 The Map value doesn't match the pattern allowed for either its keys or values
Type Definitions
-
AuthenticationOptions
-
Type:
- Object
- Source:
Properties:
Name Type Argument Description strategystring <nullable>
'pauth' or 'oauth'
secretstring <nullable>
urlstring <nullable>
Override the URL to hit for authentication. Useful for providing custom endpoints to provide an access_token
-
ClientOptions
-
Options for the Client.
Type:
- Object
- Source:
Properties:
Name Type Argument Description directorystring The directory to pass through to Session.
registryUristring The registryUri to pass through to Registry.
identityUristring <nullable>
Optional identityUri to pass through to Session.
tokenstring <nullable>
Token to authenticate with.
tenantstring <nullable>
Tenant to initialize with.
enableCacheboolean <nullable>
Indicates whether to cache service descriptors in Registry.
encodeURIencodeUri <nullable>
Indicates whether to encode URIs before requesting in Transport. Will not re-encode existing sequences (e.g.
%20will stay as%20, but%2will encode to%202) -
Criteria()
-
Filter on
refwhen a string is supplied. Filter by a custom function by supplying afunctionOr filter by key/value pairs in an Object- Source:
-
TransportDefaults
-
Default fetch options to send with all
fetchrequests.Type:
- Object
- Source:
- See:
-
Validation
-
Type:
- Object
- Source:
Properties:
Name Type Description codeValidationError Error code
messagestring What was invalid
typeInfoObject The full typeInfo from the descriptor
validboolean Whether the field is valid or not
Javascript Client SDK