@uniteverses/shared 1.0.95 → 1.0.96

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,8 +1,22 @@
1
- import type { Organization, Type, DealTranslation } from "..";
2
- export interface Deal {
1
+ import type { PoliticiansCommunityResidentsExploreLanguage, PoliticiansCommunityResidentsExploreOrganization, PoliticiansCommunityResidentsExploreType } from "..";
2
+ export interface PoliticiansCommunityResidentsExploreDealTranslation {
3
+ id: string;
4
+ dealId: string;
5
+ languageId: string;
6
+ title: string;
7
+ body: string | null;
8
+ createdAt: string;
9
+ language: PoliticiansCommunityResidentsExploreLanguage;
10
+ }
11
+ export interface PoliticiansCommunityResidentsExploreDeal {
3
12
  id: string;
4
13
  organizationId: string;
5
- imageStoragePath?: string | null;
14
+ createdAt: string;
15
+ pinned: boolean;
16
+ translations: PoliticiansCommunityResidentsExploreDealTranslation[];
17
+ types?: {
18
+ type: PoliticiansCommunityResidentsExploreType;
19
+ }[];
6
20
  imageUrl?: string | null;
7
21
  previousPrice: string | null;
8
22
  currentPrice: string | null;
@@ -12,18 +26,13 @@ export interface Deal {
12
26
  bogoGet: number | null;
13
27
  startsAt: string | null;
14
28
  endsAt: string | null;
15
- createdAt: string;
16
- deletedAt: string | null;
17
- pinned: boolean;
18
- organization?: Organization | null;
19
- translations?: DealTranslation[];
20
- types?: {
21
- type: Type;
22
- }[];
29
+ organization: PoliticiansCommunityResidentsExploreOrganization;
23
30
  }
24
- export interface CreateDealInput {
31
+ export interface PoliticiansCommunityResidentsExploreDealCreateInput {
25
32
  organizationId: string;
26
33
  imageStoragePath?: string | null;
34
+ pinned?: boolean;
35
+ typeIds?: string[];
27
36
  previousPrice?: string | null;
28
37
  currentPrice?: string | null;
29
38
  percentOff?: number | null;
@@ -32,10 +41,16 @@ export interface CreateDealInput {
32
41
  bogoGet?: number | null;
33
42
  startsAt?: string | null;
34
43
  endsAt?: string | null;
35
- typeIds?: string[];
44
+ translations: {
45
+ languageId: string;
46
+ title: string;
47
+ body?: string | null;
48
+ }[];
36
49
  }
37
- export interface UpdateDealInput {
50
+ export interface PoliticiansCommunityResidentsExploreDealUpdateInput {
38
51
  imageStoragePath?: string | null;
52
+ pinned?: boolean;
53
+ typeIds?: string[];
39
54
  previousPrice?: string | null;
40
55
  currentPrice?: string | null;
41
56
  percentOff?: number | null;
@@ -44,5 +59,9 @@ export interface UpdateDealInput {
44
59
  bogoGet?: number | null;
45
60
  startsAt?: string | null;
46
61
  endsAt?: string | null;
47
- typeIds?: string[];
62
+ translations?: {
63
+ languageId: string;
64
+ title: string;
65
+ body?: string | null;
66
+ }[];
48
67
  }
@@ -1,19 +1,10 @@
1
- export * from "./common/types";
1
+ export * from "./language/types";
2
2
  export * from "./type/types";
3
- export * from "./type_group/types";
4
- export * from "./organization/types";
5
3
  export * from "./organization_translation/types";
6
- export * from "./post/types";
7
- export * from "./post_translation/types";
8
- export * from "./deal/types";
9
- export * from "./deal_translation/types";
4
+ export * from "./organization/types";
5
+ export * from "./organization_member/types";
10
6
  export * from "./organization_event/types";
11
7
  export * from "./organization_event_occurrence/types";
12
- export * from "./organization_member/types";
8
+ export * from "./post/types";
9
+ export * from "./deal/types";
13
10
  export * from "./inquiry/types";
14
- export * from "./post/constants";
15
- export * from "./deal/constants";
16
- export * from "./organization/constants";
17
- export * from "./organization_event/constants";
18
- export * from "./organization_event_occurrence/constants";
19
- export * from "./inquiry/constants";
@@ -14,22 +14,16 @@ 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("./common/types"), exports);
17
+ // Scope barrel for politicians/community/residents/explore wire types.
18
+ // Landing-needed slice restored; further per-model types/constants are
19
+ // re-added here as each model is rebuilt out of v2/.
20
+ __exportStar(require("./language/types"), exports);
18
21
  __exportStar(require("./type/types"), exports);
19
- __exportStar(require("./type_group/types"), exports);
20
- __exportStar(require("./organization/types"), exports);
21
22
  __exportStar(require("./organization_translation/types"), exports);
22
- __exportStar(require("./post/types"), exports);
23
- __exportStar(require("./post_translation/types"), exports);
24
- __exportStar(require("./deal/types"), exports);
25
- __exportStar(require("./deal_translation/types"), exports);
23
+ __exportStar(require("./organization/types"), exports);
24
+ __exportStar(require("./organization_member/types"), exports);
26
25
  __exportStar(require("./organization_event/types"), exports);
27
26
  __exportStar(require("./organization_event_occurrence/types"), exports);
28
- __exportStar(require("./organization_member/types"), exports);
27
+ __exportStar(require("./post/types"), exports);
28
+ __exportStar(require("./deal/types"), exports);
29
29
  __exportStar(require("./inquiry/types"), exports);
30
- __exportStar(require("./post/constants"), exports);
31
- __exportStar(require("./deal/constants"), exports);
32
- __exportStar(require("./organization/constants"), exports);
33
- __exportStar(require("./organization_event/constants"), exports);
34
- __exportStar(require("./organization_event_occurrence/constants"), exports);
35
- __exportStar(require("./inquiry/constants"), exports);
@@ -1,8 +1,5 @@
1
- export interface Inquiry {
1
+ export interface PoliticiansCommunityResidentsExploreInquiry {
2
2
  id: string;
3
3
  message: string;
4
4
  createdAt: string;
5
5
  }
6
- export interface CreateInquiryInput {
7
- message: string;
8
- }
@@ -0,0 +1,5 @@
1
+ export interface PoliticiansCommunityResidentsExploreLanguage {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,72 +1,50 @@
1
- import type { Type } from "..";
2
- import type { OrganizationTranslation } from "..";
3
- export interface OrganizationAddress {
4
- id: string;
5
- organizationId: string;
1
+ import type { PoliticiansCommunityResidentsExploreOrganizationTranslation, PoliticiansCommunityResidentsExploreType } from "..";
2
+ export interface PoliticiansCommunityResidentsExploreOrganizationAddress {
6
3
  street: string;
7
4
  city: string;
8
5
  state: string;
9
6
  zip: string;
10
- country: string;
11
- createdAt: string;
7
+ country?: string;
12
8
  }
13
- export interface OrganizationPhone {
14
- id: string;
15
- organizationId: string;
9
+ export interface PoliticiansCommunityResidentsExploreOrganizationPhone {
16
10
  number: string;
17
11
  label: string | null;
18
- createdAt: string;
19
12
  }
20
- export interface Organization {
21
- id: string;
22
- name: string;
23
- description?: string | null;
24
- createdAt: string;
25
- pinned: boolean;
26
- types: {
27
- type: Type;
28
- }[];
29
- addresses: OrganizationAddress[];
30
- phones: OrganizationPhone[];
31
- imageUrl?: string | null;
32
- translations?: OrganizationTranslation[];
13
+ export interface PoliticiansCommunityResidentsExploreOrganizationAddressInput {
14
+ street: string;
15
+ city: string;
16
+ state: string;
17
+ zip: string;
18
+ country: string;
33
19
  }
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">[];
20
+ export interface PoliticiansCommunityResidentsExploreOrganizationPhoneInput {
21
+ number: string;
22
+ label?: string | null;
40
23
  }
41
- export interface UpdateOrganizationInput {
24
+ export interface PoliticiansCommunityResidentsExploreOrganizationUpdateInput {
42
25
  name?: string;
43
26
  description?: string | null;
44
27
  imageStoragePath?: string | null;
45
- typeIds?: string[];
46
- addresses?: Omit<OrganizationAddress, "id" | "organizationId" | "createdAt">[];
47
- phones?: Omit<OrganizationPhone, "id" | "organizationId" | "createdAt">[];
28
+ addresses?: PoliticiansCommunityResidentsExploreOrganizationAddressInput[];
29
+ phones?: PoliticiansCommunityResidentsExploreOrganizationPhoneInput[];
30
+ translations?: {
31
+ languageId: string;
32
+ name: string;
33
+ description?: string | null;
34
+ }[];
48
35
  }
49
- export interface BrowseOrg {
36
+ export interface PoliticiansCommunityResidentsExploreOrganization {
50
37
  id: string;
51
38
  name: string;
39
+ pinned?: boolean;
52
40
  description?: string | null;
53
41
  imageUrl?: string | null;
54
- pinned?: boolean;
55
- addresses?: {
56
- street: string;
57
- city: string;
58
- state: string;
59
- zip: string;
60
- }[];
61
- phones?: {
62
- number: string;
63
- label?: string | null;
64
- }[];
65
- translations?: OrganizationTranslation[];
42
+ addresses?: PoliticiansCommunityResidentsExploreOrganizationAddress[];
43
+ phones?: PoliticiansCommunityResidentsExploreOrganizationPhone[];
66
44
  types?: {
67
- type: Type;
45
+ type: PoliticiansCommunityResidentsExploreType;
68
46
  }[];
69
- /** Real count of active events for this org, returned by the API. */
47
+ translations?: PoliticiansCommunityResidentsExploreOrganizationTranslation[];
70
48
  _count?: {
71
49
  events: number;
72
50
  };
@@ -1,54 +1,65 @@
1
- import type { Language, Organization, Type, OrgEventOccurrence, BrowseOrg } from "..";
2
- export interface OrgEventTranslation {
1
+ import type { PoliticiansCommunityResidentsExploreLanguage, PoliticiansCommunityResidentsExploreOrganization, PoliticiansCommunityResidentsExploreType } from "..";
2
+ export interface PoliticiansCommunityResidentsExploreOrganizationEventTranslation {
3
3
  id: string;
4
4
  eventId: string;
5
5
  languageId: string;
6
6
  name: string;
7
7
  description: string | null;
8
8
  createdAt: string;
9
- language: Language;
9
+ language: PoliticiansCommunityResidentsExploreLanguage;
10
10
  }
11
- export interface OrgEventTranslationInput {
12
- languageId: string;
13
- name: string;
14
- description?: string;
15
- }
16
- export interface OrgEventPartnerOrg {
11
+ export interface PoliticiansCommunityResidentsExploreOrganizationEventPartnerOrg {
17
12
  id: string;
18
13
  organizationId: string;
19
- organization: Organization;
14
+ organization: {
15
+ id: string;
16
+ name: string;
17
+ };
20
18
  }
21
- export interface OrgEvent {
19
+ export interface PoliticiansCommunityResidentsExploreOrganizationEvent {
22
20
  id: string;
23
21
  organizationId: string;
24
22
  isActive: boolean;
25
23
  createdAt: string;
26
24
  pinned: boolean;
27
- occurrences?: OrgEventOccurrence[];
28
- translations: OrgEventTranslation[];
25
+ translations: PoliticiansCommunityResidentsExploreOrganizationEventTranslation[];
29
26
  imageUrl?: string | null;
30
- types?: {
31
- type: Type;
32
- }[];
33
- partnerOrgs?: OrgEventPartnerOrg[];
34
27
  _count?: {
35
28
  occurrences: number;
36
29
  };
30
+ types?: {
31
+ type: PoliticiansCommunityResidentsExploreType;
32
+ }[];
33
+ organization: PoliticiansCommunityResidentsExploreOrganization;
34
+ nextOccurrenceAt?: string | null;
35
+ occurrences?: {
36
+ id: string;
37
+ startsAt: string;
38
+ endsAt?: string | null;
39
+ location?: string | null;
40
+ }[];
41
+ partnerOrgs?: PoliticiansCommunityResidentsExploreOrganizationEventPartnerOrg[];
37
42
  }
38
- export interface CreateOrgEventInput {
39
- translations: OrgEventTranslationInput[];
43
+ export interface PoliticiansCommunityResidentsExploreOrganizationEventCreateInput {
44
+ organizationId: string;
45
+ imageStoragePath?: string | null;
40
46
  isActive?: boolean;
47
+ pinned?: boolean;
41
48
  typeIds?: string[];
49
+ translations: {
50
+ languageId: string;
51
+ name: string;
52
+ description?: string | null;
53
+ }[];
42
54
  }
43
- export interface UpdateOrgEventInput {
44
- translations: OrgEventTranslationInput[];
45
- isActive?: boolean;
55
+ export interface PoliticiansCommunityResidentsExploreOrganizationEventUpdateInput {
46
56
  imageStoragePath?: string | null;
57
+ isActive?: boolean;
58
+ pinned?: boolean;
47
59
  typeIds?: string[];
48
- }
49
- export interface BrowseEvent extends OrgEvent {
50
- organization: BrowseOrg;
51
- nextOccurrenceAt?: string | null;
52
- /** Cursor for fetching the next page of `occurrences` on this event. Null when fully loaded. */
53
- nextOccurrencesCursor?: string | null;
60
+ translations?: {
61
+ languageId: string;
62
+ name: string;
63
+ description?: string | null;
64
+ }[];
54
65
  }
@@ -1,42 +1,56 @@
1
- import type { Language } from "..";
2
- export interface OrgEventOccurrenceTranslation {
1
+ import type { PoliticiansCommunityResidentsExploreOrganization } from "..";
2
+ export interface PoliticiansCommunityResidentsExploreOrganizationEventOccurrence {
3
3
  id: string;
4
- occurrenceId: string;
5
- languageId: string;
6
- description: string | null;
7
- createdAt: string;
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
4
  startsAt: string;
18
- endsAt: string | null;
19
- location: string | null;
20
- capacity: number | null;
21
- rsvpLink: string | null;
22
- createdAt: string;
23
- translations: OrgEventOccurrenceTranslation[];
5
+ endsAt?: string | null;
6
+ location?: string | null;
7
+ capacity?: number | null;
8
+ rsvpLink?: string | null;
24
9
  imageUrl?: string | null;
10
+ translations?: {
11
+ languageId: string;
12
+ language: {
13
+ id: string;
14
+ code: string;
15
+ name: string;
16
+ };
17
+ description?: string | null;
18
+ }[];
19
+ event?: {
20
+ id: string;
21
+ translations?: {
22
+ languageId: string;
23
+ language: {
24
+ code: string;
25
+ name: string;
26
+ };
27
+ name?: string | null;
28
+ }[];
29
+ };
30
+ organization?: PoliticiansCommunityResidentsExploreOrganization;
25
31
  }
26
- export interface CreateOrgEventOccurrenceInput {
32
+ export interface PoliticiansCommunityResidentsExploreOrganizationEventOccurrenceCreateInput {
33
+ eventId: string;
27
34
  startsAt: string;
28
- endsAt?: string;
29
- location?: string;
30
- capacity?: number;
35
+ endsAt?: string | null;
36
+ location?: string | null;
37
+ capacity?: number | null;
31
38
  rsvpLink?: string | null;
32
- translations?: OrgEventOccurrenceTranslationInput[];
39
+ imageStoragePath?: string | null;
40
+ translations?: {
41
+ languageId: string;
42
+ description?: string | null;
43
+ }[];
33
44
  }
34
- export interface UpdateOrgEventOccurrenceInput {
45
+ export interface PoliticiansCommunityResidentsExploreOrganizationEventOccurrenceUpdateInput {
35
46
  startsAt?: string;
36
- endsAt?: string;
37
- location?: string;
38
- capacity?: number;
47
+ endsAt?: string | null;
48
+ location?: string | null;
49
+ capacity?: number | null;
39
50
  rsvpLink?: string | null;
40
51
  imageStoragePath?: string | null;
41
- translations?: OrgEventOccurrenceTranslationInput[];
52
+ translations?: {
53
+ languageId: string;
54
+ description?: string | null;
55
+ }[];
42
56
  }
@@ -1,17 +1,12 @@
1
- import type { User, Organization } from "..";
2
- export interface OrgMember {
1
+ export interface PoliticiansCommunityResidentsExploreUser {
3
2
  id: string;
4
- organizationId: string;
5
- userId: string;
6
- createdAt: string;
7
- user: User;
3
+ firstName: string;
4
+ lastName: string;
5
+ username: string;
8
6
  }
9
- export interface MyOrganization {
7
+ export interface PoliticiansCommunityResidentsExploreOrganizationMember {
10
8
  id: string;
11
9
  organizationId: string;
12
- createdAt: string;
13
- organization: Organization;
14
- }
15
- export interface AddOrgMemberInput {
16
10
  userId: string;
11
+ user: PoliticiansCommunityResidentsExploreUser;
17
12
  }
@@ -1,10 +1,10 @@
1
- import type { Language } from "..";
2
- export interface OrganizationTranslation {
1
+ import type { PoliticiansCommunityResidentsExploreLanguage } from "..";
2
+ export interface PoliticiansCommunityResidentsExploreOrganizationTranslation {
3
3
  id: string;
4
4
  organizationId: string;
5
5
  languageId: string;
6
6
  name: string;
7
7
  description: string | null;
8
8
  createdAt: string;
9
- language: Language;
9
+ language: PoliticiansCommunityResidentsExploreLanguage;
10
10
  }
@@ -1,39 +1,40 @@
1
- import type { User, Organization, Type, PostTranslation } from "..";
2
- export interface CreatePostInput {
3
- title?: string;
4
- body?: string;
5
- organizationId?: string;
6
- imageStoragePath?: string | null;
7
- typeIds?: string[];
8
- }
9
- export interface UpdatePostInput {
10
- title?: string;
11
- body?: string;
12
- imageStoragePath?: string | null;
13
- typeIds?: string[];
14
- }
15
- export interface PostVersion {
1
+ import type { PoliticiansCommunityResidentsExploreLanguage, PoliticiansCommunityResidentsExploreOrganization, PoliticiansCommunityResidentsExploreType } from "..";
2
+ export interface PoliticiansCommunityResidentsExplorePostTranslation {
16
3
  id: string;
17
4
  postId: string;
18
- version: number;
5
+ languageId: string;
19
6
  title: string;
20
- body: string;
7
+ body?: string | null;
21
8
  createdAt: string;
9
+ language: PoliticiansCommunityResidentsExploreLanguage;
22
10
  }
23
- export interface Post {
11
+ export interface PoliticiansCommunityResidentsExplorePost {
24
12
  id: string;
25
- userId: string;
26
- organizationId: string | null;
27
- imageStoragePath?: string | null;
28
- imageUrl?: string | null;
13
+ organizationId: string;
14
+ pinned?: boolean;
29
15
  createdAt: string;
30
- deletedAt: string | null;
31
- pinned: boolean;
32
- user: User;
33
- organization?: Organization | null;
34
- versions: PostVersion[];
35
- translations?: PostTranslation[];
16
+ translations: PoliticiansCommunityResidentsExplorePostTranslation[];
36
17
  types?: {
37
- type: Type;
18
+ type: PoliticiansCommunityResidentsExploreType;
38
19
  }[];
20
+ imageUrl?: string | null;
21
+ organization: PoliticiansCommunityResidentsExploreOrganization;
22
+ }
23
+ export interface PoliticiansCommunityResidentsExplorePostTranslationInput {
24
+ languageId: string;
25
+ title: string;
26
+ body?: string | null;
27
+ }
28
+ export interface PoliticiansCommunityResidentsExplorePostCreateInput {
29
+ organizationId: string;
30
+ imageStoragePath?: string | null;
31
+ pinned?: boolean;
32
+ topicId?: string | null;
33
+ translations: PoliticiansCommunityResidentsExplorePostTranslationInput[];
34
+ }
35
+ export interface PoliticiansCommunityResidentsExplorePostUpdateInput {
36
+ imageStoragePath?: string | null;
37
+ pinned?: boolean;
38
+ topicId?: string | null;
39
+ translations?: PoliticiansCommunityResidentsExplorePostTranslationInput[];
39
40
  }
@@ -1,17 +1,15 @@
1
- import type { Language } from "..";
2
- import type { TypeGroupType } from "..";
3
- export interface TypeTranslation {
1
+ import type { PoliticiansCommunityResidentsExploreLanguage } from "..";
2
+ export interface PoliticiansCommunityResidentsExploreTypeTranslation {
4
3
  id: string;
5
4
  typeId: string;
6
5
  languageId: string;
7
6
  name: string;
8
7
  createdAt: string;
9
- language: Language;
8
+ language: PoliticiansCommunityResidentsExploreLanguage;
10
9
  }
11
- export interface Type {
10
+ export interface PoliticiansCommunityResidentsExploreType {
12
11
  id: string;
13
12
  emoji: string;
14
13
  createdAt: string;
15
- translations?: TypeTranslation[];
16
- groups?: TypeGroupType[];
14
+ translations?: PoliticiansCommunityResidentsExploreTypeTranslation[];
17
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.95",
3
+ "version": "1.0.96",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [