@uniteverses/shared 1.0.90 → 1.0.92

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.
@@ -39,3 +39,7 @@ export interface Size {
39
39
  label: string;
40
40
  createdAt: string | Date;
41
41
  }
42
+ export interface ImageUploadResult {
43
+ storagePath: string;
44
+ url: string;
45
+ }
@@ -46,3 +46,34 @@ export interface UpdateOrganizationInput {
46
46
  addresses?: Omit<OrganizationAddress, "id" | "organizationId" | "createdAt">[];
47
47
  phones?: Omit<OrganizationPhone, "id" | "organizationId" | "createdAt">[];
48
48
  }
49
+ export interface BrowseOrg {
50
+ id: string;
51
+ name: string;
52
+ description?: string | null;
53
+ 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[];
66
+ types?: {
67
+ type: Type;
68
+ }[];
69
+ /** Real count of active events for this org, returned by the API. */
70
+ _count?: {
71
+ events: number;
72
+ };
73
+ }
74
+ export interface BrowseCounts {
75
+ events: number;
76
+ orgs: number;
77
+ posts: number;
78
+ deals: number;
79
+ }
@@ -1,4 +1,4 @@
1
- import type { Language, Organization, Type, OrgEventOccurrence } from "..";
1
+ import type { Language, Organization, Type, OrgEventOccurrence, BrowseOrg } from "..";
2
2
  export interface OrgEventTranslation {
3
3
  id: string;
4
4
  eventId: string;
@@ -49,3 +49,9 @@ export interface UpdateOrgEventInput {
49
49
  imageStoragePath?: string | null;
50
50
  typeIds?: string[];
51
51
  }
52
+ export interface BrowseEvent extends OrgEvent {
53
+ organization: BrowseOrg;
54
+ nextOccurrenceAt?: string | null;
55
+ /** Cursor for fetching the next page of `occurrences` on this event. Null when fully loaded. */
56
+ nextOccurrencesCursor?: string | null;
57
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.90",
3
+ "version": "1.0.92",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [