@dv4resi/dvss-backend-module-calendar-im 0.0.3 → 0.0.4
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/README.md +247 -0
- package/dist/index.d.ts +229 -117
- package/dist/index.js +1507 -2061
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpService } from '@nestjs/axios';
|
|
2
2
|
import { LoggerService, GraphQLContext, IMedia, MASK_STRATEGY_ENUM, SecretProvider, AddAPIResponse } from '@dv4resi/dvss-backend-module-utility';
|
|
3
|
-
import { schema, CAPABILITY_PROVIDER_INTEGRATION_ENUM as CAPABILITY_PROVIDER_INTEGRATION_ENUM$1, SORTING_ORDER_ENUM, CommonValidationDatabaseService } from '@dv4resi/dvss-backend-module-datastore';
|
|
3
|
+
import { schema, CAPABILITY_PROVIDER_INTEGRATION_ENUM as CAPABILITY_PROVIDER_INTEGRATION_ENUM$1, SORTING_ORDER_ENUM, CommonValidationDatabaseService, RedisCacheStoreService } from '@dv4resi/dvss-backend-module-datastore';
|
|
4
4
|
import { CONFIGURED_FOR_TYPE_ENUM, MEDIA_PROVIDER_ENUM, IAddUpdateAPIStatusResponseBigInt, DAY_OF_WEEK, OFFERING_RESOURCE_TYPE, STATUS } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models';
|
|
5
5
|
import { CAPABILITY_INTEGRATION_STATUS_ENUM, CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability-integration.model';
|
|
6
6
|
import { CAPABILITY_PROVIDER_INTEGRATION_ENUM, CAPABILITY_CATEGORY_ENUM, ICapability } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability.model';
|
|
@@ -44,6 +44,8 @@ declare class IntegrationRequestLoggerService {
|
|
|
44
44
|
logError(logData: IIntegrationRequestLog): void;
|
|
45
45
|
logIntegrationRequest(logData: IIntegrationRequestLog): void;
|
|
46
46
|
private sanitizeHeaders;
|
|
47
|
+
private sanitizePayload;
|
|
48
|
+
private sanitizeFormEncodedString;
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
declare class RateLimiterService {
|
|
@@ -1677,7 +1679,7 @@ interface IUpdateRecurringInvoiceStatusRequest {
|
|
|
1677
1679
|
status: RECURRING_INVOICE_STATUS_ENUM;
|
|
1678
1680
|
}
|
|
1679
1681
|
|
|
1680
|
-
interface
|
|
1682
|
+
interface IResource {
|
|
1681
1683
|
id: string;
|
|
1682
1684
|
displayName?: string;
|
|
1683
1685
|
capacity?: number;
|
|
@@ -1685,22 +1687,22 @@ interface ICalendarResource {
|
|
|
1685
1687
|
floorLabel?: string;
|
|
1686
1688
|
metadata?: Record<string, unknown>;
|
|
1687
1689
|
}
|
|
1688
|
-
interface
|
|
1690
|
+
interface IGetResourcesRequest {
|
|
1689
1691
|
search?: string;
|
|
1690
1692
|
}
|
|
1691
|
-
interface
|
|
1692
|
-
resources:
|
|
1693
|
+
interface IGetResourcesResponse {
|
|
1694
|
+
resources: IResource[];
|
|
1693
1695
|
}
|
|
1694
|
-
interface
|
|
1696
|
+
interface IResourceManagementContext {
|
|
1695
1697
|
integration: ICapabilityIntegration;
|
|
1696
1698
|
loggedInUserId: bigint;
|
|
1697
1699
|
}
|
|
1698
1700
|
|
|
1699
|
-
interface
|
|
1701
|
+
interface IDateTime {
|
|
1700
1702
|
dateTime: string;
|
|
1701
1703
|
timeZone: string;
|
|
1702
1704
|
}
|
|
1703
|
-
interface
|
|
1705
|
+
interface IRecurrencePattern {
|
|
1704
1706
|
type: string;
|
|
1705
1707
|
interval: number;
|
|
1706
1708
|
daysOfWeek?: string[];
|
|
@@ -1709,18 +1711,18 @@ interface ICalendarRecurrencePattern {
|
|
|
1709
1711
|
month?: number;
|
|
1710
1712
|
index?: string;
|
|
1711
1713
|
}
|
|
1712
|
-
interface
|
|
1714
|
+
interface IRecurrenceRange {
|
|
1713
1715
|
type: string;
|
|
1714
1716
|
startDate: string;
|
|
1715
1717
|
endDate?: string;
|
|
1716
1718
|
numberOfOccurrences?: number;
|
|
1717
1719
|
recurrenceTimeZone?: string;
|
|
1718
1720
|
}
|
|
1719
|
-
interface
|
|
1720
|
-
pattern:
|
|
1721
|
-
range:
|
|
1721
|
+
interface IRecurrence {
|
|
1722
|
+
pattern: IRecurrencePattern;
|
|
1723
|
+
range: IRecurrenceRange;
|
|
1722
1724
|
}
|
|
1723
|
-
interface
|
|
1725
|
+
interface IEventSyncMetadata {
|
|
1724
1726
|
createdBy?: 'DVSS' | 'PROVIDER';
|
|
1725
1727
|
syncVersion?: number;
|
|
1726
1728
|
lastSyncTimestamp?: string;
|
|
@@ -1734,89 +1736,75 @@ interface ICalendarEventSyncMetadata {
|
|
|
1734
1736
|
organizerUserEmail?: string;
|
|
1735
1737
|
resourceId?: string;
|
|
1736
1738
|
}
|
|
1737
|
-
interface
|
|
1739
|
+
interface IAttendee {
|
|
1738
1740
|
email: string;
|
|
1739
1741
|
name?: string;
|
|
1740
1742
|
type?: string;
|
|
1741
1743
|
}
|
|
1742
|
-
interface
|
|
1744
|
+
interface IEvent {
|
|
1743
1745
|
id?: string;
|
|
1744
1746
|
subject: string;
|
|
1745
1747
|
body?: string;
|
|
1746
|
-
start:
|
|
1747
|
-
end:
|
|
1748
|
+
start: IDateTime;
|
|
1749
|
+
end: IDateTime;
|
|
1748
1750
|
location?: string;
|
|
1749
1751
|
resourceId?: string;
|
|
1750
|
-
recurrence?:
|
|
1751
|
-
attendees?:
|
|
1752
|
+
recurrence?: IRecurrence;
|
|
1753
|
+
attendees?: IAttendee[];
|
|
1752
1754
|
organizerEmail?: string;
|
|
1753
1755
|
showAs?: string;
|
|
1754
1756
|
isCancelled?: boolean;
|
|
1755
|
-
syncMetadata?:
|
|
1757
|
+
syncMetadata?: IEventSyncMetadata;
|
|
1756
1758
|
providerPayload?: Record<string, unknown>;
|
|
1757
1759
|
}
|
|
1758
|
-
interface
|
|
1760
|
+
interface IMailboxScope {
|
|
1759
1761
|
organizerUserEmail?: string;
|
|
1760
1762
|
}
|
|
1761
|
-
interface
|
|
1762
|
-
event:
|
|
1763
|
+
interface ICreateEventRequest extends IMailboxScope {
|
|
1764
|
+
event: IEvent;
|
|
1763
1765
|
resourceId: string;
|
|
1764
1766
|
}
|
|
1765
|
-
interface
|
|
1767
|
+
interface IUpdateEventRequest extends IMailboxScope {
|
|
1766
1768
|
eventId: string;
|
|
1767
1769
|
resourceId: string;
|
|
1768
|
-
event: Partial<
|
|
1770
|
+
event: Partial<IEvent>;
|
|
1769
1771
|
}
|
|
1770
|
-
interface
|
|
1772
|
+
interface ICancelEventRequest extends IMailboxScope {
|
|
1771
1773
|
eventId: string;
|
|
1772
1774
|
resourceId: string;
|
|
1773
1775
|
}
|
|
1774
|
-
interface
|
|
1776
|
+
interface IDeleteEventRequest extends IMailboxScope {
|
|
1775
1777
|
eventId: string;
|
|
1776
1778
|
resourceId: string;
|
|
1777
1779
|
}
|
|
1778
|
-
interface
|
|
1780
|
+
interface IGetEventRequest extends IMailboxScope {
|
|
1779
1781
|
eventId: string;
|
|
1780
1782
|
resourceId: string;
|
|
1781
1783
|
}
|
|
1782
|
-
interface
|
|
1784
|
+
interface IGetEventsRequest extends IMailboxScope {
|
|
1783
1785
|
resourceId: string;
|
|
1784
|
-
start?:
|
|
1785
|
-
end?:
|
|
1786
|
+
start?: IDateTime;
|
|
1787
|
+
end?: IDateTime;
|
|
1786
1788
|
syncToken?: string;
|
|
1787
1789
|
}
|
|
1788
|
-
interface
|
|
1789
|
-
events:
|
|
1790
|
+
interface IGetEventsResponse {
|
|
1791
|
+
events: IEvent[];
|
|
1790
1792
|
nextSyncToken?: string;
|
|
1791
1793
|
}
|
|
1792
|
-
interface
|
|
1794
|
+
interface ISyncEventsRequest extends IMailboxScope {
|
|
1793
1795
|
resourceId: string;
|
|
1794
1796
|
syncToken?: string;
|
|
1795
1797
|
}
|
|
1796
|
-
interface
|
|
1797
|
-
events:
|
|
1798
|
+
interface ISyncEventsResponse {
|
|
1799
|
+
events: IEvent[];
|
|
1798
1800
|
nextSyncToken?: string;
|
|
1799
1801
|
}
|
|
1800
|
-
interface
|
|
1801
|
-
resourceIds: string[];
|
|
1802
|
-
start: ICalendarDateTime;
|
|
1803
|
-
end: ICalendarDateTime;
|
|
1804
|
-
}
|
|
1805
|
-
interface IRoomAvailabilitySlot {
|
|
1806
|
-
resourceId: string;
|
|
1807
|
-
start: ICalendarDateTime;
|
|
1808
|
-
end: ICalendarDateTime;
|
|
1809
|
-
status: 'free' | 'busy' | 'tentative' | 'oof' | 'unknown';
|
|
1810
|
-
}
|
|
1811
|
-
interface IGetRoomAvailabilityResponse {
|
|
1812
|
-
slots: IRoomAvailabilitySlot[];
|
|
1813
|
-
}
|
|
1814
|
-
interface ICalendarBookingManagementContext {
|
|
1802
|
+
interface IBookingManagementContext {
|
|
1815
1803
|
integration: ICapabilityIntegration;
|
|
1816
1804
|
loggedInUserId: bigint;
|
|
1817
1805
|
}
|
|
1818
1806
|
|
|
1819
|
-
interface
|
|
1807
|
+
interface IWebhookSubscription {
|
|
1820
1808
|
id?: string;
|
|
1821
1809
|
resource: string;
|
|
1822
1810
|
changeTypes: string[];
|
|
@@ -1825,27 +1813,27 @@ interface ICalendarWebhookSubscription {
|
|
|
1825
1813
|
clientState?: string;
|
|
1826
1814
|
metadata?: Record<string, unknown>;
|
|
1827
1815
|
}
|
|
1828
|
-
interface
|
|
1816
|
+
interface IRegisterWebhookRequest {
|
|
1829
1817
|
resource: string;
|
|
1830
1818
|
changeTypes: string[];
|
|
1831
1819
|
notificationUrl: string;
|
|
1832
1820
|
expirationDateTime: string;
|
|
1833
1821
|
clientState?: string;
|
|
1834
1822
|
}
|
|
1835
|
-
interface
|
|
1836
|
-
subscription:
|
|
1823
|
+
interface IRegisterWebhookResponse {
|
|
1824
|
+
subscription: IWebhookSubscription;
|
|
1837
1825
|
}
|
|
1838
|
-
interface
|
|
1826
|
+
interface IRefreshWebhookRequest {
|
|
1839
1827
|
subscriptionId: string;
|
|
1840
1828
|
expirationDateTime: string;
|
|
1841
1829
|
}
|
|
1842
|
-
interface
|
|
1843
|
-
subscription:
|
|
1830
|
+
interface IRefreshWebhookResponse {
|
|
1831
|
+
subscription: IWebhookSubscription;
|
|
1844
1832
|
}
|
|
1845
|
-
interface
|
|
1833
|
+
interface IDeleteWebhookRequest {
|
|
1846
1834
|
subscriptionId: string;
|
|
1847
1835
|
}
|
|
1848
|
-
interface
|
|
1836
|
+
interface IWebhookManagementContext {
|
|
1849
1837
|
integration: ICapabilityIntegration;
|
|
1850
1838
|
loggedInUserId: bigint;
|
|
1851
1839
|
}
|
|
@@ -2116,29 +2104,157 @@ declare abstract class BaseAccountingMiscellaneousManagement {
|
|
|
2116
2104
|
}
|
|
2117
2105
|
|
|
2118
2106
|
declare abstract class BaseCalendarResourceManagement {
|
|
2119
|
-
abstract getResources(request:
|
|
2107
|
+
abstract getResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
|
|
2120
2108
|
}
|
|
2121
2109
|
|
|
2122
2110
|
declare abstract class BaseCalendarBookingManagement {
|
|
2123
|
-
abstract createEvent(request:
|
|
2124
|
-
abstract updateEvent(request:
|
|
2125
|
-
abstract cancelEvent(request:
|
|
2126
|
-
abstract deleteEvent(request:
|
|
2127
|
-
abstract getEvent(request:
|
|
2128
|
-
abstract getEvents(request:
|
|
2129
|
-
abstract syncEvents(request:
|
|
2130
|
-
abstract getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2111
|
+
abstract createEvent(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2112
|
+
abstract updateEvent(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2113
|
+
abstract cancelEvent(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2114
|
+
abstract deleteEvent(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2115
|
+
abstract getEvent(request: IGetEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2116
|
+
abstract getEvents(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
2117
|
+
abstract syncEvents(request: ISyncEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncEventsResponse>;
|
|
2131
2118
|
}
|
|
2132
2119
|
|
|
2133
2120
|
declare abstract class BaseCalendarWebhookManagement {
|
|
2134
|
-
abstract registerWebhook(request:
|
|
2135
|
-
abstract refreshSubscription(request:
|
|
2136
|
-
abstract deleteSubscription(request:
|
|
2121
|
+
abstract registerWebhook(request: IRegisterWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterWebhookResponse>;
|
|
2122
|
+
abstract refreshSubscription(request: IRefreshWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshWebhookResponse>;
|
|
2123
|
+
abstract deleteSubscription(request: IDeleteWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2137
2124
|
}
|
|
2138
2125
|
|
|
2139
2126
|
declare class AppModule {
|
|
2140
2127
|
}
|
|
2141
2128
|
|
|
2129
|
+
interface AuthProvider {
|
|
2130
|
+
getAuthenticationHeaders(capabilityIntegrationId: bigint): Promise<Record<string, string>>;
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
declare const OAUTH_GRANT_TYPE: {
|
|
2134
|
+
readonly AUTHORIZATION_CODE: "AUTHORIZATION_CODE";
|
|
2135
|
+
readonly CLIENT_CREDENTIALS: "CLIENT_CREDENTIALS";
|
|
2136
|
+
};
|
|
2137
|
+
type OauthGrantType = (typeof OAUTH_GRANT_TYPE)[keyof typeof OAUTH_GRANT_TYPE];
|
|
2138
|
+
interface IOauthMintCredentials {
|
|
2139
|
+
tokenUrl: string;
|
|
2140
|
+
clientId: string;
|
|
2141
|
+
clientSecret: string;
|
|
2142
|
+
scope?: string;
|
|
2143
|
+
urlParams?: Record<string, string>;
|
|
2144
|
+
}
|
|
2145
|
+
interface IOauthAccessToken {
|
|
2146
|
+
accessToken: string;
|
|
2147
|
+
tokenType: string;
|
|
2148
|
+
expiresAt: Date;
|
|
2149
|
+
refreshToken?: string;
|
|
2150
|
+
metadata?: Record<string, unknown>;
|
|
2151
|
+
}
|
|
2152
|
+
interface IGetValidAccessTokenOptions {
|
|
2153
|
+
forceRefresh?: boolean;
|
|
2154
|
+
loggedInUserId?: bigint;
|
|
2155
|
+
credentials?: IOauthMintCredentials;
|
|
2156
|
+
capabilityId?: bigint;
|
|
2157
|
+
providerId?: bigint;
|
|
2158
|
+
}
|
|
2159
|
+
|
|
2160
|
+
declare class OauthTokenCache {
|
|
2161
|
+
private readonly redisCacheStoreService;
|
|
2162
|
+
constructor(redisCacheStoreService: RedisCacheStoreService);
|
|
2163
|
+
get(capabilityIntegrationId: bigint): Promise<IOauthAccessToken | undefined>;
|
|
2164
|
+
set(capabilityIntegrationId: bigint, token: IOauthAccessToken): Promise<void>;
|
|
2165
|
+
del(capabilityIntegrationId: bigint): Promise<void>;
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
interface IGrantMintRequest {
|
|
2169
|
+
credentials: IOauthMintCredentials;
|
|
2170
|
+
tokenUrl: string;
|
|
2171
|
+
scope?: string;
|
|
2172
|
+
integration: Pick<ICapabilityIntegration, 'id' | 'capabilityId' | 'providerId' | 'projectId'>;
|
|
2173
|
+
loggedInUserId: bigint;
|
|
2174
|
+
}
|
|
2175
|
+
interface GrantHandler {
|
|
2176
|
+
mint(request: IGrantMintRequest): Promise<IOauthAccessToken>;
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
declare class AuthorizationCodeGrantHandler implements GrantHandler {
|
|
2180
|
+
mint(request: IGrantMintRequest): Promise<IOauthAccessToken>;
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
declare class ClientCredentialsGrantHandler implements GrantHandler {
|
|
2184
|
+
private readonly logger;
|
|
2185
|
+
private readonly trafficGatewayService;
|
|
2186
|
+
private readonly fileName;
|
|
2187
|
+
constructor(logger: LoggerService, trafficGatewayService: TrafficGatewayService);
|
|
2188
|
+
mint(request: IGrantMintRequest): Promise<IOauthAccessToken>;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
declare class GrantHandlerRegistry {
|
|
2192
|
+
private readonly clientCredentialsGrantHandler;
|
|
2193
|
+
private readonly authorizationCodeGrantHandler;
|
|
2194
|
+
constructor(clientCredentialsGrantHandler: ClientCredentialsGrantHandler, authorizationCodeGrantHandler: AuthorizationCodeGrantHandler);
|
|
2195
|
+
get(grantType: OauthGrantType): GrantHandler;
|
|
2196
|
+
resolvePreferredGrant(supportedGrantTypes: OauthGrantType[] | undefined): OauthGrantType;
|
|
2197
|
+
}
|
|
2198
|
+
|
|
2199
|
+
type IOauthToken = typeof schema.integrationOauthToken.$inferSelect;
|
|
2200
|
+
type IAddOauthToken = typeof schema.integrationOauthToken.$inferInsert;
|
|
2201
|
+
type IOauthProvider = typeof schema.integrationOauthProvider.$inferSelect;
|
|
2202
|
+
type IUpsertOauthTokenInput = Pick<IAddOauthToken, 'capabilityIntegrationId' | 'accessToken' | 'refreshToken' | 'expiresAt' | 'refreshExpiredAt' | 'tokenMetadata'> & {
|
|
2203
|
+
loggedInUserId: bigint;
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
declare class OauthProviderDao {
|
|
2207
|
+
private readonly conn;
|
|
2208
|
+
private readonly logger;
|
|
2209
|
+
private readonly fileName;
|
|
2210
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
2211
|
+
findByCapabilityAndProvider(capabilityId: bigint, providerId: bigint, loggedInUserId: bigint): Promise<IOauthProvider | undefined>;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
declare class OauthTokenDao {
|
|
2215
|
+
private readonly conn;
|
|
2216
|
+
private readonly logger;
|
|
2217
|
+
private readonly fileName;
|
|
2218
|
+
constructor(conn: MySql2Database<typeof schema>, logger: LoggerService);
|
|
2219
|
+
findByCapabilityIntegrationId(capabilityIntegrationId: bigint, loggedInUserId: bigint): Promise<IOauthToken | undefined>;
|
|
2220
|
+
upsert(input: IUpsertOauthTokenInput): Promise<void>;
|
|
2221
|
+
}
|
|
2222
|
+
|
|
2223
|
+
declare class OauthTokenManager {
|
|
2224
|
+
private readonly logger;
|
|
2225
|
+
private readonly tokenDao;
|
|
2226
|
+
private readonly providerDao;
|
|
2227
|
+
private readonly tokenCache;
|
|
2228
|
+
private readonly redisCacheStoreService;
|
|
2229
|
+
private readonly grantHandlerRegistry;
|
|
2230
|
+
private readonly secretProvider?;
|
|
2231
|
+
private readonly fileName;
|
|
2232
|
+
private readonly sessions;
|
|
2233
|
+
constructor(logger: LoggerService, tokenDao: OauthTokenDao, providerDao: OauthProviderDao, tokenCache: OauthTokenCache, redisCacheStoreService: RedisCacheStoreService, grantHandlerRegistry: GrantHandlerRegistry, secretProvider?: SecretProvider | undefined);
|
|
2234
|
+
getValidAccessToken(capabilityIntegrationId: bigint | undefined, opts?: IGetValidAccessTokenOptions): Promise<IOauthAccessToken>;
|
|
2235
|
+
storeToken(capabilityIntegrationId: bigint, token: IOauthAccessToken, loggedInUserId?: bigint): Promise<void>;
|
|
2236
|
+
invalidate(capabilityIntegrationId: bigint): Promise<void>;
|
|
2237
|
+
private mintWithDistributedLock;
|
|
2238
|
+
private releaseLockIfOwner;
|
|
2239
|
+
private readCachedToken;
|
|
2240
|
+
private mintToken;
|
|
2241
|
+
private resolveMintContext;
|
|
2242
|
+
private persistToken;
|
|
2243
|
+
private writeMemory;
|
|
2244
|
+
private encryptToken;
|
|
2245
|
+
private decryptToken;
|
|
2246
|
+
}
|
|
2247
|
+
|
|
2248
|
+
declare class OAuth2Provider implements AuthProvider {
|
|
2249
|
+
private readonly tokenManager;
|
|
2250
|
+
constructor(tokenManager: OauthTokenManager);
|
|
2251
|
+
getValidAccessToken(capabilityIntegrationId: bigint | undefined, opts?: IGetValidAccessTokenOptions): Promise<IOauthAccessToken>;
|
|
2252
|
+
getAuthenticationHeaders(capabilityIntegrationId: bigint, opts?: IGetValidAccessTokenOptions): Promise<Record<string, string>>;
|
|
2253
|
+
testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint, credentials: IOauthMintCredentials): Promise<boolean>;
|
|
2254
|
+
storeToken(capabilityIntegrationId: bigint, token: IOauthAccessToken, loggedInUserId?: bigint): Promise<void>;
|
|
2255
|
+
invalidate(capabilityIntegrationId: bigint): Promise<void>;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2142
2258
|
interface IMicrosoftPlatformConfig {
|
|
2143
2259
|
authUrl: string;
|
|
2144
2260
|
baseUrl: string;
|
|
@@ -2254,20 +2370,19 @@ interface IMicrosoftGraphSubscription {
|
|
|
2254
2370
|
|
|
2255
2371
|
declare class MicrosoftAuthService implements BaseAuth {
|
|
2256
2372
|
private readonly logger;
|
|
2257
|
-
private readonly
|
|
2258
|
-
private readonly integrationConfigurationDao;
|
|
2373
|
+
private readonly oauth2Provider;
|
|
2259
2374
|
private readonly secureStorage?;
|
|
2260
2375
|
private readonly fileName;
|
|
2261
|
-
constructor(logger: LoggerService,
|
|
2376
|
+
constructor(logger: LoggerService, oauth2Provider: OAuth2Provider, secureStorage?: IntegrationConfigSecureStorageService | undefined);
|
|
2262
2377
|
validateConfig(integration: ICapabilityIntegration, loggedInUserId: bigint): IValidatedCapabilityIntegration;
|
|
2263
2378
|
parseAndValidateConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): IMicrosoftConfig;
|
|
2264
2379
|
resolvePlaintextConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): Promise<IMicrosoftConfig>;
|
|
2265
2380
|
getAccessToken(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint, forceRefresh?: boolean): Promise<IMicrosoftAccessToken>;
|
|
2381
|
+
persistMintedAccessToken(capabilityIntegrationId: bigint, token: IMicrosoftAccessToken, loggedInUserId: bigint): Promise<void>;
|
|
2266
2382
|
fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
|
|
2267
2383
|
testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
|
|
2268
|
-
|
|
2269
|
-
private
|
|
2270
|
-
private persistAccessDetails;
|
|
2384
|
+
toMintCredentials(config: IMicrosoftConfig): IOauthMintCredentials;
|
|
2385
|
+
private toMicrosoftAccessToken;
|
|
2271
2386
|
}
|
|
2272
2387
|
|
|
2273
2388
|
interface IMicrosoftApiCallRequest<TBody = unknown> {
|
|
@@ -2280,14 +2395,14 @@ interface IMicrosoftApiCallRequest<TBody = unknown> {
|
|
|
2280
2395
|
declare class MicrosoftApiClientService {
|
|
2281
2396
|
private readonly logger;
|
|
2282
2397
|
private readonly authService;
|
|
2398
|
+
private readonly oauth2Provider;
|
|
2283
2399
|
private readonly trafficGatewayService;
|
|
2284
2400
|
private readonly fileName;
|
|
2285
2401
|
private readonly maxAuthRetryCount;
|
|
2286
|
-
constructor(logger: LoggerService, authService: MicrosoftAuthService, trafficGatewayService: TrafficGatewayService);
|
|
2402
|
+
constructor(logger: LoggerService, authService: MicrosoftAuthService, oauth2Provider: OAuth2Provider, trafficGatewayService: TrafficGatewayService);
|
|
2287
2403
|
apiCall<TResponse = unknown, TBody = unknown>(request: IMicrosoftApiCallRequest<TBody>, integration: ICapabilityIntegration, loggedInUserId?: bigint): Promise<TResponse>;
|
|
2288
2404
|
private executeWithRetry;
|
|
2289
2405
|
private isUnauthorizedError;
|
|
2290
|
-
private clearCachedAccessDetails;
|
|
2291
2406
|
}
|
|
2292
2407
|
|
|
2293
2408
|
declare class MicrosoftIntegrationConfigurationService extends BaseIntegrationConfiguration {
|
|
@@ -2302,7 +2417,7 @@ declare class MicrosoftCalendarResourceService extends BaseCalendarResourceManag
|
|
|
2302
2417
|
private readonly microsoftApiClient;
|
|
2303
2418
|
private readonly fileName;
|
|
2304
2419
|
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2305
|
-
getResources(request:
|
|
2420
|
+
getResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
|
|
2306
2421
|
private mapRoom;
|
|
2307
2422
|
}
|
|
2308
2423
|
|
|
@@ -2311,14 +2426,13 @@ declare class MicrosoftCalendarBookingService extends BaseCalendarBookingManagem
|
|
|
2311
2426
|
private readonly microsoftApiClient;
|
|
2312
2427
|
private readonly fileName;
|
|
2313
2428
|
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2314
|
-
createEvent(request:
|
|
2315
|
-
updateEvent(request:
|
|
2316
|
-
cancelEvent(request:
|
|
2317
|
-
deleteEvent(request:
|
|
2318
|
-
getEvent(request:
|
|
2319
|
-
getEvents(request:
|
|
2320
|
-
syncEvents(request:
|
|
2321
|
-
getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2429
|
+
createEvent(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2430
|
+
updateEvent(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2431
|
+
cancelEvent(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2432
|
+
deleteEvent(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2433
|
+
getEvent(request: IGetEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2434
|
+
getEvents(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
2435
|
+
syncEvents(request: ISyncEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncEventsResponse>;
|
|
2322
2436
|
private deleteGraphEvent;
|
|
2323
2437
|
private resolveMailboxEmail;
|
|
2324
2438
|
private organizerUserMailbox;
|
|
@@ -2332,9 +2446,9 @@ declare class MicrosoftCalendarWebhookService extends BaseCalendarWebhookManagem
|
|
|
2332
2446
|
private readonly microsoftApiClient;
|
|
2333
2447
|
private readonly fileName;
|
|
2334
2448
|
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2335
|
-
registerWebhook(request:
|
|
2336
|
-
refreshSubscription(request:
|
|
2337
|
-
deleteSubscription(request:
|
|
2449
|
+
registerWebhook(request: IRegisterWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterWebhookResponse>;
|
|
2450
|
+
refreshSubscription(request: IRefreshWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshWebhookResponse>;
|
|
2451
|
+
deleteSubscription(request: IDeleteWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2338
2452
|
private toGraphSubscription;
|
|
2339
2453
|
private fromGraphSubscription;
|
|
2340
2454
|
private collectUnknownGraphFields;
|
|
@@ -2381,24 +2495,23 @@ declare abstract class AdapterFactoryService<TProvider extends string | number |
|
|
|
2381
2495
|
}
|
|
2382
2496
|
|
|
2383
2497
|
declare abstract class ICalendarBookingHandler {
|
|
2384
|
-
abstract addCalendarBooking(request:
|
|
2385
|
-
abstract updateCalendarBooking(request:
|
|
2386
|
-
abstract cancelCalendarBooking(request:
|
|
2387
|
-
abstract deleteCalendarBooking(request:
|
|
2388
|
-
abstract getCalendarBooking(request:
|
|
2389
|
-
abstract getCalendarBookings(request:
|
|
2390
|
-
abstract syncCalendarBookings(request:
|
|
2391
|
-
abstract getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2498
|
+
abstract addCalendarBooking(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2499
|
+
abstract updateCalendarBooking(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2500
|
+
abstract cancelCalendarBooking(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2501
|
+
abstract deleteCalendarBooking(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2502
|
+
abstract getCalendarBooking(request: IGetEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2503
|
+
abstract getCalendarBookings(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
2504
|
+
abstract syncCalendarBookings(request: ISyncEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncEventsResponse>;
|
|
2392
2505
|
}
|
|
2393
2506
|
|
|
2394
2507
|
declare abstract class ICalendarResourceHandler {
|
|
2395
|
-
abstract getCalendarResources(request:
|
|
2508
|
+
abstract getCalendarResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
|
|
2396
2509
|
}
|
|
2397
2510
|
|
|
2398
2511
|
declare abstract class ICalendarWebhookHandler {
|
|
2399
|
-
abstract registerCalendarWebhook(request:
|
|
2400
|
-
abstract refreshCalendarWebhook(request:
|
|
2401
|
-
abstract deleteCalendarWebhook(request:
|
|
2512
|
+
abstract registerCalendarWebhook(request: IRegisterWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterWebhookResponse>;
|
|
2513
|
+
abstract refreshCalendarWebhook(request: IRefreshWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshWebhookResponse>;
|
|
2514
|
+
abstract deleteCalendarWebhook(request: IDeleteWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2402
2515
|
}
|
|
2403
2516
|
|
|
2404
2517
|
declare abstract class ICalendarAuthHandler {
|
|
@@ -2417,28 +2530,27 @@ declare abstract class ICalendarIntegrationConfigurationHandler {
|
|
|
2417
2530
|
declare class MicrosoftCalendarBookingHandler extends ICalendarBookingHandler {
|
|
2418
2531
|
private readonly microsoftCalendarBookingService;
|
|
2419
2532
|
constructor(microsoftCalendarBookingService: MicrosoftCalendarBookingService);
|
|
2420
|
-
addCalendarBooking(request:
|
|
2421
|
-
updateCalendarBooking(request:
|
|
2422
|
-
cancelCalendarBooking(request:
|
|
2423
|
-
deleteCalendarBooking(request:
|
|
2424
|
-
getCalendarBooking(request:
|
|
2425
|
-
getCalendarBookings(request:
|
|
2426
|
-
syncCalendarBookings(request:
|
|
2427
|
-
getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2533
|
+
addCalendarBooking(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2534
|
+
updateCalendarBooking(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2535
|
+
cancelCalendarBooking(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2536
|
+
deleteCalendarBooking(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2537
|
+
getCalendarBooking(request: IGetEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IEvent>;
|
|
2538
|
+
getCalendarBookings(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
2539
|
+
syncCalendarBookings(request: ISyncEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncEventsResponse>;
|
|
2428
2540
|
}
|
|
2429
2541
|
|
|
2430
2542
|
declare class MicrosoftCalendarResourceHandler extends ICalendarResourceHandler {
|
|
2431
2543
|
private readonly microsoftCalendarResourceService;
|
|
2432
2544
|
constructor(microsoftCalendarResourceService: MicrosoftCalendarResourceService);
|
|
2433
|
-
getCalendarResources(request:
|
|
2545
|
+
getCalendarResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
|
|
2434
2546
|
}
|
|
2435
2547
|
|
|
2436
2548
|
declare class MicrosoftCalendarWebhookHandler extends ICalendarWebhookHandler {
|
|
2437
2549
|
private readonly microsoftCalendarWebhookService;
|
|
2438
2550
|
constructor(microsoftCalendarWebhookService: MicrosoftCalendarWebhookService);
|
|
2439
|
-
registerCalendarWebhook(request:
|
|
2440
|
-
refreshCalendarWebhook(request:
|
|
2441
|
-
deleteCalendarWebhook(request:
|
|
2551
|
+
registerCalendarWebhook(request: IRegisterWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterWebhookResponse>;
|
|
2552
|
+
refreshCalendarWebhook(request: IRefreshWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshWebhookResponse>;
|
|
2553
|
+
deleteCalendarWebhook(request: IDeleteWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2442
2554
|
}
|
|
2443
2555
|
|
|
2444
2556
|
declare class MicrosoftCalendarAuthHandler extends ICalendarAuthHandler {
|
|
@@ -2483,4 +2595,4 @@ declare class CalendarIntegrationConfigurationAdapterFactory extends AdapterFact
|
|
|
2483
2595
|
constructor(microsoftCalendarIntegrationConfigurationHandler: MicrosoftCalendarIntegrationConfigurationHandler);
|
|
2484
2596
|
}
|
|
2485
2597
|
|
|
2486
|
-
export { type AccountConfig, type ActivityLogAuthor, AdapterFactoryService, BOOKABLE_ITEM_STATUS_ENUM, BOOKABLE_ITEM_TYPE_ENUM, BaseAccessManagement, BaseAccountingContactPersonManagement, BaseAccountingCreditNoteManagement, BaseAccountingCustomerPaymentManagement, BaseAccountingInvoiceManagement, BaseAccountingLOAManagement, BaseAccountingMiscellaneousManagement, BaseAccountingTaxManagement, BaseAuth, BaseCalendarBookingManagement, BaseCalendarResourceManagement, BaseCalendarWebhookManagement, BaseCreditBooking, BaseCustomerManagement, BaseDeviceManagement, BaseIntegrationConfiguration, BaseIntegrationResourceManagement, BaseMembershipCustomerManagement, BaseMembershipManagement, BasePackageManagement, BasePayment, BasePaymentMethodManagement, BasePaymentUserManagement, BaseWellnessManagement, CALENDAR_PROVIDER_ENUM, CREDIT_FILTER_BY_ENUM, CREDIT_NOTE_STATUS, CREDIT_STATUS_ENUM, CREDIT_TYPE_ENUM, CalendarAuthAdapterFactory, CalendarBookingAdapterFactory, CalendarIntegrationConfigurationAdapterFactory, AppModule$2 as CalendarIntegrationManager, CalendarResourceAdapterFactory, CalendarWebhookAdapterFactory, type CapabilityIntegrationCategory, type CustomerActivity, DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_FILTER_BY_ENUM, DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_STATUS_ENUM, type DigitalAsset, GET_CUSTOMER_CREDIT_NOTES_FILTER_BY, GET_CUSTOMER_CREDIT_NOTES_SORT_BY, GET_INVOICES_FILTER_BY_ENUM, GET_INVOICES_SORT_BY_ENUM, GET_PAYMENTS_FILTER_BY_ENUM, GET_PAYMENTS_FILTER_VALUE_ENUM, GET_PAYMENTS_SORTING_ENUM, GET_RECURRING_INVOICES_SORT_BY_ENUM, type GetCustomerActivitiesInput, type GetFolioActivitiesOptionsInput, HTTP_METHOD, type IAPIResponse, type IAccessProfile, type IAccessProfiles, type IAccountingAPIResponse, type IAccountingInvoice, type IAccountingListAPIPageContext, type IAccountingListAPIResponse, type IAccountingListAPISearchCriteria, type IAccounts, type IAddCapIntegResourceMapping, type IAddCapabilityIntegration, type IAddCapabilityIntegrationConfig, type IAddCapabilityIntegrationConfiguredFor, type IAddCapabilityIntegrationInput, type IAddCapabilityIntegrationMappingResponse, type IAddCustomerContactPersonRequest, type IAddCustomerRequest, type IAddItemToOrderItemConfig, type IAddItemToOrderRequest, type IAddItemToOrderResponse, type IAddPaymentToOrderRequest, type IAddResourceToIntegrationInput, type IAddResourceToIntegrationResponse, type IAddUpdateAccessGroupRequest, type IAdminCredentials, type IApiCallRequest, type IApplyCreditNoteForInvoicesRequest, type IAvailableDateWithSlots, type IAvailableTaxes, type IAvailableTimeSlot, type IBookableItem, type IBookableItemCategory, type IBookableItemMedia, type IBookableItemPrice, type IBookableItemPriceMeta, type ICalendarAttendee, ICalendarAuthHandler, ICalendarBookingHandler, type ICalendarBookingManagementContext, type ICalendarDateTime, type ICalendarEvent, type ICalendarEventSyncMetadata, ICalendarIntegrationConfigurationHandler, type ICalendarRecurrence, type ICalendarRecurrencePattern, type ICalendarRecurrenceRange, type ICalendarResource, ICalendarResourceHandler, type ICalendarResourceManagementContext, ICalendarWebhookHandler, type ICalendarWebhookManagementContext, type ICalendarWebhookSubscription, type ICancelCalendarEventRequest, type ICapabilityIntegration, type ICapabilityIntegrationConfig, type ICapabilityIntegrationResourceMapping, type ICapabilityIntegrationResourceMappingRow, type IConfiguration, type ICreateCalendarEventRequest, type ICreateCreditNoteForInvoiceRequest, type ICreateCustomerPaymentRequest, type ICreateOrderRequest, type ICreateOrderResponse, type ICreateRecurringInvoiceLineItem, type ICreateRecurringInvoiceRequest, type ICreateRecurringInvoiceResponse, type ICreateRefundRequest, type ICredit, type ICreditNoteAppliedInvoice, type ICreditNoteOperator, type ICurrency, type ICustomer, type ICustomerAddionalDetails, type ICustomerContactPerson, type ICustomerContactPersonResponse, type ICustomerCreditNote, type ICustomerCreditNoteDetail, type ICustomerLastCheckIn, type ICustomerPaymentDetails, type ICustomerPaymentRecord, type ICustomerRole, type ICustomerStatusResponse, type IDeleteAPIResponse, type IDeleteCalendarEventRequest, type IDeleteCalendarWebhookRequest, type IDeleteCustomerContactPersonRequest, type IDeleteDeviceInput, type IDeleteDeviceResponse, type IDownloadCustomerAccountingStatementRequest, type IFetchOfferingAvailabilityRequest, type IGetAccessProfilesResponse, type IGetAppointmentsRequest, type IGetAvailableDatesAndTimeSlotsResponse, type IGetBookableItemsFromCreditRequest, type IGetCalendarEventRequest, type IGetCalendarEventsRequest, type IGetCalendarEventsResponse, type IGetCalendarResourcesRequest, type IGetCalendarResourcesResponse, type IGetCapabilityIntegrationInput, type IGetCapabilityIntegrationResult, type IGetCapabilityIntegrationsFilterInput, type IGetCapabilityIntegrationsOptionsInput, type IGetCapabilityIntegrationsRequest, type IGetCapabilityIntegrationsResponse, type IGetCapabilityIntegrationsSortingInput, type IGetCategoriesRequest, type IGetCoursesRequest, type IGetCreateCustomerPayment, type IGetCreateCustomerPaymentInfo, type IGetCustomerAccessGroupsInput, type IGetCustomerAccessGroupsResponse, type IGetCustomerActivities, type IGetCustomerCreditNotesRequest, type IGetCustomerCreditNotesResponse, type IGetCustomerCreditsRequest, type IGetCustomerCreditsRequestFilters, type IGetCustomerCreditsRequestOptions, type IGetCustomerPayment, type IGetCustomerPaymentRefundInfo, type IGetCustomerPaymentRequest, type IGetCustomerPayments, type IGetCustomerPaymentsFilter, type IGetCustomerPaymentsOptions, type IGetCustomerPaymentsRequest, type IGetCustomerPaymentsSorting, type IGetCustomerRequest, type IGetDeviceKeyInput, type IGetDeviceKeyResponse, type IGetDevicesInput, type IGetDevicesResponse, type IGetInvoicesOptions, type IGetInvoicesRequest, type IGetOrderResponse, type IGetPractitionersRequest, type IGetRecurringInvoiceInput, type IGetRecurringInvoiceRequest, type IGetRecurringInvoicesOptions, type IGetRecurringInvoicesRequest, type IGetRefundCustomerPayment, type IGetRoomAvailabilityRequest, type IGetRoomAvailabilityResponse, type IGetSessionsRequest, type IIcon, type IIntegrationConfigFieldMetadata, type IIntegrationConfigFieldMetadataMap, type IIntegrationConfigJson, type IIntegrationConfigStructureMetadata, type IIntegrationRequestContext, type IIntegrationRequestLog, type IInvoice, type IInvoiceCapabilityIntegration, type IInvoiceCapabilityIntegrationConfig, type IInvoiceIntegrationRequest, type IInvoiceResponse, type IInvoicesResponse, type IKey, type IListUsersInput, type IListUsersResponse, type IMarkCustomerContactPersonPrimaryRequest, type IMicrosoftAccessDetails, type IMicrosoftAccessToken, type IMicrosoftApiCallRequest, type IMicrosoftConfig, type IMicrosoftGraphAttendee, type IMicrosoftGraphDateTimeTimeZone, type IMicrosoftGraphErrorBody, type IMicrosoftGraphEvent, type IMicrosoftGraphEventsResponse, type IMicrosoftGraphRecurrence, type IMicrosoftGraphRecurrencePattern, type IMicrosoftGraphRecurrenceRange, type IMicrosoftGraphRoom, type IMicrosoftGraphRoomsResponse, type IMicrosoftGraphSubscription, type IMicrosoftIntegrationConfig, type IMicrosoftPlatformConfig, type IMicrosoftTokenResponse, INVOICE_STATUS_ENUM, type INonSensitiveStoredField, type IOfferingBookingOccurrence, type IOfferingResource, type IOfferingResourceMedia, type IOrderGuest, type IRecurringInvoices, type IRecurringInvoicesResponse, type IRefreshCalendarWebhookRequest, type IRefreshCalendarWebhookResponse, type IRefundCustomerPayment, type IRegisterCalendarWebhookRequest, type IRegisterCalendarWebhookResponse, type IRegisterDeviceInput, type IRegisterDeviceResponse, type IRemoveCapabilityIntegrationMappingInput, type IRemoveResourceFromIntegrationRequest, type IRemoveResourceFromIntegrationResponse, type IRoomAvailabilitySlot, type ISecureStorageWriteOptions, type ISensitiveStoredField, type IStoredConfigField, type ISyncCalendarEventsRequest, type ISyncCalendarEventsResponse, type ISystemResponse, type ITransactionNumberSeries, type ITransactionNumberSeriesItem, type IUpdateAPIResponse, type IUpdateCalendarEventRequest, type IUpdateCapabilityIntegration, type IUpdateCapabilityIntegrationRequest, type IUpdateCapabilityIntegrationResponse, type IUpdateCapabilityIntegrationUpdateData, type IUpdateCustomerContactPersonRequest, type IUpdateCustomerPaymentRequest, type IUpdateCustomerRequest, type IUpdateDeviceCertificateInput, type IUpdateDeviceCertificateResponse, type IUpdateOfferingIntegrationResourceConfigurationInput, type IUpdateOfferingIntegrationResourceConfigurationResponse, type IUpdateOrderRequest, type IUpdateOrderResponse, type IUpdateRecurringInvoiceRequest, type IUpdateRecurringInvoiceResponse, type IUpdateRecurringInvoiceStatusRequest, type IUserAccessGroup, type IValidatedCapabilityIntegration, type IValidatedCapabilityIntegrationConfig, type IWellnessManagementRequestOptions, IntegrationBookingDao, IntegrationCommonDao, IntegrationConfigSecureStorageService, IntegrationConfigurationDao, AppModule$1 as IntegrationLibsModule, AppModule as IntegrationMicrosoftModule, IntegrationOnpremDeploymentDao, IntegrationRequestLoggerService, IntegrationResourceManagementDao, IntegrationServiceCommunicationTopicDao, IntegrationSubcapabilityDao, IntegrationUserManagementDao, IntegrationVisitorCredentialMappingDao, type InvoiceAccessDetails, MICROSOFT_CLIENT_CREDENTIALS_GRANT_TYPE, MICROSOFT_DEFAULT_ACCESS_TOKEN_TYPE, MICROSOFT_DEFAULT_AUTH_URL, MICROSOFT_DEFAULT_GRAPH_BASE_URL, MICROSOFT_DEFAULT_GRAPH_SCOPE, MICROSOFT_DEFAULT_HEADERS, MICROSOFT_GRAPH_PATHS, MICROSOFT_SECURE_STORAGE, MICROSOFT_TOKEN_HEADERS, MicrosoftApiClientService, MicrosoftAuthService, MicrosoftCalendarAuthHandler, MicrosoftCalendarBookingHandler, MicrosoftCalendarBookingService, MicrosoftCalendarIntegrationConfigurationHandler, MicrosoftCalendarResourceHandler, MicrosoftCalendarResourceService, MicrosoftCalendarWebhookHandler, MicrosoftCalendarWebhookService, type MicrosoftIntegrationConfigInput, MicrosoftIntegrationConfigurationService, type Note, type NoteAttachment, type NoteChangelog, type NoteChangelogRecord, type NoteResource, type NoteUserIdentity, RECURRING_INVOICE_STATUS, RECURRING_INVOICE_STATUS_ENUM, RateLimiterService, type ResourceAssetMapping, TRAFFIC_ROUTER_CONFIGURATION_STORE_KEY, TrafficGatewayService, type UserIdentity, buildMicrosoftIntegrationConfig, getMicrosoftKmsKeyId, looksLikeStoredSecureConfig };
|
|
2598
|
+
export { type AccountConfig, type ActivityLogAuthor, AdapterFactoryService, BOOKABLE_ITEM_STATUS_ENUM, BOOKABLE_ITEM_TYPE_ENUM, BaseAccessManagement, BaseAccountingContactPersonManagement, BaseAccountingCreditNoteManagement, BaseAccountingCustomerPaymentManagement, BaseAccountingInvoiceManagement, BaseAccountingLOAManagement, BaseAccountingMiscellaneousManagement, BaseAccountingTaxManagement, BaseAuth, BaseCalendarBookingManagement, BaseCalendarResourceManagement, BaseCalendarWebhookManagement, BaseCreditBooking, BaseCustomerManagement, BaseDeviceManagement, BaseIntegrationConfiguration, BaseIntegrationResourceManagement, BaseMembershipCustomerManagement, BaseMembershipManagement, BasePackageManagement, BasePayment, BasePaymentMethodManagement, BasePaymentUserManagement, BaseWellnessManagement, CALENDAR_PROVIDER_ENUM, CREDIT_FILTER_BY_ENUM, CREDIT_NOTE_STATUS, CREDIT_STATUS_ENUM, CREDIT_TYPE_ENUM, CalendarAuthAdapterFactory, CalendarBookingAdapterFactory, CalendarIntegrationConfigurationAdapterFactory, AppModule$2 as CalendarIntegrationManager, CalendarResourceAdapterFactory, CalendarWebhookAdapterFactory, type CapabilityIntegrationCategory, type CustomerActivity, DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_FILTER_BY_ENUM, DOWNLOAD_CUSTOMER_ACCOUNTING_STATEMENT_STATUS_ENUM, type DigitalAsset, GET_CUSTOMER_CREDIT_NOTES_FILTER_BY, GET_CUSTOMER_CREDIT_NOTES_SORT_BY, GET_INVOICES_FILTER_BY_ENUM, GET_INVOICES_SORT_BY_ENUM, GET_PAYMENTS_FILTER_BY_ENUM, GET_PAYMENTS_FILTER_VALUE_ENUM, GET_PAYMENTS_SORTING_ENUM, GET_RECURRING_INVOICES_SORT_BY_ENUM, type GetCustomerActivitiesInput, type GetFolioActivitiesOptionsInput, HTTP_METHOD, type IAPIResponse, type IAccessProfile, type IAccessProfiles, type IAccountingAPIResponse, type IAccountingInvoice, type IAccountingListAPIPageContext, type IAccountingListAPIResponse, type IAccountingListAPISearchCriteria, type IAccounts, type IAddCapIntegResourceMapping, type IAddCapabilityIntegration, type IAddCapabilityIntegrationConfig, type IAddCapabilityIntegrationConfiguredFor, type IAddCapabilityIntegrationInput, type IAddCapabilityIntegrationMappingResponse, type IAddCustomerContactPersonRequest, type IAddCustomerRequest, type IAddItemToOrderItemConfig, type IAddItemToOrderRequest, type IAddItemToOrderResponse, type IAddPaymentToOrderRequest, type IAddResourceToIntegrationInput, type IAddResourceToIntegrationResponse, type IAddUpdateAccessGroupRequest, type IAdminCredentials, type IApiCallRequest, type IApplyCreditNoteForInvoicesRequest, type IAttendee, type IAvailableDateWithSlots, type IAvailableTaxes, type IAvailableTimeSlot, type IBookableItem, type IBookableItemCategory, type IBookableItemMedia, type IBookableItemPrice, type IBookableItemPriceMeta, type IBookingManagementContext, ICalendarAuthHandler, ICalendarBookingHandler, ICalendarIntegrationConfigurationHandler, ICalendarResourceHandler, ICalendarWebhookHandler, type ICancelEventRequest, type ICapabilityIntegration, type ICapabilityIntegrationConfig, type ICapabilityIntegrationResourceMapping, type ICapabilityIntegrationResourceMappingRow, type IConfiguration, type ICreateCreditNoteForInvoiceRequest, type ICreateCustomerPaymentRequest, type ICreateEventRequest, type ICreateOrderRequest, type ICreateOrderResponse, type ICreateRecurringInvoiceLineItem, type ICreateRecurringInvoiceRequest, type ICreateRecurringInvoiceResponse, type ICreateRefundRequest, type ICredit, type ICreditNoteAppliedInvoice, type ICreditNoteOperator, type ICurrency, type ICustomer, type ICustomerAddionalDetails, type ICustomerContactPerson, type ICustomerContactPersonResponse, type ICustomerCreditNote, type ICustomerCreditNoteDetail, type ICustomerLastCheckIn, type ICustomerPaymentDetails, type ICustomerPaymentRecord, type ICustomerRole, type ICustomerStatusResponse, type IDateTime, type IDeleteAPIResponse, type IDeleteCustomerContactPersonRequest, type IDeleteDeviceInput, type IDeleteDeviceResponse, type IDeleteEventRequest, type IDeleteWebhookRequest, type IDownloadCustomerAccountingStatementRequest, type IEvent, type IEventSyncMetadata, type IFetchOfferingAvailabilityRequest, type IGetAccessProfilesResponse, type IGetAppointmentsRequest, type IGetAvailableDatesAndTimeSlotsResponse, type IGetBookableItemsFromCreditRequest, type IGetCapabilityIntegrationInput, type IGetCapabilityIntegrationResult, type IGetCapabilityIntegrationsFilterInput, type IGetCapabilityIntegrationsOptionsInput, type IGetCapabilityIntegrationsRequest, type IGetCapabilityIntegrationsResponse, type IGetCapabilityIntegrationsSortingInput, type IGetCategoriesRequest, type IGetCoursesRequest, type IGetCreateCustomerPayment, type IGetCreateCustomerPaymentInfo, type IGetCustomerAccessGroupsInput, type IGetCustomerAccessGroupsResponse, type IGetCustomerActivities, type IGetCustomerCreditNotesRequest, type IGetCustomerCreditNotesResponse, type IGetCustomerCreditsRequest, type IGetCustomerCreditsRequestFilters, type IGetCustomerCreditsRequestOptions, type IGetCustomerPayment, type IGetCustomerPaymentRefundInfo, type IGetCustomerPaymentRequest, type IGetCustomerPayments, type IGetCustomerPaymentsFilter, type IGetCustomerPaymentsOptions, type IGetCustomerPaymentsRequest, type IGetCustomerPaymentsSorting, type IGetCustomerRequest, type IGetDeviceKeyInput, type IGetDeviceKeyResponse, type IGetDevicesInput, type IGetDevicesResponse, type IGetEventRequest, type IGetEventsRequest, type IGetEventsResponse, type IGetInvoicesOptions, type IGetInvoicesRequest, type IGetOrderResponse, type IGetPractitionersRequest, type IGetRecurringInvoiceInput, type IGetRecurringInvoiceRequest, type IGetRecurringInvoicesOptions, type IGetRecurringInvoicesRequest, type IGetRefundCustomerPayment, type IGetResourcesRequest, type IGetResourcesResponse, type IGetSessionsRequest, type IIcon, type IIntegrationConfigFieldMetadata, type IIntegrationConfigFieldMetadataMap, type IIntegrationConfigJson, type IIntegrationConfigStructureMetadata, type IIntegrationRequestContext, type IIntegrationRequestLog, type IInvoice, type IInvoiceCapabilityIntegration, type IInvoiceCapabilityIntegrationConfig, type IInvoiceIntegrationRequest, type IInvoiceResponse, type IInvoicesResponse, type IKey, type IListUsersInput, type IListUsersResponse, type IMarkCustomerContactPersonPrimaryRequest, type IMicrosoftAccessDetails, type IMicrosoftAccessToken, type IMicrosoftApiCallRequest, type IMicrosoftConfig, type IMicrosoftGraphAttendee, type IMicrosoftGraphDateTimeTimeZone, type IMicrosoftGraphErrorBody, type IMicrosoftGraphEvent, type IMicrosoftGraphEventsResponse, type IMicrosoftGraphRecurrence, type IMicrosoftGraphRecurrencePattern, type IMicrosoftGraphRecurrenceRange, type IMicrosoftGraphRoom, type IMicrosoftGraphRoomsResponse, type IMicrosoftGraphSubscription, type IMicrosoftIntegrationConfig, type IMicrosoftPlatformConfig, type IMicrosoftTokenResponse, INVOICE_STATUS_ENUM, type INonSensitiveStoredField, type IOfferingBookingOccurrence, type IOfferingResource, type IOfferingResourceMedia, type IOrderGuest, type IRecurrence, type IRecurrencePattern, type IRecurrenceRange, type IRecurringInvoices, type IRecurringInvoicesResponse, type IRefreshWebhookRequest, type IRefreshWebhookResponse, type IRefundCustomerPayment, type IRegisterDeviceInput, type IRegisterDeviceResponse, type IRegisterWebhookRequest, type IRegisterWebhookResponse, type IRemoveCapabilityIntegrationMappingInput, type IRemoveResourceFromIntegrationRequest, type IRemoveResourceFromIntegrationResponse, type IResource, type IResourceManagementContext, type ISecureStorageWriteOptions, type ISensitiveStoredField, type IStoredConfigField, type ISyncEventsRequest, type ISyncEventsResponse, type ISystemResponse, type ITransactionNumberSeries, type ITransactionNumberSeriesItem, type IUpdateAPIResponse, type IUpdateCapabilityIntegration, type IUpdateCapabilityIntegrationRequest, type IUpdateCapabilityIntegrationResponse, type IUpdateCapabilityIntegrationUpdateData, type IUpdateCustomerContactPersonRequest, type IUpdateCustomerPaymentRequest, type IUpdateCustomerRequest, type IUpdateDeviceCertificateInput, type IUpdateDeviceCertificateResponse, type IUpdateEventRequest, type IUpdateOfferingIntegrationResourceConfigurationInput, type IUpdateOfferingIntegrationResourceConfigurationResponse, type IUpdateOrderRequest, type IUpdateOrderResponse, type IUpdateRecurringInvoiceRequest, type IUpdateRecurringInvoiceResponse, type IUpdateRecurringInvoiceStatusRequest, type IUserAccessGroup, type IValidatedCapabilityIntegration, type IValidatedCapabilityIntegrationConfig, type IWebhookManagementContext, type IWebhookSubscription, type IWellnessManagementRequestOptions, IntegrationBookingDao, IntegrationCommonDao, IntegrationConfigSecureStorageService, IntegrationConfigurationDao, AppModule$1 as IntegrationLibsModule, AppModule as IntegrationMicrosoftModule, IntegrationOnpremDeploymentDao, IntegrationRequestLoggerService, IntegrationResourceManagementDao, IntegrationServiceCommunicationTopicDao, IntegrationSubcapabilityDao, IntegrationUserManagementDao, IntegrationVisitorCredentialMappingDao, type InvoiceAccessDetails, MICROSOFT_CLIENT_CREDENTIALS_GRANT_TYPE, MICROSOFT_DEFAULT_ACCESS_TOKEN_TYPE, MICROSOFT_DEFAULT_AUTH_URL, MICROSOFT_DEFAULT_GRAPH_BASE_URL, MICROSOFT_DEFAULT_GRAPH_SCOPE, MICROSOFT_DEFAULT_HEADERS, MICROSOFT_GRAPH_PATHS, MICROSOFT_SECURE_STORAGE, MICROSOFT_TOKEN_HEADERS, MicrosoftApiClientService, MicrosoftAuthService, MicrosoftCalendarAuthHandler, MicrosoftCalendarBookingHandler, MicrosoftCalendarBookingService, MicrosoftCalendarIntegrationConfigurationHandler, MicrosoftCalendarResourceHandler, MicrosoftCalendarResourceService, MicrosoftCalendarWebhookHandler, MicrosoftCalendarWebhookService, type MicrosoftIntegrationConfigInput, MicrosoftIntegrationConfigurationService, type Note, type NoteAttachment, type NoteChangelog, type NoteChangelogRecord, type NoteResource, type NoteUserIdentity, RECURRING_INVOICE_STATUS, RECURRING_INVOICE_STATUS_ENUM, RateLimiterService, type ResourceAssetMapping, TRAFFIC_ROUTER_CONFIGURATION_STORE_KEY, TrafficGatewayService, type UserIdentity, buildMicrosoftIntegrationConfig, getMicrosoftKmsKeyId, looksLikeStoredSecureConfig };
|