@phpsandbox/sdk 0.0.63 → 0.0.64
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/browser/phpsandbox-sdk.esm.js +9 -8
- package/dist/browser/phpsandbox-sdk.esm.min.js +7 -7
- package/dist/browser/phpsandbox-sdk.iife.js +9 -8
- package/dist/browser/phpsandbox-sdk.iife.min.js +7 -7
- package/dist/index.d.ts +13 -2
- package/dist/index.js +9 -8
- package/examples/deploy-cloudflare-container.ts +2 -1
- package/examples/deploy-laravel-cloud.ts +2 -1
- package/examples/deploy-ssh-agent.ts +2 -1
- package/examples/deployment-provider-label.ts +11 -0
- package/examples/laravel-load-test.ts +2 -8
- package/package.json +1 -1
|
@@ -20019,8 +20019,9 @@ var NotebookPreviewApi = class {
|
|
|
20019
20019
|
constructor(client) {
|
|
20020
20020
|
this.client = client;
|
|
20021
20021
|
}
|
|
20022
|
-
async get(id) {
|
|
20023
|
-
const
|
|
20022
|
+
async get(id, url2) {
|
|
20023
|
+
const query = url2 === void 0 ? "" : `?${new URLSearchParams({ url: url2 }).toString()}`;
|
|
20024
|
+
const response = await this.client.get(`/notebook/${id}/preview${query}`);
|
|
20024
20025
|
return response.data;
|
|
20025
20026
|
}
|
|
20026
20027
|
async setPassword(id, input) {
|
|
@@ -20030,8 +20031,8 @@ var NotebookPreviewApi = class {
|
|
|
20030
20031
|
async disable(id) {
|
|
20031
20032
|
await this.client.delete(`/notebook/${id}/preview`);
|
|
20032
20033
|
}
|
|
20033
|
-
async createSession(id) {
|
|
20034
|
-
const response = await this.client.post(`/notebook/${id}/preview/session
|
|
20034
|
+
async createSession(id, input) {
|
|
20035
|
+
const response = await this.client.post(`/notebook/${id}/preview/session`, input);
|
|
20035
20036
|
return response.data;
|
|
20036
20037
|
}
|
|
20037
20038
|
async createHandoff(id, input) {
|
|
@@ -20310,8 +20311,8 @@ var NotebookPreview = class {
|
|
|
20310
20311
|
this.client = client;
|
|
20311
20312
|
this.notebookId = notebookId;
|
|
20312
20313
|
}
|
|
20313
|
-
get() {
|
|
20314
|
-
return this.client.notebook.preview.get(this.notebookId);
|
|
20314
|
+
get(url2) {
|
|
20315
|
+
return this.client.notebook.preview.get(this.notebookId, url2);
|
|
20315
20316
|
}
|
|
20316
20317
|
setPassword(input) {
|
|
20317
20318
|
return this.client.notebook.preview.setPassword(this.notebookId, input);
|
|
@@ -20319,8 +20320,8 @@ var NotebookPreview = class {
|
|
|
20319
20320
|
disable() {
|
|
20320
20321
|
return this.client.notebook.preview.disable(this.notebookId);
|
|
20321
20322
|
}
|
|
20322
|
-
createSession() {
|
|
20323
|
-
return this.client.notebook.preview.createSession(this.notebookId);
|
|
20323
|
+
createSession(input) {
|
|
20324
|
+
return this.client.notebook.preview.createSession(this.notebookId, input);
|
|
20324
20325
|
}
|
|
20325
20326
|
createHandoff(input) {
|
|
20326
20327
|
return this.client.notebook.preview.createHandoff(this.notebookId, input);
|