synapse-react-client 3.0.32 → 3.0.33

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.
Files changed (188) hide show
  1. package/dist/containers/Carousel.js +5 -2
  2. package/dist/containers/Carousel.js.map +1 -1
  3. package/dist/containers/CopyToClipboardInput.js +2 -2
  4. package/dist/containers/CopyToClipboardInput.js.map +1 -1
  5. package/dist/containers/EntityIcon.d.ts +1 -0
  6. package/dist/containers/EntityIcon.js +3 -2
  7. package/dist/containers/EntityIcon.js.map +1 -1
  8. package/dist/containers/GenericCard.d.ts +18 -7
  9. package/dist/containers/GenericCard.js +84 -92
  10. package/dist/containers/GenericCard.js.map +1 -1
  11. package/dist/containers/IconSvg.d.ts +1 -1
  12. package/dist/containers/IconSvg.js +6 -0
  13. package/dist/containers/IconSvg.js.map +1 -1
  14. package/dist/containers/MarkdownSynapse.d.ts +23 -9
  15. package/dist/containers/MarkdownSynapse.js +30 -30
  16. package/dist/containers/MarkdownSynapse.js.map +1 -1
  17. package/dist/containers/dataaccess/SubmissionPage.js +6 -6
  18. package/dist/containers/dataaccess/SubmissionPage.js.map +1 -1
  19. package/dist/containers/entity_finder/EntityFinder.js +12 -49
  20. package/dist/containers/entity_finder/EntityFinder.js.map +1 -1
  21. package/dist/containers/entity_finder/details/EntityDetailsList.d.ts +2 -0
  22. package/dist/containers/entity_finder/details/EntityDetailsList.js +3 -3
  23. package/dist/containers/entity_finder/details/EntityDetailsList.js.map +1 -1
  24. package/dist/containers/entity_finder/details/configurations/EntityChildrenDetails.js +1 -1
  25. package/dist/containers/entity_finder/details/configurations/EntityChildrenDetails.js.map +1 -1
  26. package/dist/containers/entity_finder/details/configurations/FavoritesDetails.js +1 -1
  27. package/dist/containers/entity_finder/details/configurations/FavoritesDetails.js.map +1 -1
  28. package/dist/containers/entity_finder/details/configurations/ProjectListDetails.js +1 -1
  29. package/dist/containers/entity_finder/details/configurations/ProjectListDetails.js.map +1 -1
  30. package/dist/containers/entity_finder/details/view/DetailsView.js +1 -1
  31. package/dist/containers/entity_finder/details/view/DetailsView.js.map +1 -1
  32. package/dist/containers/entity_finder/details/view/DetailsViewTableRenderers.js +2 -2
  33. package/dist/containers/entity_finder/details/view/DetailsViewTableRenderers.js.map +1 -1
  34. package/dist/containers/entity_finder/useEntitySelection.d.ts +4 -0
  35. package/dist/containers/entity_finder/useEntitySelection.js +56 -0
  36. package/dist/containers/entity_finder/useEntitySelection.js.map +1 -0
  37. package/dist/containers/evaluation_queues/CalendarWithIconFormGroup.js +5 -2
  38. package/dist/containers/evaluation_queues/CalendarWithIconFormGroup.js.map +1 -1
  39. package/dist/containers/evaluation_queues/EvaluationCard.js +4 -4
  40. package/dist/containers/evaluation_queues/EvaluationCard.js.map +1 -1
  41. package/dist/containers/evaluation_queues/EvaluationEditor.js +15 -15
  42. package/dist/containers/evaluation_queues/EvaluationEditor.js.map +1 -1
  43. package/dist/containers/evaluation_queues/EvaluationEditorPage.js +1 -1
  44. package/dist/containers/evaluation_queues/EvaluationEditorPage.js.map +1 -1
  45. package/dist/containers/evaluation_queues/EvaluationRoundEditor.js +1 -1
  46. package/dist/containers/evaluation_queues/EvaluationRoundEditor.js.map +1 -1
  47. package/dist/containers/evaluation_queues/EvaluationRoundEditorDropdown.js +1 -1
  48. package/dist/containers/evaluation_queues/EvaluationRoundEditorDropdown.js.map +1 -1
  49. package/dist/containers/evaluation_queues/round_limits/EvaluationRoundLimitOptionsList.js +1 -1
  50. package/dist/containers/evaluation_queues/round_limits/EvaluationRoundLimitOptionsList.js.map +1 -1
  51. package/dist/containers/home_page/project_view_carousel/ProjectViewCarousel.js +8 -1
  52. package/dist/containers/home_page/project_view_carousel/ProjectViewCarousel.js.map +1 -1
  53. package/dist/containers/personal_access_token/AccessTokenPage.js +11 -39
  54. package/dist/containers/personal_access_token/AccessTokenPage.js.map +1 -1
  55. package/dist/containers/personal_access_token/CreateAccessTokenModal.js +4 -4
  56. package/dist/containers/personal_access_token/CreateAccessTokenModal.js.map +1 -1
  57. package/dist/containers/provenance/ActivityNodeLabel.d.ts +3 -0
  58. package/dist/containers/provenance/ActivityNodeLabel.js +27 -0
  59. package/dist/containers/provenance/ActivityNodeLabel.js.map +1 -0
  60. package/dist/containers/provenance/EntityNodeLabel.d.ts +3 -0
  61. package/dist/containers/provenance/EntityNodeLabel.js +29 -0
  62. package/dist/containers/provenance/EntityNodeLabel.js.map +1 -0
  63. package/dist/containers/provenance/EntityPlaceholderNodeLabel.d.ts +6 -0
  64. package/dist/containers/provenance/EntityPlaceholderNodeLabel.js +23 -0
  65. package/dist/containers/provenance/EntityPlaceholderNodeLabel.js.map +1 -0
  66. package/dist/containers/provenance/ExpandGraphNodeLabel.d.ts +7 -0
  67. package/dist/containers/provenance/ExpandGraphNodeLabel.js +18 -0
  68. package/dist/containers/provenance/ExpandGraphNodeLabel.js.map +1 -0
  69. package/dist/containers/provenance/ExternalGraphNodeLabel.d.ts +3 -0
  70. package/dist/containers/provenance/ExternalGraphNodeLabel.js +16 -0
  71. package/dist/containers/provenance/ExternalGraphNodeLabel.js.map +1 -0
  72. package/dist/containers/provenance/ProvenanceEntityIcon.d.ts +6 -0
  73. package/dist/containers/provenance/ProvenanceEntityIcon.js +87 -0
  74. package/dist/containers/provenance/ProvenanceEntityIcon.js.map +1 -0
  75. package/dist/containers/provenance/ProvenanceExternalIcon.d.ts +5 -0
  76. package/dist/containers/provenance/ProvenanceExternalIcon.js +26 -0
  77. package/dist/containers/provenance/ProvenanceExternalIcon.js.map +1 -0
  78. package/dist/containers/provenance/ProvenanceGraph.d.ts +12 -0
  79. package/dist/containers/provenance/ProvenanceGraph.js +309 -0
  80. package/dist/containers/provenance/ProvenanceGraph.js.map +1 -0
  81. package/dist/containers/provenance/ProvenanceGraphUtils.d.ts +66 -0
  82. package/dist/containers/provenance/ProvenanceGraphUtils.js +175 -0
  83. package/dist/containers/provenance/ProvenanceGraphUtils.js.map +1 -0
  84. package/dist/containers/provenance/ProvenanceUtils.d.ts +32 -0
  85. package/dist/containers/provenance/ProvenanceUtils.js +145 -0
  86. package/dist/containers/provenance/ProvenanceUtils.js.map +1 -0
  87. package/dist/containers/provenance/UndefinedNodeLabel.d.ts +2 -0
  88. package/dist/containers/provenance/UndefinedNodeLabel.js +14 -0
  89. package/dist/containers/provenance/UndefinedNodeLabel.js.map +1 -0
  90. package/dist/containers/row_renderers/utils/CardFooter.js +1 -1
  91. package/dist/containers/row_renderers/utils/CardFooter.js.map +1 -1
  92. package/dist/containers/synapse_form_wrapper/SynapseFormUtils.d.ts +6 -0
  93. package/dist/containers/synapse_form_wrapper/SynapseFormUtils.js +43 -0
  94. package/dist/containers/synapse_form_wrapper/SynapseFormUtils.js.map +1 -0
  95. package/dist/containers/synapse_form_wrapper/SynapseFormWrapper.d.ts +0 -4
  96. package/dist/containers/synapse_form_wrapper/SynapseFormWrapper.js +14 -45
  97. package/dist/containers/synapse_form_wrapper/SynapseFormWrapper.js.map +1 -1
  98. package/dist/containers/synapse_table_functions/SynapseTableCell.js +3 -1
  99. package/dist/containers/synapse_table_functions/SynapseTableCell.js.map +1 -1
  100. package/dist/containers/table/SynapseTable.js +4 -3
  101. package/dist/containers/table/SynapseTable.js.map +1 -1
  102. package/dist/containers/table/TablePagination.js +7 -2
  103. package/dist/containers/table/TablePagination.js.map +1 -1
  104. package/dist/containers/table/datasets/DatasetItemsEditor.d.ts +18 -7
  105. package/dist/containers/table/datasets/DatasetItemsEditor.js +95 -28
  106. package/dist/containers/table/datasets/DatasetItemsEditor.js.map +1 -1
  107. package/dist/containers/trash/TrashCanList.d.ts +2 -0
  108. package/dist/containers/trash/TrashCanList.js +144 -0
  109. package/dist/containers/trash/TrashCanList.js.map +1 -0
  110. package/dist/containers/widgets/Checkbox.d.ts +1 -0
  111. package/dist/containers/widgets/Checkbox.js +4 -4
  112. package/dist/containers/widgets/Checkbox.js.map +1 -1
  113. package/dist/containers/widgets/Range.d.ts +1 -1
  114. package/dist/containers/widgets/Range.js +2 -2
  115. package/dist/containers/widgets/Range.js.map +1 -1
  116. package/dist/containers/widgets/SynapseImage.d.ts +1 -1
  117. package/dist/containers/widgets/facet-nav/FacetNavPanel.js +9 -1
  118. package/dist/containers/widgets/facet-nav/FacetNavPanel.js.map +1 -1
  119. package/dist/containers/widgets/query-filter/RangeFacetFilter.d.ts +1 -1
  120. package/dist/containers/widgets/query-filter/RangeFacetFilter.js.map +1 -1
  121. package/dist/index.d.ts +2 -1
  122. package/dist/index.js +4 -2
  123. package/dist/index.js.map +1 -1
  124. package/dist/style/bootstrap4_backports/_base-import.scss +1 -0
  125. package/dist/style/components/_all.scss +2 -1
  126. package/dist/style/components/_copy-to-clipboard.scss +2 -0
  127. package/dist/style/components/_dataset-editor.scss +4 -1
  128. package/dist/style/components/_oauth-editor.scss +33 -0
  129. package/dist/style/components/_provenance.scss +71 -0
  130. package/dist/style/main.css +111 -3
  131. package/dist/umd/synapse-react-client.development.css +112 -3
  132. package/dist/umd/synapse-react-client.development.css.map +2 -2
  133. package/dist/umd/synapse-react-client.development.js +70529 -55977
  134. package/dist/umd/synapse-react-client.development.js.map +3 -3
  135. package/dist/umd/synapse-react-client.production.min.css +1 -1
  136. package/dist/umd/synapse-react-client.production.min.js +97 -94
  137. package/dist/umd.index.d.ts +5 -3
  138. package/dist/umd.index.js +5 -3
  139. package/dist/umd.index.js.map +1 -1
  140. package/dist/utils/APIConstants.d.ts +8 -0
  141. package/dist/utils/APIConstants.js +19 -1
  142. package/dist/utils/APIConstants.js.map +1 -1
  143. package/dist/utils/SynapseClient.d.ts +37 -9
  144. package/dist/utils/SynapseClient.js +66 -13
  145. package/dist/utils/SynapseClient.js.map +1 -1
  146. package/dist/utils/functions/EntityTypeUtils.d.ts +2 -1
  147. package/dist/utils/functions/EntityTypeUtils.js +2 -1
  148. package/dist/utils/functions/EntityTypeUtils.js.map +1 -1
  149. package/dist/utils/hooks/SynapseAPI/index.d.ts +1 -0
  150. package/dist/utils/hooks/SynapseAPI/index.js +1 -0
  151. package/dist/utils/hooks/SynapseAPI/index.js.map +1 -1
  152. package/dist/utils/hooks/SynapseAPI/oauth/index.d.ts +1 -0
  153. package/dist/utils/hooks/SynapseAPI/oauth/index.js +5 -0
  154. package/dist/utils/hooks/SynapseAPI/oauth/index.js.map +1 -0
  155. package/dist/utils/hooks/SynapseAPI/oauth/useOAuthClient.d.ts +9 -0
  156. package/dist/utils/hooks/SynapseAPI/oauth/useOAuthClient.js +79 -0
  157. package/dist/utils/hooks/SynapseAPI/oauth/useOAuthClient.js.map +1 -0
  158. package/dist/utils/hooks/SynapseAPI/trash/useTrashCan.d.ts +6 -0
  159. package/dist/utils/hooks/SynapseAPI/trash/useTrashCan.js +81 -0
  160. package/dist/utils/hooks/SynapseAPI/trash/useTrashCan.js.map +1 -0
  161. package/dist/utils/hooks/SynapseAPI/user/usePersonalAccessToken.d.ts +4 -0
  162. package/dist/utils/hooks/SynapseAPI/user/usePersonalAccessToken.js +21 -0
  163. package/dist/utils/hooks/SynapseAPI/user/usePersonalAccessToken.js.map +1 -0
  164. package/dist/utils/hooks/useGetInfoFromIds.js +2 -1
  165. package/dist/utils/hooks/useGetInfoFromIds.js.map +1 -1
  166. package/dist/utils/hooks/useGetIsAllSelectedInfiniteList.d.ts +20 -22
  167. package/dist/utils/hooks/useGetIsAllSelectedInfiniteList.js +28 -32
  168. package/dist/utils/hooks/useGetIsAllSelectedInfiniteList.js.map +1 -1
  169. package/dist/utils/synapseTypes/EntityHeader.d.ts +2 -0
  170. package/dist/utils/synapseTypes/OAuthClient.d.ts +31 -0
  171. package/dist/utils/synapseTypes/OAuthClient.js +12 -0
  172. package/dist/utils/synapseTypes/OAuthClient.js.map +1 -0
  173. package/dist/utils/synapseTypes/Provenance/Provenance.d.ts +41 -0
  174. package/dist/utils/synapseTypes/Provenance/Provenance.js +6 -0
  175. package/dist/utils/synapseTypes/Provenance/Provenance.js.map +1 -0
  176. package/dist/utils/synapseTypes/Table/Dataset.d.ts +13 -9
  177. package/dist/utils/synapseTypes/Table/Dataset.js.map +1 -1
  178. package/dist/utils/synapseTypes/TrashedEntity.d.ts +17 -0
  179. package/dist/utils/synapseTypes/TrashedEntity.js +3 -0
  180. package/dist/utils/synapseTypes/TrashedEntity.js.map +1 -0
  181. package/dist/utils/synapseTypes/VersionInfo.d.ts +2 -2
  182. package/dist/utils/synapseTypes/index.d.ts +1 -0
  183. package/dist/utils/synapseTypes/index.js +1 -0
  184. package/dist/utils/synapseTypes/index.js.map +1 -1
  185. package/package.json +10 -4
  186. package/dist/containers/HasAccess.d.ts +0 -85
  187. package/dist/containers/HasAccess.js +0 -353
  188. package/dist/containers/HasAccess.js.map +0 -1
@@ -6,12 +6,12 @@ import ShowDownloadV2 from './containers/download_list_v2/ShowDownloadV2';
6
6
  import EntityForm from './containers/EntityForm';
7
7
  import FavoritesPage from './containers/FavoritesPage';
8
8
  import FullWidthAlert from './containers/FullWidthAlert';
9
- import HasAccess from './containers/HasAccess';
10
- import { HasAccessV2 } from './containers/HasAccessV2';
9
+ import { HasAccessV2 as HasAccess } from './containers/HasAccessV2';
11
10
  import Login from './containers/Login';
12
11
  import StatisticsPlot from './containers/StatisticsPlot';
13
12
  import { DatasetItemsEditor } from './containers/table/datasets/DatasetItemsEditor';
14
13
  import ProgrammaticTableDownload from './containers/table/table-top/ProgrammaticTableDownload';
14
+ import { TrashCanList } from './containers/trash/TrashCanList';
15
15
  import UserProfileLinks from './containers/user_profile_links/UserProfileLinks';
16
16
  import './style/main.scss';
17
17
  import { SynapseClient, SynapseConstants } from './utils';
@@ -28,7 +28,6 @@ declare const SynapseComponents: {
28
28
  UserCard: import("react").FunctionComponent<import("./containers/UserCard").UserCardProps>;
29
29
  StatisticsPlot: typeof StatisticsPlot;
30
30
  HasAccess: typeof HasAccess;
31
- HasAccessV2: typeof HasAccessV2;
32
31
  EvaluationCard: import("react").FunctionComponent<import("./containers/evaluation_queues/EvaluationCard").EvaluationCardProps>;
33
32
  EvaluationEditorPage: import("react").FunctionComponent<import("./containers/evaluation_queues/EvaluationEditorPage").EvaluationEditorPageProps>;
34
33
  AccessTokenPage: import("react").FunctionComponent<import("./containers/personal_access_token/AccessTokenPage").AccessTokenPageProps>;
@@ -65,6 +64,7 @@ declare const SynapseComponents: {
65
64
  type: import("./utils/synapseTypes").EntityType;
66
65
  style?: import("react").CSSProperties | undefined;
67
66
  className?: string | undefined;
67
+ includeTooltip?: boolean | undefined;
68
68
  }>;
69
69
  HelpPopover: import("react").FunctionComponent<import("./containers/HelpPopover").HelpPopoverProps>;
70
70
  ProgrammaticTableDownload: typeof ProgrammaticTableDownload;
@@ -78,6 +78,8 @@ declare const SynapseComponents: {
78
78
  ChangePassword: import("react").FunctionComponent<{}>;
79
79
  ForumSearch: (props: import("./containers/ForumSearch").ForumSearchProps) => JSX.Element;
80
80
  ReviewerDashboard: typeof ReviewerDashboard;
81
+ ProvenanceGraph: (props: import("./containers/provenance/ProvenanceGraph").ProvenanceProps) => JSX.Element;
82
+ TrashCanList: typeof TrashCanList;
81
83
  };
82
84
  declare const SynapseReactClientVersion: any;
83
85
  export { SynapseReactClientVersion, SynapseComponents, SynapseConstants, SynapseClient, SynapseContext, };
package/dist/umd.index.js CHANGED
@@ -23,7 +23,6 @@ var EvaluationEditorPage_1 = require("./containers/evaluation_queues/EvaluationE
23
23
  var FavoritesPage_1 = tslib_1.__importDefault(require("./containers/FavoritesPage"));
24
24
  var ForumSearch_1 = tslib_1.__importDefault(require("./containers/ForumSearch"));
25
25
  var FullWidthAlert_1 = tslib_1.__importDefault(require("./containers/FullWidthAlert"));
26
- var HasAccess_1 = tslib_1.__importDefault(require("./containers/HasAccess"));
27
26
  var HasAccessV2_1 = require("./containers/HasAccessV2");
28
27
  var HelpPopover_1 = require("./containers/HelpPopover");
29
28
  var ProjectViewCarousel_1 = tslib_1.__importDefault(require("./containers/home_page/project_view_carousel/ProjectViewCarousel"));
@@ -43,8 +42,10 @@ var StandaloneQueryWrapper_1 = tslib_1.__importDefault(require("./containers/tab
43
42
  var ProgrammaticTableDownload_1 = tslib_1.__importDefault(require("./containers/table/table-top/ProgrammaticTableDownload"));
44
43
  var TermsAndConditions_1 = tslib_1.__importDefault(require("./containers/TermsAndConditions"));
45
44
  var ToastMessage_1 = require("./containers/ToastMessage");
45
+ var TrashCanList_1 = require("./containers/trash/TrashCanList");
46
46
  var UserCard_1 = tslib_1.__importDefault(require("./containers/UserCard"));
47
47
  var UserProfileLinks_1 = tslib_1.__importDefault(require("./containers/user_profile_links/UserProfileLinks"));
48
+ var ProvenanceGraph_1 = require("./containers/provenance/ProvenanceGraph");
48
49
  require("./style/main.scss");
49
50
  var utils_1 = require("./utils");
50
51
  Object.defineProperty(exports, "SynapseClient", { enumerable: true, get: function () { return utils_1.SynapseClient; } });
@@ -62,8 +63,7 @@ var SynapseComponents = {
62
63
  EntityForm: EntityForm_1.default,
63
64
  UserCard: UserCard_1.default,
64
65
  StatisticsPlot: StatisticsPlot_1.default,
65
- HasAccess: HasAccess_1.default,
66
- HasAccessV2: HasAccessV2_1.HasAccessV2,
66
+ HasAccess: HasAccessV2_1.HasAccessV2,
67
67
  EvaluationCard: EvaluationCard_1.EvaluationCard,
68
68
  EvaluationEditorPage: EvaluationEditorPage_1.EvaluationEditorPage,
69
69
  AccessTokenPage: AccessTokenPage_1.AccessTokenPage,
@@ -100,6 +100,8 @@ var SynapseComponents = {
100
100
  ChangePassword: ChangePassword_1.default,
101
101
  ForumSearch: ForumSearch_1.default,
102
102
  ReviewerDashboard: ReviewerDashboard_1.ReviewerDashboard,
103
+ ProvenanceGraph: ProvenanceGraph_1.ProvenanceGraph,
104
+ TrashCanList: TrashCanList_1.TrashCanList,
103
105
  };
104
106
  exports.SynapseComponents = SynapseComponents;
105
107
  // Include the version in the build
@@ -1 +1 @@
1
- {"version":3,"file":"umd.index.js","sourceRoot":"","sources":["../src/lib/umd.index.ts"],"names":[],"mappings":";;;;AAAA,uCAAoC;AACpC,oEAAkE;AAClE,oEAAkE;AAClE,uFAAwD;AACxD,+EAA6E;AAC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,8CAAiB;AANnB,mCAAmC;AACnC,mJAAmJ;AACnJ,IAAM,yBAAyB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAA;AAGrE,8DAAyB"}
@@ -51,3 +51,11 @@ export declare const USER_GROUP_HEADERS: string;
51
51
  export declare const USER_GROUP_HEADERS_BATCH: string;
52
52
  export declare const DATA_ACCESS_SUBMISSION_BY_ID: (id: string | number) => string;
53
53
  export declare const PROFILE_IMAGE_PREVIEW: (userId: string) => string;
54
+ export declare const APPROVED_SUBMISSION_INFO: (accessRequirementId: string | number) => string;
55
+ export declare const EVALUATION: string;
56
+ export declare const EVALUATION_BY_ID: (id: string | number) => string;
57
+ export declare const ACTIVITY_FOR_ENTITY: (entityId: string, versionNumber?: string) => string;
58
+ export declare const TRASHCAN: string;
59
+ export declare const TRASHCAN_VIEW: string;
60
+ export declare const TRASHCAN_RESTORE: (id: string) => string;
61
+ export declare const TRASHCAN_PURGE: (id: string) => string;
@@ -3,7 +3,8 @@
3
3
  * Separating API endpoints into their own constants file
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.PROFILE_IMAGE_PREVIEW = exports.DATA_ACCESS_SUBMISSION_BY_ID = exports.USER_GROUP_HEADERS_BATCH = exports.USER_GROUP_HEADERS = exports.FAVORITES = exports.ACCESS_REQUIREMENT_WIKI_PAGE_KEY = exports.ACCESS_REQUIREMENT_STATUS = exports.ACCESS_REQUIREMENT_ACL = exports.ACCESS_REQUIREMENT_BY_ID = exports.ACCESS_REQUEST_SUBMISSION_SEARCH = exports.ACCESS_REQUIREMENT_SEARCH = exports.VERIFICATION_SUBMISSION = exports.SIGN_TERMS_OF_USE = exports.REGISTER_ACCOUNT_STEP_2 = exports.REGISTER_ACCOUNT_STEP_1 = exports.ALIAS_AVAILABLE = exports.NOTIFICATION_EMAIL = exports.USER_PROFILE_ID = exports.USER_PROFILE = exports.USER_ID_BUNDLE = exports.USER_ID = exports.USER_BUNDLE = exports.USER = exports.SCHEMA_VALIDATION_GET = exports.SCHEMA_VALIDATION_START = exports.REGISTERED_SCHEMA_ID = exports.REGISTERED_SCHEMA = exports.SCHEMA = exports.USER_PROFILE_ENDPOINT = exports.ASYNCHRONOUS_JOB_TOKEN = exports.TABLE_QUERY_ASYNC_GET = exports.TABLE_QUERY_ASYNC_START = exports.ENTITY_SCHEMA_VALIDATION = exports.ENTITY_SCHEMA_BINDING = exports.ENTITY_SCHEMA = exports.ENTITY_JSON = exports.ENTITY_HEADERS = exports.ENTITY_ACCESS = exports.ENTITY_BUNDLE_V2 = exports.ENTITY_ID_VERSIONS = exports.ENTITY_ID_VERSION = exports.ENTITY_ID = exports.ENTITY = exports.FILE = exports.AUTH = exports.REPO = exports.BACKEND_ENDPOINT = void 0;
6
+ exports.EVALUATION_BY_ID = exports.EVALUATION = exports.APPROVED_SUBMISSION_INFO = exports.PROFILE_IMAGE_PREVIEW = exports.DATA_ACCESS_SUBMISSION_BY_ID = exports.USER_GROUP_HEADERS_BATCH = exports.USER_GROUP_HEADERS = exports.FAVORITES = exports.ACCESS_REQUIREMENT_WIKI_PAGE_KEY = exports.ACCESS_REQUIREMENT_STATUS = exports.ACCESS_REQUIREMENT_ACL = exports.ACCESS_REQUIREMENT_BY_ID = exports.ACCESS_REQUEST_SUBMISSION_SEARCH = exports.ACCESS_REQUIREMENT_SEARCH = exports.VERIFICATION_SUBMISSION = exports.SIGN_TERMS_OF_USE = exports.REGISTER_ACCOUNT_STEP_2 = exports.REGISTER_ACCOUNT_STEP_1 = exports.ALIAS_AVAILABLE = exports.NOTIFICATION_EMAIL = exports.USER_PROFILE_ID = exports.USER_PROFILE = exports.USER_ID_BUNDLE = exports.USER_ID = exports.USER_BUNDLE = exports.USER = exports.SCHEMA_VALIDATION_GET = exports.SCHEMA_VALIDATION_START = exports.REGISTERED_SCHEMA_ID = exports.REGISTERED_SCHEMA = exports.SCHEMA = exports.USER_PROFILE_ENDPOINT = exports.ASYNCHRONOUS_JOB_TOKEN = exports.TABLE_QUERY_ASYNC_GET = exports.TABLE_QUERY_ASYNC_START = exports.ENTITY_SCHEMA_VALIDATION = exports.ENTITY_SCHEMA_BINDING = exports.ENTITY_SCHEMA = exports.ENTITY_JSON = exports.ENTITY_HEADERS = exports.ENTITY_ACCESS = exports.ENTITY_BUNDLE_V2 = exports.ENTITY_ID_VERSIONS = exports.ENTITY_ID_VERSION = exports.ENTITY_ID = exports.ENTITY = exports.FILE = exports.AUTH = exports.REPO = exports.BACKEND_ENDPOINT = void 0;
7
+ exports.TRASHCAN_PURGE = exports.TRASHCAN_RESTORE = exports.TRASHCAN_VIEW = exports.TRASHCAN = exports.ACTIVITY_FOR_ENTITY = void 0;
7
8
  var getEndpoint_1 = require("./functions/getEndpoint");
8
9
  exports.BACKEND_ENDPOINT = "".concat((0, getEndpoint_1.getEndpoint)(getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT));
9
10
  exports.REPO = "/repo/v1";
@@ -114,4 +115,21 @@ var PROFILE_IMAGE_PREVIEW = function (userId) {
114
115
  return "".concat(exports.REPO, "/userProfile/").concat(userId, "/image/preview");
115
116
  };
116
117
  exports.PROFILE_IMAGE_PREVIEW = PROFILE_IMAGE_PREVIEW;
118
+ var APPROVED_SUBMISSION_INFO = function (accessRequirementId) { return (0, exports.ACCESS_REQUIREMENT_BY_ID)(accessRequirementId) + "/approvedSubmissionInfo"; };
119
+ exports.APPROVED_SUBMISSION_INFO = APPROVED_SUBMISSION_INFO;
120
+ exports.EVALUATION = "".concat(exports.REPO, "/evaluation");
121
+ var EVALUATION_BY_ID = function (id) { return exports.EVALUATION + "/".concat(id); };
122
+ exports.EVALUATION_BY_ID = EVALUATION_BY_ID;
123
+ var ACTIVITY_FOR_ENTITY = function (entityId, versionNumber) {
124
+ return versionNumber
125
+ ? "".concat(exports.REPO, "/entity/").concat(entityId, "/version/").concat(versionNumber, "/generatedBy")
126
+ : "".concat(exports.REPO, "/entity/").concat(entityId, "/generatedBy");
127
+ };
128
+ exports.ACTIVITY_FOR_ENTITY = ACTIVITY_FOR_ENTITY;
129
+ exports.TRASHCAN = "".concat(exports.REPO, "/trashcan");
130
+ exports.TRASHCAN_VIEW = "".concat(exports.TRASHCAN, "/view");
131
+ var TRASHCAN_RESTORE = function (id) { return "".concat(exports.TRASHCAN, "/restore/").concat(id); };
132
+ exports.TRASHCAN_RESTORE = TRASHCAN_RESTORE;
133
+ var TRASHCAN_PURGE = function (id) { return "".concat(exports.TRASHCAN, "/purge/").concat(id); };
134
+ exports.TRASHCAN_PURGE = TRASHCAN_PURGE;
117
135
  //# sourceMappingURL=APIConstants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"APIConstants.js","sourceRoot":"","sources":["../../src/lib/utils/APIConstants.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uDAA6E;AAEhE,QAAA,gBAAgB,GAAG,UAAG,IAAA,yBAAW,EAC5C,oCAAsB,CAAC,aAAa,CACrC,CAAE,CAAA;AAEU,QAAA,IAAI,GAAG,UAAU,CAAA;AACjB,QAAA,IAAI,GAAG,UAAU,CAAA;AACjB,QAAA,IAAI,GAAG,UAAU,CAAA;AAE9B,IAAM,WAAW,GAAG,cAAc,CAAA;AAClC,IAAM,SAAS,GAAG,YAAY,CAAA;AAEjB,QAAA,MAAM,GAAG,UAAG,YAAI,YAAS,CAAA;AAC/B,IAAM,SAAS,GAAG,UAAC,EAAmB,IAAK,OAAA,UAAG,YAAI,qBAAW,EAAE,CAAE,EAAtB,CAAsB,CAAA;AAA3D,QAAA,SAAS,aAAkD;AACxE;;GAEG;AACI,IAAM,iBAAiB,GAAG,UAC/B,EAAmB,EACnB,OAAyB,IACtB,OAAA,UAAG,YAAI,qBAAW,EAAE,SAAG,OAAO,CAAC,CAAC,CAAC,mBAAY,OAAO,CAAE,CAAC,CAAC,CAAC,EAAE,CAAE,EAA7D,CAA6D,CAAA;AAHrD,QAAA,iBAAiB,qBAGoC;AAC3D,IAAM,kBAAkB,GAAG,UAAC,EAAmB;IACpD,O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;AADzB,QAAA,4BAA4B,gCACH;AAE/B,IAAM,qBAAqB,GAAG,UAAC,MAAc;IAClD,OAAA,UAAG,YAAI,0BAAgB,MAAM,mBAAgB;AAA7C,CAA6C,CAAA;AADlC,QAAA,qBAAqB,yBACa;AAExC,IAAM,wBAAwB,GAAG,UACtC,mBAAoC,IACjC,OAAA,IAAA,gCAAwB,EAAC,mBAAmB,CAAC,GAAG,yBAAyB,EAAzE,CAAyE,CAAA;AAFjE,QAAA,wBAAwB,4BAEyC;AAEjE,QAAA,UAAU,GAAG,UAAG,YAAI,gBAAa,CAAA;AACvC,IAAM,gBAAgB,GAAG,UAAC,EAAmB,IAAK,OAAA,kBAAU,GAAG,WAAI,EAAE,CAAE,EAArB,CAAqB,CAAA;AAAjE,QAAA,gBAAgB,oBAAiD;AAEvE,IAAM,mBAAmB,GAAG,UAAC,QAAgB,EAAE,aAAsB;IAC1E,OAAA,aAAa;QACX,CAAC,CAAC,UAAG,YAAI,qBAAW,QAAQ,sBAAY,aAAa,iBAAc;QACnE,CAAC,CAAC,UAAG,YAAI,qBAAW,QAAQ,iBAAc;AAF5C,CAE4C,CAAA;AAHjC,QAAA,mBAAmB,uBAGc;AAEjC,QAAA,QAAQ,GAAG,UAAG,YAAI,cAAW,CAAA;AAC7B,QAAA,aAAa,GAAG,UAAG,gBAAQ,UAAO,CAAA;AACxC,IAAM,gBAAgB,GAAG,UAAC,EAAU,IAAK,OAAA,UAAG,gBAAQ,sBAAY,EAAE,CAAE,EAA3B,CAA2B,CAAA;AAA9D,QAAA,gBAAgB,oBAA8C;AACpE,IAAM,cAAc,GAAG,UAAC,EAAU,IAAK,OAAA,UAAG,gBAAQ,oBAAU,EAAE,CAAE,EAAzB,CAAyB,CAAA;AAA1D,QAAA,cAAc,kBAA4C"}
@@ -1,6 +1,6 @@
1
1
  import { JSONSchema7 } from 'json-schema';
2
2
  import { BackendDestinationEnum, EndpointObject } from './functions/getEndpoint';
3
- import { AccessApproval, AccessCodeResponse, AccessControlList, AccessRequirement, AccessRequirementStatus, ACCESS_TYPE, ACTSubmissionStatus, AsynchronousJobStatus, BatchFileRequest, BatchFileResult, BulkFileDownloadRequest, BulkFileDownloadResponse, DownloadFromTableRequest, DownloadFromTableResult, DownloadList, DownloadOrder, Entity, EntityBundle, EntityBundleRequest, EntityHeader, EntityId, EntityJson, EntityLookupRequest, EntityPath, Evaluation, EvaluationRound, FileEntity, FileHandle, FileHandleAssociateType, FileHandleAssociation, FileHandleResults, FileResult, FileUploadComplete, FormData, FormGroup, ListRequest, ListResponse, LoginResponse, MultipartUploadRequest, MultipartUploadStatus, NotificationEmail, OAuthClientPublic, OAuthConsentGrantedResponse, ObjectType, OIDCAuthorizationRequest, OIDCAuthorizationRequestDescription, PaginatedResults, ProjectFilesStatisticsRequest, ProjectFilesStatisticsResponse, ProjectHeaderList, QueryBundleRequest, QueryResultBundle, QueryTableResults, ReferenceList, RestrictionInformationRequest, RestrictionInformationResponse, Submission as EvaluationSubmission, SynapseVersion, UserBundle, UserGroupHeaderResponsePage, UserProfile, VerificationSubmission, WikiPage, WikiPageKey } from './synapseTypes/';
3
+ import { AccessApproval, AccessCodeResponse, AccessControlList, AccessRequirement, AccessRequirementStatus, ACCESS_TYPE, ACTSubmissionStatus, AsynchronousJobStatus, BatchFileRequest, BatchFileResult, BulkFileDownloadRequest, BulkFileDownloadResponse, DownloadFromTableRequest, DownloadFromTableResult, DownloadList, DownloadOrder, Entity, EntityBundle, EntityBundleRequest, EntityHeader, EntityId, EntityJson, EntityLookupRequest, EntityPath, Evaluation, EvaluationRound, FileEntity, FileHandle, FileHandleAssociateType, FileHandleAssociation, FileHandleResults, FileResult, FileUploadComplete, FormData, FormGroup, ListRequest, ListResponse, LoginResponse, MultipartUploadRequest, MultipartUploadStatus, NotificationEmail, OAuthClientPublic, OAuthConsentGrantedResponse, ObjectType, OIDCAuthorizationRequest, OIDCAuthorizationRequestDescription, PaginatedResults, ProjectFilesStatisticsRequest, ProjectFilesStatisticsResponse, ProjectHeaderList, QueryBundleRequest, QueryResultBundle, QueryTableResults, ReferenceList, RestrictionInformationRequest, RestrictionInformationResponse, Submission as EvaluationSubmission, SynapseVersion, TrashedEntity, UserBundle, UserGroupHeaderResponsePage, UserProfile, VerificationSubmission, WikiPage, WikiPageKey } from './synapseTypes/';
4
4
  import { CreateSubmissionRequest, ManagedACTAccessRequirementStatus, RequestInterface } from './synapseTypes/AccessRequirement';
5
5
  import { AccessRequirementSearchRequest, AccessRequirementSearchResponse } from './synapseTypes/AccessRequirement/AccessRequirementSearch';
6
6
  import { RenewalInterface } from './synapseTypes/AccessRequirement/RenewalInterface';
@@ -42,6 +42,8 @@ import { AccessApprovalSearchRequest, AccessApprovalSearchResponse } from './syn
42
42
  import { SubmissionSearchRequest, SubmissionSearchResponse } from './synapseTypes/AccessSubmission';
43
43
  import { SubmissionInfoPage, SubmissionInfoPageRequest } from './synapseTypes/SubmissionInfo';
44
44
  import { Submission as DataAccessSubmission } from './synapseTypes/AccessRequirement/Submission';
45
+ import { OAuthClient, OAuthClientList } from './synapseTypes/OAuthClient';
46
+ import { Activity } from './synapseTypes/Provenance/Provenance';
45
47
  export declare const IS_OUTSIDE_SYNAPSE_ORG: boolean;
46
48
  export declare const ACCESS_TOKEN_COOKIE_KEY = "org.sagebionetworks.security.user.login.token";
47
49
  export declare const SYNAPSE_STORAGE_LOCATION_ID = 1;
@@ -247,11 +249,7 @@ export declare const getBulkFiles: (bulkFileDownloadRequest: BulkFileDownloadReq
247
249
  * https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/Entity.html
248
250
  */
249
251
  export declare const getEntity: <T extends Entity>(accessToken: string | undefined, entityId: string, versionNumber?: string) => Promise<T>;
250
- /**
251
- * Get a list of entity headers given by entity ids
252
- * http://rest-docs.synapse.org/rest/GET/entity/type.html
253
- */
254
- export declare const getEntityHeadersByIds: <T extends PaginatedResults<EntityHeader>>(entityIds: string[], accessToken?: string) => Promise<T>;
252
+ export declare const getEntityHeadersByIds: (entityIds: string[], accessToken?: string) => Promise<PaginatedResults<EntityHeader>>;
255
253
  /**
256
254
  * Get the EntityHeader for a list of references with a POST.
257
255
  * If any item in the batch fails (e.g., with a 404) it will be EXCLUDED in the result set.
@@ -332,7 +330,7 @@ export declare const setAccessTokenCookie: (token: string | undefined, sessionCa
332
330
  * Get the current access token from a cookie. Note that this will only succeed if your app is running on
333
331
  * a .synapse.org subdomain.
334
332
  */
335
- export declare const getAccessTokenFromCookie: () => Promise<any>;
333
+ export declare const getAccessTokenFromCookie: () => Promise<string>;
336
334
  export declare const getUseUtcTimeFromCookie: () => boolean;
337
335
  export declare const getPrincipalAliasRequest: (accessToken: string | undefined, alias: string, type: string) => Promise<{
338
336
  principalId: number;
@@ -452,6 +450,29 @@ export declare const hasUserAuthorizedOAuthClient: (oidcAuthRequest: OIDCAuthori
452
450
  * Get OAuth2 Client information (available to the public)
453
451
  */
454
452
  export declare const getOAuth2Client: (clientId: string) => Promise<OAuthClientPublic>;
453
+ /**
454
+ List the OAuth 2.0 clients created by the current user.
455
+ */
456
+ export declare const getOAuth2: (accessToken: string, nextPageToken?: string) => Promise<OAuthClientList>;
457
+ /**
458
+ Create an OAuth 2.0 client.
459
+ Note: The client name must be unique.
460
+ Note: After creating the client one must also set the client secret and have their client verified
461
+ https://rest-docs.synapse.org/rest/POST/oauth2/client.html
462
+ */
463
+ export declare const createOAuthClient: (request: OAuthClient, accessToken: string) => Promise<OAuthClient>;
464
+ /**
465
+ Delete OAuth 2.0 client
466
+ https://rest-docs.synapse.org/rest/DELETE/oauth2/client/id.html
467
+ */
468
+ export declare const deleteOAuthClient: (id: string, accessToken: string) => Promise<void>;
469
+ /**
470
+ Update the metadata for an existing OAuth 2.0 client.
471
+ Note: Only the creator of a client can update it.
472
+ Note: Changing the redirect URIs will revert the 'verified' status of the client, necessitating re-verification.
473
+ https://repo-prod.prod.sagebase.org/auth/v1/oauth2/client/{id}
474
+ */
475
+ export declare const updateOAuthClient: (request: OAuthClient, accessToken: string) => Promise<OAuthClient>;
455
476
  /**
456
477
  * Get OAuth2 Client information (available to the public)
457
478
  */
@@ -750,7 +771,7 @@ export declare const registerAccountStep2: (accountSetupInfo: AccountSetupInfo)
750
771
  * @param {*} redirectUrl
751
772
  * @param {*} endpoint
752
773
  */
753
- export declare const oAuthRegisterAccountStep2: (userName: string, provider: string, authenticationCode: string | number, redirectUrl: string, endpoint?: any) => Promise<LoginResponse>;
774
+ export declare const oAuthRegisterAccountStep2: (userName: string, provider: string, authenticationCode: string | number, redirectUrl: string, endpoint?: BackendDestinationEnum) => Promise<LoginResponse>;
754
775
  /**
755
776
  * Bind OAuth account to Synapse account as a new 'alias'.
756
777
  * https://rest-docs.synapse.org/rest/POST/oauth2/alias.html
@@ -759,7 +780,7 @@ export declare const oAuthRegisterAccountStep2: (userName: string, provider: str
759
780
  * @param {*} redirectUrl
760
781
  * @param {*} endpoint
761
782
  */
762
- export declare const bindOAuthProviderToAccount: (provider: string, authenticationCode: string | number, redirectUrl: string, endpoint?: any) => Promise<LoginResponse>;
783
+ export declare const bindOAuthProviderToAccount: (provider: string, authenticationCode: string | number, redirectUrl: string, endpoint?: BackendDestinationEnum) => Promise<LoginResponse>;
763
784
  /**
764
785
  * Remove an alias associated with an account via the OAuth mechanism.
765
786
  * http://rest-docs.synapse.org/rest/DELETE/oauth2/alias.html
@@ -862,6 +883,10 @@ export declare const searchAccessSubmission: (submissionSearchRequest: Submissio
862
883
  * http://rest-docs.synapse.org/rest/POST/accessRequirement/requirementId/approvedSubmissionInfo.html
863
884
  */
864
885
  export declare const getApprovedSubmissionInfo: (submissionInfoPageRequest: SubmissionInfoPageRequest, accessToken: string | undefined) => Promise<SubmissionInfoPage>;
886
+ /**
887
+ * http://rest-docs.synapse.org/rest/GET/activity/id/generated.html
888
+ */
889
+ export declare const getActivityForEntity: (entityId: string, versionNumber?: number, accessToken?: string) => Promise<Activity>;
865
890
  /**
866
891
  * Returns the presigned URL for a user's profile pic. Note that the presigned URL
867
892
  * expires after a short time, so it should be used immediately.
@@ -870,3 +895,6 @@ export declare const getApprovedSubmissionInfo: (submissionInfoPageRequest: Subm
870
895
  * does not have a profile image
871
896
  */
872
897
  export declare function getProfilePicPreviewPresignedUrl(userId: string): Promise<string | null>;
898
+ export declare function getItemsInTrashCan(accessToken: string | undefined, offset?: number, limit?: number): Promise<PaginatedResults<TrashedEntity>>;
899
+ export declare function restoreFromTrashCan(entityId: string, accessToken: string | undefined): Promise<void>;
900
+ export declare function purgeFromTrashCan(entityId: string, accessToken: string | undefined): Promise<void>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getTeamList = exports.getUserTeamList = exports.getUserChallenges = exports.removeUserFavorite = exports.getUserFavorites = exports.getEntityWiki = exports.getEntityBundleV2 = exports.deleteEntity = exports.updateEntity = exports.getEntityHeader = exports.getEntityHeaders = exports.getEntityHeadersByIds = exports.getEntity = exports.getBulkFiles = exports.getFiles = exports.lookupChildEntity = exports.getEntityChildren = exports.getUserProfiles = exports.getGroupHeadersBatch = exports.getUserGroupHeaders = exports.updateMyUserProfile = exports.getMyUserBundle = exports.getUserBundle = exports.getUserProfileById = exports.getUserProfile = exports.createProject = exports.createEntity = exports.oAuthSessionRequest = exports.oAuthUrlRequest = exports.login = exports.getFullQueryTableResults = exports.getQueryTableResults = exports.getQueryTableAsyncJobResults = exports.getAsyncResultBodyFromJobId = exports.getAsyncResultFromJobId = exports.getFileHandleByIdURL = exports.getActualFileHandleByIdURL = exports.getFileHandleById = exports.getDownloadFromTableRequest = exports.getVersion = exports.doPut = exports.doDelete = exports.doGet = exports.doPost = exports.allowNotFoundError = exports.delay = exports.getRootURL = exports.SYNAPSE_STORAGE_LOCATION_ID = exports.ACCESS_TOKEN_COOKIE_KEY = exports.IS_OUTSIDE_SYNAPSE_ORG = void 0;
4
- exports.listFormDataAsFormAdmin = exports.listFormData = exports.submitFormData = exports.deleteFormData = exports.updateFormData = exports.createFormData = exports.updateFormACL = exports.getFormACL = exports.createFormGroup = exports.consentToOAuth2Request = exports.getAuthenticatedOn = exports.getOAuth2Client = exports.hasUserAuthorizedOAuthClient = exports.getOAuth2RequestDescription = exports.getEvaluationSubmissions = exports.deleteEvaluationRound = exports.updateEvaluationRound = exports.createEvaluationRound = exports.getEvaluationRoundsList = exports.getEvaluationRound = exports.deleteEvaluation = exports.createEvaluation = exports.updateEvaluation = exports.getEvaluation = exports.getEvaluationPermissions = exports.submitToEvaluation = exports.createACL = exports.addFilesToDownloadListV2 = exports.createManifestFromDownloadListV2 = exports.createPackageFromDownloadListV2 = exports.addFileToDownloadListV2 = exports.getFileResult = exports.getFileHandleContent = exports.getFileHandleContentFromID = exports.startMultipartUpload = exports.checkUploadComplete = exports.uploadFile = exports.signOut = exports.detectSSOCode = exports.getPrincipalAliasRequest = exports.getUseUtcTimeFromCookie = exports.getAccessTokenFromCookie = exports.setAccessTokenCookie = exports.getStyleguideStack = exports.isInSynapseExperimentalMode = exports.getPresignedUrlForWikiAttachment = exports.getWikiAttachmentsFromEvaluation = exports.getWikiAttachmentsFromEntity = exports.getWikiPageKeyForAccessRequirement = exports.getWikiPageKeyForEntity = void 0;
5
- exports.registerAccountStep1 = exports.isAliasAvailable = exports.getNotificationEmail = exports.updateEntityJson = exports.getEntityJson = exports.hasAccessToEntity = exports.getValidationSchema = exports.getSchema = exports.getSchemaValidationResults = exports.getSchemaBinding = exports.updateSubmissionStatus = exports.getSubmissionById = exports.cancelDataAccessRequest = exports.submitDataAccessRequest = exports.updateDataAccessRequest = exports.getDataAccessRequestForUpdate = exports.getResearchProject = exports.updateResearchProject = exports.removeItemFromDownloadListV2 = exports.getDownloadListActionsRequired = exports.getDownloadListStatistics = exports.getAvailableFilesToDownload = exports.clearDownloadListV2 = exports.searchEntities = exports.getEntityVersions = exports.getEntityPath = exports.getUserProjects = exports.getMyProjects = exports.deletePersonalAccessToken = exports.getPersonalAccessTokenRecords = exports.createPersonalAccessToken = exports.getTransformSqlWithFacetsRequest = exports.updateTable = exports.deleteDownloadList = exports.deleteDownloadListFiles = exports.getAllOfPaginatedService = exports.getDownloadOrder = exports.getDownloadList = exports.postAccessApproval = exports.getAccessApproval = exports.getAllAccessRequirements = exports.getAccessRequirementStatus = exports.searchAccessRequirements = exports.getAccessRequirementAcl = exports.getAccessRequirementById = exports.getAccessRequirement = exports.getRestrictionInformation = exports.getProjectStatistics = exports.rejectFormData = exports.acceptFormData = void 0;
6
- exports.getProfilePicPreviewPresignedUrl = exports.getApprovedSubmissionInfo = exports.searchAccessSubmission = exports.searchAccessApprovals = exports.forumSearch = exports.getThreadMessageUrl = exports.getThread = exports.getReplyMessageUrl = exports.getReply = exports.updateNotificationEmail = exports.deleteEmail = exports.addEmailAddressStep2 = exports.addEmailAddressStep1 = exports.resetPassword = exports.changePasswordWithToken = exports.changePasswordWithCurrentPassword = exports.createProfileVerificationSubmission = exports.signSynapseTermsOfUse = exports.unbindOAuthProviderToAccount = exports.bindOAuthProviderToAccount = exports.oAuthRegisterAccountStep2 = exports.registerAccountStep2 = void 0;
4
+ exports.updateFormData = exports.createFormData = exports.updateFormACL = exports.getFormACL = exports.createFormGroup = exports.consentToOAuth2Request = exports.getAuthenticatedOn = exports.updateOAuthClient = exports.deleteOAuthClient = exports.createOAuthClient = exports.getOAuth2 = exports.getOAuth2Client = exports.hasUserAuthorizedOAuthClient = exports.getOAuth2RequestDescription = exports.getEvaluationSubmissions = exports.deleteEvaluationRound = exports.updateEvaluationRound = exports.createEvaluationRound = exports.getEvaluationRoundsList = exports.getEvaluationRound = exports.deleteEvaluation = exports.createEvaluation = exports.updateEvaluation = exports.getEvaluation = exports.getEvaluationPermissions = exports.submitToEvaluation = exports.createACL = exports.addFilesToDownloadListV2 = exports.createManifestFromDownloadListV2 = exports.createPackageFromDownloadListV2 = exports.addFileToDownloadListV2 = exports.getFileResult = exports.getFileHandleContent = exports.getFileHandleContentFromID = exports.startMultipartUpload = exports.checkUploadComplete = exports.uploadFile = exports.signOut = exports.detectSSOCode = exports.getPrincipalAliasRequest = exports.getUseUtcTimeFromCookie = exports.getAccessTokenFromCookie = exports.setAccessTokenCookie = exports.getStyleguideStack = exports.isInSynapseExperimentalMode = exports.getPresignedUrlForWikiAttachment = exports.getWikiAttachmentsFromEvaluation = exports.getWikiAttachmentsFromEntity = exports.getWikiPageKeyForAccessRequirement = exports.getWikiPageKeyForEntity = void 0;
5
+ exports.getEntityJson = exports.hasAccessToEntity = exports.getValidationSchema = exports.getSchema = exports.getSchemaValidationResults = exports.getSchemaBinding = exports.updateSubmissionStatus = exports.getSubmissionById = exports.cancelDataAccessRequest = exports.submitDataAccessRequest = exports.updateDataAccessRequest = exports.getDataAccessRequestForUpdate = exports.getResearchProject = exports.updateResearchProject = exports.removeItemFromDownloadListV2 = exports.getDownloadListActionsRequired = exports.getDownloadListStatistics = exports.getAvailableFilesToDownload = exports.clearDownloadListV2 = exports.searchEntities = exports.getEntityVersions = exports.getEntityPath = exports.getUserProjects = exports.getMyProjects = exports.deletePersonalAccessToken = exports.getPersonalAccessTokenRecords = exports.createPersonalAccessToken = exports.getTransformSqlWithFacetsRequest = exports.updateTable = exports.deleteDownloadList = exports.deleteDownloadListFiles = exports.getAllOfPaginatedService = exports.getDownloadOrder = exports.getDownloadList = exports.postAccessApproval = exports.getAccessApproval = exports.getAllAccessRequirements = exports.getAccessRequirementStatus = exports.searchAccessRequirements = exports.getAccessRequirementAcl = exports.getAccessRequirementById = exports.getAccessRequirement = exports.getRestrictionInformation = exports.getProjectStatistics = exports.rejectFormData = exports.acceptFormData = exports.listFormDataAsFormAdmin = exports.listFormData = exports.submitFormData = exports.deleteFormData = void 0;
6
+ exports.purgeFromTrashCan = exports.restoreFromTrashCan = exports.getItemsInTrashCan = exports.getProfilePicPreviewPresignedUrl = exports.getActivityForEntity = exports.getApprovedSubmissionInfo = exports.searchAccessSubmission = exports.searchAccessApprovals = exports.forumSearch = exports.getThreadMessageUrl = exports.getThread = exports.getReplyMessageUrl = exports.getReply = exports.updateNotificationEmail = exports.deleteEmail = exports.addEmailAddressStep2 = exports.addEmailAddressStep1 = exports.resetPassword = exports.changePasswordWithToken = exports.changePasswordWithCurrentPassword = exports.createProfileVerificationSubmission = exports.signSynapseTermsOfUse = exports.unbindOAuthProviderToAccount = exports.bindOAuthProviderToAccount = exports.oAuthRegisterAccountStep2 = exports.registerAccountStep2 = exports.registerAccountStep1 = exports.isAliasAvailable = exports.getNotificationEmail = exports.updateEntityJson = void 0;
7
7
  var tslib_1 = require("tslib");
8
8
  var spark_md5_1 = tslib_1.__importDefault(require("spark-md5"));
9
9
  var universal_cookie_1 = tslib_1.__importDefault(require("universal-cookie"));
@@ -620,12 +620,8 @@ var getEntity = function (accessToken, entityId, versionNumber) {
620
620
  return (0, exports.doGet)(url, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
621
621
  };
622
622
  exports.getEntity = getEntity;
623
- /**
624
- * Get a list of entity headers given by entity ids
625
- * http://rest-docs.synapse.org/rest/GET/entity/type.html
626
- */
627
623
  var getEntityHeadersByIds = function (entityIds, accessToken) {
628
- return (0, exports.doGet)("/repo/v1/entity/type?batch=".concat(entityIds.join(',')), accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
624
+ return (0, exports.getEntityHeaders)(entityIds.map(function (id) { return ({ targetId: id }); }), accessToken);
629
625
  };
630
626
  exports.getEntityHeadersByIds = getEntityHeadersByIds;
631
627
  /**
@@ -853,7 +849,7 @@ exports.setAccessTokenCookie = setAccessTokenCookie;
853
849
  var getAccessTokenFromCookie = function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
854
850
  return tslib_1.__generator(this, function (_a) {
855
851
  if (exports.IS_OUTSIDE_SYNAPSE_ORG) {
856
- return [2 /*return*/, cookies.get(exports.ACCESS_TOKEN_COOKIE_KEY)];
852
+ return [2 /*return*/, Promise.resolve(cookies.get(exports.ACCESS_TOKEN_COOKIE_KEY))];
857
853
  }
858
854
  return [2 /*return*/, (0, exports.doGet)('Portal/sessioncookie?validate=true', undefined, 'include', getEndpoint_1.BackendDestinationEnum.PORTAL_ENDPOINT)];
859
855
  });
@@ -1311,7 +1307,7 @@ var getEvaluation = function (evalId, accessToken) {
1311
1307
  // without an evalId is a valid API that returns a different API response
1312
1308
  return Promise.reject(new Error('evalId is empty'));
1313
1309
  }
1314
- return (0, exports.doGet)("/repo/v1/evaluation/".concat(evalId), accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1310
+ return (0, exports.doGet)((0, APIConstants_1.EVALUATION_BY_ID)(evalId), accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1315
1311
  };
1316
1312
  exports.getEvaluation = getEvaluation;
1317
1313
  /**
@@ -1324,7 +1320,7 @@ var updateEvaluation = function (evaluation, accessToken) {
1324
1320
  // without an evalId is a valid API that returns a different API response
1325
1321
  return Promise.reject(new Error('evaluation does not have an ID'));
1326
1322
  }
1327
- return (0, exports.doPut)("/repo/v1/evaluation/".concat(evaluation.id), evaluation, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1323
+ return (0, exports.doPut)((0, APIConstants_1.EVALUATION_BY_ID)(evaluation.id), evaluation, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1328
1324
  };
1329
1325
  exports.updateEvaluation = updateEvaluation;
1330
1326
  /**
@@ -1332,7 +1328,7 @@ exports.updateEvaluation = updateEvaluation;
1332
1328
  * https://rest-docs.synapse.org/rest/POST/evaluation.html
1333
1329
  */
1334
1330
  var createEvaluation = function (evaluation, accessToken) {
1335
- return (0, exports.doPost)('/repo/v1/evaluation/', evaluation, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1331
+ return (0, exports.doPost)(APIConstants_1.EVALUATION, evaluation, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1336
1332
  };
1337
1333
  exports.createEvaluation = createEvaluation;
1338
1334
  /**
@@ -1415,6 +1411,41 @@ var getOAuth2Client = function (clientId) {
1415
1411
  return (0, exports.doGet)("/auth/v1/oauth2/client/".concat(clientId), undefined, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1416
1412
  };
1417
1413
  exports.getOAuth2Client = getOAuth2Client;
1414
+ /**
1415
+ List the OAuth 2.0 clients created by the current user.
1416
+ */
1417
+ var getOAuth2 = function (accessToken, nextPageToken) {
1418
+ return (0, exports.doGet)("/auth/v1/oauth2/client".concat(nextPageToken ? '?nextPageToken=' + nextPageToken : ''), accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1419
+ };
1420
+ exports.getOAuth2 = getOAuth2;
1421
+ /**
1422
+ Create an OAuth 2.0 client.
1423
+ Note: The client name must be unique.
1424
+ Note: After creating the client one must also set the client secret and have their client verified
1425
+ https://rest-docs.synapse.org/rest/POST/oauth2/client.html
1426
+ */
1427
+ var createOAuthClient = function (request, accessToken) {
1428
+ return (0, exports.doPost)('/auth/v1/oauth2/client', request, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1429
+ };
1430
+ exports.createOAuthClient = createOAuthClient;
1431
+ /**
1432
+ Delete OAuth 2.0 client
1433
+ https://rest-docs.synapse.org/rest/DELETE/oauth2/client/id.html
1434
+ */
1435
+ var deleteOAuthClient = function (id, accessToken) {
1436
+ return (0, exports.doDelete)("/auth/v1/oauth2/client/".concat(id), accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1437
+ };
1438
+ exports.deleteOAuthClient = deleteOAuthClient;
1439
+ /**
1440
+ Update the metadata for an existing OAuth 2.0 client.
1441
+ Note: Only the creator of a client can update it.
1442
+ Note: Changing the redirect URIs will revert the 'verified' status of the client, necessitating re-verification.
1443
+ https://repo-prod.prod.sagebase.org/auth/v1/oauth2/client/{id}
1444
+ */
1445
+ var updateOAuthClient = function (request, accessToken) {
1446
+ return (0, exports.doPut)("/auth/v1/oauth2/client/".concat(request.client_id), request, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
1447
+ };
1448
+ exports.updateOAuthClient = updateOAuthClient;
1418
1449
  /**
1419
1450
  * Get OAuth2 Client information (available to the public)
1420
1451
  */
@@ -2235,9 +2266,17 @@ exports.searchAccessSubmission = searchAccessSubmission;
2235
2266
  * http://rest-docs.synapse.org/rest/POST/accessRequirement/requirementId/approvedSubmissionInfo.html
2236
2267
  */
2237
2268
  var getApprovedSubmissionInfo = function (submissionInfoPageRequest, accessToken) {
2238
- return (0, exports.doPost)("/repo/v1/accessRequirement/".concat(submissionInfoPageRequest.accessRequirementId, "/approvedSubmissionInfo"), submissionInfoPageRequest, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
2269
+ return (0, exports.doPost)((0, APIConstants_1.APPROVED_SUBMISSION_INFO)(submissionInfoPageRequest.accessRequirementId), submissionInfoPageRequest, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
2239
2270
  };
2240
2271
  exports.getApprovedSubmissionInfo = getApprovedSubmissionInfo;
2272
+ /**
2273
+ * http://rest-docs.synapse.org/rest/GET/activity/id/generated.html
2274
+ */
2275
+ var getActivityForEntity = function (entityId, versionNumber, accessToken) {
2276
+ var url = (0, APIConstants_1.ACTIVITY_FOR_ENTITY)(entityId, versionNumber ? "".concat(versionNumber) : undefined);
2277
+ return (0, exports.doGet)(url, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
2278
+ };
2279
+ exports.getActivityForEntity = getActivityForEntity;
2241
2280
  /**
2242
2281
  * Returns the presigned URL for a user's profile pic. Note that the presigned URL
2243
2282
  * expires after a short time, so it should be used immediately.
@@ -2251,4 +2290,18 @@ function getProfilePicPreviewPresignedUrl(userId) {
2251
2290
  });
2252
2291
  }
2253
2292
  exports.getProfilePicPreviewPresignedUrl = getProfilePicPreviewPresignedUrl;
2293
+ function getItemsInTrashCan(accessToken, offset, limit) {
2294
+ if (offset === void 0) { offset = 0; }
2295
+ if (limit === void 0) { limit = 25; }
2296
+ return (0, exports.doGet)(APIConstants_1.TRASHCAN_VIEW + "?offset=".concat(offset, "&limit=").concat(limit), accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
2297
+ }
2298
+ exports.getItemsInTrashCan = getItemsInTrashCan;
2299
+ function restoreFromTrashCan(entityId, accessToken) {
2300
+ return (0, exports.doPut)((0, APIConstants_1.TRASHCAN_RESTORE)(entityId), undefined, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
2301
+ }
2302
+ exports.restoreFromTrashCan = restoreFromTrashCan;
2303
+ function purgeFromTrashCan(entityId, accessToken) {
2304
+ return (0, exports.doPut)((0, APIConstants_1.TRASHCAN_PURGE)(entityId), undefined, accessToken, undefined, getEndpoint_1.BackendDestinationEnum.REPO_ENDPOINT);
2305
+ }
2306
+ exports.purgeFromTrashCan = purgeFromTrashCan;
2254
2307
  //# sourceMappingURL=SynapseClient.js.map