@faiber/faiber-social 0.11.7 → 0.12.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 +3 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,25 +24,19 @@ const api = new SocialApi(client);
|
|
|
24
24
|
|
|
25
25
|
const categories = await api.categories();
|
|
26
26
|
const feed = await api.feed({ category_id: categories.data.data[0]?.id, page: 1, limit: 20 });
|
|
27
|
-
await api.setFeedLocation({ latitude: 35.6892, longitude: 51.3890, range_km: 25 });
|
|
28
27
|
```
|
|
29
28
|
|
|
30
29
|
## Complete capability
|
|
31
30
|
|
|
32
|
-
This package exposes
|
|
31
|
+
This package exposes 61 registered operations from the social interactions service. Common workflows have concise methods on `api`; every registered backend route is also available as a named function on `api.operations`. Generated operation input, query, response, path, verb, and permission contracts are exported from `operations.types`.
|
|
33
32
|
|
|
34
33
|
| Area | Operations | HTTP methods |
|
|
35
34
|
|---|---:|---|
|
|
36
|
-
| `api` |
|
|
35
|
+
| `api` | 60 | `DELETE`, `GET`, `PATCH`, `POST`, `PUT` |
|
|
36
|
+
| `main` | 1 | `GET` |
|
|
37
37
|
|
|
38
38
|
Social owns community categories, posts, and interactions on those posts and comments. Modules continues to own generic comments and reactions for products, services, and other Modules resources.
|
|
39
39
|
|
|
40
|
-
Moderators can inspect a typed, paginated audit trail:
|
|
41
|
-
|
|
42
|
-
```ts
|
|
43
|
-
const audit = await api.moderationAudit({ target_type: "post", action: "hide", page: 1, limit: 30 });
|
|
44
|
-
```
|
|
45
|
-
|
|
46
40
|
## Authentication and authorization
|
|
47
41
|
|
|
48
42
|
Use a `TokenProvider` to forward the signed-in user's Bearer token, or enable `withCredentials` for secure HttpOnly cookie sessions. Permission requirements copied from service route guards are included in each operation's JSDoc. The SDK does not embed API keys, credentials, localhost URLs, sandbox hosts, or production hosts.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faiber/faiber-social",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@faiber/sdk-core": "0.
|
|
19
|
+
"@faiber/sdk-core": "0.12.1"
|
|
20
20
|
}
|
|
21
21
|
}
|