-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Rename and cleanup api docs gen
- Loading branch information
Showing
16 changed files
with
395 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
.turbo | ||
node_modules | ||
/.env* | ||
temp | ||
/docs | ||
dist | ||
/packages/*/etc | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
## API Report File for "@lukso/data-provider-base" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public | ||
export interface AssetBuffer { | ||
buffer: Buffer; | ||
mimeType: string; | ||
} | ||
|
||
// @public | ||
export class AuthenticatedFormDataUploader extends BaseFormDataUploader { | ||
// (undocumented) | ||
getRequestOptions(dataContent: FormData, meta?: FormDataPostHeaders): Promise<FormDataRequestOptions>; | ||
getToken(): Promise<string>; | ||
// @internal (undocumented) | ||
resolveUrl(result: any): string; | ||
} | ||
|
||
// @public | ||
export class BaseFormDataUploader { | ||
// (undocumented) | ||
addMetadata(dataContent: FormData, meta?: FormDataPostHeaders): Promise<void>; | ||
getEndpoint(): string; | ||
getPostEndpoint(): string; | ||
getRequestOptions(dataContent: FormData, meta?: FormDataPostHeaders): Promise<FormDataRequestOptions>; | ||
getToken(): Promise<string>; | ||
resolveUrl(result: any): string; | ||
// @internal | ||
upload(data: any, meta?: FormDataPostHeaders): Promise<string>; | ||
// @internal | ||
uploadFormData(requestOptions: FormDataRequestOptions, dataContent: FormData): Promise<any>; | ||
// (undocumented) | ||
protected wrapStream(data: any): Promise<any>; | ||
} | ||
|
||
// @public | ||
export type FormDataPostHeaders = Record<string, string | number | any>; | ||
|
||
// @public | ||
export type FormDataRequestOptions = { | ||
maxContentLength?: number; | ||
maxBodyLength?: number; | ||
withCredentials?: boolean; | ||
headers?: FormDataPostHeaders; | ||
[key: string]: any; | ||
}; | ||
|
||
// Warning: (ae-internal-missing-underscore) The name "handleError" should be prefixed with an underscore because the declaration is marked as @internal | ||
// | ||
// @internal | ||
export const handleError: (error: any) => any; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## API Report File for "@lukso/data-provider-ipfs-http-client" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { BaseFormDataUploader } from '@lukso/data-provider-base'; | ||
import { FormDataPostHeaders } from '@lukso/data-provider-base'; | ||
import { FormDataRequestOptions } from '@lukso/data-provider-base'; | ||
|
||
// @public | ||
class IPFSHttpClientUploader extends BaseFormDataUploader { | ||
constructor(gateway: string, options?: FormDataRequestOptions | undefined); | ||
// (undocumented) | ||
getEndpoint(): string; | ||
// (undocumented) | ||
getRequestOptions(dataContent: FormData, meta?: FormDataPostHeaders): Promise<FormDataRequestOptions>; | ||
// (undocumented) | ||
resolveUrl(result: any): string; | ||
} | ||
export { IPFSHttpClientUploader } | ||
export default IPFSHttpClientUploader; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
## API Report File for "@lukso/data-provider-pinata" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { BaseFormDataUploader } from '@lukso/data-provider-base'; | ||
import { FormDataPostHeaders } from '@lukso/data-provider-base'; | ||
import { FormDataRequestOptions } from '@lukso/data-provider-base'; | ||
import { PinataConfig } from '@pinata/sdk'; | ||
|
||
// Warning: (ae-internal-missing-underscore) The name "createConfigForAxiosHeaders" should be prefixed with an underscore because the declaration is marked as @internal | ||
// | ||
// @internal | ||
export function createConfigForAxiosHeaders(config: PinataConfig): { | ||
withCredentials: boolean; | ||
headers: { | ||
pinata_api_key: string; | ||
pinata_secret_api_key: string; | ||
Authorization?: undefined; | ||
}; | ||
} | { | ||
headers: { | ||
Authorization: string; | ||
pinata_api_key?: undefined; | ||
pinata_secret_api_key?: undefined; | ||
}; | ||
withCredentials?: undefined; | ||
}; | ||
|
||
// Warning: (ae-internal-missing-underscore) The name "createConfigForAxiosHeadersWithFormData" should be prefixed with an underscore because the declaration is marked as @internal | ||
// | ||
// @internal | ||
export function createConfigForAxiosHeadersWithFormData(config: PinataConfig): { | ||
maxContentLength: number; | ||
maxBodyLength: number; | ||
withCredentials: boolean; | ||
headers: { | ||
pinata_api_key: string; | ||
pinata_secret_api_key: string; | ||
Authorization?: undefined; | ||
}; | ||
} | { | ||
maxContentLength: number; | ||
maxBodyLength: number; | ||
headers: { | ||
Authorization: string; | ||
pinata_api_key?: undefined; | ||
pinata_secret_api_key?: undefined; | ||
}; | ||
withCredentials?: undefined; | ||
}; | ||
|
||
// @public (undocumented) | ||
export const ERROR_NO_CREDENTIALS_PROVIDED = "No credentials provided! Please provide your pinata api key and pinata secret api key or your pinata JWT key as an argument when you start this script"; | ||
|
||
// @public | ||
class PinataUploader extends BaseFormDataUploader { | ||
constructor(pinataConfig: PinataConfig); | ||
// (undocumented) | ||
addMetadata(dataContent: FormData, meta?: FormDataPostHeaders): Promise<void>; | ||
// (undocumented) | ||
getEndpoint(): string; | ||
// (undocumented) | ||
getRequestOptions(_dataContent: FormData, meta?: FormDataPostHeaders): Promise<FormDataRequestOptions>; | ||
// (undocumented) | ||
resolveUrl(result: any): string; | ||
} | ||
export { PinataUploader } | ||
export default PinataUploader; | ||
|
||
// @public | ||
export function validateMetadata(metadata: any): void; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## API Report File for "@lukso/data-provider-urlresolver" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public | ||
export class UrlConverter { | ||
constructor(destination: string | URL, match?: RegExp | string); | ||
// (undocumented) | ||
protected destination: string; | ||
// (undocumented) | ||
protected match?: RegExp | string; | ||
// (undocumented) | ||
resolveUrl(match: RegExp | string, url: string): string; | ||
} | ||
|
||
// @public | ||
class UrlResolver { | ||
constructor(converters: Array<[string | RegExp, UrlConverter | string]>); | ||
resolveUrl(url: string): string; | ||
} | ||
export { UrlResolver } | ||
export default UrlResolver; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
## API Report File for "@lukso/data-provider-base" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
// @public | ||
export interface AssetBuffer { | ||
buffer: Buffer; | ||
mimeType: string; | ||
} | ||
|
||
// @public | ||
export class AuthenticatedFormDataUploader extends BaseFormDataUploader { | ||
// (undocumented) | ||
getRequestOptions(dataContent: FormData, meta?: FormDataPostHeaders): Promise<FormDataRequestOptions>; | ||
getToken(): Promise<string>; | ||
// @internal (undocumented) | ||
resolveUrl(result: any): string; | ||
} | ||
|
||
// @public | ||
export class BaseFormDataUploader { | ||
// (undocumented) | ||
addMetadata(dataContent: FormData, meta?: FormDataPostHeaders): Promise<void>; | ||
getEndpoint(): string; | ||
getPostEndpoint(): string; | ||
getRequestOptions(dataContent: FormData, meta?: FormDataPostHeaders): Promise<FormDataRequestOptions>; | ||
getToken(): Promise<string>; | ||
resolveUrl(result: any): string; | ||
// @internal | ||
upload(data: any, meta?: FormDataPostHeaders): Promise<string>; | ||
// @internal | ||
uploadFormData(requestOptions: FormDataRequestOptions, dataContent: FormData): Promise<any>; | ||
// (undocumented) | ||
protected wrapStream(data: any): Promise<any>; | ||
} | ||
|
||
// @public | ||
export type FormDataPostHeaders = Record<string, string | number | any>; | ||
|
||
// @public | ||
export type FormDataRequestOptions = { | ||
maxContentLength?: number; | ||
maxBodyLength?: number; | ||
withCredentials?: boolean; | ||
headers?: FormDataPostHeaders; | ||
[key: string]: any; | ||
}; | ||
|
||
// Warning: (ae-internal-missing-underscore) The name "handleError" should be prefixed with an underscore because the declaration is marked as @internal | ||
// | ||
// @internal | ||
export const handleError: (error: any) => any; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
packages/data-provider-ipfs-http-client/etc/data-provider-ipfs-http-client.api.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## API Report File for "@lukso/data-provider-ipfs-http-client" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { BaseFormDataUploader } from '@lukso/data-provider-base'; | ||
import { FormDataPostHeaders } from '@lukso/data-provider-base'; | ||
import { FormDataRequestOptions } from '@lukso/data-provider-base'; | ||
|
||
// @public | ||
class IPFSHttpClientUploader extends BaseFormDataUploader { | ||
constructor(gateway: string, options?: FormDataRequestOptions | undefined); | ||
// (undocumented) | ||
getEndpoint(): string; | ||
// (undocumented) | ||
getRequestOptions(dataContent: FormData, meta?: FormDataPostHeaders): Promise<FormDataRequestOptions>; | ||
// (undocumented) | ||
resolveUrl(result: any): string; | ||
} | ||
export { IPFSHttpClientUploader } | ||
export default IPFSHttpClientUploader; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
Oops, something went wrong.