@@ -22,11 +22,13 @@ import Foundation
22
22
@_exported import FirebaseFirestoreInternal
23
23
#endif // SWIFT_PACKAGE
24
24
25
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
25
26
protocol Stage {
26
27
var name : String { get }
27
28
var bridge : StageBridge { get }
28
29
}
29
30
31
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
30
32
class CollectionSource : Stage {
31
33
let name : String = " collection "
32
34
@@ -39,6 +41,7 @@ class CollectionSource: Stage {
39
41
}
40
42
}
41
43
44
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
42
45
class CollectionGroupSource : Stage {
43
46
let name : String = " collectionId "
44
47
@@ -52,6 +55,7 @@ class CollectionGroupSource: Stage {
52
55
}
53
56
54
57
// Represents the entire database as a source.
58
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
55
59
class DatabaseSource : Stage {
56
60
let name : String = " database "
57
61
let bridge : StageBridge
@@ -62,6 +66,7 @@ class DatabaseSource: Stage {
62
66
}
63
67
64
68
// Represents a list of document references as a source.
69
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
65
70
class DocumentsSource : Stage {
66
71
let name : String = " documents "
67
72
let bridge : StageBridge
@@ -75,6 +80,7 @@ class DocumentsSource: Stage {
75
80
}
76
81
77
82
// Represents an existing Query as a source.
83
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
78
84
class QuerySource : Stage {
79
85
let name : String = " query "
80
86
let bridge : StageBridge
@@ -88,6 +94,7 @@ class QuerySource: Stage {
88
94
}
89
95
90
96
// Represents an existing AggregateQuery as a source.
97
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
91
98
class AggregateQuerySource : Stage {
92
99
let name : String = " aggregateQuery "
93
100
let bridge : StageBridge
@@ -100,6 +107,7 @@ class AggregateQuerySource: Stage {
100
107
}
101
108
}
102
109
110
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
103
111
class Where : Stage {
104
112
let name : String = " where "
105
113
@@ -112,6 +120,7 @@ class Where: Stage {
112
120
}
113
121
}
114
122
123
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
115
124
class Limit : Stage {
116
125
let name : String = " limit "
117
126
@@ -124,6 +133,7 @@ class Limit: Stage {
124
133
}
125
134
}
126
135
136
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
127
137
class Offset : Stage {
128
138
let name : String = " offset "
129
139
@@ -136,6 +146,7 @@ class Offset: Stage {
136
146
}
137
147
}
138
148
149
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
139
150
class AddFields : Stage {
140
151
let name : String = " addFields "
141
152
let bridge : StageBridge
@@ -154,6 +165,7 @@ class AddFields: Stage {
154
165
}
155
166
}
156
167
168
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
157
169
class RemoveFieldsStage : Stage {
158
170
let name : String = " removeFields "
159
171
let bridge : StageBridge
@@ -170,6 +182,7 @@ class RemoveFieldsStage: Stage {
170
182
}
171
183
}
172
184
185
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
173
186
class Select : Stage {
174
187
let name : String = " select "
175
188
let bridge : StageBridge
@@ -183,6 +196,7 @@ class Select: Stage {
183
196
}
184
197
}
185
198
199
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
186
200
class Distinct : Stage {
187
201
let name : String = " distinct "
188
202
let bridge : StageBridge
@@ -196,6 +210,7 @@ class Distinct: Stage {
196
210
}
197
211
}
198
212
213
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
199
214
class Aggregate : Stage {
200
215
let name : String = " aggregate "
201
216
let bridge : StageBridge
@@ -218,6 +233,7 @@ class Aggregate: Stage {
218
233
}
219
234
}
220
235
236
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
221
237
class FindNearest : Stage {
222
238
let name : String = " findNearest "
223
239
let bridge : StageBridge
@@ -247,6 +263,7 @@ class FindNearest: Stage {
247
263
}
248
264
}
249
265
266
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
250
267
class Sort : Stage {
251
268
let name : String = " sort "
252
269
let bridge : StageBridge
@@ -258,6 +275,7 @@ class Sort: Stage {
258
275
}
259
276
}
260
277
278
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
261
279
class ReplaceWith : Stage {
262
280
let name : String = " replaceWith "
263
281
let bridge : StageBridge
@@ -269,6 +287,7 @@ class ReplaceWith: Stage {
269
287
}
270
288
}
271
289
290
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
272
291
class Sample : Stage {
273
292
let name : String = " sample "
274
293
let bridge : StageBridge
@@ -288,6 +307,7 @@ class Sample: Stage {
288
307
}
289
308
}
290
309
310
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
291
311
class Union : Stage {
292
312
let name : String = " union "
293
313
let bridge : StageBridge
@@ -299,6 +319,7 @@ class Union: Stage {
299
319
}
300
320
}
301
321
322
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
302
323
class Unnest : Stage {
303
324
let name : String = " unnest "
304
325
let bridge : StageBridge
@@ -315,6 +336,7 @@ class Unnest: Stage {
315
336
}
316
337
}
317
338
339
+ @available ( iOS 13 , tvOS 13 , macOS 10 . 15 , macCatalyst 13 , watchOS 7 , * )
318
340
class GenericStage : Stage {
319
341
let name : String
320
342
let bridge : StageBridge
0 commit comments