Add the new /data/list.ts file which adds the new listPaginated method, and implement the call within /data/index.ts.
Add new list.test.ts files for unit tests and integration tests covering the list endpoint's expected behavior.
Bonus:
Update generateRecords test-helper to accept an optional prefix for more control over record ID values, swap to an object argument for more flexibility since it's a little overloaded.
Type of Change
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
[ ] Infrastructure change (CI configs, etc)
[ ] Non-code change (docs, etc)
[ ] None of the above: (explain here)
Test Plan
Verify unit tests and integration tests are passing in CI.
Pull this branch down to manually test using the repl:
Problem
There's a new data plane API for listing record IDs by prefix with pagination that is currently not supported in the TypeScript SDK.
Documentation: https://docs.pinecone.io/docs/get-record-ids
Solution
/data/list.ts
file which adds the newlistPaginated
method, and implement the call within/data/index.ts
.list.test.ts
files for unit tests and integration tests covering the list endpoint's expected behavior.Bonus:
generateRecords
test-helper to accept an optionalprefix
for more control over record ID values, swap to an object argument for more flexibility since it's a little overloaded.Type of Change
Test Plan
Verify unit tests and integration tests are passing in CI.
Pull this branch down to manually test using the repl:
Testing
listPaginated
: