synapse-react-client 3.3.3 → 3.3.5

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 CHANGED
@@ -147,6 +147,7 @@ import { Map as Map_3 } from 'immutable';
147
147
  import { MembershipInvitation } from '@sage-bionetworks/synapse-types';
148
148
  import { MembershipInvtnSignedToken } from '@sage-bionetworks/synapse-types';
149
149
  import { MembershipRequest } from '@sage-bionetworks/synapse-types';
150
+ import { MessageToUser } from '@sage-bionetworks/synapse-types';
150
151
  import { MessageURL } from '@sage-bionetworks/synapse-types';
151
152
  import { MultipartUploadRequest } from '@sage-bionetworks/synapse-types';
152
153
  import { MultipartUploadStatus } from '@sage-bionetworks/synapse-types';
@@ -303,6 +304,10 @@ export declare type AccessRequirementAclEditorProps = {
303
304
  onSaveComplete: (saveSuccessful: boolean) => void;
304
305
  };
305
306
 
307
+ declare const accessRequirementPermissionLevels: readonly ["CAN_REVIEW_SUBMISSIONS", "IS_EXEMPTION_ELIGIBLE", "CAN_REVIEW_SUBMISSIONS_AND_IS_EXEMPTION_ELIGIBLE"];
308
+
309
+ declare type AccessRequirementPermissionsLevel = (typeof accessRequirementPermissionLevels)[number];
310
+
306
311
  export declare const AccessRequirementRelatedProjectsList: (props: AccessRequirementRelatedProjectsListProps) => default_2.JSX.Element;
307
312
 
