shred-api-client 1.1.18 → 1.1.19

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 CHANGED
@@ -1,3 +1,5 @@
1
1
  import { ShredAPI } from "./model/Api";
2
+ import { Role } from "./model/User.schema";
3
+ export { Role };
2
4
  export default ShredAPI;
3
5
  export * from "./namespace";
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,11 +1,13 @@
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
3
  import { Prompt as TPrompt, Script as TScript, Category as TCategory } from "./model/Prompt.schema";
4
+ export declare namespace Permissions {
5
+ type Role = TRole;
6
+ }
4
7
  export declare namespace Shred {
5
8
  type Product = TProduct;
6
9
  type Subscription = TSubscription;
7
10
  type User = TUser;
8
- type Role = TRole;
9
11
  namespace PromptTypes {
10
12
  type Prompt = TPrompt;
11
13
  type Script = TScript;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shred-api-client",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "API Client for Shred",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",