diff --git a/docs/classes/Errors.DigiMeSDKError.html b/docs/classes/Errors.DigiMeSDKError.html index a1fc3f23..4dd29120 100644 --- a/docs/classes/Errors.DigiMeSDKError.html +++ b/docs/classes/Errors.DigiMeSDKError.html @@ -25,7 +25,7 @@

Hierarchy (View SummaryFileDecryptionError
  • ServerError
  • +
  • Defined in errors.ts:14
  • @@ -55,7 +55,7 @@

    Parameters

    Returns DigiMeSDKError

    +
  • Defined in errors.ts:17
  • @@ -64,7 +64,7 @@
    +
  • Defined in errors.ts:15
  • @@ -60,7 +60,7 @@
    +
  • Defined in errors.ts:56
  • @@ -62,13 +62,13 @@
    +
  • Defined in errors.ts:30
  • name: string = "SDKInvalidError"
    +
  • Defined in errors.ts:42
  • @@ -64,13 +64,13 @@
    error?: ApiError
    +
  • Defined in errors.ts:30
  • name: string = "DigiMeServerError"
    +
  • Defined in errors.ts:29
  • @@ -60,7 +60,7 @@
    +
  • Defined in errors.ts:49
  • +
  • Defined in types/api/api-error-response.ts:22
  • +
  • Defined in sdk.ts:94
  • getAuthorizeUrl: (
        props: GetAuthorizeUrlOptions,
    ) => Promise<GetAuthorizeUrlResponse>
    @@ -90,49 +90,49 @@
    +
  • Defined in sdk.ts:66
  • getContractDetails: (
        props: GetContractDetailsOptions,
    ) => Promise<GetContractDetailsResponse>

    Get contract details

    +
  • Defined in sdk.ts:256
  • getOnboardServiceUrl: (
        props: GetOnboardServiceUrlOptions,
    ) => Promise<GetOnboardServiceUrlResponse>

    This is called when we already have a valid user access token for this user and we want to add more services to this user’s library.

    +
  • Defined in sdk.ts:80
  • getReauthorizeAccountUrl: (
        props: GetReauthorizeAccountUrlOptions,
    ) => Promise<GetReauthorizeAccountUrlResponse>

    This is called when we need to reauthorize specific account due to Service authorization required error

    +
  • Defined in sdk.ts:87
  • getReauthorizeUrl: (
        props: GetReauthorizeUrlOptions,
    ) => Promise<GetReauthorizeUrlResponse>

    This is called when user receives InvalidToken error (401 - The token (refresh_token) is invalid). We can use this method to get new AT/RT pair.

    +
  • Defined in sdk.ts:73
  • getRevokeAccountPermissionUrl: (
        props: GetRevokeAccountPermissionUrlOptions,
    ) => Promise<GetRevokeAccountPermissionUrlResponse>

    Revoke account permission

    +
  • Defined in sdk.ts:171
  • refreshToken: (props: RefreshTokenOptions) => Promise<UserAccessToken>

    This is called if you want to issue new token

    +
  • Defined in sdk.ts:101
  • @@ -142,14 +142,14 @@
    +
  • Defined in sdk.ts:164
  • deleteUser: (props: DeleteUserOptions) => Promise<DeleteUserResponse>

    Deletes user data on digi.me

    +
  • Defined in sdk.ts:157
  • @@ -159,7 +159,7 @@
    +
  • Defined in sdk.ts:208
  • @@ -169,7 +169,7 @@
    +
  • Defined in sdk.ts:108
  • @@ -179,77 +179,77 @@
    +
  • Defined in sdk.ts:214
  • queryCategories: (
        props: QueryCategoriesOptions,
    ) => Promise<QueryCategoriesResponse>

    Get a list of possible categories

    +
  • Defined in sdk.ts:201
  • queryCountries: (
        props: QueryCountriesOptions,
    ) => Promise<QueryCountriesResponse>

    Get a list of possible countries

    +
  • Defined in sdk.ts:187
  • queryPlatforms: (
        props: QueryPlatformsOptions,
    ) => Promise<QueryPlatformsResponse>

    Get a list of possible platforms

    +
  • Defined in sdk.ts:194
  • querySources: (props: QuerySourcesOptions) => Promise<QuerySourcesResponse>

    Get a list of possible sources a user can onboard

    +
  • Defined in sdk.ts:180
  • readAccounts: (props: ReadAccountsOptions) => Promise<ReadAccountsResponse>

    Get a list of accounts that exist of current user's library.

    +
  • Defined in sdk.ts:150
  • readAllFiles: (props: ReadAllFilesOptions) => ReadAllFilesResponse

    Handy util function to download all available user files.

    +
  • Defined in sdk.ts:143
  • readFile: (props: ReadFileOptions) => Promise<ReadFileResponse>

    Download a file.

    +
  • Defined in sdk.ts:122
  • readFileList: (props: ReadFileListOptions) => Promise<ReadFileListResponse>

    Get a list of files that are ready to be downloaded.

    +
  • Defined in sdk.ts:136
  • readFileMetadata: (
        props: ReadFileMetadataOptions,
    ) => Promise<ReadFileMetadataResponse>

    Download a file metadata.

    +
  • Defined in sdk.ts:129
  • readSession: (props: ReadSessionOptions) => Promise<ReadSessionResponse>

    Start a new read session. When we already have an user access token.

    +
  • Defined in sdk.ts:115
  • @@ -259,42 +259,42 @@
    +
  • Defined in sdk.ts:220
  • deleteStorageFiles: (
        props: DeleteStorageFilesOptions,
    ) => Promise<DeleteStorageFilesResponse>

    Download file from storage by path

    +
  • Defined in sdk.ts:238
  • downloadStorageFile: (
        props: DownloadStorageFileOptions,
    ) => Promise<DownloadStorageFileResponse>

    Download file from storage by path

    +
  • Defined in sdk.ts:232
  • getUserStorage: (
        props: GetUserStorageOptions,
    ) => Promise<GetUserStorageResponse>

    Get storage for existing user

    +
  • Defined in sdk.ts:250
  • listStorageFiles: (
        props: ListStorageFilesOptions,
    ) => Promise<ListStorageFilesResponse>

    List storage files

    +
  • Defined in sdk.ts:226
  • uploadFileToStorage: (
        props: UploadFileToStorageOptions,
    ) => Promise<UploadFileToStorageResponse>

    Upload file to storage by path

    +
  • Defined in sdk.ts:244
  • +
  • Defined in read-file-metadata.ts:19
  • +
  • Defined in read-file-metadata.ts:28
  • +
  • Defined in types/user-access-token.ts:11
  • value: string
    +
  • Defined in types/user-access-token.ts:12
  • +
  • Defined in types/user-access-token.ts:16
  • +
  • Defined in types/user-access-token.ts:22
  • +
  • Defined in types/common.ts:52
  • +
  • Defined in types/common.ts:12
  • privateKey: string

    A string of the private key in PKCS1 format

    +
  • Defined in types/common.ts:17
  • +
  • Defined in storage.ts:21
  • +
  • Defined in storage.ts:25
  • +
  • Defined in delete-account.ts:15
  • +
  • Defined in delete-account.ts:21
  • +
  • Defined in storage.ts:415
  • +
  • Defined in storage.ts:422
  • +
  • Defined in delete-user.ts:15
  • +
  • Defined in delete-user.ts:20
  • +
  • Defined in storage.ts:305
  • +
  • Defined in storage.ts:323
  • +
  • Defined in exchange-code-for-token.ts:19
  • +
  • Defined in get-authorize-url.ts:41
  • consumer?: Consumer
    +
  • Defined in get-authorize-url.ts:105
  • contractDetails: ContractDetails

    Any contract related details here.

    +
  • Defined in get-authorize-url.ts:36
  • includeSampleDataOnlySources?: boolean

    Flag to indicate if we should include sample data only sources. Default is false.

    +
  • Defined in get-authorize-url.ts:85
  • locale?: string
    @@ -73,28 +73,28 @@
    +
  • Defined in get-authorize-url.ts:80
  • sampleData?: SampleDataOptions

    Options for sample data flow

    +
  • Defined in get-authorize-url.ts:73
  • serviceId?: number

    Onboard a service while authorizing.

    +
  • Defined in get-authorize-url.ts:46
  • sessionOptions?: { pull?: PullSessionOptions }

    Any optional parameters for the share.

    +
  • Defined in get-authorize-url.ts:56
  • sourcesScope?: SourcesScope
    @@ -102,28 +102,28 @@
    +
  • Defined in get-authorize-url.ts:103
  • sourceType?: SourceType

    Please use SourceType push to filter out only services that are push type. Default SourceType is set to pull.

    +
  • Defined in get-authorize-url.ts:68
  • state: string

    Any extra data you want to be passed back after a authorization flow.

    +
  • Defined in get-authorize-url.ts:63
  • storageId?: string

    Provide storage.id returned createProvisionalStorage to connect this storage to created user

    +
  • Defined in get-authorize-url.ts:90
  • triggerQuery?: boolean
    @@ -132,14 +132,14 @@
    +
  • Defined in get-authorize-url.ts:97
  • userAccessToken?: UserAccessToken

    User access token you may already have for this user from this or from another contract.

    +
  • Defined in get-authorize-url.ts:51
  • +
  • Defined in get-authorize-url.ts:139
  • session: Session

    A session that can be used to read data. Can only be used after a successful authorization

    +
  • Defined in get-authorize-url.ts:144
  • url: string

    The URL to redirect users to to trigger the authorization process.

    +
  • Defined in get-authorize-url.ts:134
  • +
  • Defined in get-contract-details.ts:57
  • +
  • Defined in get-contract-details.ts:39
  • +
  • Defined in get-onboard-service-url.ts:41
  • consumer?: Consumer
    +
  • Defined in get-onboard-service-url.ts:90
  • contractDetails: ContractDetails

    Any contract related details here.

    +
  • Defined in get-onboard-service-url.ts:37
  • includeSampleDataOnlySources?: boolean

    Flag to indicate if we should include services that are sample data only services. Default is false.

    +
  • Defined in get-onboard-service-url.ts:73
  • locale?: string
    @@ -72,28 +72,28 @@
    +
  • Defined in get-onboard-service-url.ts:69
  • sampleData?: SampleDataOptions

    Options for sample data flow

    +
  • Defined in get-onboard-service-url.ts:57
  • serviceId?: number

    Service ID to be added. If serviceId is not passed user will have option to choose service that will be added.

    +
  • Defined in get-onboard-service-url.ts:49
  • sessionOptions?: { pull?: PullSessionOptions }

    Any optional parameters for the share.

    +
  • Defined in get-onboard-service-url.ts:61
  • sourcesScope?: SourcesScope
    @@ -101,21 +101,21 @@
    +
  • Defined in get-onboard-service-url.ts:84
  • sourceType?: SourceType

    Please use SourceType push to filter out only services that are push type. Default SourceType is set to pull.

    +
  • Defined in get-onboard-service-url.ts:53
  • state?: string

    Any extra data you want to be passed back after a authorization flow.

    +
  • Defined in get-onboard-service-url.ts:88
  • triggerQuery?: boolean
    @@ -124,14 +124,14 @@
    +
  • Defined in get-onboard-service-url.ts:79
  • userAccessToken: UserAccessToken

    User access token you may already have for this user from this or from another contract.

    +
  • Defined in get-onboard-service-url.ts:45
  • +
  • Defined in get-onboard-service-url.ts:116
  • +
  • Defined in get-portability-report.ts:37
  • format: "xml"

    File format to be returned. Currently only XML is supported.

    +
  • Defined in get-portability-report.ts:29
  • from?: number

    From timestamp in seconds

    +
  • Defined in get-portability-report.ts:45
  • serviceType: "medmij"

    Service type medmij is only supported for now.

    +
  • Defined in get-portability-report.ts:33
  • to?: number

    To timestamp in seconds

    +
  • Defined in get-portability-report.ts:49
  • userAccessToken: UserAccessToken

    User access token you may already have for this user from this or from another contract.

    +
  • Defined in get-portability-report.ts:41
  • +
  • Defined in get-portability-report.ts:66
  • +
  • Defined in get-reauthorize-account-url.ts:37
  • callback: string

    A URL to call to be called after authorization is done.

    +
  • Defined in get-reauthorize-account-url.ts:29
  • consumer?: Consumer
    +
  • Defined in get-reauthorize-account-url.ts:45
  • contractDetails: ContractDetails

    Any contract related details here.

    +
  • Defined in get-reauthorize-account-url.ts:25
  • locale?: string
    @@ -65,14 +65,14 @@
    +
  • Defined in get-reauthorize-account-url.ts:43
  • userAccessToken: UserAccessToken

    User access token you may already have for this user from this or from another contract.

    +
  • Defined in get-reauthorize-account-url.ts:33
  • +
  • Defined in get-reauthorize-account-url.ts:69
  • url: string

    The URL to redirect users to to trigger the authorization process.

    +
  • Defined in get-reauthorize-account-url.ts:59
  • userAccessToken: UserAccessToken

    User access token

    +
  • Defined in get-reauthorize-account-url.ts:64
  • +
  • Defined in get-reauthorize-url.ts:34
  • consumer?: Consumer
    +
  • Defined in get-reauthorize-url.ts:63
  • contractDetails: ContractDetails

    Any contract related details here.

    +
  • Defined in get-reauthorize-url.ts:30
  • locale?: string
    @@ -60,21 +60,21 @@
    +
  • Defined in get-reauthorize-url.ts:48
  • sessionOptions?: { pull?: PullSessionOptions }

    Any optional parameters for the share.

    +
  • Defined in get-reauthorize-url.ts:52
  • state?: string

    Any extra data you want to be passed back after a reauthorization flow.

    +
  • Defined in get-reauthorize-url.ts:42
  • triggerQuery?: boolean
    @@ -83,14 +83,14 @@
    +
  • Defined in get-reauthorize-url.ts:61
  • userAccessToken: UserAccessToken

    User access token you may already have for this user from this or from another contract.

    +
  • Defined in get-reauthorize-url.ts:38
  • +
  • Defined in get-reauthorize-url.ts:85
  • +
  • Defined in get-revoke-account-permission-url.ts:16
  • +
  • Defined in get-revoke-account-permission-url.ts:22
  • +
  • Defined in get-service-sample-datasets.ts:16
  • +
  • Defined in storage.ts:101
  • +
  • Defined in storage.ts:109
  • +
  • Defined in storage.ts:186
  • +
  • Defined in storage.ts:209
  • +
  • Defined in types/api/ca-file-response.ts:29
  • +
  • Defined in types/common.ts:85
  • +
  • Defined in query-categories.ts:88
  • +
  • Defined in query-categories.ts:61
  • +
  • Defined in query-countries.ts:78
  • countriesBodyParams?: CountriesBodyParams

    Additional query options.

    +
  • Defined in query-countries.ts:82
  • +
  • Defined in query-countries.ts:51
  • +
  • Defined in query-platforms.ts:62
  • platformsBodyParams?: PlatformsBodyParams

    Additional query options.

    +
  • Defined in query-platforms.ts:66
  • +
  • Defined in query-platforms.ts:35
  • +
  • Defined in query-sources.ts:320
  • sourcesBodyParams?: SourcesBodyParams

    Params for searching, paging, filtering, sorting and other options.

    +
  • Defined in query-sources.ts:324
  • +
  • Defined in query-sources.ts:151
  • limit: number

    Page limit.

    +
  • Defined in query-sources.ts:155
  • offset: number

    Page offset.

    +
  • Defined in query-sources.ts:159
  • total: number

    Total numner of source records.

    +
  • Defined in query-sources.ts:163
  • +
  • Defined in read-accounts.ts:18
  • +
  • Defined in read-all-files.ts:18
  • +
  • Defined in read-all-files.ts:33
  • +
  • Defined in read-file-list.ts:18
  • +
  • Defined in types/api/ca-file-list-response.ts:148
  • +
  • Defined in read-file.ts:22
  • +
  • Defined in read-file.ts:39
  • +
  • Defined in read-session.ts:26
  • +
  • Defined in read-session.ts:33
  • +
  • Defined in refresh-token.ts:17
  • +
  • Defined in types/sdk-configuration.ts:29
  • +
  • Defined in types/api/session.ts:10
  • +
  • Defined in storage.ts:494
  • +
  • Defined in storage.ts:501
  • +
  • Defined in read-accounts.ts:23
  • +
  • Defined in types/common.ts:107
  • +
  • Defined in types/api/ca-file-list-response.ts:122
  • +
  • Defined in types/api/ca-file-list-response.ts:104
  • +
  • Defined in types/api/ca-file-list-response.ts:114
  • +
  • Defined in read-accounts.ts:57
  • +
  • Defined in types/api/ca-file-list-response.ts:29
  • +
  • Defined in query-categories.ts:67
  • +
  • Defined in query-categories.ts:19
  • +
  • Defined in types/common.ts:349
  • +
  • Defined in get-contract-details.ts:21
  • +
  • Defined in query-countries.ts:57
  • +
  • Defined in query-countries.ts:19
  • +
  • Defined in types/common.ts:102
  • +
  • Defined in types/api/ca-file-response.ts:12
  • +
  • Defined in types/api/ca-file-list-response.ts:56
  • +
  • Defined in types/common.ts:116
  • +
  • Defined in types/api/ca-file-list-response.ts:67
  • +
  • Defined in types/common.ts:344
  • +
  • Defined in types/common.ts:340
  • +
  • Defined in types/api/ca-file-list-response.ts:83
  • +
  • Defined in query-platforms.ts:41
  • +
  • Defined in push.ts:23
  • +
  • Defined in push.ts:33
  • +
  • Defined in types/push.ts:11
  • +
  • Defined in types/common.ts:29
  • dataSet: string

    Dataset ID to use for sample data onboard returned in getServiceSampleDataSets

    +
  • Defined in types/common.ts:24
  • +
  • Defined in types/common.ts:121
  • +
  • Defined in types/common.ts:96
  • +
  • Defined in types/common.ts:125
  • +
  • Defined in query-sources.ts:39
  • +
  • Defined in types/common.ts:66
  • +
  • Defined in query-sources.ts:79
  • +
  • Defined in query-sources.ts:16
  • +
  • Defined in query-sources.ts:66
  • +
  • Defined in query-sources.ts:292
  • +
  • Defined in types/common.ts:298
  • +
  • Defined in query-sources.ts:167
  • +
  • Defined in storage.ts:196
  • +
  • Defined in types/common.ts:131
  • +
  • Defined in read-file-metadata.ts:23
  • +
  • Defined in get-service-sample-datasets.ts:36
  • +
  • Defined in push.ts:39
  • +
  • Defined in read-accounts.ts:65
  • +
  • Defined in push.ts:18
  • +
  • Defined in read-all-files.ts:30
  • +
  • Defined in types/api/ca-file-list-response.ts:129
  • +
  • Defined in read-accounts.ts:26
  • +
  • Defined in query-sources.ts:36
  • +
  • Defined in query-categories.ts:64
  • +
  • Defined in get-contract-details.ts:15
  • +
  • Defined in query-countries.ts:54
  • +
  • Defined in get-service-sample-datasets.ts:27
  • +
  • Defined in read-all-files.ts:28
  • +
  • Defined in read-all-files.ts:26
  • +
  • Defined in read-all-files.ts:27
  • +
  • Defined in read-all-files.ts:25
  • +
  • Defined in query-sources.ts:248
  • +
  • Defined in types/api/ca-file-list-response.ts:14
  • +
  • Defined in types/common.ts:318
  • +
  • Defined in query-platforms.ts:38
  • +
  • Defined in types/common.ts:353
  • +
  • Defined in query-sources.ts:55
  • +
  • Defined in read-file.ts:32
  • +
  • Defined in types/common.ts:311
  • +
  • Defined in query-sources.ts:61
  • +
  • Defined in query-sources.ts:63
  • +
  • Defined in types/common.ts:41
  • +
  • Defined in read-all-files.ts:29
  • +
  • Defined in types/common.ts:176
  • +
  • Defined in types/common.ts:139
  • +
  • Defined in types/common.ts:162
  • +
  • Defined in types/common.ts:171
  • +
  • Defined in types/api/session.ts:13
  • +
  • Defined in types/common.ts:156
  • +
  • Defined in types/user-access-token.ts:35
  • +
  • Defined in types/common.ts:306