@uniteverses/shared 1.0.87 → 1.0.89

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.
Files changed (63) hide show
  1. package/dist/domains/politicians/community/residents/explore/comment/constants.d.ts +3 -0
  2. package/dist/domains/politicians/community/residents/explore/comment/constants.js +6 -0
  3. package/dist/domains/politicians/community/residents/explore/comment/types.d.ts +26 -0
  4. package/dist/domains/politicians/community/residents/explore/comment/types.js +2 -0
  5. package/dist/domains/politicians/community/residents/explore/common/types.d.ts +41 -0
  6. package/dist/domains/politicians/community/residents/explore/common/types.js +3 -0
  7. package/dist/domains/politicians/community/residents/explore/deal/constants.d.ts +1 -0
  8. package/dist/domains/politicians/community/residents/explore/deal/constants.js +4 -0
  9. package/dist/domains/politicians/community/residents/explore/deal/types.d.ts +48 -0
  10. package/dist/domains/politicians/community/residents/explore/deal/types.js +2 -0
  11. package/dist/domains/politicians/community/residents/explore/deal_translation/types.d.ts +10 -0
  12. package/dist/domains/politicians/community/residents/explore/deal_translation/types.js +2 -0
  13. package/dist/domains/politicians/community/residents/explore/food_group/constants.d.ts +1 -0
  14. package/dist/domains/politicians/community/residents/explore/food_group/constants.js +4 -0
  15. package/dist/domains/politicians/community/residents/explore/food_group/types.d.ts +26 -0
  16. package/dist/domains/politicians/community/residents/explore/food_group/types.js +2 -0
  17. package/dist/domains/politicians/community/residents/explore/food_item/types.d.ts +8 -0
  18. package/dist/domains/politicians/community/residents/explore/food_item/types.js +2 -0
  19. package/dist/domains/politicians/community/residents/explore/index.d.ts +29 -0
  20. package/dist/domains/politicians/community/residents/explore/index.js +45 -0
  21. package/dist/domains/politicians/community/residents/explore/inquiry/constants.d.ts +1 -0
  22. package/dist/domains/politicians/community/residents/explore/inquiry/constants.js +4 -0
  23. package/dist/domains/politicians/community/residents/explore/inquiry/types.d.ts +8 -0
  24. package/dist/domains/politicians/community/residents/explore/inquiry/types.js +2 -0
  25. package/dist/domains/politicians/community/residents/explore/organization/constants.d.ts +2 -0
  26. package/dist/domains/politicians/community/residents/explore/organization/constants.js +5 -0
  27. package/dist/domains/politicians/community/residents/explore/organization/types.d.ts +48 -0
  28. package/dist/domains/politicians/community/residents/explore/organization/types.js +2 -0
  29. package/dist/domains/politicians/community/residents/explore/organization_event/constants.d.ts +2 -0
  30. package/dist/domains/politicians/community/residents/explore/organization_event/constants.js +5 -0
  31. package/dist/domains/politicians/community/residents/explore/organization_event/types.d.ts +51 -0
  32. package/dist/domains/politicians/community/residents/explore/organization_event/types.js +2 -0
  33. package/dist/domains/politicians/community/residents/explore/organization_event_occurrence/constants.d.ts +7 -0
  34. package/dist/domains/politicians/community/residents/explore/organization_event_occurrence/constants.js +10 -0
  35. package/dist/domains/politicians/community/residents/explore/organization_event_occurrence/types.d.ts +66 -0
  36. package/dist/domains/politicians/community/residents/explore/organization_event_occurrence/types.js +2 -0
  37. package/dist/domains/politicians/community/residents/explore/organization_food_group/types.d.ts +28 -0
  38. package/dist/domains/politicians/community/residents/explore/organization_food_group/types.js +2 -0
  39. package/dist/domains/politicians/community/residents/explore/organization_food_item/types.d.ts +30 -0
  40. package/dist/domains/politicians/community/residents/explore/organization_food_item/types.js +2 -0
  41. package/dist/domains/politicians/community/residents/explore/organization_member/types.d.ts +17 -0
  42. package/dist/domains/politicians/community/residents/explore/organization_member/types.js +2 -0
  43. package/dist/domains/politicians/community/residents/explore/organization_translation/types.d.ts +10 -0
  44. package/dist/domains/politicians/community/residents/explore/organization_translation/types.js +2 -0
  45. package/dist/domains/politicians/community/residents/explore/post/constants.d.ts +1 -0
  46. package/dist/domains/politicians/community/residents/explore/post/constants.js +4 -0
  47. package/dist/domains/politicians/community/residents/explore/post/types.d.ts +46 -0
  48. package/dist/domains/politicians/community/residents/explore/post/types.js +2 -0
  49. package/dist/domains/politicians/community/residents/explore/post_translation/types.d.ts +10 -0
  50. package/dist/domains/politicians/community/residents/explore/post_translation/types.js +2 -0
  51. package/dist/domains/politicians/community/residents/explore/profile/types.d.ts +39 -0
  52. package/dist/domains/politicians/community/residents/explore/profile/types.js +2 -0
  53. package/dist/domains/politicians/community/residents/explore/topic/constants.d.ts +1 -0
  54. package/dist/domains/politicians/community/residents/explore/topic/constants.js +4 -0
  55. package/dist/domains/politicians/community/residents/explore/topic/types.d.ts +21 -0
  56. package/dist/domains/politicians/community/residents/explore/topic/types.js +2 -0
  57. package/dist/domains/politicians/community/residents/explore/type/types.d.ts +17 -0
  58. package/dist/domains/politicians/community/residents/explore/type/types.js +2 -0
  59. package/dist/domains/politicians/community/residents/explore/type_group/types.d.ts +23 -0
  60. package/dist/domains/politicians/community/residents/explore/type_group/types.js +2 -0
  61. package/dist/index.d.ts +1 -2
  62. package/dist/index.js +1 -2
  63. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ export declare const COMMENT_MAX_REPLY_DEPTH = 2;
