@livechat/developer-studio-api 2.0.37 → 2.0.39
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 +44 -29
- package/dist/index.d.ts +44 -29
- package/dist/index.js +77 -34
- package/dist/index.mjs +77 -34
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -388,39 +388,44 @@ 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
|
|
391
|
+
interface AppMonitoringCustomReport {
|
|
392
392
|
id: string;
|
|
393
393
|
title: string;
|
|
394
394
|
events: string[];
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
interface
|
|
398
|
-
|
|
399
|
-
|
|
397
|
+
interface AppMonitoringCustomReportDataDto {
|
|
398
|
+
[appId: string]: {
|
|
399
|
+
[date: string]: {
|
|
400
|
+
[eventKey: string]: number;
|
|
401
|
+
};
|
|
402
|
+
}[];
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
interface AppMonitoringUptimeReportDto {
|
|
406
|
+
[appId: string]: {
|
|
407
|
+
[date: string]: number;
|
|
408
|
+
};
|
|
400
409
|
}
|
|
401
410
|
|
|
402
411
|
interface AppMonitoringEventsReportDto {
|
|
403
412
|
[appId: string]: {
|
|
404
413
|
[date: string]: {
|
|
405
|
-
[
|
|
414
|
+
[eventKey: string]: number;
|
|
406
415
|
};
|
|
407
416
|
}[];
|
|
408
417
|
}
|
|
409
418
|
|
|
410
|
-
interface
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
type: string;
|
|
415
|
-
payload: string;
|
|
416
|
-
}[];
|
|
419
|
+
interface GetAppMonitoringCustomReportDataPayload {
|
|
420
|
+
from: string;
|
|
421
|
+
to: string;
|
|
422
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
417
423
|
}
|
|
418
424
|
|
|
419
|
-
interface
|
|
425
|
+
interface GetAppMonitoringUptimeReportPayload {
|
|
420
426
|
from: string;
|
|
421
427
|
to: string;
|
|
422
|
-
|
|
423
|
-
search: string;
|
|
428
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
424
429
|
}
|
|
425
430
|
|
|
426
431
|
interface GetAppMonitoringEventsReportPayload {
|
|
@@ -430,16 +435,25 @@ interface GetAppMonitoringEventsReportPayload {
|
|
|
430
435
|
resolution: "hourly" | "daily" | "monthly";
|
|
431
436
|
}
|
|
432
437
|
|
|
433
|
-
interface
|
|
438
|
+
interface AppMonitoringEvent {
|
|
439
|
+
key: string;
|
|
440
|
+
name: string;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
interface AppMonitoringEventsLogDto {
|
|
434
444
|
[appId: string]: {
|
|
435
|
-
|
|
436
|
-
|
|
445
|
+
sent_at: string;
|
|
446
|
+
organization_id: string;
|
|
447
|
+
type: string;
|
|
448
|
+
payload: string;
|
|
449
|
+
}[];
|
|
437
450
|
}
|
|
438
451
|
|
|
439
|
-
interface
|
|
452
|
+
interface GetAppMonitoringEventsLogPayload {
|
|
440
453
|
from: string;
|
|
441
454
|
to: string;
|
|
442
|
-
|
|
455
|
+
type: string;
|
|
456
|
+
search: string;
|
|
443
457
|
}
|
|
444
458
|
|
|
445
459
|
interface TextClientInstanceAuthorization {
|
|
@@ -2310,20 +2324,21 @@ declare const api: {
|
|
|
2310
2324
|
text: {
|
|
2311
2325
|
app: {
|
|
2312
2326
|
monitoring: {
|
|
2313
|
-
uptime: {
|
|
2314
|
-
getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2315
|
-
};
|
|
2316
2327
|
events: {
|
|
2317
|
-
getEvent(appId: string,
|
|
2328
|
+
getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
|
|
2318
2329
|
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2319
|
-
getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2320
2330
|
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
|
|
2321
2331
|
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2332
|
+
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2322
2333
|
};
|
|
2323
2334
|
reports: {
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2335
|
+
getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2336
|
+
getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2337
|
+
getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
|
|
2338
|
+
getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
|
|
2339
|
+
getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
|
|
2340
|
+
upsertCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2341
|
+
deleteCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2327
2342
|
};
|
|
2328
2343
|
};
|
|
2329
2344
|
};
|
|
@@ -2393,4 +2408,4 @@ declare const serializerBase64: {
|
|
|
2393
2408
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2394
2409
|
};
|
|
2395
2410
|
|
|
2396
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto,
|
|
2411
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, 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, GetAppMonitoringCustomReportDataPayload, 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,39 +388,44 @@ 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
|
|
391
|
+
interface AppMonitoringCustomReport {
|
|
392
392
|
id: string;
|
|
393
393
|
title: string;
|
|
394
394
|
events: string[];
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
interface
|
|
398
|
-
|
|
399
|
-
|
|
397
|
+
interface AppMonitoringCustomReportDataDto {
|
|
398
|
+
[appId: string]: {
|
|
399
|
+
[date: string]: {
|
|
400
|
+
[eventKey: string]: number;
|
|
401
|
+
};
|
|
402
|
+
}[];
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
interface AppMonitoringUptimeReportDto {
|
|
406
|
+
[appId: string]: {
|
|
407
|
+
[date: string]: number;
|
|
408
|
+
};
|
|
400
409
|
}
|
|
401
410
|
|
|
402
411
|
interface AppMonitoringEventsReportDto {
|
|
403
412
|
[appId: string]: {
|
|
404
413
|
[date: string]: {
|
|
405
|
-
[
|
|
414
|
+
[eventKey: string]: number;
|
|
406
415
|
};
|
|
407
416
|
}[];
|
|
408
417
|
}
|
|
409
418
|
|
|
410
|
-
interface
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
type: string;
|
|
415
|
-
payload: string;
|
|
416
|
-
}[];
|
|
419
|
+
interface GetAppMonitoringCustomReportDataPayload {
|
|
420
|
+
from: string;
|
|
421
|
+
to: string;
|
|
422
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
417
423
|
}
|
|
418
424
|
|
|
419
|
-
interface
|
|
425
|
+
interface GetAppMonitoringUptimeReportPayload {
|
|
420
426
|
from: string;
|
|
421
427
|
to: string;
|
|
422
|
-
|
|
423
|
-
search: string;
|
|
428
|
+
resolution: "hourly" | "daily" | "monthly";
|
|
424
429
|
}
|
|
425
430
|
|
|
426
431
|
interface GetAppMonitoringEventsReportPayload {
|
|
@@ -430,16 +435,25 @@ interface GetAppMonitoringEventsReportPayload {
|
|
|
430
435
|
resolution: "hourly" | "daily" | "monthly";
|
|
431
436
|
}
|
|
432
437
|
|
|
433
|
-
interface
|
|
438
|
+
interface AppMonitoringEvent {
|
|
439
|
+
key: string;
|
|
440
|
+
name: string;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
interface AppMonitoringEventsLogDto {
|
|
434
444
|
[appId: string]: {
|
|
435
|
-
|
|
436
|
-
|
|
445
|
+
sent_at: string;
|
|
446
|
+
organization_id: string;
|
|
447
|
+
type: string;
|
|
448
|
+
payload: string;
|
|
449
|
+
}[];
|
|
437
450
|
}
|
|
438
451
|
|
|
439
|
-
interface
|
|
452
|
+
interface GetAppMonitoringEventsLogPayload {
|
|
440
453
|
from: string;
|
|
441
454
|
to: string;
|
|
442
|
-
|
|
455
|
+
type: string;
|
|
456
|
+
search: string;
|
|
443
457
|
}
|
|
444
458
|
|
|
445
459
|
interface TextClientInstanceAuthorization {
|
|
@@ -2310,20 +2324,21 @@ declare const api: {
|
|
|
2310
2324
|
text: {
|
|
2311
2325
|
app: {
|
|
2312
2326
|
monitoring: {
|
|
2313
|
-
uptime: {
|
|
2314
|
-
getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2315
|
-
};
|
|
2316
2327
|
events: {
|
|
2317
|
-
getEvent(appId: string,
|
|
2328
|
+
getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
|
|
2318
2329
|
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2319
|
-
getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2320
2330
|
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
|
|
2321
2331
|
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2332
|
+
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2322
2333
|
};
|
|
2323
2334
|
reports: {
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2335
|
+
getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
2336
|
+
getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
|
|
2337
|
+
getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
|
|
2338
|
+
getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
|
|
2339
|
+
getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
|
|
2340
|
+
upsertCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2341
|
+
deleteCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2327
2342
|
};
|
|
2328
2343
|
};
|
|
2329
2344
|
};
|
|
@@ -2393,4 +2408,4 @@ declare const serializerBase64: {
|
|
|
2393
2408
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2394
2409
|
};
|
|
2395
2410
|
|
|
2396
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringEvent, AppMonitoringEventsLogDto, AppMonitoringEventsReportDto,
|
|
2411
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, 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, GetAppMonitoringCustomReportDataPayload, 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
|
@@ -1737,11 +1737,11 @@ function initTextClientInstance(baseUrl, token) {
|
|
|
1737
1737
|
|
|
1738
1738
|
// src/apis/integrations/text/app/monitoring/events/api.ts
|
|
1739
1739
|
var textAppMonitoringEventsApi = {
|
|
1740
|
-
getEvent(appId,
|
|
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}/events/${
|
|
1744
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1745
1745
|
getTextClientConfig(authorization)
|
|
1746
1746
|
);
|
|
1747
1747
|
return response.data;
|
|
@@ -1769,50 +1769,50 @@ var textAppMonitoringEventsApi = {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
1771
1771
|
},
|
|
1772
|
-
|
|
1772
|
+
getEventsLog(appId, payload, authorization) {
|
|
1773
1773
|
return __async(this, null, function* () {
|
|
1774
1774
|
try {
|
|
1775
1775
|
const response = yield textClientInstance.get(
|
|
1776
|
-
`/app_monitoring/${appId}/
|
|
1776
|
+
`/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
|
|
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 events log. [${error.message}]`);
|
|
1783
1783
|
}
|
|
1784
1784
|
throw error;
|
|
1785
1785
|
}
|
|
1786
1786
|
});
|
|
1787
1787
|
},
|
|
1788
|
-
|
|
1788
|
+
upsertEvent(appId, event, authorization) {
|
|
1789
1789
|
return __async(this, null, function* () {
|
|
1790
1790
|
try {
|
|
1791
|
-
const response = yield textClientInstance.
|
|
1792
|
-
`/app_monitoring/${appId}/events
|
|
1791
|
+
const response = yield textClientInstance.post(
|
|
1792
|
+
`/app_monitoring/${appId}/events/${event.key}`,
|
|
1793
|
+
event,
|
|
1793
1794
|
getTextClientConfig(authorization)
|
|
1794
1795
|
);
|
|
1795
1796
|
return response.data;
|
|
1796
1797
|
} catch (error) {
|
|
1797
1798
|
if (error instanceof Error) {
|
|
1798
|
-
throw new Error(`Couldn't
|
|
1799
|
+
throw new Error(`Couldn't upsert event. [${error.message}]`);
|
|
1799
1800
|
}
|
|
1800
1801
|
throw error;
|
|
1801
1802
|
}
|
|
1802
1803
|
});
|
|
1803
1804
|
},
|
|
1804
|
-
|
|
1805
|
+
deleteEvent(appId, eventKey, authorization) {
|
|
1805
1806
|
return __async(this, null, function* () {
|
|
1806
1807
|
try {
|
|
1807
|
-
const response = yield textClientInstance.
|
|
1808
|
-
`/app_monitoring/${appId}/events/${
|
|
1809
|
-
event,
|
|
1808
|
+
const response = yield textClientInstance.delete(
|
|
1809
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1810
1810
|
getTextClientConfig(authorization)
|
|
1811
1811
|
);
|
|
1812
1812
|
return response.data;
|
|
1813
1813
|
} catch (error) {
|
|
1814
1814
|
if (error instanceof Error) {
|
|
1815
|
-
throw new Error(`Couldn't
|
|
1815
|
+
throw new Error(`Couldn't delete event. [${error.message}]`);
|
|
1816
1816
|
}
|
|
1817
1817
|
throw error;
|
|
1818
1818
|
}
|
|
@@ -1822,70 +1822,114 @@ var textAppMonitoringEventsApi = {
|
|
|
1822
1822
|
|
|
1823
1823
|
// src/apis/integrations/text/app/monitoring/reports/api.ts
|
|
1824
1824
|
var textAppMonitoringReportsApi = {
|
|
1825
|
-
|
|
1825
|
+
getUptimeReports(appId, payload, authorization) {
|
|
1826
1826
|
return __async(this, null, function* () {
|
|
1827
1827
|
try {
|
|
1828
1828
|
const response = yield textClientInstance.get(
|
|
1829
|
-
`/app_monitoring/${appId}/reports
|
|
1829
|
+
`/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
|
|
1830
1830
|
getTextClientConfig(authorization)
|
|
1831
1831
|
);
|
|
1832
1832
|
return response.data;
|
|
1833
1833
|
} catch (error) {
|
|
1834
1834
|
if (error instanceof Error) {
|
|
1835
|
-
throw new Error(`Couldn't load
|
|
1835
|
+
throw new Error(`Couldn't load uptime reports. [${error.message}]`);
|
|
1836
1836
|
}
|
|
1837
1837
|
throw error;
|
|
1838
1838
|
}
|
|
1839
1839
|
});
|
|
1840
1840
|
},
|
|
1841
|
-
|
|
1841
|
+
getEventReports(appId, payload, authorization) {
|
|
1842
1842
|
return __async(this, null, function* () {
|
|
1843
1843
|
try {
|
|
1844
1844
|
const response = yield textClientInstance.get(
|
|
1845
|
-
`/app_monitoring/${appId}/reports`,
|
|
1845
|
+
`/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
|
|
1846
1846
|
getTextClientConfig(authorization)
|
|
1847
1847
|
);
|
|
1848
1848
|
return response.data;
|
|
1849
1849
|
} catch (error) {
|
|
1850
1850
|
if (error instanceof Error) {
|
|
1851
|
-
throw new Error(`Couldn't load reports. [${error.message}]`);
|
|
1851
|
+
throw new Error(`Couldn't load event reports. [${error.message}]`);
|
|
1852
1852
|
}
|
|
1853
1853
|
throw error;
|
|
1854
1854
|
}
|
|
1855
1855
|
});
|
|
1856
1856
|
},
|
|
1857
|
-
|
|
1857
|
+
getCustomReport(appId, customReportId, authorization) {
|
|
1858
1858
|
return __async(this, null, function* () {
|
|
1859
1859
|
try {
|
|
1860
|
-
const response = yield textClientInstance.
|
|
1861
|
-
`/app_monitoring/${appId}/
|
|
1862
|
-
report,
|
|
1860
|
+
const response = yield textClientInstance.get(
|
|
1861
|
+
`/app_monitoring/${appId}/reports/custom/${customReportId}`,
|
|
1863
1862
|
getTextClientConfig(authorization)
|
|
1864
1863
|
);
|
|
1865
1864
|
return response.data;
|
|
1866
1865
|
} catch (error) {
|
|
1867
1866
|
if (error instanceof Error) {
|
|
1868
|
-
throw new Error(`Couldn't
|
|
1867
|
+
throw new Error(`Couldn't load custom report. [${error.message}]`);
|
|
1869
1868
|
}
|
|
1870
1869
|
throw error;
|
|
1871
1870
|
}
|
|
1872
1871
|
});
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
// src/apis/integrations/text/app/monitoring/uptime/api.ts
|
|
1877
|
-
var textAppMonitoringUptimeApi = {
|
|
1878
|
-
getUptimeReports(appId, payload, authorization) {
|
|
1872
|
+
},
|
|
1873
|
+
getCustomReportData(appId, customReportId, authorization) {
|
|
1879
1874
|
return __async(this, null, function* () {
|
|
1880
1875
|
try {
|
|
1881
1876
|
const response = yield textClientInstance.get(
|
|
1882
|
-
`/app_monitoring/${appId}/reports/
|
|
1877
|
+
`/app_monitoring/${appId}/reports/custom/${customReportId}/data`,
|
|
1883
1878
|
getTextClientConfig(authorization)
|
|
1884
1879
|
);
|
|
1885
1880
|
return response.data;
|
|
1886
1881
|
} catch (error) {
|
|
1887
1882
|
if (error instanceof Error) {
|
|
1888
|
-
throw new Error(`Couldn't load
|
|
1883
|
+
throw new Error(`Couldn't load custom report data. [${error.message}]`);
|
|
1884
|
+
}
|
|
1885
|
+
throw error;
|
|
1886
|
+
}
|
|
1887
|
+
});
|
|
1888
|
+
},
|
|
1889
|
+
getCustomReports(appId, authorization) {
|
|
1890
|
+
return __async(this, null, function* () {
|
|
1891
|
+
try {
|
|
1892
|
+
const response = yield textClientInstance.get(
|
|
1893
|
+
`/app_monitoring/${appId}/reports/custom`,
|
|
1894
|
+
getTextClientConfig(authorization)
|
|
1895
|
+
);
|
|
1896
|
+
return response.data;
|
|
1897
|
+
} catch (error) {
|
|
1898
|
+
if (error instanceof Error) {
|
|
1899
|
+
throw new Error(`Couldn't load custom reports. [${error.message}]`);
|
|
1900
|
+
}
|
|
1901
|
+
throw error;
|
|
1902
|
+
}
|
|
1903
|
+
});
|
|
1904
|
+
},
|
|
1905
|
+
upsertCustomReport(appId, customReport, authorization) {
|
|
1906
|
+
return __async(this, null, function* () {
|
|
1907
|
+
try {
|
|
1908
|
+
const response = yield textClientInstance.post(
|
|
1909
|
+
`/app_monitoring/${appId}/reports/custom/${customReport.id}`,
|
|
1910
|
+
customReport,
|
|
1911
|
+
getTextClientConfig(authorization)
|
|
1912
|
+
);
|
|
1913
|
+
return response.data;
|
|
1914
|
+
} catch (error) {
|
|
1915
|
+
if (error instanceof Error) {
|
|
1916
|
+
throw new Error(`Couldn't upsert custom report. [${error.message}]`);
|
|
1917
|
+
}
|
|
1918
|
+
throw error;
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
},
|
|
1922
|
+
deleteCustomReport(appId, customReportId, authorization) {
|
|
1923
|
+
return __async(this, null, function* () {
|
|
1924
|
+
try {
|
|
1925
|
+
const response = yield textClientInstance.delete(
|
|
1926
|
+
`/app_monitoring/${appId}/reports/custom/${customReportId}`,
|
|
1927
|
+
getTextClientConfig(authorization)
|
|
1928
|
+
);
|
|
1929
|
+
return response.data;
|
|
1930
|
+
} catch (error) {
|
|
1931
|
+
if (error instanceof Error) {
|
|
1932
|
+
throw new Error(`Couldn't delete custom report. [${error.message}]`);
|
|
1889
1933
|
}
|
|
1890
1934
|
throw error;
|
|
1891
1935
|
}
|
|
@@ -1895,7 +1939,6 @@ var textAppMonitoringUptimeApi = {
|
|
|
1895
1939
|
|
|
1896
1940
|
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1897
1941
|
var textAppMonitoringApi = {
|
|
1898
|
-
uptime: textAppMonitoringUptimeApi,
|
|
1899
1942
|
events: textAppMonitoringEventsApi,
|
|
1900
1943
|
reports: textAppMonitoringReportsApi
|
|
1901
1944
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1649,11 +1649,11 @@ function initTextClientInstance(baseUrl, token) {
|
|
|
1649
1649
|
|
|
1650
1650
|
// src/apis/integrations/text/app/monitoring/events/api.ts
|
|
1651
1651
|
var textAppMonitoringEventsApi = {
|
|
1652
|
-
getEvent(appId,
|
|
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}/events/${
|
|
1656
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1657
1657
|
getTextClientConfig(authorization)
|
|
1658
1658
|
);
|
|
1659
1659
|
return response.data;
|
|
@@ -1681,50 +1681,50 @@ var textAppMonitoringEventsApi = {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
});
|
|
1683
1683
|
},
|
|
1684
|
-
|
|
1684
|
+
getEventsLog(appId, payload, authorization) {
|
|
1685
1685
|
return __async(this, null, function* () {
|
|
1686
1686
|
try {
|
|
1687
1687
|
const response = yield textClientInstance.get(
|
|
1688
|
-
`/app_monitoring/${appId}/
|
|
1688
|
+
`/app_monitoring/${appId}/events/logs?from=${payload.from}&to=${payload.to}&type=${payload.type}&search=${payload.search}`,
|
|
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 events log. [${error.message}]`);
|
|
1695
1695
|
}
|
|
1696
1696
|
throw error;
|
|
1697
1697
|
}
|
|
1698
1698
|
});
|
|
1699
1699
|
},
|
|
1700
|
-
|
|
1700
|
+
upsertEvent(appId, event, authorization) {
|
|
1701
1701
|
return __async(this, null, function* () {
|
|
1702
1702
|
try {
|
|
1703
|
-
const response = yield textClientInstance.
|
|
1704
|
-
`/app_monitoring/${appId}/events
|
|
1703
|
+
const response = yield textClientInstance.post(
|
|
1704
|
+
`/app_monitoring/${appId}/events/${event.key}`,
|
|
1705
|
+
event,
|
|
1705
1706
|
getTextClientConfig(authorization)
|
|
1706
1707
|
);
|
|
1707
1708
|
return response.data;
|
|
1708
1709
|
} catch (error) {
|
|
1709
1710
|
if (error instanceof Error) {
|
|
1710
|
-
throw new Error(`Couldn't
|
|
1711
|
+
throw new Error(`Couldn't upsert event. [${error.message}]`);
|
|
1711
1712
|
}
|
|
1712
1713
|
throw error;
|
|
1713
1714
|
}
|
|
1714
1715
|
});
|
|
1715
1716
|
},
|
|
1716
|
-
|
|
1717
|
+
deleteEvent(appId, eventKey, authorization) {
|
|
1717
1718
|
return __async(this, null, function* () {
|
|
1718
1719
|
try {
|
|
1719
|
-
const response = yield textClientInstance.
|
|
1720
|
-
`/app_monitoring/${appId}/events/${
|
|
1721
|
-
event,
|
|
1720
|
+
const response = yield textClientInstance.delete(
|
|
1721
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1722
1722
|
getTextClientConfig(authorization)
|
|
1723
1723
|
);
|
|
1724
1724
|
return response.data;
|
|
1725
1725
|
} catch (error) {
|
|
1726
1726
|
if (error instanceof Error) {
|
|
1727
|
-
throw new Error(`Couldn't
|
|
1727
|
+
throw new Error(`Couldn't delete event. [${error.message}]`);
|
|
1728
1728
|
}
|
|
1729
1729
|
throw error;
|
|
1730
1730
|
}
|
|
@@ -1734,70 +1734,114 @@ var textAppMonitoringEventsApi = {
|
|
|
1734
1734
|
|
|
1735
1735
|
// src/apis/integrations/text/app/monitoring/reports/api.ts
|
|
1736
1736
|
var textAppMonitoringReportsApi = {
|
|
1737
|
-
|
|
1737
|
+
getUptimeReports(appId, payload, authorization) {
|
|
1738
1738
|
return __async(this, null, function* () {
|
|
1739
1739
|
try {
|
|
1740
1740
|
const response = yield textClientInstance.get(
|
|
1741
|
-
`/app_monitoring/${appId}/reports
|
|
1741
|
+
`/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
|
|
1742
1742
|
getTextClientConfig(authorization)
|
|
1743
1743
|
);
|
|
1744
1744
|
return response.data;
|
|
1745
1745
|
} catch (error) {
|
|
1746
1746
|
if (error instanceof Error) {
|
|
1747
|
-
throw new Error(`Couldn't load
|
|
1747
|
+
throw new Error(`Couldn't load uptime reports. [${error.message}]`);
|
|
1748
1748
|
}
|
|
1749
1749
|
throw error;
|
|
1750
1750
|
}
|
|
1751
1751
|
});
|
|
1752
1752
|
},
|
|
1753
|
-
|
|
1753
|
+
getEventReports(appId, payload, authorization) {
|
|
1754
1754
|
return __async(this, null, function* () {
|
|
1755
1755
|
try {
|
|
1756
1756
|
const response = yield textClientInstance.get(
|
|
1757
|
-
`/app_monitoring/${appId}/reports`,
|
|
1757
|
+
`/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
|
|
1758
1758
|
getTextClientConfig(authorization)
|
|
1759
1759
|
);
|
|
1760
1760
|
return response.data;
|
|
1761
1761
|
} catch (error) {
|
|
1762
1762
|
if (error instanceof Error) {
|
|
1763
|
-
throw new Error(`Couldn't load reports. [${error.message}]`);
|
|
1763
|
+
throw new Error(`Couldn't load event reports. [${error.message}]`);
|
|
1764
1764
|
}
|
|
1765
1765
|
throw error;
|
|
1766
1766
|
}
|
|
1767
1767
|
});
|
|
1768
1768
|
},
|
|
1769
|
-
|
|
1769
|
+
getCustomReport(appId, customReportId, authorization) {
|
|
1770
1770
|
return __async(this, null, function* () {
|
|
1771
1771
|
try {
|
|
1772
|
-
const response = yield textClientInstance.
|
|
1773
|
-
`/app_monitoring/${appId}/
|
|
1774
|
-
report,
|
|
1772
|
+
const response = yield textClientInstance.get(
|
|
1773
|
+
`/app_monitoring/${appId}/reports/custom/${customReportId}`,
|
|
1775
1774
|
getTextClientConfig(authorization)
|
|
1776
1775
|
);
|
|
1777
1776
|
return response.data;
|
|
1778
1777
|
} catch (error) {
|
|
1779
1778
|
if (error instanceof Error) {
|
|
1780
|
-
throw new Error(`Couldn't
|
|
1779
|
+
throw new Error(`Couldn't load custom report. [${error.message}]`);
|
|
1781
1780
|
}
|
|
1782
1781
|
throw error;
|
|
1783
1782
|
}
|
|
1784
1783
|
});
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
// src/apis/integrations/text/app/monitoring/uptime/api.ts
|
|
1789
|
-
var textAppMonitoringUptimeApi = {
|
|
1790
|
-
getUptimeReports(appId, payload, authorization) {
|
|
1784
|
+
},
|
|
1785
|
+
getCustomReportData(appId, customReportId, authorization) {
|
|
1791
1786
|
return __async(this, null, function* () {
|
|
1792
1787
|
try {
|
|
1793
1788
|
const response = yield textClientInstance.get(
|
|
1794
|
-
`/app_monitoring/${appId}/reports/
|
|
1789
|
+
`/app_monitoring/${appId}/reports/custom/${customReportId}/data`,
|
|
1795
1790
|
getTextClientConfig(authorization)
|
|
1796
1791
|
);
|
|
1797
1792
|
return response.data;
|
|
1798
1793
|
} catch (error) {
|
|
1799
1794
|
if (error instanceof Error) {
|
|
1800
|
-
throw new Error(`Couldn't load
|
|
1795
|
+
throw new Error(`Couldn't load custom report data. [${error.message}]`);
|
|
1796
|
+
}
|
|
1797
|
+
throw error;
|
|
1798
|
+
}
|
|
1799
|
+
});
|
|
1800
|
+
},
|
|
1801
|
+
getCustomReports(appId, authorization) {
|
|
1802
|
+
return __async(this, null, function* () {
|
|
1803
|
+
try {
|
|
1804
|
+
const response = yield textClientInstance.get(
|
|
1805
|
+
`/app_monitoring/${appId}/reports/custom`,
|
|
1806
|
+
getTextClientConfig(authorization)
|
|
1807
|
+
);
|
|
1808
|
+
return response.data;
|
|
1809
|
+
} catch (error) {
|
|
1810
|
+
if (error instanceof Error) {
|
|
1811
|
+
throw new Error(`Couldn't load custom reports. [${error.message}]`);
|
|
1812
|
+
}
|
|
1813
|
+
throw error;
|
|
1814
|
+
}
|
|
1815
|
+
});
|
|
1816
|
+
},
|
|
1817
|
+
upsertCustomReport(appId, customReport, authorization) {
|
|
1818
|
+
return __async(this, null, function* () {
|
|
1819
|
+
try {
|
|
1820
|
+
const response = yield textClientInstance.post(
|
|
1821
|
+
`/app_monitoring/${appId}/reports/custom/${customReport.id}`,
|
|
1822
|
+
customReport,
|
|
1823
|
+
getTextClientConfig(authorization)
|
|
1824
|
+
);
|
|
1825
|
+
return response.data;
|
|
1826
|
+
} catch (error) {
|
|
1827
|
+
if (error instanceof Error) {
|
|
1828
|
+
throw new Error(`Couldn't upsert custom report. [${error.message}]`);
|
|
1829
|
+
}
|
|
1830
|
+
throw error;
|
|
1831
|
+
}
|
|
1832
|
+
});
|
|
1833
|
+
},
|
|
1834
|
+
deleteCustomReport(appId, customReportId, authorization) {
|
|
1835
|
+
return __async(this, null, function* () {
|
|
1836
|
+
try {
|
|
1837
|
+
const response = yield textClientInstance.delete(
|
|
1838
|
+
`/app_monitoring/${appId}/reports/custom/${customReportId}`,
|
|
1839
|
+
getTextClientConfig(authorization)
|
|
1840
|
+
);
|
|
1841
|
+
return response.data;
|
|
1842
|
+
} catch (error) {
|
|
1843
|
+
if (error instanceof Error) {
|
|
1844
|
+
throw new Error(`Couldn't delete custom report. [${error.message}]`);
|
|
1801
1845
|
}
|
|
1802
1846
|
throw error;
|
|
1803
1847
|
}
|
|
@@ -1807,7 +1851,6 @@ var textAppMonitoringUptimeApi = {
|
|
|
1807
1851
|
|
|
1808
1852
|
// src/apis/integrations/text/app/monitoring/api.ts
|
|
1809
1853
|
var textAppMonitoringApi = {
|
|
1810
|
-
uptime: textAppMonitoringUptimeApi,
|
|
1811
1854
|
events: textAppMonitoringEventsApi,
|
|
1812
1855
|
reports: textAppMonitoringReportsApi
|
|
1813
1856
|
};
|
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.39",
|
|
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,9 +18,9 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"config": "0.0.0",
|
|
21
|
-
"
|
|
21
|
+
"types": "0.0.1",
|
|
22
22
|
"tsconfig": "0.0.0",
|
|
23
|
-
"
|
|
23
|
+
"eslint-config-custom-lib": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|