@livechat/developer-studio-api 2.0.47 → 2.0.48
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 +16 -14
- package/dist/index.d.ts +16 -14
- package/dist/index.js +18 -18
- package/dist/index.mjs +18 -18
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -433,18 +433,14 @@ interface AppMonitoringEvent {
|
|
|
433
433
|
name: string;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
interface
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
};
|
|
445
|
-
pagination: {
|
|
446
|
-
nextFrom: string;
|
|
447
|
-
};
|
|
436
|
+
interface AppMonitoringEventsLogItem {
|
|
437
|
+
sent_at: string;
|
|
438
|
+
organization_id: string;
|
|
439
|
+
type: string;
|
|
440
|
+
payload: string;
|
|
441
|
+
}
|
|
442
|
+
interface AppMonitoringEventsLog {
|
|
443
|
+
[appId: string]: AppMonitoringEventsLogItem[];
|
|
448
444
|
}
|
|
449
445
|
|
|
450
446
|
interface GetAppMonitoringEventsLogPayload {
|
|
@@ -452,6 +448,12 @@ interface GetAppMonitoringEventsLogPayload {
|
|
|
452
448
|
from?: string;
|
|
453
449
|
search?: string;
|
|
454
450
|
}
|
|
451
|
+
interface GetAppMonitoringEventsLogResponse {
|
|
452
|
+
result: AppMonitoringEventsLog;
|
|
453
|
+
pagination: {
|
|
454
|
+
nextFrom: string;
|
|
455
|
+
};
|
|
456
|
+
}
|
|
455
457
|
|
|
456
458
|
interface TextClientInstanceAuthorization {
|
|
457
459
|
token?: string;
|
|
@@ -2324,9 +2326,9 @@ declare const api: {
|
|
|
2324
2326
|
events: {
|
|
2325
2327
|
getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
|
|
2326
2328
|
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2327
|
-
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
|
|
2328
2329
|
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2329
2330
|
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2331
|
+
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<GetAppMonitoringEventsLogResponse>;
|
|
2330
2332
|
};
|
|
2331
2333
|
reports: {
|
|
2332
2334
|
getUptimeReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
@@ -2406,4 +2408,4 @@ declare const serializerBase64: {
|
|
|
2406
2408
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2407
2409
|
};
|
|
2408
2410
|
|
|
2409
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent,
|
|
2411
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, 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, GetAppMonitoringEventsLogResponse, 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
|
@@ -433,18 +433,14 @@ interface AppMonitoringEvent {
|
|
|
433
433
|
name: string;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
interface
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
};
|
|
445
|
-
pagination: {
|
|
446
|
-
nextFrom: string;
|
|
447
|
-
};
|
|
436
|
+
interface AppMonitoringEventsLogItem {
|
|
437
|
+
sent_at: string;
|
|
438
|
+
organization_id: string;
|
|
439
|
+
type: string;
|
|
440
|
+
payload: string;
|
|
441
|
+
}
|
|
442
|
+
interface AppMonitoringEventsLog {
|
|
443
|
+
[appId: string]: AppMonitoringEventsLogItem[];
|
|
448
444
|
}
|
|
449
445
|
|
|
450
446
|
interface GetAppMonitoringEventsLogPayload {
|
|
@@ -452,6 +448,12 @@ interface GetAppMonitoringEventsLogPayload {
|
|
|
452
448
|
from?: string;
|
|
453
449
|
search?: string;
|
|
454
450
|
}
|
|
451
|
+
interface GetAppMonitoringEventsLogResponse {
|
|
452
|
+
result: AppMonitoringEventsLog;
|
|
453
|
+
pagination: {
|
|
454
|
+
nextFrom: string;
|
|
455
|
+
};
|
|
456
|
+
}
|
|
455
457
|
|
|
456
458
|
interface TextClientInstanceAuthorization {
|
|
457
459
|
token?: string;
|
|
@@ -2324,9 +2326,9 @@ declare const api: {
|
|
|
2324
2326
|
events: {
|
|
2325
2327
|
getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
|
|
2326
2328
|
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2327
|
-
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
|
|
2328
2329
|
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2329
2330
|
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2331
|
+
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<GetAppMonitoringEventsLogResponse>;
|
|
2330
2332
|
};
|
|
2331
2333
|
reports: {
|
|
2332
2334
|
getUptimeReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
|
|
@@ -2406,4 +2408,4 @@ declare const serializerBase64: {
|
|
|
2406
2408
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2407
2409
|
};
|
|
2408
2410
|
|
|
2409
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent,
|
|
2411
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, 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, GetAppMonitoringEventsLogResponse, 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,55 +1769,55 @@ var textAppMonitoringEventsApi = {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
});
|
|
1771
1771
|
},
|
|
1772
|
-
|
|
1772
|
+
upsertEvent(appId, event, authorization) {
|
|
1773
1773
|
return __async(this, null, function* () {
|
|
1774
|
-
var _a, _b, _c;
|
|
1775
1774
|
try {
|
|
1776
|
-
const response = yield textClientInstance.
|
|
1777
|
-
`/app_monitoring/${appId}/events
|
|
1778
|
-
|
|
1779
|
-
type: (_b = payload.type) != null ? _b : "",
|
|
1780
|
-
search: (_c = payload.search) != null ? _c : ""
|
|
1781
|
-
}).toString()}`,
|
|
1775
|
+
const response = yield textClientInstance.post(
|
|
1776
|
+
`/app_monitoring/${appId}/events/${event.key}`,
|
|
1777
|
+
event,
|
|
1782
1778
|
getTextClientConfig(authorization)
|
|
1783
1779
|
);
|
|
1784
1780
|
return response.data;
|
|
1785
1781
|
} catch (error) {
|
|
1786
1782
|
if (error instanceof Error) {
|
|
1787
|
-
throw new Error(`Couldn't
|
|
1783
|
+
throw new Error(`Couldn't upsert event. [${error.message}]`);
|
|
1788
1784
|
}
|
|
1789
1785
|
throw error;
|
|
1790
1786
|
}
|
|
1791
1787
|
});
|
|
1792
1788
|
},
|
|
1793
|
-
|
|
1789
|
+
deleteEvent(appId, eventKey, authorization) {
|
|
1794
1790
|
return __async(this, null, function* () {
|
|
1795
1791
|
try {
|
|
1796
|
-
const response = yield textClientInstance.
|
|
1797
|
-
`/app_monitoring/${appId}/events/${
|
|
1798
|
-
event,
|
|
1792
|
+
const response = yield textClientInstance.delete(
|
|
1793
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1799
1794
|
getTextClientConfig(authorization)
|
|
1800
1795
|
);
|
|
1801
1796
|
return response.data;
|
|
1802
1797
|
} catch (error) {
|
|
1803
1798
|
if (error instanceof Error) {
|
|
1804
|
-
throw new Error(`Couldn't
|
|
1799
|
+
throw new Error(`Couldn't delete event. [${error.message}]`);
|
|
1805
1800
|
}
|
|
1806
1801
|
throw error;
|
|
1807
1802
|
}
|
|
1808
1803
|
});
|
|
1809
1804
|
},
|
|
1810
|
-
|
|
1805
|
+
getEventsLog(appId, payload, authorization) {
|
|
1811
1806
|
return __async(this, null, function* () {
|
|
1807
|
+
var _a, _b, _c;
|
|
1812
1808
|
try {
|
|
1813
|
-
const response = yield textClientInstance.
|
|
1814
|
-
`/app_monitoring/${appId}/events
|
|
1809
|
+
const response = yield textClientInstance.get(
|
|
1810
|
+
`/app_monitoring/${appId}/events/logs?${new URLSearchParams({
|
|
1811
|
+
from: (_a = payload.from) != null ? _a : "",
|
|
1812
|
+
type: (_b = payload.type) != null ? _b : "",
|
|
1813
|
+
search: (_c = payload.search) != null ? _c : ""
|
|
1814
|
+
}).toString()}`,
|
|
1815
1815
|
getTextClientConfig(authorization)
|
|
1816
1816
|
);
|
|
1817
1817
|
return response.data;
|
|
1818
1818
|
} catch (error) {
|
|
1819
1819
|
if (error instanceof Error) {
|
|
1820
|
-
throw new Error(`Couldn't
|
|
1820
|
+
throw new Error(`Couldn't load events log. [${error.message}]`);
|
|
1821
1821
|
}
|
|
1822
1822
|
throw error;
|
|
1823
1823
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1681,55 +1681,55 @@ var textAppMonitoringEventsApi = {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
});
|
|
1683
1683
|
},
|
|
1684
|
-
|
|
1684
|
+
upsertEvent(appId, event, authorization) {
|
|
1685
1685
|
return __async(this, null, function* () {
|
|
1686
|
-
var _a, _b, _c;
|
|
1687
1686
|
try {
|
|
1688
|
-
const response = yield textClientInstance.
|
|
1689
|
-
`/app_monitoring/${appId}/events
|
|
1690
|
-
|
|
1691
|
-
type: (_b = payload.type) != null ? _b : "",
|
|
1692
|
-
search: (_c = payload.search) != null ? _c : ""
|
|
1693
|
-
}).toString()}`,
|
|
1687
|
+
const response = yield textClientInstance.post(
|
|
1688
|
+
`/app_monitoring/${appId}/events/${event.key}`,
|
|
1689
|
+
event,
|
|
1694
1690
|
getTextClientConfig(authorization)
|
|
1695
1691
|
);
|
|
1696
1692
|
return response.data;
|
|
1697
1693
|
} catch (error) {
|
|
1698
1694
|
if (error instanceof Error) {
|
|
1699
|
-
throw new Error(`Couldn't
|
|
1695
|
+
throw new Error(`Couldn't upsert event. [${error.message}]`);
|
|
1700
1696
|
}
|
|
1701
1697
|
throw error;
|
|
1702
1698
|
}
|
|
1703
1699
|
});
|
|
1704
1700
|
},
|
|
1705
|
-
|
|
1701
|
+
deleteEvent(appId, eventKey, authorization) {
|
|
1706
1702
|
return __async(this, null, function* () {
|
|
1707
1703
|
try {
|
|
1708
|
-
const response = yield textClientInstance.
|
|
1709
|
-
`/app_monitoring/${appId}/events/${
|
|
1710
|
-
event,
|
|
1704
|
+
const response = yield textClientInstance.delete(
|
|
1705
|
+
`/app_monitoring/${appId}/events/${eventKey}`,
|
|
1711
1706
|
getTextClientConfig(authorization)
|
|
1712
1707
|
);
|
|
1713
1708
|
return response.data;
|
|
1714
1709
|
} catch (error) {
|
|
1715
1710
|
if (error instanceof Error) {
|
|
1716
|
-
throw new Error(`Couldn't
|
|
1711
|
+
throw new Error(`Couldn't delete event. [${error.message}]`);
|
|
1717
1712
|
}
|
|
1718
1713
|
throw error;
|
|
1719
1714
|
}
|
|
1720
1715
|
});
|
|
1721
1716
|
},
|
|
1722
|
-
|
|
1717
|
+
getEventsLog(appId, payload, authorization) {
|
|
1723
1718
|
return __async(this, null, function* () {
|
|
1719
|
+
var _a, _b, _c;
|
|
1724
1720
|
try {
|
|
1725
|
-
const response = yield textClientInstance.
|
|
1726
|
-
`/app_monitoring/${appId}/events
|
|
1721
|
+
const response = yield textClientInstance.get(
|
|
1722
|
+
`/app_monitoring/${appId}/events/logs?${new URLSearchParams({
|
|
1723
|
+
from: (_a = payload.from) != null ? _a : "",
|
|
1724
|
+
type: (_b = payload.type) != null ? _b : "",
|
|
1725
|
+
search: (_c = payload.search) != null ? _c : ""
|
|
1726
|
+
}).toString()}`,
|
|
1727
1727
|
getTextClientConfig(authorization)
|
|
1728
1728
|
);
|
|
1729
1729
|
return response.data;
|
|
1730
1730
|
} catch (error) {
|
|
1731
1731
|
if (error instanceof Error) {
|
|
1732
|
-
throw new Error(`Couldn't
|
|
1732
|
+
throw new Error(`Couldn't load events log. [${error.message}]`);
|
|
1733
1733
|
}
|
|
1734
1734
|
throw error;
|
|
1735
1735
|
}
|
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.48",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"config": "0.0.0",
|
|
21
|
-
"eslint-config-custom-lib": "0.0.1",
|
|
22
20
|
"types": "0.0.1",
|
|
21
|
+
"eslint-config-custom-lib": "0.0.1",
|
|
22
|
+
"config": "0.0.0",
|
|
23
23
|
"tsconfig": "0.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|