synapse-react-client 3.3.3 → 3.3.4

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,
@@ -3589,6 +3598,8 @@ export declare type ProvenanceProps = {
3589
3598
  /** The group representing all logged-in Synapse users AND anonymous */
3590
3599
  declare const PUBLIC_PRINCIPAL_ID = 273949;
3591
3600
 
3601
+ declare const PUBLIC_PRINCIPAL_IDS: number[];
3602
+
3592
3603
  declare const PUBLICATION: string;
3593
3604
 
3594
3605
  declare function purgeFromTrashCan(entityId: string, accessToken: string | undefined): Promise<void>;
@@ -4057,6 +4068,14 @@ declare type SelectedFacetConfig = {
4057
4068
  sourceTableColumnName: string;
4058
4069
  };
4059
4070
 
4071
+ declare function sendMessage(recipients: string[], subject: string, body: string, accessToken: string): Promise<MessageToUser>;
4072
+
4073
+ declare type SendMessageRequest = {
4074
+ recipients: string[];
4075
+ subject: string;
4076
+ body: string;
4077
+ };
4078
+
4060
4079
  declare const SEPERATOR = "SEPERATOR";
4061
4080
 
4062
4081
  /**
@@ -4358,6 +4377,7 @@ declare namespace SynapseClient {
4358
4377
  createColumnModels,
4359
4378
  getDefaultColumnModels,
4360
4379
  getAnnotationColumnModels,
4380
+ sendMessage,
4361
4381
  SYNAPSE_STORAGE_LOCATION_ID,
4362
4382
  getVersion,
4363
4383
  getDownloadFromTableRequest,
@@ -4834,6 +4854,7 @@ declare namespace SynapseConstants {
4834
4854
  AUTHENTICATED_PRINCIPAL_ID,
4835
4855
  PUBLIC_PRINCIPAL_ID,
4836
4856
  ANONYMOUS_PRINCIPAL_ID,
4857
+ PUBLIC_PRINCIPAL_IDS,
4837
4858
  ACT_TEAM_ID,
4838
4859
  TRUSTED_HTML_USERS_TEAM_ID,
4839
4860
  BUNDLE_MASK_QUERY_RESULTS,
@@ -5275,6 +5296,7 @@ declare namespace SynapseQueries {
5275
5296
  useInfiniteQueryResultBundle,
5276
5297
  useGetFullTableQueryResults,
5277
5298
  useGetSchema,
5299
+ useGetFeatureFlag,
5278
5300
  useGetStablePresignedUrl,
5279
5301
  useGetPresignedUrlContent,
5280
5302
  useGetPresignedUrlContentFromFHA,
@@ -5283,8 +5305,29 @@ declare namespace SynapseQueries {
5283
5305
  StablePresignedUrl,
5284
5306
  useGetDefaultUploadDestination,
5285
5307
  useGetUploadDestinationForStorageLocation,
5308
+ KeyFactory,
5309
+ useSendMessage,
5310
+ useGetOAuthClientInfinite,
5311
+ useDeleteOAuthClient,
5312
+ useUpdateOAuthClient,
5313
+ useCreateOAuthClient,
5314
+ invalidateAllQueriesForEntity,
5315
+ getAllActionsRequiredQueryFilters,
5286
5316
  useSearch,
5287
5317
  useSearchInfinite,
5318
+ useGetTeam,
5319
+ useCreateTeam,
5320
+ useGetTeamList,
5321
+ useGetChallengeTeamList,
5322
+ useGetTeamMembers,
5323
+ useGetIsUserMemberOfTeam,
5324
+ useGetMembershipStatus,
5325
+ useGetAllOpenMembershipInvitations,
5326
+ useInviteUserToTeam,
5327
+ useAddMemberToTeam,
5328
+ useRequestToJoinTeam,
5329
+ useDeleteTeamMembership,
5330
+ TeamMembershipParam,
5288
5331
  useIsFavorite,
5289
5332
  useAddFavorite,
5290
5333
  useRemoveFavorite,
@@ -5308,33 +5351,12 @@ declare namespace SynapseQueries {
5308
5351
  useGetUserGroupHeaders,
5309
5352
  useSearchUserGroupHeaders,
5310
5353
  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
5354
  useGetRootWikiPageKey,
5332
5355
  useGetWikiPage,
5333
5356
  CreateWikiPageInput,
5334
5357
  useCreateWikiPage,
5335
5358
  UpdateWikiPageInput,
5336
- useUpdateWikiPage,
5337
- useGetFeatureFlag
5359
+ useUpdateWikiPage
5338
5360
  }
5339
5361
  }
5340
5362
  export { SynapseQueries }
@@ -6351,6 +6373,8 @@ declare function useSearchInfinite<TData = InfiniteData<SearchResults>>(query: O
6351
6373
 
6352
6374
  declare function useSearchUserGroupHeaders(prefix: string, filter?: TYPE_FILTER, options?: Partial<UseQueryOptions<UserGroupHeader[], SynapseClientError>>): UseQueryResult<UserGroupHeader[], SynapseClientError>;
6353
6375
 
6376
+ declare function useSendMessage(options?: Partial<UseMutationOptions<MessageToUser, SynapseClientError, SendMessageRequest>>): UseMutationResult<MessageToUser, SynapseClientError, SendMessageRequest, unknown>;
6377
+
6354
6378
  /**
6355
6379
  * Hook for storing an ES6 set in React state. Methods that mutate the set have been hidden via TypeScript,
6356
6380
  * so if you adhere to the type definitions, the set is essentially immutable.