@dv4resi/dvss-backend-module-calendar-im 0.0.3 → 0.0.6
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 +271 -161
- package/dist/index.js +2319 -2824
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
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';
|
|
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';
|
|
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
|
+
import { CONFIGURED_FOR_TYPE_ENUM, MEDIA_PROVIDER_ENUM, IAddUpdateAPIStatusResponseBigInt, DAY_OF_WEEK, OFFERING_RESOURCE_TYPE, STATUS, OFFERING_BOOKING_TIME_TYPE, IScheduleConfig } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models';
|
|
5
|
+
export { BEHAVIOUR_TYPE_ENUM, DAY_OF_WEEK, IScheduleConfig, OFFERING_BOOKING_TIME_TYPE, OFFERING_BOOKING_TYPE_ENUM, SCHEDULE_MONTHLY_UNIT, SCHEDULE_REPEAT_TYPE } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models';
|
|
5
6
|
import { CAPABILITY_INTEGRATION_STATUS_ENUM, CAPABILITY_RESOURCE_AVAILABLE_FOR_ENUM } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability-integration.model';
|
|
6
7
|
import { CAPABILITY_PROVIDER_INTEGRATION_ENUM, CAPABILITY_CATEGORY_ENUM, ICapability } from '@dv4resi/dvss-backend-module-datastore/dist/datastore/models/capability.model';
|
|
7
8
|
import { MySql2Database } from 'drizzle-orm/mysql2';
|
|
@@ -44,6 +45,8 @@ declare class IntegrationRequestLoggerService {
|
|
|
44
45
|
logError(logData: IIntegrationRequestLog): void;
|
|
45
46
|
logIntegrationRequest(logData: IIntegrationRequestLog): void;
|
|
46
47
|
private sanitizeHeaders;
|
|
48
|
+
private sanitizePayload;
|
|
49
|
+
private sanitizeFormEncodedString;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
declare class RateLimiterService {
|
|
@@ -1677,7 +1680,7 @@ interface IUpdateRecurringInvoiceStatusRequest {
|
|
|
1677
1680
|
status: RECURRING_INVOICE_STATUS_ENUM;
|
|
1678
1681
|
}
|
|
1679
1682
|
|
|
1680
|
-
interface
|
|
1683
|
+
interface IResource {
|
|
1681
1684
|
id: string;
|
|
1682
1685
|
displayName?: string;
|
|
1683
1686
|
capacity?: number;
|
|
@@ -1685,42 +1688,61 @@ interface ICalendarResource {
|
|
|
1685
1688
|
floorLabel?: string;
|
|
1686
1689
|
metadata?: Record<string, unknown>;
|
|
1687
1690
|
}
|
|
1688
|
-
interface
|
|
1691
|
+
interface IGetResourcesRequest {
|
|
1689
1692
|
search?: string;
|
|
1690
1693
|
}
|
|
1691
|
-
interface
|
|
1692
|
-
resources:
|
|
1694
|
+
interface IGetResourcesResponse {
|
|
1695
|
+
resources: IResource[];
|
|
1693
1696
|
}
|
|
1694
|
-
interface
|
|
1697
|
+
interface IResourceManagementContext {
|
|
1695
1698
|
integration: ICapabilityIntegration;
|
|
1696
1699
|
loggedInUserId: bigint;
|
|
1697
1700
|
}
|
|
1698
1701
|
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
+
declare enum EVENT_INSTANCE_KIND {
|
|
1703
|
+
SINGLE = "SINGLE",
|
|
1704
|
+
SERIES_MASTER = "SERIES_MASTER",
|
|
1705
|
+
OCCURRENCE = "OCCURRENCE",
|
|
1706
|
+
EXCEPTION = "EXCEPTION"
|
|
1702
1707
|
}
|
|
1703
|
-
interface
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
daysOfWeek?: string[];
|
|
1707
|
-
firstDayOfWeek?: string;
|
|
1708
|
-
dayOfMonth?: number;
|
|
1709
|
-
month?: number;
|
|
1710
|
-
index?: string;
|
|
1708
|
+
interface IBookingItemResource {
|
|
1709
|
+
id: string | number | bigint;
|
|
1710
|
+
resourceType?: OFFERING_RESOURCE_TYPE;
|
|
1711
1711
|
}
|
|
1712
|
-
interface
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
recurrenceTimeZone?: string;
|
|
1712
|
+
interface IBookingItem {
|
|
1713
|
+
id?: bigint;
|
|
1714
|
+
externalId?: string;
|
|
1715
|
+
type?: string;
|
|
1716
|
+
resources?: IBookingItemResource[];
|
|
1718
1717
|
}
|
|
1719
|
-
interface
|
|
1720
|
-
|
|
1721
|
-
|
|
1718
|
+
interface IBookingEvent {
|
|
1719
|
+
name: string;
|
|
1720
|
+
description?: string;
|
|
1721
|
+
notes?: string | null;
|
|
1722
|
+
locationId?: bigint;
|
|
1723
|
+
isFullDay?: boolean;
|
|
1724
|
+
isRecurring?: boolean;
|
|
1725
|
+
paxCount?: number;
|
|
1726
|
+
bookingStartDateLabel: string;
|
|
1727
|
+
bookingEndDateLabel?: string;
|
|
1728
|
+
bookingStartTimeLabel?: string;
|
|
1729
|
+
bookingEndTimeLabel?: string;
|
|
1730
|
+
bookingTimeType?: OFFERING_BOOKING_TIME_TYPE;
|
|
1731
|
+
meta?: unknown;
|
|
1732
|
+
requestedForIds?: string[];
|
|
1733
|
+
recipientIds?: string[];
|
|
1734
|
+
preferences?: unknown[];
|
|
1735
|
+
assets?: unknown[];
|
|
1736
|
+
items?: IBookingItem[];
|
|
1737
|
+
schedule?: IScheduleConfig;
|
|
1738
|
+
offeringBookableItemSlotId?: bigint;
|
|
1739
|
+
durationInMinutes?: number;
|
|
1740
|
+
overrideDates?: string[];
|
|
1741
|
+
id?: string;
|
|
1742
|
+
timeZone?: string;
|
|
1743
|
+
syncMetadata?: IEventSyncMetadata;
|
|
1722
1744
|
}
|
|
1723
|
-
interface
|
|
1745
|
+
interface IEventSyncMetadata {
|
|
1724
1746
|
createdBy?: 'DVSS' | 'PROVIDER';
|
|
1725
1747
|
syncVersion?: number;
|
|
1726
1748
|
lastSyncTimestamp?: string;
|
|
@@ -1733,90 +1755,58 @@ interface ICalendarEventSyncMetadata {
|
|
|
1733
1755
|
}[];
|
|
1734
1756
|
organizerUserEmail?: string;
|
|
1735
1757
|
resourceId?: string;
|
|
1758
|
+
excludedDateResults?: IExcludedDateResult[];
|
|
1736
1759
|
}
|
|
1737
|
-
interface
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
}
|
|
1742
|
-
interface ICalendarEvent {
|
|
1743
|
-
id?: string;
|
|
1744
|
-
subject: string;
|
|
1745
|
-
body?: string;
|
|
1746
|
-
start: ICalendarDateTime;
|
|
1747
|
-
end: ICalendarDateTime;
|
|
1748
|
-
location?: string;
|
|
1749
|
-
resourceId?: string;
|
|
1750
|
-
recurrence?: ICalendarRecurrence;
|
|
1751
|
-
attendees?: ICalendarAttendee[];
|
|
1752
|
-
organizerEmail?: string;
|
|
1753
|
-
showAs?: string;
|
|
1754
|
-
isCancelled?: boolean;
|
|
1755
|
-
syncMetadata?: ICalendarEventSyncMetadata;
|
|
1756
|
-
providerPayload?: Record<string, unknown>;
|
|
1760
|
+
interface IExcludedDateResult {
|
|
1761
|
+
date: string;
|
|
1762
|
+
eventId?: string;
|
|
1763
|
+
excluded: boolean;
|
|
1757
1764
|
}
|
|
1758
|
-
interface
|
|
1765
|
+
interface IMailboxScope {
|
|
1759
1766
|
organizerUserEmail?: string;
|
|
1760
1767
|
}
|
|
1761
|
-
interface
|
|
1762
|
-
event:
|
|
1763
|
-
resourceId: string;
|
|
1768
|
+
interface ICreateEventRequest {
|
|
1769
|
+
event: IBookingEvent;
|
|
1764
1770
|
}
|
|
1765
|
-
interface
|
|
1771
|
+
interface IUpdateEventRequest extends IMailboxScope {
|
|
1766
1772
|
eventId: string;
|
|
1767
|
-
|
|
1768
|
-
event: Partial<
|
|
1773
|
+
resourceEmail: string;
|
|
1774
|
+
event: Partial<IBookingEvent>;
|
|
1769
1775
|
}
|
|
1770
|
-
interface
|
|
1776
|
+
interface ICancelEventRequest extends IMailboxScope {
|
|
1771
1777
|
eventId: string;
|
|
1772
|
-
|
|
1773
|
-
}
|
|
1774
|
-
interface IDeleteCalendarEventRequest extends ICalendarMailboxScope {
|
|
1775
|
-
eventId: string;
|
|
1776
|
-
resourceId: string;
|
|
1778
|
+
resourceEmail: string;
|
|
1777
1779
|
}
|
|
1778
|
-
interface
|
|
1780
|
+
interface IDeleteEventRequest extends IMailboxScope {
|
|
1779
1781
|
eventId: string;
|
|
1780
|
-
|
|
1782
|
+
resourceEmail: string;
|
|
1781
1783
|
}
|
|
1782
|
-
interface
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1784
|
+
interface IGetEventsRequest extends IMailboxScope {
|
|
1785
|
+
resourceEmail: string;
|
|
1786
|
+
startDateLabel?: string;
|
|
1787
|
+
endDateLabel?: string;
|
|
1788
|
+
timeZone?: string;
|
|
1787
1789
|
}
|
|
1788
|
-
interface
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
resourceId: string;
|
|
1794
|
-
syncToken?: string;
|
|
1795
|
-
}
|
|
1796
|
-
interface ISyncCalendarEventsResponse {
|
|
1797
|
-
events: ICalendarEvent[];
|
|
1798
|
-
nextSyncToken?: string;
|
|
1799
|
-
}
|
|
1800
|
-
interface IGetRoomAvailabilityRequest {
|
|
1801
|
-
resourceIds: string[];
|
|
1802
|
-
start: ICalendarDateTime;
|
|
1803
|
-
end: ICalendarDateTime;
|
|
1790
|
+
interface IBookingEventRef {
|
|
1791
|
+
id?: string;
|
|
1792
|
+
seriesId?: string;
|
|
1793
|
+
instanceKind?: EVENT_INSTANCE_KIND;
|
|
1794
|
+
syncMetadata?: IEventSyncMetadata;
|
|
1804
1795
|
}
|
|
1805
|
-
interface
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
status: 'free' | 'busy' | 'tentative' | 'oof' | 'unknown';
|
|
1796
|
+
interface IBookingEventInstance {
|
|
1797
|
+
id: string;
|
|
1798
|
+
startDateLabel: string;
|
|
1799
|
+
seriesId?: string;
|
|
1810
1800
|
}
|
|
1811
|
-
interface
|
|
1812
|
-
|
|
1801
|
+
interface IGetEventsResponse {
|
|
1802
|
+
events: IBookingEventInstance[];
|
|
1813
1803
|
}
|
|
1814
|
-
interface
|
|
1804
|
+
interface IBookingManagementContext {
|
|
1815
1805
|
integration: ICapabilityIntegration;
|
|
1816
1806
|
loggedInUserId: bigint;
|
|
1817
1807
|
}
|
|
1818
1808
|
|
|
1819
|
-
interface
|
|
1809
|
+
interface IWebhookSubscription {
|
|
1820
1810
|
id?: string;
|
|
1821
1811
|
resource: string;
|
|
1822
1812
|
changeTypes: string[];
|
|
@@ -1825,27 +1815,27 @@ interface ICalendarWebhookSubscription {
|
|
|
1825
1815
|
clientState?: string;
|
|
1826
1816
|
metadata?: Record<string, unknown>;
|
|
1827
1817
|
}
|
|
1828
|
-
interface
|
|
1818
|
+
interface IRegisterWebhookRequest {
|
|
1829
1819
|
resource: string;
|
|
1830
1820
|
changeTypes: string[];
|
|
1831
1821
|
notificationUrl: string;
|
|
1832
1822
|
expirationDateTime: string;
|
|
1833
1823
|
clientState?: string;
|
|
1834
1824
|
}
|
|
1835
|
-
interface
|
|
1836
|
-
subscription:
|
|
1825
|
+
interface IRegisterWebhookResponse {
|
|
1826
|
+
subscription: IWebhookSubscription;
|
|
1837
1827
|
}
|
|
1838
|
-
interface
|
|
1828
|
+
interface IRefreshWebhookRequest {
|
|
1839
1829
|
subscriptionId: string;
|
|
1840
1830
|
expirationDateTime: string;
|
|
1841
1831
|
}
|
|
1842
|
-
interface
|
|
1843
|
-
subscription:
|
|
1832
|
+
interface IRefreshWebhookResponse {
|
|
1833
|
+
subscription: IWebhookSubscription;
|
|
1844
1834
|
}
|
|
1845
|
-
interface
|
|
1835
|
+
interface IDeleteWebhookRequest {
|
|
1846
1836
|
subscriptionId: string;
|
|
1847
1837
|
}
|
|
1848
|
-
interface
|
|
1838
|
+
interface IWebhookManagementContext {
|
|
1849
1839
|
integration: ICapabilityIntegration;
|
|
1850
1840
|
loggedInUserId: bigint;
|
|
1851
1841
|
}
|
|
@@ -2116,29 +2106,155 @@ declare abstract class BaseAccountingMiscellaneousManagement {
|
|
|
2116
2106
|
}
|
|
2117
2107
|
|
|
2118
2108
|
declare abstract class BaseCalendarResourceManagement {
|
|
2119
|
-
abstract getResources(request:
|
|
2109
|
+
abstract getResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
|
|
2120
2110
|
}
|
|
2121
2111
|
|
|
2122
2112
|
declare abstract class BaseCalendarBookingManagement {
|
|
2123
|
-
abstract createEvent(request:
|
|
2124
|
-
abstract updateEvent(request:
|
|
2125
|
-
abstract cancelEvent(request:
|
|
2126
|
-
abstract deleteEvent(request:
|
|
2127
|
-
abstract
|
|
2128
|
-
abstract getEvents(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2129
|
-
abstract syncEvents(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2130
|
-
abstract getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2113
|
+
abstract createEvent(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2114
|
+
abstract updateEvent(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2115
|
+
abstract cancelEvent(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2116
|
+
abstract deleteEvent(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2117
|
+
abstract getEvents(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
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;
|
|
@@ -2220,6 +2336,7 @@ interface IMicrosoftGraphEvent {
|
|
|
2220
2336
|
};
|
|
2221
2337
|
start?: IMicrosoftGraphDateTimeTimeZone;
|
|
2222
2338
|
end?: IMicrosoftGraphDateTimeTimeZone;
|
|
2339
|
+
isAllDay?: boolean;
|
|
2223
2340
|
location?: {
|
|
2224
2341
|
displayName?: string;
|
|
2225
2342
|
};
|
|
@@ -2233,6 +2350,8 @@ interface IMicrosoftGraphEvent {
|
|
|
2233
2350
|
name?: string;
|
|
2234
2351
|
};
|
|
2235
2352
|
};
|
|
2353
|
+
seriesMasterId?: string;
|
|
2354
|
+
type?: string;
|
|
2236
2355
|
}
|
|
2237
2356
|
interface IMicrosoftGraphEventsResponse {
|
|
2238
2357
|
value?: IMicrosoftGraphEvent[];
|
|
@@ -2254,20 +2373,19 @@ interface IMicrosoftGraphSubscription {
|
|
|
2254
2373
|
|
|
2255
2374
|
declare class MicrosoftAuthService implements BaseAuth {
|
|
2256
2375
|
private readonly logger;
|
|
2257
|
-
private readonly
|
|
2258
|
-
private readonly integrationConfigurationDao;
|
|
2376
|
+
private readonly oauth2Provider;
|
|
2259
2377
|
private readonly secureStorage?;
|
|
2260
2378
|
private readonly fileName;
|
|
2261
|
-
constructor(logger: LoggerService,
|
|
2379
|
+
constructor(logger: LoggerService, oauth2Provider: OAuth2Provider, secureStorage?: IntegrationConfigSecureStorageService | undefined);
|
|
2262
2380
|
validateConfig(integration: ICapabilityIntegration, loggedInUserId: bigint): IValidatedCapabilityIntegration;
|
|
2263
2381
|
parseAndValidateConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): IMicrosoftConfig;
|
|
2264
2382
|
resolvePlaintextConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): Promise<IMicrosoftConfig>;
|
|
2265
2383
|
getAccessToken(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint, forceRefresh?: boolean): Promise<IMicrosoftAccessToken>;
|
|
2384
|
+
persistMintedAccessToken(capabilityIntegrationId: bigint, token: IMicrosoftAccessToken, loggedInUserId: bigint): Promise<void>;
|
|
2266
2385
|
fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
|
|
2267
2386
|
testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
|
|
2268
|
-
|
|
2269
|
-
private
|
|
2270
|
-
private persistAccessDetails;
|
|
2387
|
+
toMintCredentials(config: IMicrosoftConfig): IOauthMintCredentials;
|
|
2388
|
+
private toMicrosoftAccessToken;
|
|
2271
2389
|
}
|
|
2272
2390
|
|
|
2273
2391
|
interface IMicrosoftApiCallRequest<TBody = unknown> {
|
|
@@ -2280,14 +2398,14 @@ interface IMicrosoftApiCallRequest<TBody = unknown> {
|
|
|
2280
2398
|
declare class MicrosoftApiClientService {
|
|
2281
2399
|
private readonly logger;
|
|
2282
2400
|
private readonly authService;
|
|
2401
|
+
private readonly oauth2Provider;
|
|
2283
2402
|
private readonly trafficGatewayService;
|
|
2284
2403
|
private readonly fileName;
|
|
2285
2404
|
private readonly maxAuthRetryCount;
|
|
2286
|
-
constructor(logger: LoggerService, authService: MicrosoftAuthService, trafficGatewayService: TrafficGatewayService);
|
|
2405
|
+
constructor(logger: LoggerService, authService: MicrosoftAuthService, oauth2Provider: OAuth2Provider, trafficGatewayService: TrafficGatewayService);
|
|
2287
2406
|
apiCall<TResponse = unknown, TBody = unknown>(request: IMicrosoftApiCallRequest<TBody>, integration: ICapabilityIntegration, loggedInUserId?: bigint): Promise<TResponse>;
|
|
2288
2407
|
private executeWithRetry;
|
|
2289
2408
|
private isUnauthorizedError;
|
|
2290
|
-
private clearCachedAccessDetails;
|
|
2291
2409
|
}
|
|
2292
2410
|
|
|
2293
2411
|
declare class MicrosoftIntegrationConfigurationService extends BaseIntegrationConfiguration {
|
|
@@ -2302,7 +2420,7 @@ declare class MicrosoftCalendarResourceService extends BaseCalendarResourceManag
|
|
|
2302
2420
|
private readonly microsoftApiClient;
|
|
2303
2421
|
private readonly fileName;
|
|
2304
2422
|
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2305
|
-
getResources(request:
|
|
2423
|
+
getResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
|
|
2306
2424
|
private mapRoom;
|
|
2307
2425
|
}
|
|
2308
2426
|
|
|
@@ -2311,19 +2429,17 @@ declare class MicrosoftCalendarBookingService extends BaseCalendarBookingManagem
|
|
|
2311
2429
|
private readonly microsoftApiClient;
|
|
2312
2430
|
private readonly fileName;
|
|
2313
2431
|
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2314
|
-
createEvent(request:
|
|
2315
|
-
updateEvent(request:
|
|
2316
|
-
cancelEvent(request:
|
|
2317
|
-
deleteEvent(request:
|
|
2318
|
-
|
|
2319
|
-
getEvents(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2320
|
-
syncEvents(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2321
|
-
getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2432
|
+
createEvent(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2433
|
+
updateEvent(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2434
|
+
cancelEvent(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2435
|
+
deleteEvent(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2436
|
+
getEvents(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
2322
2437
|
private deleteGraphEvent;
|
|
2323
|
-
private
|
|
2438
|
+
private resolveSkipDatesIfAny;
|
|
2439
|
+
private findOccurrenceInstanceId;
|
|
2440
|
+
private pickMailbox;
|
|
2324
2441
|
private organizerUserMailbox;
|
|
2325
|
-
private
|
|
2326
|
-
private assertResourceId;
|
|
2442
|
+
private assertMailbox;
|
|
2327
2443
|
private assertEventId;
|
|
2328
2444
|
}
|
|
2329
2445
|
|
|
@@ -2332,9 +2448,9 @@ declare class MicrosoftCalendarWebhookService extends BaseCalendarWebhookManagem
|
|
|
2332
2448
|
private readonly microsoftApiClient;
|
|
2333
2449
|
private readonly fileName;
|
|
2334
2450
|
constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
|
|
2335
|
-
registerWebhook(request:
|
|
2336
|
-
refreshSubscription(request:
|
|
2337
|
-
deleteSubscription(request:
|
|
2451
|
+
registerWebhook(request: IRegisterWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterWebhookResponse>;
|
|
2452
|
+
refreshSubscription(request: IRefreshWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshWebhookResponse>;
|
|
2453
|
+
deleteSubscription(request: IDeleteWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2338
2454
|
private toGraphSubscription;
|
|
2339
2455
|
private fromGraphSubscription;
|
|
2340
2456
|
private collectUnknownGraphFields;
|
|
@@ -2381,24 +2497,21 @@ declare abstract class AdapterFactoryService<TProvider extends string | number |
|
|
|
2381
2497
|
}
|
|
2382
2498
|
|
|
2383
2499
|
declare abstract class ICalendarBookingHandler {
|
|
2384
|
-
abstract addCalendarBooking(request:
|
|
2385
|
-
abstract updateCalendarBooking(request:
|
|
2386
|
-
abstract cancelCalendarBooking(request:
|
|
2387
|
-
abstract deleteCalendarBooking(request:
|
|
2388
|
-
abstract
|
|
2389
|
-
abstract getCalendarBookings(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2390
|
-
abstract syncCalendarBookings(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2391
|
-
abstract getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2500
|
+
abstract addCalendarBooking(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2501
|
+
abstract updateCalendarBooking(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2502
|
+
abstract cancelCalendarBooking(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2503
|
+
abstract deleteCalendarBooking(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2504
|
+
abstract getCalendarBookings(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
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,25 @@ 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
|
-
|
|
2425
|
-
getCalendarBookings(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
|
|
2426
|
-
syncCalendarBookings(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
|
|
2427
|
-
getRoomAvailability(request: IGetRoomAvailabilityRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetRoomAvailabilityResponse>;
|
|
2533
|
+
addCalendarBooking(request: ICreateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2534
|
+
updateCalendarBooking(request: IUpdateEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IBookingEventRef>;
|
|
2535
|
+
cancelCalendarBooking(request: ICancelEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2536
|
+
deleteCalendarBooking(request: IDeleteEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2537
|
+
getCalendarBookings(request: IGetEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetEventsResponse>;
|
|
2428
2538
|
}
|
|
2429
2539
|
|
|
2430
2540
|
declare class MicrosoftCalendarResourceHandler extends ICalendarResourceHandler {
|
|
2431
2541
|
private readonly microsoftCalendarResourceService;
|
|
2432
2542
|
constructor(microsoftCalendarResourceService: MicrosoftCalendarResourceService);
|
|
2433
|
-
getCalendarResources(request:
|
|
2543
|
+
getCalendarResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
|
|
2434
2544
|
}
|
|
2435
2545
|
|
|
2436
2546
|
declare class MicrosoftCalendarWebhookHandler extends ICalendarWebhookHandler {
|
|
2437
2547
|
private readonly microsoftCalendarWebhookService;
|
|
2438
2548
|
constructor(microsoftCalendarWebhookService: MicrosoftCalendarWebhookService);
|
|
2439
|
-
registerCalendarWebhook(request:
|
|
2440
|
-
refreshCalendarWebhook(request:
|
|
2441
|
-
deleteCalendarWebhook(request:
|
|
2549
|
+
registerCalendarWebhook(request: IRegisterWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterWebhookResponse>;
|
|
2550
|
+
refreshCalendarWebhook(request: IRefreshWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshWebhookResponse>;
|
|
2551
|
+
deleteCalendarWebhook(request: IDeleteWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
|
|
2442
2552
|
}
|
|
2443
2553
|
|
|
2444
2554
|
declare class MicrosoftCalendarAuthHandler extends ICalendarAuthHandler {
|
|
@@ -2483,4 +2593,4 @@ declare class CalendarIntegrationConfigurationAdapterFactory extends AdapterFact
|
|
|
2483
2593
|
constructor(microsoftCalendarIntegrationConfigurationHandler: MicrosoftCalendarIntegrationConfigurationHandler);
|
|
2484
2594
|
}
|
|
2485
2595
|
|
|
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 };
|
|
2596
|
+
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, EVENT_INSTANCE_KIND, 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 IBookingEvent, type IBookingEventInstance, type IBookingEventRef, type IBookingItem, type IBookingItemResource, 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 IDeleteAPIResponse, type IDeleteCustomerContactPersonRequest, type IDeleteDeviceInput, type IDeleteDeviceResponse, type IDeleteEventRequest, type IDeleteWebhookRequest, type IDownloadCustomerAccountingStatementRequest, type IEventSyncMetadata, type IExcludedDateResult, 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 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 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 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 };
|