@extrahorizon/javascript-sdk 8.10.0 → 8.11.0-dev-168-bf985ec
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 +8 -0
- package/build/index.cjs.js +38 -1
- package/build/index.mjs +38 -1
- package/build/mockType.d.ts +36 -0
- package/build/services/auth/applications/types.d.ts +17 -0
- package/build/services/auth/oauth1/types.d.ts +9 -0
- package/build/services/auth/oauth2/types.d.ts +9 -0
- package/build/services/events/types.d.ts +16 -19
- package/build/services/files/types.d.ts +16 -7
- package/build/services/helpers.d.ts +1 -1
- package/build/services/localizations/types.d.ts +19 -18
- package/build/services/mails/types.d.ts +18 -15
- package/build/services/users/activationRequests/types.d.ts +8 -0
- package/build/services/users/forgotPasswordRequests/types.d.ts +8 -0
- package/build/services/users/types.d.ts +17 -0
- package/build/types/mockType.d.ts +36 -0
- package/build/types/services/auth/applications/types.d.ts +17 -0
- package/build/types/services/auth/oauth1/types.d.ts +9 -0
- package/build/types/services/auth/oauth2/types.d.ts +9 -0
- package/build/types/services/events/types.d.ts +16 -19
- package/build/types/services/files/types.d.ts +16 -7
- package/build/types/services/helpers.d.ts +1 -1
- package/build/types/services/localizations/types.d.ts +19 -18
- package/build/types/services/mails/types.d.ts +18 -15
- package/build/types/services/users/activationRequests/types.d.ts +8 -0
- package/build/types/services/users/forgotPasswordRequests/types.d.ts +8 -0
- package/build/types/services/users/types.d.ts +17 -0
- package/build/types/version.d.ts +1 -1
- package/build/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -45,21 +45,30 @@ export interface FilesService {
|
|
|
45
45
|
* Permission | Scope | Effect
|
|
46
46
|
* - | - | -
|
|
47
47
|
* `VIEW_FILES` | `global` | **Required** for this endpoint
|
|
48
|
-
* @param rql Add filters to the requested list.
|
|
49
|
-
* @returns PagedResult<FileDetails>
|
|
50
48
|
*/
|
|
51
49
|
find(options?: OptionsWithRql): Promise<PagedResult<FileDetails>>;
|
|
50
|
+
/**
|
|
51
|
+
* List all files
|
|
52
|
+
*
|
|
53
|
+
* Permission | Scope | Effect
|
|
54
|
+
* - | - | -
|
|
55
|
+
* `VIEW_FILES` | `global` | **Required** for this endpoint
|
|
56
|
+
*/
|
|
57
|
+
findAll(options?: OptionsWithRql): Promise<FileDetails[]>;
|
|
52
58
|
/**
|
|
53
59
|
* Find By Name
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
60
|
+
*
|
|
61
|
+
* Permission | Scope | Effect
|
|
62
|
+
* - | - | -
|
|
63
|
+
* `VIEW_FILES` | `global` | **Required** for this endpoint
|
|
57
64
|
*/
|
|
58
65
|
findByName(name: string, options?: OptionsWithRql): Promise<FileDetails | undefined>;
|
|
59
66
|
/**
|
|
60
67
|
* Find First
|
|
61
|
-
*
|
|
62
|
-
*
|
|
68
|
+
*
|
|
69
|
+
* Permission | Scope | Effect
|
|
70
|
+
* - | - | -
|
|
71
|
+
* `VIEW_FILES` | `global` | **Required** for this endpoint
|
|
63
72
|
*/
|
|
64
73
|
findFirst(options?: OptionsWithRql): Promise<FileDetails | undefined>;
|
|
65
74
|
/**
|
|
@@ -2,6 +2,6 @@ import { HttpInstance, HttpRequestConfig } from '../http/types';
|
|
|
2
2
|
import { OptionsWithRql, PagedResult, PagedResultWithPager } from './types';
|
|
3
3
|
export declare type FindAllIterator<T> = AsyncGenerator<PagedResult<T>, Record<string, never>, void>;
|
|
4
4
|
export declare function findAllIterator<T>(find: (options: OptionsWithRql) => PagedResult<T> | Promise<PagedResult<T>>, options: OptionsWithRql): FindAllIterator<T>;
|
|
5
|
-
export declare function findAllGeneric<T>(find: (options: OptionsWithRql) => PagedResult<T> | Promise<PagedResult<T>>, options: OptionsWithRql, level?: number): Promise<T[]>;
|
|
5
|
+
export declare function findAllGeneric<T>(find: (options: OptionsWithRql) => PagedResult<T> | Promise<PagedResult<T>>, options: OptionsWithRql | undefined, level?: number): Promise<T[]>;
|
|
6
6
|
export declare function addPagersFn<T>(find: (options: OptionsWithRql) => PagedResult<T> | Promise<PagedResult<T>>, options: OptionsWithRql, pagedResult: PagedResult<T>): PagedResultWithPager<T>;
|
|
7
7
|
export declare function setCustomKeysConfigurationInRequestConfig(httpInstance: HttpInstance, requestOptions?: HttpRequestConfig): HttpRequestConfig;
|
|
@@ -49,7 +49,6 @@ export interface CountriesService {
|
|
|
49
49
|
* Permission | Scope | Effect
|
|
50
50
|
* - | - | -
|
|
51
51
|
* none | | Everyone can use this endpoint
|
|
52
|
-
* @returns PagedResult<string>
|
|
53
52
|
*/
|
|
54
53
|
getCountries(options?: OptionsBase): Promise<string[]>;
|
|
55
54
|
/**
|
|
@@ -58,8 +57,8 @@ export interface CountriesService {
|
|
|
58
57
|
* Permission | Scope | Effect
|
|
59
58
|
* - | - | -
|
|
60
59
|
* none | | Everyone can use this endpoint
|
|
60
|
+
*
|
|
61
61
|
* @param country The country code (as defined in ISO 3166-1)
|
|
62
|
-
* @returns PagedResult<string>
|
|
63
62
|
* @throws {ResourceUnknownError}
|
|
64
63
|
*/
|
|
65
64
|
getRegions(country: string, options?: OptionsBase): Promise<string[]>;
|
|
@@ -71,7 +70,6 @@ export interface LanguagesService {
|
|
|
71
70
|
* Permission | Scope | Effect
|
|
72
71
|
* - | - | -
|
|
73
72
|
* none | | Everyone can use this endpoint
|
|
74
|
-
* @returns PagedResult<SupportedLanguageCodes>
|
|
75
73
|
*/
|
|
76
74
|
getLanguages(options?: OptionsBase): Promise<string[]>;
|
|
77
75
|
}
|
|
@@ -82,21 +80,30 @@ export interface LocalizationsService {
|
|
|
82
80
|
* Permission | Scope | Effect
|
|
83
81
|
* - | - | -
|
|
84
82
|
* none | | Everyone can use this endpoint
|
|
85
|
-
* @param rql Add filters to the requested list.
|
|
86
|
-
* @returns PagedResult<Localization>
|
|
87
83
|
*/
|
|
88
84
|
find(options?: OptionsWithRql): Promise<PagedResult<Localization>>;
|
|
85
|
+
/**
|
|
86
|
+
* Returns all possible localizations stored in this service
|
|
87
|
+
*
|
|
88
|
+
* Permission | Scope | Effect
|
|
89
|
+
* - | - | -
|
|
90
|
+
* none | | Everyone can use this endpoint
|
|
91
|
+
*/
|
|
92
|
+
findAll(options?: OptionsWithRql): Promise<Localization[]>;
|
|
89
93
|
/**
|
|
90
94
|
* Find By Key
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
95
|
+
*
|
|
96
|
+
* Permission | Scope | Effect
|
|
97
|
+
* - | - | -
|
|
98
|
+
* none | | Everyone can use this endpoint
|
|
94
99
|
*/
|
|
95
100
|
findByKey(key: string, options?: OptionsWithRql): Promise<Localization | undefined>;
|
|
96
101
|
/**
|
|
97
102
|
* Find First
|
|
98
|
-
*
|
|
99
|
-
*
|
|
103
|
+
*
|
|
104
|
+
* Permission | Scope | Effect
|
|
105
|
+
* - | - | -
|
|
106
|
+
* none | | Everyone can use this endpoint
|
|
100
107
|
*/
|
|
101
108
|
findFirst(options?: OptionsWithRql): Promise<Localization | undefined>;
|
|
102
109
|
/**
|
|
@@ -105,8 +112,7 @@ export interface LocalizationsService {
|
|
|
105
112
|
* Permission | Scope | Effect
|
|
106
113
|
* - | - | -
|
|
107
114
|
* `CREATE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
108
|
-
*
|
|
109
|
-
* @returns BulkCreationResponse
|
|
115
|
+
*
|
|
110
116
|
* @throws {DefaultLocalizationMissingError}
|
|
111
117
|
*/
|
|
112
118
|
create(requestBody: BulkLocalization, options?: OptionsBase): Promise<BulkCreationResponse>;
|
|
@@ -116,8 +122,6 @@ export interface LocalizationsService {
|
|
|
116
122
|
* Permission | Scope | Effect
|
|
117
123
|
* - | - | -
|
|
118
124
|
* `UPDATE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
119
|
-
* @param requestBody BulkLocalization
|
|
120
|
-
* @returns BulkUpdateResponse
|
|
121
125
|
*/
|
|
122
126
|
update(requestBody: BulkLocalization, options?: OptionsBase): Promise<BulkUpdateResponse>;
|
|
123
127
|
/**
|
|
@@ -126,8 +130,8 @@ export interface LocalizationsService {
|
|
|
126
130
|
* Permission | Scope | Effect
|
|
127
131
|
* - | - | -
|
|
128
132
|
* `DELETE_LOCALIZATIONS` | global | **Required** for this endpoint
|
|
133
|
+
*
|
|
129
134
|
* @param rql Add filters to the requested list, **required**.
|
|
130
|
-
* @returns AffectedRecords
|
|
131
135
|
*/
|
|
132
136
|
remove(rql: RQLString, options?: OptionsBase): Promise<AffectedRecords>;
|
|
133
137
|
/**
|
|
@@ -137,13 +141,10 @@ export interface LocalizationsService {
|
|
|
137
141
|
* Permission | Scope | Effect
|
|
138
142
|
* - | - | -
|
|
139
143
|
* none | | Everyone can use this endpoint
|
|
140
|
-
* @param requestBody LocalizationRequest
|
|
141
|
-
* @returns Record<string, MappedText>
|
|
142
144
|
*/
|
|
143
145
|
getByKeys(requestBody: LocalizationRequest, options?: OptionsBase): Promise<Record<string, MappedText>>;
|
|
144
146
|
/**
|
|
145
147
|
* Perform a health check
|
|
146
|
-
* @returns {boolean} success
|
|
147
148
|
*/
|
|
148
149
|
health(): Promise<boolean>;
|
|
149
150
|
}
|
|
@@ -96,21 +96,30 @@ export interface MailsService {
|
|
|
96
96
|
* Permission | Scope | Effect
|
|
97
97
|
* - | - | -
|
|
98
98
|
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
99
|
-
* @param rql Add filters to the requested list.
|
|
100
|
-
* @returns PagedResult<Mail>
|
|
101
99
|
*/
|
|
102
|
-
find
|
|
100
|
+
find(options?: OptionsWithRql): Promise<PagedResult<Mail>>;
|
|
101
|
+
/**
|
|
102
|
+
* Retrieve a list of mails
|
|
103
|
+
*
|
|
104
|
+
* Permission | Scope | Effect
|
|
105
|
+
* - | - | -
|
|
106
|
+
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
107
|
+
*/
|
|
108
|
+
findAll(options?: OptionsWithRql): Promise<Mail[]>;
|
|
103
109
|
/**
|
|
104
110
|
* Find By Id
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
111
|
+
*
|
|
112
|
+
* Permission | Scope | Effect
|
|
113
|
+
* - | - | -
|
|
114
|
+
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
108
115
|
*/
|
|
109
|
-
findById
|
|
116
|
+
findById(id: ObjectId, options?: OptionsWithRql): Promise<Mail | undefined>;
|
|
110
117
|
/**
|
|
111
118
|
* Find First
|
|
112
|
-
*
|
|
113
|
-
*
|
|
119
|
+
*
|
|
120
|
+
* Permission | Scope | Effect
|
|
121
|
+
* - | - | -
|
|
122
|
+
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
114
123
|
*/
|
|
115
124
|
findFirst(options?: OptionsWithRql): Promise<Mail | undefined>;
|
|
116
125
|
/**
|
|
@@ -121,8 +130,6 @@ export interface MailsService {
|
|
|
121
130
|
* none | | Send mails to your own email address
|
|
122
131
|
* none | `staff enlistment` | Send any mail to your patients or send a template mail based on pre-configured allowed templates to any email address.
|
|
123
132
|
* `SEND_MAILS` | `global` | Send mails to any email address
|
|
124
|
-
* @param requestBody mail creation data
|
|
125
|
-
* @returns Mail
|
|
126
133
|
* @throws {NotActivatedError}
|
|
127
134
|
*/
|
|
128
135
|
send(requestBody: PlainMailCreation | TemplateBasedMailCreation, options?: OptionsBase): Promise<Mail>;
|
|
@@ -132,8 +139,6 @@ export interface MailsService {
|
|
|
132
139
|
* Permission | Scope | Effect
|
|
133
140
|
* - | - | -
|
|
134
141
|
* none | | Everyone can use this endpoint
|
|
135
|
-
* @param trackingHash
|
|
136
|
-
* @returns AffectedRecords
|
|
137
142
|
*/
|
|
138
143
|
track(trackingHash: string, options?: OptionsBase): Promise<AffectedRecords>;
|
|
139
144
|
/**
|
|
@@ -142,8 +147,6 @@ export interface MailsService {
|
|
|
142
147
|
* Permission | Scope | Effect
|
|
143
148
|
* - | - | -
|
|
144
149
|
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
145
|
-
* @param rql Add filters to the requested list.
|
|
146
|
-
* @returns PagedResult<QueuedMail>
|
|
147
150
|
*/
|
|
148
151
|
findOutbound(options?: OptionsWithRql): Promise<PagedResult<QueuedMail>>;
|
|
149
152
|
}
|
|
@@ -8,6 +8,14 @@ export interface ActivationRequestsService {
|
|
|
8
8
|
* `VIEW_ACTIVATION_REQUESTS` | global | **Required** for this endpoint
|
|
9
9
|
*/
|
|
10
10
|
find(options?: OptionsWithRql): Promise<PagedResult<ActivationRequest>>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a list of activation requests
|
|
13
|
+
*
|
|
14
|
+
* Permission | Scope | Effect
|
|
15
|
+
* - | - | -
|
|
16
|
+
* `VIEW_ACTIVATION_REQUESTS` | global | **Required** for this endpoint
|
|
17
|
+
*/
|
|
18
|
+
findAll(options?: OptionsWithRql): Promise<ActivationRequest[]>;
|
|
11
19
|
/**
|
|
12
20
|
* Find an activation request
|
|
13
21
|
*
|
|
@@ -8,6 +8,14 @@ export interface ForgotPasswordRequestsService {
|
|
|
8
8
|
* `VIEW_FORGOT_PASSWORD_REQUESTS` | global | **Required** for this endpoint
|
|
9
9
|
*/
|
|
10
10
|
find(options?: OptionsWithRql): Promise<PagedResult<ForgotPasswordRequest>>;
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a list of forgot password requests
|
|
13
|
+
*
|
|
14
|
+
* Permission | Scope | Effect
|
|
15
|
+
* - | - | -
|
|
16
|
+
* `VIEW_FORGOT_PASSWORD_REQUESTS` | global | **Required** for this endpoint
|
|
17
|
+
*/
|
|
18
|
+
findAll(options?: OptionsWithRql): Promise<ForgotPasswordRequest[]>;
|
|
11
19
|
/**
|
|
12
20
|
* Find a forgot password request
|
|
13
21
|
*
|
|
@@ -506,6 +506,14 @@ export interface UsersGlobalRolesService {
|
|
|
506
506
|
* `VIEW_ROLE` | `global` | **Required** for this endpoint
|
|
507
507
|
*/
|
|
508
508
|
find(options?: OptionsWithRql): Promise<PagedResult<Role>>;
|
|
509
|
+
/**
|
|
510
|
+
* Retrieve a list of roles
|
|
511
|
+
*
|
|
512
|
+
* Permission | Scope | Effect
|
|
513
|
+
* - | - | -
|
|
514
|
+
* `VIEW_ROLE` | `global` | **Required** for this endpoint
|
|
515
|
+
*/
|
|
516
|
+
findAll(options?: OptionsWithRql): Promise<Role[]>;
|
|
509
517
|
/**
|
|
510
518
|
* Returns the first role found
|
|
511
519
|
*
|
|
@@ -637,6 +645,15 @@ export interface UsersGroupRolesService {
|
|
|
637
645
|
* `VIEW_GROUP` | `global` | View any group its roles
|
|
638
646
|
*/
|
|
639
647
|
find(groupId: ObjectId, options?: OptionsWithRql): Promise<PagedResult<GroupRole>>;
|
|
648
|
+
/**
|
|
649
|
+
* Retrieve a list of group roles
|
|
650
|
+
*
|
|
651
|
+
* Permission | Scope | Effect
|
|
652
|
+
* - | - | -
|
|
653
|
+
* none | `staff enlistment` | View the roles for the group
|
|
654
|
+
* `VIEW_GROUP` | `global` | View any group its roles
|
|
655
|
+
*/
|
|
656
|
+
findAll(groupId: ObjectId, options?: OptionsWithRql): Promise<GroupRole[]>;
|
|
640
657
|
/**
|
|
641
658
|
* Returns the first group role found
|
|
642
659
|
*
|
|
@@ -37,6 +37,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
37
37
|
findFirst: MockFn;
|
|
38
38
|
findById: MockFn;
|
|
39
39
|
findByName: MockFn;
|
|
40
|
+
findAll: MockFn;
|
|
40
41
|
get: MockFn;
|
|
41
42
|
add: MockFn;
|
|
42
43
|
update: MockFn;
|
|
@@ -54,6 +55,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
54
55
|
findFirst: MockFn;
|
|
55
56
|
findById: MockFn;
|
|
56
57
|
findByName: MockFn;
|
|
58
|
+
findAll: MockFn;
|
|
57
59
|
get: MockFn;
|
|
58
60
|
create: MockFn;
|
|
59
61
|
remove: MockFn;
|
|
@@ -68,6 +70,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
68
70
|
findFirst: MockFn;
|
|
69
71
|
findById: MockFn;
|
|
70
72
|
findByUserId: MockFn;
|
|
73
|
+
findAll: MockFn;
|
|
71
74
|
remove: MockFn;
|
|
72
75
|
};
|
|
73
76
|
forgotPasswordRequests: {
|
|
@@ -75,6 +78,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
75
78
|
findFirst: MockFn;
|
|
76
79
|
findById: MockFn;
|
|
77
80
|
findByUserId: MockFn;
|
|
81
|
+
findAll: MockFn;
|
|
78
82
|
remove: MockFn;
|
|
79
83
|
};
|
|
80
84
|
settings: {
|
|
@@ -152,6 +156,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
152
156
|
find: MockFn;
|
|
153
157
|
findByName: MockFn;
|
|
154
158
|
findFirst: MockFn;
|
|
159
|
+
findAll: MockFn;
|
|
155
160
|
createFromText: MockFn;
|
|
156
161
|
create: MockFn;
|
|
157
162
|
remove: MockFn;
|
|
@@ -247,6 +252,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
247
252
|
find: MockFn;
|
|
248
253
|
findById: MockFn;
|
|
249
254
|
findFirst: MockFn;
|
|
255
|
+
findAll: MockFn;
|
|
250
256
|
send: MockFn;
|
|
251
257
|
track: MockFn;
|
|
252
258
|
findOutbound: MockFn;
|
|
@@ -393,6 +399,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
393
399
|
find: MockFn;
|
|
394
400
|
findByKey: MockFn;
|
|
395
401
|
findFirst: MockFn;
|
|
402
|
+
findAll: MockFn;
|
|
396
403
|
create: MockFn;
|
|
397
404
|
update: MockFn;
|
|
398
405
|
remove: MockFn;
|
|
@@ -471,12 +478,14 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
471
478
|
find: MockFn;
|
|
472
479
|
findById: MockFn;
|
|
473
480
|
findFirst: MockFn;
|
|
481
|
+
findAll: MockFn;
|
|
474
482
|
create: MockFn;
|
|
475
483
|
health: MockFn;
|
|
476
484
|
subscriptions: {
|
|
477
485
|
find: MockFn;
|
|
478
486
|
findById: MockFn;
|
|
479
487
|
findFirst: MockFn;
|
|
488
|
+
findAll: MockFn;
|
|
480
489
|
create: MockFn;
|
|
481
490
|
};
|
|
482
491
|
};
|
|
@@ -493,6 +502,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
493
502
|
findFirst: MockFn;
|
|
494
503
|
findById: MockFn;
|
|
495
504
|
findByName: MockFn;
|
|
505
|
+
findAll: MockFn;
|
|
496
506
|
get: MockFn;
|
|
497
507
|
update: MockFn;
|
|
498
508
|
remove: MockFn;
|
|
@@ -504,6 +514,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
504
514
|
find: MockFn;
|
|
505
515
|
findFirst: MockFn;
|
|
506
516
|
findById: MockFn;
|
|
517
|
+
findAll: MockFn;
|
|
507
518
|
remove: MockFn;
|
|
508
519
|
};
|
|
509
520
|
createAuthorization: MockFn;
|
|
@@ -515,6 +526,7 @@ export declare type MockClientOAuth1<MockFn> = {
|
|
|
515
526
|
find: MockFn;
|
|
516
527
|
findFirst: MockFn;
|
|
517
528
|
findById: MockFn;
|
|
529
|
+
findAll: MockFn;
|
|
518
530
|
remove: MockFn;
|
|
519
531
|
};
|
|
520
532
|
generateSsoToken: MockFn;
|
|
@@ -612,6 +624,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
612
624
|
findFirst: MockFn;
|
|
613
625
|
findById: MockFn;
|
|
614
626
|
findByName: MockFn;
|
|
627
|
+
findAll: MockFn;
|
|
615
628
|
get: MockFn;
|
|
616
629
|
add: MockFn;
|
|
617
630
|
update: MockFn;
|
|
@@ -629,6 +642,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
629
642
|
findFirst: MockFn;
|
|
630
643
|
findById: MockFn;
|
|
631
644
|
findByName: MockFn;
|
|
645
|
+
findAll: MockFn;
|
|
632
646
|
get: MockFn;
|
|
633
647
|
create: MockFn;
|
|
634
648
|
remove: MockFn;
|
|
@@ -643,6 +657,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
643
657
|
findFirst: MockFn;
|
|
644
658
|
findById: MockFn;
|
|
645
659
|
findByUserId: MockFn;
|
|
660
|
+
findAll: MockFn;
|
|
646
661
|
remove: MockFn;
|
|
647
662
|
};
|
|
648
663
|
forgotPasswordRequests: {
|
|
@@ -650,6 +665,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
650
665
|
findFirst: MockFn;
|
|
651
666
|
findById: MockFn;
|
|
652
667
|
findByUserId: MockFn;
|
|
668
|
+
findAll: MockFn;
|
|
653
669
|
remove: MockFn;
|
|
654
670
|
};
|
|
655
671
|
settings: {
|
|
@@ -727,6 +743,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
727
743
|
find: MockFn;
|
|
728
744
|
findByName: MockFn;
|
|
729
745
|
findFirst: MockFn;
|
|
746
|
+
findAll: MockFn;
|
|
730
747
|
createFromText: MockFn;
|
|
731
748
|
create: MockFn;
|
|
732
749
|
remove: MockFn;
|
|
@@ -822,6 +839,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
822
839
|
find: MockFn;
|
|
823
840
|
findById: MockFn;
|
|
824
841
|
findFirst: MockFn;
|
|
842
|
+
findAll: MockFn;
|
|
825
843
|
send: MockFn;
|
|
826
844
|
track: MockFn;
|
|
827
845
|
findOutbound: MockFn;
|
|
@@ -968,6 +986,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
968
986
|
find: MockFn;
|
|
969
987
|
findByKey: MockFn;
|
|
970
988
|
findFirst: MockFn;
|
|
989
|
+
findAll: MockFn;
|
|
971
990
|
create: MockFn;
|
|
972
991
|
update: MockFn;
|
|
973
992
|
remove: MockFn;
|
|
@@ -1046,12 +1065,14 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
1046
1065
|
find: MockFn;
|
|
1047
1066
|
findById: MockFn;
|
|
1048
1067
|
findFirst: MockFn;
|
|
1068
|
+
findAll: MockFn;
|
|
1049
1069
|
create: MockFn;
|
|
1050
1070
|
health: MockFn;
|
|
1051
1071
|
subscriptions: {
|
|
1052
1072
|
find: MockFn;
|
|
1053
1073
|
findById: MockFn;
|
|
1054
1074
|
findFirst: MockFn;
|
|
1075
|
+
findAll: MockFn;
|
|
1055
1076
|
create: MockFn;
|
|
1056
1077
|
};
|
|
1057
1078
|
};
|
|
@@ -1068,6 +1089,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
1068
1089
|
findFirst: MockFn;
|
|
1069
1090
|
findById: MockFn;
|
|
1070
1091
|
findByName: MockFn;
|
|
1092
|
+
findAll: MockFn;
|
|
1071
1093
|
get: MockFn;
|
|
1072
1094
|
update: MockFn;
|
|
1073
1095
|
remove: MockFn;
|
|
@@ -1079,6 +1101,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
1079
1101
|
find: MockFn;
|
|
1080
1102
|
findFirst: MockFn;
|
|
1081
1103
|
findById: MockFn;
|
|
1104
|
+
findAll: MockFn;
|
|
1082
1105
|
remove: MockFn;
|
|
1083
1106
|
};
|
|
1084
1107
|
createAuthorization: MockFn;
|
|
@@ -1090,6 +1113,7 @@ export declare type MockClientOAuth2<MockFn> = {
|
|
|
1090
1113
|
find: MockFn;
|
|
1091
1114
|
findFirst: MockFn;
|
|
1092
1115
|
findById: MockFn;
|
|
1116
|
+
findAll: MockFn;
|
|
1093
1117
|
remove: MockFn;
|
|
1094
1118
|
};
|
|
1095
1119
|
generateSsoToken: MockFn;
|
|
@@ -1187,6 +1211,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1187
1211
|
findFirst: MockFn;
|
|
1188
1212
|
findById: MockFn;
|
|
1189
1213
|
findByName: MockFn;
|
|
1214
|
+
findAll: MockFn;
|
|
1190
1215
|
get: MockFn;
|
|
1191
1216
|
add: MockFn;
|
|
1192
1217
|
update: MockFn;
|
|
@@ -1204,6 +1229,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1204
1229
|
findFirst: MockFn;
|
|
1205
1230
|
findById: MockFn;
|
|
1206
1231
|
findByName: MockFn;
|
|
1232
|
+
findAll: MockFn;
|
|
1207
1233
|
get: MockFn;
|
|
1208
1234
|
create: MockFn;
|
|
1209
1235
|
remove: MockFn;
|
|
@@ -1218,6 +1244,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1218
1244
|
findFirst: MockFn;
|
|
1219
1245
|
findById: MockFn;
|
|
1220
1246
|
findByUserId: MockFn;
|
|
1247
|
+
findAll: MockFn;
|
|
1221
1248
|
remove: MockFn;
|
|
1222
1249
|
};
|
|
1223
1250
|
forgotPasswordRequests: {
|
|
@@ -1225,6 +1252,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1225
1252
|
findFirst: MockFn;
|
|
1226
1253
|
findById: MockFn;
|
|
1227
1254
|
findByUserId: MockFn;
|
|
1255
|
+
findAll: MockFn;
|
|
1228
1256
|
remove: MockFn;
|
|
1229
1257
|
};
|
|
1230
1258
|
settings: {
|
|
@@ -1302,6 +1330,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1302
1330
|
find: MockFn;
|
|
1303
1331
|
findByName: MockFn;
|
|
1304
1332
|
findFirst: MockFn;
|
|
1333
|
+
findAll: MockFn;
|
|
1305
1334
|
createFromText: MockFn;
|
|
1306
1335
|
create: MockFn;
|
|
1307
1336
|
remove: MockFn;
|
|
@@ -1397,6 +1426,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1397
1426
|
find: MockFn;
|
|
1398
1427
|
findById: MockFn;
|
|
1399
1428
|
findFirst: MockFn;
|
|
1429
|
+
findAll: MockFn;
|
|
1400
1430
|
send: MockFn;
|
|
1401
1431
|
track: MockFn;
|
|
1402
1432
|
findOutbound: MockFn;
|
|
@@ -1543,6 +1573,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1543
1573
|
find: MockFn;
|
|
1544
1574
|
findByKey: MockFn;
|
|
1545
1575
|
findFirst: MockFn;
|
|
1576
|
+
findAll: MockFn;
|
|
1546
1577
|
create: MockFn;
|
|
1547
1578
|
update: MockFn;
|
|
1548
1579
|
remove: MockFn;
|
|
@@ -1621,12 +1652,14 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1621
1652
|
find: MockFn;
|
|
1622
1653
|
findById: MockFn;
|
|
1623
1654
|
findFirst: MockFn;
|
|
1655
|
+
findAll: MockFn;
|
|
1624
1656
|
create: MockFn;
|
|
1625
1657
|
health: MockFn;
|
|
1626
1658
|
subscriptions: {
|
|
1627
1659
|
find: MockFn;
|
|
1628
1660
|
findById: MockFn;
|
|
1629
1661
|
findFirst: MockFn;
|
|
1662
|
+
findAll: MockFn;
|
|
1630
1663
|
create: MockFn;
|
|
1631
1664
|
};
|
|
1632
1665
|
};
|
|
@@ -1643,6 +1676,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1643
1676
|
findFirst: MockFn;
|
|
1644
1677
|
findById: MockFn;
|
|
1645
1678
|
findByName: MockFn;
|
|
1679
|
+
findAll: MockFn;
|
|
1646
1680
|
get: MockFn;
|
|
1647
1681
|
update: MockFn;
|
|
1648
1682
|
remove: MockFn;
|
|
@@ -1654,6 +1688,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1654
1688
|
find: MockFn;
|
|
1655
1689
|
findFirst: MockFn;
|
|
1656
1690
|
findById: MockFn;
|
|
1691
|
+
findAll: MockFn;
|
|
1657
1692
|
remove: MockFn;
|
|
1658
1693
|
};
|
|
1659
1694
|
createAuthorization: MockFn;
|
|
@@ -1665,6 +1700,7 @@ export declare type MockClientProxy<MockFn> = {
|
|
|
1665
1700
|
find: MockFn;
|
|
1666
1701
|
findFirst: MockFn;
|
|
1667
1702
|
findById: MockFn;
|
|
1703
|
+
findAll: MockFn;
|
|
1668
1704
|
remove: MockFn;
|
|
1669
1705
|
};
|
|
1670
1706
|
generateSsoToken: MockFn;
|
|
@@ -32,6 +32,23 @@ export interface AuthApplicationsService {
|
|
|
32
32
|
* @throws {@link NoPermissionError} when the user doesn't have the required permissions to execute the function.
|
|
33
33
|
* */
|
|
34
34
|
find(options?: OptionsWithRql): Promise<PagedResult<OAuth1Application | OAuth2Application>>;
|
|
35
|
+
/**
|
|
36
|
+
* ## Get a list of applications
|
|
37
|
+
* Provides a list of applications currently registered in the cluster.
|
|
38
|
+
*
|
|
39
|
+
* Every logged-in user is able to retrieve a limited set of fields (only `name`, `description`, `logo` and `type`).
|
|
40
|
+
*
|
|
41
|
+
* #### Global Permissions
|
|
42
|
+
* `VIEW_APPLICATIONS` - Returns all applications fields
|
|
43
|
+
*
|
|
44
|
+
* #### Function details
|
|
45
|
+
* @param options {@link OptionsWithRql} additional options with rql that can be set for your request to the cluster.
|
|
46
|
+
*
|
|
47
|
+
* @returns Provides a list of applications currently registered in the cluster.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link NoPermissionError} when the user doesn't have the required permissions to execute the function.
|
|
50
|
+
* */
|
|
51
|
+
findAll(options?: OptionsWithRql): Promise<(OAuth1Application | OAuth2Application)[]>;
|
|
35
52
|
/**
|
|
36
53
|
* ## Get the first application found
|
|
37
54
|
* Gets the first application from the paginated list of applications currently registered in the cluster.
|
|
@@ -54,6 +54,15 @@ export interface AuthOauth1TokenService {
|
|
|
54
54
|
* VIEW_AUTHORIZATIONS | global | Can see a list of OAuth1 tokens for any account
|
|
55
55
|
*/
|
|
56
56
|
find(options?: OptionsWithRql): Promise<PagedResult<OAuth1Token>>;
|
|
57
|
+
/**
|
|
58
|
+
* Get a list of OAuth1 tokens
|
|
59
|
+
*
|
|
60
|
+
* Permission | Scope | Effect
|
|
61
|
+
* - | - | -
|
|
62
|
+
* none | | Can only see a list of OAuth1 tokens for this account
|
|
63
|
+
* VIEW_AUTHORIZATIONS | global | Can see a list of OAuth1 tokens for any account
|
|
64
|
+
*/
|
|
65
|
+
findAll(options?: OptionsWithRql): Promise<OAuth1Token[]>;
|
|
57
66
|
/**
|
|
58
67
|
* Get the first OAuth1 token found
|
|
59
68
|
*
|
|
@@ -43,6 +43,15 @@ export interface AuthOauth2TokenService {
|
|
|
43
43
|
* VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
|
|
44
44
|
*/
|
|
45
45
|
find(options?: OptionsWithRql): Promise<PagedResult<OAuth2Token>>;
|
|
46
|
+
/**
|
|
47
|
+
* Get a list of OAuth2 tokens
|
|
48
|
+
*
|
|
49
|
+
* Permission | Scope | Effect
|
|
50
|
+
* - | - | -
|
|
51
|
+
* none | | Can only see a list of OAuth2 tokens for this account
|
|
52
|
+
* VIEW_AUTHORIZATIONS | global | Can see a list of OAuth2 tokens for any account
|
|
53
|
+
*/
|
|
54
|
+
findAll(options?: OptionsWithRql): Promise<OAuth2Token[]>;
|
|
46
55
|
/**
|
|
47
56
|
* Get the first OAuth2 token found
|
|
48
57
|
*
|