feat: add pinStatus api
This commit is contained in:
parent
645df0c8d0
commit
f77af25b84
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue