@livechat/developer-studio-api 2.0.36 → 2.0.38
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 +34 -17
- package/dist/index.d.ts +34 -17
- package/dist/index.js +114 -18
- package/dist/index.mjs +114 -18
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -388,10 +388,10 @@ 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
|
-
|
|
394
|
-
|
|
391
|
+
interface AppMonitoringReport {
|
|
392
|
+
id: string;
|
|
393
|
+
title: string;
|
|
394
|
+
events: string[];
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
interface AppMonitoringEvent {
|
|
@@ -416,12 +416,6 @@ interface AppMonitoringEventsLogDto {
|
|
|
416
416
|
}[];
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
interface GetAppMonitoringUptimeReportPayload {
|
|
420
|
-
from: string;
|
|
421
|
-
to: string;
|
|
422
|
-
resolution: "hourly" | "daily" | "monthly";
|
|
423
|
-
}
|
|
424
|
-
|
|
425
419
|
interface GetAppMonitoringEventsLogPayload {
|
|
426
420
|
from: string;
|
|
427
421
|
to: string;
|
|
@@ -436,6 +430,18 @@ interface GetAppMonitoringEventsReportPayload {
|
|
|
436
430
|
resolution: "hourly" | "daily" | "monthly";
|
|
437
431
|
}
|
|
438
432
|
|
|
433
|
+
interface AppMonitoringUptimeReportDto {
|
|
434
|
+
[appId: string]: {
|
|
435
|
+
[date: string]: number;
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
interface GetAppMonitoringUptimeReportPayload {
|
|
440
|
+
from: string;
|
|
441
|
+
to: string;
|
|
442
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
443
|
+
}
|
|
444
|
+
|
|
439
445
|
interface TextClientInstanceAuthorization {
|
|
440
446
|
token?: string;
|
|
441
447
|
tokenType?: "Basic" | "Bearer";
|
|
@@ -2304,12 +2310,23 @@ declare const api: {
|
|
|
2304
2310
|
text: {
|
|
2305
2311
|
app: {
|
|
2306
2312
|
monitoring: {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
+
uptime: {
|
|
2314
|
+
getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2315
|
+
};
|
|
2316
|
+
events: {
|
|
2317
|
+
getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
|
|
2318
|
+
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2319
|
+
getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2320
|
+
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
|
|
2321
|
+
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2322
|
+
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2323
|
+
};
|
|
2324
|
+
reports: {
|
|
2325
|
+
getReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport>;
|
|
2326
|
+
getReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport[]>;
|
|
2327
|
+
upsertReport(appId: string, report: AppMonitoringReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2328
|
+
deleteReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2329
|
+
};
|
|
2313
2330
|
};
|
|
2314
2331
|
};
|
|
2315
2332
|
};
|
|
@@ -2378,4 +2395,4 @@ declare const serializerBase64: {
|
|
|
2378
2395
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2379
2396
|
};
|
|
2380
2397
|
|
|
2381
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, 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, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, 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 };
|
|
2398
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto, AppMonitoringReport, 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, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, 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,10 +388,10 @@ 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
|
-
|
|
394
|
-
|
|
391
|
+
interface AppMonitoringReport {
|
|
392
|
+
id: string;
|
|
393
|
+
title: string;
|
|
394
|
+
events: string[];
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
interface AppMonitoringEvent {
|
|
@@ -416,12 +416,6 @@ interface AppMonitoringEventsLogDto {
|
|
|
416
416
|
}[];
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
interface GetAppMonitoringUptimeReportPayload {
|
|
420
|
-
from: string;
|
|
421
|
-
to: string;
|
|
422
|
-
resolution: "hourly" | "daily" | "monthly";
|
|
423
|
-
}
|
|
424
|
-
|
|
425
419
|
interface GetAppMonitoringEventsLogPayload {
|
|
426
420
|
from: string;
|
|
427
421
|
to: string;
|
|
@@ -436,6 +430,18 @@ interface GetAppMonitoringEventsReportPayload {
|
|
|
436
430
|
resolution: "hourly" | "daily" | "monthly";
|
|
437
431
|
}
|
|
438
432
|
|
|
433
|
+
interface AppMonitoringUptimeReportDto {
|
|
434
|
+
[appId: string]: {
|
|
435
|
+
[date: string]: number;
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
interface GetAppMonitoringUptimeReportPayload {
|
|
440
|
+
from: string;
|
|
441
|
+
to: string;
|
|
442
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
443
|
+
}
|
|
444
|
+
|
|
439
445
|
interface TextClientInstanceAuthorization {
|
|
440
446
|
token?: string;
|
|
441
447
|
tokenType?: "Basic" | "Bearer";
|
|
@@ -2304,12 +2310,23 @@ declare const api: {
|
|
|
2304
2310
|
text: {
|
|
2305
2311
|
app: {
|
|
2306
2312
|
monitoring: {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
+
uptime: {
|
|
2314
|
+
getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2315
|
+
};
|
|
2316
|
+
events: {
|
|
2317
|
+
getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
|
|
2318
|
+
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2319
|
+
getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2320
|
+
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
|
|
2321
|
+
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2322
|
+
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2323
|
+
};
|
|
2324
|
+
reports: {
|
|
2325
|
+
getReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport>;
|
|
2326
|
+
getReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport[]>;
|
|
2327
|
+
upsertReport(appId: string, report: AppMonitoringReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2328
|
+
deleteReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2329
|
+
};
|
|
2313
2330
|
};
|
|
2314
2331
|
};
|
|
2315
2332
|
};
|
|
@@ -2378,4 +2395,4 @@ declare const serializerBase64: {
|
|
|
2378
2395
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2379
2396
|
};
|
|
2380
2397
|
|
|
2381
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, 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, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, 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 };
|
|
2398
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto, AppMonitoringReport, 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, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, 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,19 +1735,19 @@ function initTextClientInstance(baseUrl, token) {
|
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
|
-
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1739
|
-
var
|
|
1740
|
-
|
|
1738
|
+
// src/apis/integrations/text/app/monitoring/events/api.ts
|
|
1739
|
+
var textAppMonitoringEventsApi = {
|
|
1740
|
+
getEvent(appId, eventKey, authorization) {
|
|
1741
1741
|
return __async(this, null, function* () {
|
|
1742
1742
|
try {
|
|
1743
1743
|
const response = yield textClientInstance.get(
|
|
1744
|
-
`/app_monitoring/${appId}/
|
|
1744
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1745
1745
|
getTextClientConfig(authorization)
|
|
1746
1746
|
);
|
|
1747
1747
|
return response.data;
|
|
1748
1748
|
} catch (error) {
|
|
1749
1749
|
if (error instanceof Error) {
|
|
1750
|
-
throw new Error(`Couldn't load
|
|
1750
|
+
throw new Error(`Couldn't load event. [${error.message}]`);
|
|
1751
1751
|
}
|
|
1752
1752
|
throw error;
|
|
1753
1753
|
}
|
|
@@ -1769,66 +1769,155 @@ var textAppMonitoringApi = {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
1771
1771
|
},
|
|
1772
|
-
|
|
1772
|
+
getEventReports(appId, payload, authorization) {
|
|
1773
1773
|
return __async(this, null, function* () {
|
|
1774
1774
|
try {
|
|
1775
1775
|
const response = yield textClientInstance.get(
|
|
1776
|
-
`/app_monitoring/${appId}/events
|
|
1776
|
+
`/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
|
|
1777
1777
|
getTextClientConfig(authorization)
|
|
1778
1778
|
);
|
|
1779
1779
|
return response.data;
|
|
1780
1780
|
} catch (error) {
|
|
1781
1781
|
if (error instanceof Error) {
|
|
1782
|
-
throw new Error(`Couldn't load
|
|
1782
|
+
throw new Error(`Couldn't load event reports. [${error.message}]`);
|
|
1783
1783
|
}
|
|
1784
1784
|
throw error;
|
|
1785
1785
|
}
|
|
1786
1786
|
});
|
|
1787
1787
|
},
|
|
1788
|
-
|
|
1788
|
+
getEventsLog(appId, payload, authorization) {
|
|
1789
1789
|
return __async(this, null, function* () {
|
|
1790
1790
|
try {
|
|
1791
1791
|
const response = yield textClientInstance.get(
|
|
1792
|
-
`/app_monitoring/${appId}/
|
|
1792
|
+
`/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
|
|
1793
1793
|
getTextClientConfig(authorization)
|
|
1794
1794
|
);
|
|
1795
1795
|
return response.data;
|
|
1796
1796
|
} catch (error) {
|
|
1797
1797
|
if (error instanceof Error) {
|
|
1798
|
-
throw new Error(`Couldn't load
|
|
1798
|
+
throw new Error(`Couldn't load events log. [${error.message}]`);
|
|
1799
1799
|
}
|
|
1800
1800
|
throw error;
|
|
1801
1801
|
}
|
|
1802
1802
|
});
|
|
1803
1803
|
},
|
|
1804
|
-
|
|
1804
|
+
upsertEvent(appId, event, authorization) {
|
|
1805
|
+
return __async(this, null, function* () {
|
|
1806
|
+
try {
|
|
1807
|
+
const response = yield textClientInstance.post(
|
|
1808
|
+
`/app_monitoring/${appId}/events/${event.key}`,
|
|
1809
|
+
event,
|
|
1810
|
+
getTextClientConfig(authorization)
|
|
1811
|
+
);
|
|
1812
|
+
return response.data;
|
|
1813
|
+
} catch (error) {
|
|
1814
|
+
if (error instanceof Error) {
|
|
1815
|
+
throw new Error(`Couldn't upsert event. [${error.message}]`);
|
|
1816
|
+
}
|
|
1817
|
+
throw error;
|
|
1818
|
+
}
|
|
1819
|
+
});
|
|
1820
|
+
},
|
|
1821
|
+
deleteEvent(appId, eventKey, authorization) {
|
|
1822
|
+
return __async(this, null, function* () {
|
|
1823
|
+
try {
|
|
1824
|
+
const response = yield textClientInstance.delete(
|
|
1825
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1826
|
+
getTextClientConfig(authorization)
|
|
1827
|
+
);
|
|
1828
|
+
return response.data;
|
|
1829
|
+
} catch (error) {
|
|
1830
|
+
if (error instanceof Error) {
|
|
1831
|
+
throw new Error(`Couldn't delete event. [${error.message}]`);
|
|
1832
|
+
}
|
|
1833
|
+
throw error;
|
|
1834
|
+
}
|
|
1835
|
+
});
|
|
1836
|
+
}
|
|
1837
|
+
};
|
|
1838
|
+
|
|
1839
|
+
// src/apis/integrations/text/app/monitoring/reports/api.ts
|
|
1840
|
+
var textAppMonitoringReportsApi = {
|
|
1841
|
+
getReport(appId, reportId, authorization) {
|
|
1805
1842
|
return __async(this, null, function* () {
|
|
1806
1843
|
try {
|
|
1807
1844
|
const response = yield textClientInstance.get(
|
|
1808
|
-
`/app_monitoring/${appId}/
|
|
1845
|
+
`/app_monitoring/${appId}/reports/${reportId}`,
|
|
1809
1846
|
getTextClientConfig(authorization)
|
|
1810
1847
|
);
|
|
1811
1848
|
return response.data;
|
|
1812
1849
|
} catch (error) {
|
|
1813
1850
|
if (error instanceof Error) {
|
|
1814
|
-
throw new Error(`Couldn't load
|
|
1851
|
+
throw new Error(`Couldn't load report. [${error.message}]`);
|
|
1815
1852
|
}
|
|
1816
1853
|
throw error;
|
|
1817
1854
|
}
|
|
1818
1855
|
});
|
|
1819
1856
|
},
|
|
1820
|
-
|
|
1857
|
+
getReports(appId, authorization) {
|
|
1858
|
+
return __async(this, null, function* () {
|
|
1859
|
+
try {
|
|
1860
|
+
const response = yield textClientInstance.get(
|
|
1861
|
+
`/app_monitoring/${appId}/reports`,
|
|
1862
|
+
getTextClientConfig(authorization)
|
|
1863
|
+
);
|
|
1864
|
+
return response.data;
|
|
1865
|
+
} catch (error) {
|
|
1866
|
+
if (error instanceof Error) {
|
|
1867
|
+
throw new Error(`Couldn't load reports. [${error.message}]`);
|
|
1868
|
+
}
|
|
1869
|
+
throw error;
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
},
|
|
1873
|
+
upsertReport(appId, report, authorization) {
|
|
1821
1874
|
return __async(this, null, function* () {
|
|
1822
1875
|
try {
|
|
1823
1876
|
const response = yield textClientInstance.post(
|
|
1824
|
-
`/app_monitoring/${appId}/
|
|
1825
|
-
|
|
1877
|
+
`/app_monitoring/${appId}/report/${report.id}`,
|
|
1878
|
+
report,
|
|
1826
1879
|
getTextClientConfig(authorization)
|
|
1827
1880
|
);
|
|
1828
1881
|
return response.data;
|
|
1829
1882
|
} catch (error) {
|
|
1830
1883
|
if (error instanceof Error) {
|
|
1831
|
-
throw new Error(`Couldn't upsert
|
|
1884
|
+
throw new Error(`Couldn't upsert report. [${error.message}]`);
|
|
1885
|
+
}
|
|
1886
|
+
throw error;
|
|
1887
|
+
}
|
|
1888
|
+
});
|
|
1889
|
+
},
|
|
1890
|
+
deleteReport(appId, reportId, authorization) {
|
|
1891
|
+
return __async(this, null, function* () {
|
|
1892
|
+
try {
|
|
1893
|
+
const response = yield textClientInstance.delete(
|
|
1894
|
+
`/app_monitoring/${appId}/report/${reportId}`,
|
|
1895
|
+
getTextClientConfig(authorization)
|
|
1896
|
+
);
|
|
1897
|
+
return response.data;
|
|
1898
|
+
} catch (error) {
|
|
1899
|
+
if (error instanceof Error) {
|
|
1900
|
+
throw new Error(`Couldn't delete report. [${error.message}]`);
|
|
1901
|
+
}
|
|
1902
|
+
throw error;
|
|
1903
|
+
}
|
|
1904
|
+
});
|
|
1905
|
+
}
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1908
|
+
// src/apis/integrations/text/app/monitoring/uptime/api.ts
|
|
1909
|
+
var textAppMonitoringUptimeApi = {
|
|
1910
|
+
getUptimeReports(appId, payload, authorization) {
|
|
1911
|
+
return __async(this, null, function* () {
|
|
1912
|
+
try {
|
|
1913
|
+
const response = yield textClientInstance.get(
|
|
1914
|
+
`/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
|
|
1915
|
+
getTextClientConfig(authorization)
|
|
1916
|
+
);
|
|
1917
|
+
return response.data;
|
|
1918
|
+
} catch (error) {
|
|
1919
|
+
if (error instanceof Error) {
|
|
1920
|
+
throw new Error(`Couldn't load uptime reports. [${error.message}]`);
|
|
1832
1921
|
}
|
|
1833
1922
|
throw error;
|
|
1834
1923
|
}
|
|
@@ -1836,6 +1925,13 @@ var textAppMonitoringApi = {
|
|
|
1836
1925
|
}
|
|
1837
1926
|
};
|
|
1838
1927
|
|
|
1928
|
+
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1929
|
+
var textAppMonitoringApi = {
|
|
1930
|
+
uptime: textAppMonitoringUptimeApi,
|
|
1931
|
+
events: textAppMonitoringEventsApi,
|
|
1932
|
+
reports: textAppMonitoringReportsApi
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1839
1935
|
// src/apis/integrations/text/app/api.ts
|
|
1840
1936
|
var textAppApi = {
|
|
1841
1937
|
monitoring: textAppMonitoringApi
|
package/dist/index.mjs
CHANGED
|
@@ -1647,19 +1647,19 @@ function initTextClientInstance(baseUrl, token) {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
}
|
|
1649
1649
|
|
|
1650
|
-
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1651
|
-
var
|
|
1652
|
-
|
|
1650
|
+
// src/apis/integrations/text/app/monitoring/events/api.ts
|
|
1651
|
+
var textAppMonitoringEventsApi = {
|
|
1652
|
+
getEvent(appId, eventKey, authorization) {
|
|
1653
1653
|
return __async(this, null, function* () {
|
|
1654
1654
|
try {
|
|
1655
1655
|
const response = yield textClientInstance.get(
|
|
1656
|
-
`/app_monitoring/${appId}/
|
|
1656
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1657
1657
|
getTextClientConfig(authorization)
|
|
1658
1658
|
);
|
|
1659
1659
|
return response.data;
|
|
1660
1660
|
} catch (error) {
|
|
1661
1661
|
if (error instanceof Error) {
|
|
1662
|
-
throw new Error(`Couldn't load
|
|
1662
|
+
throw new Error(`Couldn't load event. [${error.message}]`);
|
|
1663
1663
|
}
|
|
1664
1664
|
throw error;
|
|
1665
1665
|
}
|
|
@@ -1681,66 +1681,155 @@ var textAppMonitoringApi = {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
});
|
|
1683
1683
|
},
|
|
1684
|
-
|
|
1684
|
+
getEventReports(appId, payload, authorization) {
|
|
1685
1685
|
return __async(this, null, function* () {
|
|
1686
1686
|
try {
|
|
1687
1687
|
const response = yield textClientInstance.get(
|
|
1688
|
-
`/app_monitoring/${appId}/events
|
|
1688
|
+
`/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
|
|
1689
1689
|
getTextClientConfig(authorization)
|
|
1690
1690
|
);
|
|
1691
1691
|
return response.data;
|
|
1692
1692
|
} catch (error) {
|
|
1693
1693
|
if (error instanceof Error) {
|
|
1694
|
-
throw new Error(`Couldn't load
|
|
1694
|
+
throw new Error(`Couldn't load event reports. [${error.message}]`);
|
|
1695
1695
|
}
|
|
1696
1696
|
throw error;
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
1699
1699
|
},
|
|
1700
|
-
|
|
1700
|
+
getEventsLog(appId, payload, authorization) {
|
|
1701
1701
|
return __async(this, null, function* () {
|
|
1702
1702
|
try {
|
|
1703
1703
|
const response = yield textClientInstance.get(
|
|
1704
|
-
`/app_monitoring/${appId}/
|
|
1704
|
+
`/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
|
|
1705
1705
|
getTextClientConfig(authorization)
|
|
1706
1706
|
);
|
|
1707
1707
|
return response.data;
|
|
1708
1708
|
} catch (error) {
|
|
1709
1709
|
if (error instanceof Error) {
|
|
1710
|
-
throw new Error(`Couldn't load
|
|
1710
|
+
throw new Error(`Couldn't load events log. [${error.message}]`);
|
|
1711
1711
|
}
|
|
1712
1712
|
throw error;
|
|
1713
1713
|
}
|
|
1714
1714
|
});
|
|
1715
1715
|
},
|
|
1716
|
-
|
|
1716
|
+
upsertEvent(appId, event, authorization) {
|
|
1717
|
+
return __async(this, null, function* () {
|
|
1718
|
+
try {
|
|
1719
|
+
const response = yield textClientInstance.post(
|
|
1720
|
+
`/app_monitoring/${appId}/events/${event.key}`,
|
|
1721
|
+
event,
|
|
1722
|
+
getTextClientConfig(authorization)
|
|
1723
|
+
);
|
|
1724
|
+
return response.data;
|
|
1725
|
+
} catch (error) {
|
|
1726
|
+
if (error instanceof Error) {
|
|
1727
|
+
throw new Error(`Couldn't upsert event. [${error.message}]`);
|
|
1728
|
+
}
|
|
1729
|
+
throw error;
|
|
1730
|
+
}
|
|
1731
|
+
});
|
|
1732
|
+
},
|
|
1733
|
+
deleteEvent(appId, eventKey, authorization) {
|
|
1734
|
+
return __async(this, null, function* () {
|
|
1735
|
+
try {
|
|
1736
|
+
const response = yield textClientInstance.delete(
|
|
1737
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1738
|
+
getTextClientConfig(authorization)
|
|
1739
|
+
);
|
|
1740
|
+
return response.data;
|
|
1741
|
+
} catch (error) {
|
|
1742
|
+
if (error instanceof Error) {
|
|
1743
|
+
throw new Error(`Couldn't delete event. [${error.message}]`);
|
|
1744
|
+
}
|
|
1745
|
+
throw error;
|
|
1746
|
+
}
|
|
1747
|
+
});
|
|
1748
|
+
}
|
|
1749
|
+
};
|
|
1750
|
+
|
|
1751
|
+
// src/apis/integrations/text/app/monitoring/reports/api.ts
|
|
1752
|
+
var textAppMonitoringReportsApi = {
|
|
1753
|
+
getReport(appId, reportId, authorization) {
|
|
1717
1754
|
return __async(this, null, function* () {
|
|
1718
1755
|
try {
|
|
1719
1756
|
const response = yield textClientInstance.get(
|
|
1720
|
-
`/app_monitoring/${appId}/
|
|
1757
|
+
`/app_monitoring/${appId}/reports/${reportId}`,
|
|
1721
1758
|
getTextClientConfig(authorization)
|
|
1722
1759
|
);
|
|
1723
1760
|
return response.data;
|
|
1724
1761
|
} catch (error) {
|
|
1725
1762
|
if (error instanceof Error) {
|
|
1726
|
-
throw new Error(`Couldn't load
|
|
1763
|
+
throw new Error(`Couldn't load report. [${error.message}]`);
|
|
1727
1764
|
}
|
|
1728
1765
|
throw error;
|
|
1729
1766
|
}
|
|
1730
1767
|
});
|
|
1731
1768
|
},
|
|
1732
|
-
|
|
1769
|
+
getReports(appId, authorization) {
|
|
1770
|
+
return __async(this, null, function* () {
|
|
1771
|
+
try {
|
|
1772
|
+
const response = yield textClientInstance.get(
|
|
1773
|
+
`/app_monitoring/${appId}/reports`,
|
|
1774
|
+
getTextClientConfig(authorization)
|
|
1775
|
+
);
|
|
1776
|
+
return response.data;
|
|
1777
|
+
} catch (error) {
|
|
1778
|
+
if (error instanceof Error) {
|
|
1779
|
+
throw new Error(`Couldn't load reports. [${error.message}]`);
|
|
1780
|
+
}
|
|
1781
|
+
throw error;
|
|
1782
|
+
}
|
|
1783
|
+
});
|
|
1784
|
+
},
|
|
1785
|
+
upsertReport(appId, report, authorization) {
|
|
1733
1786
|
return __async(this, null, function* () {
|
|
1734
1787
|
try {
|
|
1735
1788
|
const response = yield textClientInstance.post(
|
|
1736
|
-
`/app_monitoring/${appId}/
|
|
1737
|
-
|
|
1789
|
+
`/app_monitoring/${appId}/report/${report.id}`,
|
|
1790
|
+
report,
|
|
1738
1791
|
getTextClientConfig(authorization)
|
|
1739
1792
|
);
|
|
1740
1793
|
return response.data;
|
|
1741
1794
|
} catch (error) {
|
|
1742
1795
|
if (error instanceof Error) {
|
|
1743
|
-
throw new Error(`Couldn't upsert
|
|
1796
|
+
throw new Error(`Couldn't upsert report. [${error.message}]`);
|
|
1797
|
+
}
|
|
1798
|
+
throw error;
|
|
1799
|
+
}
|
|
1800
|
+
});
|
|
1801
|
+
},
|
|
1802
|
+
deleteReport(appId, reportId, authorization) {
|
|
1803
|
+
return __async(this, null, function* () {
|
|
1804
|
+
try {
|
|
1805
|
+
const response = yield textClientInstance.delete(
|
|
1806
|
+
`/app_monitoring/${appId}/report/${reportId}`,
|
|
1807
|
+
getTextClientConfig(authorization)
|
|
1808
|
+
);
|
|
1809
|
+
return response.data;
|
|
1810
|
+
} catch (error) {
|
|
1811
|
+
if (error instanceof Error) {
|
|
1812
|
+
throw new Error(`Couldn't delete report. [${error.message}]`);
|
|
1813
|
+
}
|
|
1814
|
+
throw error;
|
|
1815
|
+
}
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
};
|
|
1819
|
+
|
|
1820
|
+
// src/apis/integrations/text/app/monitoring/uptime/api.ts
|
|
1821
|
+
var textAppMonitoringUptimeApi = {
|
|
1822
|
+
getUptimeReports(appId, payload, authorization) {
|
|
1823
|
+
return __async(this, null, function* () {
|
|
1824
|
+
try {
|
|
1825
|
+
const response = yield textClientInstance.get(
|
|
1826
|
+
`/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
|
|
1827
|
+
getTextClientConfig(authorization)
|
|
1828
|
+
);
|
|
1829
|
+
return response.data;
|
|
1830
|
+
} catch (error) {
|
|
1831
|
+
if (error instanceof Error) {
|
|
1832
|
+
throw new Error(`Couldn't load uptime reports. [${error.message}]`);
|
|
1744
1833
|
}
|
|
1745
1834
|
throw error;
|
|
1746
1835
|
}
|
|
@@ -1748,6 +1837,13 @@ var textAppMonitoringApi = {
|
|
|
1748
1837
|
}
|
|
1749
1838
|
};
|
|
1750
1839
|
|
|
1840
|
+
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1841
|
+
var textAppMonitoringApi = {
|
|
1842
|
+
uptime: textAppMonitoringUptimeApi,
|
|
1843
|
+
events: textAppMonitoringEventsApi,
|
|
1844
|
+
reports: textAppMonitoringReportsApi
|
|
1845
|
+
};
|
|
1846
|
+
|
|
1751
1847
|
// src/apis/integrations/text/app/api.ts
|
|
1752
1848
|
var textAppApi = {
|
|
1753
1849
|
monitoring: textAppMonitoringApi
|
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.38",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"config": "0.0.0",
|
|
21
|
-
"tsconfig": "0.0.0",
|
|
22
21
|
"types": "0.0.1",
|
|
22
|
+
"tsconfig": "0.0.0",
|
|
23
23
|
"eslint-config-custom-lib": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|