@livechat/developer-studio-api 2.0.38 → 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 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 AppMonitoringReport {
391
+ interface AppMonitoringCustomReport {
392
392
  id: string;
393
393
  title: string;
394
394
  events: string[];
395
395
  }
396
396
 
397
- interface AppMonitoringEvent {
398
- key: string;
399
- name: string;
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
- [key: string]: number;
414
+ [eventKey: string]: number;
406
415
  };
407
416
  }[];
408
417
  }
409
418
 
410
- interface AppMonitoringEventsLogDto {
411
- [appId: string]: {
412
- sent_at: string;
413
- organization_id: string;
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 GetAppMonitoringEventsLogPayload {
425
+ interface GetAppMonitoringUptimeReportPayload {
420
426
  from: string;
421
427
  to: string;
422
- type: string;
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 AppMonitoringUptimeReportDto {
438
+ interface AppMonitoringEvent {
439
+ key: string;
440
+ name: string;
441
+ }
442
+
443
+ interface AppMonitoringEventsLogDto {
434
444
  [appId: string]: {
435
- [date: string]: number;
436
- };
445
+ sent_at: string;
446
+ organization_id: string;
447
+ type: string;
448
+ payload: string;
449
+ }[];
437
450
  }
438
451
 
439
- interface GetAppMonitoringUptimeReportPayload {
452
+ interface GetAppMonitoringEventsLogPayload {
440
453
  from: string;
441
454
  to: string;
442
- resolution: "hourly" | "daily" | "monthly";
455
+ type: string;
456
+ search: string;
443
457
  }
444
458
 
445
459
  interface TextClientInstanceAuthorization {
@@ -2310,22 +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
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>;
2322
2332
  deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2323
2333
  };
2324
2334
  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>;
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>;
2329
2342
  };
2330
2343
  };
2331
2344
  };
@@ -2395,4 +2408,4 @@ declare const serializerBase64: {
2395
2408
  deserialize<T_1>(message?: string): T_1 | undefined;
2396
2409
  };
2397
2410
 
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 };
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 AppMonitoringReport {
391
+ interface AppMonitoringCustomReport {
392
392
  id: string;
393
393
  title: string;
394
394
  events: string[];
395
395
  }
396
396
 
397
- interface AppMonitoringEvent {
398
- key: string;
399
- name: string;
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
- [key: string]: number;
414
+ [eventKey: string]: number;
406
415
  };
407
416
  }[];
408
417
  }
409
418
 
410
- interface AppMonitoringEventsLogDto {
411
- [appId: string]: {
412
- sent_at: string;
413
- organization_id: string;
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 GetAppMonitoringEventsLogPayload {
425
+ interface GetAppMonitoringUptimeReportPayload {
420
426
  from: string;
421
427
  to: string;
422
- type: string;
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 AppMonitoringUptimeReportDto {
438
+ interface AppMonitoringEvent {
439
+ key: string;
440
+ name: string;
441
+ }
442
+
443
+ interface AppMonitoringEventsLogDto {
434
444
  [appId: string]: {
435
- [date: string]: number;
436
- };
445
+ sent_at: string;
446
+ organization_id: string;
447
+ type: string;
448
+ payload: string;
449
+ }[];
437
450
  }
438
451
 
439
- interface GetAppMonitoringUptimeReportPayload {
452
+ interface GetAppMonitoringEventsLogPayload {
440
453
  from: string;
441
454
  to: string;
442
- resolution: "hourly" | "daily" | "monthly";
455
+ type: string;
456
+ search: string;
443
457
  }
444
458
 
445
459
  interface TextClientInstanceAuthorization {
@@ -2310,22 +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
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>;
2322
2332
  deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2323
2333
  };
2324
2334
  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>;
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>;
2329
2342
  };
2330
2343
  };
2331
2344
  };
@@ -2395,4 +2408,4 @@ declare const serializerBase64: {
2395
2408
  deserialize<T_1>(message?: string): T_1 | undefined;
2396
2409
  };
2397
2410
 
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 };
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
@@ -1769,22 +1769,6 @@ var textAppMonitoringEventsApi = {
1769
1769
  }
1770
1770
  });
