@extrahorizon/javascript-sdk 8.2.0-test
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/CHANGELOG.md +1161 -0
- package/LICENSE +21 -0
- package/README.md +119 -0
- package/build/index.cjs.js +1 -0
- package/build/index.mjs +1 -0
- package/build/types/btoa.d.ts +6 -0
- package/build/types/client.d.ts +136 -0
- package/build/types/constants.d.ts +15 -0
- package/build/types/errorHandler.d.ts +2 -0
- package/build/types/errors.d.ts +332 -0
- package/build/types/http/client.d.ts +2 -0
- package/build/types/http/index.d.ts +4 -0
- package/build/types/http/interceptors.d.ts +9 -0
- package/build/types/http/oAuth1Signature.d.ts +14 -0
- package/build/types/http/oauth1.d.ts +3 -0
- package/build/types/http/oauth2.d.ts +3 -0
- package/build/types/http/proxy.d.ts +3 -0
- package/build/types/http/types.d.ts +331 -0
- package/build/types/http/utils.d.ts +21 -0
- package/build/types/index.d.ts +9 -0
- package/build/types/mock.d.ts +43 -0
- package/build/types/mockType.d.ts +1511 -0
- package/build/types/parseStoredCredentials.d.ts +11 -0
- package/build/types/rql/index.d.ts +16 -0
- package/build/types/rql/parser.d.ts +1 -0
- package/build/types/rql/types.d.ts +168 -0
- package/build/types/services/auth/applications/index.d.ts +5 -0
- package/build/types/services/auth/applications/types.d.ts +190 -0
- package/build/types/services/auth/index.d.ts +3 -0
- package/build/types/services/auth/oauth1/index.d.ts +5 -0
- package/build/types/services/auth/oauth1/types.d.ts +63 -0
- package/build/types/services/auth/oauth2/index.d.ts +5 -0
- package/build/types/services/auth/oauth2/types.d.ts +52 -0
- package/build/types/services/auth/oidc/index.d.ts +5 -0
- package/build/types/services/auth/oidc/loginAttempts/index.d.ts +5 -0
- package/build/types/services/auth/oidc/loginAttempts/types.d.ts +67 -0
- package/build/types/services/auth/oidc/providers/index.d.ts +5 -0
- package/build/types/services/auth/oidc/providers/types.d.ts +144 -0
- package/build/types/services/auth/oidc/types.d.ts +40 -0
- package/build/types/services/auth/types.d.ts +39 -0
- package/build/types/services/auth/users/index.d.ts +5 -0
- package/build/types/services/auth/users/types.d.ts +121 -0
- package/build/types/services/configurations/general.d.ts +5 -0
- package/build/types/services/configurations/groups.d.ts +5 -0
- package/build/types/services/configurations/index.d.ts +10 -0
- package/build/types/services/configurations/patients.d.ts +5 -0
- package/build/types/services/configurations/staff.d.ts +5 -0
- package/build/types/services/configurations/types.d.ts +222 -0
- package/build/types/services/configurations/users.d.ts +5 -0
- package/build/types/services/data/comments.d.ts +5 -0
- package/build/types/services/data/documents.d.ts +5 -0
- package/build/types/services/data/index.d.ts +13 -0
- package/build/types/services/data/indexes.d.ts +5 -0
- package/build/types/services/data/infrastructure.d.ts +10 -0
- package/build/types/services/data/json-schema.d.ts +121 -0
- package/build/types/services/data/properties.d.ts +5 -0
- package/build/types/services/data/schemas.d.ts +5 -0
- package/build/types/services/data/statuses.d.ts +5 -0
- package/build/types/services/data/transitions.d.ts +5 -0
- package/build/types/services/data/types.d.ts +899 -0
- package/build/types/services/dispatchers/actions/index.d.ts +5 -0
- package/build/types/services/dispatchers/actions/types.d.ts +78 -0
- package/build/types/services/dispatchers/dispatchers/index.d.ts +5 -0
- package/build/types/services/dispatchers/dispatchers/types.d.ts +111 -0
- package/build/types/services/dispatchers/index.d.ts +7 -0
- package/build/types/services/dispatchers/types.d.ts +2 -0
- package/build/types/services/events/events.d.ts +5 -0
- package/build/types/services/events/health.d.ts +9 -0
- package/build/types/services/events/index.d.ts +6 -0
- package/build/types/services/events/subscriptions.d.ts +5 -0
- package/build/types/services/events/types.d.ts +90 -0
- package/build/types/services/files/files.d.ts +5 -0
- package/build/types/services/files/formHelpers.d.ts +3 -0
- package/build/types/services/files/index.d.ts +6 -0
- package/build/types/services/files/settings/index.d.ts +5 -0
- package/build/types/services/files/settings/types.d.ts +38 -0
- package/build/types/services/files/tokens.d.ts +5 -0
- package/build/types/services/files/types.d.ts +185 -0
- package/build/types/services/helpers.d.ts +7 -0
- package/build/types/services/http-client.d.ts +22 -0
- package/build/types/services/index.d.ts +15 -0
- package/build/types/services/localizations/countries.d.ts +5 -0
- package/build/types/services/localizations/health.d.ts +9 -0
- package/build/types/services/localizations/index.d.ts +4 -0
- package/build/types/services/localizations/languages.d.ts +5 -0
- package/build/types/services/localizations/localizations.d.ts +5 -0
- package/build/types/services/localizations/types.d.ts +145 -0
- package/build/types/services/logs/access/index.d.ts +5 -0
- package/build/types/services/logs/access/types.d.ts +41 -0
- package/build/types/services/logs/index.d.ts +3 -0
- package/build/types/services/logs/types.d.ts +4 -0
- package/build/types/services/mails/index.d.ts +3 -0
- package/build/types/services/mails/mails.d.ts +5 -0
- package/build/types/services/mails/types.d.ts +141 -0
- package/build/types/services/notifications/health.d.ts +9 -0
- package/build/types/services/notifications/index.d.ts +7 -0
- package/build/types/services/notifications/notifications.d.ts +5 -0
- package/build/types/services/notifications/settings.d.ts +5 -0
- package/build/types/services/notifications/types.d.ts +222 -0
- package/build/types/services/payments/appStore.d.ts +5 -0
- package/build/types/services/payments/appStoreSubscriptions.d.ts +5 -0
- package/build/types/services/payments/health.d.ts +9 -0
- package/build/types/services/payments/index.d.ts +15 -0
- package/build/types/services/payments/orders.d.ts +5 -0
- package/build/types/services/payments/playStore.d.ts +5 -0
- package/build/types/services/payments/playStoreHistory.d.ts +5 -0
- package/build/types/services/payments/playStoreSubscriptions.d.ts +5 -0
- package/build/types/services/payments/products.d.ts +5 -0
- package/build/types/services/payments/stripe.d.ts +5 -0
- package/build/types/services/payments/subscriptions.d.ts +5 -0
- package/build/types/services/payments/types.d.ts +1189 -0
- package/build/types/services/profiles/groups.d.ts +5 -0
- package/build/types/services/profiles/health.d.ts +9 -0
- package/build/types/services/profiles/index.d.ts +9 -0
- package/build/types/services/profiles/logs.d.ts +5 -0
- package/build/types/services/profiles/profiles.d.ts +5 -0
- package/build/types/services/profiles/types.d.ts +369 -0
- package/build/types/services/tasks/api/index.d.ts +5 -0
- package/build/types/services/tasks/api/types.d.ts +146 -0
- package/build/types/services/tasks/apiRequests/index.d.ts +5 -0
- package/build/types/services/tasks/apiRequests/logs/index.d.ts +5 -0
- package/build/types/services/tasks/apiRequests/logs/types.d.ts +25 -0
- package/build/types/services/tasks/apiRequests/types.d.ts +83 -0
- package/build/types/services/tasks/functions/index.d.ts +5 -0
- package/build/types/services/tasks/functions/types.d.ts +27 -0
- package/build/types/services/tasks/index.d.ts +15 -0
- package/build/types/services/tasks/logs/index.d.ts +5 -0
- package/build/types/services/tasks/logs/types.d.ts +28 -0
- package/build/types/services/tasks/schedules/index.d.ts +5 -0
- package/build/types/services/tasks/schedules/types.d.ts +88 -0
- package/build/types/services/tasks/tasks.d.ts +5 -0
- package/build/types/services/tasks/types.d.ts +107 -0
- package/build/types/services/templates/index.d.ts +3 -0
- package/build/types/services/templates/templates.d.ts +5 -0
- package/build/types/services/templates/types.d.ts +202 -0
- package/build/types/services/types.d.ts +77 -0
- package/build/types/services/users/activationRequests/index.d.ts +4 -0
- package/build/types/services/users/activationRequests/types.d.ts +70 -0
- package/build/types/services/users/forgotPasswordRequests/index.d.ts +4 -0
- package/build/types/services/users/forgotPasswordRequests/types.d.ts +70 -0
- package/build/types/services/users/globalRoles.d.ts +5 -0
- package/build/types/services/users/groupRoles.d.ts +5 -0
- package/build/types/services/users/health.d.ts +9 -0
- package/build/types/services/users/index.d.ts +16 -0
- package/build/types/services/users/settings/index.d.ts +4 -0
- package/build/types/services/users/settings/types.d.ts +47 -0
- package/build/types/services/users/types.d.ts +1055 -0
- package/build/types/services/users/users.d.ts +5 -0
- package/build/types/sha1.d.ts +11 -0
- package/build/types/types.d.ts +102 -0
- package/build/types/utils.d.ts +4 -0
- package/build/types/version.d.ts +1 -0
- package/package.json +57 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { AffectedRecords, OptionsBase, OptionsWithRql, PagedResult } from '../../types';
|
|
2
|
+
export interface ActivationRequestsService {
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve a list of activation requests
|
|
5
|
+
*
|
|
6
|
+
* Permission | Scope | Effect
|
|
7
|
+
* - | - | -
|
|
8
|
+
* `VIEW_ACTIVATION_REQUESTS` | global | **Required** for this endpoint
|
|
9
|
+
*/
|
|
10
|
+
find(options?: OptionsWithRql): Promise<PagedResult<ActivationRequest>>;
|
|
11
|
+
/**
|
|
12
|
+
* Find an activation request
|
|
13
|
+
*
|
|
14
|
+
* Permission | Scope | Effect
|
|
15
|
+
* - | - | -
|
|
16
|
+
* `VIEW_ACTIVATION_REQUESTS` | global | **Required** for this endpoint
|
|
17
|
+
*/
|
|
18
|
+
findFirst(options?: OptionsWithRql): Promise<ActivationRequest>;
|
|
19
|
+
/**
|
|
20
|
+
* Find an activation request by its id
|
|
21
|
+
*
|
|
22
|
+
* Permission | Scope | Effect
|
|
23
|
+
* - | - | -
|
|
24
|
+
* `VIEW_ACTIVATION_REQUESTS` | global | **Required** for this endpoint
|
|
25
|
+
*/
|
|
26
|
+
findById(id: string, options?: OptionsWithRql): Promise<ActivationRequest>;
|
|
27
|
+
/**
|
|
28
|
+
* Find an activation request for a user id
|
|
29
|
+
*
|
|
30
|
+
* Permission | Scope | Effect
|
|
31
|
+
* - | - | -
|
|
32
|
+
* `VIEW_ACTIVATION_REQUESTS` | global | **Required** for this endpoint
|
|
33
|
+
*/
|
|
34
|
+
findByUserId(userId: string, options?: OptionsWithRql): Promise<ActivationRequest>;
|
|
35
|
+
/**
|
|
36
|
+
* Remove an activation request
|
|
37
|
+
*
|
|
38
|
+
* Permission | Scope | Effect
|
|
39
|
+
* - | - | -
|
|
40
|
+
* `DELETE_ACTIVATION_REQUEST` | global | **Required** for this endpoint
|
|
41
|
+
*/
|
|
42
|
+
remove(id: string, options?: OptionsBase): Promise<AffectedRecords>;
|
|
43
|
+
}
|
|
44
|
+
export interface ActivationRequest {
|
|
45
|
+
id: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
mode?: 'hash' | 'pin_code';
|
|
48
|
+
/**
|
|
49
|
+
* The amount of times the account activation flow was initiated without completion.
|
|
50
|
+
*/
|
|
51
|
+
requestCount?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The last time the account activation flow was initiated.
|
|
54
|
+
*/
|
|
55
|
+
lastRequestTimestamp?: number;
|
|
56
|
+
/**
|
|
57
|
+
* (Pin code mode only) the amount of attempts with an incorrect pin code for the current activation request.
|
|
58
|
+
*/
|
|
59
|
+
failedAttempts?: number;
|
|
60
|
+
/**
|
|
61
|
+
* (Pin code mode only) the last time an incorrect pin code for the current activation request.
|
|
62
|
+
*/
|
|
63
|
+
lastFailedAttemptTimestamp?: Date;
|
|
64
|
+
/**
|
|
65
|
+
* The time until which the activation request can be used.
|
|
66
|
+
*/
|
|
67
|
+
expiryTimestamp?: Date;
|
|
68
|
+
creationTimestamp: Date;
|
|
69
|
+
updateTimestamp: Date;
|
|
70
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { HttpInstance } from '../../../types';
|
|
2
|
+
import { HttpClient } from '../../http-client';
|
|
3
|
+
import { ForgotPasswordRequestsService } from './types';
|
|
4
|
+
export declare const forgotPasswordRequestsService: (client: HttpClient, httpWithAuth: HttpInstance) => ForgotPasswordRequestsService;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { AffectedRecords, OptionsBase, OptionsWithRql, PagedResult } from '../../types';
|
|
2
|
+
export interface ForgotPasswordRequestsService {
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve a list of forgot password requests
|
|
5
|
+
*
|
|
6
|
+
* Permission | Scope | Effect
|
|
7
|
+
* - | - | -
|
|
8
|
+
* `VIEW_FORGOT_PASSWORD_REQUESTS` | global | **Required** for this endpoint
|
|
9
|
+
*/
|
|
10
|
+
find(options?: OptionsWithRql): Promise<PagedResult<ForgotPasswordRequest>>;
|
|
11
|
+
/**
|
|
12
|
+
* Find a forgot password request
|
|
13
|
+
*
|
|
14
|
+
* Permission | Scope | Effect
|
|
15
|
+
* - | - | -
|
|
16
|
+
* `VIEW_FORGOT_PASSWORD_REQUESTS` | global | **Required** for this endpoint
|
|
17
|
+
*/
|
|
18
|
+
findFirst(options?: OptionsWithRql): Promise<ForgotPasswordRequest>;
|
|
19
|
+
/**
|
|
20
|
+
* Find a forgot password request by its id
|
|
21
|
+
*
|
|
22
|
+
* Permission | Scope | Effect
|
|
23
|
+
* - | - | -
|
|
24
|
+
* `VIEW_FORGOT_PASSWORD_REQUESTS` | global | **Required** for this endpoint
|
|
25
|
+
*/
|
|
26
|
+
findById(id: string, options?: OptionsWithRql): Promise<ForgotPasswordRequest>;
|
|
27
|
+
/**
|
|
28
|
+
* Find a forgot password request for a user id
|
|
29
|
+
*
|
|
30
|
+
* Permission | Scope | Effect
|
|
31
|
+
* - | - | -
|
|
32
|
+
* `VIEW_FORGOT_PASSWORD_REQUESTS` | global | **Required** for this endpoint
|
|
33
|
+
*/
|
|
34
|
+
findByUserId(userId: string, options?: OptionsWithRql): Promise<ForgotPasswordRequest>;
|
|
35
|
+
/**
|
|
36
|
+
* Remove a forgot password request
|
|
37
|
+
*
|
|
38
|
+
* Permission | Scope | Effect
|
|
39
|
+
* - | - | -
|
|
40
|
+
* `DELETE_FORGOT_PASSWORD_REQUEST` | global | **Required** for this endpoint
|
|
41
|
+
*/
|
|
42
|
+
remove(id: string, options?: OptionsBase): Promise<AffectedRecords>;
|
|
43
|
+
}
|
|
44
|
+
export interface ForgotPasswordRequest {
|
|
45
|
+
id: string;
|
|
46
|
+
userId: string;
|
|
47
|
+
mode?: 'hash' | 'pin_code';
|
|
48
|
+
/**
|
|
49
|
+
* The amount of times the account forgot password flow was initiated without completion.
|
|
50
|
+
*/
|
|
51
|
+
requestCount?: number;
|
|
52
|
+
/**
|
|
53
|
+
* The last time the account forgot password flow was initiated.
|
|
54
|
+
*/
|
|
55
|
+
lastRequestTimestamp?: number;
|
|
56
|
+
/**
|
|
57
|
+
* (Pin code mode only) the amount of attempts with an incorrect pin code for the current forgot password request.
|
|
58
|
+
*/
|
|
59
|
+
failedAttempts?: number;
|
|
60
|
+
/**
|
|
61
|
+
* (Pin code mode only) the last time an incorrect pin code for the current forgot password request.
|
|
62
|
+
*/
|
|
63
|
+
lastFailedAttemptTimestamp?: Date;
|
|
64
|
+
/**
|
|
65
|
+
* The time until which the forgot password request can be used.
|
|
66
|
+
*/
|
|
67
|
+
expiryTimestamp?: Date;
|
|
68
|
+
creationTimestamp: Date;
|
|
69
|
+
updateTimestamp: Date;
|
|
70
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { HttpClient } from '../http-client';
|
|
3
|
+
import type { UsersGlobalRolesService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpWithAuth: HttpInstance) => UsersGlobalRolesService;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { HttpClient } from '../http-client';
|
|
3
|
+
import type { UsersGroupRolesService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpWithAuth: HttpInstance) => UsersGroupRolesService;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { ActivationRequestsService } from './activationRequests/types';
|
|
3
|
+
import { ForgotPasswordRequestsService } from './forgotPasswordRequests/types';
|
|
4
|
+
import globalRoles from './globalRoles';
|
|
5
|
+
import groupRoles from './groupRoles';
|
|
6
|
+
import health from './health';
|
|
7
|
+
import { SettingsService } from './settings/types';
|
|
8
|
+
import { UsersGlobalRolesService, UsersGroupRolesService } from './types';
|
|
9
|
+
import users from './users';
|
|
10
|
+
export declare const usersService: (httpWithAuth: HttpInstance, http: HttpInstance) => ReturnType<typeof users> & ReturnType<typeof health> & {
|
|
11
|
+
globalRoles: UsersGlobalRolesService;
|
|
12
|
+
groupRoles: UsersGroupRolesService;
|
|
13
|
+
activationRequests: ActivationRequestsService;
|
|
14
|
+
forgotPasswordRequests: ForgotPasswordRequestsService;
|
|
15
|
+
settings: SettingsService;
|
|
16
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { OptionsBase } from '../../types';
|
|
2
|
+
export interface SettingsService {
|
|
3
|
+
/**
|
|
4
|
+
* Retrieve the verification settings
|
|
5
|
+
*
|
|
6
|
+
* Permission | Scope | Effect
|
|
7
|
+
* - | - | -
|
|
8
|
+
* `VIEW_USER_VERIFICATION_SETTINGS` | global | **Required** for this endpoint
|
|
9
|
+
*/
|
|
10
|
+
getVerificationSettings(options?: OptionsBase): Promise<VerificationSettings>;
|
|
11
|
+
/**
|
|
12
|
+
* Update the verification settings
|
|
13
|
+
*
|
|
14
|
+
* Permission | Scope | Effect
|
|
15
|
+
* - | - | -
|
|
16
|
+
* `UPDATE_USER_VERIFICATION_SETTINGS` | global | **Required** for this endpoint
|
|
17
|
+
*/
|
|
18
|
+
updateVerificationSettings(data: Partial<VerificationSettings>, options?: OptionsBase): Promise<VerificationSettings>;
|
|
19
|
+
}
|
|
20
|
+
export interface VerificationSettings {
|
|
21
|
+
/**
|
|
22
|
+
* Allow use of the pin code mode for the account activation flow.
|
|
23
|
+
*/
|
|
24
|
+
enablePinCodeActivationRequests: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Allow use of the pin code mode for the forgot password flow.
|
|
27
|
+
*/
|
|
28
|
+
enablePinCodeForgotPasswordRequests: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Turns on the following limits for the account activation flow in hash mode:
|
|
31
|
+
* - Limits the time a hash is valid to 60 minutes.
|
|
32
|
+
* - Limits the amount of times the flow can be initiated without success to 5.
|
|
33
|
+
* - Requires the time between initiations to be at least 5 minutes.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated Security feature. Only should be disabled while existing applications implement the feature, otherwise this feature should always be enabled.
|
|
36
|
+
*/
|
|
37
|
+
limitHashActivationRequests: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Turns on the following limits for the forgot password flow in hash mode:
|
|
40
|
+
* - Limits the time a hash is valid to 60 minutes.
|
|
41
|
+
* - Limits the amount of times the flow can be initiated without success to 5.
|
|
42
|
+
* - Requires the time between initiations to be at least 5 minutes.
|
|
43
|
+
*
|
|
44
|
+
* @deprecated Security feature. Only should be disabled while existing applications implement the feature, otherwise this feature should always be enabled.
|
|
45
|
+
*/
|
|
46
|
+
limitHashForgotPasswordRequests: boolean;
|
|
47
|
+
}
|