@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
|
@@ -5016,7 +5016,7 @@ var NotebookApi = class {
|
|
|
5016
5016
|
constructor(client) {
|
|
5017
5017
|
this.client = client;
|
|
5018
5018
|
this.secrets = new NotebookSecretApi(client);
|
|
5019
|
-
this.
|
|
5019
|
+
this.preview = new NotebookPreviewApi(client);
|
|
5020
5020
|
this.mail = new NotebookMailApi(client);
|
|
5021
5021
|
}
|
|
5022
5022
|
async create(template, input = {}, init = true) {
|
|
@@ -5124,20 +5124,28 @@ var NotebookSecretApi = class {
|
|
|
5124
5124
|
await this.client.delete(`/notebook/${id}/secrets/${encodeURIComponent(name)}`);
|
|
5125
5125
|
}
|
|
5126
5126
|
};
|
|
5127
|
-
var
|
|
5127
|
+
var NotebookPreviewApi = class {
|
|
5128
5128
|
constructor(client) {
|
|
5129
5129
|
this.client = client;
|
|
5130
5130
|
}
|
|
5131
5131
|
async get(id) {
|
|
5132
|
-
const response = await this.client.get(`/notebook/${id}/preview
|
|
5132
|
+
const response = await this.client.get(`/notebook/${id}/preview`);
|
|
5133
5133
|
return response.data;
|
|
5134
5134
|
}
|
|
5135
|
-
async
|
|
5136
|
-
const response = await this.client.put(`/notebook/${id}/preview
|
|
5135
|
+
async setPassword(id, input) {
|
|
5136
|
+
const response = await this.client.put(`/notebook/${id}/preview`, input);
|
|
5137
5137
|
return response.data;
|
|
5138
5138
|
}
|
|
5139
|
-
async
|
|
5140
|
-
await this.client.delete(`/notebook/${id}/preview
|
|
5139
|
+
async disable(id) {
|
|
5140
|
+
await this.client.delete(`/notebook/${id}/preview`);
|
|
5141
|
+
}
|
|
5142
|
+
async createSession(id) {
|
|
5143
|
+
const response = await this.client.post(`/notebook/${id}/preview/session`);
|
|
5144
|
+
return response.data;
|
|
5145
|
+
}
|
|
5146
|
+
async createHandoff(id, input) {
|
|
5147
|
+
const response = await this.client.post(`/notebook/${id}/preview/handoff`, input);
|
|
5148
|
+
return response.data;
|
|
5141
5149
|
}
|
|
5142
5150
|
};
|
|
5143
5151
|
var NotebookMailApi = class {
|
|
@@ -5199,7 +5207,7 @@ var NotebookInstance = class {
|
|
|
5199
5207
|
this.git = new Git(this);
|
|
5200
5208
|
this.services = new Services(this);
|
|
5201
5209
|
this.secrets = new NotebookSecrets(client, this.data.id);
|
|
5202
|
-
this.
|
|
5210
|
+
this.preview = new NotebookPreview(client, this.data.id);
|
|
5203
5211
|
this.mail = new NotebookMail(client, this.data.id);
|
|
5204
5212
|
}
|
|
5205
5213
|
async ready() {
|
|
@@ -5377,19 +5385,25 @@ var NotebookSecrets = class {
|
|
|
5377
5385
|
return this.client.notebook.secrets.delete(this.notebookId, name);
|
|
5378
5386
|
}
|
|
5379
5387
|
};
|
|
5380
|
-
var
|
|
5388
|
+
var NotebookPreview = class {
|
|
5381
5389
|
constructor(client, notebookId) {
|
|
5382
5390
|
this.client = client;
|
|
5383
5391
|
this.notebookId = notebookId;
|
|
5384
5392
|
}
|
|
5385
5393
|
get() {
|
|
5386
|
-
return this.client.notebook.
|
|
5394
|
+
return this.client.notebook.preview.get(this.notebookId);
|
|
5387
5395
|
}
|
|
5388
|
-
|
|
5389
|
-
return this.client.notebook.
|
|
5396
|
+
setPassword(input) {
|
|
5397
|
+
return this.client.notebook.preview.setPassword(this.notebookId, input);
|
|
5390
5398
|
}
|
|
5391
5399
|
disable() {
|
|
5392
|
-
return this.client.notebook.
|
|
5400
|
+
return this.client.notebook.preview.disable(this.notebookId);
|
|
5401
|
+
}
|
|
5402
|
+
createSession() {
|
|
5403
|
+
return this.client.notebook.preview.createSession(this.notebookId);
|
|
5404
|
+
}
|
|
5405
|
+
createHandoff(input) {
|
|
5406
|
+
return this.client.notebook.preview.createHandoff(this.notebookId, input);
|
|
5393
5407
|
}
|
|
5394
5408
|
};
|
|
5395
5409
|
var NotebookMail = class {
|
|
@@ -5447,8 +5461,8 @@ export {
|
|
|
5447
5461
|
NotebookInstance,
|
|
5448
5462
|
NotebookMail,
|
|
5449
5463
|
NotebookMailApi,
|
|
5450
|
-
|
|
5451
|
-
|
|
5464
|
+
NotebookPreview,
|
|
5465
|
+
NotebookPreviewApi,
|
|
5452
5466
|
NotebookSecretApi,
|
|
5453
5467
|
NotebookSecrets,
|
|
5454
5468
|
NotebookState,
|