@dv4resi/dvss-backend-module-calendar-im 0.0.2 → 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/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 {
@@ -1140,6 +1142,7 @@ interface GetFolioActivitiesOptionsInput {
1140
1142
  interface GetCustomerActivitiesInput {
1141
1143
  customerId: string;
1142
1144
  projectId: string;
1145
+ propertyTimeZone: string;
1143
1146
  options?: GetFolioActivitiesOptionsInput;
1144
1147
  }
1145
1148
 
@@ -1300,6 +1303,8 @@ interface IUpdateCustomerPaymentRequest {
1300
1303
  apiName: string;
1301
1304
  value: string;
1302
1305
  }>;
1306
+ bankCharges?: number;
1307
+ accountId?: string;
1303
1308
  }
1304
1309
  interface IGetCreateCustomerPayment {
1305
1310
  payment: IGetCreateCustomerPaymentInfo;
@@ -1498,6 +1503,7 @@ interface ICustomerCreditNoteDetail {
1498
1503
  creditNoteNumber: string;
1499
1504
  status: CREDIT_NOTE_STATUS;
1500
1505
  customerId: string;
1506
+ date: string;
1501
1507
  operator?: ICreditNoteOperator;
1502
1508
  updatedAt?: Date;
1503
1509
  appliedInvoices: ICreditNoteAppliedInvoice[];
@@ -1588,6 +1594,12 @@ interface IGetRecurringInvoicesOptions {
1588
1594
  interface IGetRecurringInvoicesRequest {
1589
1595
  getRecurringInvoicesInput?: IGetRecurringInvoicesOptions;
1590
1596
  }
1597
+ interface IGetRecurringInvoiceInput {
1598
+ recurringInvoiceId: string;
1599
+ }
1600
+ interface IGetRecurringInvoiceRequest extends IInvoiceIntegrationRequest {
1601
+ getRecurringInvoiceInput: IGetRecurringInvoiceInput;
1602
+ }
1591
1603
  declare enum RECURRING_INVOICE_STATUS {
1592
1604
  ACTIVE = "ACTIVE",
1593
1605
  STOPPED = "STOPPED",
@@ -1667,7 +1679,7 @@ interface IUpdateRecurringInvoiceStatusRequest {
1667
1679
  status: RECURRING_INVOICE_STATUS_ENUM;
1668
1680
  }
1669
1681
 
1670
- interface ICalendarResource {
1682
+ interface IResource {
1671
1683
  id: string;
1672
1684
  displayName?: string;
1673
1685
  capacity?: number;
@@ -1675,126 +1687,124 @@ interface ICalendarResource {
1675
1687
  floorLabel?: string;
1676
1688
  metadata?: Record<string, unknown>;
1677
1689
  }
1678
- interface IGetCalendarResourcesRequest {
1690
+ interface IGetResourcesRequest {
1679
1691
  search?: string;
1680
1692
  }
1681
- interface IGetCalendarResourcesResponse {
1682
- resources: ICalendarResource[];
1693
+ interface IGetResourcesResponse {
1694
+ resources: IResource[];
1683
1695
  }
1684
- interface ICalendarResourceManagementContext {
1696
+ interface IResourceManagementContext {
1685
1697
  integration: ICapabilityIntegration;
1686
1698
  loggedInUserId: bigint;
1687
1699
  }
1688
1700
 
1689
- interface ICalendarDateTime {
1701
+ interface IDateTime {
1690
1702
  dateTime: string;
1691
1703
  timeZone: string;
1692
1704
  }
1693
- interface ICalendarRecurrencePattern {
1705
+ interface IRecurrencePattern {
1694
1706
  type: string;
1695
1707
  interval: number;
1696
1708
  daysOfWeek?: string[];
1697
1709
  firstDayOfWeek?: string;
1698
1710
  dayOfMonth?: number;
1699
1711
  month?: number;
1712
+ index?: string;
1700
1713
  }
1701
- interface ICalendarRecurrenceRange {
1714
+ interface IRecurrenceRange {
1702
1715
  type: string;
1703
1716
  startDate: string;
1704
1717
  endDate?: string;
1705
1718
  numberOfOccurrences?: number;
1706
1719
  recurrenceTimeZone?: string;
1707
1720
  }
1708
- interface ICalendarRecurrence {
1709
- pattern: ICalendarRecurrencePattern;
1710
- range: ICalendarRecurrenceRange;
1721
+ interface IRecurrence {
1722
+ pattern: IRecurrencePattern;
1723
+ range: IRecurrenceRange;
1711
1724
  }
1712
- interface ICalendarEventSyncMetadata {
1725
+ interface IEventSyncMetadata {
1713
1726
  createdBy?: 'DVSS' | 'PROVIDER';
1714
1727
  syncVersion?: number;
1715
1728
  lastSyncTimestamp?: string;
1716
1729
  externalEventId?: string;
1730
+ syncType?: 'SINGLE' | 'RECURRING_SERIES' | 'CUSTOM_DATES';
1731
+ externalSeriesId?: string;
1732
+ externalEventIds?: {
1733
+ date: string;
1734
+ eventId: string;
1735
+ }[];
1736
+ organizerUserEmail?: string;
1737
+ resourceId?: string;
1717
1738
  }
1718
- interface ICalendarAttendee {
1739
+ interface IAttendee {
1719
1740
  email: string;
1720
1741
  name?: string;
1721
1742
  type?: string;
1722
1743
  }
1723
- interface ICalendarEvent {
1744
+ interface IEvent {
1724
1745
  id?: string;
1725
1746
  subject: string;
1726
1747
  body?: string;
1727
- start: ICalendarDateTime;
1728
- end: ICalendarDateTime;
1748
+ start: IDateTime;
1749
+ end: IDateTime;
1729
1750
  location?: string;
1730
- resourceEmail?: string;
1731
- recurrence?: ICalendarRecurrence;
1732
- attendees?: ICalendarAttendee[];
1751
+ resourceId?: string;
1752
+ recurrence?: IRecurrence;
1753
+ attendees?: IAttendee[];
1733
1754
  organizerEmail?: string;
1734
1755
  showAs?: string;
1735
1756
  isCancelled?: boolean;
1736
- syncMetadata?: ICalendarEventSyncMetadata;
1757
+ syncMetadata?: IEventSyncMetadata;
1737
1758
  providerPayload?: Record<string, unknown>;
1738
1759
  }
1739
- interface ICreateCalendarEventRequest {
1740
- event: ICalendarEvent;
1741
- resourceEmail: string;
1760
+ interface IMailboxScope {
1761
+ organizerUserEmail?: string;
1742
1762
  }
1743
- interface IUpdateCalendarEventRequest {
1763
+ interface ICreateEventRequest extends IMailboxScope {
1764
+ event: IEvent;
1765
+ resourceId: string;
1766
+ }
1767
+ interface IUpdateEventRequest extends IMailboxScope {
1744
1768
  eventId: string;
1745
- resourceEmail: string;
1746
- event: Partial<ICalendarEvent>;
1769
+ resourceId: string;
1770
+ event: Partial<IEvent>;
1747
1771
  }
1748
- interface ICancelCalendarEventRequest {
1772
+ interface ICancelEventRequest extends IMailboxScope {
1749
1773
  eventId: string;
1750
- resourceEmail: string;
1774
+ resourceId: string;
1751
1775
  }
1752
- interface IDeleteCalendarEventRequest {
1776
+ interface IDeleteEventRequest extends IMailboxScope {
1753
1777
  eventId: string;
1754
- resourceEmail: string;
1778
+ resourceId: string;
1755
1779
  }
1756
- interface IGetCalendarEventRequest {
1780
+ interface IGetEventRequest extends IMailboxScope {
1757
1781
  eventId: string;
1758
- resourceEmail: string;
1782
+ resourceId: string;
1759
1783
  }
1760
- interface IGetCalendarEventsRequest {
1761
- resourceEmail: string;
1762
- start?: ICalendarDateTime;
1763
- end?: ICalendarDateTime;
1784
+ interface IGetEventsRequest extends IMailboxScope {
1785
+ resourceId: string;
1786
+ start?: IDateTime;
1787
+ end?: IDateTime;
1764
1788
  syncToken?: string;
1765
1789
  }
1766
- interface IGetCalendarEventsResponse {
1767
- events: ICalendarEvent[];
1790
+ interface IGetEventsResponse {
1791
+ events: IEvent[];
1768
1792
  nextSyncToken?: string;
1769
1793
  }
1770
- interface ISyncCalendarEventsRequest {
1771
- resourceEmail: string;
1794
+ interface ISyncEventsRequest extends IMailboxScope {
1795
+ resourceId: string;
1772
1796
  syncToken?: string;
1773
1797
  }
1774
- interface ISyncCalendarEventsResponse {
1775
- events: ICalendarEvent[];
1798
+ interface ISyncEventsResponse {
1799
+ events: IEvent[];
1776
1800
  nextSyncToken?: string;
1777
1801
  }
1778
- interface IGetRoomAvailabilityRequest {
1779
- resourceEmails: string[];
1780
- start: ICalendarDateTime;
1781
- end: ICalendarDateTime;
1782
- }
1783
- interface IRoomAvailabilitySlot {
1784
- resourceEmail: string;
1785
- start: ICalendarDateTime;
1786
- end: ICalendarDateTime;
1787
- status: 'free' | 'busy' | 'tentative' | 'oof' | 'unknown';
1788
- }
1789
- interface IGetRoomAvailabilityResponse {
1790
- slots: IRoomAvailabilitySlot[];
1791
- }
1792
- interface ICalendarBookingManagementContext {
1802
+ interface IBookingManagementContext {
1793
1803
  integration: ICapabilityIntegration;
1794
1804
  loggedInUserId: bigint;
1795
1805
  }
1796
1806
 
1797
- interface ICalendarWebhookSubscription {
1807
+ interface IWebhookSubscription {
1798
1808
  id?: string;
1799
1809
  resource: string;
1800
1810
  changeTypes: string[];
@@ -1803,27 +1813,27 @@ interface ICalendarWebhookSubscription {
1803
1813
  clientState?: string;
1804
1814
  metadata?: Record<string, unknown>;
1805
1815
  }
1806
- interface IRegisterCalendarWebhookRequest {
1816
+ interface IRegisterWebhookRequest {
1807
1817
  resource: string;
1808
1818
  changeTypes: string[];
1809
1819
  notificationUrl: string;
1810
1820
  expirationDateTime: string;
1811
1821
  clientState?: string;
1812
1822
  }
1813
- interface IRegisterCalendarWebhookResponse {
1814
- subscription: ICalendarWebhookSubscription;
1823
+ interface IRegisterWebhookResponse {
1824
+ subscription: IWebhookSubscription;
1815
1825
  }
1816
- interface IRefreshCalendarWebhookRequest {
1826
+ interface IRefreshWebhookRequest {
1817
1827
  subscriptionId: string;
1818
1828
  expirationDateTime: string;
1819
1829
  }
1820
- interface IRefreshCalendarWebhookResponse {
1821
- subscription: ICalendarWebhookSubscription;
1830
+ interface IRefreshWebhookResponse {
1831
+ subscription: IWebhookSubscription;
1822
1832
  }
1823
- interface IDeleteCalendarWebhookRequest {
1833
+ interface IDeleteWebhookRequest {
1824
1834
  subscriptionId: string;
1825
1835
  }
1826
- interface ICalendarWebhookManagementContext {
1836
+ interface IWebhookManagementContext {
1827
1837
  integration: ICapabilityIntegration;
1828
1838
  loggedInUserId: bigint;
1829
1839
  }
@@ -1980,6 +1990,7 @@ declare abstract class BaseAccountingInvoiceManagement {
1980
1990
  abstract deleteInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
1981
1991
  abstract downloadInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<ArrayBuffer>;
1982
1992
  abstract getInvoice(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IInvoiceResponse>;
1993
+ abstract getRecurringInvoice(request: IGetRecurringInvoiceRequest, loggedInUserId: bigint): Promise<unknown>;
1983
1994
  abstract markInvoiceAsPaid(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
1984
1995
  abstract updateInvoiceStatus(request: IInvoiceIntegrationRequest, loggedInUserId: bigint): Promise<IAccountingAPIResponse>;
1985
1996
  abstract getInvoices(request: IGetInvoicesRequest, capabilityIntegration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IInvoicesResponse>;
@@ -2093,29 +2104,157 @@ declare abstract class BaseAccountingMiscellaneousManagement {
2093
2104
  }
2094
2105
 
2095
2106
  declare abstract class BaseCalendarResourceManagement {
2096
- abstract getResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
2107
+ abstract getResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
2097
2108
  }
2098
2109
 
2099
2110
  declare abstract class BaseCalendarBookingManagement {
2100
- abstract createEvent(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2101
- abstract updateEvent(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2102
- abstract cancelEvent(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2103
- abstract deleteEvent(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2104
- abstract getEvent(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2105
- abstract getEvents(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
2106
- abstract syncEvents(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
2107
- 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>;
2108
2118
  }
2109
2119
 
2110
2120
  declare abstract class BaseCalendarWebhookManagement {
2111
- abstract registerWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
2112
- abstract refreshSubscription(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
2113
- abstract deleteSubscription(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
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>;
2114
2124
  }
2115
2125
 
2116
2126
  declare class AppModule {
2117
2127
  }
2118
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
+
2119
2258
  interface IMicrosoftPlatformConfig {
2120
2259
  authUrl: string;
2121
2260
  baseUrl: string;
@@ -2168,6 +2307,7 @@ interface IMicrosoftGraphRecurrencePattern {
2168
2307
  firstDayOfWeek?: string;
2169
2308
  dayOfMonth?: number;
2170
2309
  month?: number;
2310
+ index?: string;
2171
2311
  }
2172
2312
  interface IMicrosoftGraphRecurrenceRange {
2173
2313
  type?: string;
@@ -2230,20 +2370,19 @@ interface IMicrosoftGraphSubscription {
2230
2370
 
2231
2371
  declare class MicrosoftAuthService implements BaseAuth {
2232
2372
  private readonly logger;
2233
- private readonly trafficGatewayService;
2234
- private readonly integrationConfigurationDao;
2373
+ private readonly oauth2Provider;
2235
2374
  private readonly secureStorage?;
2236
2375
  private readonly fileName;
2237
- constructor(logger: LoggerService, trafficGatewayService: TrafficGatewayService, integrationConfigurationDao: IntegrationConfigurationDao, secureStorage?: IntegrationConfigSecureStorageService | undefined);
2376
+ constructor(logger: LoggerService, oauth2Provider: OAuth2Provider, secureStorage?: IntegrationConfigSecureStorageService | undefined);
2238
2377
  validateConfig(integration: ICapabilityIntegration, loggedInUserId: bigint): IValidatedCapabilityIntegration;
2239
2378
  parseAndValidateConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): IMicrosoftConfig;
2240
2379
  resolvePlaintextConfig(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint): Promise<IMicrosoftConfig>;
2241
2380
  getAccessToken(integration: ICapabilityIntegration | Omit<ICapabilityIntegration, 'id'>, loggedInUserId?: bigint, forceRefresh?: boolean): Promise<IMicrosoftAccessToken>;
2381
+ persistMintedAccessToken(capabilityIntegrationId: bigint, token: IMicrosoftAccessToken, loggedInUserId: bigint): Promise<void>;
2242
2382
  fetchAccessToken(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<string>;
2243
2383
  testIntegration(integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<boolean>;
2244
- private getCachedToken;
2245
- private requestAccessToken;
2246
- private persistAccessDetails;
2384
+ toMintCredentials(config: IMicrosoftConfig): IOauthMintCredentials;
2385
+ private toMicrosoftAccessToken;
2247
2386
  }
2248
2387
 
2249
2388
  interface IMicrosoftApiCallRequest<TBody = unknown> {
@@ -2256,14 +2395,14 @@ interface IMicrosoftApiCallRequest<TBody = unknown> {
2256
2395
  declare class MicrosoftApiClientService {
2257
2396
  private readonly logger;
2258
2397
  private readonly authService;
2398
+ private readonly oauth2Provider;
2259
2399
  private readonly trafficGatewayService;
2260
2400
  private readonly fileName;
2261
2401
  private readonly maxAuthRetryCount;
2262
- constructor(logger: LoggerService, authService: MicrosoftAuthService, trafficGatewayService: TrafficGatewayService);
2402
+ constructor(logger: LoggerService, authService: MicrosoftAuthService, oauth2Provider: OAuth2Provider, trafficGatewayService: TrafficGatewayService);
2263
2403
  apiCall<TResponse = unknown, TBody = unknown>(request: IMicrosoftApiCallRequest<TBody>, integration: ICapabilityIntegration, loggedInUserId?: bigint): Promise<TResponse>;
2264
2404
  private executeWithRetry;
2265
2405
  private isUnauthorizedError;
2266
- private clearCachedAccessDetails;
2267
2406
  }
2268
2407
 
2269
2408
  declare class MicrosoftIntegrationConfigurationService extends BaseIntegrationConfiguration {
@@ -2278,7 +2417,7 @@ declare class MicrosoftCalendarResourceService extends BaseCalendarResourceManag
2278
2417
  private readonly microsoftApiClient;
2279
2418
  private readonly fileName;
2280
2419
  constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
2281
- getResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
2420
+ getResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
2282
2421
  private mapRoom;
2283
2422
  }
2284
2423
 
@@ -2287,16 +2426,18 @@ declare class MicrosoftCalendarBookingService extends BaseCalendarBookingManagem
2287
2426
  private readonly microsoftApiClient;
2288
2427
  private readonly fileName;
2289
2428
  constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
2290
- createEvent(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2291
- updateEvent(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2292
- cancelEvent(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2293
- deleteEvent(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2294
- getEvent(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2295
- getEvents(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
2296
- syncEvents(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
2297
- 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>;
2298
2436
  private deleteGraphEvent;
2299
- private assertResourceEmail;
2437
+ private resolveMailboxEmail;
2438
+ private organizerUserMailbox;
2439
+ private resourceAsAttendee;
2440
+ private assertResourceId;
2300
2441
  private assertEventId;
2301
2442
  }
2302
2443
 
@@ -2305,9 +2446,9 @@ declare class MicrosoftCalendarWebhookService extends BaseCalendarWebhookManagem
2305
2446
  private readonly microsoftApiClient;
2306
2447
  private readonly fileName;
2307
2448
  constructor(logger: LoggerService, microsoftApiClient: MicrosoftApiClientService);
2308
- registerWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
2309
- refreshSubscription(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
2310
- deleteSubscription(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
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>;
2311
2452
  private toGraphSubscription;
2312
2453
  private fromGraphSubscription;
2313
2454
  private collectUnknownGraphFields;
@@ -2328,9 +2469,9 @@ declare const MICROSOFT_TOKEN_HEADERS: {
2328
2469
 
2329
2470
  declare const MICROSOFT_GRAPH_PATHS: {
2330
2471
  readonly rooms: "/places/microsoft.graph.room";
2331
- readonly userCalendarEvents: (roomEmail: string) => string;
2332
- readonly userCalendarEvent: (roomEmail: string, eventId: string) => string;
2333
- readonly userCalendarView: (roomEmail: string, startDateTime: string, endDateTime: string) => string;
2472
+ readonly userCalendarEvents: (mailboxEmail: string) => string;
2473
+ readonly userCalendarEvent: (mailboxEmail: string, eventId: string) => string;
2474
+ readonly userCalendarView: (mailboxEmail: string, startDateTime: string, endDateTime: string) => string;
2334
2475
  readonly subscriptions: "/subscriptions";
2335
2476
  readonly subscription: (subscriptionId: string) => string;
2336
2477
  };
@@ -2354,24 +2495,23 @@ declare abstract class AdapterFactoryService<TProvider extends string | number |
2354
2495
  }
2355
2496
 
2356
2497
  declare abstract class ICalendarBookingHandler {
2357
- abstract addCalendarBooking(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2358
- abstract updateCalendarBooking(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2359
- abstract cancelCalendarBooking(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2360
- abstract deleteCalendarBooking(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2361
- abstract getCalendarBooking(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2362
- abstract getCalendarBookings(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
2363
- abstract syncCalendarBookings(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
2364
- 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>;
2365
2505
  }
2366
2506
 
2367
2507
  declare abstract class ICalendarResourceHandler {
2368
- abstract getCalendarResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
2508
+ abstract getCalendarResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
2369
2509
  }
2370
2510
 
2371
2511
  declare abstract class ICalendarWebhookHandler {
2372
- abstract registerCalendarWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
2373
- abstract refreshCalendarWebhook(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
2374
- abstract deleteCalendarWebhook(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
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>;
2375
2515
  }
2376
2516
 
2377
2517
  declare abstract class ICalendarAuthHandler {
@@ -2390,28 +2530,27 @@ declare abstract class ICalendarIntegrationConfigurationHandler {
2390
2530
  declare class MicrosoftCalendarBookingHandler extends ICalendarBookingHandler {
2391
2531
  private readonly microsoftCalendarBookingService;
2392
2532
  constructor(microsoftCalendarBookingService: MicrosoftCalendarBookingService);
2393
- addCalendarBooking(request: ICreateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2394
- updateCalendarBooking(request: IUpdateCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2395
- cancelCalendarBooking(request: ICancelCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2396
- deleteCalendarBooking(request: IDeleteCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
2397
- getCalendarBooking(request: IGetCalendarEventRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ICalendarEvent>;
2398
- getCalendarBookings(request: IGetCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarEventsResponse>;
2399
- syncCalendarBookings(request: ISyncCalendarEventsRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<ISyncCalendarEventsResponse>;
2400
- 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>;
2401
2540
  }
2402
2541
 
2403
2542
  declare class MicrosoftCalendarResourceHandler extends ICalendarResourceHandler {
2404
2543
  private readonly microsoftCalendarResourceService;
2405
2544
  constructor(microsoftCalendarResourceService: MicrosoftCalendarResourceService);
2406
- getCalendarResources(request: IGetCalendarResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetCalendarResourcesResponse>;
2545
+ getCalendarResources(request: IGetResourcesRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IGetResourcesResponse>;
2407
2546
  }
2408
2547
 
2409
2548
  declare class MicrosoftCalendarWebhookHandler extends ICalendarWebhookHandler {
2410
2549
  private readonly microsoftCalendarWebhookService;
2411
2550
  constructor(microsoftCalendarWebhookService: MicrosoftCalendarWebhookService);
2412
- registerCalendarWebhook(request: IRegisterCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRegisterCalendarWebhookResponse>;
2413
- refreshCalendarWebhook(request: IRefreshCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<IRefreshCalendarWebhookResponse>;
2414
- deleteCalendarWebhook(request: IDeleteCalendarWebhookRequest, integration: ICapabilityIntegration, loggedInUserId: bigint): Promise<void>;
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>;
2415
2554
  }
2416
2555
 
2417
2556
  declare class MicrosoftCalendarAuthHandler extends ICalendarAuthHandler {
@@ -2456,4 +2595,4 @@ declare class CalendarIntegrationConfigurationAdapterFactory extends AdapterFact
2456
2595
  constructor(microsoftCalendarIntegrationConfigurationHandler: MicrosoftCalendarIntegrationConfigurationHandler);
2457
2596
  }
2458
2597
 
2459
- 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 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 };