@uniteverses/shared 1.0.96 → 1.0.97

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,14 +1,9 @@
1
- export interface Language {
2
- id: string;
3
- code: string;
4
- name: string;
5
- }
6
1
  export interface User {
7
2
  id: string;
8
3
  firstName: string;
9
4
  lastName: string;
10
5
  username: string;
11
- createdAt: string;
6
+ createdAt?: string;
12
7
  }
13
8
  export interface CreateUserInput {
14
9
  id: string;
@@ -27,19 +22,3 @@ export interface CheckUsernameResult {
27
22
  export interface CheckAdminResult {
28
23
  isAdmin: boolean;
29
24
  }
30
- export interface Unit {
31
- id: string;
32
- name: string;
33
- label: string;
34
- createdAt: string;
35
- }
36
- export interface Size {
37
- id: string;
38
- name: string;
39
- label: string;
40
- createdAt: string;
41
- }
42
- export interface ImageUploadResult {
43
- storagePath: string;
44
- url: string;
45
- }
@@ -1,3 +1,7 @@
1
1
  "use strict";
2
- // Global (non-scope) primitives shared across the scope's models.
2
+ // Auth / user wire types shared by the auth domain (api `domains/auth/*` +
3
+ // website `app/auth/*`) and the admin check. Generic (unprefixed) names because
4
+ // the auth consumers import them as `User` / `CheckAdminResult` / etc. They live
5
+ // here (the explore shared leaf) because that is the writable shared mount;
6
+ // `Language` was moved out to `language/types.ts` to avoid a duplicate export.
3
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from "./common/types";
1
2
  export * from "./language/types";
2
3
  export * from "./type/types";
3
4
  export * from "./organization_translation/types";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  // Scope barrel for politicians/community/residents/explore wire types.
18
18
  // Landing-needed slice restored; further per-model types/constants are
19
19
  // re-added here as each model is rebuilt out of v2/.
20
+ __exportStar(require("./common/types"), exports);
20
21
  __exportStar(require("./language/types"), exports);
21
22
  __exportStar(require("./type/types"), exports);
22
23
  __exportStar(require("./organization_translation/types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.96",
3
+ "version": "1.0.97",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [