@phpsandbox/sdk 0.0.39 → 0.0.41
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 +29 -15
- package/dist/browser/phpsandbox-sdk.esm.js.map +2 -2
- package/dist/browser/phpsandbox-sdk.esm.min.js +2 -2
- package/dist/browser/phpsandbox-sdk.esm.min.js.map +3 -3
- package/dist/browser/phpsandbox-sdk.iife.js +29 -15
- package/dist/browser/phpsandbox-sdk.iife.js.map +2 -2
- package/dist/browser/phpsandbox-sdk.iife.min.js +2 -2
- package/dist/browser/phpsandbox-sdk.iife.min.js.map +3 -3
- package/dist/index.d.ts +30 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -335,8 +335,8 @@ var PHPSandbox = (() => {
|
|
|
335
335
|
NotebookInstance: () => NotebookInstance,
|
|
336
336
|
NotebookMail: () => NotebookMail,
|
|
337
337
|
NotebookMailApi: () => NotebookMailApi,
|
|
338
|
-
|
|
339
|
-
|
|
338
|
+
NotebookPreview: () => NotebookPreview,
|
|
339
|
+
NotebookPreviewApi: () => NotebookPreviewApi,
|
|
340
340
|
NotebookSecretApi: () => NotebookSecretApi,
|
|
341
341
|
NotebookSecrets: () => NotebookSecrets,
|
|
342
342
|
NotebookState: () => NotebookState,
|
|
@@ -5065,7 +5065,7 @@ var PHPSandbox = (() => {
|
|
|
5065
5065
|
constructor(client) {
|
|
5066
5066
|
this.client = client;
|
|
5067
5067
|
this.secrets = new NotebookSecretApi(client);
|
|
5068
|
-
this.
|
|
5068
|
+
this.preview = new NotebookPreviewApi(client);
|
|
5069
5069
|
this.mail = new NotebookMailApi(client);
|
|
5070
5070
|
}
|
|
5071
5071
|
async create(template, input = {}, init = true) {
|
|
@@ -5173,20 +5173,28 @@ var PHPSandbox = (() => {
|
|
|
5173
5173
|
await this.client.delete(`/notebook/${id}/secrets/${encodeURIComponent(name)}`);
|
|
5174
5174
|
}
|
|
5175
5175
|
};
|
|
5176
|
-
var
|
|
5176
|
+
var NotebookPreviewApi = class {
|
|
5177
5177
|
constructor(client) {
|
|
5178
5178
|
this.client = client;
|
|
5179
5179
|
}
|
|
5180
5180
|
async get(id) {
|
|
5181
|
-
const response = await this.client.get(`/notebook/${id}/preview
|
|
5181
|
+
const response = await this.client.get(`/notebook/${id}/preview`);
|
|
5182
5182
|
return response.data;
|
|
5183
5183
|
}
|
|
5184
|
-
async
|
|
5185
|
-
const response = await this.client.put(`/notebook/${id}/preview
|
|
5184
|
+
async setPassword(id, input) {
|
|
5185
|
+
const response = await this.client.put(`/notebook/${id}/preview`, input);
|
|
5186
5186
|
return response.data;
|
|
5187
5187
|
}
|
|
5188
|
-
async
|
|
5189
|
-
await this.client.delete(`/notebook/${id}/preview
|
|
5188
|
+
async disable(id) {
|
|
5189
|
+
await this.client.delete(`/notebook/${id}/preview`);
|
|
5190
|
+
}
|
|
5191
|
+
async createSession(id) {
|
|
5192
|
+
const response = await this.client.post(`/notebook/${id}/preview/session`);
|
|
5193
|
+
return response.data;
|
|
5194
|
+
}
|
|
5195
|
+
async createHandoff(id, input) {
|
|
5196
|
+
const response = await this.client.post(`/notebook/${id}/preview/handoff`, input);
|
|
5197
|
+
return response.data;
|
|
5190
5198
|
}
|
|
5191
5199
|
};
|
|
5192
5200
|
var NotebookMailApi = class {
|
|
@@ -5248,7 +5256,7 @@ var PHPSandbox = (() => {
|
|
|
5248
5256
|
this.git = new Git(this);
|
|
5249
5257
|
this.services = new Services(this);
|
|
5250
5258
|
this.secrets = new NotebookSecrets(client, this.data.id);
|
|
5251
|
-
this.
|
|
5259
|
+
this.preview = new NotebookPreview(client, this.data.id);
|
|
5252
5260
|
this.mail = new NotebookMail(client, this.data.id);
|
|
5253
5261
|
}
|
|
5254
5262
|
async ready() {
|
|
@@ -5426,19 +5434,25 @@ var PHPSandbox = (() => {
|
|
|
5426
5434
|
return this.client.notebook.secrets.delete(this.notebookId, name);
|
|
5427
5435
|
}
|
|
5428
5436
|
};
|
|
5429
|
-
var
|
|
5437
|
+
var NotebookPreview = class {
|
|
5430
5438
|
constructor(client, notebookId) {
|
|
5431
5439
|
this.client = client;
|
|
5432
5440
|
this.notebookId = notebookId;
|
|
5433
5441
|
}
|
|
5434
5442
|
get() {
|
|
5435
|
-
return this.client.notebook.
|
|
5443
|
+
return this.client.notebook.preview.get(this.notebookId);
|
|
5436
5444
|
}
|
|
5437
|
-
|
|
5438
|
-
return this.client.notebook.
|
|
5445
|
+
setPassword(input) {
|
|
5446
|
+
return this.client.notebook.preview.setPassword(this.notebookId, input);
|
|
5439
5447
|
}
|
|
5440
5448
|
disable() {
|
|
5441
|
-
return this.client.notebook.
|
|
5449
|
+
return this.client.notebook.preview.disable(this.notebookId);
|
|
5450
|
+
}
|
|
5451
|
+
createSession() {
|
|
5452
|
+
return this.client.notebook.preview.createSession(this.notebookId);
|
|
5453
|
+
}
|
|
5454
|
+
createHandoff(input) {
|
|
5455
|
+
return this.client.notebook.preview.createHandoff(this.notebookId, input);
|
|
5442
5456
|
}
|
|
5443
5457
|
};
|
|
5444
5458
|
var NotebookMail = class {
|