@uniteverses/shared 1.0.212 → 1.0.214
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/dist/domains/politicians/community/residents/explore/calendar/constants.d.ts +9 -0
- package/dist/domains/politicians/community/residents/explore/calendar/constants.js +18 -0
- package/dist/domains/politicians/community/residents/explore/calendar/types.d.ts +31 -0
- package/dist/domains/politicians/community/residents/explore/calendar/types.js +7 -0
- package/dist/domains/politicians/community/residents/explore/index.d.ts +2 -0
- package/dist/domains/politicians/community/residents/explore/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const POLITICIANS_COMMUNITY_RESIDENTS_EXPLORE_CALENDAR_SOURCES: {
|
|
2
|
+
readonly EVENTS: "events";
|
|
3
|
+
readonly DEALS: "deals";
|
|
4
|
+
readonly NEWS: "news";
|
|
5
|
+
};
|
|
6
|
+
export declare const POLITICIANS_COMMUNITY_RESIDENTS_EXPLORE_CALENDAR_EDGES: {
|
|
7
|
+
readonly START: "start";
|
|
8
|
+
readonly END: "end";
|
|
9
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.POLITICIANS_COMMUNITY_RESIDENTS_EXPLORE_CALENDAR_EDGES = exports.POLITICIANS_COMMUNITY_RESIDENTS_EXPLORE_CALENDAR_SOURCES = void 0;
|
|
4
|
+
// Wire VALUES for the calendar contract. Both sides reference these as TS
|
|
5
|
+
// literals — the api stamps `source`/`edge` onto every entry, the website keys
|
|
6
|
+
// its source registry and its "Starts / Ends" labels off them — so they are
|
|
7
|
+
// named once here and imported, never hand-typed. `satisfies` pins each member
|
|
8
|
+
// to the union in `types.ts`, so adding or renaming one breaks whichever side
|
|
9
|
+
// did not follow.
|
|
10
|
+
exports.POLITICIANS_COMMUNITY_RESIDENTS_EXPLORE_CALENDAR_SOURCES = {
|
|
11
|
+
EVENTS: "events",
|
|
12
|
+
DEALS: "deals",
|
|
13
|
+
NEWS: "news",
|
|
14
|
+
};
|
|
15
|
+
exports.POLITICIANS_COMMUNITY_RESIDENTS_EXPLORE_CALENDAR_EDGES = {
|
|
16
|
+
START: "start",
|
|
17
|
+
END: "end",
|
|
18
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type PoliticiansCommunityResidentsExploreCalendarSource = "events" | "deals" | "news";
|
|
2
|
+
export type PoliticiansCommunityResidentsExploreCalendarEdge = "start" | "end";
|
|
3
|
+
export interface PoliticiansCommunityResidentsExploreCalendarEntryTranslation {
|
|
4
|
+
name: string;
|
|
5
|
+
language: {
|
|
6
|
+
code: string;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface PoliticiansCommunityResidentsExploreCalendarEntry {
|
|
10
|
+
key: string;
|
|
11
|
+
id: string;
|
|
12
|
+
parentId?: string | null;
|
|
13
|
+
source: PoliticiansCommunityResidentsExploreCalendarSource;
|
|
14
|
+
edge: PoliticiansCommunityResidentsExploreCalendarEdge;
|
|
15
|
+
at: string;
|
|
16
|
+
name: string;
|
|
17
|
+
translations?: PoliticiansCommunityResidentsExploreCalendarEntryTranslation[];
|
|
18
|
+
organization?: {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
} | null;
|
|
22
|
+
}
|
|
23
|
+
export interface PoliticiansCommunityResidentsExploreCalendarEntryList {
|
|
24
|
+
entries: PoliticiansCommunityResidentsExploreCalendarEntry[];
|
|
25
|
+
truncated: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface PoliticiansCommunityResidentsExploreCalendarListQuery {
|
|
28
|
+
from: string;
|
|
29
|
+
to: string;
|
|
30
|
+
organizationId?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// The generic calendar wire shape, shared by every dated dataset in the scope
|
|
3
|
+
// (event occurrences, deals, news) the same way `map/types.ts` is shared by
|
|
4
|
+
// every plotted one. Each model's `/calendar` endpoint returns THIS shape, so
|
|
5
|
+
// the client merges them on one path and a new dated model plugs in by adding
|
|
6
|
+
// one endpoint plus one registry key.
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6,6 +6,8 @@ export * from "./flyer/types";
|
|
|
6
6
|
export * from "./organization_translation/types";
|
|
7
7
|
export * from "./organization/types";
|
|
8
8
|
export * from "./map/types";
|
|
9
|
+
export * from "./calendar/types";
|
|
10
|
+
export * from "./calendar/constants";
|
|
9
11
|
export * from "./organization_member/types";
|
|
10
12
|
export * from "./organization_event/types";
|
|
11
13
|
export * from "./organization_event_occurrence/types";
|
|
@@ -25,6 +25,8 @@ __exportStar(require("./flyer/types"), exports);
|
|
|
25
25
|
__exportStar(require("./organization_translation/types"), exports);
|
|
26
26
|
__exportStar(require("./organization/types"), exports);
|
|
27
27
|
__exportStar(require("./map/types"), exports);
|
|
28
|
+
__exportStar(require("./calendar/types"), exports);
|
|
29
|
+
__exportStar(require("./calendar/constants"), exports);
|
|
28
30
|
__exportStar(require("./organization_member/types"), exports);
|
|
29
31
|
__exportStar(require("./organization_event/types"), exports);
|
|
30
32
|
__exportStar(require("./organization_event_occurrence/types"), exports);
|