@livechat/developer-studio-api 2.0.27 → 2.0.29
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.mts +20 -8
- package/dist/index.d.ts +20 -8
- package/dist/index.js +41 -4
- package/dist/index.mjs +41 -4
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -388,16 +388,24 @@ declare function getSentryClientConfig(options?: SentryClientInstanceOptions): A
|
|
|
388
388
|
declare function initSentryClientInstance(token?: string): void;
|
|
389
389
|
declare function updateSentryClientInstance(token: string | undefined): void;
|
|
390
390
|
|
|
391
|
-
interface
|
|
392
|
-
[
|
|
393
|
-
[
|
|
391
|
+
interface AppMonitoringUptimeReportDto {
|
|
392
|
+
[appId: string]: {
|
|
393
|
+
[date: string]: number;
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
interface
|
|
397
|
+
interface AppMonitoringEventsReportDto {
|
|
398
|
+
[appId: string]: {
|
|
399
|
+
[date: string]: {
|
|
400
|
+
[key: string]: number;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
interface GetAppMonitoringReportPayload {
|
|
398
406
|
from: string;
|
|
399
407
|
to: string;
|
|
400
|
-
resolution:
|
|
408
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
401
409
|
}
|
|
402
410
|
|
|
403
411
|
interface TextClientInstanceAuthorization {
|
|
@@ -2266,8 +2274,12 @@ declare const api: {
|
|
|
2266
2274
|
deleteProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
|
|
2267
2275
|
};
|
|
2268
2276
|
text: {
|
|
2269
|
-
|
|
2270
|
-
|
|
2277
|
+
app: {
|
|
2278
|
+
monitoring: {
|
|
2279
|
+
getUptimeReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2280
|
+
getEventReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2281
|
+
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2282
|
+
};
|
|
2271
2283
|
};
|
|
2272
2284
|
};
|
|
2273
2285
|
};
|
|
@@ -2335,4 +2347,4 @@ declare const serializerBase64: {
|
|
|
2335
2347
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2336
2348
|
};
|
|
2337
2349
|
|
|
2338
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType,
|
|
2350
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEventsReportDto, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType, GetAppMonitoringReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ReportingEvent, ReportingEventBase, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
package/dist/index.d.ts
CHANGED
|
@@ -388,16 +388,24 @@ declare function getSentryClientConfig(options?: SentryClientInstanceOptions): A
|
|
|
388
388
|
declare function initSentryClientInstance(token?: string): void;
|
|
389
389
|
declare function updateSentryClientInstance(token: string | undefined): void;
|
|
390
390
|
|
|
391
|
-
interface
|
|
392
|
-
[
|
|
393
|
-
[
|
|
391
|
+
interface AppMonitoringUptimeReportDto {
|
|
392
|
+
[appId: string]: {
|
|
393
|
+
[date: string]: number;
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
interface
|
|
397
|
+
interface AppMonitoringEventsReportDto {
|
|
398
|
+
[appId: string]: {
|
|
399
|
+
[date: string]: {
|
|
400
|
+
[key: string]: number;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
interface GetAppMonitoringReportPayload {
|
|
398
406
|
from: string;
|
|
399
407
|
to: string;
|
|
400
|
-
resolution:
|
|
408
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
401
409
|
}
|
|
402
410
|
|
|
403
411
|
interface TextClientInstanceAuthorization {
|
|
@@ -2266,8 +2274,12 @@ declare const api: {
|
|
|
2266
2274
|
deleteProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
|
|
2267
2275
|
};
|
|
2268
2276
|
text: {
|
|
2269
|
-
|
|
2270
|
-
|
|
2277
|
+
app: {
|
|
2278
|
+
monitoring: {
|
|
2279
|
+
getUptimeReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2280
|
+
getEventReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2281
|
+
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2282
|
+
};
|
|
2271
2283
|
};
|
|
2272
2284
|
};
|
|
2273
2285
|
};
|
|
@@ -2335,4 +2347,4 @@ declare const serializerBase64: {
|
|
|
2335
2347
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2336
2348
|
};
|
|
2337
2349
|
|
|
2338
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType,
|
|
2350
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEventsReportDto, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType, GetAppMonitoringReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ReportingEvent, ReportingEventBase, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
package/dist/index.js
CHANGED
|
@@ -1735,9 +1735,9 @@ function initTextClientInstance(baseUrl, token) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
|
-
// src/apis/integrations/text/
|
|
1739
|
-
var
|
|
1740
|
-
|
|
1738
|
+
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1739
|
+
var textAppMonitoringApi = {
|
|
1740
|
+
getUptimeReports(appId, payload, authorization) {
|
|
1741
1741
|
return __async(this, null, function* () {
|
|
1742
1742
|
try {
|
|
1743
1743
|
const response = yield textClientInstance.get(
|
|
@@ -1752,12 +1752,49 @@ var textUptimeApi = {
|
|
|
1752
1752
|
throw error;
|
|
1753
1753
|
}
|
|
1754
1754
|
});
|
|
1755
|
+
},
|
|
1756
|
+
getEventReports(appId, payload, authorization) {
|
|
1757
|
+
return __async(this, null, function* () {
|
|
1758
|
+
try {
|
|
1759
|
+
const response = yield textClientInstance.get(
|
|
1760
|
+
`/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
|
|
1761
|
+
getTextClientConfig(authorization)
|
|
1762
|
+
);
|
|
1763
|
+
return response.data;
|
|
1764
|
+
} catch (error) {
|
|
1765
|
+
if (error instanceof Error) {
|
|
1766
|
+
throw new Error(`Couldn't load event reports. [${error.message}]`);
|
|
1767
|
+
}
|
|
1768
|
+
throw error;
|
|
1769
|
+
}
|
|
1770
|
+
});
|
|
1771
|
+
},
|
|
1772
|
+
getEvents(appId, authorization) {
|
|
1773
|
+
return __async(this, null, function* () {
|
|
1774
|
+
try {
|
|
1775
|
+
const response = yield textClientInstance.get(
|
|
1776
|
+
`/app_monitoring/${appId}/events`,
|
|
1777
|
+
getTextClientConfig(authorization)
|
|
1778
|
+
);
|
|
1779
|
+
return response.data;
|
|
1780
|
+
} catch (error) {
|
|
1781
|
+
if (error instanceof Error) {
|
|
1782
|
+
throw new Error(`Couldn't load events. [${error.message}]`);
|
|
1783
|
+
}
|
|
1784
|
+
throw error;
|
|
1785
|
+
}
|
|
1786
|
+
});
|
|
1755
1787
|
}
|
|
1756
1788
|
};
|
|
1757
1789
|
|
|
1790
|
+
// src/apis/integrations/text/app/api.ts
|
|
1791
|
+
var textAppApi = {
|
|
1792
|
+
monitoring: textAppMonitoringApi
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1758
1795
|
// src/apis/integrations/text/api.ts
|
|
1759
1796
|
var textApi = {
|
|
1760
|
-
|
|
1797
|
+
app: textAppApi
|
|
1761
1798
|
};
|
|
1762
1799
|
|
|
1763
1800
|
// src/apis/integrations/vercel/api.ts
|
package/dist/index.mjs
CHANGED
|
@@ -1647,9 +1647,9 @@ function initTextClientInstance(baseUrl, token) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
|
-
// src/apis/integrations/text/
|
|
1651
|
-
var
|
|
1652
|
-
|
|
1650
|
+
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1651
|
+
var textAppMonitoringApi = {
|
|
1652
|
+
getUptimeReports(appId, payload, authorization) {
|
|
1653
1653
|
return __async(this, null, function* () {
|
|
1654
1654
|
try {
|
|
1655
1655
|
const response = yield textClientInstance.get(
|
|
@@ -1664,12 +1664,49 @@ var textUptimeApi = {
|
|
|
1664
1664
|
throw error;
|
|
1665
1665
|
}
|
|
1666
1666
|
});
|
|
1667
|
+
},
|
|
1668
|
+
getEventReports(appId, payload, authorization) {
|
|
1669
|
+
return __async(this, null, function* () {
|
|
1670
|
+
try {
|
|
1671
|
+
const response = yield textClientInstance.get(
|
|
1672
|
+
`/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
|
|
1673
|
+
getTextClientConfig(authorization)
|
|
1674
|
+
);
|
|
1675
|
+
return response.data;
|
|
1676
|
+
} catch (error) {
|
|
1677
|
+
if (error instanceof Error) {
|
|
1678
|
+
throw new Error(`Couldn't load event reports. [${error.message}]`);
|
|
1679
|
+
}
|
|
1680
|
+
throw error;
|
|
1681
|
+
}
|
|
1682
|
+
});
|
|
1683
|
+
},
|
|
1684
|
+
getEvents(appId, authorization) {
|
|
1685
|
+
return __async(this, null, function* () {
|
|
1686
|
+
try {
|
|
1687
|
+
const response = yield textClientInstance.get(
|
|
1688
|
+
`/app_monitoring/${appId}/events`,
|
|
1689
|
+
getTextClientConfig(authorization)
|
|
1690
|
+
);
|
|
1691
|
+
return response.data;
|
|
1692
|
+
} catch (error) {
|
|
1693
|
+
if (error instanceof Error) {
|
|
1694
|
+
throw new Error(`Couldn't load events. [${error.message}]`);
|
|
1695
|
+
}
|
|
1696
|
+
throw error;
|
|
1697
|
+
}
|
|
1698
|
+
});
|
|
1667
1699
|
}
|
|
1668
1700
|
};
|
|
1669
1701
|
|
|
1702
|
+
// src/apis/integrations/text/app/api.ts
|
|
1703
|
+
var textAppApi = {
|
|
1704
|
+
monitoring: textAppMonitoringApi
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1670
1707
|
// src/apis/integrations/text/api.ts
|
|
1671
1708
|
var textApi = {
|
|
1672
|
-
|
|
1709
|
+
app: textAppApi
|
|
1673
1710
|
};
|
|
1674
1711
|
|
|
1675
1712
|
// src/apis/integrations/vercel/api.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.29",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"tsconfig": "0.0.0",
|
|
21
20
|
"config": "0.0.0",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
21
|
+
"eslint-config-custom-lib": "0.0.1",
|
|
22
|
+
"tsconfig": "0.0.0",
|
|
23
|
+
"types": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|