@aurora-interactive/sensei-productivity 1.3.0 → 1.4.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/README.md +15 -0
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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.d.ts +14 -0
- package/dist/commonjs/funcs/users-friends-accept.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-friends-accept.js +127 -0
- package/dist/commonjs/funcs/users-friends-accept.js.map +1 -0
- package/dist/commonjs/funcs/users-friends-list.d.ts +14 -0
- package/dist/commonjs/funcs/users-friends-list.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-friends-list.js +128 -0
- package/dist/commonjs/funcs/users-friends-list.js.map +1 -0
- package/dist/commonjs/funcs/users-friends-pending.d.ts +14 -0
- package/dist/commonjs/funcs/users-friends-pending.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-friends-pending.js +113 -0
- package/dist/commonjs/funcs/users-friends-pending.js.map +1 -0
- package/dist/commonjs/funcs/users-friends-reject.d.ts +14 -0
- package/dist/commonjs/funcs/users-friends-reject.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-friends-reject.js +127 -0
- package/dist/commonjs/funcs/users-friends-reject.js.map +1 -0
- package/dist/commonjs/funcs/users-friends-remove.d.ts +14 -0
- package/dist/commonjs/funcs/users-friends-remove.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-friends-remove.js +127 -0
- package/dist/commonjs/funcs/users-friends-remove.js.map +1 -0
- package/dist/commonjs/funcs/users-friends-send-request.d.ts +14 -0
- package/dist/commonjs/funcs/users-friends-send-request.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-friends-send-request.js +127 -0
- package/dist/commonjs/funcs/users-friends-send-request.js.map +1 -0
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- package/dist/commonjs/funcs/users-update.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/operations/accept-friend-request.d.ts +15 -0
- package/dist/commonjs/models/operations/accept-friend-request.d.ts.map +1 -0
- package/dist/commonjs/models/operations/accept-friend-request.js +49 -0
- package/dist/commonjs/models/operations/accept-friend-request.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +6 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +6 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/list-friends.d.ts +26 -0
- package/dist/commonjs/models/operations/list-friends.d.ts.map +1 -0
- package/dist/commonjs/models/operations/list-friends.js +65 -0
- package/dist/commonjs/models/operations/list-friends.js.map +1 -0
- package/dist/commonjs/models/operations/pending-friend-requests.d.ts +16 -0
- package/dist/commonjs/models/operations/pending-friend-requests.d.ts.map +1 -0
- package/dist/commonjs/models/operations/pending-friend-requests.js +57 -0
- package/dist/commonjs/models/operations/pending-friend-requests.js.map +1 -0
- package/dist/commonjs/models/operations/reject-friend-request.d.ts +15 -0
- package/dist/commonjs/models/operations/reject-friend-request.d.ts.map +1 -0
- package/dist/commonjs/models/operations/reject-friend-request.js +49 -0
- package/dist/commonjs/models/operations/reject-friend-request.js.map +1 -0
- package/dist/commonjs/models/operations/remove-friend.d.ts +12 -0
- package/dist/commonjs/models/operations/remove-friend.d.ts.map +1 -0
- package/dist/commonjs/models/operations/remove-friend.js +49 -0
- package/dist/commonjs/models/operations/remove-friend.js.map +1 -0
- package/dist/commonjs/models/operations/send-friend-request.d.ts +12 -0
- package/dist/commonjs/models/operations/send-friend-request.d.ts.map +1 -0
- package/dist/commonjs/models/operations/send-friend-request.js +49 -0
- package/dist/commonjs/models/operations/send-friend-request.js.map +1 -0
- 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 +29 -0
- package/dist/commonjs/sdk/friends.d.ts.map +1 -0
- package/dist/commonjs/sdk/friends.js +54 -0
- package/dist/commonjs/sdk/friends.js.map +1 -0
- 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 +8 -5
- package/dist/commonjs/sdk/users.d.ts.map +1 -1
- package/dist/commonjs/sdk/users.js +4 -0
- package/dist/commonjs/sdk/users.js.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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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.d.ts +14 -0
- package/dist/esm/funcs/users-friends-accept.d.ts.map +1 -0
- package/dist/esm/funcs/users-friends-accept.js +91 -0
- package/dist/esm/funcs/users-friends-accept.js.map +1 -0
- package/dist/esm/funcs/users-friends-list.d.ts +14 -0
- package/dist/esm/funcs/users-friends-list.d.ts.map +1 -0
- package/dist/esm/funcs/users-friends-list.js +92 -0
- package/dist/esm/funcs/users-friends-list.js.map +1 -0
- package/dist/esm/funcs/users-friends-pending.d.ts +14 -0
- package/dist/esm/funcs/users-friends-pending.d.ts.map +1 -0
- package/dist/esm/funcs/users-friends-pending.js +77 -0
- package/dist/esm/funcs/users-friends-pending.js.map +1 -0
- package/dist/esm/funcs/users-friends-reject.d.ts +14 -0
- package/dist/esm/funcs/users-friends-reject.d.ts.map +1 -0
- package/dist/esm/funcs/users-friends-reject.js +91 -0
- package/dist/esm/funcs/users-friends-reject.js.map +1 -0
- package/dist/esm/funcs/users-friends-remove.d.ts +14 -0
- package/dist/esm/funcs/users-friends-remove.d.ts.map +1 -0
- package/dist/esm/funcs/users-friends-remove.js +91 -0
- package/dist/esm/funcs/users-friends-remove.js.map +1 -0
- package/dist/esm/funcs/users-friends-send-request.d.ts +14 -0
- package/dist/esm/funcs/users-friends-send-request.d.ts.map +1 -0
- package/dist/esm/funcs/users-friends-send-request.js +91 -0
- package/dist/esm/funcs/users-friends-send-request.js.map +1 -0
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- package/dist/esm/funcs/users-update.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/operations/accept-friend-request.d.ts +15 -0
- package/dist/esm/models/operations/accept-friend-request.d.ts.map +1 -0
- package/dist/esm/models/operations/accept-friend-request.js +12 -0
- package/dist/esm/models/operations/accept-friend-request.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +6 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +6 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/list-friends.d.ts +26 -0
- package/dist/esm/models/operations/list-friends.d.ts.map +1 -0
- package/dist/esm/models/operations/list-friends.js +27 -0
- package/dist/esm/models/operations/list-friends.js.map +1 -0
- package/dist/esm/models/operations/pending-friend-requests.d.ts +16 -0
- package/dist/esm/models/operations/pending-friend-requests.d.ts.map +1 -0
- package/dist/esm/models/operations/pending-friend-requests.js +20 -0
- package/dist/esm/models/operations/pending-friend-requests.js.map +1 -0
- package/dist/esm/models/operations/reject-friend-request.d.ts +15 -0
- package/dist/esm/models/operations/reject-friend-request.d.ts.map +1 -0
- package/dist/esm/models/operations/reject-friend-request.js +12 -0
- package/dist/esm/models/operations/reject-friend-request.js.map +1 -0
- package/dist/esm/models/operations/remove-friend.d.ts +12 -0
- package/dist/esm/models/operations/remove-friend.d.ts.map +1 -0
- package/dist/esm/models/operations/remove-friend.js +12 -0
- package/dist/esm/models/operations/remove-friend.js.map +1 -0
- package/dist/esm/models/operations/send-friend-request.d.ts +12 -0
- package/dist/esm/models/operations/send-friend-request.d.ts.map +1 -0
- package/dist/esm/models/operations/send-friend-request.js +12 -0
- package/dist/esm/models/operations/send-friend-request.js.map +1 -0
- 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 +29 -0
- package/dist/esm/sdk/friends.d.ts.map +1 -0
- package/dist/esm/sdk/friends.js +50 -0
- package/dist/esm/sdk/friends.js.map +1 -0
- 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 +8 -5
- package/dist/esm/sdk/users.d.ts.map +1 -1
- package/dist/esm/sdk/users.js +4 -0
- package/dist/esm/sdk/users.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/rest-api/cypress/e2e/friend-endpoints.cy.js +262 -0
- package/rest-api/cypress/e2e/{school-endpoints.cy.ts → school-endpoints.cy.js} +1 -1
- package/rest-api/cypress.config.ts +45 -2
- package/rest-api/index.js +8 -1
- package/rest-api/lib/users.js +7 -5
- package/rest-api/routes/FriendFunctions.js +266 -0
- package/rest-api/routes/UserActivityFunctions.js +1 -1
- package/src/funcs/categories-create.ts +14 -6
- package/src/funcs/categories-delete.ts +3 -2
- package/src/funcs/categories-get-all.ts +14 -6
- package/src/funcs/categories-update.ts +14 -6
- package/src/funcs/schools-get-all.ts +2 -2
- package/src/funcs/schools-get.ts +11 -6
- package/src/funcs/users-activities-create.ts +14 -6
- package/src/funcs/users-activities-delete.ts +3 -2
- package/src/funcs/users-activities-get-all-of-user.ts +18 -6
- package/src/funcs/users-activities-get.ts +14 -6
- package/src/funcs/users-activities-me.ts +14 -6
- package/src/funcs/users-activities-update.ts +14 -6
- package/src/funcs/users-delete.ts +3 -2
- package/src/funcs/users-friends-accept.ts +176 -0
- package/src/funcs/users-friends-list.ts +182 -0
- package/src/funcs/users-friends-pending.ts +162 -0
- package/src/funcs/users-friends-reject.ts +176 -0
- package/src/funcs/users-friends-remove.ts +175 -0
- package/src/funcs/users-friends-send-request.ts +176 -0
- package/src/funcs/users-get.ts +11 -6
- package/src/funcs/users-login.ts +11 -6
- package/src/funcs/users-me.ts +14 -6
- package/src/funcs/users-posts-delete.ts +3 -2
- package/src/funcs/users-posts-feed.ts +8 -6
- package/src/funcs/users-posts-get-by-post-id.ts +11 -6
- package/src/funcs/users-posts-get-by-user-id.ts +14 -6
- package/src/funcs/users-posts-update.ts +11 -6
- package/src/funcs/users-signup.ts +8 -6
- package/src/funcs/users-update.ts +11 -6
- package/src/lib/config.ts +3 -3
- package/src/models/operations/accept-friend-request.ts +33 -0
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/list-friends.ts +68 -0
- package/src/models/operations/pending-friend-requests.ts +43 -0
- package/src/models/operations/reject-friend-request.ts +33 -0
- package/src/models/operations/remove-friend.ts +30 -0
- package/src/models/operations/send-friend-request.ts +30 -0
- package/src/sdk/activities.ts +5 -5
- package/src/sdk/categories.ts +3 -3
- package/src/sdk/friends.ts +97 -0
- package/src/sdk/posts.ts +4 -4
- package/src/sdk/schools.ts +1 -1
- package/src/sdk/users.ts +11 -5
- /package/rest-api/cypress/e2e/{activity-post-endpoints.cy.ts → activity-post-endpoints.cy.js} +0 -0
- /package/rest-api/cypress/e2e/{category-endpoints.cy.ts → category-endpoints.cy.js} +0 -0
- /package/rest-api/cypress/e2e/{user-activity-endpoints.cy.ts → user-activity-endpoints.cy.js} +0 -0
- /package/rest-api/cypress/e2e/{user-endpoints.cy.ts → user-endpoints.cy.js} +0 -0
|
@@ -24,6 +24,7 @@ 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";
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Get a user's posts (respects post visibility)
|
|
@@ -34,7 +35,7 @@ export function usersPostsGetByUserId(
|
|
|
34
35
|
options?: RequestOptions,
|
|
35
36
|
): APIPromise<
|
|
36
37
|
Result<
|
|
37
|
-
Array<operations.GetUserPostsResponse
|
|
38
|
+
Array<operations.GetUserPostsResponse> | undefined,
|
|
38
39
|
| SenseiProductivityError
|
|
39
40
|
| ResponseValidationError
|
|
40
41
|
| ConnectionError
|
|
@@ -59,7 +60,7 @@ async function $do(
|
|
|
59
60
|
): Promise<
|
|
60
61
|
[
|
|
61
62
|
Result<
|
|
62
|
-
Array<operations.GetUserPostsResponse
|
|
63
|
+
Array<operations.GetUserPostsResponse> | undefined,
|
|
63
64
|
| SenseiProductivityError
|
|
64
65
|
| ResponseValidationError
|
|
65
66
|
| ConnectionError
|
|
@@ -142,7 +143,7 @@ async function $do(
|
|
|
142
143
|
|
|
143
144
|
const doResult = await client._do(req, {
|
|
144
145
|
context,
|
|
145
|
-
errorCodes: ["
|
|
146
|
+
errorCodes: ["429", "5XX"],
|
|
146
147
|
retryConfig: context.retryConfig,
|
|
147
148
|
retryCodes: context.retryCodes,
|
|
148
149
|
});
|
|
@@ -152,7 +153,7 @@ async function $do(
|
|
|
152
153
|
const response = doResult.value;
|
|
153
154
|
|
|
154
155
|
const [result] = await M.match<
|
|
155
|
-
Array<operations.GetUserPostsResponse
|
|
156
|
+
Array<operations.GetUserPostsResponse> | undefined,
|
|
156
157
|
| SenseiProductivityError
|
|
157
158
|
| ResponseValidationError
|
|
158
159
|
| ConnectionError
|
|
@@ -162,8 +163,15 @@ async function $do(
|
|
|
162
163
|
| UnexpectedClientError
|
|
163
164
|
| SDKValidationError
|
|
164
165
|
>(
|
|
165
|
-
M.json(
|
|
166
|
-
|
|
166
|
+
M.json(
|
|
167
|
+
200,
|
|
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),
|
|
167
175
|
M.fail("5XX"),
|
|
168
176
|
)(response, req);
|
|
169
177
|
if (!result.ok) {
|
|
@@ -24,6 +24,7 @@ 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";
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Update a post's caption or visibility
|
|
@@ -34,7 +35,7 @@ export function usersPostsUpdate(
|
|
|
34
35
|
options?: RequestOptions,
|
|
35
36
|
): APIPromise<
|
|
36
37
|
Result<
|
|
37
|
-
operations.UpdatePostResponse,
|
|
38
|
+
operations.UpdatePostResponse | undefined,
|
|
38
39
|
| SenseiProductivityError
|
|
39
40
|
| ResponseValidationError
|
|
40
41
|
| ConnectionError
|
|
@@ -59,7 +60,7 @@ async function $do(
|
|
|
59
60
|
): Promise<
|
|
60
61
|
[
|
|
61
62
|
Result<
|
|
62
|
-
operations.UpdatePostResponse,
|
|
63
|
+
operations.UpdatePostResponse | undefined,
|
|
63
64
|
| SenseiProductivityError
|
|
64
65
|
| ResponseValidationError
|
|
65
66
|
| ConnectionError
|
|
@@ -143,7 +144,7 @@ async function $do(
|
|
|
143
144
|
|
|
144
145
|
const doResult = await client._do(req, {
|
|
145
146
|
context,
|
|
146
|
-
errorCodes: ["
|
|
147
|
+
errorCodes: ["429", "5XX"],
|
|
147
148
|
retryConfig: context.retryConfig,
|
|
148
149
|
retryCodes: context.retryCodes,
|
|
149
150
|
});
|
|
@@ -153,7 +154,7 @@ async function $do(
|
|
|
153
154
|
const response = doResult.value;
|
|
154
155
|
|
|
155
156
|
const [result] = await M.match<
|
|
156
|
-
operations.UpdatePostResponse,
|
|
157
|
+
operations.UpdatePostResponse | undefined,
|
|
157
158
|
| SenseiProductivityError
|
|
158
159
|
| ResponseValidationError
|
|
159
160
|
| ConnectionError
|
|
@@ -163,8 +164,12 @@ async function $do(
|
|
|
163
164
|
| UnexpectedClientError
|
|
164
165
|
| SDKValidationError
|
|
165
166
|
>(
|
|
166
|
-
M.json(200, operations.UpdatePostResponse$inboundSchema),
|
|
167
|
-
M.
|
|
167
|
+
M.json(200, types$.optional(operations.UpdatePostResponse$inboundSchema)),
|
|
168
|
+
M.nil(
|
|
169
|
+
[400, 401, 403, 404],
|
|
170
|
+
types$.optional(operations.UpdatePostResponse$inboundSchema),
|
|
171
|
+
),
|
|
172
|
+
M.fail(429),
|
|
168
173
|
M.fail("5XX"),
|
|
169
174
|
)(response, req);
|
|
170
175
|
if (!result.ok) {
|
|
@@ -24,6 +24,7 @@ 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";
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Signup the given user
|
|
@@ -34,7 +35,7 @@ export function usersSignup(
|
|
|
34
35
|
options?: RequestOptions,
|
|
35
36
|
): APIPromise<
|
|
36
37
|
Result<
|
|
37
|
-
operations.UserSignupResponse,
|
|
38
|
+
operations.UserSignupResponse | undefined,
|
|
38
39
|
| SenseiProductivityError
|
|
39
40
|
| ResponseValidationError
|
|
40
41
|
| ConnectionError
|
|
@@ -59,7 +60,7 @@ async function $do(
|
|
|
59
60
|
): Promise<
|
|
60
61
|
[
|
|
61
62
|
Result<
|
|
62
|
-
operations.UserSignupResponse,
|
|
63
|
+
operations.UserSignupResponse | undefined,
|
|
63
64
|
| SenseiProductivityError
|
|
64
65
|
| ResponseValidationError
|
|
65
66
|
| ConnectionError
|
|
@@ -136,7 +137,7 @@ async function $do(
|
|
|
136
137
|
|
|
137
138
|
const doResult = await client._do(req, {
|
|
138
139
|
context,
|
|
139
|
-
errorCodes: ["
|
|
140
|
+
errorCodes: ["429", "5XX"],
|
|
140
141
|
retryConfig: context.retryConfig,
|
|
141
142
|
retryCodes: context.retryCodes,
|
|
142
143
|
});
|
|
@@ -146,7 +147,7 @@ async function $do(
|
|
|
146
147
|
const response = doResult.value;
|
|
147
148
|
|
|
148
149
|
const [result] = await M.match<
|
|
149
|
-
operations.UserSignupResponse,
|
|
150
|
+
operations.UserSignupResponse | undefined,
|
|
150
151
|
| SenseiProductivityError
|
|
151
152
|
| ResponseValidationError
|
|
152
153
|
| ConnectionError
|
|
@@ -156,8 +157,9 @@ async function $do(
|
|
|
156
157
|
| UnexpectedClientError
|
|
157
158
|
| SDKValidationError
|
|
158
159
|
>(
|
|
159
|
-
M.json(200, operations.UserSignupResponse$inboundSchema),
|
|
160
|
-
M.
|
|
160
|
+
M.json(200, types$.optional(operations.UserSignupResponse$inboundSchema)),
|
|
161
|
+
M.nil(400, types$.optional(operations.UserSignupResponse$inboundSchema)),
|
|
162
|
+
M.fail(429),
|
|
161
163
|
M.fail("5XX"),
|
|
162
164
|
)(response, req);
|
|
163
165
|
if (!result.ok) {
|
|
@@ -24,6 +24,7 @@ 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";
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
30
|
* Update a user's profile (own profile only)
|
|
@@ -34,7 +35,7 @@ export function usersUpdate(
|
|
|
34
35
|
options?: RequestOptions,
|
|
35
36
|
): APIPromise<
|
|
36
37
|
Result<
|
|
37
|
-
operations.UpdateUserResponse,
|
|
38
|
+
operations.UpdateUserResponse | undefined,
|
|
38
39
|
| SenseiProductivityError
|
|
39
40
|
| ResponseValidationError
|
|
40
41
|
| ConnectionError
|
|
@@ -59,7 +60,7 @@ async function $do(
|
|
|
59
60
|
): Promise<
|
|
60
61
|
[
|
|
61
62
|
Result<
|
|
62
|
-
operations.UpdateUserResponse,
|
|
63
|
+
operations.UpdateUserResponse | undefined,
|
|
63
64
|
| SenseiProductivityError
|
|
64
65
|
| ResponseValidationError
|
|
65
66
|
| ConnectionError
|
|
@@ -143,7 +144,7 @@ async function $do(
|
|
|
143
144
|
|
|
144
145
|
const doResult = await client._do(req, {
|
|
145
146
|
context,
|
|
146
|
-
errorCodes: ["
|
|
147
|
+
errorCodes: ["429", "5XX"],
|
|
147
148
|
retryConfig: context.retryConfig,
|
|
148
149
|
retryCodes: context.retryCodes,
|
|
149
150
|
});
|
|
@@ -153,7 +154,7 @@ async function $do(
|
|
|
153
154
|
const response = doResult.value;
|
|
154
155
|
|
|
155
156
|
const [result] = await M.match<
|
|
156
|
-
operations.UpdateUserResponse,
|
|
157
|
+
operations.UpdateUserResponse | undefined,
|
|
157
158
|
| SenseiProductivityError
|
|
158
159
|
| ResponseValidationError
|
|
159
160
|
| ConnectionError
|
|
@@ -163,8 +164,12 @@ async function $do(
|
|
|
163
164
|
| UnexpectedClientError
|
|
164
165
|
| SDKValidationError
|
|
165
166
|
>(
|
|
166
|
-
M.json(200, operations.UpdateUserResponse$inboundSchema),
|
|
167
|
-
M.
|
|
167
|
+
M.json(200, types$.optional(operations.UpdateUserResponse$inboundSchema)),
|
|
168
|
+
M.nil(
|
|
169
|
+
[400, 401, 403, 404],
|
|
170
|
+
types$.optional(operations.UpdateUserResponse$inboundSchema),
|
|
171
|
+
),
|
|
172
|
+
M.fail(429),
|
|
168
173
|
M.fail("5XX"),
|
|
169
174
|
)(response, req);
|
|
170
175
|
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.
|
|
63
|
+
openapiDocVersion: "1.4.0",
|
|
64
|
+
sdkVersion: "1.4.0",
|
|
65
65
|
genVersion: "2.845.15",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 1.
|
|
67
|
+
"speakeasy-sdk/typescript 1.4.0 2.845.15 1.4.0 @aurora-interactive/sensei-productivity",
|
|
68
68
|
} as const;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type AcceptFriendRequestRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The user_id of the user whose request you are accepting
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type AcceptFriendRequestRequest$Outbound = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const AcceptFriendRequestRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
AcceptFriendRequestRequest$Outbound,
|
|
22
|
+
AcceptFriendRequestRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.int(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function acceptFriendRequestRequestToJSON(
|
|
28
|
+
acceptFriendRequestRequest: AcceptFriendRequestRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
AcceptFriendRequestRequest$outboundSchema.parse(acceptFriendRequestRequest),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./accept-friend-request.js";
|
|
5
6
|
export * from "./create-activity.js";
|
|
6
7
|
export * from "./create-category.js";
|
|
7
8
|
export * from "./delete-activity.js";
|
|
@@ -18,7 +19,12 @@ export * from "./get-user-by-id.js";
|
|
|
18
19
|
export * from "./get-user-posts.js";
|
|
19
20
|
export * from "./list-activities.js";
|
|
20
21
|
export * from "./list-categories.js";
|
|
22
|
+
export * from "./list-friends.js";
|
|
21
23
|
export * from "./list-schools.js";
|
|
24
|
+
export * from "./pending-friend-requests.js";
|
|
25
|
+
export * from "./reject-friend-request.js";
|
|
26
|
+
export * from "./remove-friend.js";
|
|
27
|
+
export * from "./send-friend-request.js";
|
|
22
28
|
export * from "./update-activity.js";
|
|
23
29
|
export * from "./update-category.js";
|
|
24
30
|
export * from "./update-post.js";
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type ListFriendsRequest = {
|
|
12
|
+
id: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type ListFriendsResponse = {
|
|
16
|
+
userId: number;
|
|
17
|
+
firstName: string;
|
|
18
|
+
lastName: string;
|
|
19
|
+
username: string;
|
|
20
|
+
email: string;
|
|
21
|
+
schoolId: number;
|
|
22
|
+
schoolName: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type ListFriendsRequest$Outbound = {
|
|
27
|
+
id: number;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ListFriendsRequest$outboundSchema: z.ZodMiniType<
|
|
32
|
+
ListFriendsRequest$Outbound,
|
|
33
|
+
ListFriendsRequest
|
|
34
|
+
> = z.object({
|
|
35
|
+
id: z.int(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export function listFriendsRequestToJSON(
|
|
39
|
+
listFriendsRequest: ListFriendsRequest,
|
|
40
|
+
): string {
|
|
41
|
+
return JSON.stringify(
|
|
42
|
+
ListFriendsRequest$outboundSchema.parse(listFriendsRequest),
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const ListFriendsResponse$inboundSchema: z.ZodMiniType<
|
|
48
|
+
ListFriendsResponse,
|
|
49
|
+
unknown
|
|
50
|
+
> = z.object({
|
|
51
|
+
userId: types.number(),
|
|
52
|
+
firstName: types.string(),
|
|
53
|
+
lastName: types.string(),
|
|
54
|
+
username: types.string(),
|
|
55
|
+
email: types.string(),
|
|
56
|
+
schoolId: types.number(),
|
|
57
|
+
schoolName: types.string(),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function listFriendsResponseFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<ListFriendsResponse, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => ListFriendsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'ListFriendsResponse' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
10
|
+
|
|
11
|
+
export type PendingFriendRequestsResponse = {
|
|
12
|
+
userId: number;
|
|
13
|
+
firstName: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
username: string;
|
|
16
|
+
email: string;
|
|
17
|
+
schoolId: number;
|
|
18
|
+
schoolName: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const PendingFriendRequestsResponse$inboundSchema: z.ZodMiniType<
|
|
23
|
+
PendingFriendRequestsResponse,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
userId: types.number(),
|
|
27
|
+
firstName: types.string(),
|
|
28
|
+
lastName: types.string(),
|
|
29
|
+
username: types.string(),
|
|
30
|
+
email: types.string(),
|
|
31
|
+
schoolId: types.number(),
|
|
32
|
+
schoolName: types.string(),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function pendingFriendRequestsResponseFromJSON(
|
|
36
|
+
jsonString: string,
|
|
37
|
+
): SafeParseResult<PendingFriendRequestsResponse, SDKValidationError> {
|
|
38
|
+
return safeParse(
|
|
39
|
+
jsonString,
|
|
40
|
+
(x) => PendingFriendRequestsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
41
|
+
`Failed to parse 'PendingFriendRequestsResponse' from JSON`,
|
|
42
|
+
);
|
|
43
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type RejectFriendRequestRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* The user_id of the user whose request you are rejecting
|
|
10
|
+
*/
|
|
11
|
+
id: number;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type RejectFriendRequestRequest$Outbound = {
|
|
16
|
+
id: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const RejectFriendRequestRequest$outboundSchema: z.ZodMiniType<
|
|
21
|
+
RejectFriendRequestRequest$Outbound,
|
|
22
|
+
RejectFriendRequestRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
id: z.int(),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function rejectFriendRequestRequestToJSON(
|
|
28
|
+
rejectFriendRequestRequest: RejectFriendRequestRequest,
|
|
29
|
+
): string {
|
|
30
|
+
return JSON.stringify(
|
|
31
|
+
RejectFriendRequestRequest$outboundSchema.parse(rejectFriendRequestRequest),
|
|
32
|
+
);
|
|
33
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type RemoveFriendRequest = {
|
|
8
|
+
friendId: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type RemoveFriendRequest$Outbound = {
|
|
13
|
+
friendId: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const RemoveFriendRequest$outboundSchema: z.ZodMiniType<
|
|
18
|
+
RemoveFriendRequest$Outbound,
|
|
19
|
+
RemoveFriendRequest
|
|
20
|
+
> = z.object({
|
|
21
|
+
friendId: z.int(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function removeFriendRequestToJSON(
|
|
25
|
+
removeFriendRequest: RemoveFriendRequest,
|
|
26
|
+
): string {
|
|
27
|
+
return JSON.stringify(
|
|
28
|
+
RemoveFriendRequest$outboundSchema.parse(removeFriendRequest),
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
|
|
7
|
+
export type SendFriendRequestRequest = {
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type SendFriendRequestRequest$Outbound = {
|
|
13
|
+
id: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const SendFriendRequestRequest$outboundSchema: z.ZodMiniType<
|
|
18
|
+
SendFriendRequestRequest$Outbound,
|
|
19
|
+
SendFriendRequestRequest
|
|
20
|
+
> = z.object({
|
|
21
|
+
id: z.int(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function sendFriendRequestRequestToJSON(
|
|
25
|
+
sendFriendRequestRequest: SendFriendRequestRequest,
|
|
26
|
+
): string {
|
|
27
|
+
return JSON.stringify(
|
|
28
|
+
SendFriendRequestRequest$outboundSchema.parse(sendFriendRequestRequest),
|
|
29
|
+
);
|
|
30
|
+
}
|
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> | undefined> {
|
|
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> | undefined> {
|
|
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 | undefined> {
|
|
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 | undefined> {
|
|
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 | undefined> {
|
|
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> | undefined> {
|
|
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 | undefined> {
|
|
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 | undefined> {
|
|
47
47
|
return unwrapAsync(categoriesUpdate(
|
|
48
48
|
this,
|
|
49
49
|
request,
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { usersFriendsAccept } from "../funcs/users-friends-accept.js";
|
|
6
|
+
import { usersFriendsList } from "../funcs/users-friends-list.js";
|
|
7
|
+
import { usersFriendsPending } from "../funcs/users-friends-pending.js";
|
|
8
|
+
import { usersFriendsReject } from "../funcs/users-friends-reject.js";
|
|
9
|
+
import { usersFriendsRemove } from "../funcs/users-friends-remove.js";
|
|
10
|
+
import { usersFriendsSendRequest } from "../funcs/users-friends-send-request.js";
|
|
11
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import * as operations from "../models/operations/index.js";
|
|
13
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
14
|
+
|
|
15
|
+
export class Friends extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* List a user's friends
|
|
18
|
+
*/
|
|
19
|
+
async list(
|
|
20
|
+
request: operations.ListFriendsRequest,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<Array<operations.ListFriendsResponse> | undefined> {
|
|
23
|
+
return unwrapAsync(usersFriendsList(
|
|
24
|
+
this,
|
|
25
|
+
request,
|
|
26
|
+
options,
|
|
27
|
+
));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Get all pending friend requests
|
|
32
|
+
*/
|
|
33
|
+
async pending(
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<Array<operations.PendingFriendRequestsResponse> | undefined> {
|
|
36
|
+
return unwrapAsync(usersFriendsPending(
|
|
37
|
+
this,
|
|
38
|
+
options,
|
|
39
|
+
));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Send a friend request to a user
|
|
44
|
+
*/
|
|
45
|
+
async sendRequest(
|
|
46
|
+
request: operations.SendFriendRequestRequest,
|
|
47
|
+
options?: RequestOptions,
|
|
48
|
+
): Promise<void> {
|
|
49
|
+
return unwrapAsync(usersFriendsSendRequest(
|
|
50
|
+
this,
|
|
51
|
+
request,
|
|
52
|
+
options,
|
|
53
|
+
));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Accept a pending friend request
|
|
58
|
+
*/
|
|
59
|
+
async accept(
|
|
60
|
+
request: operations.AcceptFriendRequestRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<void> {
|
|
63
|
+
return unwrapAsync(usersFriendsAccept(
|
|
64
|
+
this,
|
|
65
|
+
request,
|
|
66
|
+
options,
|
|
67
|
+
));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Reject a pending friend request
|
|
72
|
+
*/
|
|
73
|
+
async reject(
|
|
74
|
+
request: operations.RejectFriendRequestRequest,
|
|
75
|
+
options?: RequestOptions,
|
|
76
|
+
): Promise<void> {
|
|
77
|
+
return unwrapAsync(usersFriendsReject(
|
|
78
|
+
this,
|
|
79
|
+
request,
|
|
80
|
+
options,
|
|
81
|
+
));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Remove a friend
|
|
86
|
+
*/
|
|
87
|
+
async remove(
|
|
88
|
+
request: operations.RemoveFriendRequest,
|
|
89
|
+
options?: RequestOptions,
|
|
90
|
+
): Promise<void> {
|
|
91
|
+
return unwrapAsync(usersFriendsRemove(
|
|
92
|
+
this,
|
|
93
|
+
request,
|
|
94
|
+
options,
|
|
95
|
+
));
|
|
96
|
+
}
|
|
97
|
+
}
|