@weatherboard/cms 0.6.0 → 0.8.0

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 (39) hide show
  1. package/README.md +68 -0
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.cjs.map +4 -4
  4. package/dist/index.mjs +2 -2
  5. package/dist/index.mjs.map +4 -4
  6. package/dist/next.cjs +4 -2
  7. package/dist/next.cjs.map +4 -4
  8. package/dist/next.d.cts +2 -0
  9. package/dist/next.d.mts +2 -0
  10. package/dist/next.d.ts +2 -0
  11. package/dist/next.mjs +4 -2
  12. package/dist/next.mjs.map +4 -4
  13. package/dist/portable/sections.d.cts +43 -6
  14. package/dist/portable/sections.d.mts +43 -6
  15. package/dist/portable/sections.d.ts +43 -6
  16. package/dist/portable/site-content.d.cts +41 -10
  17. package/dist/portable/site-content.d.mts +41 -10
  18. package/dist/portable/site-content.d.ts +41 -10
  19. package/dist/runtime/site-readers.d.cts +164 -0
  20. package/dist/runtime/site-readers.d.mts +164 -0
  21. package/dist/runtime/site-readers.d.ts +164 -0
  22. package/dist/runtime/test-fixtures/saved-documents.d.cts +81 -0
  23. package/dist/runtime/test-fixtures/saved-documents.d.mts +81 -0
  24. package/dist/runtime/test-fixtures/saved-documents.d.ts +81 -0
  25. package/dist/server.cjs +4 -2
  26. package/dist/server.cjs.map +4 -4
  27. package/dist/server.d.cts +2 -0
  28. package/dist/server.d.mts +2 -0
  29. package/dist/server.d.ts +2 -0
  30. package/dist/server.mjs +4 -2
  31. package/dist/server.mjs.map +4 -4
  32. package/dist/site-content.cjs +7 -4
  33. package/dist/site-content.cjs.map +4 -4
  34. package/dist/site-content.d.cts +2 -2
  35. package/dist/site-content.d.mts +2 -2
  36. package/dist/site-content.d.ts +2 -2
  37. package/dist/site-content.mjs +7 -4
  38. package/dist/site-content.mjs.map +4 -4
  39. package/package.json +4 -2
