@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.
- package/dist/iam/index.d.ts +1 -0
- package/dist/iam/index.d.ts.map +1 -1
- package/dist/iam/index.js +1 -0
- package/dist/iam/index.js.map +1 -1
- package/dist/iam/status.d.ts +3 -0
- package/dist/iam/status.d.ts.map +1 -0
- package/dist/iam/status.js +12 -0
- package/dist/iam/status.js.map +1 -0
- package/dist/iam/user.d.ts +2 -0
- package/dist/iam/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/iam/index.ts +1 -0
- package/src/iam/status.ts +9 -0
- package/src/iam/user.ts +2 -0
package/dist/iam/index.d.ts
CHANGED
package/dist/iam/index.d.ts.map
CHANGED
|
@@ -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
|
package/dist/iam/index.js.map
CHANGED
|
@@ -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 @@
|
|
|
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"}
|
package/dist/iam/user.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/iam/user.d.ts.map
CHANGED
|
@@ -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;
|
|
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
package/src/iam/index.ts
CHANGED
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
|
}
|