@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,141 +1,141 @@
|
|
|
1
|
-
import { ObjectId, LanguageCode, MailAddress, MailAddressList, MailRecipients, AffectedRecords, PagedResult, OptionsBase, OptionsWithRql } from '../types';
|
|
2
|
-
export interface Mail {
|
|
3
|
-
id?: ObjectId;
|
|
4
|
-
creatorId?: ObjectId;
|
|
5
|
-
awsMessageId?: ObjectId;
|
|
6
|
-
subject?: string;
|
|
7
|
-
recipients?: MailRecipients;
|
|
8
|
-
templateId?: ObjectId;
|
|
9
|
-
replyTo?: MailAddressList;
|
|
10
|
-
from?: MailAddress;
|
|
11
|
-
body?: string;
|
|
12
|
-
language?: LanguageCode;
|
|
13
|
-
content?: Record<string, any>;
|
|
14
|
-
views?: number;
|
|
15
|
-
creationTimestamp?: Date;
|
|
16
|
-
updateTimestamp?: Date;
|
|
17
|
-
}
|
|
18
|
-
export declare type PlainMailCreation = {
|
|
19
|
-
subject: string;
|
|
20
|
-
body: string;
|
|
21
|
-
} & CommonMailCreationProperties;
|
|
22
|
-
export declare type TemplateBasedMailCreation = {
|
|
23
|
-
templateId: ObjectId;
|
|
24
|
-
language?: LanguageCode;
|
|
25
|
-
content: Record<string, any>;
|
|
26
|
-
} & CommonMailCreationProperties;
|
|
27
|
-
export interface CommonMailCreationProperties {
|
|
28
|
-
recipients: MailRecipients;
|
|
29
|
-
from?: MailAddress;
|
|
30
|
-
replyTo?: MailAddressList;
|
|
31
|
-
attachments?: Attachment[];
|
|
32
|
-
}
|
|
33
|
-
export interface Attachment {
|
|
34
|
-
name: string;
|
|
35
|
-
/**
|
|
36
|
-
* Base64 encoded binary data
|
|
37
|
-
*/
|
|
38
|
-
content: string;
|
|
39
|
-
/**
|
|
40
|
-
* MIME Type of the file
|
|
41
|
-
*/
|
|
42
|
-
type?: string;
|
|
43
|
-
}
|
|
44
|
-
export interface QueuedMail {
|
|
45
|
-
id?: ObjectId;
|
|
46
|
-
status?: QueuedMailStatus;
|
|
47
|
-
from?: string;
|
|
48
|
-
to?: MailAddressList;
|
|
49
|
-
cc?: MailAddressList;
|
|
50
|
-
bcc?: MailAddressList;
|
|
51
|
-
replyTo?: MailAddress;
|
|
52
|
-
subject?: string;
|
|
53
|
-
text?: string;
|
|
54
|
-
html?: string;
|
|
55
|
-
attachments?: QueuedMailAttachment[];
|
|
56
|
-
encoding?: string;
|
|
57
|
-
textEncoding?: string;
|
|
58
|
-
templateData?: {
|
|
59
|
-
templateId?: ObjectId;
|
|
60
|
-
credentials?: {
|
|
61
|
-
serviceId?: ObjectId;
|
|
62
|
-
applicationId?: ObjectId;
|
|
63
|
-
userId?: ObjectId;
|
|
64
|
-
};
|
|
65
|
-
language?: LanguageCode;
|
|
66
|
-
content?: Record<string, any>;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
export interface QueuedMailAttachment {
|
|
70
|
-
filename?: string;
|
|
71
|
-
content?: string;
|
|
72
|
-
encoding?: string;
|
|
73
|
-
}
|
|
74
|
-
export declare enum QueuedMailStatus {
|
|
75
|
-
QUEUED = "queued",
|
|
76
|
-
SENDING = "sending",
|
|
77
|
-
FAILED = "failed"
|
|
78
|
-
}
|
|
79
|
-
export interface MailsService {
|
|
80
|
-
/**
|
|
81
|
-
* Perform a health check for mail service
|
|
82
|
-
* @returns {boolean} success
|
|
83
|
-
*/
|
|
84
|
-
health(options?: OptionsBase): Promise<boolean>;
|
|
85
|
-
/**
|
|
86
|
-
* Retrieve a list of mails
|
|
87
|
-
*
|
|
88
|
-
* Permission | Scope | Effect
|
|
89
|
-
* - | - | -
|
|
90
|
-
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
91
|
-
* @param rql Add filters to the requested list.
|
|
92
|
-
* @returns PagedResult<Mail>
|
|
93
|
-
*/
|
|
94
|
-
find: (options?: OptionsWithRql) => Promise<PagedResult<Mail>>;
|
|
95
|
-
/**
|
|
96
|
-
* Find By Id
|
|
97
|
-
* @param id the Id to search for
|
|
98
|
-
* @param rql an optional rql string
|
|
99
|
-
* @returns the first element found
|
|
100
|
-
*/
|
|
101
|
-
findById: (id: ObjectId, options?: OptionsWithRql) => Promise<Mail>;
|
|
102
|
-
/**
|
|
103
|
-
* Find First
|
|
104
|
-
* @param rql an optional rql string
|
|
105
|
-
* @returns the first element found
|
|
106
|
-
*/
|
|
107
|
-
findFirst(options?: OptionsWithRql): Promise<Mail>;
|
|
108
|
-
/**
|
|
109
|
-
* Send a mail
|
|
110
|
-
*
|
|
111
|
-
* Permission | Scope | Effect
|
|
112
|
-
* - | - | -
|
|
113
|
-
* none | | Send mails to your own email address
|
|
114
|
-
* none | `staff enlistment` | Send any mail to your patients or send a template mail based on pre-configured allowed templates to any email address.
|
|
115
|
-
* `SEND_MAILS` | `global` | Send mails to any email address
|
|
116
|
-
* @param requestBody mail creation data
|
|
117
|
-
* @returns Mail
|
|
118
|
-
* @throws {NotActivatedError}
|
|
119
|
-
*/
|
|
120
|
-
send(requestBody: PlainMailCreation | TemplateBasedMailCreation, options?: OptionsBase): Promise<Mail>;
|
|
121
|
-
/**
|
|
122
|
-
* Register a mail being opened
|
|
123
|
-
*
|
|
124
|
-
* Permission | Scope | Effect
|
|
125
|
-
* - | - | -
|
|
126
|
-
* none | | Everyone can use this endpoint
|
|
127
|
-
* @param trackingHash
|
|
128
|
-
* @returns AffectedRecords
|
|
129
|
-
*/
|
|
130
|
-
track(trackingHash: string, options?: OptionsBase): Promise<AffectedRecords>;
|
|
131
|
-
/**
|
|
132
|
-
* Retrieve the list of mails that are not sent yet
|
|
133
|
-
*
|
|
134
|
-
* Permission | Scope | Effect
|
|
135
|
-
* - | - | -
|
|
136
|
-
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
137
|
-
* @param rql Add filters to the requested list.
|
|
138
|
-
* @returns PagedResult<QueuedMail>
|
|
139
|
-
*/
|
|
140
|
-
findOutbound(options?: OptionsWithRql): Promise<PagedResult<QueuedMail>>;
|
|
141
|
-
}
|
|
1
|
+
import { ObjectId, LanguageCode, MailAddress, MailAddressList, MailRecipients, AffectedRecords, PagedResult, OptionsBase, OptionsWithRql } from '../types';
|
|
2
|
+
export interface Mail {
|
|
3
|
+
id?: ObjectId;
|
|
4
|
+
creatorId?: ObjectId;
|
|
5
|
+
awsMessageId?: ObjectId;
|
|
6
|
+
subject?: string;
|
|
7
|
+
recipients?: MailRecipients;
|
|
8
|
+
templateId?: ObjectId;
|
|
9
|
+
replyTo?: MailAddressList;
|
|
10
|
+
from?: MailAddress;
|
|
11
|
+
body?: string;
|
|
12
|
+
language?: LanguageCode;
|
|
13
|
+
content?: Record<string, any>;
|
|
14
|
+
views?: number;
|
|
15
|
+
creationTimestamp?: Date;
|
|
16
|
+
updateTimestamp?: Date;
|
|
17
|
+
}
|
|
18
|
+
export declare type PlainMailCreation = {
|
|
19
|
+
subject: string;
|
|
20
|
+
body: string;
|
|
21
|
+
} & CommonMailCreationProperties;
|
|
22
|
+
export declare type TemplateBasedMailCreation = {
|
|
23
|
+
templateId: ObjectId;
|
|
24
|
+
language?: LanguageCode;
|
|
25
|
+
content: Record<string, any>;
|
|
26
|
+
} & CommonMailCreationProperties;
|
|
27
|
+
export interface CommonMailCreationProperties {
|
|
28
|
+
recipients: MailRecipients;
|
|
29
|
+
from?: MailAddress;
|
|
30
|
+
replyTo?: MailAddressList;
|
|
31
|
+
attachments?: Attachment[];
|
|
32
|
+
}
|
|
33
|
+
export interface Attachment {
|
|
34
|
+
name: string;
|
|
35
|
+
/**
|
|
36
|
+
* Base64 encoded binary data
|
|
37
|
+
*/
|
|
38
|
+
content: string;
|
|
39
|
+
/**
|
|
40
|
+
* MIME Type of the file
|
|
41
|
+
*/
|
|
42
|
+
type?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface QueuedMail {
|
|
45
|
+
id?: ObjectId;
|
|
46
|
+
status?: QueuedMailStatus;
|
|
47
|
+
from?: string;
|
|
48
|
+
to?: MailAddressList;
|
|
49
|
+
cc?: MailAddressList;
|
|
50
|
+
bcc?: MailAddressList;
|
|
51
|
+
replyTo?: MailAddress;
|
|
52
|
+
subject?: string;
|
|
53
|
+
text?: string;
|
|
54
|
+
html?: string;
|
|
55
|
+
attachments?: QueuedMailAttachment[];
|
|
56
|
+
encoding?: string;
|
|
57
|
+
textEncoding?: string;
|
|
58
|
+
templateData?: {
|
|
59
|
+
templateId?: ObjectId;
|
|
60
|
+
credentials?: {
|
|
61
|
+
serviceId?: ObjectId;
|
|
62
|
+
applicationId?: ObjectId;
|
|
63
|
+
userId?: ObjectId;
|
|
64
|
+
};
|
|
65
|
+
language?: LanguageCode;
|
|
66
|
+
content?: Record<string, any>;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface QueuedMailAttachment {
|
|
70
|
+
filename?: string;
|
|
71
|
+
content?: string;
|
|
72
|
+
encoding?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare enum QueuedMailStatus {
|
|
75
|
+
QUEUED = "queued",
|
|
76
|
+
SENDING = "sending",
|
|
77
|
+
FAILED = "failed"
|
|
78
|
+
}
|
|
79
|
+
export interface MailsService {
|
|
80
|
+
/**
|
|
81
|
+
* Perform a health check for mail service
|
|
82
|
+
* @returns {boolean} success
|
|
83
|
+
*/
|
|
84
|
+
health(options?: OptionsBase): Promise<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* Retrieve a list of mails
|
|
87
|
+
*
|
|
88
|
+
* Permission | Scope | Effect
|
|
89
|
+
* - | - | -
|
|
90
|
+
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
91
|
+
* @param rql Add filters to the requested list.
|
|
92
|
+
* @returns PagedResult<Mail>
|
|
93
|
+
*/
|
|
94
|
+
find: (options?: OptionsWithRql) => Promise<PagedResult<Mail>>;
|
|
95
|
+
/**
|
|
96
|
+
* Find By Id
|
|
97
|
+
* @param id the Id to search for
|
|
98
|
+
* @param rql an optional rql string
|
|
99
|
+
* @returns the first element found
|
|
100
|
+
*/
|
|
101
|
+
findById: (id: ObjectId, options?: OptionsWithRql) => Promise<Mail>;
|
|
102
|
+
/**
|
|
103
|
+
* Find First
|
|
104
|
+
* @param rql an optional rql string
|
|
105
|
+
* @returns the first element found
|
|
106
|
+
*/
|
|
107
|
+
findFirst(options?: OptionsWithRql): Promise<Mail>;
|
|
108
|
+
/**
|
|
109
|
+
* Send a mail
|
|
110
|
+
*
|
|
111
|
+
* Permission | Scope | Effect
|
|
112
|
+
* - | - | -
|
|
113
|
+
* none | | Send mails to your own email address
|
|
114
|
+
* none | `staff enlistment` | Send any mail to your patients or send a template mail based on pre-configured allowed templates to any email address.
|
|
115
|
+
* `SEND_MAILS` | `global` | Send mails to any email address
|
|
116
|
+
* @param requestBody mail creation data
|
|
117
|
+
* @returns Mail
|
|
118
|
+
* @throws {NotActivatedError}
|
|
119
|
+
*/
|
|
120
|
+
send(requestBody: PlainMailCreation | TemplateBasedMailCreation, options?: OptionsBase): Promise<Mail>;
|
|
121
|
+
/**
|
|
122
|
+
* Register a mail being opened
|
|
123
|
+
*
|
|
124
|
+
* Permission | Scope | Effect
|
|
125
|
+
* - | - | -
|
|
126
|
+
* none | | Everyone can use this endpoint
|
|
127
|
+
* @param trackingHash
|
|
128
|
+
* @returns AffectedRecords
|
|
129
|
+
*/
|
|
130
|
+
track(trackingHash: string, options?: OptionsBase): Promise<AffectedRecords>;
|
|
131
|
+
/**
|
|
132
|
+
* Retrieve the list of mails that are not sent yet
|
|
133
|
+
*
|
|
134
|
+
* Permission | Scope | Effect
|
|
135
|
+
* - | - | -
|
|
136
|
+
* `VIEW_MAILS` | `global` | **Required** for this endpoint
|
|
137
|
+
* @param rql Add filters to the requested list.
|
|
138
|
+
* @returns PagedResult<QueuedMail>
|
|
139
|
+
*/
|
|
140
|
+
findOutbound(options?: OptionsWithRql): Promise<PagedResult<QueuedMail>>;
|
|
141
|
+
}
|
|
@@ -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,7 +1,7 @@
|
|
|
1
|
-
import type { AuthHttpClient } from '../../types';
|
|
2
|
-
import health from './health';
|
|
3
|
-
import settings from './settings';
|
|
4
|
-
import { NotificationSettingsServices, NotificationsService } from './types';
|
|
5
|
-
export declare const notificationsService: (httpWithAuth: AuthHttpClient) => NotificationsService & ReturnType<typeof health> & {
|
|
6
|
-
settings: NotificationSettingsServices;
|
|
7
|
-
};
|
|
1
|
+
import type { AuthHttpClient } from '../../types';
|
|
2
|
+
import health from './health';
|
|
3
|
+
import settings from './settings';
|
|
4
|
+
import { NotificationSettingsServices, NotificationsService } from './types';
|
|
5
|
+
export declare const notificationsService: (httpWithAuth: AuthHttpClient) => NotificationsService & ReturnType<typeof health> & {
|
|
6
|
+
settings: NotificationSettingsServices;
|
|
7
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AuthHttpClient } from '../../types';
|
|
2
|
-
import { HttpClient } from '../http-client';
|
|
3
|
-
import { NotificationsService } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: AuthHttpClient) => NotificationsService;
|
|
5
|
-
export default _default;
|
|
1
|
+
import type { AuthHttpClient } from '../../types';
|
|
2
|
+
import { HttpClient } from '../http-client';
|
|
3
|
+
import { NotificationsService } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: AuthHttpClient) => NotificationsService;
|
|
5
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HttpInstance } from '../../types';
|
|
2
|
-
import { HttpClient } from '../http-client';
|
|
3
|
-
import type { NotificationSettingsServices } from './types';
|
|
4
|
-
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => NotificationSettingsServices;
|
|
5
|
-
export default _default;
|
|
1
|
+
import type { HttpInstance } from '../../types';
|
|
2
|
+
import { HttpClient } from '../http-client';
|
|
3
|
+
import type { NotificationSettingsServices } from './types';
|
|
4
|
+
declare const _default: (client: HttpClient, httpAuth: HttpInstance) => NotificationSettingsServices;
|
|
5
|
+
export default _default;
|