@livechat/developer-studio-api 2.0.11 → 2.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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -20
- package/dist/index.mjs +19 -20
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2144,7 +2144,7 @@ declare const api: {
|
|
|
2144
2144
|
title: string;
|
|
2145
2145
|
}[]>;
|
|
2146
2146
|
createSiteByInstallationId(name: string, repositoryFullName: string, target: AppRepositoryTarget, installationId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2147
|
-
createSiteByDeployKey(name: string, repositoryFullName: string, deployKeyId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2147
|
+
createSiteByDeployKey(name: string, repositoryFullName: string, target: AppRepositoryTarget, deployKeyId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2148
2148
|
removeSite(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2149
2149
|
triggerSiteBuild(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2150
2150
|
addGitHubInstallationToSite(siteId: string, installationId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2144,7 +2144,7 @@ declare const api: {
|
|
|
2144
2144
|
title: string;
|
|
2145
2145
|
}[]>;
|
|
2146
2146
|
createSiteByInstallationId(name: string, repositoryFullName: string, target: AppRepositoryTarget, installationId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2147
|
-
createSiteByDeployKey(name: string, repositoryFullName: string, deployKeyId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2147
|
+
createSiteByDeployKey(name: string, repositoryFullName: string, target: AppRepositoryTarget, deployKeyId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2148
2148
|
removeSite(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2149
2149
|
triggerSiteBuild(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2150
2150
|
addGitHubInstallationToSite(siteId: string, installationId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -967,13 +967,11 @@ var netlifySiteApi = {
|
|
|
967
967
|
createSiteByInstallationId(name, repositoryFullName, target, installationId, branch, authorization) {
|
|
968
968
|
return __async(this, null, function* () {
|
|
969
969
|
const config = target === "nextjs" ? {
|
|
970
|
-
|
|
971
|
-
package: [{ package: "@netlify/plugin-nextjs" }],
|
|
970
|
+
plugins: ["@netlify/plugin-nextjs"],
|
|
972
971
|
dir: ".next",
|
|
973
972
|
cmd: "npm run build"
|
|
974
973
|
} : {
|
|
975
|
-
|
|
976
|
-
package: [],
|
|
974
|
+
plugins: [],
|
|
977
975
|
dir: "dist",
|
|
978
976
|
cmd: "npm run build"
|
|
979
977
|
};
|
|
@@ -989,12 +987,12 @@ var netlifySiteApi = {
|
|
|
989
987
|
installation_id: installationId,
|
|
990
988
|
owner_type: "User",
|
|
991
989
|
env: {},
|
|
992
|
-
plugins: config.
|
|
990
|
+
plugins: config.plugins,
|
|
993
991
|
dir: config.dir,
|
|
994
992
|
cmd: config.cmd
|
|
995
993
|
},
|
|
996
994
|
default_hooks_data: {},
|
|
997
|
-
plugins: config.
|
|
995
|
+
plugins: config.plugins,
|
|
998
996
|
created_via: ""
|
|
999
997
|
},
|
|
1000
998
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -1005,8 +1003,17 @@ var netlifySiteApi = {
|
|
|
1005
1003
|
return response.data;
|
|
1006
1004
|
});
|
|
1007
1005
|
},
|
|
1008
|
-
createSiteByDeployKey(name, repositoryFullName, deployKeyId, branch, authorization) {
|
|
1006
|
+
createSiteByDeployKey(name, repositoryFullName, target, deployKeyId, branch, authorization) {
|
|
1009
1007
|
return __async(this, null, function* () {
|
|
1008
|
+
const config = target === "nextjs" ? {
|
|
1009
|
+
plugins: ["@netlify/plugin-nextjs"],
|
|
1010
|
+
dir: ".next",
|
|
1011
|
+
cmd: "npm run build"
|
|
1012
|
+
} : {
|
|
1013
|
+
plugins: [],
|
|
1014
|
+
dir: "dist",
|
|
1015
|
+
cmd: "npm run build"
|
|
1016
|
+
};
|
|
1010
1017
|
const response = yield netlifyClientInstance.post(
|
|
1011
1018
|
`/sites`,
|
|
1012
1019
|
{
|
|
@@ -1016,21 +1023,13 @@ var netlifySiteApi = {
|
|
|
1016
1023
|
branch,
|
|
1017
1024
|
repo: repositoryFullName,
|
|
1018
1025
|
deploy_key_id: deployKeyId,
|
|
1019
|
-
plugins: [
|
|
1020
|
-
{
|
|
1021
|
-
package: "@netlify/plugin-nextjs"
|
|
1022
|
-
}
|
|
1023
|
-
],
|
|
1024
|
-
dir: ".next",
|
|
1025
1026
|
env: {},
|
|
1026
|
-
|
|
1027
|
-
|
|
1027
|
+
private: true,
|
|
1028
|
+
plugins: config.plugins,
|
|
1029
|
+
dir: config.dir,
|
|
1030
|
+
cmd: config.cmd
|
|
1028
1031
|
},
|
|
1029
|
-
plugins:
|
|
1030
|
-
{
|
|
1031
|
-
package: "@netlify/plugin-nextjs"
|
|
1032
|
-
}
|
|
1033
|
-
],
|
|
1032
|
+
plugins: config.plugins,
|
|
1034
1033
|
created_via: ""
|
|
1035
1034
|
},
|
|
1036
1035
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
package/dist/index.mjs
CHANGED
|
@@ -883,13 +883,11 @@ var netlifySiteApi = {
|
|
|
883
883
|
createSiteByInstallationId(name, repositoryFullName, target, installationId, branch, authorization) {
|
|
884
884
|
return __async(this, null, function* () {
|
|
885
885
|
const config = target === "nextjs" ? {
|
|
886
|
-
|
|
887
|
-
package: [{ package: "@netlify/plugin-nextjs" }],
|
|
886
|
+
plugins: ["@netlify/plugin-nextjs"],
|
|
888
887
|
dir: ".next",
|
|
889
888
|
cmd: "npm run build"
|
|
890
889
|
} : {
|
|
891
|
-
|
|
892
|
-
package: [],
|
|
890
|
+
plugins: [],
|
|
893
891
|
dir: "dist",
|
|
894
892
|
cmd: "npm run build"
|
|
895
893
|
};
|
|
@@ -905,12 +903,12 @@ var netlifySiteApi = {
|
|
|
905
903
|
installation_id: installationId,
|
|
906
904
|
owner_type: "User",
|
|
907
905
|
env: {},
|
|
908
|
-
plugins: config.
|
|
906
|
+
plugins: config.plugins,
|
|
909
907
|
dir: config.dir,
|
|
910
908
|
cmd: config.cmd
|
|
911
909
|
},
|
|
912
910
|
default_hooks_data: {},
|
|
913
|
-
plugins: config.
|
|
911
|
+
plugins: config.plugins,
|
|
914
912
|
created_via: ""
|
|
915
913
|
},
|
|
916
914
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -921,8 +919,17 @@ var netlifySiteApi = {
|
|
|
921
919
|
return response.data;
|
|
922
920
|
});
|
|
923
921
|
},
|
|
924
|
-
createSiteByDeployKey(name, repositoryFullName, deployKeyId, branch, authorization) {
|
|
922
|
+
createSiteByDeployKey(name, repositoryFullName, target, deployKeyId, branch, authorization) {
|
|
925
923
|
return __async(this, null, function* () {
|
|
924
|
+
const config = target === "nextjs" ? {
|
|
925
|
+
plugins: ["@netlify/plugin-nextjs"],
|
|
926
|
+
dir: ".next",
|
|
927
|
+
cmd: "npm run build"
|
|
928
|
+
} : {
|
|
929
|
+
plugins: [],
|
|
930
|
+
dir: "dist",
|
|
931
|
+
cmd: "npm run build"
|
|
932
|
+
};
|
|
926
933
|
const response = yield netlifyClientInstance.post(
|
|
927
934
|
`/sites`,
|
|
928
935
|
{
|
|
@@ -932,21 +939,13 @@ var netlifySiteApi = {
|
|
|
932
939
|
branch,
|
|
933
940
|
repo: repositoryFullName,
|
|
934
941
|
deploy_key_id: deployKeyId,
|
|
935
|
-
plugins: [
|
|
936
|
-
{
|
|
937
|
-
package: "@netlify/plugin-nextjs"
|
|
938
|
-
}
|
|
939
|
-
],
|
|
940
|
-
dir: ".next",
|
|
941
942
|
env: {},
|
|
942
|
-
|
|
943
|
-
|
|
943
|
+
private: true,
|
|
944
|
+
plugins: config.plugins,
|
|
945
|
+
dir: config.dir,
|
|
946
|
+
cmd: config.cmd
|
|
944
947
|
},
|
|
945
|
-
plugins:
|
|
946
|
-
{
|
|
947
|
-
package: "@netlify/plugin-nextjs"
|
|
948
|
-
}
|
|
949
|
-
],
|
|
948
|
+
plugins: config.plugins,
|
|
950
949
|
created_via: ""
|
|
951
950
|
},
|
|
952
951
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
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.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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"config": "0.0.0",
|
|
21
|
-
"
|
|
21
|
+
"eslint-config-custom-lib": "0.0.1",
|
|
22
22
|
"types": "0.0.1",
|
|
23
|
-
"
|
|
23
|
+
"tsconfig": "0.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|