@uniteverses/shared 1.0.89 → 1.0.91

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,2 +1,5 @@
1
1
  export declare const ORGS_PAGE_SIZE = 20;
2
2
  export declare const ORGS_MAX_LIMIT = 200;
3
+ export declare const ORG_FILTERS: {
4
+ readonly ANY: "any";
5
+ };
@@ -1,5 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ORGS_MAX_LIMIT = exports.ORGS_PAGE_SIZE = void 0;
3
+ exports.ORG_FILTERS = exports.ORGS_MAX_LIMIT = exports.ORGS_PAGE_SIZE = void 0;
4
4
  exports.ORGS_PAGE_SIZE = 20;
5
5
  exports.ORGS_MAX_LIMIT = 200;
6
+ // Sentinel VALUE for the `organizationId` filter: match any org-affiliated
7
+ // record (both sides reference this — keep it out of magic strings).
8
+ exports.ORG_FILTERS = {
9
+ ANY: "any",
10
+ };
@@ -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
+ }
@@ -1 +1,4 @@
1
1
  export declare const TOPIC_NESTING_DEPTH = 3;
2
+ export declare const TOPIC_FILTERS: {
3
+ readonly NONE: "none";
4
+ };
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TOPIC_NESTING_DEPTH = void 0;
3
+ exports.TOPIC_FILTERS = exports.TOPIC_NESTING_DEPTH = void 0;
4
4
  exports.TOPIC_NESTING_DEPTH = 3;
5
+ // Sentinel VALUE for the `topicId` filter: match records with no topic.
6
+ exports.TOPIC_FILTERS = {
7
+ NONE: "none",
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniteverses/shared",
3
- "version": "1.0.89",
3
+ "version": "1.0.91",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [