@tridion-sites/extensions 0.5.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +242 -69
- package/dist/index.js +1 -1
- package/package.json +5 -12
- package/CHANGELOG.md +0 -137
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,6 @@ import type { PublishInfo } from '@tridion-sites/models';
|
|
|
35
35
|
import type { PublishPriority } from '@tridion-sites/models';
|
|
36
36
|
import type { PublishTransactionsCreationResult } from '@tridion-sites/models';
|
|
37
37
|
import type { PublishUrlInfo } from '@tridion-sites/models';
|
|
38
|
-
import type { QueryKey } from '@tanstack/react-query';
|
|
39
38
|
import type { RawEditorOptions } from 'tinymce';
|
|
40
39
|
import { ReactElement } from 'react';
|
|
41
40
|
import type { ReactHTML } from 'react';
|
|
@@ -52,10 +51,6 @@ import type { TargetType } from '@tridion-sites/models';
|
|
|
52
51
|
import type { TranslationInfo } from '@tridion-sites/models';
|
|
53
52
|
import type { TranslationJob } from '@tridion-sites/models';
|
|
54
53
|
import type { TranslationJobType } from '@tridion-sites/models';
|
|
55
|
-
import type { UseMutationOptions } from '@tanstack/react-query';
|
|
56
|
-
import type { UseMutationResult } from '@tanstack/react-query';
|
|
57
|
-
import type { UseQueryOptions } from '@tanstack/react-query';
|
|
58
|
-
import type { UseQueryResult } from '@tanstack/react-query';
|
|
59
54
|
import type { User } from '@tridion-sites/models';
|
|
60
55
|
import type { UserGroup } from '@tridion-sites/models';
|
|
61
56
|
import type { UserProfile } from '@tridion-sites/models';
|
|
@@ -331,7 +326,7 @@ export declare interface ActivitiesExplorerTableHookResult {
|
|
|
331
326
|
/**
|
|
332
327
|
* @public
|
|
333
328
|
*/
|
|
334
|
-
export declare type ActivityInstancesQueryHook = (props?: ActivityInstancesQueryProps, options?: QueryOptions<ReadonlyArray<ActivityInstance> | undefined, ApiError>) =>
|
|
329
|
+
export declare type ActivityInstancesQueryHook = (props?: ActivityInstancesQueryProps, options?: QueryOptions<ReadonlyArray<ActivityInstance> | undefined, ApiError>) => QueryResult<ReadonlyArray<ActivityInstance> | undefined, ApiError>;
|
|
335
330
|
|
|
336
331
|
/**
|
|
337
332
|
* @public
|
|
@@ -345,7 +340,7 @@ export declare interface ActivityInstancesQueryProps {
|
|
|
345
340
|
/**
|
|
346
341
|
* @public
|
|
347
342
|
*/
|
|
348
|
-
export declare type AddToBundleMutationHook = (options?:
|
|
343
|
+
export declare type AddToBundleMutationHook = (options?: MutationOptions<MutationResponse, ApiError, AddToBundleRequest>) => MutationResult<MutationResponse, ApiError, AddToBundleRequest>;
|
|
349
344
|
|
|
350
345
|
/**
|
|
351
346
|
* @public
|
|
@@ -408,7 +403,7 @@ export declare type AriaRole = 'button' | 'columnheader' | 'combobox' | 'grid' |
|
|
|
408
403
|
/**
|
|
409
404
|
* @public
|
|
410
405
|
*/
|
|
411
|
-
export declare type AssignActivitiesMutationHook = (options?: BatchMutationOptions<AssignActivitiesRequest>) =>
|
|
406
|
+
export declare type AssignActivitiesMutationHook = (options?: BatchMutationOptions<AssignActivitiesRequest>) => MutationResult<Batch, ApiError, AssignActivitiesRequest>;
|
|
412
407
|
|
|
413
408
|
/**
|
|
414
409
|
* @public
|
|
@@ -421,7 +416,7 @@ export declare interface AssignActivitiesRequest {
|
|
|
421
416
|
/**
|
|
422
417
|
* @public
|
|
423
418
|
*/
|
|
424
|
-
export declare type AssignActivityMutationHook = (options?:
|
|
419
|
+
export declare type AssignActivityMutationHook = (options?: MutationOptions<ActivityInstance, ApiError, AssignActivityRequest>) => MutationResult<ActivityInstance, ApiError, AssignActivityRequest>;
|
|
425
420
|
|
|
426
421
|
/**
|
|
427
422
|
* @public
|
|
@@ -434,7 +429,7 @@ export declare interface AssignActivityRequest {
|
|
|
434
429
|
/**
|
|
435
430
|
* @public
|
|
436
431
|
*/
|
|
437
|
-
export declare type AutoClassifyItemMutationHook = (options?:
|
|
432
|
+
export declare type AutoClassifyItemMutationHook = (options?: MutationOptions<ClassificationInfo, ApiError, AutoClassifyItemRequest>) => MutationResult<ClassificationInfo, ApiError, AutoClassifyItemRequest>;
|
|
438
433
|
|
|
439
434
|
/**
|
|
440
435
|
* @public
|
|
@@ -447,7 +442,7 @@ export declare interface AutoClassifyItemRequest {
|
|
|
447
442
|
/**
|
|
448
443
|
* @public
|
|
449
444
|
*/
|
|
450
|
-
export declare type AutoClassifyItemsMutationHook = (options?: BatchMutationOptions<AutoClassifyItemsRequest>) =>
|
|
445
|
+
export declare type AutoClassifyItemsMutationHook = (options?: BatchMutationOptions<AutoClassifyItemsRequest>) => MutationResult<Batch, ApiError, AutoClassifyItemsRequest>;
|
|
451
446
|
|
|
452
447
|
/**
|
|
453
448
|
* @public
|
|
@@ -475,7 +470,7 @@ export declare interface BackgroundColorProps {
|
|
|
475
470
|
/**
|
|
476
471
|
* @public
|
|
477
472
|
*/
|
|
478
|
-
declare type BatchMutationOptions<TVariables> =
|
|
473
|
+
declare type BatchMutationOptions<TVariables> = MutationOptions<Batch, ApiError, TVariables>;
|
|
479
474
|
|
|
480
475
|
/**
|
|
481
476
|
* Serves as the base for most components in the system and provides the most commonly used properties
|
|
@@ -663,7 +658,7 @@ export declare interface CenterProps extends Without<FlexProps, 'mainAxis' | 'cr
|
|
|
663
658
|
/**
|
|
664
659
|
* @public
|
|
665
660
|
*/
|
|
666
|
-
export declare type ChangeUserLanguageMutationHook = (options?:
|
|
661
|
+
export declare type ChangeUserLanguageMutationHook = (options?: MutationOptions<User, ApiError, ChangeUserLanguageRequest>) => MutationResult<User, ApiError, ChangeUserLanguageRequest>;
|
|
667
662
|
|
|
668
663
|
/**
|
|
669
664
|
* @public
|
|
@@ -676,7 +671,7 @@ export declare interface ChangeUserLanguageRequest {
|
|
|
676
671
|
/**
|
|
677
672
|
* @public
|
|
678
673
|
*/
|
|
679
|
-
export declare type ChangeUserLocaleMutationHook = (options?:
|
|
674
|
+
export declare type ChangeUserLocaleMutationHook = (options?: MutationOptions<User, ApiError, ChangeUserLocaleRequest>) => MutationResult<User, ApiError, ChangeUserLocaleRequest>;
|
|
680
675
|
|
|
681
676
|
/**
|
|
682
677
|
* @public
|
|
@@ -1236,7 +1231,7 @@ export declare interface ContentExplorerUtilsApiStorage {
|
|
|
1236
1231
|
/**
|
|
1237
1232
|
* @public
|
|
1238
1233
|
*/
|
|
1239
|
-
export declare type CopyItemMutationHook = (options?:
|
|
1234
|
+
export declare type CopyItemMutationHook = (options?: MutationOptions<RepositoryLocalObject, ApiError, CopyItemRequest>) => MutationResult<RepositoryLocalObject, ApiError, CopyItemRequest>;
|
|
1240
1235
|
|
|
1241
1236
|
/**
|
|
1242
1237
|
* @public
|
|
@@ -1249,7 +1244,7 @@ export declare interface CopyItemRequest {
|
|
|
1249
1244
|
/**
|
|
1250
1245
|
* @public
|
|
1251
1246
|
*/
|
|
1252
|
-
export declare type CopyItemsMutationHook = (options?: BatchMutationOptions<CopyItemsRequest>) =>
|
|
1247
|
+
export declare type CopyItemsMutationHook = (options?: BatchMutationOptions<CopyItemsRequest>) => MutationResult<Batch, ApiError, CopyItemsRequest>;
|
|
1253
1248
|
|
|
1254
1249
|
/**
|
|
1255
1250
|
* @public
|
|
@@ -1274,7 +1269,7 @@ export declare interface CreateExtensionGlobalsResult extends ExtensionGlobals {
|
|
|
1274
1269
|
/**
|
|
1275
1270
|
* @public
|
|
1276
1271
|
*/
|
|
1277
|
-
export declare type CreateTranslationJobMutationHook = (options:
|
|
1272
|
+
export declare type CreateTranslationJobMutationHook = (options: MutationOptions<TranslationJob, ApiError, CreateTranslationJobRequest>) => MutationResult<TranslationJob, ApiError, CreateTranslationJobRequest>;
|
|
1278
1273
|
|
|
1279
1274
|
/**
|
|
1280
1275
|
* @public
|
|
@@ -1306,7 +1301,7 @@ export declare type DefaultModelType = Extract<ItemType, 'bundle' | 'searchFolde
|
|
|
1306
1301
|
/**
|
|
1307
1302
|
* @public
|
|
1308
1303
|
*/
|
|
1309
|
-
export declare type DefaultTranslationJobQueryHook = (props: DefaultTranslationJobQueryProps | undefined, options?: QueryOptions<TranslationJob | undefined, ApiError>) =>
|
|
1304
|
+
export declare type DefaultTranslationJobQueryHook = (props: DefaultTranslationJobQueryProps | undefined, options?: QueryOptions<TranslationJob | undefined, ApiError>) => QueryResult<TranslationJob | undefined, ApiError>;
|
|
1310
1305
|
|
|
1311
1306
|
/**
|
|
1312
1307
|
* @public
|
|
@@ -1319,7 +1314,7 @@ export declare interface DefaultTranslationJobQueryProps {
|
|
|
1319
1314
|
/**
|
|
1320
1315
|
* @public
|
|
1321
1316
|
*/
|
|
1322
|
-
export declare type DeleteItemMutationHook = (options?:
|
|
1317
|
+
export declare type DeleteItemMutationHook = (options?: MutationOptions<void, ApiError, DeleteItemRequest>) => MutationResult<void, ApiError, DeleteItemRequest>;
|
|
1323
1318
|
|
|
1324
1319
|
/**
|
|
1325
1320
|
* @public
|
|
@@ -1332,7 +1327,7 @@ export declare interface DeleteItemRequest {
|
|
|
1332
1327
|
/**
|
|
1333
1328
|
* @public
|
|
1334
1329
|
*/
|
|
1335
|
-
export declare type DeleteItemsMutationHook = (options?: BatchMutationOptions<DeleteItemsRequest>) =>
|
|
1330
|
+
export declare type DeleteItemsMutationHook = (options?: BatchMutationOptions<DeleteItemsRequest>) => MutationResult<Batch, ApiError, DeleteItemsRequest>;
|
|
1336
1331
|
|
|
1337
1332
|
/**
|
|
1338
1333
|
* @public
|
|
@@ -1444,7 +1439,7 @@ export declare interface ExtensionPoints {
|
|
|
1444
1439
|
/**
|
|
1445
1440
|
* @public
|
|
1446
1441
|
*/
|
|
1447
|
-
export declare type FavoritesQueryHook = (options?: QueryOptions<ReadonlyArray<IdentifiableObject> | undefined, ApiError>) =>
|
|
1442
|
+
export declare type FavoritesQueryHook = (options?: QueryOptions<ReadonlyArray<IdentifiableObject> | undefined, ApiError>) => QueryResult<ReadonlyArray<IdentifiableObject> | undefined, ApiError>;
|
|
1448
1443
|
|
|
1449
1444
|
/**
|
|
1450
1445
|
* @public
|
|
@@ -1461,7 +1456,7 @@ export declare type FinishActivitiesMutationHook = (options?: FinishActivitiesMu
|
|
|
1461
1456
|
/**
|
|
1462
1457
|
* @public
|
|
1463
1458
|
*/
|
|
1464
|
-
export declare type FinishActivitiesMutationOptions =
|
|
1459
|
+
export declare type FinishActivitiesMutationOptions = MutationOptions<Batch[], ApiError, FinishActivitiesRequest>;
|
|
1465
1460
|
|
|
1466
1461
|
/**
|
|
1467
1462
|
* @public
|
|
@@ -1482,7 +1477,7 @@ export declare interface FinishActivitiesRequestData {
|
|
|
1482
1477
|
/**
|
|
1483
1478
|
* @public
|
|
1484
1479
|
*/
|
|
1485
|
-
export declare type FinishActivityMutationHook = (options?:
|
|
1480
|
+
export declare type FinishActivityMutationHook = (options?: MutationOptions<FinishActivityResult, ApiError, FinishActivityRequest>) => MutationResult<FinishActivityResult, ApiError, FinishActivityRequest>;
|
|
1486
1481
|
|
|
1487
1482
|
/**
|
|
1488
1483
|
* @public
|
|
@@ -1496,7 +1491,7 @@ export declare interface FinishActivityRequest {
|
|
|
1496
1491
|
/**
|
|
1497
1492
|
* @public
|
|
1498
1493
|
*/
|
|
1499
|
-
export declare type FinishEditingItemMutationHook = (options?:
|
|
1494
|
+
export declare type FinishEditingItemMutationHook = (options?: MutationOptions<RepositoryLocalObject, ApiError, FinishEditingItemRequest>) => MutationResult<RepositoryLocalObject, ApiError, FinishEditingItemRequest>;
|
|
1500
1495
|
|
|
1501
1496
|
/**
|
|
1502
1497
|
* @public
|
|
@@ -1509,7 +1504,7 @@ export declare interface FinishEditingItemRequest {
|
|
|
1509
1504
|
/**
|
|
1510
1505
|
* @public
|
|
1511
1506
|
*/
|
|
1512
|
-
export declare type FinishEditingItemsMutationHook = (options?: BatchMutationOptions<FinishItemsRequest>) =>
|
|
1507
|
+
export declare type FinishEditingItemsMutationHook = (options?: BatchMutationOptions<FinishItemsRequest>) => MutationResult<Batch, ApiError, FinishItemsRequest>;
|
|
1513
1508
|
|
|
1514
1509
|
/**
|
|
1515
1510
|
* @public
|
|
@@ -1924,7 +1919,7 @@ export declare const isSystemNode: (node: ContentExplorerNode) => boolean;
|
|
|
1924
1919
|
/**
|
|
1925
1920
|
* @public
|
|
1926
1921
|
*/
|
|
1927
|
-
export declare type ItemBlueprintHierarchyQueryHook = (props: ItemBlueprintHierarchyQueryProps | undefined, options?: QueryOptions<ItemBlueprintHierarchy | undefined, ApiError>) =>
|
|
1922
|
+
export declare type ItemBlueprintHierarchyQueryHook = (props: ItemBlueprintHierarchyQueryProps | undefined, options?: QueryOptions<ItemBlueprintHierarchy | undefined, ApiError>) => QueryResult<ItemBlueprintHierarchy | undefined, ApiError>;
|
|
1928
1923
|
|
|
1929
1924
|
/**
|
|
1930
1925
|
* @public
|
|
@@ -1936,7 +1931,7 @@ export declare interface ItemBlueprintHierarchyQueryProps {
|
|
|
1936
1931
|
/**
|
|
1937
1932
|
* @public
|
|
1938
1933
|
*/
|
|
1939
|
-
export declare type ItemChildrenQueryHook = (props: ItemChildrenQueryProps | undefined, options?: QueryOptions<ReadonlyArray<RepositoryLocalObject> | undefined, ApiError>) =>
|
|
1934
|
+
export declare type ItemChildrenQueryHook = (props: ItemChildrenQueryProps | undefined, options?: QueryOptions<ReadonlyArray<RepositoryLocalObject> | undefined, ApiError>) => QueryResult<ReadonlyArray<RepositoryLocalObject> | undefined, ApiError>;
|
|
1940
1935
|
|
|
1941
1936
|
/**
|
|
1942
1937
|
* @public
|
|
@@ -1955,7 +1950,7 @@ export declare interface ItemChildrenQueryProps {
|
|
|
1955
1950
|
/**
|
|
1956
1951
|
* @public
|
|
1957
1952
|
*/
|
|
1958
|
-
export declare type ItemClassifiedItemsQueryHook = (props: ItemClassifiedItemsQueryProps | undefined, options?: QueryOptions<ReadonlyArray<RepositoryLocalObject> | undefined, ApiError>) =>
|
|
1953
|
+
export declare type ItemClassifiedItemsQueryHook = (props: ItemClassifiedItemsQueryProps | undefined, options?: QueryOptions<ReadonlyArray<RepositoryLocalObject> | undefined, ApiError>) => QueryResult<ReadonlyArray<RepositoryLocalObject> | undefined, ApiError>;
|
|
1959
1954
|
|
|
1960
1955
|
/**
|
|
1961
1956
|
* @public
|
|
@@ -1987,7 +1982,7 @@ export declare interface ItemClassifiedItemsQueryProps {
|
|
|
1987
1982
|
/**
|
|
1988
1983
|
* @public
|
|
1989
1984
|
*/
|
|
1990
|
-
export declare type ItemDefaultDataQueryHook = <TItem extends IdentifiableObject>(props: ItemDefaultDataQueryProps | undefined, options?: QueryOptions<TItem | undefined, ApiError>) =>
|
|
1985
|
+
export declare type ItemDefaultDataQueryHook = <TItem extends IdentifiableObject>(props: ItemDefaultDataQueryProps | undefined, options?: QueryOptions<TItem | undefined, ApiError>) => QueryResult<TItem | undefined, ApiError>;
|
|
1991
1986
|
|
|
1992
1987
|
/**
|
|
1993
1988
|
* @public
|
|
@@ -1999,7 +1994,7 @@ export declare interface ItemDefaultDataQueryProps {
|
|
|
1999
1994
|
/**
|
|
2000
1995
|
* @public
|
|
2001
1996
|
*/
|
|
2002
|
-
export declare type ItemHistoryQueryHook = (props: ItemHistoryQueryProps | undefined, options?: QueryOptions<ReadonlyArray<VersionedItem> | undefined, ApiError>) =>
|
|
1997
|
+
export declare type ItemHistoryQueryHook = (props: ItemHistoryQueryProps | undefined, options?: QueryOptions<ReadonlyArray<VersionedItem> | undefined, ApiError>) => QueryResult<ReadonlyArray<VersionedItem> | undefined, ApiError>;
|
|
2003
1998
|
|
|
2004
1999
|
/**
|
|
2005
2000
|
* @public
|
|
@@ -2011,7 +2006,7 @@ export declare interface ItemHistoryQueryProps {
|
|
|
2011
2006
|
/**
|
|
2012
2007
|
* @public
|
|
2013
2008
|
*/
|
|
2014
|
-
export declare type ItemPublishedPagesQueryHook = (props: ItemPublishedPagesQueryProps | undefined, options?: QueryOptions<ReadonlyArray<Page> | undefined, ApiError>) =>
|
|
2009
|
+
export declare type ItemPublishedPagesQueryHook = (props: ItemPublishedPagesQueryProps | undefined, options?: QueryOptions<ReadonlyArray<Page> | undefined, ApiError>) => QueryResult<ReadonlyArray<Page> | undefined, ApiError>;
|
|
2015
2010
|
|
|
2016
2011
|
/**
|
|
2017
2012
|
* @public
|
|
@@ -2023,7 +2018,7 @@ export declare interface ItemPublishedPagesQueryProps {
|
|
|
2023
2018
|
/**
|
|
2024
2019
|
* @public
|
|
2025
2020
|
*/
|
|
2026
|
-
export declare type ItemPublishedToQueryHook = (props: ItemPublishedToQueryProps | undefined, options?: QueryOptions<ReadonlyArray<PublishInfo> | undefined, ApiError>) =>
|
|
2021
|
+
export declare type ItemPublishedToQueryHook = (props: ItemPublishedToQueryProps | undefined, options?: QueryOptions<ReadonlyArray<PublishInfo> | undefined, ApiError>) => QueryResult<ReadonlyArray<PublishInfo> | undefined, ApiError>;
|
|
2027
2022
|
|
|
2028
2023
|
/**
|
|
2029
2024
|
* @public
|
|
@@ -2035,7 +2030,7 @@ export declare interface ItemPublishedToQueryProps {
|
|
|
2035
2030
|
/**
|
|
2036
2031
|
* @public
|
|
2037
2032
|
*/
|
|
2038
|
-
export declare type ItemPublishUrlsQueryHook = (props: ItemPublishUrlsQueryProps | undefined, options?: QueryOptions<ReadonlyArray<PublishUrlInfo> | undefined, ApiError>) =>
|
|
2033
|
+
export declare type ItemPublishUrlsQueryHook = (props: ItemPublishUrlsQueryProps | undefined, options?: QueryOptions<ReadonlyArray<PublishUrlInfo> | undefined, ApiError>) => QueryResult<ReadonlyArray<PublishUrlInfo> | undefined, ApiError>;
|
|
2039
2034
|
|
|
2040
2035
|
/**
|
|
2041
2036
|
* @public
|
|
@@ -2047,7 +2042,7 @@ export declare interface ItemPublishUrlsQueryProps {
|
|
|
2047
2042
|
/**
|
|
2048
2043
|
* @public
|
|
2049
2044
|
*/
|
|
2050
|
-
export declare type ItemQueryHook = <TItem extends IdentifiableObject>(props: ItemQueryProps | undefined, options?: QueryOptions<TItem | undefined, ApiError>) =>
|
|
2045
|
+
export declare type ItemQueryHook = <TItem extends IdentifiableObject>(props: ItemQueryProps | undefined, options?: QueryOptions<TItem | undefined, ApiError>) => QueryResult<TItem | undefined, ApiError>;
|
|
2051
2046
|
|
|
2052
2047
|
/**
|
|
2053
2048
|
* @public
|
|
@@ -2060,7 +2055,7 @@ export declare interface ItemQueryProps {
|
|
|
2060
2055
|
/**
|
|
2061
2056
|
* @public
|
|
2062
2057
|
*/
|
|
2063
|
-
export declare type ItemsInProgressQueryHook = (props?: ItemsInProgressQueryProps, options?: QueryOptions<ReadonlyArray<VersionedItem> | undefined, ApiError>) =>
|
|
2058
|
+
export declare type ItemsInProgressQueryHook = (props?: ItemsInProgressQueryProps, options?: QueryOptions<ReadonlyArray<VersionedItem> | undefined, ApiError>) => QueryResult<ReadonlyArray<VersionedItem> | undefined, ApiError>;
|
|
2064
2059
|
|
|
2065
2060
|
/**
|
|
2066
2061
|
* @public
|
|
@@ -2073,7 +2068,7 @@ export declare interface ItemsInProgressQueryProps {
|
|
|
2073
2068
|
/**
|
|
2074
2069
|
* @public
|
|
2075
2070
|
*/
|
|
2076
|
-
export declare type ItemsQueryHook = <TItem extends IdentifiableObject>(props: ItemsQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TItem> | undefined, ApiError>) =>
|
|
2071
|
+
export declare type ItemsQueryHook = <TItem extends IdentifiableObject>(props: ItemsQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TItem> | undefined, ApiError>) => QueryResult<ReadonlyArray<TItem> | undefined, ApiError>;
|
|
2077
2072
|
|
|
2078
2073
|
/**
|
|
2079
2074
|
* @public
|
|
@@ -2087,17 +2082,17 @@ export declare interface ItemsQueryProps {
|
|
|
2087
2082
|
/**
|
|
2088
2083
|
* @public
|
|
2089
2084
|
*/
|
|
2090
|
-
export declare type ItemsToPublishQueryHook = (props: PublishItemsRequest | undefined, options?: QueryOptions<ResolvedItem[] | undefined, ApiError>) =>
|
|
2085
|
+
export declare type ItemsToPublishQueryHook = (props: PublishItemsRequest | undefined, options?: QueryOptions<ResolvedItem[] | undefined, ApiError>) => QueryResult<ResolvedItem[] | undefined, ApiError>;
|
|
2091
2086
|
|
|
2092
2087
|
/**
|
|
2093
2088
|
* @public
|
|
2094
2089
|
*/
|
|
2095
|
-
export declare type ItemsToUnpublishQueryHook = (props: UnpublishItemsRequest | undefined, options?: QueryOptions<ResolvedItem[] | undefined, ApiError>) =>
|
|
2090
|
+
export declare type ItemsToUnpublishQueryHook = (props: UnpublishItemsRequest | undefined, options?: QueryOptions<ResolvedItem[] | undefined, ApiError>) => QueryResult<ResolvedItem[] | undefined, ApiError>;
|
|
2096
2091
|
|
|
2097
2092
|
/**
|
|
2098
2093
|
* @public
|
|
2099
2094
|
*/
|
|
2100
|
-
export declare type ItemTranslationInfoQueryHook = (props: ItemTranslationInfoQueryProps | undefined, options?: QueryOptions<TranslationInfo | undefined, ApiError>) =>
|
|
2095
|
+
export declare type ItemTranslationInfoQueryHook = (props: ItemTranslationInfoQueryProps | undefined, options?: QueryOptions<TranslationInfo | undefined, ApiError>) => QueryResult<TranslationInfo | undefined, ApiError>;
|
|
2101
2096
|
|
|
2102
2097
|
/**
|
|
2103
2098
|
* @public
|
|
@@ -2109,7 +2104,7 @@ export declare interface ItemTranslationInfoQueryProps {
|
|
|
2109
2104
|
/**
|
|
2110
2105
|
* @public
|
|
2111
2106
|
*/
|
|
2112
|
-
export declare type ItemUsedByQueryHook = <TItem extends IdentifiableObject>(props: ItemUsedByQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TItem> | undefined, ApiError>) =>
|
|
2107
|
+
export declare type ItemUsedByQueryHook = <TItem extends IdentifiableObject>(props: ItemUsedByQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TItem> | undefined, ApiError>) => QueryResult<ReadonlyArray<TItem> | undefined, ApiError>;
|
|
2113
2108
|
|
|
2114
2109
|
/**
|
|
2115
2110
|
* @public
|
|
@@ -2121,7 +2116,7 @@ export declare interface ItemUsedByQueryProps {
|
|
|
2121
2116
|
/**
|
|
2122
2117
|
* @public
|
|
2123
2118
|
*/
|
|
2124
|
-
export declare type ItemUsesQueryHook = <TItem extends IdentifiableObject>(props: ItemUsesQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TItem> | undefined, ApiError>) =>
|
|
2119
|
+
export declare type ItemUsesQueryHook = <TItem extends IdentifiableObject>(props: ItemUsesQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TItem> | undefined, ApiError>) => QueryResult<ReadonlyArray<TItem> | undefined, ApiError>;
|
|
2125
2120
|
|
|
2126
2121
|
/**
|
|
2127
2122
|
* @public
|
|
@@ -2213,7 +2208,7 @@ export declare interface LoadingState {
|
|
|
2213
2208
|
/**
|
|
2214
2209
|
* @public
|
|
2215
2210
|
*/
|
|
2216
|
-
export declare type LocalizeItemMutationHook = (options?:
|
|
2211
|
+
export declare type LocalizeItemMutationHook = (options?: MutationOptions<RepositoryLocalObject, ApiError, LocalizeItemRequest>) => MutationResult<RepositoryLocalObject, ApiError, LocalizeItemRequest>;
|
|
2217
2212
|
|
|
2218
2213
|
/**
|
|
2219
2214
|
* @public
|
|
@@ -2226,7 +2221,7 @@ export declare interface LocalizeItemRequest {
|
|
|
2226
2221
|
/**
|
|
2227
2222
|
* @public
|
|
2228
2223
|
*/
|
|
2229
|
-
export declare type LocalizeItemsMutationHook = (options?: BatchMutationOptions<LocalizeItemsRequest>) =>
|
|
2224
|
+
export declare type LocalizeItemsMutationHook = (options?: BatchMutationOptions<LocalizeItemsRequest>) => MutationResult<Batch, ApiError, LocalizeItemsRequest>;
|
|
2230
2225
|
|
|
2231
2226
|
/**
|
|
2232
2227
|
* @public
|
|
@@ -2244,7 +2239,7 @@ export declare type MainAxisAlignment = 'start' | 'center' | 'end' | 'space-betw
|
|
|
2244
2239
|
/**
|
|
2245
2240
|
* @public
|
|
2246
2241
|
*/
|
|
2247
|
-
export declare type MoveItemMutationHook = (options?:
|
|
2242
|
+
export declare type MoveItemMutationHook = (options?: MutationOptions<RepositoryLocalObject, ApiError, MoveItemRequest>) => MutationResult<RepositoryLocalObject, ApiError, MoveItemRequest>;
|
|
2248
2243
|
|
|
2249
2244
|
/**
|
|
2250
2245
|
* @public
|
|
@@ -2258,7 +2253,7 @@ export declare interface MoveItemRequest {
|
|
|
2258
2253
|
/**
|
|
2259
2254
|
* @public
|
|
2260
2255
|
*/
|
|
2261
|
-
export declare type MoveItemsMutationHook = (options?: BatchMutationOptions<MoveItemsRequest>) =>
|
|
2256
|
+
export declare type MoveItemsMutationHook = (options?: BatchMutationOptions<MoveItemsRequest>) => MutationResult<Batch, ApiError, MoveItemsRequest>;
|
|
2262
2257
|
|
|
2263
2258
|
/**
|
|
2264
2259
|
* @public
|
|
@@ -2277,6 +2272,35 @@ export declare interface MultimediaUploadResult {
|
|
|
2277
2272
|
error?: ApiError | Error;
|
|
2278
2273
|
}
|
|
2279
2274
|
|
|
2275
|
+
/**
|
|
2276
|
+
* @public
|
|
2277
|
+
*/
|
|
2278
|
+
export declare type MutateFunction<TData = unknown, TError = unknown, TVariables = void> = (variables: TVariables, options?: MutateOptions<TData, TError, TVariables>) => Promise<TData>;
|
|
2279
|
+
|
|
2280
|
+
/**
|
|
2281
|
+
* @public
|
|
2282
|
+
*/
|
|
2283
|
+
export declare interface MutateOptions<TData = unknown, TError = unknown, TVariables = void> {
|
|
2284
|
+
onSuccess?: (data: TData, variables: TVariables) => void;
|
|
2285
|
+
onError?: (error: TError, variables: TVariables) => void;
|
|
2286
|
+
onSettled?: (data: TData | undefined, error: TError | null, variables: TVariables) => void;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* @public
|
|
2291
|
+
*/
|
|
2292
|
+
export declare interface MutationOptions<TData = unknown, TError = unknown, TVariables = void> {
|
|
2293
|
+
variables?: TVariables;
|
|
2294
|
+
onMutate?: (variables: TVariables) => Promise<void> | void;
|
|
2295
|
+
onSuccess?: (data: TData, variables: TVariables) => Promise<void> | void;
|
|
2296
|
+
onError?: (error: TError, variables: TVariables) => Promise<void> | void;
|
|
2297
|
+
onSettled?: (data: TData | undefined, error: TError | null, variables: TVariables) => Promise<void> | void;
|
|
2298
|
+
retry?: boolean | number | ((failureCount: number, error: TError) => boolean);
|
|
2299
|
+
retryDelay?: number | ((failureCount: number, error: TError) => number);
|
|
2300
|
+
cacheTime?: number;
|
|
2301
|
+
meta?: Record<string, unknown>;
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2280
2304
|
/**
|
|
2281
2305
|
* @public
|
|
2282
2306
|
*/
|
|
@@ -2285,6 +2309,31 @@ export declare interface MutationResponse {
|
|
|
2285
2309
|
addedItems: Link_2[];
|
|
2286
2310
|
}
|
|
2287
2311
|
|
|
2312
|
+
/**
|
|
2313
|
+
* @public
|
|
2314
|
+
*/
|
|
2315
|
+
export declare interface MutationResult<TData = unknown, TError = unknown, TVariables = unknown> {
|
|
2316
|
+
mutate: (...args: Parameters<MutateFunction<TData, TError, TVariables>>) => void;
|
|
2317
|
+
mutateAsync: MutateFunction<TData, TError, TVariables>;
|
|
2318
|
+
isError: boolean;
|
|
2319
|
+
isIdle: boolean;
|
|
2320
|
+
isLoading: boolean;
|
|
2321
|
+
isSuccess: boolean;
|
|
2322
|
+
reset: () => void;
|
|
2323
|
+
data: TData | undefined;
|
|
2324
|
+
error: TError | null;
|
|
2325
|
+
failureCount: number;
|
|
2326
|
+
failureReason: TError | null;
|
|
2327
|
+
isPaused: boolean;
|
|
2328
|
+
status: MutationStatus;
|
|
2329
|
+
variables: TVariables | undefined;
|
|
2330
|
+
}
|
|
2331
|
+
|
|
2332
|
+
/**
|
|
2333
|
+
* @public
|
|
2334
|
+
*/
|
|
2335
|
+
export declare type MutationStatus = 'idle' | 'loading' | 'success' | 'error';
|
|
2336
|
+
|
|
2288
2337
|
/**
|
|
2289
2338
|
* @public
|
|
2290
2339
|
*/
|
|
@@ -2576,7 +2625,7 @@ declare const palette: {
|
|
|
2576
2625
|
/**
|
|
2577
2626
|
* @public
|
|
2578
2627
|
*/
|
|
2579
|
-
export declare type PublicationBlueprintHierarchyQueryHook = (props: PublicationBlueprintHierarchyQueryProps | undefined, options?: QueryOptions<PublicationBlueprintHierarchy | undefined, ApiError>) =>
|
|
2628
|
+
export declare type PublicationBlueprintHierarchyQueryHook = (props: PublicationBlueprintHierarchyQueryProps | undefined, options?: QueryOptions<PublicationBlueprintHierarchy | undefined, ApiError>) => QueryResult<PublicationBlueprintHierarchy | undefined, ApiError>;
|
|
2580
2629
|
|
|
2581
2630
|
/**
|
|
2582
2631
|
* @public
|
|
@@ -2588,12 +2637,12 @@ export declare interface PublicationBlueprintHierarchyQueryProps {
|
|
|
2588
2637
|
/**
|
|
2589
2638
|
* @public
|
|
2590
2639
|
*/
|
|
2591
|
-
export declare type PublicationsQueryHook = (options?: QueryOptions<ReadonlyArray<Publication> | undefined, ApiError>) =>
|
|
2640
|
+
export declare type PublicationsQueryHook = (options?: QueryOptions<ReadonlyArray<Publication> | undefined, ApiError>) => QueryResult<ReadonlyArray<Publication> | undefined, ApiError>;
|
|
2592
2641
|
|
|
2593
2642
|
/**
|
|
2594
2643
|
* @public
|
|
2595
2644
|
*/
|
|
2596
|
-
export declare type PublishableTargetTypesQueryHook = (props: PublishableTargetTypesQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TargetType> | undefined, ApiError>) =>
|
|
2645
|
+
export declare type PublishableTargetTypesQueryHook = (props: PublishableTargetTypesQueryProps | undefined, options?: QueryOptions<ReadonlyArray<TargetType> | undefined, ApiError>) => QueryResult<ReadonlyArray<TargetType> | undefined, ApiError>;
|
|
2597
2646
|
|
|
2598
2647
|
/**
|
|
2599
2648
|
* @public
|
|
@@ -2605,7 +2654,7 @@ export declare interface PublishableTargetTypesQueryProps {
|
|
|
2605
2654
|
/**
|
|
2606
2655
|
* @public
|
|
2607
2656
|
*/
|
|
2608
|
-
export declare type PublishItemsMutationHook = (options?:
|
|
2657
|
+
export declare type PublishItemsMutationHook = (options?: MutationOptions<PublishTransactionsCreationResult, ApiError, PublishItemsRequest>) => MutationResult<PublishTransactionsCreationResult, ApiError, PublishItemsRequest>;
|
|
2609
2658
|
|
|
2610
2659
|
/**
|
|
2611
2660
|
* @public
|
|
@@ -2666,7 +2715,123 @@ export declare interface PublishItemsRequest {
|
|
|
2666
2715
|
/**
|
|
2667
2716
|
* @public
|
|
2668
2717
|
*/
|
|
2669
|
-
export declare type
|
|
2718
|
+
export declare type QueryFetchStatus = 'fetching' | 'paused' | 'idle';
|
|
2719
|
+
|
|
2720
|
+
/**
|
|
2721
|
+
* @public
|
|
2722
|
+
*/
|
|
2723
|
+
export declare interface QueryOptions<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData> {
|
|
2724
|
+
retry?: boolean | number | ((failureCount: number, error: TError) => boolean);
|
|
2725
|
+
retryDelay?: number | ((failureCount: number, error: TError) => number);
|
|
2726
|
+
initialData?: TData | (() => TData | undefined);
|
|
2727
|
+
initialDataUpdatedAt?: number | (() => number | undefined);
|
|
2728
|
+
meta?: Record<string, unknown>;
|
|
2729
|
+
/**
|
|
2730
|
+
* Set this to `false` to disable automatic refetching when the query mounts or changes query keys.
|
|
2731
|
+
* To refetch the query, use the `refetch` method returned from the `useQuery` instance.
|
|
2732
|
+
* Defaults to `true`.
|
|
2733
|
+
*/
|
|
2734
|
+
enabled?: boolean;
|
|
2735
|
+
/**
|
|
2736
|
+
* The time in milliseconds after data is considered stale.
|
|
2737
|
+
* If set to `Infinity`, the data will never be considered stale.
|
|
2738
|
+
*/
|
|
2739
|
+
staleTime?: number;
|
|
2740
|
+
/**
|
|
2741
|
+
* If set to a number, the query will continuously refetch at this frequency in milliseconds.
|
|
2742
|
+
* If set to a function, the function will be executed with the latest data and query to compute a frequency
|
|
2743
|
+
* Defaults to `false`.
|
|
2744
|
+
*/
|
|
2745
|
+
refetchInterval?: number | false;
|
|
2746
|
+
/**
|
|
2747
|
+
* If set to `true`, the query will continue to refetch while their tab/window is in the background.
|
|
2748
|
+
* Defaults to `false`.
|
|
2749
|
+
*/
|
|
2750
|
+
refetchIntervalInBackground?: boolean;
|
|
2751
|
+
/**
|
|
2752
|
+
* If set to `true`, the query will refetch on window focus if the data is stale.
|
|
2753
|
+
* If set to `false`, the query will not refetch on window focus.
|
|
2754
|
+
* If set to `'always'`, the query will always refetch on window focus.
|
|
2755
|
+
* Defaults to `true`.
|
|
2756
|
+
*/
|
|
2757
|
+
refetchOnWindowFocus?: boolean | 'always';
|
|
2758
|
+
/**
|
|
2759
|
+
* If set to `true`, the query will refetch on reconnect if the data is stale.
|
|
2760
|
+
* If set to `false`, the query will not refetch on reconnect.
|
|
2761
|
+
* If set to `'always'`, the query will always refetch on reconnect.
|
|
2762
|
+
* If set to a function, the function will be executed with the latest data and query to compute the value.
|
|
2763
|
+
* Defaults to the value of `networkOnline` (`true`)
|
|
2764
|
+
*/
|
|
2765
|
+
refetchOnReconnect?: boolean | 'always';
|
|
2766
|
+
/**
|
|
2767
|
+
* If set to `true`, the query will refetch on mount if the data is stale.
|
|
2768
|
+
* If set to `false`, will disable additional instances of a query to trigger background refetches.
|
|
2769
|
+
* If set to `'always'`, the query will always refetch on mount.
|
|
2770
|
+
* Defaults to `true`.
|
|
2771
|
+
*/
|
|
2772
|
+
refetchOnMount?: boolean | 'always';
|
|
2773
|
+
/**
|
|
2774
|
+
* If set to `false`, the query will not be retried on mount if it contains an error.
|
|
2775
|
+
* Defaults to `true`.
|
|
2776
|
+
*/
|
|
2777
|
+
retryOnMount?: boolean;
|
|
2778
|
+
/**
|
|
2779
|
+
* This callback will fire any time the query successfully fetches new data.
|
|
2780
|
+
*/
|
|
2781
|
+
onSuccess?: (data: TData) => void;
|
|
2782
|
+
/**
|
|
2783
|
+
* This callback will fire if the query encounters an error and will be passed the error.
|
|
2784
|
+
*/
|
|
2785
|
+
onError?: (err: TError) => void;
|
|
2786
|
+
/**
|
|
2787
|
+
* This callback will fire any time the query is either successfully fetched or errors and be passed either the data or error.
|
|
2788
|
+
*/
|
|
2789
|
+
onSettled?: (data: TData | undefined, error: TError | null) => void;
|
|
2790
|
+
/**
|
|
2791
|
+
* Set this to `true` to keep the previous `data` when fetching based on a new query key.
|
|
2792
|
+
* Defaults to `false`.
|
|
2793
|
+
*/
|
|
2794
|
+
keepPreviousData?: boolean;
|
|
2795
|
+
/**
|
|
2796
|
+
* If set, this value will be used as the placeholder data for this particular query observer while the query is still in the `loading` data and no initialData has been provided.
|
|
2797
|
+
*/
|
|
2798
|
+
placeholderData?: TQueryFnData | (() => TQueryFnData | undefined);
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2801
|
+
/**
|
|
2802
|
+
* @public
|
|
2803
|
+
*/
|
|
2804
|
+
export declare interface QueryResult<TData = unknown, TError = unknown> {
|
|
2805
|
+
data: TData | undefined;
|
|
2806
|
+
dataUpdatedAt: number;
|
|
2807
|
+
error: TError | null;
|
|
2808
|
+
errorUpdatedAt: number;
|
|
2809
|
+
failureCount: number;
|
|
2810
|
+
failureReason: TError | null;
|
|
2811
|
+
errorUpdateCount: number;
|
|
2812
|
+
isError: boolean;
|
|
2813
|
+
isFetched: boolean;
|
|
2814
|
+
isFetchedAfterMount: boolean;
|
|
2815
|
+
isFetching: boolean;
|
|
2816
|
+
isLoading: boolean;
|
|
2817
|
+
isLoadingError: boolean;
|
|
2818
|
+
isInitialLoading: boolean;
|
|
2819
|
+
isPaused: boolean;
|
|
2820
|
+
isPlaceholderData: boolean;
|
|
2821
|
+
isPreviousData: boolean;
|
|
2822
|
+
isRefetchError: boolean;
|
|
2823
|
+
isRefetching: boolean;
|
|
2824
|
+
isStale: boolean;
|
|
2825
|
+
isSuccess: boolean;
|
|
2826
|
+
refetch: (options?: RefetchOptions) => Promise<QueryResult<TData, TError>>;
|
|
2827
|
+
status: QueryStatus;
|
|
2828
|
+
fetchStatus: QueryFetchStatus;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* @public
|
|
2833
|
+
*/
|
|
2834
|
+
export declare type QueryStatus = 'loading' | 'error' | 'success';
|
|
2670
2835
|
|
|
2671
2836
|
declare interface ReadonlyHierarchy<TData> {
|
|
2672
2837
|
root: ReadonlyHierarchyNode<TData> | undefined;
|
|
@@ -2701,7 +2866,15 @@ declare interface ReadonlyHierarchyNode<TData> {
|
|
|
2701
2866
|
/**
|
|
2702
2867
|
* @public
|
|
2703
2868
|
*/
|
|
2704
|
-
export declare
|
|
2869
|
+
export declare interface RefetchOptions {
|
|
2870
|
+
cancelRefetch?: boolean;
|
|
2871
|
+
throwOnError?: boolean;
|
|
2872
|
+
}
|
|
2873
|
+
|
|
2874
|
+
/**
|
|
2875
|
+
* @public
|
|
2876
|
+
*/
|
|
2877
|
+
export declare type RemoveFromBundleMutationHook = (options?: MutationOptions<Bundle, ApiError, RemoveFromBundleRequest>) => MutationResult<Bundle, ApiError, RemoveFromBundleRequest>;
|
|
2705
2878
|
|
|
2706
2879
|
/**
|
|
2707
2880
|
* @public
|
|
@@ -2714,7 +2887,7 @@ export declare interface RemoveFromBundleRequest {
|
|
|
2714
2887
|
/**
|
|
2715
2888
|
* @public
|
|
2716
2889
|
*/
|
|
2717
|
-
export declare type RestartActivitiesMutationHook = (options?: BatchMutationOptions<RestartActivitiesRequest>) =>
|
|
2890
|
+
export declare type RestartActivitiesMutationHook = (options?: BatchMutationOptions<RestartActivitiesRequest>) => MutationResult<Batch, ApiError, RestartActivitiesRequest>;
|
|
2718
2891
|
|
|
2719
2892
|
/**
|
|
2720
2893
|
* @public
|
|
@@ -2726,7 +2899,7 @@ export declare interface RestartActivitiesRequest {
|
|
|
2726
2899
|
/**
|
|
2727
2900
|
* @public
|
|
2728
2901
|
*/
|
|
2729
|
-
export declare type RestartActivityMutationHook = (options?:
|
|
2902
|
+
export declare type RestartActivityMutationHook = (options?: MutationOptions<ActivityInstance, ApiError, RestartActivityRequest>) => MutationResult<ActivityInstance, ApiError, RestartActivityRequest>;
|
|
2730
2903
|
|
|
2731
2904
|
/**
|
|
2732
2905
|
* @public
|
|
@@ -2738,7 +2911,7 @@ export declare interface RestartActivityRequest {
|
|
|
2738
2911
|
/**
|
|
2739
2912
|
* @public
|
|
2740
2913
|
*/
|
|
2741
|
-
export declare type RevertItemMutationHook = (options?:
|
|
2914
|
+
export declare type RevertItemMutationHook = (options?: MutationOptions<RepositoryLocalObject | void, ApiError, RevertItemRequest>) => MutationResult<RepositoryLocalObject | void, ApiError, RevertItemRequest>;
|
|
2742
2915
|
|
|
2743
2916
|
/**
|
|
2744
2917
|
* @public
|
|
@@ -2751,7 +2924,7 @@ export declare interface RevertItemRequest {
|
|
|
2751
2924
|
/**
|
|
2752
2925
|
* @public
|
|
2753
2926
|
*/
|
|
2754
|
-
export declare type RevertItemsMutationHook = (options?: BatchMutationOptions<RevertItemsRequest>) =>
|
|
2927
|
+
export declare type RevertItemsMutationHook = (options?: BatchMutationOptions<RevertItemsRequest>) => MutationResult<Batch, ApiError, RevertItemsRequest>;
|
|
2755
2928
|
|
|
2756
2929
|
/**
|
|
2757
2930
|
* @public
|
|
@@ -2842,7 +3015,7 @@ export declare type RichTextFieldSetup = RawEditorOptions['setup'];
|
|
|
2842
3015
|
/**
|
|
2843
3016
|
* @public
|
|
2844
3017
|
*/
|
|
2845
|
-
export declare type RollbackItemMutationHook = (options?:
|
|
3018
|
+
export declare type RollbackItemMutationHook = (options?: MutationOptions<RepositoryLocalObject, ApiError, RollbackItemRequest>) => MutationResult<RepositoryLocalObject, ApiError, RollbackItemRequest>;
|
|
2846
3019
|
|
|
2847
3020
|
/**
|
|
2848
3021
|
* @public
|
|
@@ -2864,7 +3037,7 @@ export declare interface RuntimeInformation {
|
|
|
2864
3037
|
/**
|
|
2865
3038
|
* @public
|
|
2866
3039
|
*/
|
|
2867
|
-
export declare type SearchInContainerQueryHook = (props: SearchInContainerQueryProps | undefined, options?: QueryOptions<ReadonlyArray<IdentifiableObject> | undefined, ApiError>) =>
|
|
3040
|
+
export declare type SearchInContainerQueryHook = (props: SearchInContainerQueryProps | undefined, options?: QueryOptions<ReadonlyArray<IdentifiableObject> | undefined, ApiError>) => QueryResult<ReadonlyArray<IdentifiableObject> | undefined, ApiError>;
|
|
2868
3041
|
|
|
2869
3042
|
/**
|
|
2870
3043
|
* @public
|
|
@@ -3050,7 +3223,7 @@ export declare interface StackProps extends BlockProps {
|
|
|
3050
3223
|
/**
|
|
3051
3224
|
* @public
|
|
3052
3225
|
*/
|
|
3053
|
-
export declare type StartActivitiesMutationHook = (options?: BatchMutationOptions<StartActivitiesRequest>) =>
|
|
3226
|
+
export declare type StartActivitiesMutationHook = (options?: BatchMutationOptions<StartActivitiesRequest>) => MutationResult<Batch, ApiError, StartActivitiesRequest>;
|
|
3054
3227
|
|
|
3055
3228
|
/**
|
|
3056
3229
|
* @public
|
|
@@ -3062,7 +3235,7 @@ export declare interface StartActivitiesRequest {
|
|
|
3062
3235
|
/**
|
|
3063
3236
|
* @public
|
|
3064
3237
|
*/
|
|
3065
|
-
export declare type StartActivityMutationHook = (options?:
|
|
3238
|
+
export declare type StartActivityMutationHook = (options?: MutationOptions<ActivityInstance, ApiError, StartActivityRequest>) => MutationResult<ActivityInstance, ApiError, StartActivityRequest>;
|
|
3066
3239
|
|
|
3067
3240
|
/**
|
|
3068
3241
|
* @public
|
|
@@ -3074,7 +3247,7 @@ export declare interface StartActivityRequest {
|
|
|
3074
3247
|
/**
|
|
3075
3248
|
* @public
|
|
3076
3249
|
*/
|
|
3077
|
-
export declare type StartWorkflowMutationHook = (options?:
|
|
3250
|
+
export declare type StartWorkflowMutationHook = (options?: MutationOptions<ProcessInstance, ApiError, StartWorkflowRequest>) => MutationResult<ProcessInstance, ApiError, StartWorkflowRequest>;
|
|
3078
3251
|
|
|
3079
3252
|
/**
|
|
3080
3253
|
* @public
|
|
@@ -3121,7 +3294,7 @@ declare interface SvgProps extends TestsProps, TooltipProps_2, SpaceProps_2, Siz
|
|
|
3121
3294
|
/**
|
|
3122
3295
|
* @public
|
|
3123
3296
|
*/
|
|
3124
|
-
export declare type SystemSearchQueryHook = (props?: SystemSearchQueryProps, options?: QueryOptions<ReadonlyArray<IdentifiableObject> | undefined, ApiError>) =>
|
|
3297
|
+
export declare type SystemSearchQueryHook = (props?: SystemSearchQueryProps, options?: QueryOptions<ReadonlyArray<IdentifiableObject> | undefined, ApiError>) => QueryResult<ReadonlyArray<IdentifiableObject> | undefined, ApiError>;
|
|
3125
3298
|
|
|
3126
3299
|
/**
|
|
3127
3300
|
* @public
|
|
@@ -3355,7 +3528,7 @@ export declare interface TranslationItemExtensionConfiguration {
|
|
|
3355
3528
|
/**
|
|
3356
3529
|
* @public
|
|
3357
3530
|
*/
|
|
3358
|
-
export declare type UnlocalizeItemMutationHook = (options?:
|
|
3531
|
+
export declare type UnlocalizeItemMutationHook = (options?: MutationOptions<RepositoryLocalObject, ApiError, UnlocalizeItemRequest>) => MutationResult<RepositoryLocalObject, ApiError, UnlocalizeItemRequest>;
|
|
3359
3532
|
|
|
3360
3533
|
/**
|
|
3361
3534
|
* @public
|
|
@@ -3369,7 +3542,7 @@ export declare interface UnlocalizeItemRequest {
|
|
|
3369
3542
|
/**
|
|
3370
3543
|
* @public
|
|
3371
3544
|
*/
|
|
3372
|
-
export declare type UnlocalizeItemsMutationHook = (options?: BatchMutationOptions<UnlocalizeItemsRequest>) =>
|
|
3545
|
+
export declare type UnlocalizeItemsMutationHook = (options?: BatchMutationOptions<UnlocalizeItemsRequest>) => MutationResult<Batch, ApiError, UnlocalizeItemsRequest>;
|
|
3373
3546
|
|
|
3374
3547
|
/**
|
|
3375
3548
|
* @public
|
|
@@ -3382,7 +3555,7 @@ export declare interface UnlocalizeItemsRequest {
|
|
|
3382
3555
|
/**
|
|
3383
3556
|
* @public
|
|
3384
3557
|
*/
|
|
3385
|
-
export declare type UnpublishItemsMutationHook = (options?:
|
|
3558
|
+
export declare type UnpublishItemsMutationHook = (options?: MutationOptions<PublishTransactionsCreationResult, ApiError, UnpublishItemsRequest>) => MutationResult<PublishTransactionsCreationResult, ApiError, UnpublishItemsRequest>;
|
|
3386
3559
|
|
|
3387
3560
|
/**
|
|
3388
3561
|
* @public
|
|
@@ -3427,7 +3600,7 @@ export declare interface UnpublishItemsRequest {
|
|
|
3427
3600
|
/**
|
|
3428
3601
|
* @public
|
|
3429
3602
|
*/
|
|
3430
|
-
export declare type UpdateItemMutationHook = (options?:
|
|
3603
|
+
export declare type UpdateItemMutationHook = (options?: MutationOptions<IdentifiableObject, ApiError, UpdateItemRequest>) => MutationResult<IdentifiableObject, ApiError, UpdateItemRequest>;
|
|
3431
3604
|
|
|
3432
3605
|
/**
|
|
3433
3606
|
* @public
|
|
@@ -3439,7 +3612,7 @@ export declare interface UpdateItemRequest {
|
|
|
3439
3612
|
/**
|
|
3440
3613
|
* @public
|
|
3441
3614
|
*/
|
|
3442
|
-
export declare type UploadMultimediaMutationHook = (options?:
|
|
3615
|
+
export declare type UploadMultimediaMutationHook = (options?: MutationOptions<UploadMultimediaMutationResult, ApiError, UploadMultimediaRequest>) => MutationResult<UploadMultimediaMutationResult, ApiError, UploadMultimediaRequest>;
|
|
3443
3616
|
|
|
3444
3617
|
/**
|
|
3445
3618
|
* @public
|
|
@@ -3806,7 +3979,7 @@ export declare const useRevertItemsMutation: RevertItemsMutationHook;
|
|
|
3806
3979
|
/**
|
|
3807
3980
|
* @public
|
|
3808
3981
|
*/
|
|
3809
|
-
export declare type UserGroupsQueryHook = (props?: UserGroupsQueryProps, options?: QueryOptions<ReadonlyArray<UserGroup> | undefined, ApiError>) =>
|
|
3982
|
+
export declare type UserGroupsQueryHook = (props?: UserGroupsQueryProps, options?: QueryOptions<ReadonlyArray<UserGroup> | undefined, ApiError>) => QueryResult<ReadonlyArray<UserGroup> | undefined, ApiError>;
|
|
3810
3983
|
|
|
3811
3984
|
/**
|
|
3812
3985
|
* @public
|
|
@@ -3843,12 +4016,12 @@ export declare interface UserProfileHookResult {
|
|
|
3843
4016
|
/**
|
|
3844
4017
|
* @public
|
|
3845
4018
|
*/
|
|
3846
|
-
export declare type UserProfileQueryHook = (options?: QueryOptions<UserProfile | undefined, ApiError>) =>
|
|
4019
|
+
export declare type UserProfileQueryHook = (options?: QueryOptions<UserProfile | undefined, ApiError>) => QueryResult<UserProfile | undefined, ApiError>;
|
|
3847
4020
|
|
|
3848
4021
|
/**
|
|
3849
4022
|
* @public
|
|
3850
4023
|
*/
|
|
3851
|
-
export declare type UsersQueryHook = (props?: UsersQueryProps, options?: QueryOptions<ReadonlyArray<User> | undefined, ApiError>) =>
|
|
4024
|
+
export declare type UsersQueryHook = (props?: UsersQueryProps, options?: QueryOptions<ReadonlyArray<User> | undefined, ApiError>) => QueryResult<ReadonlyArray<User> | undefined, ApiError>;
|
|
3852
4025
|
|
|
3853
4026
|
/**
|
|
3854
4027
|
* @public
|
package/dist/index.js
CHANGED
|
@@ -1729,7 +1729,7 @@ const createExtensionGlobals = () => {
|
|
|
1729
1729
|
};
|
|
1730
1730
|
};
|
|
1731
1731
|
|
|
1732
|
-
const version = "0.
|
|
1732
|
+
const version = "1.0.0";
|
|
1733
1733
|
const peerDependencies = {
|
|
1734
1734
|
"@tridion-sites/models": "workspace:*",
|
|
1735
1735
|
"@tridion-sites/open-api-client": "workspace:*",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tridion-sites/extensions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Tridion Sites Extensions API",
|
|
5
5
|
"author": "RWS",
|
|
6
6
|
"homepage": "https://www.rws.com",
|
|
@@ -10,13 +10,6 @@
|
|
|
10
10
|
"typings": "dist/index.d.ts",
|
|
11
11
|
"declaration": true,
|
|
12
12
|
"declarationMap": true,
|
|
13
|
-
"repository": {
|
|
14
|
-
"type": "git",
|
|
15
|
-
"url": "https://stash.sdl.com/scm/tdx/tridion-sites.git"
|
|
16
|
-
},
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://jira.sdl.com/projects/DXUI/issues/"
|
|
19
|
-
},
|
|
20
13
|
"files": [
|
|
21
14
|
"dist/**/*"
|
|
22
15
|
],
|
|
@@ -29,8 +22,8 @@
|
|
|
29
22
|
"prepublish": "yarn build"
|
|
30
23
|
},
|
|
31
24
|
"peerDependencies": {
|
|
32
|
-
"@tridion-sites/models": "0.
|
|
33
|
-
"@tridion-sites/open-api-client": "
|
|
25
|
+
"@tridion-sites/models": "1.0.0",
|
|
26
|
+
"@tridion-sites/open-api-client": "2.0.0",
|
|
34
27
|
"react": "18.2.0",
|
|
35
28
|
"react-dom": "18.2.0",
|
|
36
29
|
"react-is": "18.2.0",
|
|
@@ -42,8 +35,8 @@
|
|
|
42
35
|
"@rollup/plugin-json": "6.0.0",
|
|
43
36
|
"@rollup/plugin-node-resolve": "15.0.1",
|
|
44
37
|
"@rollup/plugin-typescript": "11.0.0",
|
|
45
|
-
"@tridion-sites/models": "0.
|
|
46
|
-
"@tridion-sites/open-api-client": "
|
|
38
|
+
"@tridion-sites/models": "1.0.0",
|
|
39
|
+
"@tridion-sites/open-api-client": "2.0.0",
|
|
47
40
|
"@tridion/graphene": "1.33.0",
|
|
48
41
|
"@types/react": "18.0.31",
|
|
49
42
|
"react": "18.2.0",
|
package/CHANGELOG.md
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
# @tridion-sites/extensions
|
|
2
|
-
|
|
3
|
-
## 0.5.3
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 6c90f9857b: add optional hooks
|
|
8
|
-
- 5b9c431d84: expose activities explorer hook
|
|
9
|
-
- 3a72874a67: Added moveAction method for Content Explorer actions
|
|
10
|
-
- ee268eb424: Exposed ref property to some of the Components
|
|
11
|
-
- a93bc99d21: More Text component props have been exposed
|
|
12
|
-
- Updated dependencies [be9284a536]
|
|
13
|
-
- @tridion-sites/models@0.1.3
|
|
14
|
-
|
|
15
|
-
## 0.5.2
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 81cb87a018: add quality of life hook for editors
|
|
20
|
-
- 8881ae361a: align table column extension api
|
|
21
|
-
- 49558c48b9: Made action group api clear for usage
|
|
22
|
-
- 31bdf04adf: Adjusted ContentExplorer actions API
|
|
23
|
-
- 7a8ec38aa2: expose layout components
|
|
24
|
-
- 06964d8222: add tag prop for Text component
|
|
25
|
-
- 282794f3f6: Adjusted types and models to represent real data type
|
|
26
|
-
- 57199c67f2: Specified return type in one of the mutations
|
|
27
|
-
- 9b78d6d626: upgrade dependencies
|
|
28
|
-
- Updated dependencies [b803ef7b33]
|
|
29
|
-
- Updated dependencies [9b78d6d626]
|
|
30
|
-
- Updated dependencies [31bdf04adf]
|
|
31
|
-
- @tridion-sites/models@0.1.2
|
|
32
|
-
|
|
33
|
-
## 0.5.1
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- 2ea2c9d543: make extensions api docs public
|
|
38
|
-
- 1845a12377: use the latest typescript version
|
|
39
|
-
- 9348205cee: Update of tinyMCE dependency
|
|
40
|
-
- Updated dependencies [226cc4cce1]
|
|
41
|
-
- Updated dependencies [1845a12377]
|
|
42
|
-
- @tridion-sites/models@0.1.1
|
|
43
|
-
- @tridion-sites/open-api-client@1.0.5
|
|
44
|
-
|
|
45
|
-
## 0.5.0
|
|
46
|
-
|
|
47
|
-
### Minor Changes
|
|
48
|
-
|
|
49
|
-
- 27291b3e95: added action extension API to activities explorer
|
|
50
|
-
|
|
51
|
-
## 0.4.0
|
|
52
|
-
|
|
53
|
-
### Minor Changes
|
|
54
|
-
|
|
55
|
-
- 0811f4c459: align extensions cli with the latest changes to extensions API
|
|
56
|
-
|
|
57
|
-
## 0.3.0
|
|
58
|
-
|
|
59
|
-
### Minor Changes
|
|
60
|
-
|
|
61
|
-
- Set of small improvements and fixes to the extensions framework
|
|
62
|
-
|
|
63
|
-
### Patch Changes
|
|
64
|
-
|
|
65
|
-
- Updated dependencies
|
|
66
|
-
- @tridion-sites/models@0.1.0
|
|
67
|
-
|
|
68
|
-
## 0.2.1
|
|
69
|
-
|
|
70
|
-
### Patch Changes
|
|
71
|
-
|
|
72
|
-
- update packages
|
|
73
|
-
- Updated dependencies
|
|
74
|
-
- @tridion-sites/models@0.0.5
|
|
75
|
-
|
|
76
|
-
## 0.2.0
|
|
77
|
-
|
|
78
|
-
### Minor Changes
|
|
79
|
-
|
|
80
|
-
- 0265d01ce1: add primary navigation configuration
|
|
81
|
-
|
|
82
|
-
### Patch Changes
|
|
83
|
-
|
|
84
|
-
- update extensions package
|
|
85
|
-
- bbea401902: added doc to @tridion-sites/extensions
|
|
86
|
-
|
|
87
|
-
## 0.1.0
|
|
88
|
-
|
|
89
|
-
### Minor Changes
|
|
90
|
-
|
|
91
|
-
- c7d9b31e81: enhancement to table column extension API
|
|
92
|
-
- b503321b50: RTF Extensions
|
|
93
|
-
|
|
94
|
-
### Patch Changes
|
|
95
|
-
|
|
96
|
-
- release new package version for extensions, extensions-cli, models, open-api-client
|
|
97
|
-
- 39ebad8dc3: Added extension points for Activities toolbar and the context menu
|
|
98
|
-
- cde4fdbb4c: Added an extension point for the context menu in Content Explorer Tree
|
|
99
|
-
- 37e2b03699: Added useNotifications, useContentExplorer to extension API
|
|
100
|
-
- 117e9e5f76: Models package became public
|
|
101
|
-
- Updated dependencies
|
|
102
|
-
- Updated dependencies [0738aa9ac3]
|
|
103
|
-
- Updated dependencies [ff20566f80]
|
|
104
|
-
- Updated dependencies [c616d80f3c]
|
|
105
|
-
- Updated dependencies [117e9e5f76]
|
|
106
|
-
- @tridion-sites/open-api-client@1.0.4
|
|
107
|
-
- @tridion-sites/models@0.0.2
|
|
108
|
-
|
|
109
|
-
## 0.0.6
|
|
110
|
-
|
|
111
|
-
### Patch Changes
|
|
112
|
-
|
|
113
|
-
- Dependencies fix
|
|
114
|
-
|
|
115
|
-
## 0.0.5
|
|
116
|
-
|
|
117
|
-
### Patch Changes
|
|
118
|
-
|
|
119
|
-
- Template fix
|
|
120
|
-
|
|
121
|
-
## 0.0.4
|
|
122
|
-
|
|
123
|
-
### Patch Changes
|
|
124
|
-
|
|
125
|
-
- Template fixes
|
|
126
|
-
|
|
127
|
-
## 0.0.3
|
|
128
|
-
|
|
129
|
-
### Patch Changes
|
|
130
|
-
|
|
131
|
-
- Small fixes
|
|
132
|
-
|
|
133
|
-
## 0.0.2
|
|
134
|
-
|
|
135
|
-
### Patch Changes
|
|
136
|
-
|
|
137
|
-
- First release
|