@cravery/types 0.0.1 → 0.0.2

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.
@@ -1,3 +1,4 @@
1
1
  export * from "./role";
2
+ export * from "./status";
2
3
  export * from "./user";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/iam/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/iam/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
package/dist/iam/index.js CHANGED
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./role"), exports);
18
+ __exportStar(require("./status"), exports);
18
19
  __exportStar(require("./user"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/iam/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/iam/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,2CAAyB;AACzB,yCAAuB"}
@@ -0,0 +1,3 @@
1
+ export declare const USER_STATUS_VALUES: readonly ["active", "archived", "deleted", "flagged", "pending", "suspended"];
2
+ export type UserStatus = (typeof USER_STATUS_VALUES)[number];
3
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/iam/status.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,+EAOrB,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.USER_STATUS_VALUES = void 0;
4
+ exports.USER_STATUS_VALUES = [
5
+ "active",
6
+ "archived",
7
+ "deleted",
8
+ "flagged",
9
+ "pending",
10
+ "suspended",
11
+ ];
12
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/iam/status.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG;IAChC,QAAQ;IACR,UAAU;IACV,SAAS;IACT,SAAS;IACT,SAAS;IACT,WAAW;CACH,CAAC"}
@@ -1,11 +1,13 @@
1
1
  import { Entity } from "../core";
2
2
  import { UserRole } from "./role";
3
+ import { UserStatus } from "./status";
3
4
  export interface User extends Entity {
4
5
  email: string;
5
6
  imageUrl: string | null;
6
7
  name: string;
7
8
  role: UserRole;
8
9
  score: number;
10
+ status: UserStatus;
9
11
  subscriptionId: string | null;
10
12
  verified: boolean;
11
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,IAAK,SAAQ,MAAM;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/iam/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,IAAK,SAAQ,MAAM;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cravery/types",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Core types for Cravery",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/iam/index.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from "./role";
2
+ export * from "./status";
2
3
  export * from "./user";
@@ -0,0 +1,9 @@
1
+ export const USER_STATUS_VALUES = [
2
+ "active",
3
+ "archived",
4
+ "deleted",
5
+ "flagged",
6
+ "pending",
7
+ "suspended",
8
+ ] as const;
9
+ export type UserStatus = (typeof USER_STATUS_VALUES)[number];
package/src/iam/user.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Entity } from "../core";
2
2
  import { UserRole } from "./role";
3
+ import { UserStatus } from "./status";
3
4
 
4
5
  export interface User extends Entity {
5
6
  email: string;
@@ -7,6 +8,7 @@ export interface User extends Entity {
7
8
  name: string;
8
9
  role: UserRole;
9
10
  score: number;
11
+ status: UserStatus;
10
12
  subscriptionId: string | null;
11
13
  verified: boolean;
12
14
  }