@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,5 +1,5 @@
|
|
|
1
|
-
import { HttpInstance } from '../../../http/types';
|
|
2
|
-
import { HttpClient } from '../../http-client';
|
|
3
|
-
import { ActionsService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ActionsService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { HttpInstance } from '../../../http/types';
|
|
2
|
+
import { HttpClient } from '../../http-client';
|
|
3
|
+
import { ActionsService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => ActionsService;
|
|
5
|
+
export default _default;
|
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { AffectedRecords, MailRecipients, ObjectId, OptionsBase } from '../../types';
|
|
2
|
-
export interface ActionsService {
|
|
3
|
-
/**
|
|
4
|
-
* ## Create an Action for a Dispatcher
|
|
5
|
-
*
|
|
6
|
-
* **Global Permissions:**
|
|
7
|
-
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
8
|
-
*
|
|
9
|
-
* @param dispatcherId {@link ObjectId} The id of the Dispatcher to be updated
|
|
10
|
-
* @param requestBody The data used to create the Action {@link ActionCreation}
|
|
11
|
-
* @param options - Additional options for the request
|
|
12
|
-
* @returns The created Action {@link Action}
|
|
13
|
-
*/
|
|
14
|
-
create(dispatcherId: ObjectId, requestBody: ActionCreation, options?: OptionsBase): Promise<Action>;
|
|
15
|
-
/**
|
|
16
|
-
* ## Update an Action of a Dispatcher
|
|
17
|
-
*
|
|
18
|
-
* **Global Permissions:**
|
|
19
|
-
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
20
|
-
*
|
|
21
|
-
* @param dispatcherId {@link ObjectId} The id of the Dispatcher to be updated
|
|
22
|
-
* @param actionId {@link ObjectId} The id of the Action to be updated
|
|
23
|
-
* @param requestBody The data used to update the Action {@link ActionUpdate}
|
|
24
|
-
* @param options - Additional options for the request
|
|
25
|
-
* @returns An affected records response {@link AffectedRecords}
|
|
26
|
-
*/
|
|
27
|
-
update(dispatcherId: ObjectId, actionId: ObjectId, requestBody: ActionUpdate, options?: OptionsBase): Promise<AffectedRecords>;
|
|
28
|
-
/**
|
|
29
|
-
* ## Remove an Action from a Dispatcher
|
|
30
|
-
*
|
|
31
|
-
* **Global Permissions:**
|
|
32
|
-
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
33
|
-
*
|
|
34
|
-
* @param dispatcherId {@link ObjectId} The id of the Dispatcher to remove an Action from
|
|
35
|
-
* @param actionId {@link ObjectId} The id of the Action to be removed
|
|
36
|
-
* @param options - Additional options for the request
|
|
37
|
-
* @returns An affected records response {@link AffectedRecords}
|
|
38
|
-
*/
|
|
39
|
-
remove(dispatcherId: ObjectId, actionId: ObjectId, options?: OptionsBase): Promise<AffectedRecords>;
|
|
40
|
-
}
|
|
41
|
-
export declare enum ActionType {
|
|
42
|
-
MAIL = "mail",
|
|
43
|
-
TASK = "task"
|
|
44
|
-
}
|
|
45
|
-
export interface ActionBase {
|
|
46
|
-
id: ObjectId;
|
|
47
|
-
/** The unique name of the dispatcher */
|
|
48
|
-
name?: string;
|
|
49
|
-
/** A description of the dispatcher */
|
|
50
|
-
description?: string;
|
|
51
|
-
}
|
|
52
|
-
export interface MailAction extends ActionBase {
|
|
53
|
-
/** The type of Action the Dispatcher will execute */
|
|
54
|
-
type?: ActionType.MAIL;
|
|
55
|
-
/** The recipients list of the mail, including to, cc and bcc */
|
|
56
|
-
recipients?: MailRecipients;
|
|
57
|
-
/** The id of the mail template to be consumed */
|
|
58
|
-
templateId?: ObjectId;
|
|
59
|
-
}
|
|
60
|
-
export interface TaskAction extends ActionBase {
|
|
61
|
-
/** The type of Action the Dispatcher will execute */
|
|
62
|
-
type?: ActionType.TASK;
|
|
63
|
-
/** The name of the Function to be executed as a task */
|
|
64
|
-
functionName?: string;
|
|
65
|
-
/** The data to be sent to the Function, the type may be specified by the user */
|
|
66
|
-
data?: Record<string, string>;
|
|
67
|
-
/** A list of string identifiers that can be attached to a task */
|
|
68
|
-
tags?: Array<string>;
|
|
69
|
-
/** The start timestamp of the task */
|
|
70
|
-
startTimestamp?: Date;
|
|
71
|
-
}
|
|
72
|
-
export declare type Action = MailAction | TaskAction;
|
|
73
|
-
export declare type MailActionCreation = Omit<MailAction, 'id'>;
|
|
74
|
-
export declare type TaskActionCreation = Omit<TaskAction, 'id'>;
|
|
75
|
-
export declare type ActionCreation = MailActionCreation | TaskActionCreation;
|
|
76
|
-
export declare type MailActionUpdate = Partial<Omit<MailAction, 'id' | 'type'>>;
|
|
77
|
-
export declare type TaskActionUpdate = Partial<Omit<TaskAction, 'id' | 'type'>>;
|
|
78
|
-
export declare type ActionUpdate = MailActionUpdate | TaskActionUpdate;
|
|
1
|
+
import { AffectedRecords, MailRecipients, ObjectId, OptionsBase } from '../../types';
|
|
2
|
+
export interface ActionsService {
|
|
3
|
+
/**
|
|
4
|
+
* ## Create an Action for a Dispatcher
|
|
5
|
+
*
|
|
6
|
+
* **Global Permissions:**
|
|
7
|
+
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
8
|
+
*
|
|
9
|
+
* @param dispatcherId {@link ObjectId} The id of the Dispatcher to be updated
|
|
10
|
+
* @param requestBody The data used to create the Action {@link ActionCreation}
|
|
11
|
+
* @param options - Additional options for the request
|
|
12
|
+
* @returns The created Action {@link Action}
|
|
13
|
+
*/
|
|
14
|
+
create(dispatcherId: ObjectId, requestBody: ActionCreation, options?: OptionsBase): Promise<Action>;
|
|
15
|
+
/**
|
|
16
|
+
* ## Update an Action of a Dispatcher
|
|
17
|
+
*
|
|
18
|
+
* **Global Permissions:**
|
|
19
|
+
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
20
|
+
*
|
|
21
|
+
* @param dispatcherId {@link ObjectId} The id of the Dispatcher to be updated
|
|
22
|
+
* @param actionId {@link ObjectId} The id of the Action to be updated
|
|
23
|
+
* @param requestBody The data used to update the Action {@link ActionUpdate}
|
|
24
|
+
* @param options - Additional options for the request
|
|
25
|
+
* @returns An affected records response {@link AffectedRecords}
|
|
26
|
+
*/
|
|
27
|
+
update(dispatcherId: ObjectId, actionId: ObjectId, requestBody: ActionUpdate, options?: OptionsBase): Promise<AffectedRecords>;
|
|
28
|
+
/**
|
|
29
|
+
* ## Remove an Action from a Dispatcher
|
|
30
|
+
*
|
|
31
|
+
* **Global Permissions:**
|
|
32
|
+
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
33
|
+
*
|
|
34
|
+
* @param dispatcherId {@link ObjectId} The id of the Dispatcher to remove an Action from
|
|
35
|
+
* @param actionId {@link ObjectId} The id of the Action to be removed
|
|
36
|
+
* @param options - Additional options for the request
|
|
37
|
+
* @returns An affected records response {@link AffectedRecords}
|
|
38
|
+
*/
|
|
39
|
+
remove(dispatcherId: ObjectId, actionId: ObjectId, options?: OptionsBase): Promise<AffectedRecords>;
|
|
40
|
+
}
|
|
41
|
+
export declare enum ActionType {
|
|
42
|
+
MAIL = "mail",
|
|
43
|
+
TASK = "task"
|
|
44
|
+
}
|
|
45
|
+
export interface ActionBase {
|
|
46
|
+
id: ObjectId;
|
|
47
|
+
/** The unique name of the dispatcher */
|
|
48
|
+
name?: string;
|
|
49
|
+
/** A description of the dispatcher */
|
|
50
|
+
description?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface MailAction extends ActionBase {
|
|
53
|
+
/** The type of Action the Dispatcher will execute */
|
|
54
|
+
type?: ActionType.MAIL;
|
|
55
|
+
/** The recipients list of the mail, including to, cc and bcc */
|
|
56
|
+
recipients?: MailRecipients;
|
|
57
|
+
/** The id of the mail template to be consumed */
|
|
58
|
+
templateId?: ObjectId;
|
|
59
|
+
}
|
|
60
|
+
export interface TaskAction extends ActionBase {
|
|
61
|
+
/** The type of Action the Dispatcher will execute */
|
|
62
|
+
type?: ActionType.TASK;
|
|
63
|
+
/** The name of the Function to be executed as a task */
|
|
64
|
+
functionName?: string;
|
|
65
|
+
/** The data to be sent to the Function, the type may be specified by the user */
|
|
66
|
+
data?: Record<string, string>;
|
|
67
|
+
/** A list of string identifiers that can be attached to a task */
|
|
68
|
+
tags?: Array<string>;
|
|
69
|
+
/** The start timestamp of the task */
|
|
70
|
+
startTimestamp?: Date;
|
|
71
|
+
}
|
|
72
|
+
export declare type Action = MailAction | TaskAction;
|
|
73
|
+
export declare type MailActionCreation = Omit<MailAction, 'id'>;
|
|
74
|
+
export declare type TaskActionCreation = Omit<TaskAction, 'id'>;
|
|
75
|
+
export declare type ActionCreation = MailActionCreation | TaskActionCreation;
|
|
76
|
+
export declare type MailActionUpdate = Partial<Omit<MailAction, 'id' | 'type'>>;
|
|
77
|
+
export declare type TaskActionUpdate = Partial<Omit<TaskAction, 'id' | 'type'>>;
|
|
78
|
+
export declare type ActionUpdate = MailActionUpdate | TaskActionUpdate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HttpInstance } from '../../../http/types';
|
|
2
|
-
import { HttpClient } from '../../http-client';
|
|
3
|
-
import { DispatchersService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => DispatchersService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import { HttpInstance } from '../../../http/types';
|
|
2
|
+
import { HttpClient } from '../../http-client';
|
|
3
|
+
import { DispatchersService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => DispatchersService;
|
|
5
|
+
export default _default;
|
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
import { FindAllIterator } from '../../helpers';
|
|
2
|
-
import { AffectedRecords, ObjectId, OptionsBase, OptionsWithRql, PagedResult } from '../../types';
|
|
3
|
-
import { Action, ActionCreation } from '../actions/types';
|
|
4
|
-
export interface DispatchersService {
|
|
5
|
-
/**
|
|
6
|
-
* ## Retrieve a paged list of Dispatchers
|
|
7
|
-
*
|
|
8
|
-
* **Global Permissions:**
|
|
9
|
-
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
10
|
-
*
|
|
11
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
12
|
-
* @returns A paged list of Dispatchers {@link PagedResultWithPager PagedResultWithPager<Dispatcher>}
|
|
13
|
-
*/
|
|
14
|
-
find(options?: OptionsWithRql): Promise<PagedResult<Dispatcher>>;
|
|
15
|
-
/**
|
|
16
|
-
* ## Retrieve a list of all Dispatchers
|
|
17
|
-
*
|
|
18
|
-
* **Global Permissions:**
|
|
19
|
-
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
20
|
-
*
|
|
21
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
22
|
-
* @returns An array of Dispatchers {@link Dispatcher Dispatcher[]}
|
|
23
|
-
*/
|
|
24
|
-
findAll(options?: OptionsWithRql): Promise<Dispatcher[]>;
|
|
25
|
-
/**
|
|
26
|
-
* ## Retrieve a paged list of Dispatchers
|
|
27
|
-
*
|
|
28
|
-
* **Global Permissions:**
|
|
29
|
-
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
30
|
-
*
|
|
31
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
32
|
-
* @returns An iterator for the queried Dispatchers {@link FindAllIterator FindAllIterator<Dispatcher>}
|
|
33
|
-
*/
|
|
34
|
-
findAllIterator(options?: OptionsWithRql): FindAllIterator<Dispatcher>;
|
|
35
|
-
/**
|
|
36
|
-
* ## Retrieve a Dispatcher by id
|
|
37
|
-
*
|
|
38
|
-
* **Global Permissions:**
|
|
39
|
-
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
40
|
-
*
|
|
41
|
-
* @param id {@link ObjectId} - The id of the targeted Dispatcher
|
|
42
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
43
|
-
* @returns The first element of the queried Dispatchers {@link Dispatcher}
|
|
44
|
-
*/
|
|
45
|
-
findById(id: ObjectId, options?: OptionsWithRql): Promise<Dispatcher>;
|
|
46
|
-
/**
|
|
47
|
-
* ## Retrieve the first queried Dispatcher
|
|
48
|
-
*
|
|
49
|
-
* **Global Permissions:**
|
|
50
|
-
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
51
|
-
*
|
|
52
|
-
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
53
|
-
* @returns The first element of the queried Dispatchers {@link Dispatcher}
|
|
54
|
-
*/
|
|
55
|
-
findFirst(options?: OptionsWithRql): Promise<Dispatcher>;
|
|
56
|
-
/**
|
|
57
|
-
* ## Create a Dispatcher
|
|
58
|
-
*
|
|
59
|
-
* **Global Permissions:**
|
|
60
|
-
* - `CREATE_DISPATCHERS` - Allows a user to create Dispatchers
|
|
61
|
-
*
|
|
62
|
-
* @param requestBody {@link DispatcherCreation} - The data used to create the Dispatcher
|
|
63
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
64
|
-
* @returns The created Dispatcher {@link Dispatcher}
|
|
65
|
-
*/
|
|
66
|
-
create(requestBody: DispatcherCreation, options?: OptionsBase): Promise<Dispatcher>;
|
|
67
|
-
/**
|
|
68
|
-
* ## Update a Dispatcher
|
|
69
|
-
*
|
|
70
|
-
* **Global Permissions:**
|
|
71
|
-
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
72
|
-
*
|
|
73
|
-
* @param dispatcherId {@link ObjectId} - The id of the Dispatcher to be updated
|
|
74
|
-
* @param requestBody {@link DispatcherUpdate} - The data used to update the Dispatcher
|
|
75
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
76
|
-
* @returns An affected records response {@link AffectedRecords}
|
|
77
|
-
*/
|
|
78
|
-
update(dispatcherId: ObjectId, requestBody: DispatcherUpdate, options?: OptionsBase): Promise<AffectedRecords>;
|
|
79
|
-
/**
|
|
80
|
-
* ## Delete a Dispatcher
|
|
81
|
-
*
|
|
82
|
-
* **Global Permissions:**
|
|
83
|
-
* - `DELETE_DISPATCHERS` - Allows a user to delete Dispatchers
|
|
84
|
-
*
|
|
85
|
-
* @param dispatcherId {@link ObjectId} - The id of the Dispatcher to be deleted
|
|
86
|
-
* @param options {@link OptionsBase} - Additional options for the request
|
|
87
|
-
* @returns An affected records response {@link AffectedRecords}
|
|
88
|
-
*/
|
|
89
|
-
remove(dispatcherId: ObjectId, options?: OptionsBase): Promise<AffectedRecords>;
|
|
90
|
-
}
|
|
91
|
-
export interface Dispatcher {
|
|
92
|
-
id: ObjectId;
|
|
93
|
-
/** The unique name of the dispatcher */
|
|
94
|
-
name?: string;
|
|
95
|
-
/** A description of the dispatcher */
|
|
96
|
-
description?: string;
|
|
97
|
-
/** The type of event the Dispatcher will respond to e.g 'user_deleted' */
|
|
98
|
-
eventType: string;
|
|
99
|
-
/** The actions the Dispatcher shall execute */
|
|
100
|
-
actions: Array<Action>;
|
|
101
|
-
/** A list of string identifiers that can be attached to a Dispatcher */
|
|
102
|
-
tags?: Array<string>;
|
|
103
|
-
/** The creation timestamp of the Dispatcher */
|
|
104
|
-
creationTimestamp: Date;
|
|
105
|
-
/** The update timestamp of the Dispatcher */
|
|
106
|
-
updateTimestamp: Date;
|
|
107
|
-
}
|
|
108
|
-
export declare type DispatcherCreation = Omit<Dispatcher, 'id' | 'creationTimestamp' | 'updateTimestamp' | 'actions'> & {
|
|
109
|
-
actions: ActionCreation[];
|
|
110
|
-
};
|
|
111
|
-
export declare type DispatcherUpdate = Partial<Omit<Dispatcher, 'id' | 'actions' | 'creationTimestamp' | 'updateTimestamp'>>;
|
|
1
|
+
import { FindAllIterator } from '../../helpers';
|
|
2
|
+
import { AffectedRecords, ObjectId, OptionsBase, OptionsWithRql, PagedResult } from '../../types';
|
|
3
|
+
import { Action, ActionCreation } from '../actions/types';
|
|
4
|
+
export interface DispatchersService {
|
|
5
|
+
/**
|
|
6
|
+
* ## Retrieve a paged list of Dispatchers
|
|
7
|
+
*
|
|
8
|
+
* **Global Permissions:**
|
|
9
|
+
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
10
|
+
*
|
|
11
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
12
|
+
* @returns A paged list of Dispatchers {@link PagedResultWithPager PagedResultWithPager<Dispatcher>}
|
|
13
|
+
*/
|
|
14
|
+
find(options?: OptionsWithRql): Promise<PagedResult<Dispatcher>>;
|
|
15
|
+
/**
|
|
16
|
+
* ## Retrieve a list of all Dispatchers
|
|
17
|
+
*
|
|
18
|
+
* **Global Permissions:**
|
|
19
|
+
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
20
|
+
*
|
|
21
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
22
|
+
* @returns An array of Dispatchers {@link Dispatcher Dispatcher[]}
|
|
23
|
+
*/
|
|
24
|
+
findAll(options?: OptionsWithRql): Promise<Dispatcher[]>;
|
|
25
|
+
/**
|
|
26
|
+
* ## Retrieve a paged list of Dispatchers
|
|
27
|
+
*
|
|
28
|
+
* **Global Permissions:**
|
|
29
|
+
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
30
|
+
*
|
|
31
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
32
|
+
* @returns An iterator for the queried Dispatchers {@link FindAllIterator FindAllIterator<Dispatcher>}
|
|
33
|
+
*/
|
|
34
|
+
findAllIterator(options?: OptionsWithRql): FindAllIterator<Dispatcher>;
|
|
35
|
+
/**
|
|
36
|
+
* ## Retrieve a Dispatcher by id
|
|
37
|
+
*
|
|
38
|
+
* **Global Permissions:**
|
|
39
|
+
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
40
|
+
*
|
|
41
|
+
* @param id {@link ObjectId} - The id of the targeted Dispatcher
|
|
42
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
43
|
+
* @returns The first element of the queried Dispatchers {@link Dispatcher}
|
|
44
|
+
*/
|
|
45
|
+
findById(id: ObjectId, options?: OptionsWithRql): Promise<Dispatcher>;
|
|
46
|
+
/**
|
|
47
|
+
* ## Retrieve the first queried Dispatcher
|
|
48
|
+
*
|
|
49
|
+
* **Global Permissions:**
|
|
50
|
+
* - `VIEW_DISPATCHERS` - Allows a user to view Dispatchers
|
|
51
|
+
*
|
|
52
|
+
* @param options {@link OptionsWithRql} - Add filters to the requested list
|
|
53
|
+
* @returns The first element of the queried Dispatchers {@link Dispatcher}
|
|
54
|
+
*/
|
|
55
|
+
findFirst(options?: OptionsWithRql): Promise<Dispatcher>;
|
|
56
|
+
/**
|
|
57
|
+
* ## Create a Dispatcher
|
|
58
|
+
*
|
|
59
|
+
* **Global Permissions:**
|
|
60
|
+
* - `CREATE_DISPATCHERS` - Allows a user to create Dispatchers
|
|
61
|
+
*
|
|
62
|
+
* @param requestBody {@link DispatcherCreation} - The data used to create the Dispatcher
|
|
63
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
64
|
+
* @returns The created Dispatcher {@link Dispatcher}
|
|
65
|
+
*/
|
|
66
|
+
create(requestBody: DispatcherCreation, options?: OptionsBase): Promise<Dispatcher>;
|
|
67
|
+
/**
|
|
68
|
+
* ## Update a Dispatcher
|
|
69
|
+
*
|
|
70
|
+
* **Global Permissions:**
|
|
71
|
+
* - `UPDATE_DISPATCHERS` - Allows a user to update Dispatchers
|
|
72
|
+
*
|
|
73
|
+
* @param dispatcherId {@link ObjectId} - The id of the Dispatcher to be updated
|
|
74
|
+
* @param requestBody {@link DispatcherUpdate} - The data used to update the Dispatcher
|
|
75
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
76
|
+
* @returns An affected records response {@link AffectedRecords}
|
|
77
|
+
*/
|
|
78
|
+
update(dispatcherId: ObjectId, requestBody: DispatcherUpdate, options?: OptionsBase): Promise<AffectedRecords>;
|
|
79
|
+
/**
|
|
80
|
+
* ## Delete a Dispatcher
|
|
81
|
+
*
|
|
82
|
+
* **Global Permissions:**
|
|
83
|
+
* - `DELETE_DISPATCHERS` - Allows a user to delete Dispatchers
|
|
84
|
+
*
|
|
85
|
+
* @param dispatcherId {@link ObjectId} - The id of the Dispatcher to be deleted
|
|
86
|
+
* @param options {@link OptionsBase} - Additional options for the request
|
|
87
|
+
* @returns An affected records response {@link AffectedRecords}
|
|
88
|
+
*/
|
|
89
|
+
remove(dispatcherId: ObjectId, options?: OptionsBase): Promise<AffectedRecords>;
|
|
90
|
+
}
|
|
91
|
+
export interface Dispatcher {
|
|
92
|
+
id: ObjectId;
|
|
93
|
+
/** The unique name of the dispatcher */
|
|
94
|
+
name?: string;
|
|
95
|
+
/** A description of the dispatcher */
|
|
96
|
+
description?: string;
|
|
97
|
+
/** The type of event the Dispatcher will respond to e.g 'user_deleted' */
|
|
98
|
+
eventType: string;
|
|
99
|
+
/** The actions the Dispatcher shall execute */
|
|
100
|
+
actions: Array<Action>;
|
|
101
|
+
/** A list of string identifiers that can be attached to a Dispatcher */
|
|
102
|
+
tags?: Array<string>;
|
|
103
|
+
/** The creation timestamp of the Dispatcher */
|
|
104
|
+
creationTimestamp: Date;
|
|
105
|
+
/** The update timestamp of the Dispatcher */
|
|
106
|
+
updateTimestamp: Date;
|
|
107
|
+
}
|
|
108
|
+
export declare type DispatcherCreation = Omit<Dispatcher, 'id' | 'creationTimestamp' | 'updateTimestamp' | 'actions'> & {
|
|
109
|
+
actions: ActionCreation[];
|
|
110
|
+
};
|
|
111
|
+
export declare type DispatcherUpdate = Partial<Omit<Dispatcher, 'id' | 'actions' | 'creationTimestamp' | 'updateTimestamp'>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { HttpInstance } from '../../types';
|
|
2
|
-
import actions from './actions';
|
|
3
|
-
import { ActionsService } from './actions/types';
|
|
4
|
-
import { DispatchersService } from './dispatchers/types';
|
|
5
|
-
export declare const dispatchersService: (httpWithAuth: HttpInstance) => DispatchersService & {
|
|
6
|
-
actions: ActionsService;
|
|
7
|
-
};
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import actions from './actions';
|
|
3
|
+
import { ActionsService } from './actions/types';
|
|
4
|
+
import { DispatchersService } from './dispatchers/types';
|
|
5
|
+
export declare const dispatchersService: (httpWithAuth: HttpInstance) => DispatchersService & {
|
|
6
|
+
actions: ActionsService;
|
|
7
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './actions/types';
|
|
2
|
-
export * from './dispatchers/types';
|
|
1
|
+
export * from './actions/types';
|
|
2
|
+
export * from './dispatchers/types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HttpInstance } from '../../types';
|
|
2
|
-
import { HttpClient } from '../http-client';
|
|
3
|
-
import type { EventsService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => EventsService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { HttpClient } from '../http-client';
|
|
3
|
+
import type { EventsService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => EventsService;
|
|
5
|
+
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { HttpInstance } from '../../types';
|
|
2
|
-
declare const _default: (client: any, http: HttpInstance) => {
|
|
3
|
-
/**
|
|
4
|
-
* Perform a health check
|
|
5
|
-
* @returns {boolean} success
|
|
6
|
-
*/
|
|
7
|
-
health(): Promise<boolean>;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
declare const _default: (client: any, http: HttpInstance) => {
|
|
3
|
+
/**
|
|
4
|
+
* Perform a health check
|
|
5
|
+
* @returns {boolean} success
|
|
6
|
+
*/
|
|
7
|
+
health(): Promise<boolean>;
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { EventsService, HttpInstance, SubscriptionsService } from '../../types';
|
|
2
|
-
import health from './health';
|
|
3
|
-
import subscriptions from './subscriptions';
|
|
4
|
-
export declare const eventsService: (httpWithAuth: HttpInstance) => ReturnType<typeof health> & EventsService & {
|
|
5
|
-
subscriptions: SubscriptionsService;
|
|
6
|
-
};
|
|
1
|
+
import type { EventsService, HttpInstance, SubscriptionsService } from '../../types';
|
|
2
|
+
import health from './health';
|
|
3
|
+
import subscriptions from './subscriptions';
|
|
4
|
+
export declare const eventsService: (httpWithAuth: HttpInstance) => ReturnType<typeof health> & EventsService & {
|
|
5
|
+
subscriptions: SubscriptionsService;
|
|
6
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HttpInstance } from '../../types';
|
|
2
|
-
import { HttpClient } from '../http-client';
|
|
3
|
-
import type { SubscriptionsService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => SubscriptionsService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { HttpClient } from '../http-client';
|
|
3
|
+
import type { SubscriptionsService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => SubscriptionsService;
|
|
5
|
+
export default _default;
|