308
313
  export declare type AccessRequirementRelatedProjectsListProps = {
@@ -1418,6 +1423,10 @@ declare interface EntityImage {
1418
1423
  isEntityImage: boolean;
1419
1424
  }
1420
1425
 
1426
+ declare const entityPermissionLevels: readonly ["CAN_VIEW", "CAN_DOWNLOAD", "CAN_EDIT", "CAN_EDIT_DELETE", "CAN_ADMINISTER"];
1427
+
1428
+ declare type EntityPermissionsLevel = (typeof entityPermissionLevels)[number];
1429
+
1421
1430
  /**
1422
1431
  * Indicates which container is selected when the tree is used to control another component. If 'root', then the top-level entities
1423
1432
  * should be shown in the other component. If a synID, then that entity's children should be shown in the other component. If null,
@@ -3428,12 +3437,12 @@ declare type PartialStateObject = {
3428
3437
 
3429
3438
  export declare function PasswordField(props: TextFieldProps_2): default_2.JSX.Element;
3430
3439
 
3431
- declare type PermissionLevel = (typeof permissionLevels)[number];
3432
-
3433
- declare const permissionLevels: readonly ["CAN_REVIEW_SUBMISSIONS", "IS_EXEMPTION_ELIGIBLE", "CAN_REVIEW_SUBMISSIONS_AND_IS_EXEMPTION_ELIGIBLE"];
3440
+ declare type PermissionLevel = EntityPermissionsLevel | AccessRequirementPermissionsLevel;
3434
3441
 
3435
3442
  declare namespace PermissionLevelToAccessType {
3436
3443
  export {
3444
+ EntityPermissionsLevel,
3445
+ AccessRequirementPermissionsLevel,
3437
3446
  PermissionLevel,
3438
3447
  getPermissionLevelFromAccessType,
3439
3448
  getAccessTypeFromPermissionLevel,
@@ -3564,17 +3573,6 @@ declare const PROJECT: string;
3564
3573
 
3565
3574
  export declare const ProjectIcon: () => default_2.JSX.Element;
3566
3575
 
3567
- /**
3568
- * Display a carousel of projects using a Project View. Driven by the following annotations/column names:
3569
- * projectDisplayName, projectDescription, projectImageFileName. The projectImageFileName must
3570
- * be an attachment on the project's root wiki page.
3571
- */
3572
- export declare const ProjectViewCarousel: default_2.FunctionComponent<ProjectViewCarouselProps>;
3573
-
3574
- export declare type ProjectViewCarouselProps = {
3575
- entityId: string;
3576
- };
3577
-
3578
3576
  export declare const ProvenanceGraph: (props: ProvenanceProps) => default_2.JSX.Element;
3579
3577
 
3580
3578
  export declare type ProvenanceProps = {
@@ -3589,6 +3587,8 @@ export declare type ProvenanceProps = {
3589
3587
  /** The group representing all logged-in Synapse users AND anonymous */
3590
3588
  declare const PUBLIC_PRINCIPAL_ID = 273949;
3591
3589
 
3590
+ declare const PUBLIC_PRINCIPAL_IDS: number[];
3591
+
3592
3592
  declare const PUBLICATION: string;
3593
3593
 
3594
3594
  declare function purgeFromTrashCan(entityId: string, accessToken: string | undefined): Promise<void>;
@@ -4057,6 +4057,14 @@ declare type SelectedFacetConfig = {
4057
4057
  sourceTableColumnName: string;
4058
4058
  };
4059
4059
 
4060
+ declare function sendMessage(recipients: string[], subject: string, body: string, accessToken: string): Promise<MessageToUser>;
4061
+
4062
+ declare type SendMessageRequest = {
4063
+ recipients: string[];
4064
+ subject: string;
4065
+ body: string;
4066
+ };
4067
+
4060
4068
  declare const SEPERATOR = "SEPERATOR";
4061
4069
 
4062
4070
  /**
@@ -4358,6 +4366,7 @@ declare namespace SynapseClient {
4358
4366
  createColumnModels,
4359
4367
  getDefaultColumnModels,
4360
4368
  getAnnotationColumnModels,
4369
+ sendMessage,
4361
4370
  SYNAPSE_STORAGE_LOCATION_ID,
4362
4371
  getVersion,
4363
4372
  getDownloadFromTableRequest,
@@ -4730,8 +4739,6 @@ declare namespace SynapseComponents {
4730
4739
  SynapsePlotProps,
4731
4740
  ClickCallbackParams,
4732
4741
  GraphItem,
4733
- ProjectViewCarousel,
4734
- ProjectViewCarouselProps,
4735
4742
  Programs,
4736
4743
  ProgramsProps,
4737
4744
  ProgrammaticTableDownload,
@@ -4834,6 +4841,7 @@ declare namespace SynapseConstants {
4834
4841
  AUTHENTICATED_PRINCIPAL_ID,
4835
4842
  PUBLIC_PRINCIPAL_ID,
4836
4843
  ANONYMOUS_PRINCIPAL_ID,
4844
+ PUBLIC_PRINCIPAL_IDS,
4837
4845
  ACT_TEAM_ID,
4838
4846
  TRUSTED_HTML_USERS_TEAM_ID,
4839
4847
  BUNDLE_MASK_QUERY_RESULTS,
@@ -5275,6 +5283,7 @@ declare namespace SynapseQueries {
5275
5283
  useInfiniteQueryResultBundle,
5276
5284
  useGetFullTableQueryResults,
5277
5285
  useGetSchema,
5286
+ useGetFeatureFlag,
5278
5287
  useGetStablePresignedUrl,
5279
5288
  useGetPresignedUrlContent,
5280
5289
  useGetPresignedUrlContentFromFHA,
@@ -5283,8 +5292,29 @@ declare namespace SynapseQueries {
5283
5292
  StablePresignedUrl,
5284
5293
  useGetDefaultUploadDestination,
5285
5294
  useGetUploadDestinationForStorageLocation,
5295
+ KeyFactory,
5296
+ useSendMessage,
5297
+ useGetOAuthClientInfinite,
5298
+ useDeleteOAuthClient,
5299
+ useUpdateOAuthClient,
5300
+ useCreateOAuthClient,
5301
+ invalidateAllQueriesForEntity,
5302
+ getAllActionsRequiredQueryFilters,
5286
5303
  useSearch,
5287
5304
  useSearchInfinite,
5305
+ useGetTeam,
5306
+ useCreateTeam,
5307
+ useGetTeamList,
5308
+ useGetChallengeTeamList,
5309
+ useGetTeamMembers,
5310
+ useGetIsUserMemberOfTeam,
5311
+ useGetMembershipStatus,
5312
+ useGetAllOpenMembershipInvitations,
5313
+ useInviteUserToTeam,
5314
+ useAddMemberToTeam,
5315
+ useRequestToJoinTeam,
5316
+ useDeleteTeamMembership,
5317
+ TeamMembershipParam,
5288
5318
  useIsFavorite,
5289
5319
  useAddFavorite,
5290
5320
  useRemoveFavorite,
@@ -5308,33 +5338,12 @@ declare namespace SynapseQueries {
5308
5338
  useGetUserGroupHeaders,
5309
5339
  useSearchUserGroupHeaders,
5310
5340
  useGetUserGroupHeaderWithAlias,
5311
- useGetOAuthClientInfinite,
5312
- useDeleteOAuthClient,
5313
- useUpdateOAuthClient,
5314
- useCreateOAuthClient,
5315
- useGetTeam,
5316
- useCreateTeam,
5317
- useGetTeamList,
5318
- useGetChallengeTeamList,
5319
- useGetTeamMembers,
5320
- useGetIsUserMemberOfTeam,
5321
- useGetMembershipStatus,
5322
- useGetAllOpenMembershipInvitations,
5323
- useInviteUserToTeam,
5324
- useAddMemberToTeam,
5325
- useRequestToJoinTeam,
5326
- useDeleteTeamMembership,
5327
- TeamMembershipParam,
5328
- KeyFactory,
5329
- invalidateAllQueriesForEntity,
5330
- getAllActionsRequiredQueryFilters,
5331
5341
  useGetRootWikiPageKey,
5332
5342
  useGetWikiPage,
5333
5343
  CreateWikiPageInput,
5334
5344
  useCreateWikiPage,
5335
5345
  UpdateWikiPageInput,
5336
- useUpdateWikiPage,
5337
- useGetFeatureFlag
5346
+ useUpdateWikiPage
5338
5347
  }
5339
5348
  }
5340
5349
  export { SynapseQueries }
@@ -6351,6 +6360,8 @@ declare function useSearchInfinite<TData = InfiniteData<SearchResults>>(query: O
6351
6360
 
6352
6361
  declare function useSearchUserGroupHeaders(prefix: string, filter?: TYPE_FILTER, options?: Partial<UseQueryOptions<UserGroupHeader[], SynapseClientError>>): UseQueryResult<UserGroupHeader[], SynapseClientError>;
6353
6362
 
6363
+ declare function useSendMessage(options?: Partial<UseMutationOptions<MessageToUser, SynapseClientError, SendMessageRequest>>): UseMutationResult<MessageToUser, SynapseClientError, SendMessageRequest, unknown>;
6364
+
6354
6365
  /**
6355
6366
  * Hook for storing an ES6 set in React state. Methods that mutate the set have been hidden via TypeScript,
6356
6367
  * so if you adhere to the type definitions, the set is essentially immutable.