@uniteverses/shared 1.0.0 → 1.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/README.md CHANGED
@@ -3,3 +3,15 @@
3
3
  npm run build
4
4
  npm login
5
5
  npm publish --access public
6
+
7
+ #
8
+
9
+ cd uniteverses-shared
10
+ npm run build
11
+ npm version patch
12
+ npm publish --access public
13
+
14
+ #
15
+
16
+ cd uniteverses-website
17
+ npm update @uniteverses/shared
@@ -0,0 +1 @@
1
+ export * from "./politicians/community/residents/explore/types";
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./politicians/community/residents/explore/types"), exports);
@@ -0,0 +1,43 @@
1
+ export interface Language {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ }
6
+ export interface ProfileTranslationInput {
7
+ languageId: string;
8
+ bio?: string;
9
+ job?: string;
10
+ }
11
+ export interface CreateProfileInput {
12
+ dob: string;
13
+ translations?: ProfileTranslationInput[];
14
+ }
15
+ export interface ProfileTranslation {
16
+ id: string;
17
+ profileId: string;
18
+ languageId: string;
19
+ bio: string | null;
20
+ job: string | null;
21
+ createdAt: string | Date;
22
+ updatedAt: string | Date;
23
+ language: Language;
24
+ }
25
+ export interface Profile {
26
+ id: string;
27
+ userId: string;
28
+ dob: string | Date;
29
+ createdAt: string | Date;
30
+ updatedAt: string | Date;
31
+ translations: ProfileTranslation[];
32
+ user: User;
33
+ }
34
+ export interface User {
35
+ id: string;
36
+ firstName: string;
37
+ lastName: string;
38
+ username: string;
39
+ createdAt: string | Date;
40
+ }
41
+ export interface CheckProfileResult {
42
+ exists: boolean;
43
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [