synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
75 lines (74 loc) • 2.54 kB
JavaScript
import { SYNAPSE_STORAGE_LOCATION_ID as t } from "../synapse-client/SynapseClient.js";
import "@sage-bionetworks/synapse-client/generated/models/ErrorResponseCode";
import "@sage-bionetworks/synapse-client/generated/models/TwoFactorAuthErrorResponse";
import "@sage-bionetworks/synapse-client/util/SynapseClientError";
import "@sage-bionetworks/synapse-types";
import "../utils/functions/EntityTypeUtils.js";
import "../utils/SynapseConstants.js";
import "lodash-es";
import "@sage-bionetworks/synapse-client/util/synapseClientFetch";
import { UploadType as e } from "@sage-bionetworks/synapse-client";
const a = 1111, r = 2222, i = 3333, s = 4444, o = {
storageLocationId: t,
uploadType: e.S3,
banner: "",
concreteType: "org.sagebionetworks.repo.model.file.S3UploadDestination",
projectStorageLocationUsage: {
maxAllowedFileBytes: 1024 * 1024 * 1024 * 100,
sumFileBytes: 0,
storageLocationId: t,
isOverLimit: !1
}
}, n = {
...o,
baseKey: "exampleS3BaseKey",
stsEnabled: !0,
concreteType: "org.sagebionetworks.repo.model.file.S3UploadDestination"
}, l = {
...n,
storageLocationId: a,
endpointUrl: "https://my-endpoint.fake",
bucket: "myExternalS3Bucket",
concreteType: "org.sagebionetworks.repo.model.file.ExternalS3UploadDestination"
}, p = {
...o,
baseKey: "exampleGCPBaseKey",
storageLocationId: r,
uploadType: e.GOOGLECLOUDSTORAGE,
bucket: "myExternalGCPBucket",
concreteType: "org.sagebionetworks.repo.model.file.ExternalGoogleCloudUploadDestination"
}, c = {
...o,
storageLocationId: i,
uploadType: e.HTTPS,
url: "https://myurl.fake",
concreteType: "org.sagebionetworks.repo.model.file.ExternalUploadDestination"
}, d = {
...o,
storageLocationId: s,
uploadType: e.HTTPS,
endpointUrl: "https://my-endpoint.fake",
bucket: "myExternalObjectStoreBucket",
keyPrefixUUID: "uuidKeyPrefix",
concreteType: "org.sagebionetworks.repo.model.file.ExternalObjectStoreUploadDestination"
}, L = [
n,
l,
p,
c,
d
];
export {
r as MOCK_EXTERNAL_GOOGLE_CLOUD_STORAGE_LOCATION_ID,
s as MOCK_EXTERNAL_OBJECT_STORE_STORAGE_LOCATION_ID,
a as MOCK_EXTERNAL_S3_STORAGE_LOCATION_ID,
i as MOCK_EXTERNAL_STORAGE_LOCATION_ID,
p as mockExternalGoogleCloudUploadDestination,
d as mockExternalObjectStoreUploadDestination,
l as mockExternalS3UploadDestination,
c as mockExternalUploadDestination,
n as mockS3UploadDestination,
o as mockSynapseStorageUploadDestination,
L as mockUploadDestinations
};
//# sourceMappingURL=mock_upload_destination.js.map