@vansite/ts-sharetribe-flex-sdk 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ const sdk = new SharetribeSdk({ clientId: "your-client-id" });
|
|
|
35
35
|
|
|
36
36
|
const { data } = await sdk.listings.query({
|
|
37
37
|
keywords: "yoga",
|
|
38
|
-
price:
|
|
38
|
+
price: "1000,10000", // range "min,max" in minor units (cents)
|
|
39
39
|
include: ["author", "images"],
|
|
40
40
|
});
|
|
41
41
|
|
|
@@ -99,6 +99,17 @@ Published in three formats (resolved automatically via the `exports` field):
|
|
|
99
99
|
| CommonJS | `dist/index.js` | `require` |
|
|
100
100
|
| UMD / Browser | `dist/index.umd.js` | global `TsSharetribeFlexSdk` |
|
|
101
101
|
|
|
102
|
+
## Changelog
|
|
103
|
+
|
|
104
|
+
### 3.1.1
|
|
105
|
+
- Docs: fixed the `listings.query` price filter example — it's a range string `"min,max"` in minor units, not a `{ gte, lte }` object
|
|
106
|
+
- Docs: list **yarn** and **npm** alongside pnpm for the dev commands
|
|
107
|
+
|
|
108
|
+
### 3.1.0
|
|
109
|
+
- Marketplace file-sharing endpoints: `files`, `fileUploads`, `fileDownloads`, `ownFiles`, `ownFileDownloads`
|
|
110
|
+
- Integration query endpoints: `messages`, `files`, `fileAttachments`
|
|
111
|
+
- `integrationSdk.users.verifyEmail`
|
|
112
|
+
|
|
102
113
|
## Migration from `sharetribe-flex-sdk`
|
|
103
114
|
|
|
104
115
|
<details>
|
|
@@ -141,13 +152,13 @@ const store = new TokenStores.MemoryStore();
|
|
|
141
152
|
|
|
142
153
|
## Development
|
|
143
154
|
|
|
144
|
-
|
|
155
|
+
Works with **pnpm**, **yarn** or **npm**:
|
|
145
156
|
|
|
146
157
|
```bash
|
|
147
|
-
pnpm install
|
|
148
|
-
pnpm build
|
|
149
|
-
pnpm test
|
|
150
|
-
pnpm analyze
|
|
158
|
+
pnpm install # yarn install | npm install
|
|
159
|
+
pnpm build # yarn build | npm run build — bundles (CJS/ESM/UMD) + types
|
|
160
|
+
pnpm test # yarn test | npm test — Jest test suite
|
|
161
|
+
pnpm analyze # yarn analyze | npm run analyze — bundle size analysis
|
|
151
162
|
```
|
|
152
163
|
|
|
153
164
|
## Contributing
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vansite/ts-sharetribe-flex-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"description": "This is a TypeScript SDK for Sharetribe Flex API. It reduces the complexity of the API and provides a more user-friendly interface.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sharetribe",
|