@digicap-web/sdk 0.1.0-dev.13
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/README.md +9 -0
- package/dist/index.cjs +1613 -0
- package/dist/index.d.cts +646 -0
- package/dist/index.d.ts +646 -0
- package/dist/index.js +1500 -0
- package/package.json +50 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
import z$1, { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/** Zod Schema for an area id (Branded UUID) */
|
|
4
|
+
type ArticleId = string & {
|
|
5
|
+
readonly __brand: unique symbol;
|
|
6
|
+
};
|
|
7
|
+
/** Zod Schema for an article id (Branded UUID) */
|
|
8
|
+
declare const ArticleIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<ArticleId, string>>;
|
|
9
|
+
/** Zod Schema for an array of article ids */
|
|
10
|
+
declare const ArticleIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<ArticleId, string>>>;
|
|
11
|
+
/** Type for an array of article ids */
|
|
12
|
+
type ArticleIdList = z.infer<typeof ArticleIdListSchema>;
|
|
13
|
+
/** Zod Schema for an article */
|
|
14
|
+
declare const ArticleSchema: z.ZodObject<{
|
|
15
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<ArticleId, string>>;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
body: z.ZodString;
|
|
18
|
+
published: z.ZodDefault<z.ZodBoolean>;
|
|
19
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
20
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
/** Type for an article, as responded by the API */
|
|
23
|
+
type Article = z.infer<typeof ArticleSchema>;
|
|
24
|
+
/** Zod Schema for creating an article, using the POST method */
|
|
25
|
+
declare const CreateArticleSchema: z.ZodObject<{
|
|
26
|
+
name: z.ZodString;
|
|
27
|
+
body: z.ZodString;
|
|
28
|
+
published: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
/** Type for creating an article */
|
|
31
|
+
type CreateArticle = z.infer<typeof CreateArticleSchema>;
|
|
32
|
+
/** Zod Schema for updating an article, using the PATCH method */
|
|
33
|
+
declare const UpdateArticleSchema: z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
body: z.ZodString;
|
|
36
|
+
published: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
/** Type for updating an article */
|
|
39
|
+
type UpdateArticle = z.infer<typeof UpdateArticleSchema>;
|
|
40
|
+
/** Zod Schema for an article, as responded by the API */
|
|
41
|
+
declare const ArticleListSchema: z.ZodArray<z.ZodObject<{
|
|
42
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<ArticleId, string>>;
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
body: z.ZodString;
|
|
45
|
+
published: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
47
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
/** Type for an article, as responded by the API */
|
|
50
|
+
type ArticleList = z.infer<typeof ArticleListSchema>;
|
|
51
|
+
/** Type for permissions related to article operations */
|
|
52
|
+
type ArticlePermission = {
|
|
53
|
+
canGet: boolean;
|
|
54
|
+
canGetList: boolean;
|
|
55
|
+
canCreate: boolean;
|
|
56
|
+
canUpdate: boolean;
|
|
57
|
+
canDelete: boolean;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/** Type for an area id (Nominal Type) */
|
|
61
|
+
type AreaId = string & {
|
|
62
|
+
readonly __brand: unique symbol;
|
|
63
|
+
};
|
|
64
|
+
/** Zod Schema for an area id (Branded UUID) */
|
|
65
|
+
declare const AreaIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>;
|
|
66
|
+
/** Zod Schema for an array of area ids */
|
|
67
|
+
declare const AreaIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>>;
|
|
68
|
+
/** Type for an array of area ids */
|
|
69
|
+
type AreaIdList = z.infer<typeof AreaIdListSchema>;
|
|
70
|
+
/** Zod Schema for an area */
|
|
71
|
+
declare const AreaSchema: z.ZodObject<{
|
|
72
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
75
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
/** Type for an area, as responded by the API */
|
|
78
|
+
type Area = z.infer<typeof AreaSchema>;
|
|
79
|
+
/** Zod Schema for creating an area, using the POST method */
|
|
80
|
+
declare const CreateAreaSchema: z.ZodObject<{
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
/** Type for creating an area */
|
|
84
|
+
type CreateArea = z.infer<typeof CreateAreaSchema>;
|
|
85
|
+
/** Zod Schema for updating an area, using the PATCH method */
|
|
86
|
+
declare const UpdateAreaSchema: z.ZodObject<{
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
/** Type for updating an area */
|
|
90
|
+
type UpdateArea = z.infer<typeof UpdateAreaSchema>;
|
|
91
|
+
/** Zod Schema for an area, as responded by the API */
|
|
92
|
+
declare const AreaListSchema: z.ZodArray<z.ZodObject<{
|
|
93
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
96
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
/** Type for an area, as responded by the API */
|
|
99
|
+
type AreaList = z.infer<typeof AreaListSchema>;
|
|
100
|
+
|
|
101
|
+
/** Type for a spot ID (Nominal Type) */
|
|
102
|
+
type SpotId = string & {
|
|
103
|
+
readonly __brand: unique symbol;
|
|
104
|
+
};
|
|
105
|
+
/** Zod Schema for a spot ID (Branded UUID) */
|
|
106
|
+
declare const SpotIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<SpotId, string>>;
|
|
107
|
+
/** Zod Schema for an array of spot IDs */
|
|
108
|
+
declare const SpotIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<SpotId, string>>>;
|
|
109
|
+
/** Type for an array of spot IDs */
|
|
110
|
+
type SpotIdList = z.infer<typeof SpotIdListSchema>;
|
|
111
|
+
/** Zod Schema for a spot */
|
|
112
|
+
declare const SpotSchema: z.ZodObject<{
|
|
113
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<SpotId, string>>;
|
|
114
|
+
name: z.ZodString;
|
|
115
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
116
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
117
|
+
areaId: z.ZodLazy<z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>>;
|
|
118
|
+
articleId: z.ZodLazy<z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<ArticleId, string>>>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
/** Type for a spot, as responded by the API */
|
|
121
|
+
type Spot = z.infer<typeof SpotSchema>;
|
|
122
|
+
/** Zod Schema for creating a spot, using the POST method */
|
|
123
|
+
declare const CreateSpotSchema: z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
areaId: z.ZodLazy<z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
/** Type for creating a spot */
|
|
128
|
+
type CreateSpot = z.infer<typeof CreateSpotSchema>;
|
|
129
|
+
/** Zod Schema for updating a spot, using the PATCH method */
|
|
130
|
+
declare const UpdateSpotSchema: z.ZodObject<{
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
areaId: z.ZodLazy<z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
/** Type for updating a spot */
|
|
135
|
+
type UpdateSpot = z.infer<typeof UpdateSpotSchema>;
|
|
136
|
+
/** Zod Schema for an array of spots */
|
|
137
|
+
declare const SpotListSchema: z.ZodArray<z.ZodObject<{
|
|
138
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<SpotId, string>>;
|
|
139
|
+
name: z.ZodString;
|
|
140
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
141
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
142
|
+
areaId: z.ZodLazy<z.ZodPipe<z.ZodUUID, z.ZodTransform<AreaId, string>>>;
|
|
143
|
+
articleId: z.ZodLazy<z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<ArticleId, string>>>>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
/** Type for a list of spots, as responded by the API */
|
|
146
|
+
type SpotList = z.infer<typeof SpotListSchema>;
|
|
147
|
+
|
|
148
|
+
/** Type for a tag id (Nominal Type) */
|
|
149
|
+
type TagId = string & {
|
|
150
|
+
readonly __brand: unique symbol;
|
|
151
|
+
};
|
|
152
|
+
/** Zod Schema for a tag id (Branded UUID) */
|
|
153
|
+
declare const TagIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<TagId, string>>;
|
|
154
|
+
/** Zod Schema for an array of tag ids */
|
|
155
|
+
declare const TagIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<TagId, string>>>;
|
|
156
|
+
/** Type for an array of tag ids */
|
|
157
|
+
type TagIdList = z.infer<typeof TagIdListSchema>;
|
|
158
|
+
/** Zod Schema for a tag as returned by the API */
|
|
159
|
+
declare const TagSchema: z.ZodObject<{
|
|
160
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<TagId, string>>;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
color: z.ZodString;
|
|
163
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
164
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
/** Type for a tag, as responded by the API */
|
|
167
|
+
type Tag = z.infer<typeof TagSchema>;
|
|
168
|
+
/** Zod Schema for creating a tag, using the POST method */
|
|
169
|
+
declare const CreateTagSchema: z.ZodObject<{
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
color: z.ZodString;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
/** Type for creating a tag (Request body for POST /tags) */
|
|
174
|
+
type CreateTag = z.infer<typeof CreateTagSchema>;
|
|
175
|
+
/** Zod Schema for updating a tag, using the PATCH method. Allows partial fields and strips unrecognized keys. */
|
|
176
|
+
declare const UpdateTagSchema: z.ZodObject<{
|
|
177
|
+
name: z.ZodString;
|
|
178
|
+
color: z.ZodString;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
/** Type for updating a tag (Request body for PATCH /tags/:id) */
|
|
181
|
+
type UpdateTag = z.infer<typeof UpdateTagSchema>;
|
|
182
|
+
/** Zod Schema for an array of tags */
|
|
183
|
+
declare const TagListSchema: z.ZodArray<z.ZodObject<{
|
|
184
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<TagId, string>>;
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
color: z.ZodString;
|
|
187
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
188
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
/** Type for a list of tags, as responded by the API */
|
|
191
|
+
type TagList = z.infer<typeof TagListSchema>;
|
|
192
|
+
|
|
193
|
+
/** Type for a user id (Nominal Type) */
|
|
194
|
+
type UserId = string & {
|
|
195
|
+
readonly __brand: unique symbol;
|
|
196
|
+
};
|
|
197
|
+
/** Zod Schema for a user id (Cognito Sub format - UUID v7) */
|
|
198
|
+
declare const UserIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<UserId, string>>;
|
|
199
|
+
/** Zod Schema for an array of user ids */
|
|
200
|
+
declare const UserIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<UserId, string>>>;
|
|
201
|
+
/** Type for an array of user ids */
|
|
202
|
+
type UserIdList = z.infer<typeof UserIdListSchema>;
|
|
203
|
+
/** Zod Schema for a list of users. */
|
|
204
|
+
declare const UserSchema: z.ZodObject<{
|
|
205
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<UserId, string>>;
|
|
206
|
+
email: z.ZodEmail;
|
|
207
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
208
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
/** Type for a user. */
|
|
211
|
+
type User = z.infer<typeof UserSchema>;
|
|
212
|
+
/** Zod Schema for a list of users. */
|
|
213
|
+
declare const UserListSchema: z.ZodArray<z.ZodObject<{
|
|
214
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<UserId, string>>;
|
|
215
|
+
email: z.ZodEmail;
|
|
216
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
217
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
/** Type for a list of users. */
|
|
220
|
+
type UserList = z.infer<typeof UserListSchema>;
|
|
221
|
+
|
|
222
|
+
/** Type for an audio id (Nominal Type) */
|
|
223
|
+
type AudioId = string & {
|
|
224
|
+
readonly __brand: unique symbol;
|
|
225
|
+
};
|
|
226
|
+
/** Zod Schema for an audio id (Branded UUID) */
|
|
227
|
+
declare const AudioIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<AudioId, string>>;
|
|
228
|
+
/** Zod Schema for an array of audio ids */
|
|
229
|
+
declare const AudioIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<AudioId, string>>>;
|
|
230
|
+
/** Type for an array of audio ids */
|
|
231
|
+
type AudioIdList = z.infer<typeof AudioIdListSchema>;
|
|
232
|
+
/** Zod Schema for an audio */
|
|
233
|
+
declare const AudioSchema: z.ZodObject<{
|
|
234
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<AudioId, string>>;
|
|
235
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
236
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
/** Type for an audio, as responded by the API */
|
|
239
|
+
type Audio = z.infer<typeof AudioSchema>;
|
|
240
|
+
/** Zod Schema for creating an audio, using the POST method */
|
|
241
|
+
declare const AudioListSchema: z.ZodArray<z.ZodObject<{
|
|
242
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<AudioId, string>>;
|
|
243
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
244
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
245
|
+
}, z.core.$strip>>;
|
|
246
|
+
/** Type for an audio, as responded by the API */
|
|
247
|
+
type AudioList = z.infer<typeof AudioListSchema>;
|
|
248
|
+
|
|
249
|
+
/** Type for an picture id (Nominal Type) */
|
|
250
|
+
type PictureId = string & {
|
|
251
|
+
readonly __brand: unique symbol;
|
|
252
|
+
};
|
|
253
|
+
/** Zod Schema for an picture id (Branded UUID) */
|
|
254
|
+
declare const PictureIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>;
|
|
255
|
+
/** Zod Schema for an array of picture ids */
|
|
256
|
+
declare const PictureIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>>;
|
|
257
|
+
/** Type for an array of picture ids */
|
|
258
|
+
type PictureIdList = z.infer<typeof PictureIdListSchema>;
|
|
259
|
+
/** Zod Schema for an picture */
|
|
260
|
+
declare const PictureSchema: z.ZodObject<{
|
|
261
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>;
|
|
262
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
263
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
/** Type for an picture, as responded by the API */
|
|
266
|
+
type Picture = z.infer<typeof PictureSchema>;
|
|
267
|
+
/** Zod Schema for creating an picture, using the POST method */
|
|
268
|
+
declare const PictureListSchema: z.ZodArray<z.ZodObject<{
|
|
269
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>;
|
|
270
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
271
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
/** Type for an picture, as responded by the API */
|
|
274
|
+
type PictureList = z.infer<typeof PictureListSchema>;
|
|
275
|
+
|
|
276
|
+
/** Type for a guide id (Nominal Type) */
|
|
277
|
+
type GuideId = string & {
|
|
278
|
+
readonly __brand: unique symbol;
|
|
279
|
+
};
|
|
280
|
+
/** Zod Schema for a guide id (Branded UUID) */
|
|
281
|
+
declare const GuideIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<GuideId, string>>;
|
|
282
|
+
/** Zod Schema for an array of guide ids */
|
|
283
|
+
declare const GuideIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<GuideId, string>>>;
|
|
284
|
+
/** Type for an array of guide ids */
|
|
285
|
+
type GuideIdList = z.infer<typeof GuideIdListSchema>;
|
|
286
|
+
/** Zod Schema for a guide */
|
|
287
|
+
declare const GuideSchema: z.ZodObject<{
|
|
288
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<GuideId, string>>;
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
291
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
292
|
+
pictureId: z.ZodNullable<z.ZodLazy<z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>>>;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
/** Type for a guide, as responded by the API */
|
|
295
|
+
type Guide = z.infer<typeof GuideSchema>;
|
|
296
|
+
/** Zod Schema for creating a guide, using the POST method */
|
|
297
|
+
declare const CreateGuideSchema: z.ZodObject<{
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
/** Type for creating a guide */
|
|
301
|
+
type CreateGuide = z.infer<typeof CreateGuideSchema>;
|
|
302
|
+
/** Zod Schema for updating a guide, using the PATCH method */
|
|
303
|
+
declare const UpdateGuideSchema: z.ZodObject<{
|
|
304
|
+
name: z.ZodString;
|
|
305
|
+
}, z.core.$strip>;
|
|
306
|
+
/** Type for updating a guide */
|
|
307
|
+
type UpdateGuide = z.infer<typeof UpdateGuideSchema>;
|
|
308
|
+
/** Zod Schema for an array of guides */
|
|
309
|
+
declare const GuideListSchema: z.ZodArray<z.ZodObject<{
|
|
310
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<GuideId, string>>;
|
|
311
|
+
name: z.ZodString;
|
|
312
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
313
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
314
|
+
pictureId: z.ZodNullable<z.ZodLazy<z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>>>;
|
|
315
|
+
}, z.core.$strip>>;
|
|
316
|
+
/** Type for a list of guides, as responded by the API */
|
|
317
|
+
type GuideList = z.infer<typeof GuideListSchema>;
|
|
318
|
+
|
|
319
|
+
/** Type for an event id (Nominal Type) */
|
|
320
|
+
type EventId = string & {
|
|
321
|
+
readonly __brand: unique symbol;
|
|
322
|
+
};
|
|
323
|
+
/** Zod Schema for an event id (Branded UUID) */
|
|
324
|
+
declare const EventIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<EventId, string>>;
|
|
325
|
+
/** Zod Schema for an array of event ids */
|
|
326
|
+
declare const EventIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<EventId, string>>>;
|
|
327
|
+
/** Type for an array of event ids */
|
|
328
|
+
type EventIdList = z.infer<typeof EventIdListSchema>;
|
|
329
|
+
/** Zod Schema for an event */
|
|
330
|
+
declare const EventSchema: z.ZodObject<{
|
|
331
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<EventId, string>>;
|
|
332
|
+
name: z.ZodString;
|
|
333
|
+
about: z.ZodString;
|
|
334
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
335
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
336
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
337
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
338
|
+
pictureId: z.ZodLazy<z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>>>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
/** Type for an event, as responded by the API */
|
|
341
|
+
type Event = z.infer<typeof EventSchema>;
|
|
342
|
+
/** Zod Schema for creating an event, using the POST method */
|
|
343
|
+
declare const CreateEventSchema: z.ZodObject<{
|
|
344
|
+
name: z.ZodString;
|
|
345
|
+
about: z.ZodString;
|
|
346
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
347
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
/** Type for creating an event */
|
|
350
|
+
type CreateEvent = z.infer<typeof CreateEventSchema>;
|
|
351
|
+
/** Zod Schema for updating an event, using the PATCH method */
|
|
352
|
+
declare const UpdateEventSchema: z.ZodObject<{
|
|
353
|
+
name: z.ZodString;
|
|
354
|
+
about: z.ZodString;
|
|
355
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
356
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
357
|
+
}, z.core.$strip>;
|
|
358
|
+
/** Type for updating an event */
|
|
359
|
+
type UpdateEvent = z.infer<typeof UpdateEventSchema>;
|
|
360
|
+
/** Zod Schema for an array of events */
|
|
361
|
+
declare const EventListSchema: z.ZodArray<z.ZodObject<{
|
|
362
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<EventId, string>>;
|
|
363
|
+
name: z.ZodString;
|
|
364
|
+
about: z.ZodString;
|
|
365
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
366
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
367
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
368
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
369
|
+
pictureId: z.ZodLazy<z.ZodNullable<z.ZodPipe<z.ZodUUID, z.ZodTransform<PictureId, string>>>>;
|
|
370
|
+
}, z.core.$strip>>;
|
|
371
|
+
/** Type for a list of events, as responded by the API */
|
|
372
|
+
type EventList = z.infer<typeof EventListSchema>;
|
|
373
|
+
|
|
374
|
+
/** Zod Schema for user credentials, used for sign-in and sign-up requests. */
|
|
375
|
+
declare const CredentialsSchema: z.ZodObject<{
|
|
376
|
+
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
|
|
377
|
+
password: z.ZodString;
|
|
378
|
+
}, z.core.$strip>;
|
|
379
|
+
/** Type for user credentials. */
|
|
380
|
+
type Credentials = z.infer<typeof CredentialsSchema>;
|
|
381
|
+
|
|
382
|
+
/** Type for a museum id (Nominal Type) */
|
|
383
|
+
type MuseumId = string & {
|
|
384
|
+
readonly __brand: unique symbol;
|
|
385
|
+
};
|
|
386
|
+
/** Zod Schema for a museum id (Branded UUID) */
|
|
387
|
+
declare const MuseumIdSchema: z.ZodPipe<z.ZodUUID, z.ZodTransform<MuseumId, string>>;
|
|
388
|
+
/** Zod Schema for an array of museum ids */
|
|
389
|
+
declare const MuseumIdListSchema: z.ZodArray<z.ZodPipe<z.ZodUUID, z.ZodTransform<MuseumId, string>>>;
|
|
390
|
+
/** Type for an array of museum ids */
|
|
391
|
+
type MuseumIdList = z.infer<typeof MuseumIdListSchema>;
|
|
392
|
+
/** Zod Schema for a museum */
|
|
393
|
+
declare const MuseumSchema: z.ZodObject<{
|
|
394
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<MuseumId, string>>;
|
|
395
|
+
name: z.ZodString;
|
|
396
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
397
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
398
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
399
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
/** Type for a museum, as responded by the API */
|
|
402
|
+
type Museum = z.infer<typeof MuseumSchema>;
|
|
403
|
+
/** Zod Schema for creating a museum, using the POST method */
|
|
404
|
+
declare const CreateMuseumSchema: z.ZodObject<{
|
|
405
|
+
name: z.ZodString;
|
|
406
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
407
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
/** Type for creating a museum */
|
|
410
|
+
type CreateMuseum = z.infer<typeof CreateMuseumSchema>;
|
|
411
|
+
/** Zod Schema for updating a museum, using the PATCH method */
|
|
412
|
+
declare const UpdateMuseumSchema: z.ZodObject<{
|
|
413
|
+
name: z.ZodString;
|
|
414
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
415
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
416
|
+
}, z.core.$strip>;
|
|
417
|
+
/** Type for updating a museum */
|
|
418
|
+
type UpdateMuseum = z.infer<typeof UpdateMuseumSchema>;
|
|
419
|
+
/** Zod Schema for a museum list, as responded by the API */
|
|
420
|
+
declare const MuseumListSchema: z.ZodArray<z.ZodObject<{
|
|
421
|
+
id: z.ZodPipe<z.ZodUUID, z.ZodTransform<MuseumId, string>>;
|
|
422
|
+
name: z.ZodString;
|
|
423
|
+
createdAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
424
|
+
updatedAt: z.ZodUnion<readonly [z.ZodDate, z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>]>;
|
|
425
|
+
startTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
426
|
+
endTime: z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>;
|
|
427
|
+
}, z.core.$strip>>;
|
|
428
|
+
/** Type for a museum list, as responded by the API */
|
|
429
|
+
type MuseumList = z.infer<typeof MuseumListSchema>;
|
|
430
|
+
|
|
431
|
+
declare class ArticleRepository {
|
|
432
|
+
readonly baseURL: string;
|
|
433
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
434
|
+
collect(): Promise<ArticleList>;
|
|
435
|
+
get(id: ArticleId): Promise<Article>;
|
|
436
|
+
create(article: CreateArticle): Promise<Article>;
|
|
437
|
+
update(id: ArticleId, article: UpdateArticle): Promise<Article>;
|
|
438
|
+
delete(id: ArticleId): Promise<void>;
|
|
439
|
+
setPublished(id: ArticleId, published: boolean): Promise<Article>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare class AreaRepository {
|
|
443
|
+
readonly baseURL: string;
|
|
444
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
445
|
+
collect(): Promise<AreaList>;
|
|
446
|
+
get(id: AreaId): Promise<Area>;
|
|
447
|
+
create(area: CreateArea): Promise<Area>;
|
|
448
|
+
update(id: AreaId, area: UpdateArea): Promise<Area>;
|
|
449
|
+
delete(id: AreaId): Promise<void>;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare class SpotRepository {
|
|
453
|
+
readonly baseURL: string;
|
|
454
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
455
|
+
collect(): Promise<SpotList>;
|
|
456
|
+
get(id: SpotId): Promise<Spot>;
|
|
457
|
+
create(spot: CreateSpot): Promise<Spot>;
|
|
458
|
+
update(id: SpotId, spot: UpdateSpot): Promise<Spot>;
|
|
459
|
+
delete(id: SpotId): Promise<void>;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
declare class TagRepository {
|
|
463
|
+
readonly baseURL: string;
|
|
464
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
465
|
+
collect(): Promise<TagList>;
|
|
466
|
+
get(id: TagId): Promise<Tag>;
|
|
467
|
+
create(tag: CreateTag): Promise<Tag>;
|
|
468
|
+
update(id: TagId, tag: UpdateTag): Promise<Tag>;
|
|
469
|
+
delete(id: TagId): Promise<void>;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
declare class AudioRepository {
|
|
473
|
+
readonly baseURL: string;
|
|
474
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
475
|
+
collect(): Promise<AudioList>;
|
|
476
|
+
get(id: AudioId): Promise<Audio>;
|
|
477
|
+
create(file: File): Promise<Audio>;
|
|
478
|
+
delete(id: AudioId): Promise<void>;
|
|
479
|
+
embed(id: AudioId): string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
declare class PictureRepository {
|
|
483
|
+
readonly baseURL: string;
|
|
484
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
485
|
+
collect(): Promise<PictureList>;
|
|
486
|
+
get(id: PictureId): Promise<Picture>;
|
|
487
|
+
create(file: File): Promise<Picture>;
|
|
488
|
+
delete(id: PictureId): Promise<void>;
|
|
489
|
+
embed(id: PictureId): string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
declare class GuideRepository {
|
|
493
|
+
readonly baseURL: string;
|
|
494
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
495
|
+
collect(): Promise<GuideList>;
|
|
496
|
+
get(id: GuideId): Promise<Guide>;
|
|
497
|
+
create(guide: CreateGuide): Promise<Guide>;
|
|
498
|
+
update(id: GuideId, guide: UpdateGuide): Promise<Guide>;
|
|
499
|
+
delete(id: GuideId): Promise<void>;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
declare class EventRepository {
|
|
503
|
+
readonly baseURL: string;
|
|
504
|
+
constructor(baseURL: string, museumId: MuseumId);
|
|
505
|
+
collect(): Promise<EventList>;
|
|
506
|
+
get(id: EventId): Promise<{
|
|
507
|
+
id: EventId;
|
|
508
|
+
name: string;
|
|
509
|
+
about: string;
|
|
510
|
+
createdAt: Date;
|
|
511
|
+
updatedAt: Date;
|
|
512
|
+
startTime: Date;
|
|
513
|
+
endTime: Date;
|
|
514
|
+
pictureId: PictureId | null;
|
|
515
|
+
}>;
|
|
516
|
+
create(event: CreateEvent): Promise<Event>;
|
|
517
|
+
update(id: EventId, event: UpdateEvent): Promise<Event>;
|
|
518
|
+
delete(id: EventId): Promise<void>;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
declare const RoleEnum: z$1.ZodEnum<{
|
|
522
|
+
admin: "admin";
|
|
523
|
+
owner: "owner";
|
|
524
|
+
staff: "staff";
|
|
525
|
+
guest: "guest";
|
|
526
|
+
}>;
|
|
527
|
+
type Role = z$1.infer<typeof RoleEnum>;
|
|
528
|
+
declare class MuseumRepository {
|
|
529
|
+
readonly baseURL: string;
|
|
530
|
+
constructor(baseURL: string);
|
|
531
|
+
collect(): Promise<MuseumList>;
|
|
532
|
+
get(id: MuseumId): Promise<Museum>;
|
|
533
|
+
create(museum: CreateMuseum): Promise<Museum>;
|
|
534
|
+
update(id: MuseumId, museum: UpdateMuseum): Promise<Museum>;
|
|
535
|
+
delete(id: MuseumId): Promise<void>;
|
|
536
|
+
invite(museumId: MuseumId, email: string): Promise<void>;
|
|
537
|
+
reject(museumId: MuseumId, userId: UserId): Promise<void>;
|
|
538
|
+
everyone(museumId: MuseumId): Promise<UserList>;
|
|
539
|
+
getThumbnail(museumId: MuseumId): Promise<Picture>;
|
|
540
|
+
setThumbnail(museumId: MuseumId, pictureId: PictureId): Promise<void>;
|
|
541
|
+
deleteThumbnail(museumId: MuseumId): Promise<void>;
|
|
542
|
+
getOwnerships(museumId: MuseumId): Promise<UserList>;
|
|
543
|
+
grant(museumId: MuseumId, userId: UserId): Promise<void>;
|
|
544
|
+
revoke(museumId: MuseumId, userId: UserId): Promise<void>;
|
|
545
|
+
getRole(museumId: MuseumId, userId: UserId): Promise<Role>;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
declare class UserRepository {
|
|
549
|
+
readonly baseURL: string;
|
|
550
|
+
constructor(baseURL: string);
|
|
551
|
+
get(userId: UserId): Promise<User>;
|
|
552
|
+
getMe(): Promise<User>;
|
|
553
|
+
getMuseums(): Promise<MuseumList>;
|
|
554
|
+
delete(userId: UserId): Promise<void>;
|
|
555
|
+
getRole(userId: UserId): Promise<{
|
|
556
|
+
isAdmin: boolean;
|
|
557
|
+
}>;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
declare class AuthRepository {
|
|
561
|
+
private baseURL;
|
|
562
|
+
constructor(baseURL: string);
|
|
563
|
+
signup(creds: Credentials): Promise<User>;
|
|
564
|
+
signin(creds: Credentials): Promise<User>;
|
|
565
|
+
signout(): Promise<void>;
|
|
566
|
+
refresh(): Promise<void>;
|
|
567
|
+
erasure(): Promise<void>;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
declare class ArticleAudioRepository {
|
|
571
|
+
readonly baseURL: string;
|
|
572
|
+
constructor(baseURL: string, museumId: MuseumId, articleId: ArticleId);
|
|
573
|
+
get(): Promise<Audio>;
|
|
574
|
+
put(audioId: AudioId): Promise<void>;
|
|
575
|
+
delete(): Promise<void>;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
declare class ArticleSpotRepository {
|
|
579
|
+
readonly baseURL: string;
|
|
580
|
+
constructor(baseURL: string, museumId: MuseumId, articleId: ArticleId);
|
|
581
|
+
get(): Promise<Spot>;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
declare class SpotArticleRepository {
|
|
585
|
+
readonly baseURL: string;
|
|
586
|
+
constructor(baseURL: string, museumId: MuseumId, spotId: SpotId);
|
|
587
|
+
get(): Promise<Article>;
|
|
588
|
+
put(articleId: ArticleId): Promise<void>;
|
|
589
|
+
delete(): Promise<void>;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
declare class AreaSpotRepository {
|
|
593
|
+
readonly baseURL: string;
|
|
594
|
+
constructor(baseURL: string, museumId: MuseumId, areaId: AreaId);
|
|
595
|
+
get(): Promise<Spot[]>;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
declare class ArticleTagRepository {
|
|
599
|
+
readonly baseURL: string;
|
|
600
|
+
constructor(baseURL: string, museumId: MuseumId, articleId: ArticleId);
|
|
601
|
+
get(): Promise<TagList>;
|
|
602
|
+
put(tagIds: TagIdList): Promise<TagList>;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
declare class ArticlePictureRepository {
|
|
606
|
+
readonly baseURL: string;
|
|
607
|
+
constructor(baseURL: string, museumId: MuseumId, articleId: ArticleId);
|
|
608
|
+
get(): Promise<PictureList>;
|
|
609
|
+
put(pictureIds: PictureIdList): Promise<PictureList>;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
declare class ArticleEventRepository {
|
|
613
|
+
readonly baseURL: string;
|
|
614
|
+
constructor(baseURL: string, museumId: MuseumId, articleId: ArticleId);
|
|
615
|
+
get(): Promise<EventList>;
|
|
616
|
+
update(eventIds: EventId[]): Promise<EventList>;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
declare class EventArticleRepository {
|
|
620
|
+
readonly baseURL: string;
|
|
621
|
+
constructor(baseURL: string, museumId: MuseumId, eventId: EventId);
|
|
622
|
+
get(): Promise<ArticleList>;
|
|
623
|
+
put(articleIds: ArticleIdList): Promise<ArticleList>;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
declare class EventPictureRepository {
|
|
627
|
+
readonly baseURL: string;
|
|
628
|
+
constructor(baseURL: string, museumId: MuseumId, eventId: EventId);
|
|
629
|
+
get(): Promise<Picture>;
|
|
630
|
+
put(pictureId: PictureId): Promise<Picture>;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
declare class GuidePictureRepository {
|
|
634
|
+
readonly baseURL: string;
|
|
635
|
+
constructor(baseURL: string, museumId: MuseumId, guideId: GuideId);
|
|
636
|
+
get(): Promise<Picture>;
|
|
637
|
+
put(pictureId: PictureId): Promise<Picture>;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
declare class TagArticleRepository {
|
|
641
|
+
readonly baseURL: string;
|
|
642
|
+
constructor(baseURL: string, museumId: MuseumId, tagId: TagId);
|
|
643
|
+
get(): Promise<ArticleList>;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
export { type Area, type AreaId, type AreaIdList, AreaIdListSchema, AreaIdSchema, type AreaList, AreaListSchema, AreaRepository, AreaSchema, AreaSpotRepository, type Article, ArticleAudioRepository, ArticleEventRepository, type ArticleId, type ArticleIdList, ArticleIdListSchema, ArticleIdSchema, type ArticleList, ArticleListSchema, type ArticlePermission, ArticlePictureRepository, ArticleRepository, ArticleSchema, ArticleSpotRepository, ArticleTagRepository, type Audio, type AudioId, type AudioIdList, AudioIdListSchema, AudioIdSchema, type AudioList, AudioListSchema, AudioRepository, AudioSchema, AuthRepository, type CreateArea, CreateAreaSchema, type CreateArticle, CreateArticleSchema, type CreateEvent, CreateEventSchema, type CreateGuide, CreateGuideSchema, type CreateMuseum, CreateMuseumSchema, type CreateSpot, CreateSpotSchema, type CreateTag, CreateTagSchema, type Credentials, CredentialsSchema, type Event, EventArticleRepository, type EventId, type EventIdList, EventIdListSchema, EventIdSchema, type EventList, EventListSchema, EventPictureRepository, EventRepository, EventSchema, type Guide, type GuideId, type GuideIdList, GuideIdListSchema, GuideIdSchema, type GuideList, GuideListSchema, GuidePictureRepository, GuideRepository, GuideSchema, type Museum, type MuseumId, type MuseumIdList, MuseumIdListSchema, MuseumIdSchema, type MuseumList, MuseumListSchema, MuseumRepository, MuseumSchema, type Picture, type PictureId, type PictureIdList, PictureIdListSchema, PictureIdSchema, type PictureList, PictureListSchema, PictureRepository, PictureSchema, type Role, type Spot, SpotArticleRepository, type SpotId, type SpotIdList, SpotIdListSchema, SpotIdSchema, type SpotList, SpotListSchema, SpotRepository, SpotSchema, type Tag, TagArticleRepository, type TagId, type TagIdList, TagIdListSchema, TagIdSchema, type TagList, TagListSchema, TagRepository, TagSchema, type UpdateArea, UpdateAreaSchema, type UpdateArticle, UpdateArticleSchema, type UpdateEvent, UpdateEventSchema, type UpdateGuide, UpdateGuideSchema, type UpdateMuseum, UpdateMuseumSchema, type UpdateSpot, UpdateSpotSchema, type UpdateTag, UpdateTagSchema, type User, type UserId, type UserIdList, UserIdListSchema, UserIdSchema, type UserList, UserListSchema, UserRepository, UserSchema };
|