@extrahorizon/javascript-sdk 8.2.0 → 8.2.1-dev-49-61b4511
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 +1182 -1161
- package/README.md +108 -119
- package/build/index.cjs.js +1 -1
- package/build/index.mjs +1 -1
- package/build/types/btoa.d.ts +6 -6
- package/build/types/client.d.ts +136 -136
- package/build/types/constants.d.ts +15 -15
- package/build/types/errorHandler.d.ts +2 -2
- package/build/types/errors.d.ts +332 -332
- package/build/types/http/client.d.ts +2 -2
- package/build/types/http/index.d.ts +4 -4
- package/build/types/http/interceptors.d.ts +9 -9
- package/build/types/http/oAuth1Signature.d.ts +14 -14
- package/build/types/http/oauth1.d.ts +3 -3
- package/build/types/http/oauth2.d.ts +3 -3
- package/build/types/http/proxy.d.ts +3 -3
- package/build/types/http/types.d.ts +331 -331
- package/build/types/http/utils.d.ts +21 -21
- package/build/types/index.d.ts +9 -9
- package/build/types/mock.d.ts +43 -43
- package/build/types/mockType.d.ts +1547 -1511
- package/build/types/parseStoredCredentials.d.ts +11 -11
- package/build/types/rql/index.d.ts +16 -16
- package/build/types/rql/parser.d.ts +1 -1
- package/build/types/rql/types.d.ts +168 -168
- package/build/types/services/auth/applications/index.d.ts +5 -5
- package/build/types/services/auth/applications/types.d.ts +260 -190
- package/build/types/services/auth/index.d.ts +3 -3
- package/build/types/services/auth/oauth1/index.d.ts +5 -5
- package/build/types/services/auth/oauth1/types.d.ts +63 -63
- package/build/types/services/auth/oauth2/index.d.ts +5 -5
- package/build/types/services/auth/oauth2/types.d.ts +52 -52
- package/build/types/services/auth/oidc/index.d.ts +5 -5
- package/build/types/services/auth/oidc/loginAttempts/index.d.ts +5 -5
- package/build/types/services/auth/oidc/loginAttempts/types.d.ts +67 -67
- package/build/types/services/auth/oidc/providers/index.d.ts +5 -5
- package/build/types/services/auth/oidc/providers/types.d.ts +144 -144
- package/build/types/services/auth/oidc/types.d.ts +40 -40
- package/build/types/services/auth/types.d.ts +39 -39
- package/build/types/services/auth/users/index.d.ts +5 -5
- package/build/types/services/auth/users/types.d.ts +121 -121
- package/build/types/services/configurations/general.d.ts +5 -5
- package/build/types/services/configurations/groups.d.ts +5 -5
- package/build/types/services/configurations/index.d.ts +10 -10
- package/build/types/services/configurations/patients.d.ts +5 -5
- package/build/types/services/configurations/staff.d.ts +5 -5
- package/build/types/services/configurations/types.d.ts +222 -222
- package/build/types/services/configurations/users.d.ts +5 -5
- package/build/types/services/data/comments.d.ts +5 -5
- package/build/types/services/data/documents.d.ts +5 -5
- package/build/types/services/data/index.d.ts +13 -13
- package/build/types/services/data/indexes.d.ts +5 -5
- package/build/types/services/data/infrastructure.d.ts +10 -10
- package/build/types/services/data/json-schema.d.ts +121 -121
- package/build/types/services/data/properties.d.ts +5 -5
- package/build/types/services/data/schemas.d.ts +5 -5
- package/build/types/services/data/statuses.d.ts +5 -5
- package/build/types/services/data/transitions.d.ts +5 -5
- package/build/types/services/data/types.d.ts +899 -899
- package/build/types/services/dispatchers/actions/index.d.ts +5 -5
- package/build/types/services/dispatchers/actions/types.d.ts +78 -78
- package/build/types/services/dispatchers/dispatchers/index.d.ts +5 -5
- package/build/types/services/dispatchers/dispatchers/types.d.ts +111 -111
- package/build/types/services/dispatchers/index.d.ts +7 -7
- package/build/types/services/dispatchers/types.d.ts +2 -2
- package/build/types/services/events/events.d.ts +5 -5
- package/build/types/services/events/health.d.ts +9 -9
- package/build/types/services/events/index.d.ts +6 -6
- package/build/types/services/events/subscriptions.d.ts +5 -5
- package/build/types/services/events/types.d.ts +90 -90
- package/build/types/services/files/files.d.ts +5 -5
- package/build/types/services/files/formHelpers.d.ts +3 -3
- package/build/types/services/files/index.d.ts +6 -6
- package/build/types/services/files/settings/index.d.ts +5 -5
- package/build/types/services/files/settings/types.d.ts +38 -38
- package/build/types/services/files/tokens.d.ts +5 -5
- package/build/types/services/files/types.d.ts +185 -185
- package/build/types/services/helpers.d.ts +7 -7
- package/build/types/services/http-client.d.ts +22 -22
- package/build/types/services/index.d.ts +15 -15
- package/build/types/services/localizations/countries.d.ts +5 -5
- package/build/types/services/localizations/health.d.ts +9 -9
- package/build/types/services/localizations/index.d.ts +4 -4
- package/build/types/services/localizations/languages.d.ts +5 -5
- package/build/types/services/localizations/localizations.d.ts +5 -5
- package/build/types/services/localizations/types.d.ts +145 -145
- package/build/types/services/logs/access/index.d.ts +5 -5
- package/build/types/services/logs/access/types.d.ts +41 -41
- package/build/types/services/logs/index.d.ts +3 -3
- package/build/types/services/logs/types.d.ts +4 -4
- package/build/types/services/mails/index.d.ts +3 -3
- package/build/types/services/mails/mails.d.ts +5 -5
- package/build/types/services/mails/types.d.ts +141 -141
- package/build/types/services/notifications/health.d.ts +9 -9
- package/build/types/services/notifications/index.d.ts +7 -7
- package/build/types/services/notifications/notifications.d.ts +5 -5
- package/build/types/services/notifications/settings.d.ts +5 -5
- package/build/types/services/notifications/types.d.ts +222 -222
- package/build/types/services/payments/appStore.d.ts +5 -5
- package/build/types/services/payments/appStoreSubscriptions.d.ts +5 -5
- package/build/types/services/payments/health.d.ts +9 -9
- package/build/types/services/payments/index.d.ts +15 -15
- package/build/types/services/payments/orders.d.ts +5 -5
- package/build/types/services/payments/playStore.d.ts +5 -5
- package/build/types/services/payments/playStoreHistory.d.ts +5 -5
- package/build/types/services/payments/playStoreSubscriptions.d.ts +5 -5
- package/build/types/services/payments/products.d.ts +5 -5
- package/build/types/services/payments/stripe.d.ts +5 -5
- package/build/types/services/payments/subscriptions.d.ts +5 -5
- package/build/types/services/payments/types.d.ts +1189 -1189
- package/build/types/services/profiles/groups.d.ts +5 -5
- package/build/types/services/profiles/health.d.ts +9 -9
- package/build/types/services/profiles/index.d.ts +9 -9
- package/build/types/services/profiles/logs.d.ts +5 -5
- package/build/types/services/profiles/profiles.d.ts +5 -5
- package/build/types/services/profiles/types.d.ts +370 -369
- package/build/types/services/tasks/api/index.d.ts +5 -5
- package/build/types/services/tasks/api/types.d.ts +146 -146
- package/build/types/services/tasks/apiRequests/index.d.ts +5 -5
- package/build/types/services/tasks/apiRequests/logs/index.d.ts +5 -5
- package/build/types/services/tasks/apiRequests/logs/types.d.ts +25 -25
- package/build/types/services/tasks/apiRequests/types.d.ts +83 -83
- package/build/types/services/tasks/functions/index.d.ts +5 -5
- package/build/types/services/tasks/functions/types.d.ts +27 -27
- package/build/types/services/tasks/index.d.ts +15 -15
- package/build/types/services/tasks/logs/index.d.ts +5 -5
- package/build/types/services/tasks/logs/types.d.ts +28 -28
- package/build/types/services/tasks/schedules/index.d.ts +5 -5
- package/build/types/services/tasks/schedules/types.d.ts +88 -88
- package/build/types/services/tasks/tasks.d.ts +5 -5
- package/build/types/services/tasks/types.d.ts +107 -107
- package/build/types/services/templates/index.d.ts +3 -3
- package/build/types/services/templates/templates.d.ts +5 -5
- package/build/types/services/templates/types.d.ts +202 -202
- package/build/types/services/types.d.ts +77 -77
- package/build/types/services/users/activationRequests/index.d.ts +4 -4
- package/build/types/services/users/activationRequests/types.d.ts +70 -70
- package/build/types/services/users/forgotPasswordRequests/index.d.ts +4 -4
- package/build/types/services/users/forgotPasswordRequests/types.d.ts +70 -70
- package/build/types/services/users/globalRoles.d.ts +5 -5
- package/build/types/services/users/groupRoles.d.ts +5 -5
- package/build/types/services/users/health.d.ts +9 -9
- package/build/types/services/users/index.d.ts +16 -16
- package/build/types/services/users/settings/index.d.ts +4 -4
- package/build/types/services/users/settings/types.d.ts +47 -47
- package/build/types/services/users/types.d.ts +1202 -1055
- package/build/types/services/users/users.d.ts +5 -5
- package/build/types/sha1.d.ts +11 -11
- package/build/types/types.d.ts +102 -102
- package/build/types/utils.d.ts +4 -4
- package/build/types/version.d.ts +1 -1
- package/package.json +62 -62
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
import { RQLString } from '../../rql';
|
|
2
|
-
import { AffectedRecords, OptionsBase, OptionsWithRql, PagedResult } from '../types';
|
|
3
|
-
export declare enum SupportedLanguageCodes {
|
|
4
|
-
EN = "EN",
|
|
5
|
-
NL = "NL",
|
|
6
|
-
DE = "DE",
|
|
7
|
-
FR = "FR",
|
|
8
|
-
DA = "DA",
|
|
9
|
-
ES = "ES",
|
|
10
|
-
IT = "IT"
|
|
11
|
-
}
|
|
12
|
-
declare type SupportedLanguageCodesValues = keyof typeof SupportedLanguageCodes;
|
|
13
|
-
export declare type MappedText = Record<SupportedLanguageCodesValues, string>;
|
|
14
|
-
export interface Localization {
|
|
15
|
-
key: string;
|
|
16
|
-
text: {
|
|
17
|
-
[K in SupportedLanguageCodesValues]?: string;
|
|
18
|
-
};
|
|
19
|
-
creationTimestamp?: Date;
|
|
20
|
-
updateTimestamp?: Date;
|
|
21
|
-
}
|
|
22
|
-
export interface BulkLocalization {
|
|
23
|
-
localizations?: Array<Pick<Localization, 'key' | 'text'>>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* The 'created' field shows how many new localizations were succesfully created. The 'existing' field shows how many localizations with the given keys already existed. Eventually, the 'existing_ids' fields shows exactly which localizations already existed. Old localizations will not be overwritten by new ones.
|
|
27
|
-
*/
|
|
28
|
-
export interface BulkCreationResponse {
|
|
29
|
-
created?: number;
|
|
30
|
-
existing?: number;
|
|
31
|
-
existingIds?: string[];
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* The 'updated' field shows how many localizations were succesfully updated. The 'missing' field shows how many localizations with the given keys couldn't be found. Eventually, the 'missing_ids' fields shows exactly which localizations couldn't be found and are thus not updated.
|
|
35
|
-
*/
|
|
36
|
-
export interface BulkUpdateResponse {
|
|
37
|
-
updated?: number;
|
|
38
|
-
missing?: number;
|
|
39
|
-
missingIds?: string[];
|
|
40
|
-
}
|
|
41
|
-
export interface LocalizationRequest {
|
|
42
|
-
localizationCodes: SupportedLanguageCodesValues[];
|
|
43
|
-
localizations: string[];
|
|
44
|
-
}
|
|
45
|
-
export interface CountriesService {
|
|
46
|
-
/**
|
|
47
|
-
* Retrieve a list of all the defined countries
|
|
48
|
-
*
|
|
49
|
-
* Permission | Scope | Effect
|
|
50
|
-
* - | - | -
|
|
51
|
-
* none | | Everyone can use this endpoint
|
|
52
|
-
* @returns PagedResult<string>
|
|
53
|
-
*/
|
|
54
|
-
getCountries(options?: OptionsBase): Promise<string[]>;
|
|
55
|
-
/**
|
|
56
|
-
* Retrieve a list of all the defined regions for the specified country code
|
|
57
|
-
*
|
|
58
|
-
* Permission | Scope | Effect
|
|
59
|
-
* - | - | -
|
|
60
|
-
* none | | Everyone can use this endpoint
|
|
61
|
-
* @param country The country code (as defined in ISO 3166-1)
|
|
62
|
-
* @returns PagedResult<string>
|
|
63
|
-
* @throws {ResourceUnknownError}
|
|
64
|
-
*/
|
|
65
|
-
getRegions(country: string, options?: OptionsBase): Promise<string[]>;
|
|
66
|
-
}
|
|
67
|
-
export interface LanguagesService {
|
|
68
|
-
/**
|
|
69
|
-
* Retrieve a list of all the defined languages
|
|
70
|
-
*
|
|
71
|
-
* Permission | Scope | Effect
|
|
72
|
-
* - | - | -
|
|
73
|
-
* none | | Everyone can use this endpoint
|
|
74
|
-
* @returns PagedResult<SupportedLanguageCodes>
|
|
75
|
-
*/
|
|
76
|
-
getLanguages(options?: OptionsBase): Promise<string[]>;
|
|
77
|
-
}
|
|
78
|
-
export interface LocalizationsService {
|
|
79
|
-
/**
|
|
80
|
-
* Returns all possible localizations stored in this service
|
|
81
|
-
*
|
|
82
|
-
* Permission | Scope | Effect
|
|
83
|
-
* - | - | -
|
|
84
|
-
* none | | Everyone can use this endpoint
|
|
85
|
-
* @param rql Add filters to the requested list.
|
|
86
|
-
* @returns PagedResult<Localization>
|
|
87
|
-
*/
|
|
88
|
-
find(options?: OptionsWithRql): Promise<PagedResult<Localization>>;
|
|
89
|
-
/**
|
|
90
|
-
* Find By Key
|
|
91
|
-
* @param key the key to search for
|
|
92
|
-
* @param rql an optional rql string
|
|
93
|
-
* @returns the first element found
|
|
94
|
-
*/
|
|
95
|
-
findByKey(key: string, options?: OptionsWithRql): Promise<Localization>;
|
|
96
|
-
/**
|
|
97
|
-
* Find First
|
|
98
|
-
* @param rql an optional rql string
|
|
99
|
-
* @returns the first element found
|
|
100
|
-
*/
|
|
101
|
-
findFirst(options?: OptionsWithRql): Promise<Localization>;
|
|
102
|
-
/**
|
|
103
|
-
* Create new localizations
|
|
104
|
-
*
|
|
105
|
-
* Permission | Scope | Effect
|
|
106
|
-
* - | - | -
|
|
107
|
-
* `CREATE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
108
|
-
* @param requestBody BulkLocalization
|
|
109
|
-
* @returns BulkCreationResponse
|
|
110
|
-
* @throws {DefaultLocalizationMissingError}
|
|
111
|
-
*/
|
|
112
|
-
create(requestBody: BulkLocalization, options?: OptionsBase): Promise<BulkCreationResponse>;
|
|
113
|
-
/**
|
|
114
|
-
* Update localizations
|
|
115
|
-
*
|
|
116
|
-
* Permission | Scope | Effect
|
|
117
|
-
* - | - | -
|
|
118
|
-
* `UPDATE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
119
|
-
* @param requestBody BulkLocalization
|
|
120
|
-
* @returns BulkUpdateResponse
|
|
121
|
-
*/
|
|
122
|
-
update(requestBody: BulkLocalization, options?: OptionsBase): Promise<BulkUpdateResponse>;
|
|
123
|
-
/**
|
|
124
|
-
* Delete localizations
|
|
125
|
-
*
|
|
126
|
-
* Permission | Scope | Effect
|
|
127
|
-
* - | - | -
|
|
128
|
-
* `DELETE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
129
|
-
* @param rql Add filters to the requested list, **required**.
|
|
130
|
-
* @returns AffectedRecords
|
|
131
|
-
*/
|
|
132
|
-
remove(rql: RQLString, options?: OptionsBase): Promise<AffectedRecords>;
|
|
133
|
-
/**
|
|
134
|
-
* Request localizations of multiple keys in a specific language
|
|
135
|
-
* The default language (EN) is always included in the response as a fallback in case there is no translation available for the specified language
|
|
136
|
-
*
|
|
137
|
-
* Permission | Scope | Effect
|
|
138
|
-
* - | - | -
|
|
139
|
-
* none | | Everyone can use this endpoint
|
|
140
|
-
* @param requestBody LocalizationRequest
|
|
141
|
-
* @returns Record<string, MappedText>
|
|
142
|
-
*/
|
|
143
|
-
getByKeys(requestBody: LocalizationRequest, options?: OptionsBase): Promise<Record<string, MappedText>>;
|
|
144
|
-
}
|
|
145
|
-
export {};
|
|
1
|
+
import { RQLString } from '../../rql';
|
|
2
|
+
import { AffectedRecords, OptionsBase, OptionsWithRql, PagedResult } from '../types';
|
|
3
|
+
export declare enum SupportedLanguageCodes {
|
|
4
|
+
EN = "EN",
|
|
5
|
+
NL = "NL",
|
|
6
|
+
DE = "DE",
|
|
7
|
+
FR = "FR",
|
|
8
|
+
DA = "DA",
|
|
9
|
+
ES = "ES",
|
|
10
|
+
IT = "IT"
|
|
11
|
+
}
|
|
12
|
+
declare type SupportedLanguageCodesValues = keyof typeof SupportedLanguageCodes;
|
|
13
|
+
export declare type MappedText = Record<SupportedLanguageCodesValues, string>;
|
|
14
|
+
export interface Localization {
|
|
15
|
+
key: string;
|
|
16
|
+
text: {
|
|
17
|
+
[K in SupportedLanguageCodesValues]?: string;
|
|
18
|
+
};
|
|
19
|
+
creationTimestamp?: Date;
|
|
20
|
+
updateTimestamp?: Date;
|
|
21
|
+
}
|
|
22
|
+
export interface BulkLocalization {
|
|
23
|
+
localizations?: Array<Pick<Localization, 'key' | 'text'>>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The 'created' field shows how many new localizations were succesfully created. The 'existing' field shows how many localizations with the given keys already existed. Eventually, the 'existing_ids' fields shows exactly which localizations already existed. Old localizations will not be overwritten by new ones.
|
|
27
|
+
*/
|
|
28
|
+
export interface BulkCreationResponse {
|
|
29
|
+
created?: number;
|
|
30
|
+
existing?: number;
|
|
31
|
+
existingIds?: string[];
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* The 'updated' field shows how many localizations were succesfully updated. The 'missing' field shows how many localizations with the given keys couldn't be found. Eventually, the 'missing_ids' fields shows exactly which localizations couldn't be found and are thus not updated.
|
|
35
|
+
*/
|
|
36
|
+
export interface BulkUpdateResponse {
|
|
37
|
+
updated?: number;
|
|
38
|
+
missing?: number;
|
|
39
|
+
missingIds?: string[];
|
|
40
|
+
}
|
|
41
|
+
export interface LocalizationRequest {
|
|
42
|
+
localizationCodes: SupportedLanguageCodesValues[];
|
|
43
|
+
localizations: string[];
|
|
44
|
+
}
|
|
45
|
+
export interface CountriesService {
|
|
46
|
+
/**
|
|
47
|
+
* Retrieve a list of all the defined countries
|
|
48
|
+
*
|
|
49
|
+
* Permission | Scope | Effect
|
|
50
|
+
* - | - | -
|
|
51
|
+
* none | | Everyone can use this endpoint
|
|
52
|
+
* @returns PagedResult<string>
|
|
53
|
+
*/
|
|
54
|
+
getCountries(options?: OptionsBase): Promise<string[]>;
|
|
55
|
+
/**
|
|
56
|
+
* Retrieve a list of all the defined regions for the specified country code
|
|
57
|
+
*
|
|
58
|
+
* Permission | Scope | Effect
|
|
59
|
+
* - | - | -
|
|
60
|
+
* none | | Everyone can use this endpoint
|
|
61
|
+
* @param country The country code (as defined in ISO 3166-1)
|
|
62
|
+
* @returns PagedResult<string>
|
|
63
|
+
* @throws {ResourceUnknownError}
|
|
64
|
+
*/
|
|
65
|
+
getRegions(country: string, options?: OptionsBase): Promise<string[]>;
|
|
66
|
+
}
|
|
67
|
+
export interface LanguagesService {
|
|
68
|
+
/**
|
|
69
|
+
* Retrieve a list of all the defined languages
|
|
70
|
+
*
|
|
71
|
+
* Permission | Scope | Effect
|
|
72
|
+
* - | - | -
|
|
73
|
+
* none | | Everyone can use this endpoint
|
|
74
|
+
* @returns PagedResult<SupportedLanguageCodes>
|
|
75
|
+
*/
|
|
76
|
+
getLanguages(options?: OptionsBase): Promise<string[]>;
|
|
77
|
+
}
|
|
78
|
+
export interface LocalizationsService {
|
|
79
|
+
/**
|
|
80
|
+
* Returns all possible localizations stored in this service
|
|
81
|
+
*
|
|
82
|
+
* Permission | Scope | Effect
|
|
83
|
+
* - | - | -
|
|
84
|
+
* none | | Everyone can use this endpoint
|
|
85
|
+
* @param rql Add filters to the requested list.
|
|
86
|
+
* @returns PagedResult<Localization>
|
|
87
|
+
*/
|
|
88
|
+
find(options?: OptionsWithRql): Promise<PagedResult<Localization>>;
|
|
89
|
+
/**
|
|
90
|
+
* Find By Key
|
|
91
|
+
* @param key the key to search for
|
|
92
|
+
* @param rql an optional rql string
|
|
93
|
+
* @returns the first element found
|
|
94
|
+
*/
|
|
95
|
+
findByKey(key: string, options?: OptionsWithRql): Promise<Localization>;
|
|
96
|
+
/**
|
|
97
|
+
* Find First
|
|
98
|
+
* @param rql an optional rql string
|
|
99
|
+
* @returns the first element found
|
|
100
|
+
*/
|
|
101
|
+
findFirst(options?: OptionsWithRql): Promise<Localization>;
|
|
102
|
+
/**
|
|
103
|
+
* Create new localizations
|
|
104
|
+
*
|
|
105
|
+
* Permission | Scope | Effect
|
|
106
|
+
* - | - | -
|
|
107
|
+
* `CREATE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
108
|
+
* @param requestBody BulkLocalization
|
|
109
|
+
* @returns BulkCreationResponse
|
|
110
|
+
* @throws {DefaultLocalizationMissingError}
|
|
111
|
+
*/
|
|
112
|
+
create(requestBody: BulkLocalization, options?: OptionsBase): Promise<BulkCreationResponse>;
|
|
113
|
+
/**
|
|
114
|
+
* Update localizations
|
|
115
|
+
*
|
|
116
|
+
* Permission | Scope | Effect
|
|
117
|
+
* - | - | -
|
|
118
|
+
* `UPDATE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
119
|
+
* @param requestBody BulkLocalization
|
|
120
|
+
* @returns BulkUpdateResponse
|
|
121
|
+
*/
|
|
122
|
+
update(requestBody: BulkLocalization, options?: OptionsBase): Promise<BulkUpdateResponse>;
|
|
123
|
+
/**
|
|
124
|
+
* Delete localizations
|
|
125
|
+
*
|
|
126
|
+
* Permission | Scope | Effect
|
|
127
|
+
* - | - | -
|
|
128
|
+
* `DELETE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
129
|
+
* @param rql Add filters to the requested list, **required**.
|
|
130
|
+
* @returns AffectedRecords
|
|
131
|
+
*/
|
|
132
|
+
remove(rql: RQLString, options?: OptionsBase): Promise<AffectedRecords>;
|
|
133
|
+
/**
|
|
134
|
+
* Request localizations of multiple keys in a specific language
|
|
135
|
+
* The default language (EN) is always included in the response as a fallback in case there is no translation available for the specified language
|
|
136
|
+
*
|
|
137
|
+
* Permission | Scope | Effect
|
|
138
|
+
* - | - | -
|
|
139
|
+
* none | | Everyone can use this endpoint
|
|
140
|
+
* @param requestBody LocalizationRequest
|
|
141
|
+
* @returns Record<string, MappedText>
|
|
142
|
+
*/
|
|
143
|
+
getByKeys(requestBody: LocalizationRequest, options?: OptionsBase): Promise<Record<string, MappedText>>;
|
|
144
|
+
}
|
|
145
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpInstance } from '../../../http/types';
|
|
2
|
-
import { HttpClient } from '../../http-client';
|
|
3
|
-
import { LogsAccessService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpWithAuth: HttpInstance) => LogsAccessService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { HttpInstance } from '../../../http/types';
|
|
2
|
+
import { HttpClient } from '../../http-client';
|
|
3
|
+
import { LogsAccessService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpWithAuth: HttpInstance) => LogsAccessService;
|
|
5
|
+
export default _default;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { OptionsWithRql } from '../../types';
|
|
2
|
-
export interface LogsAccessService {
|
|
3
|
-
/**
|
|
4
|
-
* ## Retrieve a list of access logs
|
|
5
|
-
*
|
|
6
|
-
* **Global Permissions:**
|
|
7
|
-
* - `VIEW_ACCESS_LOGS` - Allows a user to view access logs
|
|
8
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
9
|
-
* @returns An array of access logs {@link AccessLog AccessLog[]}
|
|
10
|
-
*/
|
|
11
|
-
find(options?: OptionsWithRql): Promise<AccessLog[]>;
|
|
12
|
-
/**
|
|
13
|
-
* ## Retrieve the first queried access log
|
|
14
|
-
*
|
|
15
|
-
* **Global Permissions:**
|
|
16
|
-
* - `VIEW_ACCESS_LOGS` - Allows a user to view access logs
|
|
17
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
18
|
-
* @returns The first element of the queried access logs {@link AccessLog}
|
|
19
|
-
*/
|
|
20
|
-
findFirst(options?: OptionsWithRql): Promise<AccessLog>;
|
|
21
|
-
}
|
|
22
|
-
export interface AccessLog {
|
|
23
|
-
/** The time of request receival */
|
|
24
|
-
timestamp: string;
|
|
25
|
-
/** The status code of the response for the request */
|
|
26
|
-
httpStatus: number;
|
|
27
|
-
/** The duration of the request in seconds */
|
|
28
|
-
duration: number;
|
|
29
|
-
/** The Extra Horizon id of the request initiator */
|
|
30
|
-
userId: string;
|
|
31
|
-
/** The IP address of the request's origin */
|
|
32
|
-
userAddress: string;
|
|
33
|
-
/** The domain or IP of the accessed Extra Horizon deployment */
|
|
34
|
-
host: string;
|
|
35
|
-
/** The HTTP request */
|
|
36
|
-
request: string;
|
|
37
|
-
/** The size of the response in Bytes */
|
|
38
|
-
responseBodySize: number;
|
|
39
|
-
/** The signature of the request device and software */
|
|
40
|
-
userAgent: string;
|
|
41
|
-
}
|
|
1
|
+
import { OptionsWithRql } from '../../types';
|
|
2
|
+
export interface LogsAccessService {
|
|
3
|
+
/**
|
|
4
|
+
* ## Retrieve a list of access logs
|
|
5
|
+
*
|
|
6
|
+
* **Global Permissions:**
|
|
7
|
+
* - `VIEW_ACCESS_LOGS` - Allows a user to view access logs
|
|
8
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
9
|
+
* @returns An array of access logs {@link AccessLog AccessLog[]}
|
|
10
|
+
*/
|
|
11
|
+
find(options?: OptionsWithRql): Promise<AccessLog[]>;
|
|
12
|
+
/**
|
|
13
|
+
* ## Retrieve the first queried access log
|
|
14
|
+
*
|
|
15
|
+
* **Global Permissions:**
|
|
16
|
+
* - `VIEW_ACCESS_LOGS` - Allows a user to view access logs
|
|
17
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
18
|
+
* @returns The first element of the queried access logs {@link AccessLog}
|
|
19
|
+
*/
|
|
20
|
+
findFirst(options?: OptionsWithRql): Promise<AccessLog>;
|
|
21
|
+
}
|
|
22
|
+
export interface AccessLog {
|
|
23
|
+
/** The time of request receival */
|
|
24
|
+
timestamp: string;
|
|
25
|
+
/** The status code of the response for the request */
|
|
26
|
+
httpStatus: number;
|
|
27
|
+
/** The duration of the request in seconds */
|
|
28
|
+
duration: number;
|
|
29
|
+
/** The Extra Horizon id of the request initiator */
|
|
30
|
+
userId: string;
|
|
31
|
+
/** The IP address of the request's origin */
|
|
32
|
+
userAddress: string;
|
|
33
|
+
/** The domain or IP of the accessed Extra Horizon deployment */
|
|
34
|
+
host: string;
|
|
35
|
+
/** The HTTP request */
|
|
36
|
+
request: string;
|
|
37
|
+
/** The size of the response in Bytes */
|
|
38
|
+
responseBodySize: number;
|
|
39
|
+
/** The signature of the request device and software */
|
|
40
|
+
userAgent: string;
|
|
41
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { HttpInstance } from '../../http/types';
|
|
2
|
-
import { LogsService } from './types';
|
|
3
|
-
export declare const logsService: (httpWithAuth: HttpInstance) => LogsService;
|
|
1
|
+
import { HttpInstance } from '../../http/types';
|
|
2
|
+
import { LogsService } from './types';
|
|
3
|
+
export declare const logsService: (httpWithAuth: HttpInstance) => LogsService;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogsAccessService } from './access/types';
|
|
2
|
-
export interface LogsService {
|
|
3
|
-
access: LogsAccessService;
|
|
4
|
-
}
|
|
1
|
+
import { LogsAccessService } from './access/types';
|
|
2
|
+
export interface LogsService {
|
|
3
|
+
access: LogsAccessService;
|
|
4
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { HttpInstance } from '../../types';
|
|
2
|
-
import { MailsService } from './types';
|
|
3
|
-
export declare const mailsService: (httpWithAuth: HttpInstance) => MailsService;
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { MailsService } from './types';
|
|
3
|
+
export declare const mailsService: (httpWithAuth: HttpInstance) => MailsService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HttpInstance } from '../../types';
|
|
2
|
-
import { HttpClient } from '../http-client';
|
|
3
|
-
import { MailsService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => MailsService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { HttpClient } from '../http-client';
|
|
3
|
+
import { MailsService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => MailsService;
|
|
5
|
+
export default _default;
|