shred-api-client 1.1.18 → 1.1.20
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.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/model/Tenant.schema.d.ts +3 -1
- package/dist/namespace.d.ts +5 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Role = void 0;
|
|
17
18
|
const Api_1 = require("./model/Api");
|
|
19
|
+
const User_schema_1 = require("./model/User.schema");
|
|
20
|
+
Object.defineProperty(exports, "Role", { enumerable: true, get: function () { return User_schema_1.Role; } });
|
|
18
21
|
exports.default = Api_1.ShredAPI;
|
|
19
22
|
__exportStar(require("./namespace"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Subscription } from "./Subscription.schema";
|
|
1
2
|
type Preferences = {
|
|
2
3
|
iconUrl: string;
|
|
3
4
|
logoUrl: string;
|
|
@@ -10,9 +11,10 @@ type Tenant = {
|
|
|
10
11
|
isActive: boolean;
|
|
11
12
|
isSubscriptionActive: boolean;
|
|
12
13
|
preferences: Preferences;
|
|
13
|
-
inviteCode
|
|
14
|
+
inviteCode: string;
|
|
14
15
|
totalUsersAllowed: number;
|
|
15
16
|
currentUsersSize?: number;
|
|
16
17
|
allowedProducts?: string[];
|
|
18
|
+
subscription?: Subscription;
|
|
17
19
|
};
|
|
18
20
|
export { Tenant };
|
package/dist/namespace.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { Product as TProduct, Subscription as TSubscription } from "./model/Subscription.schema";
|
|
2
2
|
import { User as TUser, Role as TRole } from "./model/User.schema";
|
|
3
|
+
import { Tenant as TTenant } from "./model/Tenant.schema";
|
|
3
4
|
import { Prompt as TPrompt, Script as TScript, Category as TCategory } from "./model/Prompt.schema";
|
|
5
|
+
export declare namespace Permissions {
|
|
6
|
+
type Role = TRole;
|
|
7
|
+
}
|
|
4
8
|
export declare namespace Shred {
|
|
9
|
+
type Tenant = TTenant;
|
|
5
10
|
type Product = TProduct;
|
|
6
11
|
type Subscription = TSubscription;
|
|
7
12
|
type User = TUser;
|
|
8
|
-
type Role = TRole;
|
|
9
13
|
namespace PromptTypes {
|
|
10
14
|
type Prompt = TPrompt;
|
|
11
15
|
type Script = TScript;
|