@livechat/developer-studio-api 2.0.11 → 2.0.13
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +28 -21
- package/dist/index.mjs +28 -21
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2143,8 +2143,8 @@ declare const api: {
|
|
|
2143
2143
|
id: string;
|
|
2144
2144
|
title: string;
|
|
2145
2145
|
}[]>;
|
|
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>;
|
|
2146
|
+
createSiteByInstallationId(name: string, repositoryFullName: string, target: AppRepositoryTarget | undefined, installationId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2147
|
+
createSiteByDeployKey(name: string, repositoryFullName: string, target: AppRepositoryTarget | undefined, 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
|
@@ -2143,8 +2143,8 @@ declare const api: {
|
|
|
2143
2143
|
id: string;
|
|
2144
2144
|
title: string;
|
|
2145
2145
|
}[]>;
|
|
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>;
|
|
2146
|
+
createSiteByInstallationId(name: string, repositoryFullName: string, target: AppRepositoryTarget | undefined, installationId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2147
|
+
createSiteByDeployKey(name: string, repositoryFullName: string, target: AppRepositoryTarget | undefined, 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,15 +967,17 @@ 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
|
-
} : {
|
|
975
|
-
|
|
976
|
-
package: [],
|
|
973
|
+
} : target === "node" ? {
|
|
974
|
+
plugins: [],
|
|
977
975
|
dir: "dist",
|
|
978
976
|
cmd: "npm run build"
|
|
977
|
+
} : {
|
|
978
|
+
plugin: [],
|
|
979
|
+
dir: ".",
|
|
980
|
+
cmd: ""
|
|
979
981
|
};
|
|
980
982
|
const response = yield netlifyClientInstance.post(
|
|
981
983
|
`/sites`,
|
|
@@ -989,12 +991,12 @@ var netlifySiteApi = {
|
|
|
989
991
|
installation_id: installationId,
|
|
990
992
|
owner_type: "User",
|
|
991
993
|
env: {},
|
|
992
|
-
plugins: config.
|
|
994
|
+
plugins: config.plugins,
|
|
993
995
|
dir: config.dir,
|
|
994
996
|
cmd: config.cmd
|
|
995
997
|
},
|
|
996
998
|
default_hooks_data: {},
|
|
997
|
-
plugins: config.
|
|
999
|
+
plugins: config.plugins,
|
|
998
1000
|
created_via: ""
|
|
999
1001
|
},
|
|
1000
1002
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -1005,8 +1007,21 @@ var netlifySiteApi = {
|
|
|
1005
1007
|
return response.data;
|
|
1006
1008
|
});
|
|
1007
1009
|
},
|
|
1008
|
-
createSiteByDeployKey(name, repositoryFullName, deployKeyId, branch, authorization) {
|
|
1010
|
+
createSiteByDeployKey(name, repositoryFullName, target, deployKeyId, branch, authorization) {
|
|
1009
1011
|
return __async(this, null, function* () {
|
|
1012
|
+
const config = target === "nextjs" ? {
|
|
1013
|
+
plugins: ["@netlify/plugin-nextjs"],
|
|
1014
|
+
dir: ".next",
|
|
1015
|
+
cmd: "npm run build"
|
|
1016
|
+
} : target === "node" ? {
|
|
1017
|
+
plugins: [],
|
|
1018
|
+
dir: "dist",
|
|
1019
|
+
cmd: "npm run build"
|
|
1020
|
+
} : {
|
|
1021
|
+
plugin: [],
|
|
1022
|
+
dir: ".",
|
|
1023
|
+
cmd: ""
|
|
1024
|
+
};
|
|
1010
1025
|
const response = yield netlifyClientInstance.post(
|
|
1011
1026
|
`/sites`,
|
|
1012
1027
|
{
|
|
@@ -1016,21 +1031,13 @@ var netlifySiteApi = {
|
|
|
1016
1031
|
branch,
|
|
1017
1032
|
repo: repositoryFullName,
|
|
1018
1033
|
deploy_key_id: deployKeyId,
|
|
1019
|
-
plugins: [
|
|
1020
|
-
{
|
|
1021
|
-
package: "@netlify/plugin-nextjs"
|
|
1022
|
-
}
|
|
1023
|
-
],
|
|
1024
|
-
dir: ".next",
|
|
1025
1034
|
env: {},
|
|
1026
|
-
|
|
1027
|
-
|
|
1035
|
+
private: true,
|
|
1036
|
+
plugins: config.plugins,
|
|
1037
|
+
dir: config.dir,
|
|
1038
|
+
cmd: config.cmd
|
|
1028
1039
|
},
|
|
1029
|
-
plugins:
|
|
1030
|
-
{
|
|
1031
|
-
package: "@netlify/plugin-nextjs"
|
|
1032
|
-
}
|
|
1033
|
-
],
|
|
1040
|
+
plugins: config.plugins,
|
|
1034
1041
|
created_via: ""
|
|
1035
1042
|
},
|
|
1036
1043
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
package/dist/index.mjs
CHANGED
|
@@ -883,15 +883,17 @@ 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
|
-
} : {
|
|
891
|
-
|
|
892
|
-
package: [],
|
|
889
|
+
} : target === "node" ? {
|
|
890
|
+
plugins: [],
|
|
893
891
|
dir: "dist",
|
|
894
892
|
cmd: "npm run build"
|
|
893
|
+
} : {
|
|
894
|
+
plugin: [],
|
|
895
|
+
dir: ".",
|
|
896
|
+
cmd: ""
|
|
895
897
|
};
|
|
896
898
|
const response = yield netlifyClientInstance.post(
|
|
897
899
|
`/sites`,
|
|
@@ -905,12 +907,12 @@ var netlifySiteApi = {
|
|
|
905
907
|
installation_id: installationId,
|
|
906
908
|
owner_type: "User",
|
|
907
909
|
env: {},
|
|
908
|
-
plugins: config.
|
|
910
|
+
plugins: config.plugins,
|
|
909
911
|
dir: config.dir,
|
|
910
912
|
cmd: config.cmd
|
|
911
913
|
},
|
|
912
914
|
default_hooks_data: {},
|
|
913
|
-
plugins: config.
|
|
915
|
+
plugins: config.plugins,
|
|
914
916
|
created_via: ""
|
|
915
917
|
},
|
|
916
918
|
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
@@ -921,8 +923,21 @@ var netlifySiteApi = {
|
|
|
921
923
|
return response.data;
|
|
922
924
|
});
|
|
923
925
|
},
|
|
924
|
-
createSiteByDeployKey(name, repositoryFullName, deployKeyId, branch, authorization) {
|
|
926
|
+
createSiteByDeployKey(name, repositoryFullName, target, deployKeyId, branch, authorization) {
|
|
925
927
|
return __async(this, null, function* () {
|
|
928
|
+
const config = target === "nextjs" ? {
|
|
929
|
+
plugins: ["@netlify/plugin-nextjs"],
|
|
930
|
+
dir: ".next",
|
|
931
|
+
cmd: "npm run build"
|
|
932
|
+
} : target === "node" ? {
|
|
933
|
+
plugins: [],
|
|
934
|
+
dir: "dist",
|
|
935
|
+
cmd: "npm run build"
|
|
936
|
+
} : {
|
|
937
|
+
plugin: [],
|
|
938
|
+
dir: ".",
|
|
939
|
+
cmd: ""
|
|
940
|
+
};
|
|
926
941
|
const response = yield netlifyClientInstance.post(
|
|
927
942
|
`/sites`,
|
|
928
943
|
{
|
|
@@ -932,21 +947,13 @@ var netlifySiteApi = {
|
|
|
932
947
|
branch,
|
|
933
948
|
repo: repositoryFullName,
|
|
934
949
|
deploy_key_id: deployKeyId,
|
|
935
|
-
plugins: [
|
|
936
|
-
{
|
|
937
|
-
package: "@netlify/plugin-nextjs"
|
|
938
|
-
}
|
|
939
|
-
],
|
|
940
|
-
dir: ".next",
|
|
941
950
|
env: {},
|
|
942
|
-
|
|
943
|
-
|
|
951
|
+
private: true,
|
|
952
|
+
plugins: config.plugins,
|
|
953
|
+
dir: config.dir,
|
|
954
|
+
cmd: config.cmd
|
|
944
955
|
},
|
|
945
|
-
plugins:
|
|
946
|
-
{
|
|
947
|
-
package: "@netlify/plugin-nextjs"
|
|
948
|
-
}
|
|
949
|
-
],
|
|
956
|
+
plugins: config.plugins,
|
|
950
957
|
created_via: ""
|
|
951
958
|
},
|
|
952
959
|
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.13",
|
|
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
|
+
"eslint-config-custom-lib": "0.0.1",
|
|
21
22
|
"tsconfig": "0.0.0",
|
|
22
|
-
"types": "0.0.1"
|
|
23
|
-
"eslint-config-custom-lib": "0.0.1"
|
|
23
|
+
"types": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|