@aurora-interactive/sensei-productivity 1.6.0 → 1.8.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 +4 -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.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 +3 -2
- 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 +3 -2
- 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 +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-like.d.ts +14 -0
- package/dist/commonjs/funcs/users-posts-like.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-posts-like.js +127 -0
- package/dist/commonjs/funcs/users-posts-like.js.map +1 -0
- package/dist/commonjs/funcs/users-posts-remove-like.d.ts +14 -0
- package/dist/commonjs/funcs/users-posts-remove-like.d.ts.map +1 -0
- package/dist/commonjs/funcs/users-posts-remove-like.js +127 -0
- package/dist/commonjs/funcs/users-posts-remove-like.js.map +1 -0
- 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 +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/lib/files.d.ts +13 -0
- package/dist/commonjs/lib/files.d.ts.map +1 -1
- package/dist/commonjs/lib/files.js +19 -0
- package/dist/commonjs/lib/files.js.map +1 -1
- package/dist/commonjs/lib/sdks.d.ts.map +1 -1
- package/dist/commonjs/lib/sdks.js +8 -4
- package/dist/commonjs/lib/sdks.js.map +1 -1
- package/dist/commonjs/lib/url.d.ts.map +1 -1
- package/dist/commonjs/lib/url.js +4 -2
- package/dist/commonjs/lib/url.js.map +1 -1
- package/dist/commonjs/models/operations/get-feed.d.ts +2 -0
- package/dist/commonjs/models/operations/get-feed.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-feed.js +2 -0
- package/dist/commonjs/models/operations/get-feed.js.map +1 -1
- package/dist/commonjs/models/operations/get-post-by-id.d.ts +2 -0
- package/dist/commonjs/models/operations/get-post-by-id.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-post-by-id.js +2 -0
- package/dist/commonjs/models/operations/get-post-by-id.js.map +1 -1
- package/dist/commonjs/models/operations/get-user-posts.d.ts +2 -0
- package/dist/commonjs/models/operations/get-user-posts.d.ts.map +1 -1
- package/dist/commonjs/models/operations/get-user-posts.js +2 -0
- package/dist/commonjs/models/operations/get-user-posts.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/like-post.d.ts +12 -0
- package/dist/commonjs/models/operations/like-post.d.ts.map +1 -0
- package/dist/commonjs/models/operations/like-post.js +49 -0
- package/dist/commonjs/models/operations/like-post.js.map +1 -0
- package/dist/commonjs/models/operations/unlike-post.d.ts +12 -0
- package/dist/commonjs/models/operations/unlike-post.d.ts.map +1 -0
- package/dist/commonjs/models/operations/unlike-post.js +49 -0
- package/dist/commonjs/models/operations/unlike-post.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 +2 -2
- package/dist/commonjs/sdk/friends.d.ts.map +1 -1
- package/dist/commonjs/sdk/posts.d.ts +12 -4
- package/dist/commonjs/sdk/posts.d.ts.map +1 -1
- package/dist/commonjs/sdk/posts.js +14 -0
- package/dist/commonjs/sdk/posts.js.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 +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.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 +3 -2
- 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 +3 -2
- 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 +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-like.d.ts +14 -0
- package/dist/esm/funcs/users-posts-like.d.ts.map +1 -0
- package/dist/esm/funcs/users-posts-like.js +91 -0
- package/dist/esm/funcs/users-posts-like.js.map +1 -0
- package/dist/esm/funcs/users-posts-remove-like.d.ts +14 -0
- package/dist/esm/funcs/users-posts-remove-like.d.ts.map +1 -0
- package/dist/esm/funcs/users-posts-remove-like.js +91 -0
- package/dist/esm/funcs/users-posts-remove-like.js.map +1 -0
- 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 +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/lib/files.d.ts +13 -0
- package/dist/esm/lib/files.d.ts.map +1 -1
- package/dist/esm/lib/files.js +18 -0
- package/dist/esm/lib/files.js.map +1 -1
- package/dist/esm/lib/sdks.d.ts.map +1 -1
- package/dist/esm/lib/sdks.js +8 -4
- package/dist/esm/lib/sdks.js.map +1 -1
- package/dist/esm/lib/url.d.ts.map +1 -1
- package/dist/esm/lib/url.js +4 -2
- package/dist/esm/lib/url.js.map +1 -1
- package/dist/esm/models/operations/get-feed.d.ts +2 -0
- package/dist/esm/models/operations/get-feed.d.ts.map +1 -1
- package/dist/esm/models/operations/get-feed.js +2 -0
- package/dist/esm/models/operations/get-feed.js.map +1 -1
- package/dist/esm/models/operations/get-post-by-id.d.ts +2 -0
- package/dist/esm/models/operations/get-post-by-id.d.ts.map +1 -1
- package/dist/esm/models/operations/get-post-by-id.js +2 -0
- package/dist/esm/models/operations/get-post-by-id.js.map +1 -1
- package/dist/esm/models/operations/get-user-posts.d.ts +2 -0
- package/dist/esm/models/operations/get-user-posts.d.ts.map +1 -1
- package/dist/esm/models/operations/get-user-posts.js +2 -0
- package/dist/esm/models/operations/get-user-posts.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/like-post.d.ts +12 -0
- package/dist/esm/models/operations/like-post.d.ts.map +1 -0
- package/dist/esm/models/operations/like-post.js +12 -0
- package/dist/esm/models/operations/like-post.js.map +1 -0
- package/dist/esm/models/operations/unlike-post.d.ts +12 -0
- package/dist/esm/models/operations/unlike-post.d.ts.map +1 -0
- package/dist/esm/models/operations/unlike-post.js +12 -0
- package/dist/esm/models/operations/unlike-post.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 +2 -2
- package/dist/esm/sdk/friends.d.ts.map +1 -1
- package/dist/esm/sdk/posts.d.ts +12 -4
- package/dist/esm/sdk/posts.d.ts.map +1 -1
- package/dist/esm/sdk/posts.js +14 -0
- package/dist/esm/sdk/posts.js.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 +1 -1
- package/rest-api/cypress/e2e/activity-post-endpoints.cy.js +78 -0
- package/rest-api/cypress.config.ts +1 -0
- package/rest-api/index.js +2 -0
- package/rest-api/routes/ActivityPostFunctions.js +107 -10
- package/src/funcs/categories-create.ts +14 -6
- package/src/funcs/categories-delete.ts +3 -3
- package/src/funcs/categories-get-all.ts +14 -6
- package/src/funcs/categories-update.ts +14 -7
- package/src/funcs/schools-get-all.ts +2 -2
- package/src/funcs/schools-get.ts +11 -7
- package/src/funcs/users-activities-create.ts +14 -6
- package/src/funcs/users-activities-delete.ts +3 -3
- package/src/funcs/users-activities-get-all-of-user.ts +18 -7
- package/src/funcs/users-activities-get.ts +14 -7
- package/src/funcs/users-activities-me.ts +14 -6
- package/src/funcs/users-activities-update.ts +14 -7
- package/src/funcs/users-delete.ts +3 -3
- package/src/funcs/users-friends-accept.ts +3 -3
- package/src/funcs/users-friends-list.ts +14 -7
- package/src/funcs/users-friends-pending.ts +15 -6
- package/src/funcs/users-friends-reject.ts +3 -3
- package/src/funcs/users-friends-remove.ts +3 -3
- package/src/funcs/users-friends-send-request.ts +3 -3
- package/src/funcs/users-get.ts +11 -7
- package/src/funcs/users-login.ts +11 -6
- package/src/funcs/users-me.ts +14 -6
- package/src/funcs/users-posts-delete.ts +3 -3
- package/src/funcs/users-posts-feed.ts +14 -6
- package/src/funcs/users-posts-get-by-post-id.ts +11 -7
- package/src/funcs/users-posts-get-by-user-id.ts +14 -7
- package/src/funcs/users-posts-like.ts +174 -0
- package/src/funcs/users-posts-remove-like.ts +174 -0
- package/src/funcs/users-posts-update.ts +11 -7
- package/src/funcs/users-signup.ts +8 -6
- package/src/funcs/users-update.ts +11 -7
- package/src/lib/config.ts +4 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +7 -5
- package/src/lib/url.ts +16 -14
- package/src/models/operations/get-feed.ts +4 -0
- package/src/models/operations/get-post-by-id.ts +4 -0
- package/src/models/operations/get-user-posts.ts +4 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/like-post.ts +28 -0
- package/src/models/operations/unlike-post.ts +30 -0
- 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 +34 -4
- package/src/sdk/schools.ts +1 -1
- package/src/sdk/users.ts +5 -5
|
@@ -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
|
|
@@ -89,7 +90,6 @@ async function $do(
|
|
|
89
90
|
charEncoding: "percent",
|
|
90
91
|
}),
|
|
91
92
|
};
|
|
92
|
-
|
|
93
93
|
const path = pathToFunc("/api/v1/users/{id}")(pathParams);
|
|
94
94
|
|
|
95
95
|
const headers = new Headers(compactMap({
|
|
@@ -143,7 +143,7 @@ async function $do(
|
|
|
143
143
|
|
|
144
144
|
const doResult = await client._do(req, {
|
|
145
145
|
context,
|
|
146
|
-
errorCodes: ["
|
|
146
|
+
errorCodes: ["429", "5XX"],
|
|
147
147
|
retryConfig: context.retryConfig,
|
|
148
148
|
retryCodes: context.retryCodes,
|
|
149
149
|
});
|
|
@@ -153,7 +153,7 @@ async function $do(
|
|
|
153
153
|
const response = doResult.value;
|
|
154
154
|
|
|
155
155
|
const [result] = await M.match<
|
|
156
|
-
operations.UpdateUserResponse,
|
|
156
|
+
operations.UpdateUserResponse | undefined,
|
|
157
157
|
| SenseiProductivityError
|
|
158
158
|
| ResponseValidationError
|
|
159
159
|
| ConnectionError
|
|
@@ -163,8 +163,12 @@ async function $do(
|
|
|
163
163
|
| UnexpectedClientError
|
|
164
164
|
| SDKValidationError
|
|
165
165
|
>(
|
|
166
|
-
M.json(200, operations.UpdateUserResponse$inboundSchema),
|
|
167
|
-
M.
|
|
166
|
+
M.json(200, types$.optional(operations.UpdateUserResponse$inboundSchema)),
|
|
167
|
+
M.nil(
|
|
168
|
+
[400, 401, 403, 404],
|
|
169
|
+
types$.optional(operations.UpdateUserResponse$inboundSchema),
|
|
170
|
+
),
|
|
171
|
+
M.fail(429),
|
|
168
172
|
M.fail("5XX"),
|
|
169
173
|
)(response, req);
|
|
170
174
|
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.8.0",
|
|
64
|
+
sdkVersion: "1.8.0",
|
|
65
|
+
genVersion: "2.869.3",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 1.
|
|
67
|
+
"speakeasy-sdk/typescript 1.8.0 2.869.3 1.8.0 @aurora-interactive/sensei-productivity",
|
|
68
68
|
} as const;
|
package/src/lib/files.ts
CHANGED
|
@@ -80,3 +80,25 @@ export function getContentTypeFromFileName(fileName: string): string | null {
|
|
|
80
80
|
|
|
81
81
|
return mimeTypes[ext] || null;
|
|
82
82
|
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Creates a Blob from file content with the given MIME type.
|
|
86
|
+
*
|
|
87
|
+
* Node.js Buffers are Uint8Array subclasses that may share a pooled
|
|
88
|
+
* ArrayBuffer (byteOffset > 0, byteLength < buffer.byteLength). Passing
|
|
89
|
+
* such a Buffer directly to `new Blob([buf])` can include the entire
|
|
90
|
+
* underlying pool on some runtimes, producing a Blob with extra bytes
|
|
91
|
+
* that corrupts multipart uploads.
|
|
92
|
+
*
|
|
93
|
+
* Copying into a standalone Uint8Array ensures the Blob receives only the
|
|
94
|
+
* intended bytes regardless of runtime behaviour.
|
|
95
|
+
*/
|
|
96
|
+
export function bytesToBlob(
|
|
97
|
+
content: Uint8Array<ArrayBufferLike> | ArrayBuffer | Blob | string,
|
|
98
|
+
contentType: string,
|
|
99
|
+
): Blob {
|
|
100
|
+
if (content instanceof Uint8Array) {
|
|
101
|
+
return new Blob([new Uint8Array(content)], { type: contentType });
|
|
102
|
+
}
|
|
103
|
+
return new Blob([content as BlobPart], { type: contentType });
|
|
104
|
+
}
|
package/src/lib/sdks.ts
CHANGED
|
@@ -127,13 +127,15 @@ export class ClientSDK {
|
|
|
127
127
|
if (!base) {
|
|
128
128
|
return ERR(new InvalidRequestError("No base URL provided for operation"));
|
|
129
129
|
}
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
130
|
+
const baseURL = new URL(base);
|
|
131
|
+
let reqURL: URL;
|
|
133
132
|
if (path) {
|
|
134
|
-
|
|
135
|
-
reqURL
|
|
133
|
+
baseURL.pathname = baseURL.pathname.replace(/\/+$/, "") + "/";
|
|
134
|
+
reqURL = new URL(path, baseURL);
|
|
135
|
+
} else {
|
|
136
|
+
reqURL = baseURL;
|
|
136
137
|
}
|
|
138
|
+
reqURL.hash = "";
|
|
137
139
|
|
|
138
140
|
let finalQuery = query || "";
|
|
139
141
|
|
package/src/lib/url.ts
CHANGED
|
@@ -13,21 +13,23 @@ export function pathToFunc(
|
|
|
13
13
|
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
|
-
return pathPattern
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
return pathPattern
|
|
17
|
+
.replace(paramRE, function (_, placeholder) {
|
|
18
|
+
if (!hasOwn.call(params, placeholder)) {
|
|
19
|
+
throw new Error(`Parameter '${placeholder}' is required`);
|
|
20
|
+
}
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
const value = params[placeholder];
|
|
23
|
+
if (typeof value !== "string" && typeof value !== "number") {
|
|
24
|
+
throw new Error(
|
|
25
|
+
`Parameter '${placeholder}' must be a string or number`,
|
|
26
|
+
);
|
|
27
|
+
}
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
return options?.charEncoding === "percent"
|
|
30
|
+
? encodeURIComponent(`${value}`)
|
|
31
|
+
: `${value}`;
|
|
32
|
+
})
|
|
33
|
+
.replace(/^\/+/, "");
|
|
32
34
|
};
|
|
33
35
|
}
|
|
@@ -30,6 +30,8 @@ export type GetFeedResponse = {
|
|
|
30
30
|
postDate: Date;
|
|
31
31
|
postStatus: GetFeedPostStatus;
|
|
32
32
|
caption?: string | undefined;
|
|
33
|
+
likes: number;
|
|
34
|
+
likedByCurrentUser: boolean;
|
|
33
35
|
};
|
|
34
36
|
|
|
35
37
|
/** @internal */
|
|
@@ -69,6 +71,8 @@ export const GetFeedResponse$inboundSchema: z.ZodMiniType<
|
|
|
69
71
|
postDate: types.date(),
|
|
70
72
|
postStatus: GetFeedPostStatus$inboundSchema,
|
|
71
73
|
caption: types.optional(types.string()),
|
|
74
|
+
likes: types.number(),
|
|
75
|
+
likedByCurrentUser: types.boolean(),
|
|
72
76
|
});
|
|
73
77
|
|
|
74
78
|
export function getFeedResponseFromJSON(
|
|
@@ -32,6 +32,8 @@ export type GetPostByIdResponse = {
|
|
|
32
32
|
postDate: string;
|
|
33
33
|
postStatus: GetPostByIdPostStatus;
|
|
34
34
|
caption?: string | undefined;
|
|
35
|
+
likes: number;
|
|
36
|
+
likedByCurrentUser: boolean;
|
|
35
37
|
};
|
|
36
38
|
|
|
37
39
|
/** @internal */
|
|
@@ -73,6 +75,8 @@ export const GetPostByIdResponse$inboundSchema: z.ZodMiniType<
|
|
|
73
75
|
postDate: types.string(),
|
|
74
76
|
postStatus: GetPostByIdPostStatus$inboundSchema,
|
|
75
77
|
caption: types.optional(types.string()),
|
|
78
|
+
likes: types.number(),
|
|
79
|
+
likedByCurrentUser: types.boolean(),
|
|
76
80
|
});
|
|
77
81
|
|
|
78
82
|
export function getPostByIdResponseFromJSON(
|
|
@@ -29,6 +29,8 @@ export type GetUserPostsResponse = {
|
|
|
29
29
|
postDate: Date;
|
|
30
30
|
postStatus: GetUserPostsPostStatus;
|
|
31
31
|
caption?: string | undefined;
|
|
32
|
+
likes: number;
|
|
33
|
+
likedByCurrentUser: boolean;
|
|
32
34
|
};
|
|
33
35
|
|
|
34
36
|
/** @internal */
|
|
@@ -70,6 +72,8 @@ export const GetUserPostsResponse$inboundSchema: z.ZodMiniType<
|
|
|
70
72
|
postDate: types.date(),
|
|
71
73
|
postStatus: GetUserPostsPostStatus$inboundSchema,
|
|
72
74
|
caption: types.optional(types.string()),
|
|
75
|
+
likes: types.number(),
|
|
76
|
+
likedByCurrentUser: types.boolean(),
|
|
73
77
|
});
|
|
74
78
|
|
|
75
79
|
export function getUserPostsResponseFromJSON(
|
|
@@ -17,6 +17,7 @@ export * from "./get-school-by-id.js";
|
|
|
17
17
|
export * from "./get-user-activities.js";
|
|
18
18
|
export * from "./get-user-by-id.js";
|
|
19
19
|
export * from "./get-user-posts.js";
|
|
20
|
+
export * from "./like-post.js";
|
|
20
21
|
export * from "./list-activities.js";
|
|
21
22
|
export * from "./list-categories.js";
|
|
22
23
|
export * from "./list-friends.js";
|
|
@@ -25,6 +26,7 @@ export * from "./pending-friend-requests.js";
|
|
|
25
26
|
export * from "./reject-friend-request.js";
|
|
26
27
|
export * from "./remove-friend.js";
|
|
27
28
|
export * from "./send-friend-request.js";
|
|
29
|
+
export * from "./unlike-post.js";
|
|
28
30
|
export * from "./update-activity.js";
|
|
29
31
|
export * from "./update-category.js";
|
|
30
32
|
export * from "./update-post.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
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 LikePostRequest = {
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type LikePostRequest$Outbound = {
|
|
13
|
+
id: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const LikePostRequest$outboundSchema: z.ZodMiniType<
|
|
18
|
+
LikePostRequest$Outbound,
|
|
19
|
+
LikePostRequest
|
|
20
|
+
> = z.object({
|
|
21
|
+
id: z.int(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function likePostRequestToJSON(
|
|
25
|
+
likePostRequest: LikePostRequest,
|
|
26
|
+
): string {
|
|
27
|
+
return JSON.stringify(LikePostRequest$outboundSchema.parse(likePostRequest));
|
|
28
|
+
}
|
|
@@ -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 UnlikePostRequest = {
|
|
8
|
+
id: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type UnlikePostRequest$Outbound = {
|
|
13
|
+
id: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const UnlikePostRequest$outboundSchema: z.ZodMiniType<
|
|
18
|
+
UnlikePostRequest$Outbound,
|
|
19
|
+
UnlikePostRequest
|
|
20
|
+
> = z.object({
|
|
21
|
+
id: z.int(),
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export function unlikePostRequestToJSON(
|
|
25
|
+
unlikePostRequest: UnlikePostRequest,
|
|
26
|
+
): string {
|
|
27
|
+
return JSON.stringify(
|
|
28
|
+
UnlikePostRequest$outboundSchema.parse(unlikePostRequest),
|
|
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,
|
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> | undefined> {
|
|
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> | undefined> {
|
|
36
36
|
return unwrapAsync(usersFriendsPending(
|
|
37
37
|
this,
|
|
38
38
|
options,
|
package/src/sdk/posts.ts
CHANGED
|
@@ -6,6 +6,8 @@ import { usersPostsDelete } from "../funcs/users-posts-delete.js";
|
|
|
6
6
|
import { usersPostsFeed } from "../funcs/users-posts-feed.js";
|
|
7
7
|
import { usersPostsGetByPostId } from "../funcs/users-posts-get-by-post-id.js";
|
|
8
8
|
import { usersPostsGetByUserId } from "../funcs/users-posts-get-by-user-id.js";
|
|
9
|
+
import { usersPostsLike } from "../funcs/users-posts-like.js";
|
|
10
|
+
import { usersPostsRemoveLike } from "../funcs/users-posts-remove-like.js";
|
|
9
11
|
import { usersPostsUpdate } from "../funcs/users-posts-update.js";
|
|
10
12
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
13
|
import * as operations from "../models/operations/index.js";
|
|
@@ -18,7 +20,7 @@ export class Posts extends ClientSDK {
|
|
|
18
20
|
async getByUserId(
|
|
19
21
|
request: operations.GetUserPostsRequest,
|
|
20
22
|
options?: RequestOptions,
|
|
21
|
-
): Promise<Array<operations.GetUserPostsResponse
|
|
23
|
+
): Promise<Array<operations.GetUserPostsResponse> | undefined> {
|
|
22
24
|
return unwrapAsync(usersPostsGetByUserId(
|
|
23
25
|
this,
|
|
24
26
|
request,
|
|
@@ -32,7 +34,7 @@ export class Posts extends ClientSDK {
|
|
|
32
34
|
async feed(
|
|
33
35
|
request?: operations.GetFeedRequest | undefined,
|
|
34
36
|
options?: RequestOptions,
|
|
35
|
-
): Promise<Array<operations.GetFeedResponse
|
|
37
|
+
): Promise<Array<operations.GetFeedResponse> | undefined> {
|
|
36
38
|
return unwrapAsync(usersPostsFeed(
|
|
37
39
|
this,
|
|
38
40
|
request,
|
|
@@ -46,7 +48,7 @@ export class Posts extends ClientSDK {
|
|
|
46
48
|
async getByPostId(
|
|
47
49
|
request: operations.GetPostByIdRequest,
|
|
48
50
|
options?: RequestOptions,
|
|
49
|
-
): Promise<operations.GetPostByIdResponse> {
|
|
51
|
+
): Promise<operations.GetPostByIdResponse | undefined> {
|
|
50
52
|
return unwrapAsync(usersPostsGetByPostId(
|
|
51
53
|
this,
|
|
52
54
|
request,
|
|
@@ -60,7 +62,7 @@ export class Posts extends ClientSDK {
|
|
|
60
62
|
async update(
|
|
61
63
|
request: operations.UpdatePostRequest,
|
|
62
64
|
options?: RequestOptions,
|
|
63
|
-
): Promise<operations.UpdatePostResponse> {
|
|
65
|
+
): Promise<operations.UpdatePostResponse | undefined> {
|
|
64
66
|
return unwrapAsync(usersPostsUpdate(
|
|
65
67
|
this,
|
|
66
68
|
request,
|
|
@@ -81,4 +83,32 @@ export class Posts extends ClientSDK {
|
|
|
81
83
|
options,
|
|
82
84
|
));
|
|
83
85
|
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Like a specific post by ID
|
|
89
|
+
*/
|
|
90
|
+
async like(
|
|
91
|
+
request: operations.LikePostRequest,
|
|
92
|
+
options?: RequestOptions,
|
|
93
|
+
): Promise<void> {
|
|
94
|
+
return unwrapAsync(usersPostsLike(
|
|
95
|
+
this,
|
|
96
|
+
request,
|
|
97
|
+
options,
|
|
98
|
+
));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Remove a like from a specific post by ID
|
|
103
|
+
*/
|
|
104
|
+
async removeLike(
|
|
105
|
+
request: operations.UnlikePostRequest,
|
|
106
|
+
options?: RequestOptions,
|
|
107
|
+
): Promise<void> {
|
|
108
|
+
return unwrapAsync(usersPostsRemoveLike(
|
|
109
|
+
this,
|
|
110
|
+
request,
|
|
111
|
+
options,
|
|
112
|
+
));
|
|
113
|
+
}
|
|
84
114
|
}
|
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 | undefined> {
|
|
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 | undefined> {
|
|
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 | undefined> {
|
|
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 | undefined> {
|
|
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 | undefined> {
|
|
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 | undefined> {
|
|
95
95
|
return unwrapAsync(usersUpdate(
|
|
96
96
|
this,
|
|
97
97
|
request,
|