habitica/test/api/v3/integration/user
Blade Barringer 35b92f13a3 Webhook improvements (#7879)
* refactor: Move translate test utility to helpers directory

* Add kind property to webhooks

* feat: Add options to create webhook route

* refactor: Move webhook ops into single file

* refactor: Create webhook objects for specific webhook behavior

* chore(tests): Add default sleep helper value of 1 second

* feat(api): Add method for groups to send out webhook

* feat(api): Add taskCreated webhook task creation

* feat(api): Send chat webhooks after a chat is sent

* refactor: Move webhook routes to own controller

* lint: Correct linting errors

* fix(api): Correct taskCreated webhook method

* fix(api): Fix webhook logging to only log when there is an error

* fix: Update groupChatRecieved webhook creation

* chore: Add integration tests for webhooks

* fix: Set webhook creation response to 201

* fix: Correct how task scored webhook data is sent

* Revert group chat recieved webhook to only support one group

* Remove quest activity option for webhooks

* feat: Send webhook for each task created

* feat: Allow webhooks without a type to default to taskScored

* feat: Add logic for adding ids to webhook

* feat: optimize webhook url check by shortcircuiting if no url is passed

* refactor: Use full name for webhook variable

* feat: Add missing params to client webhook

* lint: Add missing semicolon

* chore(tests): Fix inccorect webhook tests

* chore: Add migration to update task scored webhooks

* feat: Allow default value of webhook add route to be enabled

* chore: Update webhook documentation

* chore: Remove special handling for v2

* refactor: adjust addComputedStatsToJSONObject to work for webhooks

* refactor: combine taskScored and taskActivity webhooks

* feat(api): Add task activity to task update and delete routes

* chore: Change references to taskScored to taskActivity

* fix: Correct stats object being passed in for transform

* chore: Remove extra line break

* fix: Pass in the language to use for the translations

* refactor(api): Move webhooks from user.preferences.webhooks to user.webhooks

* chore: Update migration to set webhook array

* lint: Correct brace spacing

* chore: convert webhook lib to use user.webhooks

* refactor(api): Consolidate filters

* chore: clarify migration instructions

* fix(test): Correct user creation in user anonymized tests

* chore: add test that webhooks cannot be updated via PUT /user

* refactor: Simplify default webhook id value

* refactor(client): Push newly created webhook instead of doing a sync

* chore(test): Add test file for webhook model

* refactor: Remove webhook validation

* refactor: Remove need for watch on webhooks

* refactor(client): Update webhooks object without syncing

* chore: update webhook documentation

* Fix migrations issues

* chore: remove v2 test helper

* fix(api): Provide webhook type in task scored webhook

* fix(client): Fix webhook deletion appearing to delete all webhooks

* feat(api): add optional label field for webhooks

* feat: provide empty string as default for webhook label

* chore: Update webhook migration

* chore: update webhook migration name
2016-10-02 09:16:22 -05:00
..
auth Add Google Signin (#7969) 2016-09-28 12:11:10 +02:00
DELETE-user.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
DELETE-user_messages.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
DELETE-user_push_device.test.js Push notifications (#7682) 2016-06-23 00:19:37 +02:00
GET-user.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
GET-user_anonymized.test.js Webhook improvements (#7879) 2016-10-02 09:16:22 -05:00
GET-user_inventory_buy.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_allocate.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_allocate_now.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_block.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_buy.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
POST-user_buy_armoire.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_buy_gear.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_buy_health_potion.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
POST-user_buy_mystery_set.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_buy_quest.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
POST-user_buy_special_spell.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
POST-user_change-class.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_class_cast_spellId.test.js api: expose user's inbox.optOut for api/v3/members/:memberId #7798 (#7893) 2016-08-15 22:21:14 -05:00
POST-user_custom-day-start.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_disable-classes.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_equip_type_key.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_feed_pet_food.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
POST-user_hatch_egg_hatchingPotion.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_mark_pms_read.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_open_mystery_item.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
POST-user_purchase.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_purchase_hourglass.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_push_device.test.js Push notifications (#7682) 2016-06-23 00:19:37 +02:00
POST-user_read_card.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_rebirth.test.js feat: Lower cost of orb of rebirth 2016-09-09 21:08:42 -05:00
POST-user_release_both.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_release_mounts.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_release_pets.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_reroll.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_reset.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_revive.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_sell.test.js Common reorg (#8025) 2016-09-16 17:18:07 +02:00
POST-user_sleep.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_unlock.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
PUT-user.test.js Webhook improvements (#7879) 2016-10-02 09:16:22 -05:00