@livechat/developer-studio-api 1.0.10 → 1.0.12
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 +10 -7
- package/dist/index.d.ts +10 -7
- package/dist/index.js +6 -6
- package/dist/index.mjs +6 -6
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -781,18 +781,20 @@ type AppRepository = ({
|
|
|
781
781
|
type LinkAppRepositoryGitHubData = {
|
|
782
782
|
type: "new";
|
|
783
783
|
name?: string;
|
|
784
|
-
template
|
|
784
|
+
template?: string;
|
|
785
785
|
} | {
|
|
786
786
|
type: "existing";
|
|
787
787
|
fullName: string;
|
|
788
788
|
branch: string;
|
|
789
789
|
};
|
|
790
790
|
type LinkAppRepositoryGitLabData = {};
|
|
791
|
-
type LinkAppRepositoryData =
|
|
791
|
+
type LinkAppRepositoryData = {
|
|
792
|
+
target: AppRepositoryTarget | undefined;
|
|
793
|
+
} & (({
|
|
792
794
|
provider: "github";
|
|
793
795
|
} & LinkAppRepositoryGitHubData) | ({
|
|
794
796
|
provider: "gitlab";
|
|
795
|
-
} & LinkAppRepositoryGitLabData);
|
|
797
|
+
} & LinkAppRepositoryGitLabData));
|
|
796
798
|
type LinkAppRepositoryPayload = {
|
|
797
799
|
appId: string;
|
|
798
800
|
appName: string;
|
|
@@ -1272,7 +1274,7 @@ interface UpdateApplicationIconPayload {
|
|
|
1272
1274
|
}
|
|
1273
1275
|
|
|
1274
1276
|
type AppRepositoryProvider = "github" | "gitlab";
|
|
1275
|
-
type
|
|
1277
|
+
type AppRepositoryTarget = "node";
|
|
1276
1278
|
type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
|
|
1277
1279
|
type AppDeploymentMode = "local" | "provider";
|
|
1278
1280
|
type AppLoggerProvider = "sentry" | "amplitude";
|
|
@@ -1280,6 +1282,7 @@ type AppStorageProvider = "vercel" | "planetscale";
|
|
|
1280
1282
|
interface AppGitHubRepositoryConfig {
|
|
1281
1283
|
name: string;
|
|
1282
1284
|
branch: string;
|
|
1285
|
+
target: AppRepositoryTarget | undefined;
|
|
1283
1286
|
}
|
|
1284
1287
|
interface AppNetlifyDeploymentConfig {
|
|
1285
1288
|
url: string;
|
|
@@ -1820,7 +1823,7 @@ declare const api: {
|
|
|
1820
1823
|
};
|
|
1821
1824
|
deployment: {
|
|
1822
1825
|
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppDeployment>;
|
|
1823
|
-
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<
|
|
1826
|
+
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<LinkAppDeploymentResult>;
|
|
1824
1827
|
unlink(payload: UnlinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1825
1828
|
installSentry(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1826
1829
|
};
|
|
@@ -2088,7 +2091,7 @@ declare const api: {
|
|
|
2088
2091
|
getRepositoryBranches(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch[]>;
|
|
2089
2092
|
getRepositoryBranch(repositoryName: string, repositoryBranch: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch>;
|
|
2090
2093
|
getRepositorySeed(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed | undefined>;
|
|
2091
|
-
createRepository(name: string, hasInstallation: boolean,
|
|
2094
|
+
createRepository(name: string, hasInstallation: boolean, template?: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|
|
2092
2095
|
seedRepository(repositoryName: string, appId: string, clientId: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed>;
|
|
2093
2096
|
deleteRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
|
|
2094
2097
|
createRepositoryDeployKey(repositoryName: string, deployKey: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
@@ -2286,4 +2289,4 @@ declare const serializerBase64: {
|
|
|
2286
2289
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2287
2290
|
};
|
|
2288
2291
|
|
|
2289
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider,
|
|
2292
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, 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, 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, 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, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
package/dist/index.d.ts
CHANGED
|
@@ -781,18 +781,20 @@ type AppRepository = ({
|
|
|
781
781
|
type LinkAppRepositoryGitHubData = {
|
|
782
782
|
type: "new";
|
|
783
783
|
name?: string;
|
|
784
|
-
template
|
|
784
|
+
template?: string;
|
|
785
785
|
} | {
|
|
786
786
|
type: "existing";
|
|
787
787
|
fullName: string;
|
|
788
788
|
branch: string;
|
|
789
789
|
};
|
|
790
790
|
type LinkAppRepositoryGitLabData = {};
|
|
791
|
-
type LinkAppRepositoryData =
|
|
791
|
+
type LinkAppRepositoryData = {
|
|
792
|
+
target: AppRepositoryTarget | undefined;
|
|
793
|
+
} & (({
|
|
792
794
|
provider: "github";
|
|
793
795
|
} & LinkAppRepositoryGitHubData) | ({
|
|
794
796
|
provider: "gitlab";
|
|
795
|
-
} & LinkAppRepositoryGitLabData);
|
|
797
|
+
} & LinkAppRepositoryGitLabData));
|
|
796
798
|
type LinkAppRepositoryPayload = {
|
|
797
799
|
appId: string;
|
|
798
800
|
appName: string;
|
|
@@ -1272,7 +1274,7 @@ interface UpdateApplicationIconPayload {
|
|
|
1272
1274
|
}
|
|
1273
1275
|
|
|
1274
1276
|
type AppRepositoryProvider = "github" | "gitlab";
|
|
1275
|
-
type
|
|
1277
|
+
type AppRepositoryTarget = "node";
|
|
1276
1278
|
type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
|
|
1277
1279
|
type AppDeploymentMode = "local" | "provider";
|
|
1278
1280
|
type AppLoggerProvider = "sentry" | "amplitude";
|
|
@@ -1280,6 +1282,7 @@ type AppStorageProvider = "vercel" | "planetscale";
|
|
|
1280
1282
|
interface AppGitHubRepositoryConfig {
|
|
1281
1283
|
name: string;
|
|
1282
1284
|
branch: string;
|
|
1285
|
+
target: AppRepositoryTarget | undefined;
|
|
1283
1286
|
}
|
|
1284
1287
|
interface AppNetlifyDeploymentConfig {
|
|
1285
1288
|
url: string;
|
|
@@ -1820,7 +1823,7 @@ declare const api: {
|
|
|
1820
1823
|
};
|
|
1821
1824
|
deployment: {
|
|
1822
1825
|
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppDeployment>;
|
|
1823
|
-
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<
|
|
1826
|
+
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<LinkAppDeploymentResult>;
|
|
1824
1827
|
unlink(payload: UnlinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1825
1828
|
installSentry(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1826
1829
|
};
|
|
@@ -2088,7 +2091,7 @@ declare const api: {
|
|
|
2088
2091
|
getRepositoryBranches(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch[]>;
|
|
2089
2092
|
getRepositoryBranch(repositoryName: string, repositoryBranch: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch>;
|
|
2090
2093
|
getRepositorySeed(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed | undefined>;
|
|
2091
|
-
createRepository(name: string, hasInstallation: boolean,
|
|
2094
|
+
createRepository(name: string, hasInstallation: boolean, template?: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|
|
2092
2095
|
seedRepository(repositoryName: string, appId: string, clientId: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed>;
|
|
2093
2096
|
deleteRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
|
|
2094
2097
|
createRepositoryDeployKey(repositoryName: string, deployKey: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
@@ -2286,4 +2289,4 @@ declare const serializerBase64: {
|
|
|
2286
2289
|
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2287
2290
|
};
|
|
2288
2291
|
|
|
2289
|
-
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider,
|
|
2292
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, 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, 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, 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, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|
package/dist/index.js
CHANGED
|
@@ -382,15 +382,14 @@ var gitHubRepositoryApi = {
|
|
|
382
382
|
return data;
|
|
383
383
|
});
|
|
384
384
|
},
|
|
385
|
-
createRepository(name, hasInstallation,
|
|
385
|
+
createRepository(name, hasInstallation, template, authorization) {
|
|
386
386
|
return __async(this, null, function* () {
|
|
387
387
|
var _a, _b, _c, _d;
|
|
388
|
-
|
|
389
|
-
if (fullTemplateName || !hasInstallation) {
|
|
388
|
+
if (template || !hasInstallation) {
|
|
390
389
|
let repository;
|
|
391
|
-
if (
|
|
390
|
+
if (template) {
|
|
392
391
|
const response2 = yield githubClientInstance.post(
|
|
393
|
-
`/repos/${
|
|
392
|
+
`/repos/${template}/generate`,
|
|
394
393
|
{
|
|
395
394
|
name,
|
|
396
395
|
description: name,
|
|
@@ -4549,7 +4548,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
4549
4548
|
},
|
|
4550
4549
|
link(payload, authorization) {
|
|
4551
4550
|
return __async(this, null, function* () {
|
|
4552
|
-
|
|
4551
|
+
const response = yield platformAdapterClientInstance.post(
|
|
4553
4552
|
`/console/app/${payload.appId}/blocks/deployment/link`,
|
|
4554
4553
|
payload,
|
|
4555
4554
|
getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -4560,6 +4559,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
4560
4559
|
}
|
|
4561
4560
|
}))
|
|
4562
4561
|
);
|
|
4562
|
+
return response.data;
|
|
4563
4563
|
});
|
|
4564
4564
|
},
|
|
4565
4565
|
unlink(payload, authorization) {
|
package/dist/index.mjs
CHANGED
|
@@ -298,15 +298,14 @@ var gitHubRepositoryApi = {
|
|
|
298
298
|
return data;
|
|
299
299
|
});
|
|
300
300
|
},
|
|
301
|
-
createRepository(name, hasInstallation,
|
|
301
|
+
createRepository(name, hasInstallation, template, authorization) {
|
|
302
302
|
return __async(this, null, function* () {
|
|
303
303
|
var _a, _b, _c, _d;
|
|
304
|
-
|
|
305
|
-
if (fullTemplateName || !hasInstallation) {
|
|
304
|
+
if (template || !hasInstallation) {
|
|
306
305
|
let repository;
|
|
307
|
-
if (
|
|
306
|
+
if (template) {
|
|
308
307
|
const response2 = yield githubClientInstance.post(
|
|
309
|
-
`/repos/${
|
|
308
|
+
`/repos/${template}/generate`,
|
|
310
309
|
{
|
|
311
310
|
name,
|
|
312
311
|
description: name,
|
|
@@ -4465,7 +4464,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
4465
4464
|
},
|
|
4466
4465
|
link(payload, authorization) {
|
|
4467
4466
|
return __async(this, null, function* () {
|
|
4468
|
-
|
|
4467
|
+
const response = yield platformAdapterClientInstance.post(
|
|
4469
4468
|
`/console/app/${payload.appId}/blocks/deployment/link`,
|
|
4470
4469
|
payload,
|
|
4471
4470
|
getPlatformAdapterClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -4476,6 +4475,7 @@ var platformAdapterAppDeploymentApi = {
|
|
|
4476
4475
|
}
|
|
4477
4476
|
}))
|
|
4478
4477
|
);
|
|
4478
|
+
return response.data;
|
|
4479
4479
|
});
|
|
4480
4480
|
},
|
|
4481
4481
|
unlink(payload, authorization) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
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,10 +17,10 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
+
"config": "0.0.0",
|
|
20
21
|
"eslint-config-custom-lib": "0.0.1",
|
|
21
22
|
"tsconfig": "0.0.0",
|
|
22
|
-
"types": "0.0.1"
|
|
23
|
-
"config": "0.0.0"
|
|
23
|
+
"types": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|