@rool-dev/extension 0.3.10-dev.65d6b10 → 0.3.10
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/dev/host-shell.js +16 -29
- package/dist/dev/host-shell.js.map +1 -1
- package/package.json +2 -2
package/dist/dev/host-shell.js
CHANGED
|
@@ -5697,10 +5697,10 @@ var GraphQLClient = class {
|
|
|
5697
5697
|
parentInteractionId: options.parentInteractionId
|
|
5698
5698
|
})).prompt;
|
|
5699
5699
|
}
|
|
5700
|
-
async
|
|
5700
|
+
async getAccount() {
|
|
5701
5701
|
return (await this.request(`
|
|
5702
|
-
query
|
|
5703
|
-
|
|
5702
|
+
query GetAccount {
|
|
5703
|
+
getAccount {
|
|
5704
5704
|
id
|
|
5705
5705
|
email
|
|
5706
5706
|
name
|
|
@@ -5714,26 +5714,14 @@ var GraphQLClient = class {
|
|
|
5714
5714
|
storage
|
|
5715
5715
|
}
|
|
5716
5716
|
}
|
|
5717
|
-
`)).
|
|
5717
|
+
`)).getAccount;
|
|
5718
5718
|
}
|
|
5719
|
-
async
|
|
5720
|
-
|
|
5721
|
-
mutation
|
|
5722
|
-
|
|
5723
|
-
id
|
|
5724
|
-
email
|
|
5725
|
-
name
|
|
5726
|
-
slug
|
|
5727
|
-
plan
|
|
5728
|
-
creditsBalance
|
|
5729
|
-
totalCreditsUsed
|
|
5730
|
-
createdAt
|
|
5731
|
-
lastActivity
|
|
5732
|
-
processedAt
|
|
5733
|
-
storage
|
|
5734
|
-
}
|
|
5719
|
+
async setSlug(slug) {
|
|
5720
|
+
await this.request(`
|
|
5721
|
+
mutation SetSlug($slug: String!) {
|
|
5722
|
+
setSlug(slug: $slug)
|
|
5735
5723
|
}
|
|
5736
|
-
`, {
|
|
5724
|
+
`, { slug });
|
|
5737
5725
|
}
|
|
5738
5726
|
async findExtensions(options) {
|
|
5739
5727
|
return (await this.request(`
|
|
@@ -8716,7 +8704,7 @@ var RoolClient = class extends EventEmitter {
|
|
|
8716
8704
|
* Returns the user's server-assigned id, email, plan, and credits.
|
|
8717
8705
|
*/
|
|
8718
8706
|
async getCurrentUser() {
|
|
8719
|
-
const user = await this.graphqlClient.
|
|
8707
|
+
const user = await this.graphqlClient.getAccount();
|
|
8720
8708
|
this._currentUser = user;
|
|
8721
8709
|
return user;
|
|
8722
8710
|
}
|
|
@@ -8727,14 +8715,13 @@ var RoolClient = class extends EventEmitter {
|
|
|
8727
8715
|
return this.graphqlClient.searchUser(email);
|
|
8728
8716
|
}
|
|
8729
8717
|
/**
|
|
8730
|
-
*
|
|
8731
|
-
* -
|
|
8732
|
-
*
|
|
8718
|
+
* Set the current user's slug (used in app publishing URLs).
|
|
8719
|
+
* Slug must be 3-32 characters, start with a letter, and contain only
|
|
8720
|
+
* lowercase letters, numbers, hyphens, and underscores.
|
|
8721
|
+
* Cannot be changed if the user has published apps.
|
|
8733
8722
|
*/
|
|
8734
|
-
async
|
|
8735
|
-
|
|
8736
|
-
this._currentUser = user;
|
|
8737
|
-
return user;
|
|
8723
|
+
async setSlug(slug) {
|
|
8724
|
+
return this.graphqlClient.setSlug(slug);
|
|
8738
8725
|
}
|
|
8739
8726
|
/**
|
|
8740
8727
|
* Publish an extension. The extension will be accessible at:
|