@aurora-interactive/sensei-productivity 1.4.0 → 1.6.0
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/dist/commonjs/funcs/categories-create.d.ts +1 -1
- package/dist/commonjs/funcs/categories-create.d.ts.map +1 -1
- package/dist/commonjs/funcs/categories-create.js +2 -3
- package/dist/commonjs/funcs/categories-create.js.map +1 -1
- package/dist/commonjs/funcs/categories-delete.js +2 -2
- package/dist/commonjs/funcs/categories-delete.js.map +1 -1
- package/dist/commonjs/funcs/categories-get-all.d.ts +1 -1
- package/dist/commonjs/funcs/categories-get-all.d.ts.map +1 -1
- package/dist/commonjs/funcs/categories-get-all.js +2 -3
- package/dist/commonjs/funcs/categories-get-all.js.map +1 -1
- package/dist/commonjs/funcs/categories-update.d.ts +1 -1
- package/dist/commonjs/funcs/categories-update.d.ts.map +1 -1
- package/dist/commonjs/funcs/categories-update.js +2 -3
- package/dist/commonjs/funcs/categories-update.js.map +1 -1
- package/dist/commonjs/funcs/schools-get-all.js +2 -2
- package/dist/commonjs/funcs/schools-get-all.js.map +1 -1
- package/dist/commonjs/funcs/schools-get.d.ts +1 -1
- package/dist/commonjs/funcs/schools-get.d.ts.map +1 -1
- package/dist/commonjs/funcs/schools-get.js +2 -3
- package/dist/commonjs/funcs/schools-get.js.map +1 -1
- package/dist/commonjs/funcs/users-activities-create.d.ts +1 -1
- package/dist/commonjs/funcs/users-activities-create.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-activities-create.js +2 -3
- package/dist/commonjs/funcs/users-activities-create.js.map +1 -1
- package/dist/commonjs/funcs/users-activities-delete.js +2 -2
- package/dist/commonjs/funcs/users-activities-delete.js.map +1 -1
- package/dist/commonjs/funcs/users-activities-get-all-of-user.d.ts +1 -1
- package/dist/commonjs/funcs/users-activities-get-all-of-user.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-activities-get-all-of-user.js +2 -3
- package/dist/commonjs/funcs/users-activities-get-all-of-user.js.map +1 -1
- package/dist/commonjs/funcs/users-activities-get.d.ts +1 -1
- package/dist/commonjs/funcs/users-activities-get.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-activities-get.js +2 -3
- package/dist/commonjs/funcs/users-activities-get.js.map +1 -1
- package/dist/commonjs/funcs/users-activities-me.d.ts +1 -1
- package/dist/commonjs/funcs/users-activities-me.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-activities-me.js +2 -3
- package/dist/commonjs/funcs/users-activities-me.js.map +1 -1
- package/dist/commonjs/funcs/users-activities-update.d.ts +1 -1
- package/dist/commonjs/funcs/users-activities-update.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-activities-update.js +2 -3
- package/dist/commonjs/funcs/users-activities-update.js.map +1 -1
- package/dist/commonjs/funcs/users-delete.js +2 -2
- package/dist/commonjs/funcs/users-delete.js.map +1 -1
- package/dist/commonjs/funcs/users-friends-accept.js +2 -2
- package/dist/commonjs/funcs/users-friends-accept.js.map +1 -1
- package/dist/commonjs/funcs/users-friends-list.d.ts +1 -1
- package/dist/commonjs/funcs/users-friends-list.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-friends-list.js +2 -3
- package/dist/commonjs/funcs/users-friends-list.js.map +1 -1
- package/dist/commonjs/funcs/users-friends-pending.d.ts +1 -1
- package/dist/commonjs/funcs/users-friends-pending.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-friends-pending.js +2 -3
- package/dist/commonjs/funcs/users-friends-pending.js.map +1 -1
- package/dist/commonjs/funcs/users-friends-reject.js +2 -2
- package/dist/commonjs/funcs/users-friends-reject.js.map +1 -1
- package/dist/commonjs/funcs/users-friends-remove.js +2 -2
- package/dist/commonjs/funcs/users-friends-remove.js.map +1 -1
- package/dist/commonjs/funcs/users-friends-send-request.js +2 -2
- package/dist/commonjs/funcs/users-friends-send-request.js.map +1 -1
- package/dist/commonjs/funcs/users-get.d.ts +1 -1
- package/dist/commonjs/funcs/users-get.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-get.js +2 -3
- package/dist/commonjs/funcs/users-get.js.map +1 -1
- package/dist/commonjs/funcs/users-login.d.ts +1 -1
- package/dist/commonjs/funcs/users-login.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-login.js +2 -3
- package/dist/commonjs/funcs/users-login.js.map +1 -1
- package/dist/commonjs/funcs/users-me.d.ts +1 -1
- package/dist/commonjs/funcs/users-me.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-me.js +2 -3
- package/dist/commonjs/funcs/users-me.js.map +1 -1
- package/dist/commonjs/funcs/users-posts-delete.js +2 -2
- package/dist/commonjs/funcs/users-posts-delete.js.map +1 -1
- package/dist/commonjs/funcs/users-posts-feed.d.ts +1 -1
- package/dist/commonjs/funcs/users-posts-feed.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-posts-feed.js +3 -4
- package/dist/commonjs/funcs/users-posts-feed.js.map +1 -1
- package/dist/commonjs/funcs/users-posts-get-by-post-id.d.ts +1 -1
- package/dist/commonjs/funcs/users-posts-get-by-post-id.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-posts-get-by-post-id.js +2 -3
- package/dist/commonjs/funcs/users-posts-get-by-post-id.js.map +1 -1
- package/dist/commonjs/funcs/users-posts-get-by-user-id.d.ts +1 -1
- package/dist/commonjs/funcs/users-posts-get-by-user-id.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-posts-get-by-user-id.js +2 -3
- package/dist/commonjs/funcs/users-posts-get-by-user-id.js.map +1 -1
- package/dist/commonjs/funcs/users-posts-update.d.ts +1 -1
- package/dist/commonjs/funcs/users-posts-update.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-posts-update.js +2 -3
- package/dist/commonjs/funcs/users-posts-update.js.map +1 -1
- package/dist/commonjs/funcs/users-signup.d.ts +1 -1
- package/dist/commonjs/funcs/users-signup.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-signup.js +2 -3
- package/dist/commonjs/funcs/users-signup.js.map +1 -1
- package/dist/commonjs/funcs/users-update.d.ts +1 -1
- package/dist/commonjs/funcs/users-update.d.ts.map +1 -1
- package/dist/commonjs/funcs/users-update.js +2 -3
- package/dist/commonjs/funcs/users-update.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/matchers.d.ts.map +1 -1
- package/dist/commonjs/lib/matchers.js +0 -1
- package/dist/commonjs/lib/matchers.js.map +1 -1
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +1 -2
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/operations/get-feed.d.ts +3 -15
- package/dist/commonjs/models/operations/get-feed.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-feed.js +4 -15
- package/dist/commonjs/models/operations/get-feed.js.map +1 -1
- package/dist/commonjs/models/operations/get-post-by-id.d.ts +1 -1
- package/dist/commonjs/models/operations/get-post-by-id.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-post-by-id.js +1 -1
- package/dist/commonjs/models/operations/get-post-by-id.js.map +1 -1
- package/dist/commonjs/sdk/activities.d.ts +5 -5
- package/dist/commonjs/sdk/activities.d.ts.map +1 -1
- package/dist/commonjs/sdk/categories.d.ts +3 -3
- package/dist/commonjs/sdk/categories.d.ts.map +1 -1
- package/dist/commonjs/sdk/friends.d.ts +2 -2
- package/dist/commonjs/sdk/friends.d.ts.map +1 -1
- package/dist/commonjs/sdk/posts.d.ts +4 -4
- package/dist/commonjs/sdk/posts.d.ts.map +1 -1
- package/dist/commonjs/sdk/schools.d.ts +1 -1
- package/dist/commonjs/sdk/schools.d.ts.map +1 -1
- package/dist/commonjs/sdk/users.d.ts +5 -5
- package/dist/commonjs/sdk/users.d.ts.map +1 -1
- package/dist/esm/funcs/categories-create.d.ts +1 -1
- package/dist/esm/funcs/categories-create.d.ts.map +1 -1
- package/dist/esm/funcs/categories-create.js +2 -3
- package/dist/esm/funcs/categories-create.js.map +1 -1
- package/dist/esm/funcs/categories-delete.js +2 -2
- package/dist/esm/funcs/categories-delete.js.map +1 -1
- package/dist/esm/funcs/categories-get-all.d.ts +1 -1
- package/dist/esm/funcs/categories-get-all.d.ts.map +1 -1
- package/dist/esm/funcs/categories-get-all.js +2 -3
- package/dist/esm/funcs/categories-get-all.js.map +1 -1
- package/dist/esm/funcs/categories-update.d.ts +1 -1
- package/dist/esm/funcs/categories-update.d.ts.map +1 -1
- package/dist/esm/funcs/categories-update.js +2 -3
- package/dist/esm/funcs/categories-update.js.map +1 -1
- package/dist/esm/funcs/schools-get-all.js +2 -2
- package/dist/esm/funcs/schools-get-all.js.map +1 -1
- package/dist/esm/funcs/schools-get.d.ts +1 -1
- package/dist/esm/funcs/schools-get.d.ts.map +1 -1
- package/dist/esm/funcs/schools-get.js +2 -3
- package/dist/esm/funcs/schools-get.js.map +1 -1
- package/dist/esm/funcs/users-activities-create.d.ts +1 -1
- package/dist/esm/funcs/users-activities-create.d.ts.map +1 -1
- package/dist/esm/funcs/users-activities-create.js +2 -3
- package/dist/esm/funcs/users-activities-create.js.map +1 -1
- package/dist/esm/funcs/users-activities-delete.js +2 -2
- package/dist/esm/funcs/users-activities-delete.js.map +1 -1
- package/dist/esm/funcs/users-activities-get-all-of-user.d.ts +1 -1
- package/dist/esm/funcs/users-activities-get-all-of-user.d.ts.map +1 -1
- package/dist/esm/funcs/users-activities-get-all-of-user.js +2 -3
- package/dist/esm/funcs/users-activities-get-all-of-user.js.map +1 -1
- package/dist/esm/funcs/users-activities-get.d.ts +1 -1
- package/dist/esm/funcs/users-activities-get.d.ts.map +1 -1
- package/dist/esm/funcs/users-activities-get.js +2 -3
- package/dist/esm/funcs/users-activities-get.js.map +1 -1
- package/dist/esm/funcs/users-activities-me.d.ts +1 -1
- package/dist/esm/funcs/users-activities-me.d.ts.map +1 -1
- package/dist/esm/funcs/users-activities-me.js +2 -3
- package/dist/esm/funcs/users-activities-me.js.map +1 -1
- package/dist/esm/funcs/users-activities-update.d.ts +1 -1
- package/dist/esm/funcs/users-activities-update.d.ts.map +1 -1
- package/dist/esm/funcs/users-activities-update.js +2 -3
- package/dist/esm/funcs/users-activities-update.js.map +1 -1
- package/dist/esm/funcs/users-delete.js +2 -2
- package/dist/esm/funcs/users-delete.js.map +1 -1
- package/dist/esm/funcs/users-friends-accept.js +2 -2
- package/dist/esm/funcs/users-friends-accept.js.map +1 -1
- package/dist/esm/funcs/users-friends-list.d.ts +1 -1
- package/dist/esm/funcs/users-friends-list.d.ts.map +1 -1
- package/dist/esm/funcs/users-friends-list.js +2 -3
- package/dist/esm/funcs/users-friends-list.js.map +1 -1
- package/dist/esm/funcs/users-friends-pending.d.ts +1 -1
- package/dist/esm/funcs/users-friends-pending.d.ts.map +1 -1
- package/dist/esm/funcs/users-friends-pending.js +2 -3
- package/dist/esm/funcs/users-friends-pending.js.map +1 -1
- package/dist/esm/funcs/users-friends-reject.js +2 -2
- package/dist/esm/funcs/users-friends-reject.js.map +1 -1
- package/dist/esm/funcs/users-friends-remove.js +2 -2
- package/dist/esm/funcs/users-friends-remove.js.map +1 -1
- package/dist/esm/funcs/users-friends-send-request.js +2 -2
- package/dist/esm/funcs/users-friends-send-request.js.map +1 -1
- package/dist/esm/funcs/users-get.d.ts +1 -1
- package/dist/esm/funcs/users-get.d.ts.map +1 -1
- package/dist/esm/funcs/users-get.js +2 -3
- package/dist/esm/funcs/users-get.js.map +1 -1
- package/dist/esm/funcs/users-login.d.ts +1 -1
- package/dist/esm/funcs/users-login.d.ts.map +1 -1
- package/dist/esm/funcs/users-login.js +2 -3
- package/dist/esm/funcs/users-login.js.map +1 -1
- package/dist/esm/funcs/users-me.d.ts +1 -1
- package/dist/esm/funcs/users-me.d.ts.map +1 -1
- package/dist/esm/funcs/users-me.js +2 -3
- package/dist/esm/funcs/users-me.js.map +1 -1
- package/dist/esm/funcs/users-posts-delete.js +2 -2
- package/dist/esm/funcs/users-posts-delete.js.map +1 -1
- package/dist/esm/funcs/users-posts-feed.d.ts +1 -1
- package/dist/esm/funcs/users-posts-feed.d.ts.map +1 -1
- package/dist/esm/funcs/users-posts-feed.js +3 -4
- package/dist/esm/funcs/users-posts-feed.js.map +1 -1
- package/dist/esm/funcs/users-posts-get-by-post-id.d.ts +1 -1
- package/dist/esm/funcs/users-posts-get-by-post-id.d.ts.map +1 -1
- package/dist/esm/funcs/users-posts-get-by-post-id.js +2 -3
- package/dist/esm/funcs/users-posts-get-by-post-id.js.map +1 -1
- package/dist/esm/funcs/users-posts-get-by-user-id.d.ts +1 -1
- package/dist/esm/funcs/users-posts-get-by-user-id.d.ts.map +1 -1
- package/dist/esm/funcs/users-posts-get-by-user-id.js +2 -3
- package/dist/esm/funcs/users-posts-get-by-user-id.js.map +1 -1
- package/dist/esm/funcs/users-posts-update.d.ts +1 -1
- package/dist/esm/funcs/users-posts-update.d.ts.map +1 -1
- package/dist/esm/funcs/users-posts-update.js +2 -3
- package/dist/esm/funcs/users-posts-update.js.map +1 -1
- package/dist/esm/funcs/users-signup.d.ts +1 -1
- package/dist/esm/funcs/users-signup.d.ts.map +1 -1
- package/dist/esm/funcs/users-signup.js +2 -3
- package/dist/esm/funcs/users-signup.js.map +1 -1
- package/dist/esm/funcs/users-update.d.ts +1 -1
- package/dist/esm/funcs/users-update.d.ts.map +1 -1
- package/dist/esm/funcs/users-update.js +2 -3
- package/dist/esm/funcs/users-update.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/matchers.d.ts.map +1 -1
- package/dist/esm/lib/matchers.js +0 -1
- package/dist/esm/lib/matchers.js.map +1 -1
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +1 -2
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/operations/get-feed.d.ts +3 -15
- package/dist/esm/models/operations/get-feed.d.ts.map +1 -1
- package/dist/esm/models/operations/get-feed.js +3 -13
- package/dist/esm/models/operations/get-feed.js.map +1 -1
- package/dist/esm/models/operations/get-post-by-id.d.ts +1 -1
- package/dist/esm/models/operations/get-post-by-id.d.ts.map +1 -1
- package/dist/esm/models/operations/get-post-by-id.js +1 -1
- package/dist/esm/models/operations/get-post-by-id.js.map +1 -1
- package/dist/esm/sdk/activities.d.ts +5 -5
- package/dist/esm/sdk/activities.d.ts.map +1 -1
- package/dist/esm/sdk/categories.d.ts +3 -3
- package/dist/esm/sdk/categories.d.ts.map +1 -1
- package/dist/esm/sdk/friends.d.ts +2 -2
- package/dist/esm/sdk/friends.d.ts.map +1 -1
- package/dist/esm/sdk/posts.d.ts +4 -4
- package/dist/esm/sdk/posts.d.ts.map +1 -1
- package/dist/esm/sdk/schools.d.ts +1 -1
- package/dist/esm/sdk/schools.d.ts.map +1 -1
- package/dist/esm/sdk/users.d.ts +5 -5
- package/dist/esm/sdk/users.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/rest-api/cypress/e2e/activity-post-endpoints.cy.js +2 -3
- package/rest-api/cypress.config.ts +2 -1
- package/rest-api/routes/ActivityPostFunctions.js +73 -2
- package/src/funcs/categories-create.ts +6 -14
- package/src/funcs/categories-delete.ts +2 -3
- package/src/funcs/categories-get-all.ts +6 -14
- package/src/funcs/categories-update.ts +6 -14
- package/src/funcs/schools-get-all.ts +2 -2
- package/src/funcs/schools-get.ts +6 -11
- package/src/funcs/users-activities-create.ts +6 -14
- package/src/funcs/users-activities-delete.ts +2 -3
- package/src/funcs/users-activities-get-all-of-user.ts +6 -18
- package/src/funcs/users-activities-get.ts +6 -14
- package/src/funcs/users-activities-me.ts +6 -14
- package/src/funcs/users-activities-update.ts +6 -14
- package/src/funcs/users-delete.ts +2 -3
- package/src/funcs/users-friends-accept.ts +2 -3
- package/src/funcs/users-friends-list.ts +6 -14
- package/src/funcs/users-friends-pending.ts +6 -15
- package/src/funcs/users-friends-reject.ts +2 -3
- package/src/funcs/users-friends-remove.ts +2 -3
- package/src/funcs/users-friends-send-request.ts +2 -3
- package/src/funcs/users-get.ts +6 -11
- package/src/funcs/users-login.ts +6 -11
- package/src/funcs/users-me.ts +6 -14
- package/src/funcs/users-posts-delete.ts +2 -3
- package/src/funcs/users-posts-feed.ts +7 -9
- package/src/funcs/users-posts-get-by-post-id.ts +6 -11
- package/src/funcs/users-posts-get-by-user-id.ts +6 -14
- package/src/funcs/users-posts-update.ts +6 -11
- package/src/funcs/users-signup.ts +6 -8
- package/src/funcs/users-update.ts +6 -11
- package/src/lib/config.ts +4 -4
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/operations/get-feed.ts +9 -37
- package/src/models/operations/get-post-by-id.ts +2 -2
- package/src/sdk/activities.ts +5 -5
- package/src/sdk/categories.ts +3 -3
- package/src/sdk/friends.ts +2 -2
- package/src/sdk/posts.ts +4 -4
- package/src/sdk/schools.ts +1 -1
- package/src/sdk/users.ts +5 -5
|
@@ -24,7 +24,6 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
|
-
import * as types$ from "../types/primitives.js";
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Get the social feed of posts from the authenticated user's friends
|
|
@@ -35,7 +34,7 @@ export function usersPostsFeed(
|
|
|
35
34
|
options?: RequestOptions,
|
|
36
35
|
): APIPromise<
|
|
37
36
|
Result<
|
|
38
|
-
operations.GetFeedResponse
|
|
37
|
+
Array<operations.GetFeedResponse>,
|
|
39
38
|
| SenseiProductivityError
|
|
40
39
|
| ResponseValidationError
|
|
41
40
|
| ConnectionError
|
|
@@ -60,7 +59,7 @@ async function $do(
|
|
|
60
59
|
): Promise<
|
|
61
60
|
[
|
|
62
61
|
Result<
|
|
63
|
-
operations.GetFeedResponse
|
|
62
|
+
Array<operations.GetFeedResponse>,
|
|
64
63
|
| SenseiProductivityError
|
|
65
64
|
| ResponseValidationError
|
|
66
65
|
| ConnectionError
|
|
@@ -88,8 +87,8 @@ async function $do(
|
|
|
88
87
|
const path = pathToFunc("/api/v1/feed")();
|
|
89
88
|
|
|
90
89
|
const query = encodeFormQuery({
|
|
90
|
+
"lastPostId": payload?.lastPostId,
|
|
91
91
|
"limit": payload?.limit,
|
|
92
|
-
"page": payload?.page,
|
|
93
92
|
});
|
|
94
93
|
|
|
95
94
|
const headers = new Headers(compactMap({
|
|
@@ -143,7 +142,7 @@ async function $do(
|
|
|
143
142
|
|
|
144
143
|
const doResult = await client._do(req, {
|
|
145
144
|
context,
|
|
146
|
-
errorCodes: ["
|
|
145
|
+
errorCodes: ["401", "4XX", "5XX"],
|
|
147
146
|
retryConfig: context.retryConfig,
|
|
148
147
|
retryCodes: context.retryCodes,
|
|
149
148
|
});
|
|
@@ -153,7 +152,7 @@ async function $do(
|
|
|
153
152
|
const response = doResult.value;
|
|
154
153
|
|
|
155
154
|
const [result] = await M.match<
|
|
156
|
-
operations.GetFeedResponse
|
|
155
|
+
Array<operations.GetFeedResponse>,
|
|
157
156
|
| SenseiProductivityError
|
|
158
157
|
| ResponseValidationError
|
|
159
158
|
| ConnectionError
|
|
@@ -163,9 +162,8 @@ async function $do(
|
|
|
163
162
|
| UnexpectedClientError
|
|
164
163
|
| SDKValidationError
|
|
165
164
|
>(
|
|
166
|
-
M.json(200,
|
|
167
|
-
M.
|
|
168
|
-
M.fail(429),
|
|
165
|
+
M.json(200, z.array(operations.GetFeedResponse$inboundSchema)),
|
|
166
|
+
M.fail([401, "4XX"]),
|
|
169
167
|
M.fail("5XX"),
|
|
170
168
|
)(response, req);
|
|
171
169
|
if (!result.ok) {
|
|
@@ -24,7 +24,6 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
|
-
import * as types$ from "../types/primitives.js";
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Get a specific post by ID
|
|
@@ -35,7 +34,7 @@ export function usersPostsGetByPostId(
|
|
|
35
34
|
options?: RequestOptions,
|
|
36
35
|
): APIPromise<
|
|
37
36
|
Result<
|
|
38
|
-
operations.GetPostByIdResponse
|
|
37
|
+
operations.GetPostByIdResponse,
|
|
39
38
|
| SenseiProductivityError
|
|
40
39
|
| ResponseValidationError
|
|
41
40
|
| ConnectionError
|
|
@@ -60,7 +59,7 @@ async function $do(
|
|
|
60
59
|
): Promise<
|
|
61
60
|
[
|
|
62
61
|
Result<
|
|
63
|
-
operations.GetPostByIdResponse
|
|
62
|
+
operations.GetPostByIdResponse,
|
|
64
63
|
| SenseiProductivityError
|
|
65
64
|
| ResponseValidationError
|
|
66
65
|
| ConnectionError
|
|
@@ -143,7 +142,7 @@ async function $do(
|
|
|
143
142
|
|
|
144
143
|
const doResult = await client._do(req, {
|
|
145
144
|
context,
|
|
146
|
-
errorCodes: ["
|
|
145
|
+
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
147
146
|
retryConfig: context.retryConfig,
|
|
148
147
|
retryCodes: context.retryCodes,
|
|
149
148
|
});
|
|
@@ -153,7 +152,7 @@ async function $do(
|
|
|
153
152
|
const response = doResult.value;
|
|
154
153
|
|
|
155
154
|
const [result] = await M.match<
|
|
156
|
-
operations.GetPostByIdResponse
|
|
155
|
+
operations.GetPostByIdResponse,
|
|
157
156
|
| SenseiProductivityError
|
|
158
157
|
| ResponseValidationError
|
|
159
158
|
| ConnectionError
|
|
@@ -163,12 +162,8 @@ async function $do(
|
|
|
163
162
|
| UnexpectedClientError
|
|
164
163
|
| SDKValidationError
|
|
165
164
|
>(
|
|
166
|
-
M.json(200,
|
|
167
|
-
M.
|
|
168
|
-
[401, 403, 404],
|
|
169
|
-
types$.optional(operations.GetPostByIdResponse$inboundSchema),
|
|
170
|
-
),
|
|
171
|
-
M.fail(429),
|
|
165
|
+
M.json(200, operations.GetPostByIdResponse$inboundSchema),
|
|
166
|
+
M.fail([401, 403, 404, "4XX"]),
|
|
172
167
|
M.fail("5XX"),
|
|
173
168
|
)(response, req);
|
|
174
169
|
if (!result.ok) {
|
|
@@ -24,7 +24,6 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
|
-
import * as types$ from "../types/primitives.js";
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Get a user's posts (respects post visibility)
|
|
@@ -35,7 +34,7 @@ export function usersPostsGetByUserId(
|
|
|
35
34
|
options?: RequestOptions,
|
|
36
35
|
): APIPromise<
|
|
37
36
|
Result<
|
|
38
|
-
Array<operations.GetUserPostsResponse
|
|
37
|
+
Array<operations.GetUserPostsResponse>,
|
|
39
38
|
| SenseiProductivityError
|
|
40
39
|
| ResponseValidationError
|
|
41
40
|
| ConnectionError
|
|
@@ -60,7 +59,7 @@ async function $do(
|
|
|
60
59
|
): Promise<
|
|
61
60
|
[
|
|
62
61
|
Result<
|
|
63
|
-
Array<operations.GetUserPostsResponse
|
|
62
|
+
Array<operations.GetUserPostsResponse>,
|
|
64
63
|
| SenseiProductivityError
|
|
65
64
|
| ResponseValidationError
|
|
66
65
|
| ConnectionError
|
|
@@ -143,7 +142,7 @@ async function $do(
|
|
|
143
142
|
|
|
144
143
|
const doResult = await client._do(req, {
|
|
145
144
|
context,
|
|
146
|
-
errorCodes: ["
|
|
145
|
+
errorCodes: ["401", "403", "404", "4XX", "5XX"],
|
|
147
146
|
retryConfig: context.retryConfig,
|
|
148
147
|
retryCodes: context.retryCodes,
|
|
149
148
|
});
|
|
@@ -153,7 +152,7 @@ async function $do(
|
|
|
153
152
|
const response = doResult.value;
|
|
154
153
|
|
|
155
154
|
const [result] = await M.match<
|
|
156
|
-
Array<operations.GetUserPostsResponse
|
|
155
|
+
Array<operations.GetUserPostsResponse>,
|
|
157
156
|
| SenseiProductivityError
|
|
158
157
|
| ResponseValidationError
|
|
159
158
|
| ConnectionError
|
|
@@ -163,15 +162,8 @@ async function $do(
|
|
|
163
162
|
| UnexpectedClientError
|
|
164
163
|
| SDKValidationError
|
|
165
164
|
>(
|
|
166
|
-
M.json(
|
|
167
|
-
|
|
168
|
-
types$.optional(z.array(operations.GetUserPostsResponse$inboundSchema)),
|
|
169
|
-
),
|
|
170
|
-
M.nil(
|
|
171
|
-
[401, 403, 404],
|
|
172
|
-
types$.optional(z.array(operations.GetUserPostsResponse$inboundSchema)),
|
|
173
|
-
),
|
|
174
|
-
M.fail(429),
|
|
165
|
+
M.json(200, z.array(operations.GetUserPostsResponse$inboundSchema)),
|
|
166
|
+
M.fail([401, 403, 404, "4XX"]),
|
|
175
167
|
M.fail("5XX"),
|
|
176
168
|
)(response, req);
|
|
177
169
|
if (!result.ok) {
|
|
@@ -24,7 +24,6 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
|
-
import * as types$ from "../types/primitives.js";
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Update a post's caption or visibility
|
|
@@ -35,7 +34,7 @@ export function usersPostsUpdate(
|
|
|
35
34
|
options?: RequestOptions,
|
|
36
35
|
): APIPromise<
|
|
37
36
|
Result<
|
|
38
|
-
operations.UpdatePostResponse
|
|
37
|
+
operations.UpdatePostResponse,
|
|
39
38
|
| SenseiProductivityError
|
|
40
39
|
| ResponseValidationError
|
|
41
40
|
| ConnectionError
|
|
@@ -60,7 +59,7 @@ async function $do(
|
|
|
60
59
|
): Promise<
|
|
61
60
|
[
|
|
62
61
|
Result<
|
|
63
|
-
operations.UpdatePostResponse
|
|
62
|
+
operations.UpdatePostResponse,
|
|
64
63
|
| SenseiProductivityError
|
|
65
64
|
| ResponseValidationError
|
|
66
65
|
| ConnectionError
|
|
@@ -144,7 +143,7 @@ async function $do(
|
|
|
144
143
|
|
|
145
144
|
const doResult = await client._do(req, {
|
|
146
145
|
context,
|
|
147
|
-
errorCodes: ["
|
|
146
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
|
|
148
147
|
retryConfig: context.retryConfig,
|
|
149
148
|
retryCodes: context.retryCodes,
|
|
150
149
|
});
|
|
@@ -154,7 +153,7 @@ async function $do(
|
|
|
154
153
|
const response = doResult.value;
|
|
155
154
|
|
|
156
155
|
const [result] = await M.match<
|
|
157
|
-
operations.UpdatePostResponse
|
|
156
|
+
operations.UpdatePostResponse,
|
|
158
157
|
| SenseiProductivityError
|
|
159
158
|
| ResponseValidationError
|
|
160
159
|
| ConnectionError
|
|
@@ -164,12 +163,8 @@ async function $do(
|
|
|
164
163
|
| UnexpectedClientError
|
|
165
164
|
| SDKValidationError
|
|
166
165
|
>(
|
|
167
|
-
M.json(200,
|
|
168
|
-
M.
|
|
169
|
-
[400, 401, 403, 404],
|
|
170
|
-
types$.optional(operations.UpdatePostResponse$inboundSchema),
|
|
171
|
-
),
|
|
172
|
-
M.fail(429),
|
|
166
|
+
M.json(200, operations.UpdatePostResponse$inboundSchema),
|
|
167
|
+
M.fail([400, 401, 403, 404, "4XX"]),
|
|
173
168
|
M.fail("5XX"),
|
|
174
169
|
)(response, req);
|
|
175
170
|
if (!result.ok) {
|
|
@@ -24,7 +24,6 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
|
-
import * as types$ from "../types/primitives.js";
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Signup the given user
|
|
@@ -35,7 +34,7 @@ export function usersSignup(
|
|
|
35
34
|
options?: RequestOptions,
|
|
36
35
|
): APIPromise<
|
|
37
36
|
Result<
|
|
38
|
-
operations.UserSignupResponse
|
|
37
|
+
operations.UserSignupResponse,
|
|
39
38
|
| SenseiProductivityError
|
|
40
39
|
| ResponseValidationError
|
|
41
40
|
| ConnectionError
|
|
@@ -60,7 +59,7 @@ async function $do(
|
|
|
60
59
|
): Promise<
|
|
61
60
|
[
|
|
62
61
|
Result<
|
|
63
|
-
operations.UserSignupResponse
|
|
62
|
+
operations.UserSignupResponse,
|
|
64
63
|
| SenseiProductivityError
|
|
65
64
|
| ResponseValidationError
|
|
66
65
|
| ConnectionError
|
|
@@ -137,7 +136,7 @@ async function $do(
|
|
|
137
136
|
|
|
138
137
|
const doResult = await client._do(req, {
|
|
139
138
|
context,
|
|
140
|
-
errorCodes: ["
|
|
139
|
+
errorCodes: ["400", "4XX", "5XX"],
|
|
141
140
|
retryConfig: context.retryConfig,
|
|
142
141
|
retryCodes: context.retryCodes,
|
|
143
142
|
});
|
|
@@ -147,7 +146,7 @@ async function $do(
|
|
|
147
146
|
const response = doResult.value;
|
|
148
147
|
|
|
149
148
|
const [result] = await M.match<
|
|
150
|
-
operations.UserSignupResponse
|
|
149
|
+
operations.UserSignupResponse,
|
|
151
150
|
| SenseiProductivityError
|
|
152
151
|
| ResponseValidationError
|
|
153
152
|
| ConnectionError
|
|
@@ -157,9 +156,8 @@ async function $do(
|
|
|
157
156
|
| UnexpectedClientError
|
|
158
157
|
| SDKValidationError
|
|
159
158
|
>(
|
|
160
|
-
M.json(200,
|
|
161
|
-
M.
|
|
162
|
-
M.fail(429),
|
|
159
|
+
M.json(200, operations.UserSignupResponse$inboundSchema),
|
|
160
|
+
M.fail([400, "4XX"]),
|
|
163
161
|
M.fail("5XX"),
|
|
164
162
|
)(response, req);
|
|
165
163
|
if (!result.ok) {
|
|
@@ -24,7 +24,6 @@ import { SenseiProductivityError } from "../models/errors/sensei-productivity-er
|
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
|
-
import * as types$ from "../types/primitives.js";
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Update a user's profile (own profile only)
|
|
@@ -35,7 +34,7 @@ export function usersUpdate(
|
|
|
35
34
|
options?: RequestOptions,
|
|
36
35
|
): APIPromise<
|
|
37
36
|
Result<
|
|
38
|
-
operations.UpdateUserResponse
|
|
37
|
+
operations.UpdateUserResponse,
|
|
39
38
|
| SenseiProductivityError
|
|
40
39
|
| ResponseValidationError
|
|
41
40
|
| ConnectionError
|
|
@@ -60,7 +59,7 @@ async function $do(
|
|
|
60
59
|
): Promise<
|
|
61
60
|
[
|
|
62
61
|
Result<
|
|
63
|
-
operations.UpdateUserResponse
|
|
62
|
+
operations.UpdateUserResponse,
|
|
64
63
|
| SenseiProductivityError
|
|
65
64
|
| ResponseValidationError
|
|
66
65
|
| ConnectionError
|
|
@@ -144,7 +143,7 @@ async function $do(
|
|
|
144
143
|
|
|
145
144
|
const doResult = await client._do(req, {
|
|
146
145
|
context,
|
|
147
|
-
errorCodes: ["
|
|
146
|
+
errorCodes: ["400", "401", "403", "404", "4XX", "5XX"],
|
|
148
147
|
retryConfig: context.retryConfig,
|
|
149
148
|
retryCodes: context.retryCodes,
|
|
150
149
|
});
|
|
@@ -154,7 +153,7 @@ async function $do(
|
|
|
154
153
|
const response = doResult.value;
|
|
155
154
|
|
|
156
155
|
const [result] = await M.match<
|
|
157
|
-
operations.UpdateUserResponse
|
|
156
|
+
operations.UpdateUserResponse,
|
|
158
157
|
| SenseiProductivityError
|
|
159
158
|
| ResponseValidationError
|
|
160
159
|
| ConnectionError
|
|
@@ -164,12 +163,8 @@ async function $do(
|
|
|
164
163
|
| UnexpectedClientError
|
|
165
164
|
| SDKValidationError
|
|
166
165
|
>(
|
|
167
|
-
M.json(200,
|
|
168
|
-
M.
|
|
169
|
-
[400, 401, 403, 404],
|
|
170
|
-
types$.optional(operations.UpdateUserResponse$inboundSchema),
|
|
171
|
-
),
|
|
172
|
-
M.fail(429),
|
|
166
|
+
M.json(200, operations.UpdateUserResponse$inboundSchema),
|
|
167
|
+
M.fail([400, 401, 403, 404, "4XX"]),
|
|
173
168
|
M.fail("5XX"),
|
|
174
169
|
)(response, req);
|
|
175
170
|
if (!result.ok) {
|
package/src/lib/config.ts
CHANGED
|
@@ -60,9 +60,9 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
60
60
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
|
-
openapiDocVersion: "1.
|
|
64
|
-
sdkVersion: "1.
|
|
65
|
-
genVersion: "2.
|
|
63
|
+
openapiDocVersion: "1.5.0",
|
|
64
|
+
sdkVersion: "1.6.0",
|
|
65
|
+
genVersion: "2.865.2",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 1.
|
|
67
|
+
"speakeasy-sdk/typescript 1.6.0 2.865.2 1.5.0 @aurora-interactive/sensei-productivity",
|
|
68
68
|
} as const;
|
package/src/lib/matchers.ts
CHANGED
|
@@ -257,8 +257,9 @@ export function match<T, E>(
|
|
|
257
257
|
raw = body;
|
|
258
258
|
break;
|
|
259
259
|
default:
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
throw new Error(
|
|
261
|
+
`Unsupported response type: ${encoding satisfies never}`,
|
|
262
|
+
);
|
|
262
263
|
}
|
|
263
264
|
|
|
264
265
|
if (matcher.enc === "fail") {
|
package/src/lib/security.ts
CHANGED
|
@@ -198,8 +198,7 @@ export function resolveSecurity(
|
|
|
198
198
|
applyBearer(state, spec);
|
|
199
199
|
break;
|
|
200
200
|
default:
|
|
201
|
-
spec satisfies never;
|
|
202
|
-
throw SecurityError.unrecognizedType(type);
|
|
201
|
+
throw SecurityError.unrecognizedType((spec satisfies never, type));
|
|
203
202
|
}
|
|
204
203
|
});
|
|
205
204
|
|
|
@@ -11,8 +11,8 @@ import * as types from "../../types/primitives.js";
|
|
|
11
11
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
12
12
|
|
|
13
13
|
export type GetFeedRequest = {
|
|
14
|
-
page?: number | undefined;
|
|
15
14
|
limit?: number | undefined;
|
|
15
|
+
lastPostId?: number | undefined;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
export const GetFeedPostStatus = {
|
|
@@ -22,7 +22,7 @@ export const GetFeedPostStatus = {
|
|
|
22
22
|
} as const;
|
|
23
23
|
export type GetFeedPostStatus = OpenEnum<typeof GetFeedPostStatus>;
|
|
24
24
|
|
|
25
|
-
export type
|
|
25
|
+
export type GetFeedResponse = {
|
|
26
26
|
postId: number;
|
|
27
27
|
userId: number;
|
|
28
28
|
categoryName: string;
|
|
@@ -32,20 +32,10 @@ export type Post = {
|
|
|
32
32
|
caption?: string | undefined;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
/**
|
|
36
|
-
* Paginated list of posts from friends
|
|
37
|
-
*/
|
|
38
|
-
export type GetFeedResponse = {
|
|
39
|
-
posts: Array<Post>;
|
|
40
|
-
page: number;
|
|
41
|
-
limit: number;
|
|
42
|
-
total: number;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
35
|
/** @internal */
|
|
46
36
|
export type GetFeedRequest$Outbound = {
|
|
47
|
-
page: number;
|
|
48
37
|
limit: number;
|
|
38
|
+
lastPostId: number;
|
|
49
39
|
};
|
|
50
40
|
|
|
51
41
|
/** @internal */
|
|
@@ -53,8 +43,8 @@ export const GetFeedRequest$outboundSchema: z.ZodMiniType<
|
|
|
53
43
|
GetFeedRequest$Outbound,
|
|
54
44
|
GetFeedRequest
|
|
55
45
|
> = z.object({
|
|
56
|
-
|
|
57
|
-
|
|
46
|
+
limit: z._default(z.int(), 100),
|
|
47
|
+
lastPostId: z._default(z.int(), -1),
|
|
58
48
|
});
|
|
59
49
|
|
|
60
50
|
export function getFeedRequestToJSON(getFeedRequest: GetFeedRequest): string {
|
|
@@ -68,7 +58,10 @@ export const GetFeedPostStatus$inboundSchema: z.ZodMiniType<
|
|
|
68
58
|
> = openEnums.inboundSchema(GetFeedPostStatus);
|
|
69
59
|
|
|
70
60
|
/** @internal */
|
|
71
|
-
export const
|
|
61
|
+
export const GetFeedResponse$inboundSchema: z.ZodMiniType<
|
|
62
|
+
GetFeedResponse,
|
|
63
|
+
unknown
|
|
64
|
+
> = z.object({
|
|
72
65
|
postId: types.number(),
|
|
73
66
|
userId: types.number(),
|
|
74
67
|
categoryName: types.string(),
|
|
@@ -78,27 +71,6 @@ export const Post$inboundSchema: z.ZodMiniType<Post, unknown> = z.object({
|
|
|
78
71
|
caption: types.optional(types.string()),
|
|
79
72
|
});
|
|
80
73
|
|
|
81
|
-
export function postFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<Post, SDKValidationError> {
|
|
84
|
-
return safeParse(
|
|
85
|
-
jsonString,
|
|
86
|
-
(x) => Post$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
-
`Failed to parse 'Post' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
export const GetFeedResponse$inboundSchema: z.ZodMiniType<
|
|
93
|
-
GetFeedResponse,
|
|
94
|
-
unknown
|
|
95
|
-
> = z.object({
|
|
96
|
-
posts: z.array(z.lazy(() => Post$inboundSchema)),
|
|
97
|
-
page: types.number(),
|
|
98
|
-
limit: types.number(),
|
|
99
|
-
total: types.number(),
|
|
100
|
-
});
|
|
101
|
-
|
|
102
74
|
export function getFeedResponseFromJSON(
|
|
103
75
|
jsonString: string,
|
|
104
76
|
): SafeParseResult<GetFeedResponse, SDKValidationError> {
|
|
@@ -29,7 +29,7 @@ export type GetPostByIdResponse = {
|
|
|
29
29
|
userId: number;
|
|
30
30
|
categoryName: string;
|
|
31
31
|
activityId: number;
|
|
32
|
-
postDate:
|
|
32
|
+
postDate: string;
|
|
33
33
|
postStatus: GetPostByIdPostStatus;
|
|
34
34
|
caption?: string | undefined;
|
|
35
35
|
};
|
|
@@ -70,7 +70,7 @@ export const GetPostByIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
70
70
|
userId: types.number(),
|
|
71
71
|
categoryName: types.string(),
|
|
72
72
|
activityId: types.number(),
|
|
73
|
-
postDate: types.
|
|
73
|
+
postDate: types.string(),
|
|
74
74
|
postStatus: GetPostByIdPostStatus$inboundSchema,
|
|
75
75
|
caption: types.optional(types.string()),
|
|
76
76
|
});
|
package/src/sdk/activities.ts
CHANGED
|
@@ -19,7 +19,7 @@ export class Activities extends ClientSDK {
|
|
|
19
19
|
async getAllOfUser(
|
|
20
20
|
request: operations.GetUserActivitiesRequest,
|
|
21
21
|
options?: RequestOptions,
|
|
22
|
-
): Promise<Array<operations.GetUserActivitiesResponse
|
|
22
|
+
): Promise<Array<operations.GetUserActivitiesResponse>> {
|
|
23
23
|
return unwrapAsync(usersActivitiesGetAllOfUser(
|
|
24
24
|
this,
|
|
25
25
|
request,
|
|
@@ -33,7 +33,7 @@ export class Activities extends ClientSDK {
|
|
|
33
33
|
async me(
|
|
34
34
|
request?: operations.ListActivitiesRequest | undefined,
|
|
35
35
|
options?: RequestOptions,
|
|
36
|
-
): Promise<Array<operations.ListActivitiesResponse
|
|
36
|
+
): Promise<Array<operations.ListActivitiesResponse>> {
|
|
37
37
|
return unwrapAsync(usersActivitiesMe(
|
|
38
38
|
this,
|
|
39
39
|
request,
|
|
@@ -47,7 +47,7 @@ export class Activities extends ClientSDK {
|
|
|
47
47
|
async create(
|
|
48
48
|
request: operations.CreateActivityRequest,
|
|
49
49
|
options?: RequestOptions,
|
|
50
|
-
): Promise<operations.CreateActivityResponse
|
|
50
|
+
): Promise<operations.CreateActivityResponse> {
|
|
51
51
|
return unwrapAsync(usersActivitiesCreate(
|
|
52
52
|
this,
|
|
53
53
|
request,
|
|
@@ -61,7 +61,7 @@ export class Activities extends ClientSDK {
|
|
|
61
61
|
async get(
|
|
62
62
|
request: operations.GetActivityByIdRequest,
|
|
63
63
|
options?: RequestOptions,
|
|
64
|
-
): Promise<operations.GetActivityByIdResponse
|
|
64
|
+
): Promise<operations.GetActivityByIdResponse> {
|
|
65
65
|
return unwrapAsync(usersActivitiesGet(
|
|
66
66
|
this,
|
|
67
67
|
request,
|
|
@@ -75,7 +75,7 @@ export class Activities extends ClientSDK {
|
|
|
75
75
|
async update(
|
|
76
76
|
request: operations.UpdateActivityRequest,
|
|
77
77
|
options?: RequestOptions,
|
|
78
|
-
): Promise<operations.UpdateActivityResponse
|
|
78
|
+
): Promise<operations.UpdateActivityResponse> {
|
|
79
79
|
return unwrapAsync(usersActivitiesUpdate(
|
|
80
80
|
this,
|
|
81
81
|
request,
|
package/src/sdk/categories.ts
CHANGED
|
@@ -16,7 +16,7 @@ export class Categories extends ClientSDK {
|
|
|
16
16
|
*/
|
|
17
17
|
async getAll(
|
|
18
18
|
options?: RequestOptions,
|
|
19
|
-
): Promise<Array<operations.ListCategoriesResponse
|
|
19
|
+
): Promise<Array<operations.ListCategoriesResponse>> {
|
|
20
20
|
return unwrapAsync(categoriesGetAll(
|
|
21
21
|
this,
|
|
22
22
|
options,
|
|
@@ -29,7 +29,7 @@ export class Categories extends ClientSDK {
|
|
|
29
29
|
async create(
|
|
30
30
|
request: operations.CreateCategoryRequest,
|
|
31
31
|
options?: RequestOptions,
|
|
32
|
-
): Promise<operations.CreateCategoryResponse
|
|
32
|
+
): Promise<operations.CreateCategoryResponse> {
|
|
33
33
|
return unwrapAsync(categoriesCreate(
|
|
34
34
|
this,
|
|
35
35
|
request,
|
|
@@ -43,7 +43,7 @@ export class Categories extends ClientSDK {
|
|
|
43
43
|
async update(
|
|
44
44
|
request: operations.UpdateCategoryRequest,
|
|
45
45
|
options?: RequestOptions,
|
|
46
|
-
): Promise<operations.UpdateCategoryResponse
|
|
46
|
+
): Promise<operations.UpdateCategoryResponse> {
|
|
47
47
|
return unwrapAsync(categoriesUpdate(
|
|
48
48
|
this,
|
|
49
49
|
request,
|
package/src/sdk/friends.ts
CHANGED
|
@@ -19,7 +19,7 @@ export class Friends extends ClientSDK {
|
|
|
19
19
|
async list(
|
|
20
20
|
request: operations.ListFriendsRequest,
|
|
21
21
|
options?: RequestOptions,
|
|
22
|
-
): Promise<Array<operations.ListFriendsResponse
|
|
22
|
+
): Promise<Array<operations.ListFriendsResponse>> {
|
|
23
23
|
return unwrapAsync(usersFriendsList(
|
|
24
24
|
this,
|
|
25
25
|
request,
|
|
@@ -32,7 +32,7 @@ export class Friends extends ClientSDK {
|
|
|
32
32
|
*/
|
|
33
33
|
async pending(
|
|
34
34
|
options?: RequestOptions,
|
|
35
|
-
): Promise<Array<operations.PendingFriendRequestsResponse
|
|
35
|
+
): Promise<Array<operations.PendingFriendRequestsResponse>> {
|
|
36
36
|
return unwrapAsync(usersFriendsPending(
|
|
37
37
|
this,
|
|
38
38
|
options,
|
package/src/sdk/posts.ts
CHANGED
|
@@ -18,7 +18,7 @@ export class Posts extends ClientSDK {
|
|
|
18
18
|
async getByUserId(
|
|
19
19
|
request: operations.GetUserPostsRequest,
|
|
20
20
|
options?: RequestOptions,
|
|
21
|
-
): Promise<Array<operations.GetUserPostsResponse
|
|
21
|
+
): Promise<Array<operations.GetUserPostsResponse>> {
|
|
22
22
|
return unwrapAsync(usersPostsGetByUserId(
|
|
23
23
|
this,
|
|
24
24
|
request,
|
|
@@ -32,7 +32,7 @@ export class Posts extends ClientSDK {
|
|
|
32
32
|
async feed(
|
|
33
33
|
request?: operations.GetFeedRequest | undefined,
|
|
34
34
|
options?: RequestOptions,
|
|
35
|
-
): Promise<operations.GetFeedResponse
|
|
35
|
+
): Promise<Array<operations.GetFeedResponse>> {
|
|
36
36
|
return unwrapAsync(usersPostsFeed(
|
|
37
37
|
this,
|
|
38
38
|
request,
|
|
@@ -46,7 +46,7 @@ export class Posts extends ClientSDK {
|
|
|
46
46
|
async getByPostId(
|
|
47
47
|
request: operations.GetPostByIdRequest,
|
|
48
48
|
options?: RequestOptions,
|
|
49
|
-
): Promise<operations.GetPostByIdResponse
|
|
49
|
+
): Promise<operations.GetPostByIdResponse> {
|
|
50
50
|
return unwrapAsync(usersPostsGetByPostId(
|
|
51
51
|
this,
|
|
52
52
|
request,
|
|
@@ -60,7 +60,7 @@ export class Posts extends ClientSDK {
|
|
|
60
60
|
async update(
|
|
61
61
|
request: operations.UpdatePostRequest,
|
|
62
62
|
options?: RequestOptions,
|
|
63
|
-
): Promise<operations.UpdatePostResponse
|
|
63
|
+
): Promise<operations.UpdatePostResponse> {
|
|
64
64
|
return unwrapAsync(usersPostsUpdate(
|
|
65
65
|
this,
|
|
66
66
|
request,
|
package/src/sdk/schools.ts
CHANGED
|
@@ -27,7 +27,7 @@ export class Schools extends ClientSDK {
|
|
|
27
27
|
async get(
|
|
28
28
|
request: operations.GetSchoolByIdRequest,
|
|
29
29
|
options?: RequestOptions,
|
|
30
|
-
): Promise<operations.GetSchoolByIdResponse
|
|
30
|
+
): Promise<operations.GetSchoolByIdResponse> {
|
|
31
31
|
return unwrapAsync(schoolsGet(
|
|
32
32
|
this,
|
|
33
33
|
request,
|
package/src/sdk/users.ts
CHANGED
|
@@ -37,7 +37,7 @@ export class Users extends ClientSDK {
|
|
|
37
37
|
async login(
|
|
38
38
|
request: operations.UserLoginRequest,
|
|
39
39
|
options?: RequestOptions,
|
|
40
|
-
): Promise<operations.UserLoginResponse
|
|
40
|
+
): Promise<operations.UserLoginResponse> {
|
|
41
41
|
return unwrapAsync(usersLogin(
|
|
42
42
|
this,
|
|
43
43
|
request,
|
|
@@ -51,7 +51,7 @@ export class Users extends ClientSDK {
|
|
|
51
51
|
async signup(
|
|
52
52
|
request: operations.UserSignupRequest,
|
|
53
53
|
options?: RequestOptions,
|
|
54
|
-
): Promise<operations.UserSignupResponse
|
|
54
|
+
): Promise<operations.UserSignupResponse> {
|
|
55
55
|
return unwrapAsync(usersSignup(
|
|
56
56
|
this,
|
|
57
57
|
request,
|
|
@@ -64,7 +64,7 @@ export class Users extends ClientSDK {
|
|
|
64
64
|
*/
|
|
65
65
|
async me(
|
|
66
66
|
options?: RequestOptions,
|
|
67
|
-
): Promise<operations.GetCurrentUserResponse
|
|
67
|
+
): Promise<operations.GetCurrentUserResponse> {
|
|
68
68
|
return unwrapAsync(usersMe(
|
|
69
69
|
this,
|
|
70
70
|
options,
|
|
@@ -77,7 +77,7 @@ export class Users extends ClientSDK {
|
|
|
77
77
|
async get(
|
|
78
78
|
request: operations.GetUserByIdRequest,
|
|
79
79
|
options?: RequestOptions,
|
|
80
|
-
): Promise<operations.GetUserByIdResponse
|
|
80
|
+
): Promise<operations.GetUserByIdResponse> {
|
|
81
81
|
return unwrapAsync(usersGet(
|
|
82
82
|
this,
|
|
83
83
|
request,
|
|
@@ -91,7 +91,7 @@ export class Users extends ClientSDK {
|
|
|
91
91
|
async update(
|
|
92
92
|
request: operations.UpdateUserRequest,
|
|
93
93
|
options?: RequestOptions,
|
|
94
|
-
): Promise<operations.UpdateUserResponse
|
|
94
|
+
): Promise<operations.UpdateUserResponse> {
|
|
95
95
|
return unwrapAsync(usersUpdate(
|
|
96
96
|
this,
|
|
97
97
|
request,
|