@livechat/developer-studio-api 2.1.1 → 2.1.3
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 +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +28 -0
- package/dist/index.mjs +28 -0
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -211,6 +211,10 @@ interface PlanetScaleOrganization {
|
|
|
211
211
|
id: string;
|
|
212
212
|
type: string;
|
|
213
213
|
name: string;
|
|
214
|
+
free_databases_remaining: number;
|
|
215
|
+
has_card: boolean;
|
|
216
|
+
payment_info_required: boolean;
|
|
217
|
+
valid_billing_info: boolean;
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
type GetPlanetScaleOrganizationsResult = PlanetScalePaginatedResult & {
|
|
@@ -2177,6 +2181,7 @@ declare const api: {
|
|
|
2177
2181
|
key: string;
|
|
2178
2182
|
}[] | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2179
2183
|
addAccountSentryTokenEnv(siteId: string, token: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2184
|
+
removeAccountEnv(accountId: string | undefined, siteId: string, envKey: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2180
2185
|
};
|
|
2181
2186
|
site: {
|
|
2182
2187
|
getSites(authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite[]>;
|
|
@@ -2214,6 +2219,7 @@ declare const api: {
|
|
|
2214
2219
|
id: string;
|
|
2215
2220
|
key: string;
|
|
2216
2221
|
}[] | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2222
|
+
removeProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2217
2223
|
};
|
|
2218
2224
|
deploy: {
|
|
2219
2225
|
createDeploy(project: string, repoId: number, branch: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelDeploy>;
|
package/dist/index.d.ts
CHANGED
|
@@ -211,6 +211,10 @@ interface PlanetScaleOrganization {
|
|
|
211
211
|
id: string;
|
|
212
212
|
type: string;
|
|
213
213
|
name: string;
|
|
214
|
+
free_databases_remaining: number;
|
|
215
|
+
has_card: boolean;
|
|
216
|
+
payment_info_required: boolean;
|
|
217
|
+
valid_billing_info: boolean;
|
|
214
218
|
}
|
|
215
219
|
|
|
216
220
|
type GetPlanetScaleOrganizationsResult = PlanetScalePaginatedResult & {
|
|
@@ -2177,6 +2181,7 @@ declare const api: {
|
|
|
2177
2181
|
key: string;
|
|
2178
2182
|
}[] | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2179
2183
|
addAccountSentryTokenEnv(siteId: string, token: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2184
|
+
removeAccountEnv(accountId: string | undefined, siteId: string, envKey: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2180
2185
|
};
|
|
2181
2186
|
site: {
|
|
2182
2187
|
getSites(authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite[]>;
|
|
@@ -2214,6 +2219,7 @@ declare const api: {
|
|
|
2214
2219
|
id: string;
|
|
2215
2220
|
key: string;
|
|
2216
2221
|
}[] | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2222
|
+
removeProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2217
2223
|
};
|
|
2218
2224
|
deploy: {
|
|
2219
2225
|
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.3",
|
|
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,9 +17,9 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"config": "0.0.0",
|
|
21
|
-
"types": "0.0.1",
|
|
22
20
|
"eslint-config-custom-lib": "0.0.1",
|
|
21
|
+
"types": "0.0.1",
|
|
22
|
+
"config": "0.0.0",
|
|
23
23
|
"tsconfig": "0.0.0"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|