@prismicio/client 6.7.3 → 6.9.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.
- package/dist/ForbiddenError.d.ts +11 -11
- package/dist/NotFoundError.d.ts +3 -3
- package/dist/ParsingError.d.ts +12 -12
- package/dist/PrismicError.d.ts +5 -5
- package/dist/buildQueryURL.d.ts +130 -130
- package/dist/client.cjs +30 -6
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +943 -929
- package/dist/client.js +30 -6
- package/dist/client.js.map +1 -1
- package/dist/cookie.d.ts +5 -5
- package/dist/getGraphQLEndpoint.d.ts +9 -9
- package/dist/getRepositoryEndpoint.d.ts +10 -10
- package/dist/getRepositoryName.d.ts +13 -13
- package/dist/index.d.ts +88 -88
- package/dist/isRepositoryEndpoint.d.ts +10 -10
- package/dist/isRepositoryName.d.ts +9 -9
- package/dist/lib/appendPredicates.d.ts +18 -18
- package/dist/lib/castArray.d.ts +11 -11
- package/dist/lib/castThunk.d.ts +10 -10
- package/dist/lib/findMasterRef.d.ts +10 -10
- package/dist/lib/findRef.d.ts +13 -13
- package/dist/lib/findRefByID.d.ts +11 -11
- package/dist/lib/findRefByLabel.d.ts +11 -11
- package/dist/lib/getPreviewCookie.d.ts +9 -9
- package/dist/lib/minifyGraphQLQuery.d.ts +8 -8
- package/dist/lib/orElseThrow.d.ts +11 -11
- package/dist/predicate.d.ts +209 -209
- package/dist/types.d.ts +165 -156
- package/package.json +4 -4
- package/src/client.ts +66 -6
- package/src/types.ts +20 -5
package/dist/predicate.d.ts
CHANGED
|
@@ -1,209 +1,209 @@
|
|
|
1
|
-
export declare const predicate: {
|
|
2
|
-
/**
|
|
3
|
-
* The `at` predicate checks that the path matches the described value
|
|
4
|
-
* exactly. It takes a single value for a field or an array (only for tags).
|
|
5
|
-
*
|
|
6
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#at}
|
|
7
|
-
*/
|
|
8
|
-
at: (path: string, value: string | number | boolean | string[] | Date) => string;
|
|
9
|
-
/**
|
|
10
|
-
* The `not` predicate checks that the path doesn't match the provided value
|
|
11
|
-
* exactly. It takes a single value for a field or an array (only for tags).
|
|
12
|
-
*
|
|
13
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#not}
|
|
14
|
-
*/
|
|
15
|
-
not: (path: string, value: string | number | boolean | string[] | Date) => string;
|
|
16
|
-
/**
|
|
17
|
-
* The `any` predicate takes an array of values. It works exactly the same way
|
|
18
|
-
* as the `at` operator, but checks whether the fragment matches any of the
|
|
19
|
-
* values in the array.
|
|
20
|
-
*
|
|
21
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#any}
|
|
22
|
-
*/
|
|
23
|
-
any: (path: string, values: (string | number | boolean | Date)[]) => string;
|
|
24
|
-
/**
|
|
25
|
-
* The `in` predicate is used specifically to retrieve an array of documents
|
|
26
|
-
* by their IDs or UIDs. This predicate is much more efficient at this than
|
|
27
|
-
* the any predicate.
|
|
28
|
-
*
|
|
29
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#in}
|
|
30
|
-
*/
|
|
31
|
-
in: (path: string, values: string[]) => string;
|
|
32
|
-
/**
|
|
33
|
-
* The `fulltext` predicate provides two capabilities:
|
|
34
|
-
*
|
|
35
|
-
* 1. Checking if a certain string is anywhere inside a document (this is what
|
|
36
|
-
* you should use to make your project's search engine feature)
|
|
37
|
-
* 2. Checking if the string is contained inside a specific custom type’s Rich
|
|
38
|
-
* Text or Key Text fragment.
|
|
39
|
-
*
|
|
40
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#fulltext}
|
|
41
|
-
*/
|
|
42
|
-
fulltext: (path: string, searchTerms: string) => string;
|
|
43
|
-
/**
|
|
44
|
-
* The `has` predicate checks whether a fragment has a value. It will return
|
|
45
|
-
* all the documents of the specified type that contain a value for the
|
|
46
|
-
* specified field.
|
|
47
|
-
*
|
|
48
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#has}
|
|
49
|
-
*/
|
|
50
|
-
has: (path: string) => string;
|
|
51
|
-
/**
|
|
52
|
-
* The `missing` predicate checks if a fragment doesn't have a value. It will
|
|
53
|
-
* return all the documents of the specified type that do not contain a value
|
|
54
|
-
* for the specified field.
|
|
55
|
-
*
|
|
56
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#missing}
|
|
57
|
-
*/
|
|
58
|
-
missing: (path: string) => string;
|
|
59
|
-
/**
|
|
60
|
-
* The `similar` predicate takes the ID of a document, and returns a list of
|
|
61
|
-
* documents with similar content. This allows you to build an automated
|
|
62
|
-
* content discovery feature (for example, a "Related posts" section).
|
|
63
|
-
*
|
|
64
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#similar}
|
|
65
|
-
*/
|
|
66
|
-
similar: (id: string, value: number) => string;
|
|
67
|
-
/**
|
|
68
|
-
* The `geopoint.near` predicate checks that the value in the path is within
|
|
69
|
-
* the radius of the given coordinates.
|
|
70
|
-
*
|
|
71
|
-
* This predicate will only work for a GeoPoint field.
|
|
72
|
-
*
|
|
73
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#near}
|
|
74
|
-
*/
|
|
75
|
-
geopointNear: (path: string, latitude: number, longitude: number, radius: number) => string;
|
|
76
|
-
/**
|
|
77
|
-
* The `number.lt` predicate checks that the value in the number field is less
|
|
78
|
-
* than the value passed into the predicate.
|
|
79
|
-
*
|
|
80
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#lt-less-than}
|
|
81
|
-
*/
|
|
82
|
-
numberLessThan: (path: string, value: number) => string;
|
|
83
|
-
/**
|
|
84
|
-
* The `number.gt` predicate checks that the value in the number field is
|
|
85
|
-
* greater than the value passed into the predicate.
|
|
86
|
-
*
|
|
87
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#gt-greater-than}
|
|
88
|
-
*/
|
|
89
|
-
numberGreaterThan: (path: string, value: number) => string;
|
|
90
|
-
/**
|
|
91
|
-
* The `number.inRange` predicate checks that the value in the path is within
|
|
92
|
-
* the two values passed into the predicate.
|
|
93
|
-
*
|
|
94
|
-
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#inrange}
|
|
95
|
-
*/
|
|
96
|
-
numberInRange: (path: string, lowerLimit: number, upperLimit: number) => string;
|
|
97
|
-
/**
|
|
98
|
-
* The `date.after` predicate checks that the value in the path is after the
|
|
99
|
-
* date value passed into the predicate.
|
|
100
|
-
*
|
|
101
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#after}
|
|
102
|
-
*/
|
|
103
|
-
dateAfter: (path: string, date: string | number | Date) => string;
|
|
104
|
-
/**
|
|
105
|
-
* The `date.before` predicate checks that the value in the path is before the
|
|
106
|
-
* date value passed into the predicate.
|
|
107
|
-
*
|
|
108
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#before}
|
|
109
|
-
*/
|
|
110
|
-
dateBefore: (path: string, date: string | number | Date) => string;
|
|
111
|
-
/**
|
|
112
|
-
* The `date.between` predicate checks that the value in the path is within
|
|
113
|
-
* the date values passed into the predicate.
|
|
114
|
-
*
|
|
115
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#between}
|
|
116
|
-
*/
|
|
117
|
-
dateBetween: (path: string, startDate: string | number | Date, endDate: string | number | Date) => string;
|
|
118
|
-
/**
|
|
119
|
-
* The `date.day-of-month` predicate checks that the value in the path is
|
|
120
|
-
* equal to the day of the month passed into the predicate.
|
|
121
|
-
*
|
|
122
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofmonth}
|
|
123
|
-
*/
|
|
124
|
-
dateDayOfMonth: (path: string, day: number) => string;
|
|
125
|
-
/**
|
|
126
|
-
* The `date.day-of-month-after` predicate checks that the value in the path
|
|
127
|
-
* is after the day of the month passed into the predicate.
|
|
128
|
-
*
|
|
129
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofmonthafter}
|
|
130
|
-
*/
|
|
131
|
-
dateDayOfMonthAfter: (path: string, day: number) => string;
|
|
132
|
-
/**
|
|
133
|
-
* The `date.day-of-month-before` predicate checks that the value in the path
|
|
134
|
-
* is before the day of the month passed into the predicate.
|
|
135
|
-
*
|
|
136
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofmonthbefore}
|
|
137
|
-
*/
|
|
138
|
-
dateDayOfMonthBefore: (path: string, day: number) => string;
|
|
139
|
-
/**
|
|
140
|
-
* The `date.day-of-week` predicate checks that the value in the path is equal
|
|
141
|
-
* to the day of the week passed into the predicate.
|
|
142
|
-
*
|
|
143
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofweek}
|
|
144
|
-
*/
|
|
145
|
-
dateDayOfWeek: (path: string, day: string | number) => string;
|
|
146
|
-
/**
|
|
147
|
-
* The `date.day-of-week-after` predicate checks that the value in the path is
|
|
148
|
-
* after the day of the week passed into the predicate.
|
|
149
|
-
*
|
|
150
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofweekafter}
|
|
151
|
-
*/
|
|
152
|
-
dateDayOfWeekAfter: (path: string, day: string | number) => string;
|
|
153
|
-
/**
|
|
154
|
-
* The date.day-of-week-before predicate checks that the value in the path is
|
|
155
|
-
* before the day of the week passed into the predicate.
|
|
156
|
-
*
|
|
157
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofweekbefore}
|
|
158
|
-
*/
|
|
159
|
-
dateDayOfWeekBefore: (path: string, day: string | number) => string;
|
|
160
|
-
/**
|
|
161
|
-
* The `date.month` predicate checks that the value in the path occurs in the
|
|
162
|
-
* month value passed into the predicate.
|
|
163
|
-
*
|
|
164
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#month}
|
|
165
|
-
*/
|
|
166
|
-
dateMonth: (path: string, month: string | number) => string;
|
|
167
|
-
/**
|
|
168
|
-
* The `date.month-after` predicate checks that the value in the path occurs
|
|
169
|
-
* in any month after the value passed into the predicate.
|
|
170
|
-
*
|
|
171
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#monthafter}
|
|
172
|
-
*/
|
|
173
|
-
dateMonthAfter: (path: string, month: string | number) => string;
|
|
174
|
-
/**
|
|
175
|
-
* The `date.month-before` predicate checks that the value in the path occurs
|
|
176
|
-
* in any month before the value passed into the predicate.
|
|
177
|
-
*
|
|
178
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#monthbefore}
|
|
179
|
-
*/
|
|
180
|
-
dateMonthBefore: (path: string, month: string | number) => string;
|
|
181
|
-
/**
|
|
182
|
-
* The `date.year` predicate checks that the value in the path occurs in the
|
|
183
|
-
* year value passed into the predicate.
|
|
184
|
-
*
|
|
185
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#year}
|
|
186
|
-
*/
|
|
187
|
-
dateYear: (path: string, year: number) => string;
|
|
188
|
-
/**
|
|
189
|
-
* The `date.hour` predicate checks that the value in the path occurs within
|
|
190
|
-
* the hour value passed into the predicate.
|
|
191
|
-
*
|
|
192
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#hour}
|
|
193
|
-
*/
|
|
194
|
-
dateHour: (path: string, hour: number) => string;
|
|
195
|
-
/**
|
|
196
|
-
* The `date.hour-after` predicate checks that the value in the path occurs
|
|
197
|
-
* after the hour value passed into the predicate.
|
|
198
|
-
*
|
|
199
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#hourafter}
|
|
200
|
-
*/
|
|
201
|
-
dateHourAfter: (path: string, hour: number) => string;
|
|
202
|
-
/**
|
|
203
|
-
* The `date.hour-before` predicate checks that the value in the path occurs
|
|
204
|
-
* before the hour value passed into the predicate.
|
|
205
|
-
*
|
|
206
|
-
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#hourbefore}
|
|
207
|
-
*/
|
|
208
|
-
dateHourBefore: (path: string, hour: number) => string;
|
|
209
|
-
};
|
|
1
|
+
export declare const predicate: {
|
|
2
|
+
/**
|
|
3
|
+
* The `at` predicate checks that the path matches the described value
|
|
4
|
+
* exactly. It takes a single value for a field or an array (only for tags).
|
|
5
|
+
*
|
|
6
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#at}
|
|
7
|
+
*/
|
|
8
|
+
at: (path: string, value: string | number | boolean | string[] | Date) => string;
|
|
9
|
+
/**
|
|
10
|
+
* The `not` predicate checks that the path doesn't match the provided value
|
|
11
|
+
* exactly. It takes a single value for a field or an array (only for tags).
|
|
12
|
+
*
|
|
13
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#not}
|
|
14
|
+
*/
|
|
15
|
+
not: (path: string, value: string | number | boolean | string[] | Date) => string;
|
|
16
|
+
/**
|
|
17
|
+
* The `any` predicate takes an array of values. It works exactly the same way
|
|
18
|
+
* as the `at` operator, but checks whether the fragment matches any of the
|
|
19
|
+
* values in the array.
|
|
20
|
+
*
|
|
21
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#any}
|
|
22
|
+
*/
|
|
23
|
+
any: (path: string, values: (string | number | boolean | Date)[]) => string;
|
|
24
|
+
/**
|
|
25
|
+
* The `in` predicate is used specifically to retrieve an array of documents
|
|
26
|
+
* by their IDs or UIDs. This predicate is much more efficient at this than
|
|
27
|
+
* the any predicate.
|
|
28
|
+
*
|
|
29
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#in}
|
|
30
|
+
*/
|
|
31
|
+
in: (path: string, values: string[]) => string;
|
|
32
|
+
/**
|
|
33
|
+
* The `fulltext` predicate provides two capabilities:
|
|
34
|
+
*
|
|
35
|
+
* 1. Checking if a certain string is anywhere inside a document (this is what
|
|
36
|
+
* you should use to make your project's search engine feature)
|
|
37
|
+
* 2. Checking if the string is contained inside a specific custom type’s Rich
|
|
38
|
+
* Text or Key Text fragment.
|
|
39
|
+
*
|
|
40
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#fulltext}
|
|
41
|
+
*/
|
|
42
|
+
fulltext: (path: string, searchTerms: string) => string;
|
|
43
|
+
/**
|
|
44
|
+
* The `has` predicate checks whether a fragment has a value. It will return
|
|
45
|
+
* all the documents of the specified type that contain a value for the
|
|
46
|
+
* specified field.
|
|
47
|
+
*
|
|
48
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#has}
|
|
49
|
+
*/
|
|
50
|
+
has: (path: string) => string;
|
|
51
|
+
/**
|
|
52
|
+
* The `missing` predicate checks if a fragment doesn't have a value. It will
|
|
53
|
+
* return all the documents of the specified type that do not contain a value
|
|
54
|
+
* for the specified field.
|
|
55
|
+
*
|
|
56
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#missing}
|
|
57
|
+
*/
|
|
58
|
+
missing: (path: string) => string;
|
|
59
|
+
/**
|
|
60
|
+
* The `similar` predicate takes the ID of a document, and returns a list of
|
|
61
|
+
* documents with similar content. This allows you to build an automated
|
|
62
|
+
* content discovery feature (for example, a "Related posts" section).
|
|
63
|
+
*
|
|
64
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#similar}
|
|
65
|
+
*/
|
|
66
|
+
similar: (id: string, value: number) => string;
|
|
67
|
+
/**
|
|
68
|
+
* The `geopoint.near` predicate checks that the value in the path is within
|
|
69
|
+
* the radius of the given coordinates.
|
|
70
|
+
*
|
|
71
|
+
* This predicate will only work for a GeoPoint field.
|
|
72
|
+
*
|
|
73
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#near}
|
|
74
|
+
*/
|
|
75
|
+
geopointNear: (path: string, latitude: number, longitude: number, radius: number) => string;
|
|
76
|
+
/**
|
|
77
|
+
* The `number.lt` predicate checks that the value in the number field is less
|
|
78
|
+
* than the value passed into the predicate.
|
|
79
|
+
*
|
|
80
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#lt-less-than}
|
|
81
|
+
*/
|
|
82
|
+
numberLessThan: (path: string, value: number) => string;
|
|
83
|
+
/**
|
|
84
|
+
* The `number.gt` predicate checks that the value in the number field is
|
|
85
|
+
* greater than the value passed into the predicate.
|
|
86
|
+
*
|
|
87
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#gt-greater-than}
|
|
88
|
+
*/
|
|
89
|
+
numberGreaterThan: (path: string, value: number) => string;
|
|
90
|
+
/**
|
|
91
|
+
* The `number.inRange` predicate checks that the value in the path is within
|
|
92
|
+
* the two values passed into the predicate.
|
|
93
|
+
*
|
|
94
|
+
* {@link https://prismic.io/docs/technologies/query-predicates-reference-rest-api#inrange}
|
|
95
|
+
*/
|
|
96
|
+
numberInRange: (path: string, lowerLimit: number, upperLimit: number) => string;
|
|
97
|
+
/**
|
|
98
|
+
* The `date.after` predicate checks that the value in the path is after the
|
|
99
|
+
* date value passed into the predicate.
|
|
100
|
+
*
|
|
101
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#after}
|
|
102
|
+
*/
|
|
103
|
+
dateAfter: (path: string, date: string | number | Date) => string;
|
|
104
|
+
/**
|
|
105
|
+
* The `date.before` predicate checks that the value in the path is before the
|
|
106
|
+
* date value passed into the predicate.
|
|
107
|
+
*
|
|
108
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#before}
|
|
109
|
+
*/
|
|
110
|
+
dateBefore: (path: string, date: string | number | Date) => string;
|
|
111
|
+
/**
|
|
112
|
+
* The `date.between` predicate checks that the value in the path is within
|
|
113
|
+
* the date values passed into the predicate.
|
|
114
|
+
*
|
|
115
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#between}
|
|
116
|
+
*/
|
|
117
|
+
dateBetween: (path: string, startDate: string | number | Date, endDate: string | number | Date) => string;
|
|
118
|
+
/**
|
|
119
|
+
* The `date.day-of-month` predicate checks that the value in the path is
|
|
120
|
+
* equal to the day of the month passed into the predicate.
|
|
121
|
+
*
|
|
122
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofmonth}
|
|
123
|
+
*/
|
|
124
|
+
dateDayOfMonth: (path: string, day: number) => string;
|
|
125
|
+
/**
|
|
126
|
+
* The `date.day-of-month-after` predicate checks that the value in the path
|
|
127
|
+
* is after the day of the month passed into the predicate.
|
|
128
|
+
*
|
|
129
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofmonthafter}
|
|
130
|
+
*/
|
|
131
|
+
dateDayOfMonthAfter: (path: string, day: number) => string;
|
|
132
|
+
/**
|
|
133
|
+
* The `date.day-of-month-before` predicate checks that the value in the path
|
|
134
|
+
* is before the day of the month passed into the predicate.
|
|
135
|
+
*
|
|
136
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofmonthbefore}
|
|
137
|
+
*/
|
|
138
|
+
dateDayOfMonthBefore: (path: string, day: number) => string;
|
|
139
|
+
/**
|
|
140
|
+
* The `date.day-of-week` predicate checks that the value in the path is equal
|
|
141
|
+
* to the day of the week passed into the predicate.
|
|
142
|
+
*
|
|
143
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofweek}
|
|
144
|
+
*/
|
|
145
|
+
dateDayOfWeek: (path: string, day: string | number) => string;
|
|
146
|
+
/**
|
|
147
|
+
* The `date.day-of-week-after` predicate checks that the value in the path is
|
|
148
|
+
* after the day of the week passed into the predicate.
|
|
149
|
+
*
|
|
150
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofweekafter}
|
|
151
|
+
*/
|
|
152
|
+
dateDayOfWeekAfter: (path: string, day: string | number) => string;
|
|
153
|
+
/**
|
|
154
|
+
* The date.day-of-week-before predicate checks that the value in the path is
|
|
155
|
+
* before the day of the week passed into the predicate.
|
|
156
|
+
*
|
|
157
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#dayofweekbefore}
|
|
158
|
+
*/
|
|
159
|
+
dateDayOfWeekBefore: (path: string, day: string | number) => string;
|
|
160
|
+
/**
|
|
161
|
+
* The `date.month` predicate checks that the value in the path occurs in the
|
|
162
|
+
* month value passed into the predicate.
|
|
163
|
+
*
|
|
164
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#month}
|
|
165
|
+
*/
|
|
166
|
+
dateMonth: (path: string, month: string | number) => string;
|
|
167
|
+
/**
|
|
168
|
+
* The `date.month-after` predicate checks that the value in the path occurs
|
|
169
|
+
* in any month after the value passed into the predicate.
|
|
170
|
+
*
|
|
171
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#monthafter}
|
|
172
|
+
*/
|
|
173
|
+
dateMonthAfter: (path: string, month: string | number) => string;
|
|
174
|
+
/**
|
|
175
|
+
* The `date.month-before` predicate checks that the value in the path occurs
|
|
176
|
+
* in any month before the value passed into the predicate.
|
|
177
|
+
*
|
|
178
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#monthbefore}
|
|
179
|
+
*/
|
|
180
|
+
dateMonthBefore: (path: string, month: string | number) => string;
|
|
181
|
+
/**
|
|
182
|
+
* The `date.year` predicate checks that the value in the path occurs in the
|
|
183
|
+
* year value passed into the predicate.
|
|
184
|
+
*
|
|
185
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#year}
|
|
186
|
+
*/
|
|
187
|
+
dateYear: (path: string, year: number) => string;
|
|
188
|
+
/**
|
|
189
|
+
* The `date.hour` predicate checks that the value in the path occurs within
|
|
190
|
+
* the hour value passed into the predicate.
|
|
191
|
+
*
|
|
192
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#hour}
|
|
193
|
+
*/
|
|
194
|
+
dateHour: (path: string, hour: number) => string;
|
|
195
|
+
/**
|
|
196
|
+
* The `date.hour-after` predicate checks that the value in the path occurs
|
|
197
|
+
* after the hour value passed into the predicate.
|
|
198
|
+
*
|
|
199
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#hourafter}
|
|
200
|
+
*/
|
|
201
|
+
dateHourAfter: (path: string, hour: number) => string;
|
|
202
|
+
/**
|
|
203
|
+
* The `date.hour-before` predicate checks that the value in the path occurs
|
|
204
|
+
* before the hour value passed into the predicate.
|
|
205
|
+
*
|
|
206
|
+
* {@link https://prismic.io/docs/technologies/date-and-time-based-predicate-reference-rest-api#hourbefore}
|
|
207
|
+
*/
|
|
208
|
+
dateHourBefore: (path: string, hour: number) => string;
|
|
209
|
+
};
|