@prismicio/editor-fields 0.4.74 → 0.4.75
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/core/APIExplorer/components/APIExplorerContext.d.ts +10 -10
- package/dist/core/APIExplorer/components/Request/components/RequestFormSelect.d.ts +1 -1
- package/dist/core/APIExplorer/components/Request/createRequest.d.ts +6 -7
- package/dist/core/APIExplorer/constants.d.ts +1 -0
- package/dist/core/APIExplorer/hooks/useRepositoryCustomTypes.d.ts +1 -1
- package/dist/core/APIExplorer/utils.d.ts +3 -0
- package/dist/core/MediaLibrary/hooks/mediaLibraryData.d.ts +76 -76
- package/dist/core/MediaLibrary/hooks/useMediaLibraryUpload.d.ts +8 -8
- package/dist/core/MediaLibrary/hooks/useSelectedMedia.d.ts +8 -8
- package/dist/core/UnsplashLibrary/unsplashData.d.ts +18 -18
- package/dist/core/document.d.ts +1 -1
- package/dist/core/service/customType.d.ts +153 -32
- package/dist/core/service/document.d.ts +146 -146
- package/dist/core/service/documentSearch.d.ts +37 -37
- package/dist/core/service/onboarding.d.ts +3 -3
- package/dist/core/service/repository.d.ts +6 -6
- package/dist/core/service/role.d.ts +64 -64
- package/dist/core/service/user.d.ts +8 -8
- package/dist/fields/ImageField/useImageField.d.ts +8 -8
- package/dist/fields/ImageField/useImageFieldImageUpload.d.ts +8 -8
- package/dist/fields/LinkField/Documents/documentsData.d.ts +12 -12
- package/dist/fields/LinkField/LinkField.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/useImageView.d.ts +8 -8
- package/dist/index.cjs.js +50 -61
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +15510 -15410
- package/dist/slices/utils.d.ts +5 -5
- package/package.json +5 -5
|
@@ -22,13 +22,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
22
22
|
results: {
|
|
23
23
|
id: string;
|
|
24
24
|
title: string;
|
|
25
|
+
custom_type_id: string;
|
|
26
|
+
group_lang_id: string;
|
|
25
27
|
language: {
|
|
26
28
|
isMaster?: boolean | undefined;
|
|
27
29
|
id: string;
|
|
28
30
|
label: string;
|
|
29
31
|
};
|
|
30
|
-
custom_type_id: string;
|
|
31
|
-
group_lang_id: string;
|
|
32
32
|
versions: (({
|
|
33
33
|
status: "unclassified";
|
|
34
34
|
} | {
|
|
@@ -45,13 +45,13 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
45
45
|
custom_type_label: string;
|
|
46
46
|
author: {
|
|
47
47
|
id?: string | undefined;
|
|
48
|
-
email?: string | undefined;
|
|
49
|
-
uploadedAvatar?: string | undefined;
|
|
50
48
|
first_name?: string | undefined;
|
|
51
49
|
last_name?: string | undefined;
|
|
50
|
+
email?: string | undefined;
|
|
51
|
+
uploadedAvatar?: string | undefined;
|
|
52
52
|
};
|
|
53
|
-
uid?: string | undefined;
|
|
54
53
|
preview_image?: string | undefined;
|
|
54
|
+
uid?: string | undefined;
|
|
55
55
|
preview_summary?: string | undefined;
|
|
56
56
|
})[];
|
|
57
57
|
}[];
|
|
@@ -75,10 +75,10 @@ export declare function searchDocuments(args: SearchDocumentsArgs): Promise<{
|
|
|
75
75
|
tags: string[];
|
|
76
76
|
version_id: string;
|
|
77
77
|
last_modified_date: Date;
|
|
78
|
+
custom_type_id?: string | undefined;
|
|
79
|
+
preview_image?: string | undefined;
|
|
78
80
|
uid?: string | undefined;
|
|
79
81
|
summary?: string | undefined;
|
|
80
|
-
preview_image?: string | undefined;
|
|
81
|
-
custom_type_id?: string | undefined;
|
|
82
82
|
author_ids?: string[] | undefined;
|
|
83
83
|
highlights?: {
|
|
84
84
|
uid?: string | undefined;
|
|
@@ -103,13 +103,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
103
103
|
results: {
|
|
104
104
|
id: string;
|
|
105
105
|
title: string;
|
|
106
|
+
custom_type_id: string;
|
|
107
|
+
group_lang_id: string;
|
|
106
108
|
language: {
|
|
107
109
|
isMaster?: boolean | undefined;
|
|
108
110
|
id: string;
|
|
109
111
|
label: string;
|
|
110
112
|
};
|
|
111
|
-
custom_type_id: string;
|
|
112
|
-
group_lang_id: string;
|
|
113
113
|
versions: (({
|
|
114
114
|
status: "unclassified";
|
|
115
115
|
} | {
|
|
@@ -126,13 +126,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
126
126
|
custom_type_label: string;
|
|
127
127
|
author: {
|
|
128
128
|
id?: string | undefined;
|
|
129
|
-
email?: string | undefined;
|
|
130
|
-
uploadedAvatar?: string | undefined;
|
|
131
129
|
first_name?: string | undefined;
|
|
132
130
|
last_name?: string | undefined;
|
|
131
|
+
email?: string | undefined;
|
|
132
|
+
uploadedAvatar?: string | undefined;
|
|
133
133
|
};
|
|
134
|
-
uid?: string | undefined;
|
|
135
134
|
preview_image?: string | undefined;
|
|
135
|
+
uid?: string | undefined;
|
|
136
136
|
preview_summary?: string | undefined;
|
|
137
137
|
})[];
|
|
138
138
|
}[];
|
|
@@ -156,10 +156,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
156
156
|
tags: string[];
|
|
157
157
|
version_id: string;
|
|
158
158
|
last_modified_date: Date;
|
|
159
|
+
custom_type_id?: string | undefined;
|
|
160
|
+
preview_image?: string | undefined;
|
|
159
161
|
uid?: string | undefined;
|
|
160
162
|
summary?: string | undefined;
|
|
161
|
-
preview_image?: string | undefined;
|
|
162
|
-
custom_type_id?: string | undefined;
|
|
163
163
|
author_ids?: string[] | undefined;
|
|
164
164
|
highlights?: {
|
|
165
165
|
uid?: string | undefined;
|
|
@@ -170,13 +170,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
170
170
|
results: {
|
|
171
171
|
id: string;
|
|
172
172
|
title: string;
|
|
173
|
+
custom_type_id: string;
|
|
174
|
+
group_lang_id: string;
|
|
173
175
|
language: {
|
|
174
176
|
isMaster?: boolean | undefined;
|
|
175
177
|
id: string;
|
|
176
178
|
label: string;
|
|
177
179
|
};
|
|
178
|
-
custom_type_id: string;
|
|
179
|
-
group_lang_id: string;
|
|
180
180
|
versions: (({
|
|
181
181
|
status: "unclassified";
|
|
182
182
|
} | {
|
|
@@ -193,13 +193,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
193
193
|
custom_type_label: string;
|
|
194
194
|
author: {
|
|
195
195
|
id?: string | undefined;
|
|
196
|
-
email?: string | undefined;
|
|
197
|
-
uploadedAvatar?: string | undefined;
|
|
198
196
|
first_name?: string | undefined;
|
|
199
197
|
last_name?: string | undefined;
|
|
198
|
+
email?: string | undefined;
|
|
199
|
+
uploadedAvatar?: string | undefined;
|
|
200
200
|
};
|
|
201
|
-
uid?: string | undefined;
|
|
202
201
|
preview_image?: string | undefined;
|
|
202
|
+
uid?: string | undefined;
|
|
203
203
|
preview_summary?: string | undefined;
|
|
204
204
|
})[];
|
|
205
205
|
}[];
|
|
@@ -223,10 +223,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
223
223
|
tags: string[];
|
|
224
224
|
version_id: string;
|
|
225
225
|
last_modified_date: Date;
|
|
226
|
+
custom_type_id?: string | undefined;
|
|
227
|
+
preview_image?: string | undefined;
|
|
226
228
|
uid?: string | undefined;
|
|
227
229
|
summary?: string | undefined;
|
|
228
|
-
preview_image?: string | undefined;
|
|
229
|
-
custom_type_id?: string | undefined;
|
|
230
230
|
author_ids?: string[] | undefined;
|
|
231
231
|
highlights?: {
|
|
232
232
|
uid?: string | undefined;
|
|
@@ -242,7 +242,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
242
242
|
readonly customTypes: string[] | undefined;
|
|
243
243
|
readonly tags: string[] | undefined;
|
|
244
244
|
readonly authors: string[] | undefined;
|
|
245
|
-
readonly status: ("
|
|
245
|
+
readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
|
|
246
246
|
readonly locale: string | undefined;
|
|
247
247
|
readonly storageVersion: {
|
|
248
248
|
major: number;
|
|
@@ -253,13 +253,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
253
253
|
results: {
|
|
254
254
|
id: string;
|
|
255
255
|
title: string;
|
|
256
|
+
custom_type_id: string;
|
|
257
|
+
group_lang_id: string;
|
|
256
258
|
language: {
|
|
257
259
|
isMaster?: boolean | undefined;
|
|
258
260
|
id: string;
|
|
259
261
|
label: string;
|
|
260
262
|
};
|
|
261
|
-
custom_type_id: string;
|
|
262
|
-
group_lang_id: string;
|
|
263
263
|
versions: (({
|
|
264
264
|
status: "unclassified";
|
|
265
265
|
} | {
|
|
@@ -276,13 +276,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
276
276
|
custom_type_label: string;
|
|
277
277
|
author: {
|
|
278
278
|
id?: string | undefined;
|
|
279
|
-
email?: string | undefined;
|
|
280
|
-
uploadedAvatar?: string | undefined;
|
|
281
279
|
first_name?: string | undefined;
|
|
282
280
|
last_name?: string | undefined;
|
|
281
|
+
email?: string | undefined;
|
|
282
|
+
uploadedAvatar?: string | undefined;
|
|
283
283
|
};
|
|
284
|
-
uid?: string | undefined;
|
|
285
284
|
preview_image?: string | undefined;
|
|
285
|
+
uid?: string | undefined;
|
|
286
286
|
preview_summary?: string | undefined;
|
|
287
287
|
})[];
|
|
288
288
|
}[];
|
|
@@ -306,10 +306,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
306
306
|
tags: string[];
|
|
307
307
|
version_id: string;
|
|
308
308
|
last_modified_date: Date;
|
|
309
|
+
custom_type_id?: string | undefined;
|
|
310
|
+
preview_image?: string | undefined;
|
|
309
311
|
uid?: string | undefined;
|
|
310
312
|
summary?: string | undefined;
|
|
311
|
-
preview_image?: string | undefined;
|
|
312
|
-
custom_type_id?: string | undefined;
|
|
313
313
|
author_ids?: string[] | undefined;
|
|
314
314
|
highlights?: {
|
|
315
315
|
uid?: string | undefined;
|
|
@@ -327,7 +327,7 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
327
327
|
readonly customTypes: string[] | undefined;
|
|
328
328
|
readonly tags: string[] | undefined;
|
|
329
329
|
readonly authors: string[] | undefined;
|
|
330
|
-
readonly status: ("
|
|
330
|
+
readonly status: ("unclassified" | "published" | "release" | "archived")[] | undefined;
|
|
331
331
|
readonly locale: string | undefined;
|
|
332
332
|
readonly storageVersion: {
|
|
333
333
|
major: number;
|
|
@@ -337,13 +337,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
337
337
|
results: {
|
|
338
338
|
id: string;
|
|
339
339
|
title: string;
|
|
340
|
+
custom_type_id: string;
|
|
341
|
+
group_lang_id: string;
|
|
340
342
|
language: {
|
|
341
343
|
isMaster?: boolean | undefined;
|
|
342
344
|
id: string;
|
|
343
345
|
label: string;
|
|
344
346
|
};
|
|
345
|
-
custom_type_id: string;
|
|
346
|
-
group_lang_id: string;
|
|
347
347
|
versions: (({
|
|
348
348
|
status: "unclassified";
|
|
349
349
|
} | {
|
|
@@ -360,13 +360,13 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
360
360
|
custom_type_label: string;
|
|
361
361
|
author: {
|
|
362
362
|
id?: string | undefined;
|
|
363
|
-
email?: string | undefined;
|
|
364
|
-
uploadedAvatar?: string | undefined;
|
|
365
363
|
first_name?: string | undefined;
|
|
366
364
|
last_name?: string | undefined;
|
|
365
|
+
email?: string | undefined;
|
|
366
|
+
uploadedAvatar?: string | undefined;
|
|
367
367
|
};
|
|
368
|
-
uid?: string | undefined;
|
|
369
368
|
preview_image?: string | undefined;
|
|
369
|
+
uid?: string | undefined;
|
|
370
370
|
preview_summary?: string | undefined;
|
|
371
371
|
})[];
|
|
372
372
|
}[];
|
|
@@ -390,10 +390,10 @@ export declare function searchDocumentsQueryOptions(args: SearchDocumentsQueryOp
|
|
|
390
390
|
tags: string[];
|
|
391
391
|
version_id: string;
|
|
392
392
|
last_modified_date: Date;
|
|
393
|
+
custom_type_id?: string | undefined;
|
|
394
|
+
preview_image?: string | undefined;
|
|
393
395
|
uid?: string | undefined;
|
|
394
396
|
summary?: string | undefined;
|
|
395
|
-
preview_image?: string | undefined;
|
|
396
|
-
custom_type_id?: string | undefined;
|
|
397
397
|
author_ids?: string[] | undefined;
|
|
398
398
|
highlights?: {
|
|
399
399
|
uid?: string | undefined;
|
|
@@ -15,10 +15,10 @@ export declare const onboardingStateSchema: z.ZodObject<{
|
|
|
15
15
|
completedSteps: z.ZodArray<z.ZodString, "many">;
|
|
16
16
|
isDismissed: z.ZodBoolean;
|
|
17
17
|
context: z.ZodObject<{
|
|
18
|
-
framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
18
|
+
framework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
|
|
19
19
|
starterId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
}, "strip", z.ZodTypeAny, {
|
|
21
|
-
framework: "
|
|
21
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
22
22
|
starterId?: string | null | undefined;
|
|
23
23
|
}, {
|
|
24
24
|
framework?: unknown;
|
|
@@ -28,7 +28,7 @@ export declare const onboardingStateSchema: z.ZodObject<{
|
|
|
28
28
|
completedSteps: string[];
|
|
29
29
|
isDismissed: boolean;
|
|
30
30
|
context: {
|
|
31
|
-
framework: "
|
|
31
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
32
32
|
starterId?: string | null | undefined;
|
|
33
33
|
};
|
|
34
34
|
}, {
|
|
@@ -28,7 +28,7 @@ declare const repositoryQuotas: z.ZodObject<{
|
|
|
28
28
|
slicemachineEnabled: boolean;
|
|
29
29
|
}>;
|
|
30
30
|
export type RepositoryQuotas = z.TypeOf<typeof repositoryQuotas>;
|
|
31
|
-
export declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
31
|
+
export declare const repositoryFramework: z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>;
|
|
32
32
|
export type RepositoryFramework = z.TypeOf<typeof repositoryFramework>;
|
|
33
33
|
declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
34
34
|
simulator_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -87,7 +87,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
87
87
|
}, {
|
|
88
88
|
slicemachineEnabled: boolean;
|
|
89
89
|
}>>>;
|
|
90
|
-
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
90
|
+
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
|
|
91
91
|
starterId: z.ZodOptional<z.ZodString>;
|
|
92
92
|
storageVersion: z.ZodObject<{
|
|
93
93
|
major: z.ZodNumber;
|
|
@@ -116,7 +116,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
116
|
quotas: {
|
|
117
117
|
slicemachineEnabled: boolean;
|
|
118
118
|
};
|
|
119
|
-
framework: "
|
|
119
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
120
120
|
storageVersion: {
|
|
121
121
|
major: number;
|
|
122
122
|
minor: number;
|
|
@@ -149,7 +149,7 @@ declare const repositorySchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
149
|
framework?: unknown;
|
|
150
150
|
starterId?: string | undefined;
|
|
151
151
|
}>, {
|
|
152
|
-
framework: "
|
|
152
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
153
153
|
simulatorUrl: string | undefined;
|
|
154
154
|
isSupportedFramework: boolean;
|
|
155
155
|
authors: {
|
|
@@ -243,7 +243,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
|
|
|
243
243
|
completedSteps: string[];
|
|
244
244
|
isDismissed: boolean;
|
|
245
245
|
}>;
|
|
246
|
-
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "
|
|
246
|
+
framework: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodEnum<["next", "nuxt", "sveltekit", "other"]>, "next" | "nuxt" | "sveltekit" | "other", unknown>>>;
|
|
247
247
|
quotas: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
248
248
|
maxNbEnvironments: z.ZodNumber;
|
|
249
249
|
integrationFieldsEnabled: z.ZodBoolean;
|
|
@@ -301,7 +301,7 @@ export declare const repositorySchemaV2: z.ZodObject<{
|
|
|
301
301
|
sliceMachineEnabled: boolean;
|
|
302
302
|
customRolesEnabled: boolean;
|
|
303
303
|
};
|
|
304
|
-
framework: "
|
|
304
|
+
framework: "next" | "nuxt" | "sveltekit" | "other";
|
|
305
305
|
storageVersion: {
|
|
306
306
|
major: number;
|
|
307
307
|
minor: number;
|
|
@@ -9,19 +9,19 @@ declare const RolesPerTeamSpace: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
|
9
9
|
rolesPerUser: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10
10
|
rolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer"]>>;
|
|
11
11
|
}, "strip", z.ZodTypeAny, {
|
|
12
|
-
rolesPerLocale: Record<string, "
|
|
12
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
13
13
|
}, {
|
|
14
|
-
rolesPerLocale: Record<string, "
|
|
14
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
15
15
|
}>>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
rolesPerLocale: Record<string, "
|
|
17
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
18
18
|
rolesPerUser: Record<string, {
|
|
19
|
-
rolesPerLocale: Record<string, "
|
|
19
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
20
20
|
}>;
|
|
21
21
|
}, {
|
|
22
|
-
rolesPerLocale: Record<string, "
|
|
22
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
23
23
|
rolesPerUser: Record<string, {
|
|
24
|
-
rolesPerLocale: Record<string, "
|
|
24
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
25
25
|
}>;
|
|
26
26
|
}>>;
|
|
27
27
|
export type RolesPerTeamSpace = z.infer<typeof RolesPerTeamSpace>;
|
|
@@ -29,25 +29,25 @@ declare const GetRolesResponse: z.ZodObject<{
|
|
|
29
29
|
repository: z.ZodOptional<z.ZodObject<{
|
|
30
30
|
rolesPerUser: z.ZodRecord<z.ZodString, z.ZodEnum<["SuperUser", "Owner", "Administrator", "Manager", "Writer", "Readonly"]>>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
32
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
33
33
|
}, {
|
|
34
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
34
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
35
35
|
}>>;
|
|
36
36
|
locale: z.ZodOptional<z.ZodObject<{
|
|
37
37
|
rolesPerUser: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
38
38
|
rolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer"]>>;
|
|
39
39
|
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
rolesPerLocale: Record<string, "
|
|
40
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
41
41
|
}, {
|
|
42
|
-
rolesPerLocale: Record<string, "
|
|
42
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
43
43
|
}>>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
45
|
rolesPerUser: Record<string, {
|
|
46
|
-
rolesPerLocale: Record<string, "
|
|
46
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
47
47
|
}>;
|
|
48
48
|
}, {
|
|
49
49
|
rolesPerUser: Record<string, {
|
|
50
|
-
rolesPerLocale: Record<string, "
|
|
50
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
51
51
|
}>;
|
|
52
52
|
}>>;
|
|
53
53
|
teamSpace: z.ZodOptional<z.ZodObject<{
|
|
@@ -55,92 +55,92 @@ declare const GetRolesResponse: z.ZodObject<{
|
|
|
55
55
|
rolesPerUser: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
56
56
|
rolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer"]>>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
rolesPerLocale: Record<string, "
|
|
58
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
59
59
|
}, {
|
|
60
|
-
rolesPerLocale: Record<string, "
|
|
60
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
61
61
|
}>>>;
|
|
62
62
|
rolesPerTeamSpace: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
63
63
|
rolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer"]>>;
|
|
64
64
|
rolesPerUser: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
65
65
|
rolesPerLocale: z.ZodRecord<z.ZodString, z.ZodEnum<["Manager", "Writer"]>>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
rolesPerLocale: Record<string, "
|
|
67
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
68
68
|
}, {
|
|
69
|
-
rolesPerLocale: Record<string, "
|
|
69
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
70
70
|
}>>;
|
|
71
71
|
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
rolesPerLocale: Record<string, "
|
|
72
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
73
73
|
rolesPerUser: Record<string, {
|
|
74
|
-
rolesPerLocale: Record<string, "
|
|
74
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
75
75
|
}>;
|
|
76
76
|
}, {
|
|
77
|
-
rolesPerLocale: Record<string, "
|
|
77
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
78
78
|
rolesPerUser: Record<string, {
|
|
79
|
-
rolesPerLocale: Record<string, "
|
|
79
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
80
80
|
}>;
|
|
81
81
|
}>>>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
|
-
rolesPerLocale?: Record<string, "
|
|
83
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
84
84
|
rolesPerUser?: Record<string, {
|
|
85
|
-
rolesPerLocale: Record<string, "
|
|
85
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
86
86
|
}> | undefined;
|
|
87
87
|
rolesPerTeamSpace?: Record<string, {
|
|
88
|
-
rolesPerLocale: Record<string, "
|
|
88
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
89
89
|
rolesPerUser: Record<string, {
|
|
90
|
-
rolesPerLocale: Record<string, "
|
|
90
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
91
91
|
}>;
|
|
92
92
|
}> | undefined;
|
|
93
93
|
}, {
|
|
94
|
-
rolesPerLocale?: Record<string, "
|
|
94
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
95
95
|
rolesPerUser?: Record<string, {
|
|
96
|
-
rolesPerLocale: Record<string, "
|
|
96
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
97
97
|
}> | undefined;
|
|
98
98
|
rolesPerTeamSpace?: Record<string, {
|
|
99
|
-
rolesPerLocale: Record<string, "
|
|
99
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
100
100
|
rolesPerUser: Record<string, {
|
|
101
|
-
rolesPerLocale: Record<string, "
|
|
101
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
102
102
|
}>;
|
|
103
103
|
}> | undefined;
|
|
104
104
|
}>>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
106
|
repository?: {
|
|
107
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
107
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
108
108
|
} | undefined;
|
|
109
109
|
locale?: {
|
|
110
110
|
rolesPerUser: Record<string, {
|
|
111
|
-
rolesPerLocale: Record<string, "
|
|
111
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
112
112
|
}>;
|
|
113
113
|
} | undefined;
|
|
114
114
|
teamSpace?: {
|
|
115
|
-
rolesPerLocale?: Record<string, "
|
|
115
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
116
116
|
rolesPerUser?: Record<string, {
|
|
117
|
-
rolesPerLocale: Record<string, "
|
|
117
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
118
118
|
}> | undefined;
|
|
119
119
|
rolesPerTeamSpace?: Record<string, {
|
|
120
|
-
rolesPerLocale: Record<string, "
|
|
120
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
121
121
|
rolesPerUser: Record<string, {
|
|
122
|
-
rolesPerLocale: Record<string, "
|
|
122
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
123
123
|
}>;
|
|
124
124
|
}> | undefined;
|
|
125
125
|
} | undefined;
|
|
126
126
|
}, {
|
|
127
127
|
repository?: {
|
|
128
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
128
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
129
129
|
} | undefined;
|
|
130
130
|
locale?: {
|
|
131
131
|
rolesPerUser: Record<string, {
|
|
132
|
-
rolesPerLocale: Record<string, "
|
|
132
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
133
133
|
}>;
|
|
134
134
|
} | undefined;
|
|
135
135
|
teamSpace?: {
|
|
136
|
-
rolesPerLocale?: Record<string, "
|
|
136
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
137
137
|
rolesPerUser?: Record<string, {
|
|
138
|
-
rolesPerLocale: Record<string, "
|
|
138
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
139
139
|
}> | undefined;
|
|
140
140
|
rolesPerTeamSpace?: Record<string, {
|
|
141
|
-
rolesPerLocale: Record<string, "
|
|
141
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
142
142
|
rolesPerUser: Record<string, {
|
|
143
|
-
rolesPerLocale: Record<string, "
|
|
143
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
144
144
|
}>;
|
|
145
145
|
}> | undefined;
|
|
146
146
|
} | undefined;
|
|
@@ -160,65 +160,65 @@ interface GetRolesArgs {
|
|
|
160
160
|
export declare function getRoles(args: GetRolesArgs): Promise<GetRolesResponse>;
|
|
161
161
|
export declare function getRolesOptions(args: GetRolesArgs): import("@tanstack/react-query/build/legacy/types").UseQueryOptions<{
|
|
162
162
|
repository?: {
|
|
163
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
163
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
164
164
|
} | undefined;
|
|
165
165
|
locale?: {
|
|
166
166
|
rolesPerUser: Record<string, {
|
|
167
|
-
rolesPerLocale: Record<string, "
|
|
167
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
168
168
|
}>;
|
|
169
169
|
} | undefined;
|
|
170
170
|
teamSpace?: {
|
|
171
|
-
rolesPerLocale?: Record<string, "
|
|
171
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
172
172
|
rolesPerUser?: Record<string, {
|
|
173
|
-
rolesPerLocale: Record<string, "
|
|
173
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
174
174
|
}> | undefined;
|
|
175
175
|
rolesPerTeamSpace?: Record<string, {
|
|
176
|
-
rolesPerLocale: Record<string, "
|
|
176
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
177
177
|
rolesPerUser: Record<string, {
|
|
178
|
-
rolesPerLocale: Record<string, "
|
|
178
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
179
179
|
}>;
|
|
180
180
|
}> | undefined;
|
|
181
181
|
} | undefined;
|
|
182
182
|
}, Error, {
|
|
183
183
|
repository?: {
|
|
184
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
184
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
185
185
|
} | undefined;
|
|
186
186
|
locale?: {
|
|
187
187
|
rolesPerUser: Record<string, {
|
|
188
|
-
rolesPerLocale: Record<string, "
|
|
188
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
189
189
|
}>;
|
|
190
190
|
} | undefined;
|
|
191
191
|
teamSpace?: {
|
|
192
|
-
rolesPerLocale?: Record<string, "
|
|
192
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
193
193
|
rolesPerUser?: Record<string, {
|
|
194
|
-
rolesPerLocale: Record<string, "
|
|
194
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
195
195
|
}> | undefined;
|
|
196
196
|
rolesPerTeamSpace?: Record<string, {
|
|
197
|
-
rolesPerLocale: Record<string, "
|
|
197
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
198
198
|
rolesPerUser: Record<string, {
|
|
199
|
-
rolesPerLocale: Record<string, "
|
|
199
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
200
200
|
}>;
|
|
201
201
|
}> | undefined;
|
|
202
202
|
} | undefined;
|
|
203
203
|
}, (string | GetRolesArgs)[]> & {
|
|
204
204
|
initialData?: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").L<{
|
|
205
205
|
repository?: {
|
|
206
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
206
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
207
207
|
} | undefined;
|
|
208
208
|
locale?: {
|
|
209
209
|
rolesPerUser: Record<string, {
|
|
210
|
-
rolesPerLocale: Record<string, "
|
|
210
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
211
211
|
}>;
|
|
212
212
|
} | undefined;
|
|
213
213
|
teamSpace?: {
|
|
214
|
-
rolesPerLocale?: Record<string, "
|
|
214
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
215
215
|
rolesPerUser?: Record<string, {
|
|
216
|
-
rolesPerLocale: Record<string, "
|
|
216
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
217
217
|
}> | undefined;
|
|
218
218
|
rolesPerTeamSpace?: Record<string, {
|
|
219
|
-
rolesPerLocale: Record<string, "
|
|
219
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
220
220
|
rolesPerUser: Record<string, {
|
|
221
|
-
rolesPerLocale: Record<string, "
|
|
221
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
222
222
|
}>;
|
|
223
223
|
}> | undefined;
|
|
224
224
|
} | undefined;
|
|
@@ -226,22 +226,22 @@ export declare function getRolesOptions(args: GetRolesArgs): import("@tanstack/r
|
|
|
226
226
|
} & {
|
|
227
227
|
queryKey: import("@tanstack/query-core/build/legacy/hydration-DTVzC0E7").E<(string | GetRolesArgs)[], {
|
|
228
228
|
repository?: {
|
|
229
|
-
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "
|
|
229
|
+
rolesPerUser: Record<string, "SuperUser" | "Owner" | "Administrator" | "Manager" | "Writer" | "Readonly">;
|
|
230
230
|
} | undefined;
|
|
231
231
|
locale?: {
|
|
232
232
|
rolesPerUser: Record<string, {
|
|
233
|
-
rolesPerLocale: Record<string, "
|
|
233
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
234
234
|
}>;
|
|
235
235
|
} | undefined;
|
|
236
236
|
teamSpace?: {
|
|
237
|
-
rolesPerLocale?: Record<string, "
|
|
237
|
+
rolesPerLocale?: Record<string, "Manager" | "Writer"> | undefined;
|
|
238
238
|
rolesPerUser?: Record<string, {
|
|
239
|
-
rolesPerLocale: Record<string, "
|
|
239
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
240
240
|
}> | undefined;
|
|
241
241
|
rolesPerTeamSpace?: Record<string, {
|
|
242
|
-
rolesPerLocale: Record<string, "
|
|
242
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
243
243
|
rolesPerUser: Record<string, {
|
|
244
|
-
rolesPerLocale: Record<string, "
|
|
244
|
+
rolesPerLocale: Record<string, "Manager" | "Writer">;
|
|
245
245
|
}>;
|
|
246
246
|
}> | undefined;
|
|
247
247
|
} | undefined;
|