2
+ export declare const COMMENT_INDENT_PX = 16;
3
+ export declare const COMMENT_MAX_INDENT_PX = 48;
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.COMMENT_MAX_INDENT_PX = exports.COMMENT_INDENT_PX = exports.COMMENT_MAX_REPLY_DEPTH = void 0;
4
+ exports.COMMENT_MAX_REPLY_DEPTH = 2;
5
+ exports.COMMENT_INDENT_PX = 16;
6
+ exports.COMMENT_MAX_INDENT_PX = 48;
@@ -0,0 +1,26 @@
1
+ import type { User } from "..";
2
+ export interface CreateCommentInput {
3
+ body: string;
4
+ parentCommentId?: string;
5
+ }
6
+ export interface UpdateCommentInput {
7
+ body: string;
8
+ }
9
+ export interface CommentVersion {
10
+ id: string;
11
+ commentId: string;
12
+ version: number;
13
+ body: string;
14
+ createdAt: string | Date;
15
+ }
16
+ export interface Comment {
17
+ id: string;
18
+ postId: string;
19
+ userId: string;
20
+ parentCommentId: string | null;
21
+ createdAt: string | Date;
22
+ deletedAt: string | Date | null;
23
+ user: User;
24
+ versions: CommentVersion[];
25
+ replies?: Comment[];
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,41 @@
1
+ export interface Language {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ }
6
+ export interface User {
7
+ id: string;
8
+ firstName: string;
9
+ lastName: string;
10
+ username: string;
11
+ createdAt: string | Date;
12
+ }
13
+ export interface CreateUserInput {
14
+ id: string;
15
+ firstName: string;
16
+ lastName: string;
17
+ username: string;
18
+ }
19
+ export interface UpdateUserInput {
20
+ firstName?: string;
21
+ lastName?: string;
22
+ username?: string;
23
+ }
24
+ export interface CheckUsernameResult {
25
+ available: boolean;
26
+ }
27
+ export interface CheckAdminResult {
28
+ isAdmin: boolean;
29
+ }
30
+ export interface Unit {
31
+ id: string;
32
+ name: string;
33
+ label: string;
34
+ createdAt: string | Date;
35
+ }
36
+ export interface Size {
37
+ id: string;
38
+ name: string;
39
+ label: string;
40
+ createdAt: string | Date;
41
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // Global (non-scope) primitives shared across the scope's models.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export declare const DEALS_PAGE_SIZE = 20;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEALS_PAGE_SIZE = void 0;
4
+ exports.DEALS_PAGE_SIZE = 20;
@@ -0,0 +1,48 @@
1
+ import type { Organization, Type, DealTranslation } from "..";
2
+ export interface Deal {
3
+ id: string;
4
+ organizationId: string;
5
+ imageStoragePath?: string | null;
6
+ imageUrl?: string | null;
7
+ previousPrice: string | null;
8
+ currentPrice: string | null;
9
+ percentOff: number | null;
10
+ flatOff: string | null;
11
+ bogoBuy: number | null;
12
+ bogoGet: number | null;
13
+ startsAt: string | Date | null;
14
+ endsAt: string | Date | null;
15
+ createdAt: string | Date;
16
+ deletedAt: string | Date | null;
17
+ pinned: boolean;
18
+ organization?: Organization | null;
19
+ translations?: DealTranslation[];
20
+ types?: {
21
+ type: Type;
22
+ }[];
23
+ }
24
+ export interface CreateDealInput {
25
+ organizationId: string;
26
+ imageStoragePath?: string | null;
27
+ previousPrice?: string | null;
28
+ currentPrice?: string | null;
29
+ percentOff?: number | null;
30
+ flatOff?: string | null;
31
+ bogoBuy?: number | null;
32
+ bogoGet?: number | null;
33
+ startsAt?: string | null;
34
+ endsAt?: string | null;
35
+ typeIds?: string[];
36
+ }
37
+ export interface UpdateDealInput {
38
+ imageStoragePath?: string | null;
39
+ previousPrice?: string | null;
40
+ currentPrice?: string | null;
41
+ percentOff?: number | null;
42
+ flatOff?: string | null;
43
+ bogoBuy?: number | null;
44
+ bogoGet?: number | null;
45
+ startsAt?: string | null;
46
+ endsAt?: string | null;
47
+ typeIds?: string[];
48
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type { Language } from "..";
2
+ export interface DealTranslation {
3
+ id: string;
4
+ dealId: string;
5
+ languageId: string;
6
+ title: string;
7
+ body: string | null;
8
+ createdAt: string | Date;
9
+ language: Language;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export declare const FOOD_GROUP_NESTING_DEPTH = 3;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FOOD_GROUP_NESTING_DEPTH = void 0;
4
+ exports.FOOD_GROUP_NESTING_DEPTH = 3;
@@ -0,0 +1,26 @@
1
+ import type { FoodItem } from "..";
2
+ export interface FoodGroup {
3
+ id: string;
4
+ name: string;
5
+ parentGroupId: string | null;
6
+ createdAt: string | Date;
7
+ _count?: {
8
+ foodItems: number;
9
+ childGroups: number;
10
+ };
11
+ }
12
+ export interface FoodGroupItem {
13
+ id: string;
14
+ foodGroupId: string;
15
+ foodItemId: string;
16
+ createdAt: string | Date;
17
+ foodItem: FoodItem;
18
+ }
19
+ export interface FoodGroupWithChildren {
20
+ id: string;
21
+ name: string;
22
+ parentGroupId: string | null;
23
+ createdAt: string | Date;
24
+ foodItems: FoodGroupItem[];
25
+ childGroups: FoodGroupWithChildren[];
26
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface FoodItem {
2
+ id: string;
3
+ name: string;
4
+ createdAt: string | Date;
5
+ _count?: {
6
+ foodGroups: number;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ export * from "./common/types";
2
+ export * from "./profile/types";
3
+ export * from "./type/types";
4
+ export * from "./type_group/types";
5
+ export * from "./organization/types";
6
+ export * from "./organization_translation/types";
7
+ export * from "./topic/types";
8
+ export * from "./post/types";
9
+ export * from "./post_translation/types";
10
+ export * from "./comment/types";
11
+ export * from "./deal/types";
12
+ export * from "./deal_translation/types";
13
+ export * from "./organization_event/types";
14
+ export * from "./organization_event_occurrence/types";
15
+ export * from "./food_item/types";
16
+ export * from "./food_group/types";
17
+ export * from "./organization_food_item/types";
18
+ export * from "./organization_food_group/types";
19
+ export * from "./organization_member/types";
20
+ export * from "./inquiry/types";
21
+ export * from "./post/constants";
22
+ export * from "./deal/constants";
23
+ export * from "./organization/constants";
24
+ export * from "./organization_event/constants";
25
+ export * from "./organization_event_occurrence/constants";
26
+ export * from "./food_group/constants";
27
+ export * from "./topic/constants";
28
+ export * from "./comment/constants";
29
+ export * from "./inquiry/constants";
@@ -0,0 +1,45 @@
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("./common/types"), exports);
18
+ __exportStar(require("./profile/types"), exports);
19
+ __exportStar(require("./type/types"), exports);
20
+ __exportStar(require("./type_group/types"), exports);
21
+ __exportStar(require("./organization/types"), exports);
22
+ __exportStar(require("./organization_translation/types"), exports);
23
+ __exportStar(require("./topic/types"), exports);
24
+ __exportStar(require("./post/types"), exports);
25
+ __exportStar(require("./post_translation/types"), exports);
26
+ __exportStar(require("./comment/types"), exports);
27
+ __exportStar(require("./deal/types"), exports);
28
+ __exportStar(require("./deal_translation/types"), exports);
29
+ __exportStar(require("./organization_event/types"), exports);
30
+ __exportStar(require("./organization_event_occurrence/types"), exports);
31
+ __exportStar(require("./food_item/types"), exports);
32
+ __exportStar(require("./food_group/types"), exports);
33
+ __exportStar(require("./organization_food_item/types"), exports);
34
+ __exportStar(require("./organization_food_group/types"), exports);
35
+ __exportStar(require("./organization_member/types"), exports);
36
+ __exportStar(require("./inquiry/types"), exports);
37
+ __exportStar(require("./post/constants"), exports);
38
+ __exportStar(require("./deal/constants"), exports);
39
+ __exportStar(require("./organization/constants"), exports);
40
+ __exportStar(require("./organization_event/constants"), exports);
41
+ __exportStar(require("./organization_event_occurrence/constants"), exports);
42
+ __exportStar(require("./food_group/constants"), exports);
43
+ __exportStar(require("./topic/constants"), exports);
44
+ __exportStar(require("./comment/constants"), exports);
45
+ __exportStar(require("./inquiry/constants"), exports);
@@ -0,0 +1 @@
1
+ export declare const CONTACT_PHONE = "+1 (917) 000-0000";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONTACT_PHONE = void 0;
4
+ exports.CONTACT_PHONE = "+1 (917) 000-0000";
@@ -0,0 +1,8 @@
1
+ export interface Inquiry {
2
+ id: string;
3
+ message: string;
4
+ createdAt: string | Date;
5
+ }
6
+ export interface CreateInquiryInput {
7
+ message: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export declare const ORGS_PAGE_SIZE = 20;
2
+ export declare const ORGS_MAX_LIMIT = 200;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ORGS_MAX_LIMIT = exports.ORGS_PAGE_SIZE = void 0;
4
+ exports.ORGS_PAGE_SIZE = 20;
5
+ exports.ORGS_MAX_LIMIT = 200;
@@ -0,0 +1,48 @@
1
+ import type { Type } from "..";
2
+ import type { OrganizationTranslation } from "..";
3
+ export interface OrganizationAddress {
4
+ id: string;
5
+ organizationId: string;
6
+ street: string;
7
+ city: string;
8
+ state: string;
9
+ zip: string;
10
+ country: string;
11
+ createdAt: string | Date;
12
+ }
13
+ export interface OrganizationPhone {
14
+ id: string;
15
+ organizationId: string;
16
+ number: string;
17
+ label: string | null;
18
+ createdAt: string | Date;
19
+ }
20
+ export interface Organization {
21
+ id: string;
22
+ name: string;
23
+ description?: string | null;
24
+ createdAt: string | Date;
25
+ pinned: boolean;
26
+ types: {
27
+ type: Type;
28
+ }[];
29
+ addresses: OrganizationAddress[];
30
+ phones: OrganizationPhone[];
31
+ imageUrl?: string | null;
32
+ translations?: OrganizationTranslation[];
33
+ }
34
+ export interface CreateOrganizationInput {
35
+ name: string;
36
+ description?: string | null;
37
+ typeIds?: string[];
38
+ addresses?: Omit<OrganizationAddress, "id" | "organizationId" | "createdAt">[];
39
+ phones?: Omit<OrganizationPhone, "id" | "organizationId" | "createdAt">[];
40
+ }
41
+ export interface UpdateOrganizationInput {
42
+ name?: string;
43
+ description?: string | null;
44
+ imageStoragePath?: string | null;
45
+ typeIds?: string[];
46
+ addresses?: Omit<OrganizationAddress, "id" | "organizationId" | "createdAt">[];
47
+ phones?: Omit<OrganizationPhone, "id" | "organizationId" | "createdAt">[];
48
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export declare const EVENTS_PAGE_SIZE = 20;
2
+ export declare const EVENTS_MAX_LIMIT = 200;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EVENTS_MAX_LIMIT = exports.EVENTS_PAGE_SIZE = void 0;
4
+ exports.EVENTS_PAGE_SIZE = 20;
5
+ exports.EVENTS_MAX_LIMIT = 200;
@@ -0,0 +1,51 @@
1
+ import type { Language, Organization, Type, OrgEventOccurrence } from "..";
2
+ export interface OrgEventTranslation {
3
+ id: string;
4
+ eventId: string;
5
+ languageId: string;
6
+ name: string;
7
+ description: string | null;
8
+ createdAt: string | Date;
9
+ language: Language;
10
+ }
11
+ export interface OrgEventTranslationInput {
12
+ languageId: string;
13
+ name: string;
14
+ description?: string;
15
+ }
16
+ export interface OrgEventPartnerOrg {
17
+ id: string;
18
+ organizationId: string;
19
+ organization: Organization;
20
+ }
21
+ export interface OrgEvent {
22
+ id: string;
23
+ organizationId: string;
24
+ isActive: boolean;
25
+ registrationRequired: boolean;
26
+ createdAt: string | Date;
27
+ pinned: boolean;
28
+ occurrences?: OrgEventOccurrence[];
29
+ translations: OrgEventTranslation[];
30
+ imageUrl?: string | null;
31
+ types?: {
32
+ type: Type;
33
+ }[];
34
+ partnerOrgs?: OrgEventPartnerOrg[];
35
+ _count?: {
36
+ occurrences: number;
37
+ };
38
+ }
39
+ export interface CreateOrgEventInput {
40
+ translations: OrgEventTranslationInput[];
41
+ isActive?: boolean;
42
+ registrationRequired?: boolean;
43
+ typeIds?: string[];
44
+ }
45
+ export interface UpdateOrgEventInput {
46
+ translations: OrgEventTranslationInput[];
47
+ isActive?: boolean;
48
+ registrationRequired?: boolean;
49
+ imageStoragePath?: string | null;
50
+ typeIds?: string[];
51
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export declare const OCCURRENCES_PAGE_SIZE = 100;
2
+ export declare const OCCURRENCES_MAX_LIMIT = 500;
3
+ export declare const APPLICANT_STATUS: {
4
+ readonly PENDING: "pending";
5
+ readonly APPROVED: "approved";
6
+ readonly REJECTED: "rejected";
7
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APPLICANT_STATUS = exports.OCCURRENCES_MAX_LIMIT = exports.OCCURRENCES_PAGE_SIZE = void 0;
4
+ exports.OCCURRENCES_PAGE_SIZE = 100;
5
+ exports.OCCURRENCES_MAX_LIMIT = 500;
6
+ exports.APPLICANT_STATUS = {
7
+ PENDING: "pending",
8
+ APPROVED: "approved",
9
+ REJECTED: "rejected",
10
+ };
@@ -0,0 +1,66 @@
1
+ import type { Language, User, Profile } from "..";
2
+ export interface OrgEventOccurrenceTranslation {
3
+ id: string;
4
+ occurrenceId: string;
5
+ languageId: string;
6
+ description: string | null;
7
+ createdAt: string | Date;
8
+ language: Language;
9
+ }
10
+ export interface OrgEventOccurrenceTranslationInput {
11
+ languageId: string;
12
+ description?: string;
13
+ }
14
+ export interface OrgEventOccurrence {
15
+ id: string;
16
+ eventId: string;
17
+ startsAt: string | Date;
18
+ endsAt: string | Date | null;
19
+ location: string | null;
20
+ capacity: number | null;
21
+ rsvpLink: string | null;
22
+ createdAt: string | Date;
23
+ applicants?: OrgEventOccurrenceApplicant[];
24
+ participants?: OrgEventOccurrenceParticipant[];
25
+ translations: OrgEventOccurrenceTranslation[];
26
+ imageUrl?: string | null;
27
+ _count?: {
28
+ applicants: number;
29
+ participants: number;
30
+ };
31
+ }
32
+ export interface CreateOrgEventOccurrenceInput {
33
+ startsAt: string;
34
+ endsAt?: string;
35
+ location?: string;
36
+ capacity?: number;
37
+ rsvpLink?: string | null;
38
+ translations?: OrgEventOccurrenceTranslationInput[];
39
+ }
40
+ export interface UpdateOrgEventOccurrenceInput {
41
+ startsAt?: string;
42
+ endsAt?: string;
43
+ location?: string;
44
+ capacity?: number;
45
+ rsvpLink?: string | null;
46
+ imageStoragePath?: string | null;
47
+ translations?: OrgEventOccurrenceTranslationInput[];
48
+ }
49
+ export type ApplicantStatus = "pending" | "approved" | "rejected";
50
+ export interface OrgEventOccurrenceApplicant {
51
+ id: string;
52
+ occurrenceId: string;
53
+ userId: string;
54
+ status: ApplicantStatus;
55
+ appliedAt: string | Date;
56
+ user: User & {
57
+ profile?: Profile | null;
58
+ };
59
+ }
60
+ export interface OrgEventOccurrenceParticipant {
61
+ id: string;
62
+ occurrenceId: string;
63
+ userId: string;
64
+ joinedAt: string | Date;
65
+ user: User;
66
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,28 @@
1
+ import type { OrgFoodItem } from "..";
2
+ export interface OrgFoodGroup {
3
+ id: string;
4
+ organizationId: string;
5
+ name: string;
6
+ parentGroupId: string | null;
7
+ createdAt: string | Date;
8
+ _count?: {
9
+ foodItems: number;
10
+ childGroups: number;
11
+ };
12
+ }
13
+ export interface OrgFoodGroupItem {
14
+ id: string;
15
+ foodGroupId: string;
16
+ foodItemId: string;
17
+ createdAt: string | Date;
18
+ foodItem: OrgFoodItem;
19
+ }
20
+ export interface OrgFoodGroupWithChildren {
21
+ id: string;
22
+ organizationId: string;
23
+ name: string;
24
+ parentGroupId: string | null;
25
+ createdAt: string | Date;
26
+ foodItems: OrgFoodGroupItem[];
27
+ childGroups: OrgFoodGroupWithChildren[];
28
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ import type { FoodItem, Unit, Size } from "..";
2
+ export interface OrgFoodItemType {
3
+ id: string;
4
+ orgFoodItemId: string;
5
+ foodItemId: string;
6
+ createdAt: string | Date;
7
+ foodItem: FoodItem;
8
+ }
9
+ export interface OrgFoodItemPrice {
10
+ id: string;
11
+ orgFoodItemId: string;
12
+ price: string;
13
+ unitId: string;
14
+ sizeId: string | null;
15
+ quantityPerUnit: number | null;
16
+ createdAt: string | Date;
17
+ unit: Unit;
18
+ size: Size | null;
19
+ }
20
+ export interface OrgFoodItem {
21
+ id: string;
22
+ organizationId: string;
23
+ name: string;
24
+ createdAt: string | Date;
25
+ _count?: {
26
+ foodGroups: number;
27
+ };
28
+ foodItemTypes?: OrgFoodItemType[];
29
+ prices?: OrgFoodItemPrice[];
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import type { User, Organization } from "..";
2
+ export interface OrgMember {
3
+ id: string;
4
+ organizationId: string;
5
+ userId: string;
6
+ createdAt: string | Date;
7
+ user: User;
8
+ }
9
+ export interface MyOrganization {
10
+ id: string;
11
+ organizationId: string;
12
+ createdAt: string | Date;
13
+ organization: Organization;
14
+ }
15
+ export interface AddOrgMemberInput {
16
+ userId: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type { Language } from "..";
2
+ export interface OrganizationTranslation {
3
+ id: string;
4
+ organizationId: string;
5
+ languageId: string;
6
+ name: string;
7
+ description: string | null;
8
+ createdAt: string | Date;
9
+ language: Language;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export declare const POSTS_PAGE_SIZE = 20;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.POSTS_PAGE_SIZE = void 0;
4
+ exports.POSTS_PAGE_SIZE = 20;
@@ -0,0 +1,46 @@
1
+ import type { User, Topic, Organization, Type, PostTranslation, Comment } from "..";
2
+ export interface CreatePostInput {
3
+ title?: string;
4
+ body?: string;
5
+ topicId?: string;
6
+ organizationId?: string;
7
+ imageStoragePath?: string | null;
8
+ typeIds?: string[];
9
+ }
10
+ export interface UpdatePostInput {
11
+ title?: string;
12
+ body?: string;
13
+ imageStoragePath?: string | null;
14
+ typeIds?: string[];
15
+ }
16
+ export interface PostVersion {
17
+ id: string;
18
+ postId: string;
19
+ version: number;
20
+ title: string;
21
+ body: string;
22
+ createdAt: string | Date;
23
+ }
24
+ export interface Post {
25
+ id: string;
26
+ userId: string;
27
+ topicId: string | null;
28
+ organizationId: string | null;
29
+ imageStoragePath?: string | null;
30
+ imageUrl?: string | null;
31
+ createdAt: string | Date;
32
+ deletedAt: string | Date | null;
33
+ pinned: boolean;
34
+ user: User;
35
+ topic?: Topic | null;
36
+ organization?: Organization | null;
37
+ versions: PostVersion[];
38
+ translations?: PostTranslation[];
39
+ comments?: Comment[];
40
+ types?: {
41
+ type: Type;
42
+ }[];
43
+ _count?: {
44
+ comments: number;
45
+ };
46
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import type { Language } from "..";
2
+ export interface PostTranslation {
3
+ id: string;
4
+ postId: string;
5
+ languageId: string;
6
+ title: string;
7
+ body: string;
8
+ createdAt: string | Date;
9
+ language: Language;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ import type { Language, User } from "..";
2
+ export interface ProfileTranslationInput {
3
+ languageId: string;
4
+ bio?: string;
5
+ job?: string;
6
+ }
7
+ export interface CreateProfileInput {
8
+ dob: string;
9
+ translations?: ProfileTranslationInput[];
10
+ }
11
+ export interface UpdateProfileInput {
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 CheckProfileResult {
35
+ exists: boolean;
36
+ }
37
+ export interface DeleteProfileResult {
38
+ deleted: boolean;
39
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export declare const TOPIC_NESTING_DEPTH = 3;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TOPIC_NESTING_DEPTH = void 0;
4
+ exports.TOPIC_NESTING_DEPTH = 3;
@@ -0,0 +1,21 @@
1
+ export interface Topic {
2
+ id: string;
3
+ name: string;
4
+ parentTopicId: string | null;
5
+ createdAt: string | Date;
6
+ _count?: {
7
+ childTopics: number;
8
+ posts: number;
9
+ };
10
+ }
11
+ export interface TopicWithChildren {
12
+ id: string;
13
+ name: string;
14
+ parentTopicId: string | null;
15
+ createdAt: string | Date;
16
+ childTopics: TopicWithChildren[];
17
+ _count?: {
18
+ childTopics: number;
19
+ posts: number;
20
+ };
21
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ import type { Language } from "..";
2
+ import type { TypeGroupType } from "..";
3
+ export interface TypeTranslation {
4
+ id: string;
5
+ typeId: string;
6
+ languageId: string;
7
+ name: string;
8
+ createdAt: string | Date;
9
+ language: Language;
10
+ }
11
+ export interface Type {
12
+ id: string;
13
+ emoji: string;
14
+ createdAt: string | Date;
15
+ translations?: TypeTranslation[];
16
+ groups?: TypeGroupType[];
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import type { Language, Type } from "..";
2
+ export interface TypeGroupTranslation {
3
+ id: string;
4
+ typeGroupId: string;
5
+ languageId: string;
6
+ name: string;
7
+ createdAt: string | Date;
8
+ language: Language;
9
+ }
10
+ export interface TypeGroupType {
11
+ id: string;
12
+ typeGroupId: string;
13
+ typeId: string;
14
+ createdAt: string | Date;
15
+ type?: Type;
16
+ }
17
+ export interface TypeGroup {
18
+ id: string;
19
+ emoji: string;
20
+ createdAt: string | Date;
21
+ translations?: TypeGroupTranslation[];
22
+ types?: TypeGroupType[];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- export * from "./domains/politicians/community/residents/explore/types";
2
- export * from "./domains/politicians/community/residents/explore/constants";
1
+ export * from "./domains/politicians/community/residents/explore";
3
2
  export * from "./domains/teachers/prep_center/students/simulate/types";
4
3
  export * from "./domains/students/communication/students/practice";
5
4
  export * from "./domains/lawyers/real_estate/assistants/research";
package/dist/index.js CHANGED
@@ -14,8 +14,7 @@ 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
- __exportStar(require("./domains/politicians/community/residents/explore/types"), exports);
18
- __exportStar(require("./domains/politicians/community/residents/explore/constants"), exports);
17
+ __exportStar(require("./domains/politicians/community/residents/explore"), exports);
19
18
  __exportStar(require("./domains/teachers/prep_center/students/simulate/types"), exports);
20
19
  __exportStar(require("./domains/students/communication/students/practice"), exports);
21
20
  __exportStar(require("./domains/lawyers/real_estate/assistants/research"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.87",
3
+ "version": "1.0.89",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [