synapse-react-client 2.1.19 → 2.1.22
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/containers/ChangePassword.d.ts +3 -0
- package/dist/containers/ChangePassword.js +88 -0
- package/dist/containers/ChangePassword.js.map +1 -0
- package/dist/containers/FileUpload.d.ts +1 -1
- package/dist/containers/FileUpload.js.map +1 -1
- package/dist/containers/FluidModal.d.ts +2 -0
- package/dist/containers/FluidModal.js +6 -1
- package/dist/containers/FluidModal.js.map +1 -1
- package/dist/containers/LoadingScreen.d.ts +7 -1
- package/dist/containers/LoadingScreen.js +15 -4
- package/dist/containers/LoadingScreen.js.map +1 -1
- package/dist/containers/access_requirement_list/managedACTAccess/RequestDataAccessStep2.d.ts +1 -7
- package/dist/containers/access_requirement_list/managedACTAccess/RequestDataAccessStep2.js.map +1 -1
- package/dist/containers/entity_finder/EntityFinderModal.d.ts +2 -0
- package/dist/containers/entity_finder/EntityFinderModal.js +1 -1
- package/dist/containers/entity_finder/EntityFinderModal.js.map +1 -1
- package/dist/containers/entity_finder/details/configurations/EntityChildrenDetails.js +6 -4
- package/dist/containers/entity_finder/details/configurations/EntityChildrenDetails.js.map +1 -1
- package/dist/containers/entity_finder/details/view/DetailsView.d.ts +5 -1
- package/dist/containers/entity_finder/details/view/DetailsView.js +9 -2
- package/dist/containers/entity_finder/details/view/DetailsView.js.map +1 -1
- package/dist/containers/table/datasets/DatasetItemsEditor.js +4 -0
- package/dist/containers/table/datasets/DatasetItemsEditor.js.map +1 -1
- package/dist/containers/widgets/facet-nav/FacetNav.js +3 -1
- package/dist/containers/widgets/facet-nav/FacetNav.js.map +1 -1
- package/dist/containers/widgets/query-filter/QueryFilter.js +4 -0
- package/dist/containers/widgets/query-filter/QueryFilter.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/style/abstracts/_variables.scss +14 -0
- package/dist/style/components/_bar-loader.scss +11 -2
- package/dist/style/components/_spinner.scss +2 -2
- package/dist/style/main.css +19 -2
- package/dist/umd/synapse-react-client.development.css +44 -2
- package/dist/umd/synapse-react-client.development.css.map +3 -3
- package/dist/umd/synapse-react-client.development.js +246 -89
- package/dist/umd/synapse-react-client.development.js.map +3 -3
- package/dist/umd/synapse-react-client.production.min.css +1 -1
- package/dist/umd/synapse-react-client.production.min.js +74 -74
- package/dist/umd.index.d.ts +1 -0
- package/dist/umd.index.js +2 -0
- package/dist/umd.index.js.map +1 -1
- package/dist/utils/APIConstants.d.ts +2 -0
- package/dist/utils/APIConstants.js +3 -1
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/SynapseClient.d.ts +19 -3
- package/dist/utils/SynapseClient.js +53 -7
- package/dist/utils/SynapseClient.js.map +1 -1
- package/dist/utils/functions/EntityTypeUtils.js +8 -1
- package/dist/utils/functions/EntityTypeUtils.js.map +1 -1
- package/dist/utils/functions/queryUtils.d.ts +1 -0
- package/dist/utils/functions/queryUtils.js +7 -1
- package/dist/utils/functions/queryUtils.js.map +1 -1
- package/dist/utils/hooks/SynapseAPI/useGetEntityChildren.js +3 -3
- package/dist/utils/hooks/SynapseAPI/useGetEntityChildren.js.map +1 -1
- package/dist/utils/synapseTypes/ChangePasswordRequests.d.ts +25 -0
- package/dist/utils/synapseTypes/ChangePasswordRequests.js +3 -0
- package/dist/utils/synapseTypes/ChangePasswordRequests.js.map +1 -0
- package/dist/utils/synapseTypes/FileUploadComplete.d.ts +6 -0
- package/dist/utils/synapseTypes/VerificationSubmission.d.ts +22 -5
- package/dist/utils/synapseTypes/VerificationSubmission.js +8 -0
- package/dist/utils/synapseTypes/VerificationSubmission.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,18 +7,18 @@ var __1 = require("../..");
|
|
|
7
7
|
var SynapseContext_1 = require("../../SynapseContext");
|
|
8
8
|
function useGetEntityChildren(request, options) {
|
|
9
9
|
var accessToken = (0, SynapseContext_1.useSynapseContext)().accessToken;
|
|
10
|
-
return (0, react_query_1.useQuery)([
|
|
10
|
+
return (0, react_query_1.useQuery)(['entitychildren', request], function () { return __1.SynapseClient.getEntityChildren(request, accessToken); }, options);
|
|
11
11
|
}
|
|
12
12
|
exports.useGetEntityChildren = useGetEntityChildren;
|
|
13
13
|
function useGetEntityChildrenInfinite(request, options) {
|
|
14
14
|
var _this = this;
|
|
15
15
|
var accessToken = (0, SynapseContext_1.useSynapseContext)().accessToken;
|
|
16
|
-
return (0, react_query_1.useInfiniteQuery)([
|
|
16
|
+
return (0, react_query_1.useInfiniteQuery)(['entitychildren', request], function (context) { return (0, tslib_1.__awaiter)(_this, void 0, void 0, function () {
|
|
17
17
|
return (0, tslib_1.__generator)(this, function (_a) {
|
|
18
18
|
switch (_a.label) {
|
|
19
19
|
case 0: return [4 /*yield*/, __1.SynapseClient.getEntityChildren((0, tslib_1.__assign)((0, tslib_1.__assign)({}, request), { includeTotalChildCount: context.pageParam
|
|
20
20
|
? false
|
|
21
|
-
: request.includeTotalChildCount, nextPageToken: context.pageParam }), accessToken)];
|
|
21
|
+
: request.includeTotalChildCount, nextPageToken: context.pageParam }), accessToken, context.signal)];
|
|
22
22
|
case 1: return [2 /*return*/, _a.sent()];
|
|
23
23
|
}
|
|
24
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetEntityChildren.js","sourceRoot":"","sources":["../../../../src/lib/utils/hooks/SynapseAPI/useGetEntityChildren.ts"],"names":[],"mappings":";;;;AAAA,2CAOoB;AACpB,2BAAqC;AAErC,uDAAwD;AAMxD,SAAgB,oBAAoB,CAClC,OAA8B,EAC9B,OAIC;IAEO,IAAA,WAAW,GAAK,IAAA,kCAAiB,GAAE,YAAxB,CAAwB;IAC3C,OAAO,IAAA,sBAAQ,EACb,CAAC,
|
|
1
|
+
{"version":3,"file":"useGetEntityChildren.js","sourceRoot":"","sources":["../../../../src/lib/utils/hooks/SynapseAPI/useGetEntityChildren.ts"],"names":[],"mappings":";;;;AAAA,2CAOoB;AACpB,2BAAqC;AAErC,uDAAwD;AAMxD,SAAgB,oBAAoB,CAClC,OAA8B,EAC9B,OAIC;IAEO,IAAA,WAAW,GAAK,IAAA,kCAAiB,GAAE,YAAxB,CAAwB;IAC3C,OAAO,IAAA,sBAAQ,EACb,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAC3B,cAAM,OAAA,iBAAa,CAAC,iBAAiB,CAAC,OAAO,EAAE,WAAW,CAAC,EAArD,CAAqD,EAC3D,OAAO,CACR,CAAA;AACH,CAAC;AAdD,oDAcC;AAED,SAAgB,4BAA4B,CAC1C,OAA8B,EAC9B,OAIC;IANH,iBA6BC;IArBS,IAAA,WAAW,GAAK,IAAA,kCAAiB,GAAE,YAAxB,CAAwB;IAC3C,OAAO,IAAA,8BAAgB,EACrB,CAAC,gBAAgB,EAAE,OAAO,CAAC,EAC3B,UAAO,OAA+C;;;wBAC7C,qBAAM,iBAAa,CAAC,iBAAiB,iDAErC,OAAO,KACV,sBAAsB,EAAE,OAAO,CAAC,SAAS;4BACvC,CAAC,CAAC,KAAK;4BACP,CAAC,CAAC,OAAO,CAAC,sBAAsB,EAClC,aAAa,EAAE,OAAO,CAAC,SAAS,KAElC,WAAW,EACX,OAAO,CAAC,MAAM,CACf,EAAA;wBAVD,sBAAO,SAUN,EAAA;;;SACF,kDAEI,OAAO,KACV,gBAAgB,EAAE,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,aAAa,EAAlB,CAAkB,IAE/C,CAAA;AACH,CAAC;AA7BD,oEA6BC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare type ChangePasswordInterface = {
|
|
2
|
+
newPassword: string;
|
|
3
|
+
concreteType: string;
|
|
4
|
+
};
|
|
5
|
+
export declare type ChangePasswordWithCurrentPassword = {
|
|
6
|
+
newPassword: string;
|
|
7
|
+
concreteType: string;
|
|
8
|
+
username: string;
|
|
9
|
+
currentPassword: string;
|
|
10
|
+
authenticationReceipt?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare type ChangePasswordWithToken = {
|
|
13
|
+
newPassword: string;
|
|
14
|
+
concreteType: string;
|
|
15
|
+
passwordChangeToken: PasswordResetSignedToken;
|
|
16
|
+
};
|
|
17
|
+
export declare type PasswordResetSignedToken = {
|
|
18
|
+
concreteType: string;
|
|
19
|
+
hmac: string;
|
|
20
|
+
version: number;
|
|
21
|
+
expiresOn: string;
|
|
22
|
+
createdOn: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
validity: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangePasswordRequests.js","sourceRoot":"","sources":["../../../src/lib/utils/synapseTypes/ChangePasswordRequests.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
export declare type VerificationSubmission = {
|
|
2
|
-
id
|
|
3
|
-
createdOn
|
|
4
|
-
createdBy
|
|
2
|
+
id?: string;
|
|
3
|
+
createdOn?: string;
|
|
4
|
+
createdBy?: string;
|
|
5
5
|
firstName: string;
|
|
6
6
|
lastName: string;
|
|
7
7
|
emails: string[];
|
|
8
8
|
location: string;
|
|
9
9
|
company: string;
|
|
10
10
|
orcid: string;
|
|
11
|
-
stateHistory
|
|
12
|
-
attachments:
|
|
11
|
+
stateHistory?: VerificationState[];
|
|
12
|
+
attachments: AttachmentMetadata[];
|
|
13
|
+
};
|
|
14
|
+
export declare type VerificationState = {
|
|
15
|
+
createdOn: string;
|
|
16
|
+
createdBy: string;
|
|
17
|
+
state: VerificationStateEnum;
|
|
18
|
+
reason?: string;
|
|
19
|
+
notes?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare enum VerificationStateEnum {
|
|
22
|
+
SUBMITTED = "SUBMITTED",
|
|
23
|
+
APPROVED = "APPROVED",
|
|
24
|
+
REJECTED = "REJECTED",
|
|
25
|
+
SUSPENDED = "SUSPENDED"
|
|
26
|
+
}
|
|
27
|
+
export declare type AttachmentMetadata = {
|
|
28
|
+
fileName: string;
|
|
29
|
+
id: string;
|
|
13
30
|
};
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VerificationStateEnum = void 0;
|
|
4
|
+
var VerificationStateEnum;
|
|
5
|
+
(function (VerificationStateEnum) {
|
|
6
|
+
VerificationStateEnum["SUBMITTED"] = "SUBMITTED";
|
|
7
|
+
VerificationStateEnum["APPROVED"] = "APPROVED";
|
|
8
|
+
VerificationStateEnum["REJECTED"] = "REJECTED";
|
|
9
|
+
VerificationStateEnum["SUSPENDED"] = "SUSPENDED";
|
|
10
|
+
})(VerificationStateEnum = exports.VerificationStateEnum || (exports.VerificationStateEnum = {}));
|
|
3
11
|
//# sourceMappingURL=VerificationSubmission.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerificationSubmission.js","sourceRoot":"","sources":["../../../src/lib/utils/synapseTypes/VerificationSubmission.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"VerificationSubmission.js","sourceRoot":"","sources":["../../../src/lib/utils/synapseTypes/VerificationSubmission.ts"],"names":[],"mappings":";;;AAsBA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC/B,gDAAuB,CAAA;IACvB,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,gDAAuB,CAAA;AACzB,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
|