Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/poor-wolves-ask.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@fleek-platform/sdk": major
---

Remove Fleek functions SDK, remove Fleek storage SDK
18 changes: 0 additions & 18 deletions src/FleekSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { EnvNotSetError } from '@fleek-platform/errors';
import { ApplicationsClient } from './clients/applications';
import { DomainsClient } from './clients/domains';
import { EnsClient } from './clients/ens';
import { FunctionsClient } from './clients/functions';
import { IpfsClient } from './clients/ipfs';
import { IpnsClient } from './clients/ipns';
import { PrivateGatewayClient } from './clients/privateGateway';
Expand Down Expand Up @@ -51,18 +50,12 @@ export class FleekSdk {
private graphqlServiceApiUrl: string;

private ipfsClient?: IpfsClient;
private ipfsStorageApiUrl: string;
private functionsClient?: FunctionsClient;

constructor({
graphqlServiceApiUrl = getDefined('SDK__GRAPHQL_API_URL'),
ipfsStorageApiUrl = getDefined('SDK__IPFS__STORAGE_API_URL'),
uploadProxyApiUrl = getDefined('SDK__UPLOAD_PROXY_API_URL'),
accessTokenService,
}: FleekSdkOptions) {
if (!ipfsStorageApiUrl) {
throw new EnvNotSetError('SDK__IPFS__STORAGE_API_URL');
}

if (!uploadProxyApiUrl) {
throw new EnvNotSetError('SDK__UPLOAD_PROXY_API_URL');
Expand All @@ -87,7 +80,6 @@ export class FleekSdk {
});

this.graphqlServiceApiUrl = graphqlServiceApiUrl;
this.ipfsStorageApiUrl = ipfsStorageApiUrl;
this.uploadProxyApiUrl = uploadProxyApiUrl;

this.uploadProxyClient = new UploadProxyClient({
Expand Down Expand Up @@ -202,16 +194,6 @@ export class FleekSdk {
return this.storageClient;
};

public functions = (): FunctionsClient => {
if (!this.functionsClient) {
this.functionsClient = new FunctionsClient({
graphqlClient: this.graphqlClient,
});
}

return this.functionsClient;
};

private getAuthenticationHeaders = async () => {
try {
const accessToken = await this.accessTokenService.getAccessToken();
Expand Down
163 changes: 0 additions & 163 deletions src/clients/functions.test.ts

This file was deleted.

Loading