@prismicio/editor-fields 0.4.58-alpha.repeatable-link-base.0 → 0.4.58-alpha.repeatable-link-base.1
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/EditorConfig.d.ts +1 -1
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +53 -53
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +5 -5
- package/dist/core/repeatable.d.ts +3 -0
- package/dist/core/service/customType.d.ts +25 -0
- package/dist/core/service/document.d.ts +19 -18
- package/dist/core/service/documentSearch.d.ts +221 -20
- package/dist/core/service/index.d.ts +1 -1
- package/dist/core/service/repository.d.ts +129 -0
- package/dist/core/service/role.d.ts +141 -0
- package/dist/core/service/user.d.ts +1 -101
- package/dist/fields/ImageField/useImageField.d.ts +1 -1
- package/dist/fields/LinkField/useLinkField.d.ts +1 -1
- package/dist/fields/RichTextField/coreExtensions/ListItem.d.ts +2 -2
- package/dist/fields/RichTextField/extensions/Image/ImageLinkControl.d.ts +0 -0
- package/dist/fields/RichTextField/extensions/Image/useImageView.d.ts +1 -1
- package/dist/fields/RichTextField/extensions/extensions.d.ts +1 -1
- package/dist/index.cjs.js +35 -35
- package/dist/index.d.ts +8 -8
- package/dist/index.es.js +9877 -9848
- package/package.json +5 -5
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { type AuthStrategy, type EditorConfig } from "../../EditorConfig";
|
|
2
2
|
import { type DocumentVersion } from "./document";
|
|
3
|
+
import type { Repository } from "./repository";
|
|
3
4
|
interface SearchDocumentsArgs {
|
|
4
5
|
coreApiBaseUrl: URL;
|
|
5
6
|
documentSearchBaseUrl: URL;
|
|
6
7
|
authStrategy: AuthStrategy;
|
|
7
8
|
repository: string;
|
|
8
|
-
searchTerm
|
|
9
|
-
customTypes
|
|
10
|
-
tags
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
searchTerm?: string;
|
|
10
|
+
customTypes?: string[];
|
|
11
|
+
tags?: string[];
|
|
12
|
+
authors?: string[];
|
|
13
|
+
status?: DocumentVersion["status"][];
|
|
14
|
+
locale?: string;
|
|
15
|
+
/**
|
|
16
|
+
* TODO: Remove after all repos have been migrated to storageVerison 7 or above (PBD-1908)
|
|
17
|
+
*/
|
|
18
|
+
storageVersion?: Repository["storageVersion"];
|
|
13
19
|
searchDocumentsWithInterestingVersions: boolean;
|
|
14
20
|
track: ((args: {
|
|
15
21
|
numberOfResults: number;
|
|
@@ -20,6 +26,42 @@ interface SearchDocumentsArgs {
|
|
|
20
26
|
signal: AbortSignal;
|
|
21
27
|
}
|
|
22
28
|
export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
29
|
+
results: {
|
|
30
|
+
id: string;
|
|
31
|
+
title: string;
|
|
32
|
+
language: {
|
|
33
|
+
isMaster?: boolean | undefined;
|
|
34
|
+
id: string;
|
|
35
|
+
label: string;
|
|
36
|
+
};
|
|
37
|
+
custom_type_id: string;
|
|
38
|
+
group_lang_id: string;
|
|
39
|
+
versions: (({
|
|
40
|
+
status: "unclassified";
|
|
41
|
+
} | {
|
|
42
|
+
status: "published";
|
|
43
|
+
} | {
|
|
44
|
+
status: "release";
|
|
45
|
+
release_id: string;
|
|
46
|
+
} | {
|
|
47
|
+
status: "archived";
|
|
48
|
+
}) & {
|
|
49
|
+
tags: string[];
|
|
50
|
+
author: {
|
|
51
|
+
first_name?: string | undefined;
|
|
52
|
+
last_name?: string | undefined;
|
|
53
|
+
email?: string | undefined;
|
|
54
|
+
uploadedAvatar?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
version_id: string;
|
|
57
|
+
last_modified_date: Date;
|
|
58
|
+
custom_type_label: string;
|
|
59
|
+
preview_image?: string | undefined;
|
|
60
|
+
uid?: string | undefined;
|
|
61
|
+
preview_summary?: string | undefined;
|
|
62
|
+
})[];
|
|
63
|
+
}[];
|
|
64
|
+
} | {
|
|
23
65
|
results: {
|
|
24
66
|
id: string;
|
|
25
67
|
title: string;
|
|
@@ -48,11 +90,16 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
48
90
|
}[];
|
|
49
91
|
}>;
|
|
50
92
|
interface searchDocumentsQueryOptionsArgs {
|
|
51
|
-
searchTerm
|
|
52
|
-
customTypes
|
|
53
|
-
tags
|
|
54
|
-
|
|
55
|
-
|
|
93
|
+
searchTerm?: string;
|
|
94
|
+
customTypes?: string[];
|
|
95
|
+
tags?: string[];
|
|
96
|
+
authors?: string[];
|
|
97
|
+
status?: DocumentVersion["status"][];
|
|
98
|
+
locale?: string;
|
|
99
|
+
/**
|
|
100
|
+
* TODO: Remove after all repos have been migrated to storageVerison 7 or above (PBD-1908)
|
|
101
|
+
*/
|
|
102
|
+
storageVersion?: Repository["storageVersion"];
|
|
56
103
|
config: SearchDocumentsConfig;
|
|
57
104
|
track?: (args: {
|
|
58
105
|
numberOfResults: number;
|
|
@@ -62,6 +109,42 @@ interface searchDocumentsQueryOptionsArgs {
|
|
|
62
109
|
}) => void;
|
|
63
110
|
}
|
|
64
111
|
export declare function searchDocumentsQueryOptions(args: searchDocumentsQueryOptionsArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
112
|
+
results: {
|
|
113
|
+
id: string;
|
|
114
|
+
title: string;
|
|
115
|
+
language: {
|
|
116
|
+
isMaster?: boolean | undefined;
|
|
117
|
+
id: string;
|
|
118
|
+
label: string;
|
|
119
|
+
};
|
|
120
|
+
custom_type_id: string;
|
|
121
|
+
group_lang_id: string;
|
|
122
|
+
versions: (({
|
|
123
|
+
status: "unclassified";
|
|
124
|
+
} | {
|
|
125
|
+
status: "published";
|
|
126
|
+
} | {
|
|
127
|
+
status: "release";
|
|
128
|
+
release_id: string;
|
|
129
|
+
} | {
|
|
130
|
+
status: "archived";
|
|
131
|
+
}) & {
|
|
132
|
+
tags: string[];
|
|
133
|
+
author: {
|
|
134
|
+
first_name?: string | undefined;
|
|
135
|
+
last_name?: string | undefined;
|
|
136
|
+
email?: string | undefined;
|
|
137
|
+
uploadedAvatar?: string | undefined;
|
|
138
|
+
};
|
|
139
|
+
version_id: string;
|
|
140
|
+
last_modified_date: Date;
|
|
141
|
+
custom_type_label: string;
|
|
142
|
+
preview_image?: string | undefined;
|
|
143
|
+
uid?: string | undefined;
|
|
144
|
+
preview_summary?: string | undefined;
|
|
145
|
+
})[];
|
|
146
|
+
}[];
|
|
147
|
+
} | {
|
|
65
148
|
results: {
|
|
66
149
|
id: string;
|
|
67
150
|
title: string;
|
|
@@ -89,6 +172,42 @@ export declare function searchDocumentsQueryOptions(args: searchDocumentsQueryOp
|
|
|
89
172
|
})[];
|
|
90
173
|
}[];
|
|
91
174
|
}, Error, {
|
|
175
|
+
results: {
|
|
176
|
+
id: string;
|
|
177
|
+
title: string;
|
|
178
|
+
language: {
|
|
179
|
+
isMaster?: boolean | undefined;
|
|
180
|
+
id: string;
|
|
181
|
+
label: string;
|
|
182
|
+
};
|
|
183
|
+
custom_type_id: string;
|
|
184
|
+
group_lang_id: string;
|
|
185
|
+
versions: (({
|
|
186
|
+
status: "unclassified";
|
|
187
|
+
} | {
|
|
188
|
+
status: "published";
|
|
189
|
+
} | {
|
|
190
|
+
status: "release";
|
|
191
|
+
release_id: string;
|
|
192
|
+
} | {
|
|
193
|
+
status: "archived";
|
|
194
|
+
}) & {
|
|
195
|
+
tags: string[];
|
|
196
|
+
author: {
|
|
197
|
+
first_name?: string | undefined;
|
|
198
|
+
last_name?: string | undefined;
|
|
199
|
+
email?: string | undefined;
|
|
200
|
+
uploadedAvatar?: string | undefined;
|
|
201
|
+
};
|
|
202
|
+
version_id: string;
|
|
203
|
+
last_modified_date: Date;
|
|
204
|
+
custom_type_label: string;
|
|
205
|
+
preview_image?: string | undefined;
|
|
206
|
+
uid?: string | undefined;
|
|
207
|
+
preview_summary?: string | undefined;
|
|
208
|
+
})[];
|
|
209
|
+
}[];
|
|
210
|
+
} | {
|
|
92
211
|
results: {
|
|
93
212
|
id: string;
|
|
94
213
|
title: string;
|
|
@@ -120,11 +239,12 @@ export declare function searchDocumentsQueryOptions(args: searchDocumentsQueryOp
|
|
|
120
239
|
readonly documentSearchBaseUrl: URL;
|
|
121
240
|
readonly authStrategy: AuthStrategy;
|
|
122
241
|
readonly repository: string;
|
|
123
|
-
readonly searchTerm: string;
|
|
124
|
-
readonly customTypes: string[];
|
|
125
|
-
readonly tags: string[];
|
|
126
|
-
readonly
|
|
127
|
-
readonly
|
|
242
|
+
readonly searchTerm: string | undefined;
|
|
243
|
+
readonly customTypes: string[] | undefined;
|
|
244
|
+
readonly tags: string[] | undefined;
|
|
245
|
+
readonly authors: string[] | undefined;
|
|
246
|
+
readonly status: ("published" | "release" | "archived" | "unclassified")[] | undefined;
|
|
247
|
+
readonly locale: string | undefined;
|
|
128
248
|
readonly searchDocumentsWithInterestingVersions: boolean;
|
|
129
249
|
readonly track: ((args: {
|
|
130
250
|
numberOfResults: number;
|
|
@@ -132,8 +252,48 @@ export declare function searchDocumentsQueryOptions(args: searchDocumentsQueryOp
|
|
|
132
252
|
numberOfWords: number;
|
|
133
253
|
timeToGetResultsInMs: number;
|
|
134
254
|
}) => void) | undefined;
|
|
255
|
+
readonly storageVersion: {
|
|
256
|
+
major: number;
|
|
257
|
+
minor: number;
|
|
258
|
+
} | undefined;
|
|
135
259
|
}]> & {
|
|
136
260
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
261
|
+
results: {
|
|
262
|
+
id: string;
|
|
263
|
+
title: string;
|
|
264
|
+
language: {
|
|
265
|
+
isMaster?: boolean | undefined;
|
|
266
|
+
id: string;
|
|
267
|
+
label: string;
|
|
268
|
+
};
|
|
269
|
+
custom_type_id: string;
|
|
270
|
+
group_lang_id: string;
|
|
271
|
+
versions: (({
|
|
272
|
+
status: "unclassified";
|
|
273
|
+
} | {
|
|
274
|
+
status: "published";
|
|
275
|
+
} | {
|
|
276
|
+
status: "release";
|
|
277
|
+
release_id: string;
|
|
278
|
+
} | {
|
|
279
|
+
status: "archived";
|
|
280
|
+
}) & {
|
|
281
|
+
tags: string[];
|
|
282
|
+
author: {
|
|
283
|
+
first_name?: string | undefined;
|
|
284
|
+
last_name?: string | undefined;
|
|
285
|
+
email?: string | undefined;
|
|
286
|
+
uploadedAvatar?: string | undefined;
|
|
287
|
+
};
|
|
288
|
+
version_id: string;
|
|
289
|
+
last_modified_date: Date;
|
|
290
|
+
custom_type_label: string;
|
|
291
|
+
preview_image?: string | undefined;
|
|
292
|
+
uid?: string | undefined;
|
|
293
|
+
preview_summary?: string | undefined;
|
|
294
|
+
})[];
|
|
295
|
+
}[];
|
|
296
|
+
} | {
|
|
137
297
|
results: {
|
|
138
298
|
id: string;
|
|
139
299
|
title: string;
|
|
@@ -167,11 +327,12 @@ export declare function searchDocumentsQueryOptions(args: searchDocumentsQueryOp
|
|
|
167
327
|
readonly documentSearchBaseUrl: URL;
|
|
168
328
|
readonly authStrategy: AuthStrategy;
|
|
169
329
|
readonly repository: string;
|
|
170
|
-
readonly searchTerm: string;
|
|
171
|
-
readonly customTypes: string[];
|
|
172
|
-
readonly tags: string[];
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
330
|
+
readonly searchTerm: string | undefined;
|
|
331
|
+
readonly customTypes: string[] | undefined;
|
|
332
|
+
readonly tags: string[] | undefined;
|
|
333
|
+
readonly authors: string[] | undefined;
|
|
334
|
+
readonly status: ("published" | "release" | "archived" | "unclassified")[] | undefined;
|
|
335
|
+
readonly locale: string | undefined;
|
|
175
336
|
readonly searchDocumentsWithInterestingVersions: boolean;
|
|
176
337
|
readonly track: ((args: {
|
|
177
338
|
numberOfResults: number;
|
|
@@ -179,7 +340,47 @@ export declare function searchDocumentsQueryOptions(args: searchDocumentsQueryOp
|
|
|
179
340
|
numberOfWords: number;
|
|
180
341
|
timeToGetResultsInMs: number;
|
|
181
342
|
}) => void) | undefined;
|
|
343
|
+
readonly storageVersion: {
|
|
344
|
+
major: number;
|
|
345
|
+
minor: number;
|
|
346
|
+
} | undefined;
|
|
182
347
|
}], {
|
|
348
|
+
results: {
|
|
349
|
+
id: string;
|
|
350
|
+
title: string;
|
|
351
|
+
language: {
|
|
352
|
+
isMaster?: boolean | undefined;
|
|
353
|
+
id: string;
|
|
354
|
+
label: string;
|
|
355
|
+
};
|
|
356
|
+
custom_type_id: string;
|
|
357
|
+
group_lang_id: string;
|
|
358
|
+
versions: (({
|
|
359
|
+
status: "unclassified";
|
|
360
|
+
} | {
|
|
361
|
+
status: "published";
|
|
362
|
+
} | {
|
|
363
|
+
status: "release";
|
|
364
|
+
release_id: string;
|
|
365
|
+
} | {
|
|
366
|
+
status: "archived";
|
|
367
|
+
}) & {
|
|
368
|
+
tags: string[];
|
|
369
|
+
author: {
|
|
370
|
+
first_name?: string | undefined;
|
|
371
|
+
last_name?: string | undefined;
|
|
372
|
+
email?: string | undefined;
|
|
373
|
+
uploadedAvatar?: string | undefined;
|
|
374
|
+
};
|
|
375
|
+
version_id: string;
|
|
376
|
+
last_modified_date: Date;
|
|
377
|
+
custom_type_label: string;
|
|
378
|
+
preview_image?: string | undefined;
|
|
379
|
+
uid?: string | undefined;
|
|
380
|
+
preview_summary?: string | undefined;
|
|
381
|
+
})[];
|
|
382
|
+
}[];
|
|
383
|
+
} | {
|
|
183
384
|
results: {
|
|
184
385
|
id: string;
|
|
185
386
|
title: string;
|
|
@@ -210,4 +210,133 @@ declare const repositoryTagsResponse: z.ZodObject<{
|
|
|
210
210
|
}>;
|
|
211
211
|
type RepositoryTags = z.TypeOf<typeof repositoryTagsResponse>;
|
|
212
212
|
export declare function getRepositoryTags(baseUrl: URL, authStrategy: AuthStrategy): Promise<RepositoryTags>;
|
|
213
|
+
declare const repositoryQuotasV2: z.ZodObject<{
|
|
214
|
+
maxNbEnvironments: z.ZodNumber;
|
|
215
|
+
integrationFieldsEnabled: z.ZodBoolean;
|
|
216
|
+
personalEnvironmentsEnabled: z.ZodBoolean;
|
|
217
|
+
sliceMachineEnabled: z.ZodBoolean;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
maxNbEnvironments: number;
|
|
220
|
+
integrationFieldsEnabled: boolean;
|
|
221
|
+
personalEnvironmentsEnabled: boolean;
|
|
222
|
+
sliceMachineEnabled: boolean;
|
|
223
|
+
}, {
|
|
224
|
+
maxNbEnvironments: number;
|
|
225
|
+
integrationFieldsEnabled: boolean;
|
|
226
|
+
personalEnvironmentsEnabled: boolean;
|
|
227
|
+
sliceMachineEnabled: boolean;
|
|
228
|
+
}>;
|
|
229
|
+
export type RepositoryQuotasV2 = z.TypeOf<typeof repositoryQuotasV2>;
|
|
230
|
+
export declare const repositorySchemaV2: z.ZodObject<{
|
|
231
|
+
_id: z.ZodString;
|
|
232
|
+
name: z.ZodString;
|
|
233
|
+
onboarding: z.ZodObject<{
|
|
234
|
+
completedSteps: z.ZodArray<z.ZodString, "many">;
|
|
235
|
+
isDismissed: z.ZodBoolean;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
completedSteps: string[];
|
|
238
|
+
isDismissed: boolean;
|
|
239
|
+
}, {
|
|
240
|
+
completedSteps: string[];
|
|
241
|
+
isDismissed: boolean;
|
|
242
|
+
}>;
|
|
243
|
+
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
|
|
244
|
+
quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
245
|
+
maxNbEnvironments: z.ZodNumber;
|
|
246
|
+
integrationFieldsEnabled: z.ZodBoolean;
|
|
247
|
+
personalEnvironmentsEnabled: z.ZodBoolean;
|
|
248
|
+
sliceMachineEnabled: z.ZodBoolean;
|
|
249
|
+
}, "strip", z.ZodTypeAny, {
|
|
250
|
+
maxNbEnvironments: number;
|
|
251
|
+
integrationFieldsEnabled: boolean;
|
|
252
|
+
personalEnvironmentsEnabled: boolean;
|
|
253
|
+
sliceMachineEnabled: boolean;
|
|
254
|
+
}, {
|
|
255
|
+
maxNbEnvironments: number;
|
|
256
|
+
integrationFieldsEnabled: boolean;
|
|
257
|
+
personalEnvironmentsEnabled: boolean;
|
|
258
|
+
sliceMachineEnabled: boolean;
|
|
259
|
+
}>>>;
|
|
260
|
+
storageVersion: z.ZodObject<{
|
|
261
|
+
major: z.ZodNumber;
|
|
262
|
+
minor: z.ZodNumber;
|
|
263
|
+
}, "strip", z.ZodTypeAny, {
|
|
264
|
+
major: number;
|
|
265
|
+
minor: number;
|
|
266
|
+
}, {
|
|
267
|
+
major: number;
|
|
268
|
+
minor: number;
|
|
269
|
+
}>;
|
|
270
|
+
authors: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
271
|
+
id: z.ZodString;
|
|
272
|
+
firstname: z.ZodOptional<z.ZodString>;
|
|
273
|
+
lastname: z.ZodOptional<z.ZodString>;
|
|
274
|
+
email: z.ZodString;
|
|
275
|
+
uploadedAvatar: z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, "strip", z.ZodTypeAny, {
|
|
277
|
+
id: string;
|
|
278
|
+
email: string;
|
|
279
|
+
uploadedAvatar?: string | undefined;
|
|
280
|
+
firstname?: string | undefined;
|
|
281
|
+
lastname?: string | undefined;
|
|
282
|
+
}, {
|
|
283
|
+
id: string;
|
|
284
|
+
email: string;
|
|
285
|
+
uploadedAvatar?: string | undefined;
|
|
286
|
+
firstname?: string | undefined;
|
|
287
|
+
lastname?: string | undefined;
|
|
288
|
+
}>, "many">>>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
name: string;
|
|
291
|
+
authors: {
|
|
292
|
+
id: string;
|
|
293
|
+
email: string;
|
|
294
|
+
uploadedAvatar?: string | undefined;
|
|
295
|
+
firstname?: string | undefined;
|
|
296
|
+
lastname?: string | undefined;
|
|
297
|
+
}[];
|
|
298
|
+
quotas: {
|
|
299
|
+
maxNbEnvironments: number;
|
|
300
|
+
integrationFieldsEnabled: boolean;
|
|
301
|
+
personalEnvironmentsEnabled: boolean;
|
|
302
|
+
sliceMachineEnabled: boolean;
|
|
303
|
+
};
|
|
304
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
305
|
+
storageVersion: {
|
|
306
|
+
major: number;
|
|
307
|
+
minor: number;
|
|
308
|
+
};
|
|
309
|
+
_id: string;
|
|
310
|
+
onboarding: {
|
|
311
|
+
completedSteps: string[];
|
|
312
|
+
isDismissed: boolean;
|
|
313
|
+
};
|
|
314
|
+
}, {
|
|
315
|
+
name: string;
|
|
316
|
+
storageVersion: {
|
|
317
|
+
major: number;
|
|
318
|
+
minor: number;
|
|
319
|
+
};
|
|
320
|
+
_id: string;
|
|
321
|
+
onboarding: {
|
|
322
|
+
completedSteps: string[];
|
|
323
|
+
isDismissed: boolean;
|
|
324
|
+
};
|
|
325
|
+
authors?: {
|
|
326
|
+
id: string;
|
|
327
|
+
email: string;
|
|
328
|
+
uploadedAvatar?: string | undefined;
|
|
329
|
+
firstname?: string | undefined;
|
|
330
|
+
lastname?: string | undefined;
|
|
331
|
+
}[] | undefined;
|
|
332
|
+
quotas?: {
|
|
333
|
+
maxNbEnvironments: number;
|
|
334
|
+
integrationFieldsEnabled: boolean;
|
|
335
|
+
personalEnvironmentsEnabled: boolean;
|
|
336
|
+
sliceMachineEnabled: boolean;
|
|
337
|
+
} | undefined;
|
|
338
|
+
framework?: unknown;
|
|
339
|
+
}>;
|
|
340
|
+
export type RepositoryV2 = z.infer<typeof repositorySchemaV2>;
|
|
341
|
+
export declare function getRepositoryV2(baseUrl: URL, repository: string, authStrategy: AuthStrategy): Promise<RepositoryV2>;
|
|
213
342
|
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { AuthStrategy } from "../../EditorConfig";
|
|
3
|
+
export declare const LocaleId: z.ZodString;
|
|
4
|
+
export declare const BasicRole: z.ZodEnum<["Manager", "Writer", "Readonly"]>;
|
|
5
|
+
export declare const RolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>;
|
|
6
|
+
export type RolesPerLocale = z.infer<typeof RolesPerLocale>;
|
|
7
|
+
export declare const RolesPerLocaleByUser: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
8
|
+
export type RolesPerLocaleByUser = z.infer<typeof RolesPerLocaleByUser>;
|
|
9
|
+
export declare const TeamSpace: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
14
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
customTypes: string[];
|
|
19
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
20
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
21
|
+
}, {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
customTypes: string[];
|
|
25
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
26
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export type TeamSpace = z.infer<typeof TeamSpace>;
|
|
29
|
+
declare const TeamSpaceUpsert: z.ZodObject<{
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
32
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
33
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
name: string;
|
|
36
|
+
customTypes: string[];
|
|
37
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
38
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
name: string;
|
|
41
|
+
customTypes: string[];
|
|
42
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
43
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export type TeamSpaceUpsert = z.infer<typeof TeamSpaceUpsert>;
|
|
46
|
+
declare const TeamSpacesResponse: z.ZodObject<{
|
|
47
|
+
results: z.ZodArray<z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
customTypes: z.ZodArray<z.ZodString, "many">;
|
|
51
|
+
rolesPerLocale: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>;
|
|
52
|
+
rolesPerLocaleByUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer", "Readonly"]>>>>;
|
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
customTypes: string[];
|
|
57
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
58
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
customTypes: string[];
|
|
63
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
64
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
65
|
+
}>, "many">;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
results: {
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
customTypes: string[];
|
|
71
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
72
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
73
|
+
}[];
|
|
74
|
+
}, {
|
|
75
|
+
results: {
|
|
76
|
+
id: string;
|
|
77
|
+
name: string;
|
|
78
|
+
customTypes: string[];
|
|
79
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
80
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
81
|
+
}[];
|
|
82
|
+
}>;
|
|
83
|
+
export type TeamSpacesResponse = z.infer<typeof TeamSpacesResponse>;
|
|
84
|
+
interface GetTeamSpacesArgs {
|
|
85
|
+
baseUrl: URL;
|
|
86
|
+
repository: string;
|
|
87
|
+
authStrategy: AuthStrategy;
|
|
88
|
+
fetchEnabled: boolean;
|
|
89
|
+
}
|
|
90
|
+
export declare function getTeamSpaces(args: GetTeamSpacesArgs): Promise<TeamSpacesResponse>;
|
|
91
|
+
export declare function getTeamSpacesOptions(args: GetTeamSpacesArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
92
|
+
results: {
|
|
93
|
+
id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
customTypes: string[];
|
|
96
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
97
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
98
|
+
}[];
|
|
99
|
+
}, Error, {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
customTypes: string[];
|
|
103
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
104
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
105
|
+
}[], string[]> & {
|
|
106
|
+
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
107
|
+
results: {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
customTypes: string[];
|
|
111
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
112
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
113
|
+
}[];
|
|
114
|
+
}> | undefined;
|
|
115
|
+
} & {
|
|
116
|
+
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<string[], {
|
|
117
|
+
results: {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
customTypes: string[];
|
|
121
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer" | "Readonly"> | undefined;
|
|
122
|
+
rolesPerLocaleByUser?: Record<string, Record<string, "Manager" | "Writer" | "Readonly">> | undefined;
|
|
123
|
+
}[];
|
|
124
|
+
}>;
|
|
125
|
+
};
|
|
126
|
+
interface CreateTeamSpaceArgs {
|
|
127
|
+
baseUrl: URL;
|
|
128
|
+
repository: string;
|
|
129
|
+
authStrategy: AuthStrategy;
|
|
130
|
+
payload: TeamSpaceUpsert;
|
|
131
|
+
}
|
|
132
|
+
export declare function createTeamSpace(args: CreateTeamSpaceArgs): Promise<TeamSpace>;
|
|
133
|
+
interface UpdateTeamSpaceArgs {
|
|
134
|
+
baseUrl: URL;
|
|
135
|
+
repository: string;
|
|
136
|
+
authStrategy: AuthStrategy;
|
|
137
|
+
payload: TeamSpaceUpsert;
|
|
138
|
+
teamSpaceId: string;
|
|
139
|
+
}
|
|
140
|
+
export declare function updateTeamSpace(args: UpdateTeamSpaceArgs): Promise<TeamSpace>;
|
|
141
|
+
export {};
|