@livechat/developer-studio-api 2.1.1 → 2.1.2
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 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +28 -0
- package/dist/index.mjs +28 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -2177,6 +2177,7 @@ declare const api: {
|
|
|
2177
2177
|
key: string;
|
|
2178
2178
|
}[] | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2179
2179
|
addAccountSentryTokenEnv(siteId: string, token: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2180
|
+
removeAccountEnv(accountId: string | undefined, siteId: string, envKey: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2180
2181
|
};
|
|
2181
2182
|
site: {
|
|
2182
2183
|
getSites(authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite[]>;
|
|
@@ -2214,6 +2215,7 @@ declare const api: {
|
|
|
2214
2215
|
id: string;
|
|
2215
2216
|
key: string;
|
|
2216
2217
|
}[] | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2218
|
+
removeProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2217
2219
|
};
|
|
2218
2220
|
deploy: {
|
|
2219
2221
|
createDeploy(project: string, repoId: number, branch: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelDeploy>;
|
package/dist/index.d.ts
CHANGED
|
@@ -2177,6 +2177,7 @@ declare const api: {
|
|
|
2177
2177
|
key: string;
|
|
2178
2178
|
}[] | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2179
2179
|
addAccountSentryTokenEnv(siteId: string, token: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2180
|
+
removeAccountEnv(accountId: string | undefined, siteId: string, envKey: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2180
2181
|
};
|
|
2181
2182
|
site: {
|
|
2182
2183
|
getSites(authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite[]>;
|
|
@@ -2214,6 +2215,7 @@ declare const api: {
|
|
|
2214
2215
|
id: string;
|
|
2215
2216
|
key: string;
|
|
2216
2217
|
}[] | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2218
|
+
removeProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2217
2219
|
};
|
|
2218
2220
|
deploy: {
|
|
2219
2221
|
createDeploy(project: string, repoId: number, branch: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelDeploy>;
|
package/dist/index.js
CHANGED
|
@@ -823,6 +823,23 @@ var netlifyAccountApi = {
|
|
|
823
823
|
authorization
|
|
824
824
|
);
|
|
825
825
|
});
|
|
826
|
+
},
|
|
827
|
+
removeAccountEnv(accountId, siteId, envKey, authorization) {
|
|
828
|
+
return __async(this, null, function* () {
|
|
829
|
+
if (!accountId) {
|
|
830
|
+
accountId = yield this.getAccount(authorization);
|
|
831
|
+
}
|
|
832
|
+
if (!accountId) {
|
|
833
|
+
throw new Error("No account");
|
|
834
|
+
}
|
|
835
|
+
const response = yield netlifyClientInstance.delete(
|
|
836
|
+
`/accounts/${accountId}/env/${envKey}?site_id=${siteId}`,
|
|
837
|
+
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
838
|
+
ensureAuthorizationToken: true
|
|
839
|
+
}))
|
|
840
|
+
);
|
|
841
|
+
return response.data;
|
|
842
|
+
});
|
|
826
843
|
}
|
|
827
844
|
};
|
|
828
845
|
|
|
@@ -2034,6 +2051,17 @@ var vercelProjectApi = {
|
|
|
2034
2051
|
return createdEnv;
|
|
2035
2052
|
}
|
|
2036
2053
|
});
|
|
2054
|
+
},
|
|
2055
|
+
removeProjectEnv(projectId, envId, authorization) {
|
|
2056
|
+
return __async(this, null, function* () {
|
|
2057
|
+
const response = yield vercelClientInstance.delete(
|
|
2058
|
+
`/v9/projects/${projectId}/env/${envId}`,
|
|
2059
|
+
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
2060
|
+
ensureAuthorizationToken: true
|
|
2061
|
+
}))
|
|
2062
|
+
);
|
|
2063
|
+
return response.data;
|
|
2064
|
+
});
|
|
2037
2065
|
}
|
|
2038
2066
|
};
|
|
2039
2067
|
|
package/dist/index.mjs
CHANGED
|
@@ -735,6 +735,23 @@ var netlifyAccountApi = {
|
|
|
735
735
|
authorization
|
|
736
736
|
);
|
|
737
737
|
});
|
|
738
|
+
},
|
|
739
|
+
removeAccountEnv(accountId, siteId, envKey, authorization) {
|
|
740
|
+
return __async(this, null, function* () {
|
|
741
|
+
if (!accountId) {
|
|
742
|
+
accountId = yield this.getAccount(authorization);
|
|
743
|
+
}
|
|
744
|
+
if (!accountId) {
|
|
745
|
+
throw new Error("No account");
|
|
746
|
+
}
|
|
747
|
+
const response = yield netlifyClientInstance.delete(
|
|
748
|
+
`/accounts/${accountId}/env/${envKey}?site_id=${siteId}`,
|
|
749
|
+
getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
750
|
+
ensureAuthorizationToken: true
|
|
751
|
+
}))
|
|
752
|
+
);
|
|
753
|
+
return response.data;
|
|
754
|
+
});
|
|
738
755
|
}
|
|
739
756
|
};
|
|
740
757
|
|
|
@@ -1946,6 +1963,17 @@ var vercelProjectApi = {
|
|
|
1946
1963
|
return createdEnv;
|
|
1947
1964
|
}
|
|
1948
1965
|
});
|
|
1966
|
+
},
|
|
1967
|
+
removeProjectEnv(projectId, envId, authorization) {
|
|
1968
|
+
return __async(this, null, function* () {
|
|
1969
|
+
const response = yield vercelClientInstance.delete(
|
|
1970
|
+
`/v9/projects/${projectId}/env/${envId}`,
|
|
1971
|
+
getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
|
|
1972
|
+
ensureAuthorizationToken: true
|
|
1973
|
+
}))
|
|
1974
|
+
);
|
|
1975
|
+
return response.data;
|
|
1976
|
+
});
|
|
1949
1977
|
}
|
|
1950
1978
|
};
|
|
1951
1979
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
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
|
-
"types": "0.0.1",
|
|
22
21
|
"eslint-config-custom-lib": "0.0.1",
|
|
23
|
-
"tsconfig": "0.0.0"
|
|
22
|
+
"tsconfig": "0.0.0",
|
|
23
|
+
"types": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|