feat: add pinStatus api

This commit is contained in:
Derrick Hammer 2024-03-22 18:12:07 -04:00
parent 645df0c8d0
commit f77af25b84
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 11 additions and 1 deletions

View File

@ -22,7 +22,7 @@ import {
getS5AccountPins, getS5AccountPins,
getS5BlobCid, getS5BlobCid,
getS5DownloadCid, getS5DownloadCid,
getS5MetadataCid, getS5MetadataCid, getS5PinCidStatus,
getS5Registry, postS5PinCid, getS5Registry, postS5PinCid,
postS5Registry, postS5Registry,
postS5Upload, postS5Upload,
@ -748,4 +748,14 @@ export class S5Client {
await deleteS5DeleteCid(cid, config); await deleteS5DeleteCid(cid, config);
} }
public async pinStatus(cid: string, customOptions: CustomPinOptions = {}) {
const config = optionsToConfig(
this,
DEFAULT_PIN_OPTIONS,
customOptions,
);
return await getS5PinCidStatus(cid, config);
}
} }