@livechat/developer-studio-api 2.0.53 → 2.0.55
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 +7 -32
- package/dist/index.d.ts +7 -32
- package/dist/index.js +17 -23
- package/dist/index.mjs +17 -22
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -433,12 +433,15 @@ interface AppMonitoringEvent {
|
|
|
433
433
|
name: string;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
interface
|
|
437
|
-
sent_at: string;
|
|
436
|
+
interface AppMonitoringEventData {
|
|
438
437
|
organization_id: string;
|
|
439
438
|
type: string;
|
|
440
439
|
payload: string;
|
|
441
440
|
}
|
|
441
|
+
|
|
442
|
+
type AppMonitoringEventsLogItem = {
|
|
443
|
+
sent_at: string;
|
|
444
|
+
} & AppMonitoringEventData;
|
|
442
445
|
interface AppMonitoringEventsLog {
|
|
443
446
|
[appId: string]: AppMonitoringEventsLogItem[];
|
|
444
447
|
}
|
|
@@ -1491,32 +1494,6 @@ interface ApplicationPropertyDto {
|
|
|
1491
1494
|
value: string;
|
|
1492
1495
|
}
|
|
1493
1496
|
|
|
1494
|
-
interface ReportingEventBase {
|
|
1495
|
-
name: string;
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
interface ActiveUserReportingEvent extends ReportingEventBase {
|
|
1499
|
-
name: 'activeUser';
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
interface CustomReportingEvent<TPayload> extends ReportingEventBase {
|
|
1503
|
-
name: 'custom';
|
|
1504
|
-
payload: TPayload;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
declare enum ErrorType {
|
|
1508
|
-
'4xx' = "4xx",
|
|
1509
|
-
'5xx' = "5xx"
|
|
1510
|
-
}
|
|
1511
|
-
interface ErrorReportingEvent extends ReportingEventBase {
|
|
1512
|
-
name: 'error';
|
|
1513
|
-
payload: {
|
|
1514
|
-
type: ErrorType;
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
type ReportingEvent<TPayload = unknown> = ActiveUserReportingEvent | ErrorReportingEvent | CustomReportingEvent<TPayload>;
|
|
1519
|
-
|
|
1520
1497
|
interface AppResourceDto {
|
|
1521
1498
|
}
|
|
1522
1499
|
|
|
@@ -2035,9 +2012,6 @@ declare const api: {
|
|
|
2035
2012
|
product: {
|
|
2036
2013
|
updateProduct(appId: string, payload: UpdateApplicationProductPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2037
2014
|
};
|
|
2038
|
-
reporting: {
|
|
2039
|
-
sendEvent<TPayload = unknown>(appId: string, event: ReportingEvent<TPayload>, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2040
|
-
};
|
|
2041
2015
|
resource: {
|
|
2042
2016
|
getAppUpgrades(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppResourceDto>>;
|
|
2043
2017
|
createAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
@@ -2341,6 +2315,7 @@ declare const api: {
|
|
|
2341
2315
|
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2342
2316
|
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2343
2317
|
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2318
|
+
sendEvent(appId: string, data: AppMonitoringEventData, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2344
2319
|
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<GetAppMonitoringEventsLogResponse>;
|
|
2345
2320
|
};
|
|
2346
2321
|
reports: {
|
|
@@ -2421,4 +2396,4 @@ declare const serializerBase64: {
|
|
|
2421
2396
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2422
2397
|
};
|
|
2423
2398
|
|
|
2424
|
-
export { API_NOTIFICATIONS,
|
|
2399
|
+
export { API_NOTIFICATIONS, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, 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, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, 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, 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,12 +433,15 @@ interface AppMonitoringEvent {
|
|
|
433
433
|
name: string;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
interface
|
|
437
|
-
sent_at: string;
|
|
436
|
+
interface AppMonitoringEventData {
|
|
438
437
|
organization_id: string;
|
|
439
438
|
type: string;
|
|
440
439
|
payload: string;
|
|
441
440
|
}
|
|
441
|
+
|
|
442
|
+
type AppMonitoringEventsLogItem = {
|
|
443
|
+
sent_at: string;
|
|
444
|
+
} & AppMonitoringEventData;
|
|
442
445
|
interface AppMonitoringEventsLog {
|
|
443
446
|
[appId: string]: AppMonitoringEventsLogItem[];
|
|
444
447
|
}
|
|
@@ -1491,32 +1494,6 @@ interface ApplicationPropertyDto {
|
|
|
1491
1494
|
value: string;
|
|
1492
1495
|
}
|
|
1493
1496
|
|
|
1494
|
-
interface ReportingEventBase {
|
|
1495
|
-
name: string;
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
interface ActiveUserReportingEvent extends ReportingEventBase {
|
|
1499
|
-
name: 'activeUser';
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
interface CustomReportingEvent<TPayload> extends ReportingEventBase {
|
|
1503
|
-
name: 'custom';
|
|
1504
|
-
payload: TPayload;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
declare enum ErrorType {
|
|
1508
|
-
'4xx' = "4xx",
|
|
1509
|
-
'5xx' = "5xx"
|
|
1510
|
-
}
|
|
1511
|
-
interface ErrorReportingEvent extends ReportingEventBase {
|
|
1512
|
-
name: 'error';
|
|
1513
|
-
payload: {
|
|
1514
|
-
type: ErrorType;
|
|
1515
|
-
};
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
type ReportingEvent<TPayload = unknown> = ActiveUserReportingEvent | ErrorReportingEvent | CustomReportingEvent<TPayload>;
|
|
1519
|
-
|
|
1520
1497
|
interface AppResourceDto {
|
|
1521
1498
|
}
|
|
1522
1499
|
|
|
@@ -2035,9 +2012,6 @@ declare const api: {
|
|
|
2035
2012
|
product: {
|
|
2036
2013
|
updateProduct(appId: string, payload: UpdateApplicationProductPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2037
2014
|
};
|
|
2038
|
-
reporting: {
|
|
2039
|
-
sendEvent<TPayload = unknown>(appId: string, event: ReportingEvent<TPayload>, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2040
|
-
};
|
|
2041
2015
|
resource: {
|
|
2042
2016
|
getAppUpgrades(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppResourceDto>>;
|
|
2043
2017
|
createAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
@@ -2341,6 +2315,7 @@ declare const api: {
|
|
|
2341
2315
|
getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
|
|
2342
2316
|
upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2343
2317
|
deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2318
|
+
sendEvent(appId: string, data: AppMonitoringEventData, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2344
2319
|
getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<GetAppMonitoringEventsLogResponse>;
|
|
2345
2320
|
};
|
|
2346
2321
|
reports: {
|
|
@@ -2421,4 +2396,4 @@ declare const serializerBase64: {
|
|
|
2421
2396
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2422
2397
|
};
|
|
2423
2398
|
|
|
2424
|
-
export { API_NOTIFICATIONS,
|
|
2399
|
+
export { API_NOTIFICATIONS, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, 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, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, 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, 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
|
@@ -68,7 +68,6 @@ var __async = (__this, __arguments, generator) => {
|
|
|
68
68
|
var src_exports = {};
|
|
69
69
|
__export(src_exports, {
|
|
70
70
|
API_NOTIFICATIONS: () => API_NOTIFICATIONS,
|
|
71
|
-
ErrorType: () => ErrorType,
|
|
72
71
|
UnauthorizeApiError: () => UnauthorizeApiError,
|
|
73
72
|
api: () => api,
|
|
74
73
|
getAppAutoReviewPayload: () => getAppAutoReviewPayload,
|
|
@@ -1802,6 +1801,23 @@ var textAppMonitoringEventsApi = {
|
|
|
1802
1801
|
}
|
|
1803
1802
|
});
|
|
1804
1803
|
},
|
|
1804
|
+
sendEvent(appId, data, authorization) {
|
|
1805
|
+
return __async(this, null, function* () {
|
|
1806
|
+
try {
|
|
1807
|
+
const response = yield textClientInstance.post(
|
|
1808
|
+
`/app_monitoring/${appId}/events`,
|
|
1809
|
+
data,
|
|
1810
|
+
getTextClientConfig(authorization)
|
|
1811
|
+
);
|
|
1812
|
+
return response.data;
|
|
1813
|
+
} catch (error) {
|
|
1814
|
+
if (error instanceof Error) {
|
|
1815
|
+
throw new Error(`Couldn't send events. [${error.message}]`);
|
|
1816
|
+
}
|
|
1817
|
+
throw error;
|
|
1818
|
+
}
|
|
1819
|
+
});
|
|
1820
|
+
},
|
|
1805
1821
|
getEventsLog(appId, payload, authorization) {
|
|
1806
1822
|
return __async(this, null, function* () {
|
|
1807
1823
|
var _a, _b;
|
|
@@ -3825,19 +3841,6 @@ var platformDpsApplicationCustomPropsApi = {
|
|
|
3825
3841
|
}
|
|
3826
3842
|
};
|
|
3827
3843
|
|
|
3828
|
-
// src/apis/platform/dps/applications/application/reporting/api.ts
|
|
3829
|
-
var platformDpsApplicationReportingApi = {
|
|
3830
|
-
sendEvent(appId, event, authorization) {
|
|
3831
|
-
return __async(this, null, function* () {
|
|
3832
|
-
yield platformDpsClientInstance.post(
|
|
3833
|
-
`/apps/${appId}/events`,
|
|
3834
|
-
event,
|
|
3835
|
-
getPlatformDpsClientConfig(authorization)
|
|
3836
|
-
);
|
|
3837
|
-
});
|
|
3838
|
-
}
|
|
3839
|
-
};
|
|
3840
|
-
|
|
3841
3844
|
// src/apis/platform/dps/applications/application/resources/api.ts
|
|
3842
3845
|
var platformDpsApplicationResourcesApi = {
|
|
3843
3846
|
getAppUpgrades(appId, authorization) {
|
|
@@ -4105,7 +4108,6 @@ var platformDpsApplicationApi = {
|
|
|
4105
4108
|
onboarding: platformDpsApplicationOnboardingApi,
|
|
4106
4109
|
payment: platformDpsApplicationPaymentApi,
|
|
4107
4110
|
product: platformDpsApplicationProductApi,
|
|
4108
|
-
reporting: platformDpsApplicationReportingApi,
|
|
4109
4111
|
resource: platformDpsApplicationResourcesApi,
|
|
4110
4112
|
review: platformDpsApplicationReviewApi,
|
|
4111
4113
|
webhooks: platformDpsApplicationWebhooksApi,
|
|
@@ -5206,13 +5208,6 @@ var platformApi = {
|
|
|
5206
5208
|
dps: platformDpsApi
|
|
5207
5209
|
};
|
|
5208
5210
|
|
|
5209
|
-
// src/apis/platform/dps/applications/application/reporting/_contracts/dtos/events/error.ts
|
|
5210
|
-
var ErrorType = /* @__PURE__ */ ((ErrorType2) => {
|
|
5211
|
-
ErrorType2["4xx"] = "4xx";
|
|
5212
|
-
ErrorType2["5xx"] = "5xx";
|
|
5213
|
-
return ErrorType2;
|
|
5214
|
-
})(ErrorType || {});
|
|
5215
|
-
|
|
5216
5211
|
// src/apis/api.ts
|
|
5217
5212
|
var api = {
|
|
5218
5213
|
platform: platformApi,
|
|
@@ -5277,7 +5272,6 @@ var serializerBase64 = {
|
|
|
5277
5272
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5278
5273
|
0 && (module.exports = {
|
|
5279
5274
|
API_NOTIFICATIONS,
|
|
5280
|
-
ErrorType,
|
|
5281
5275
|
UnauthorizeApiError,
|
|
5282
5276
|
api,
|
|
5283
5277
|
getAppAutoReviewPayload,
|
package/dist/index.mjs
CHANGED
|
@@ -1714,6 +1714,23 @@ var textAppMonitoringEventsApi = {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
});
|
|
1716
1716
|
},
|
|
1717
|
+
sendEvent(appId, data, authorization) {
|
|
1718
|
+
return __async(this, null, function* () {
|
|
1719
|
+
try {
|
|
1720
|
+
const response = yield textClientInstance.post(
|
|
1721
|
+
`/app_monitoring/${appId}/events`,
|
|
1722
|
+
data,
|
|
1723
|
+
getTextClientConfig(authorization)
|
|
1724
|
+
);
|
|
1725
|
+
return response.data;
|
|
1726
|
+
} catch (error) {
|
|
1727
|
+
if (error instanceof Error) {
|
|
1728
|
+
throw new Error(`Couldn't send events. [${error.message}]`);
|
|
1729
|
+
}
|
|
1730
|
+
throw error;
|
|
1731
|
+
}
|
|
1732
|
+
});
|
|
1733
|
+
},
|
|
1717
1734
|
getEventsLog(appId, payload, authorization) {
|
|
1718
1735
|
return __async(this, null, function* () {
|
|
1719
1736
|
var _a, _b;
|
|
@@ -3737,19 +3754,6 @@ var platformDpsApplicationCustomPropsApi = {
|
|
|
3737
3754
|
}
|
|
3738
3755
|
};
|
|
3739
3756
|
|
|
3740
|
-
// src/apis/platform/dps/applications/application/reporting/api.ts
|
|
3741
|
-
var platformDpsApplicationReportingApi = {
|
|
3742
|
-
sendEvent(appId, event, authorization) {
|
|
3743
|
-
return __async(this, null, function* () {
|
|
3744
|
-
yield platformDpsClientInstance.post(
|
|
3745
|
-
`/apps/${appId}/events`,
|
|
3746
|
-
event,
|
|
3747
|
-
getPlatformDpsClientConfig(authorization)
|
|
3748
|
-
);
|
|
3749
|
-
});
|
|
3750
|
-
}
|
|
3751
|
-
};
|
|
3752
|
-
|
|
3753
3757
|
// src/apis/platform/dps/applications/application/resources/api.ts
|
|
3754
3758
|
var platformDpsApplicationResourcesApi = {
|
|
3755
3759
|
getAppUpgrades(appId, authorization) {
|
|
@@ -4017,7 +4021,6 @@ var platformDpsApplicationApi = {
|
|
|
4017
4021
|
onboarding: platformDpsApplicationOnboardingApi,
|
|
4018
4022
|
payment: platformDpsApplicationPaymentApi,
|
|
4019
4023
|
product: platformDpsApplicationProductApi,
|
|
4020
|
-
reporting: platformDpsApplicationReportingApi,
|
|
4021
4024
|
resource: platformDpsApplicationResourcesApi,
|
|
4022
4025
|
review: platformDpsApplicationReviewApi,
|
|
4023
4026
|
webhooks: platformDpsApplicationWebhooksApi,
|
|
@@ -5118,13 +5121,6 @@ var platformApi = {
|
|
|
5118
5121
|
dps: platformDpsApi
|
|
5119
5122
|
};
|
|
5120
5123
|
|
|
5121
|
-
// src/apis/platform/dps/applications/application/reporting/_contracts/dtos/events/error.ts
|
|
5122
|
-
var ErrorType = /* @__PURE__ */ ((ErrorType2) => {
|
|
5123
|
-
ErrorType2["4xx"] = "4xx";
|
|
5124
|
-
ErrorType2["5xx"] = "5xx";
|
|
5125
|
-
return ErrorType2;
|
|
5126
|
-
})(ErrorType || {});
|
|
5127
|
-
|
|
5128
5124
|
// src/apis/api.ts
|
|
5129
5125
|
var api = {
|
|
5130
5126
|
platform: platformApi,
|
|
@@ -5188,7 +5184,6 @@ var serializerBase64 = {
|
|
|
5188
5184
|
};
|
|
5189
5185
|
export {
|
|
5190
5186
|
API_NOTIFICATIONS,
|
|
5191
|
-
ErrorType,
|
|
5192
5187
|
UnauthorizeApiError,
|
|
5193
5188
|
api,
|
|
5194
5189
|
getAppAutoReviewPayload,
|
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.55",
|
|
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
|
-
"tsconfig": "0.0.0",
|
|
22
21
|
"eslint-config-custom-lib": "0.0.1",
|
|
23
|
-
"types": "0.0.1"
|
|
22
|
+
"types": "0.0.1",
|
|
23
|
+
"tsconfig": "0.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|