@@ -0,0 +1,164 @@
1
+ import { type CmsQuery, type CmsResolution } from "../contracts/query.cjs";
2
+ import type { CmsReader, CmsReadResult } from "./reader.cjs";
3
+ declare const days: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
4
+ /** Saved shapes copied from schema-base 0.3.0; no schema package is loaded by CMS. */
5
+ type SavedDocument = {
6
+ readonly _id: string;
7
+ readonly _createdAt: string;
8
+ readonly _updatedAt: string;
9
+ readonly _rev: string;
10
+ };
11
+ export type SavedVacancyDocument = SavedDocument & {
12
+ readonly _type: "vacancy";
13
+ readonly title?: string;
14
+ readonly location?: string;
15
+ readonly locationNote?: string;
16
+ readonly summary?: string;
17
+ readonly description?: readonly unknown[];
18
+ readonly jobDescriptionPdf?: {
19
+ readonly _type: "file";
20
+ readonly asset?: {
21
+ readonly _type: "reference";
22
+ readonly _ref: string;
23
+ };
24
+ readonly media?: unknown;
25
+ };
26
+ readonly applyUrl?: string;
27
+ readonly applyEmail?: string;
28
+ readonly status?: "open" | "closed";
29
+ readonly closingDate?: string;
30
+ readonly order?: number;
31
+ };
32
+ export type SavedLocationDocument = SavedDocument & {
33
+ readonly _type: "location";
34
+ readonly name?: string;
35
+ readonly slug?: {
36
+ readonly _type: "slug";
37
+ readonly current?: string;
38
+ };
39
+ readonly addressLines?: readonly string[];
40
+ readonly postcode?: string;
41
+ readonly mapLink?: string;
42
+ readonly coordinates?: {
43
+ readonly _type: "geopoint";
44
+ readonly lat?: number;
45
+ readonly lng?: number;
46
+ readonly alt?: number;
47
+ };
48
+ readonly hours?: {
49
+ readonly _type: "openingHours";
50
+ } & Readonly<Partial<Record<typeof weekDays[number], readonly {
51
+ readonly opens?: string;
52
+ readonly closes?: string;
53
+ }[]>>>;
54
+ readonly phone?: string;
55
+ readonly email?: string;
56
+ };
57
+ export type SavedScheduleStop = {
58
+ readonly _type: "scheduleStop";
59
+ readonly name?: string;
60
+ readonly from?: string;
61
+ readonly to?: string;
62
+ readonly address?: string;
63
+ readonly mapLink?: string;
64
+ };
65
+ export type SavedScheduleDay = {
66
+ readonly _type: "scheduleDay";
67
+ readonly day?: typeof days[number];
68
+ readonly rest?: boolean;
69
+ readonly stops?: readonly (SavedScheduleStop & {
70
+ readonly _key: string;
71
+ })[];
72
+ };
73
+ export type SavedScheduleDocument = SavedDocument & {
74
+ readonly _type: "schedule";
75
+ readonly timeZone?: string;
76
+ readonly days?: readonly (SavedScheduleDay & {
77
+ readonly _key: string;
78
+ })[];
79
+ };
80
+ /** The existing reader owns fetch, timeout, cache policy and diagnostics. */
81
+ export declare function resolveWithFallback<T>(reader: CmsReader, query: CmsQuery<T>, fallback: T): Promise<Omit<CmsReadResult<T>, "source"> & {
82
+ readonly source: "sanity" | "mixed" | "fallback";
83
+ }>;
84
+ export type Vacancy = {
85
+ readonly id: string;
86
+ readonly title: string;
87
+ readonly location: string;
88
+ readonly summary: string | null;
89
+ readonly pdfUrl: string | null;
90
+ readonly applyUrl: string | null;
91
+ readonly applyEmail: string | null;
92
+ };
93
+ export type VacancyValidator = (entry: Record<string, unknown>) => string | null;
94
+ export declare function parseVacancyDocument(raw: unknown, today: string, validate: VacancyValidator): Vacancy | null;
95
+ export declare function parseVacancies(raw: unknown, today: string, validate: VacancyValidator): readonly Vacancy[];
96
+ export declare function vacancyTags(scope: string): readonly string[];
97
+ export declare function openVacanciesQuery(today: string, validate: VacancyValidator): CmsQuery<readonly Vacancy[]>;
98
+ export type LocationFields = {
99
+ readonly id: string;
100
+ readonly label: string;
101
+ readonly addressLines: readonly string[] | null;
102
+ readonly postcode: string | null;
103
+ readonly geo: {
104
+ readonly latitude: number;
105
+ readonly longitude: number;
106
+ } | null;
107
+ readonly telephone: string | null;
108
+ readonly email: string | null;
109
+ readonly hours: Readonly<Record<string, readonly {
110
+ readonly opens: string;
111
+ readonly closes: string;
112
+ }[]>> | null;
113
+ };
114
+ declare const weekDays: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
115
+ export type LocationValidator<T> = (place: T) => T;
116
+ export declare function parseLocationDocument(raw: unknown, fallback: LocationFields, validate: LocationValidator<LocationFields>): CmsResolution<LocationFields>;
117
+ /** The host's location shape may carry more reviewed repository fields than Sanity owns. */
118
+ export type BusinessLocationLike = {
119
+ readonly id: string;
120
+ readonly label: string | null;
121
+ readonly address: {
122
+ readonly streetAddress: readonly string[];
123
+ readonly postalCode: string;
124
+ } | null;
125
+ readonly telephone: string | null;
126
+ readonly email: string | null;
127
+ readonly geo: {
128
+ readonly latitude: number;
129
+ readonly longitude: number;
130
+ } | null;
131
+ readonly hours: unknown;
132
+ };
133
+ export declare function parseBusinessLocation<T extends BusinessLocationLike>(raw: unknown, fallback: T, validate: LocationValidator<T>): CmsResolution<T>;
134
+ export declare function locationTags(scope: string): readonly string[];
135
+ export declare function locationsQuery(validate: LocationValidator<LocationFields>): CmsQuery<readonly LocationFields[]>;
136
+ export declare function businessLocationsQuery<T extends BusinessLocationLike>(validate: LocationValidator<T>): CmsQuery<readonly T[]>;
137
+ export type ScheduleStop<Source = unknown> = {
138
+ readonly id: string;
139
+ readonly name: string;
140
+ readonly from: string;
141
+ readonly to: string;
142
+ readonly address: string | null;
143
+ readonly place: string | null;
144
+ readonly postcode: string | null;
145
+ readonly notes: string | null;
146
+ readonly lat: number | null;
147
+ readonly lng: number | null;
148
+ readonly coordinateSource: Source | null;
149
+ readonly approximate: boolean;
150
+ readonly needsConfirmation: string | null;
151
+ readonly captured: string;
152
+ };
153
+ export type WeeklyScheduleInput<Zone extends string = string, Source = unknown> = {
154
+ readonly timeZone: Zone;
155
+ readonly days: readonly {
156
+ readonly day: typeof days[number];
157
+ readonly rest: boolean;
158
+ readonly stops: readonly ScheduleStop<Source>[];
159
+ }[];
160
+ };
161
+ export declare function parseScheduleDocument<Zone extends string, Source>(raw: unknown, fallback: WeeklyScheduleInput<Zone, Source>): WeeklyScheduleInput<Zone, Source>;
162
+ export declare function scheduleTags(scope: string): readonly string[];
163
+ export declare function scheduleQuery<Zone extends string = string, Source = unknown>(): CmsQuery<WeeklyScheduleInput<Zone, Source>>;
164
+ export {};
@@ -0,0 +1,164 @@
1
+ import { type CmsQuery, type CmsResolution } from "../contracts/query.mjs";
2
+ import type { CmsReader, CmsReadResult } from "./reader.mjs";
3
+ declare const days: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
4
+ /** Saved shapes copied from schema-base 0.3.0; no schema package is loaded by CMS. */
5
+ type SavedDocument = {
6
+ readonly _id: string;
7
+ readonly _createdAt: string;
8
+ readonly _updatedAt: string;
9
+ readonly _rev: string;
10
+ };
11
+ export type SavedVacancyDocument = SavedDocument & {
12
+ readonly _type: "vacancy";
13
+ readonly title?: string;
14
+ readonly location?: string;
15
+ readonly locationNote?: string;
16
+ readonly summary?: string;
17
+ readonly description?: readonly unknown[];
18
+ readonly jobDescriptionPdf?: {
19
+ readonly _type: "file";
20
+ readonly asset?: {
21
+ readonly _type: "reference";
22
+ readonly _ref: string;
23
+ };
24
+ readonly media?: unknown;
25
+ };
26
+ readonly applyUrl?: string;
27
+ readonly applyEmail?: string;
28
+ readonly status?: "open" | "closed";
29
+ readonly closingDate?: string;
30
+ readonly order?: number;
31
+ };
32
+ export type SavedLocationDocument = SavedDocument & {
33
+ readonly _type: "location";
34
+ readonly name?: string;
35
+ readonly slug?: {
36
+ readonly _type: "slug";
37
+ readonly current?: string;
38
+ };
39
+ readonly addressLines?: readonly string[];
40
+ readonly postcode?: string;
41
+ readonly mapLink?: string;
42
+ readonly coordinates?: {
43
+ readonly _type: "geopoint";
44
+ readonly lat?: number;
45
+ readonly lng?: number;
46
+ readonly alt?: number;
47
+ };
48
+ readonly hours?: {
49
+ readonly _type: "openingHours";
50
+ } & Readonly<Partial<Record<typeof weekDays[number], readonly {
51
+ readonly opens?: string;
52
+ readonly closes?: string;
53
+ }[]>>>;
54
+ readonly phone?: string;
55
+ readonly email?: string;
56
+ };
57
+ export type SavedScheduleStop = {
58
+ readonly _type: "scheduleStop";
59
+ readonly name?: string;
60
+ readonly from?: string;
61
+ readonly to?: string;
62
+ readonly address?: string;
63
+ readonly mapLink?: string;
64
+ };
65
+ export type SavedScheduleDay = {
66
+ readonly _type: "scheduleDay";
67
+ readonly day?: typeof days[number];
68
+ readonly rest?: boolean;
69
+ readonly stops?: readonly (SavedScheduleStop & {
70
+ readonly _key: string;
71
+ })[];
72
+ };
73
+ export type SavedScheduleDocument = SavedDocument & {
74
+ readonly _type: "schedule";
75
+ readonly timeZone?: string;
76
+ readonly days?: readonly (SavedScheduleDay & {
77
+ readonly _key: string;
78
+ })[];
79
+ };
80
+ /** The existing reader owns fetch, timeout, cache policy and diagnostics. */
81
+ export declare function resolveWithFallback<T>(reader: CmsReader, query: CmsQuery<T>, fallback: T): Promise<Omit<CmsReadResult<T>, "source"> & {
82
+ readonly source: "sanity" | "mixed" | "fallback";
83
+ }>;
84
+ export type Vacancy = {
85
+ readonly id: string;
86
+ readonly title: string;
87
+ readonly location: string;
88
+ readonly summary: string | null;
89
+ readonly pdfUrl: string | null;
90
+ readonly applyUrl: string | null;
91
+ readonly applyEmail: string | null;
92
+ };
93
+ export type VacancyValidator = (entry: Record<string, unknown>) => string | null;
94
+ export declare function parseVacancyDocument(raw: unknown, today: string, validate: VacancyValidator): Vacancy | null;
95
+ export declare function parseVacancies(raw: unknown, today: string, validate: VacancyValidator): readonly Vacancy[];
96
+ export declare function vacancyTags(scope: string): readonly string[];
97
+ export declare function openVacanciesQuery(today: string, validate: VacancyValidator): CmsQuery<readonly Vacancy[]>;
98
+ export type LocationFields = {
99
+ readonly id: string;
100
+ readonly label: string;
101
+ readonly addressLines: readonly string[] | null;
102
+ readonly postcode: string | null;
103
+ readonly geo: {
104
+ readonly latitude: number;
105
+ readonly longitude: number;
106
+ } | null;
107
+ readonly telephone: string | null;
108
+ readonly email: string | null;
109
+ readonly hours: Readonly<Record<string, readonly {
110
+ readonly opens: string;
111
+ readonly closes: string;
112
+ }[]>> | null;
113
+ };
114
+ declare const weekDays: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
115
+ export type LocationValidator<T> = (place: T) => T;
116
+ export declare function parseLocationDocument(raw: unknown, fallback: LocationFields, validate: LocationValidator<LocationFields>): CmsResolution<LocationFields>;
117
+ /** The host's location shape may carry more reviewed repository fields than Sanity owns. */
118
+ export type BusinessLocationLike = {
119
+ readonly id: string;
120
+ readonly label: string | null;
121
+ readonly address: {
122
+ readonly streetAddress: readonly string[];
123
+ readonly postalCode: string;
124
+ } | null;
125
+ readonly telephone: string | null;
126
+ readonly email: string | null;
127
+ readonly geo: {
128
+ readonly latitude: number;
129
+ readonly longitude: number;
130
+ } | null;
131
+ readonly hours: unknown;
132
+ };
133
+ export declare function parseBusinessLocation<T extends BusinessLocationLike>(raw: unknown, fallback: T, validate: LocationValidator<T>): CmsResolution<T>;
134
+ export declare function locationTags(scope: string): readonly string[];
135
+ export declare function locationsQuery(validate: LocationValidator<LocationFields>): CmsQuery<readonly LocationFields[]>;
136
+ export declare function businessLocationsQuery<T extends BusinessLocationLike>(validate: LocationValidator<T>): CmsQuery<readonly T[]>;
137
+ export type ScheduleStop<Source = unknown> = {
138
+ readonly id: string;
139
+ readonly name: string;
140
+ readonly from: string;
141
+ readonly to: string;
142
+ readonly address: string | null;
143
+ readonly place: string | null;
144
+ readonly postcode: string | null;
145
+ readonly notes: string | null;
146
+ readonly lat: number | null;
147
+ readonly lng: number | null;
148
+ readonly coordinateSource: Source | null;
149
+ readonly approximate: boolean;
150
+ readonly needsConfirmation: string | null;
151
+ readonly captured: string;
152
+ };
153
+ export type WeeklyScheduleInput<Zone extends string = string, Source = unknown> = {
154
+ readonly timeZone: Zone;
155
+ readonly days: readonly {
156
+ readonly day: typeof days[number];
157
+ readonly rest: boolean;
158
+ readonly stops: readonly ScheduleStop<Source>[];
159
+ }[];
160
+ };
161
+ export declare function parseScheduleDocument<Zone extends string, Source>(raw: unknown, fallback: WeeklyScheduleInput<Zone, Source>): WeeklyScheduleInput<Zone, Source>;
162
+ export declare function scheduleTags(scope: string): readonly string[];
163
+ export declare function scheduleQuery<Zone extends string = string, Source = unknown>(): CmsQuery<WeeklyScheduleInput<Zone, Source>>;
164
+ export {};
@@ -0,0 +1,164 @@
1
+ import { type CmsQuery, type CmsResolution } from "../contracts/query.js";
2
+ import type { CmsReader, CmsReadResult } from "./reader.js";
3
+ declare const days: readonly ["mon", "tue", "wed", "thu", "fri", "sat", "sun"];
4
+ /** Saved shapes copied from schema-base 0.3.0; no schema package is loaded by CMS. */
5
+ type SavedDocument = {
6
+ readonly _id: string;
7
+ readonly _createdAt: string;
8
+ readonly _updatedAt: string;
9
+ readonly _rev: string;
10
+ };
11
+ export type SavedVacancyDocument = SavedDocument & {
12
+ readonly _type: "vacancy";
13
+ readonly title?: string;
14
+ readonly location?: string;
15
+ readonly locationNote?: string;
16
+ readonly summary?: string;
17
+ readonly description?: readonly unknown[];
18
+ readonly jobDescriptionPdf?: {
19
+ readonly _type: "file";
20
+ readonly asset?: {
21
+ readonly _type: "reference";
22
+ readonly _ref: string;
23
+ };
24
+ readonly media?: unknown;
25
+ };
26
+ readonly applyUrl?: string;
27
+ readonly applyEmail?: string;
28
+ readonly status?: "open" | "closed";
29
+ readonly closingDate?: string;
30
+ readonly order?: number;
31
+ };
32
+ export type SavedLocationDocument = SavedDocument & {
33
+ readonly _type: "location";
34
+ readonly name?: string;
35
+ readonly slug?: {
36
+ readonly _type: "slug";
37
+ readonly current?: string;
38
+ };
39
+ readonly addressLines?: readonly string[];
40
+ readonly postcode?: string;
41
+ readonly mapLink?: string;
42
+ readonly coordinates?: {
43
+ readonly _type: "geopoint";
44
+ readonly lat?: number;
45
+ readonly lng?: number;
46
+ readonly alt?: number;
47
+ };
48
+ readonly hours?: {
49
+ readonly _type: "openingHours";
50
+ } & Readonly<Partial<Record<typeof weekDays[number], readonly {
51
+ readonly opens?: string;
52
+ readonly closes?: string;
53
+ }[]>>>;
54
+ readonly phone?: string;
55
+ readonly email?: string;
56
+ };
57
+ export type SavedScheduleStop = {
58
+ readonly _type: "scheduleStop";
59
+ readonly name?: string;
60
+ readonly from?: string;
61
+ readonly to?: string;
62
+ readonly address?: string;
63
+ readonly mapLink?: string;
64
+ };
65
+ export type SavedScheduleDay = {
66
+ readonly _type: "scheduleDay";
67
+ readonly day?: typeof days[number];
68
+ readonly rest?: boolean;
69
+ readonly stops?: readonly (SavedScheduleStop & {
70
+ readonly _key: string;
71
+ })[];
72
+ };
73
+ export type SavedScheduleDocument = SavedDocument & {
74
+ readonly _type: "schedule";
75
+ readonly timeZone?: string;
76
+ readonly days?: readonly (SavedScheduleDay & {
77
+ readonly _key: string;
78
+ })[];
79
+ };
80
+ /** The existing reader owns fetch, timeout, cache policy and diagnostics. */
81
+ export declare function resolveWithFallback<T>(reader: CmsReader, query: CmsQuery<T>, fallback: T): Promise<Omit<CmsReadResult<T>, "source"> & {
82
+ readonly source: "sanity" | "mixed" | "fallback";
83
+ }>;
84
+ export type Vacancy = {
85
+ readonly id: string;
86
+ readonly title: string;
87
+ readonly location: string;
88
+ readonly summary: string | null;
89
+ readonly pdfUrl: string | null;
90
+ readonly applyUrl: string | null;
91
+ readonly applyEmail: string | null;
92
+ };
93
+ export type VacancyValidator = (entry: Record<string, unknown>) => string | null;
94
+ export declare function parseVacancyDocument(raw: unknown, today: string, validate: VacancyValidator): Vacancy | null;
95
+ export declare function parseVacancies(raw: unknown, today: string, validate: VacancyValidator): readonly Vacancy[];
96
+ export declare function vacancyTags(scope: string): readonly string[];
97
+ export declare function openVacanciesQuery(today: string, validate: VacancyValidator): CmsQuery<readonly Vacancy[]>;
98
+ export type LocationFields = {
99
+ readonly id: string;
100
+ readonly label: string;
101
+ readonly addressLines: readonly string[] | null;
102
+ readonly postcode: string | null;
103
+ readonly geo: {
104
+ readonly latitude: number;
105
+ readonly longitude: number;
106
+ } | null;
107
+ readonly telephone: string | null;
108
+ readonly email: string | null;
109
+ readonly hours: Readonly<Record<string, readonly {
110
+ readonly opens: string;
111
+ readonly closes: string;
112
+ }[]>> | null;
113
+ };
114
+ declare const weekDays: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
115
+ export type LocationValidator<T> = (place: T) => T;
116
+ export declare function parseLocationDocument(raw: unknown, fallback: LocationFields, validate: LocationValidator<LocationFields>): CmsResolution<LocationFields>;
117
+ /** The host's location shape may carry more reviewed repository fields than Sanity owns. */
118
+ export type BusinessLocationLike = {
119
+ readonly id: string;
120
+ readonly label: string | null;
121
+ readonly address: {
122
+ readonly streetAddress: readonly string[];
123
+ readonly postalCode: string;
124
+ } | null;
125
+ readonly telephone: string | null;
126
+ readonly email: string | null;
127
+ readonly geo: {
128
+ readonly latitude: number;
129
+ readonly longitude: number;
130
+ } | null;
131
+ readonly hours: unknown;
132
+ };
133
+ export declare function parseBusinessLocation<T extends BusinessLocationLike>(raw: unknown, fallback: T, validate: LocationValidator<T>): CmsResolution<T>;
134
+ export declare function locationTags(scope: string): readonly string[];
135
+ export declare function locationsQuery(validate: LocationValidator<LocationFields>): CmsQuery<readonly LocationFields[]>;
136
+ export declare function businessLocationsQuery<T extends BusinessLocationLike>(validate: LocationValidator<T>): CmsQuery<readonly T[]>;
137
+ export type ScheduleStop<Source = unknown> = {
138
+ readonly id: string;
139
+ readonly name: string;
140
+ readonly from: string;
141
+ readonly to: string;
142
+ readonly address: string | null;
143
+ readonly place: string | null;
144
+ readonly postcode: string | null;
145
+ readonly notes: string | null;
146
+ readonly lat: number | null;
147
+ readonly lng: number | null;
148
+ readonly coordinateSource: Source | null;
149
+ readonly approximate: boolean;
150
+ readonly needsConfirmation: string | null;
151
+ readonly captured: string;
152
+ };
153
+ export type WeeklyScheduleInput<Zone extends string = string, Source = unknown> = {
154
+ readonly timeZone: Zone;
155
+ readonly days: readonly {
156
+ readonly day: typeof days[number];
157
+ readonly rest: boolean;
158
+ readonly stops: readonly ScheduleStop<Source>[];
159
+ }[];
160
+ };
161
+ export declare function parseScheduleDocument<Zone extends string, Source>(raw: unknown, fallback: WeeklyScheduleInput<Zone, Source>): WeeklyScheduleInput<Zone, Source>;
162
+ export declare function scheduleTags(scope: string): readonly string[];
163
+ export declare function scheduleQuery<Zone extends string = string, Source = unknown>(): CmsQuery<WeeklyScheduleInput<Zone, Source>>;
164
+ export {};
@@ -0,0 +1,81 @@
1
+ export declare const savedVacancy: {
2
+ readonly _id: "vacancy_7e57";
3
+ readonly _type: "vacancy";
4
+ readonly title: "Assistant";
5
+ readonly location: "Other";
6
+ readonly locationNote: "Depot";
7
+ readonly summary: "Day shift";
8
+ readonly description: readonly [];
9
+ readonly jobDescriptionPdf: {
10
+ readonly _type: "file";
11
+ readonly asset: {
12
+ readonly _type: "reference";
13
+ readonly _ref: "file-neutral-pdf";
14
+ };
15
+ readonly media: null;
16
+ };
17
+ readonly applyUrl: "https://example.test/apply";
18
+ readonly applyEmail: "apply@example.test";
19
+ readonly status: "open";
20
+ readonly closingDate: "2026-10-20";
21
+ readonly order: 1;
22
+ readonly _createdAt: string;
23
+ readonly _updatedAt: string;
24
+ readonly _rev: string;
25
+ };
26
+ export declare const savedLocation: {
27
+ readonly _id: "location_7e57";
28
+ readonly _type: "location";
29
+ readonly name: "Depot";
30
+ readonly slug: {
31
+ readonly _type: "slug";
32
+ readonly current: "depot";
33
+ };
34
+ readonly addressLines: readonly ["1 Example Road"];
35
+ readonly postcode: "AB1 2CD";
36
+ readonly mapLink: "https://example.test/map";
37
+ readonly coordinates: {
38
+ readonly _type: "geopoint";
39
+ readonly lat: 51.5;
40
+ readonly lng: -0.1;
41
+ readonly alt: 0;
42
+ };
43
+ readonly hours: {
44
+ readonly _type: "openingHours";
45
+ readonly monday: readonly [];
46
+ readonly tuesday: readonly [];
47
+ readonly wednesday: readonly [];
48
+ readonly thursday: readonly [];
49
+ readonly friday: readonly [];
50
+ readonly saturday: readonly [];
51
+ readonly sunday: readonly [];
52
+ };
53
+ readonly phone: "+44 20 7000 0000";
54
+ readonly email: "hello@example.test";
55
+ readonly _createdAt: string;
56
+ readonly _updatedAt: string;
57
+ readonly _rev: string;
58
+ };
59
+ export declare const savedSchedule: {
60
+ readonly _id: "schedule";
61
+ readonly _type: "schedule";
62
+ readonly timeZone: "Europe/London";
63
+ readonly days: {
64
+ _key: string;
65
+ _type: "scheduleDay";
66
+ day: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
67
+ rest: false;
68
+ stops: {
69
+ _key: string;
70
+ _type: "scheduleStop";
71
+ name: string;
72
+ from: string;
73
+ to: string;
74
+ address: string;
75
+ mapLink: string;
76
+ }[];
77
+ }[];
78
+ readonly _createdAt: string;
79
+ readonly _updatedAt: string;
80
+ readonly _rev: string;
81
+ };
@@ -0,0 +1,81 @@
1
+ export declare const savedVacancy: {
2
+ readonly _id: "vacancy_7e57";
3
+ readonly _type: "vacancy";
4
+ readonly title: "Assistant";
5
+ readonly location: "Other";
6
+ readonly locationNote: "Depot";
7
+ readonly summary: "Day shift";
8
+ readonly description: readonly [];
9
+ readonly jobDescriptionPdf: {
10
+ readonly _type: "file";
11
+ readonly asset: {
12
+ readonly _type: "reference";
13
+ readonly _ref: "file-neutral-pdf";
14
+ };
15
+ readonly media: null;
16
+ };
17
+ readonly applyUrl: "https://example.test/apply";
18
+ readonly applyEmail: "apply@example.test";
19
+ readonly status: "open";
20
+ readonly closingDate: "2026-10-20";
21
+ readonly order: 1;
22
+ readonly _createdAt: string;
23
+ readonly _updatedAt: string;
24
+ readonly _rev: string;
25
+ };
26
+ export declare const savedLocation: {
27
+ readonly _id: "location_7e57";
28
+ readonly _type: "location";
29
+ readonly name: "Depot";
30
+ readonly slug: {
31
+ readonly _type: "slug";
32
+ readonly current: "depot";
33
+ };
34
+ readonly addressLines: readonly ["1 Example Road"];
35
+ readonly postcode: "AB1 2CD";
36
+ readonly mapLink: "https://example.test/map";
37
+ readonly coordinates: {
38
+ readonly _type: "geopoint";
39
+ readonly lat: 51.5;
40
+ readonly lng: -0.1;
41
+ readonly alt: 0;
42
+ };
43
+ readonly hours: {
44
+ readonly _type: "openingHours";
45
+ readonly monday: readonly [];
46
+ readonly tuesday: readonly [];
47
+ readonly wednesday: readonly [];
48
+ readonly thursday: readonly [];
49
+ readonly friday: readonly [];
50
+ readonly saturday: readonly [];
51
+ readonly sunday: readonly [];
52
+ };
53
+ readonly phone: "+44 20 7000 0000";
54
+ readonly email: "hello@example.test";
55
+ readonly _createdAt: string;
56
+ readonly _updatedAt: string;
57
+ readonly _rev: string;
58
+ };
59
+ export declare const savedSchedule: {
60
+ readonly _id: "schedule";
61
+ readonly _type: "schedule";
62
+ readonly timeZone: "Europe/London";
63
+ readonly days: {
64
+ _key: string;
65
+ _type: "scheduleDay";
66
+ day: "mon" | "tue" | "wed" | "thu" | "fri" | "sat" | "sun";
67
+ rest: false;
68
+ stops: {
69
+ _key: string;
70
+ _type: "scheduleStop";
71
+ name: string;
72
+ from: string;
73
+ to: string;
74
+ address: string;
75
+ mapLink: string;
76
+ }[];
77
+ }[];
78
+ readonly _createdAt: string;
79
+ readonly _updatedAt: string;
80
+ readonly _rev: string;
81
+ };