1771
1771
  },
1772
- getEventReports(appId, payload, authorization) {
1773
- return __async(this, null, function* () {
1774
- try {
1775
- const response = yield textClientInstance.get(
1776
- `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1777
- getTextClientConfig(authorization)
1778
- );
1779
- return response.data;
1780
- } catch (error) {
1781
- if (error instanceof Error) {
1782
- throw new Error(`Couldn't load event reports. [${error.message}]`);
1783
- }
1784
- throw error;
1785
- }
1786
- });
1787
- },
1788
1772
  getEventsLog(appId, payload, authorization) {
1789
1773
  return __async(this, null, function* () {
1790
1774
  try {
@@ -1838,86 +1822,114 @@ var textAppMonitoringEventsApi = {
1838
1822
 
1839
1823
  // src/apis/integrations/text/app/monitoring/reports/api.ts
1840
1824
  var textAppMonitoringReportsApi = {
1841
- getReport(appId, reportId, authorization) {
1825
+ getUptimeReports(appId, payload, authorization) {
1842
1826
  return __async(this, null, function* () {
1843
1827
  try {
1844
1828
  const response = yield textClientInstance.get(
1845
- `/app_monitoring/${appId}/reports/${reportId}`,
1829
+ `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1846
1830
  getTextClientConfig(authorization)
1847
1831
  );
1848
1832
  return response.data;
1849
1833
  } catch (error) {
1850
1834
  if (error instanceof Error) {
1851
- throw new Error(`Couldn't load report. [${error.message}]`);
1835
+ throw new Error(`Couldn't load uptime reports. [${error.message}]`);
1852
1836
  }
1853
1837
  throw error;
1854
1838
  }
1855
1839
  });
1856
1840
  },
1857
- getReports(appId, authorization) {
1841
+ getEventReports(appId, payload, authorization) {
1858
1842
  return __async(this, null, function* () {
1859
1843
  try {
1860
1844
  const response = yield textClientInstance.get(
1861
- `/app_monitoring/${appId}/reports`,
1845
+ `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1862
1846
  getTextClientConfig(authorization)
1863
1847
  );
1864
1848
  return response.data;
1865
1849
  } catch (error) {
1866
1850
  if (error instanceof Error) {
1867
- throw new Error(`Couldn't load reports. [${error.message}]`);
1851
+ throw new Error(`Couldn't load event reports. [${error.message}]`);
1868
1852
  }
1869
1853
  throw error;
1870
1854
  }
1871
1855
  });
1872
1856
  },
1873
- upsertReport(appId, report, authorization) {
1857
+ getCustomReport(appId, customReportId, authorization) {
1874
1858
  return __async(this, null, function* () {
1875
1859
  try {
1876
- const response = yield textClientInstance.post(
1877
- `/app_monitoring/${appId}/report/${report.id}`,
1878
- report,
1860
+ const response = yield textClientInstance.get(
1861
+ `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1879
1862
  getTextClientConfig(authorization)
1880
1863
  );
1881
1864
  return response.data;
1882
1865
  } catch (error) {
1883
1866
  if (error instanceof Error) {
1884
- throw new Error(`Couldn't upsert report. [${error.message}]`);
1867
+ throw new Error(`Couldn't load custom report. [${error.message}]`);
1885
1868
  }
1886
1869
  throw error;
1887
1870
  }
1888
1871
  });
1889
1872
  },
1890
- deleteReport(appId, reportId, authorization) {
1873
+ getCustomReportData(appId, customReportId, authorization) {
1891
1874
  return __async(this, null, function* () {
1892
1875
  try {
1893
- const response = yield textClientInstance.delete(
1894
- `/app_monitoring/${appId}/report/${reportId}`,
1876
+ const response = yield textClientInstance.get(
1877
+ `/app_monitoring/${appId}/reports/custom/${customReportId}/data`,
1895
1878
  getTextClientConfig(authorization)
1896
1879
  );
1897
1880
  return response.data;
1898
1881
  } catch (error) {
1899
1882
  if (error instanceof Error) {
1900
- throw new Error(`Couldn't delete report. [${error.message}]`);
1883
+ throw new Error(`Couldn't load custom report data. [${error.message}]`);
1901
1884
  }
1902
1885
  throw error;
1903
1886
  }
1904
1887
  });
1905
- }
1906
- };
1907
-
1908
- // src/apis/integrations/text/app/monitoring/uptime/api.ts
1909
- var textAppMonitoringUptimeApi = {
1910
- getUptimeReports(appId, payload, authorization) {
1888
+ },
1889
+ getCustomReports(appId, authorization) {
1911
1890
  return __async(this, null, function* () {
1912
1891
  try {
1913
1892
  const response = yield textClientInstance.get(
1914
- `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1893
+ `/app_monitoring/${appId}/reports/custom`,
1915
1894
  getTextClientConfig(authorization)
1916
1895
  );
1917
1896
  return response.data;
1918
1897
  } catch (error) {
1919
1898
  if (error instanceof Error) {
1920
- throw new Error(`Couldn't load uptime reports. [${error.message}]`);
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}]`);
1921
1933
  }
1922
1934
  throw error;
1923
1935
  }
@@ -1927,7 +1939,6 @@ var textAppMonitoringUptimeApi = {
1927
1939
 
1928
1940
  // src/apis/integrations/text/app/monitoring/api.ts
1929
1941
  var textAppMonitoringApi = {
1930
- uptime: textAppMonitoringUptimeApi,
1931
1942
  events: textAppMonitoringEventsApi,
1932
1943
  reports: textAppMonitoringReportsApi
1933
1944
  };
package/dist/index.mjs CHANGED
@@ -1681,22 +1681,6 @@ var textAppMonitoringEventsApi = {
1681
1681
  }
1682
1682
  });
1683
1683
  },
1684
- getEventReports(appId, payload, authorization) {
1685
- return __async(this, null, function* () {
1686
- try {
1687
- const response = yield textClientInstance.get(
1688
- `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1689
- getTextClientConfig(authorization)
1690
- );
1691
- return response.data;
1692
- } catch (error) {
1693
- if (error instanceof Error) {
1694
- throw new Error(`Couldn't load event reports. [${error.message}]`);
1695
- }
1696
- throw error;
1697
- }
1698
- });
1699
- },
1700
1684
  getEventsLog(appId, payload, authorization) {
1701
1685
  return __async(this, null, function* () {
1702
1686
  try {
@@ -1750,86 +1734,114 @@ var textAppMonitoringEventsApi = {
1750
1734
 
1751
1735
  // src/apis/integrations/text/app/monitoring/reports/api.ts
1752
1736
  var textAppMonitoringReportsApi = {
1753
- getReport(appId, reportId, authorization) {
1737
+ getUptimeReports(appId, payload, authorization) {
1754
1738
  return __async(this, null, function* () {
1755
1739
  try {
1756
1740
  const response = yield textClientInstance.get(
1757
- `/app_monitoring/${appId}/reports/${reportId}`,
1741
+ `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1758
1742
  getTextClientConfig(authorization)
1759
1743
  );
1760
1744
  return response.data;
1761
1745
  } catch (error) {
1762
1746
  if (error instanceof Error) {
1763
- throw new Error(`Couldn't load report. [${error.message}]`);
1747
+ throw new Error(`Couldn't load uptime reports. [${error.message}]`);
1764
1748
  }
1765
1749
  throw error;
1766
1750
  }
1767
1751
  });
1768
1752
  },
1769
- getReports(appId, authorization) {
1753
+ getEventReports(appId, payload, authorization) {
1770
1754
  return __async(this, null, function* () {
1771
1755
  try {
1772
1756
  const response = yield textClientInstance.get(
1773
- `/app_monitoring/${appId}/reports`,
1757
+ `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1774
1758
  getTextClientConfig(authorization)
1775
1759
  );
1776
1760
  return response.data;
1777
1761
  } catch (error) {
1778
1762
  if (error instanceof Error) {
1779
- throw new Error(`Couldn't load reports. [${error.message}]`);
1763
+ throw new Error(`Couldn't load event reports. [${error.message}]`);
1780
1764
  }
1781
1765
  throw error;
1782
1766
  }
1783
1767
  });
1784
1768
  },
1785
- upsertReport(appId, report, authorization) {
1769
+ getCustomReport(appId, customReportId, authorization) {
1786
1770
  return __async(this, null, function* () {
1787
1771
  try {
1788
- const response = yield textClientInstance.post(
1789
- `/app_monitoring/${appId}/report/${report.id}`,
1790
- report,
1772
+ const response = yield textClientInstance.get(
1773
+ `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1791
1774
  getTextClientConfig(authorization)
1792
1775
  );
1793
1776
  return response.data;
1794
1777
  } catch (error) {
1795
1778
  if (error instanceof Error) {
1796
- throw new Error(`Couldn't upsert report. [${error.message}]`);
1779
+ throw new Error(`Couldn't load custom report. [${error.message}]`);
1797
1780
  }
1798
1781
  throw error;
1799
1782
  }
1800
1783
  });
1801
1784
  },
1802
- deleteReport(appId, reportId, authorization) {
1785
+ getCustomReportData(appId, customReportId, authorization) {
1803
1786
  return __async(this, null, function* () {
1804
1787
  try {
1805
- const response = yield textClientInstance.delete(
1806
- `/app_monitoring/${appId}/report/${reportId}`,
1788
+ const response = yield textClientInstance.get(
1789
+ `/app_monitoring/${appId}/reports/custom/${customReportId}/data`,
1807
1790
  getTextClientConfig(authorization)
1808
1791
  );
1809
1792
  return response.data;
1810
1793
  } catch (error) {
1811
1794
  if (error instanceof Error) {
1812
- throw new Error(`Couldn't delete report. [${error.message}]`);
1795
+ throw new Error(`Couldn't load custom report data. [${error.message}]`);
1813
1796
  }
1814
1797
  throw error;
1815
1798
  }
1816
1799
  });
1817
- }
1818
- };
1819
-
1820
- // src/apis/integrations/text/app/monitoring/uptime/api.ts
1821
- var textAppMonitoringUptimeApi = {
1822
- getUptimeReports(appId, payload, authorization) {
1800
+ },
1801
+ getCustomReports(appId, authorization) {
1823
1802
  return __async(this, null, function* () {
1824
1803
  try {
1825
1804
  const response = yield textClientInstance.get(
1826
- `/app_monitoring/${appId}/reports/uptime?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1805
+ `/app_monitoring/${appId}/reports/custom`,
1827
1806
  getTextClientConfig(authorization)
1828
1807
  );
1829
1808
  return response.data;
1830
1809
  } catch (error) {
1831
1810
  if (error instanceof Error) {
1832
- throw new Error(`Couldn't load uptime reports. [${error.message}]`);
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}]`);
1833
1845
  }
1834
1846
  throw error;
1835
1847
  }
@@ -1839,7 +1851,6 @@ var textAppMonitoringUptimeApi = {
1839
1851
 
1840
1852
  // src/apis/integrations/text/app/monitoring/api.ts
1841
1853
  var textAppMonitoringApi = {
1842
- uptime: textAppMonitoringUptimeApi,
1843
1854
  events: textAppMonitoringEventsApi,
1844
1855
  reports: textAppMonitoringReportsApi
1845
1856
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.0.38",
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",