From 15d41e63c7aa18d71f9b271be1394ff887d4bde7 Mon Sep 17 00:00:00 2001
From: liuliquan Action
+Gets approved skill tags.
+
+**Kind**: static method of [actions.lookup
](#module_actions.lookup)
diff --git a/docs/actions.profile.md b/docs/actions.profile.md
index 14e5b1fd..9f0899b0 100644
--- a/docs/actions.profile.md
+++ b/docs/actions.profile.md
@@ -23,6 +23,35 @@ Actions for interactions with profile details API.
* [.getSkillsDone(handle)](#module_actions.profile.getSkillsDone) ⇒ Action
* [.getStatsInit()](#module_actions.profile.getStatsInit) ⇒ Action
* [.getStatsDone(handle)](#module_actions.profile.getStatsDone) ⇒ Action
+ * [.getActiveChallengesCountInit()](#module_actions.profile.getActiveChallengesCountInit) ⇒ Action
+ * [.getActiveChallengesCountDone(handle, tokenV3)](#module_actions.profile.getActiveChallengesCountDone) ⇒ Action
+ * [.getLinkedAccountsInit()](#module_actions.profile.getLinkedAccountsInit) ⇒ Action
+ * [.getLinkedAccountsDone(profile, tokenV3)](#module_actions.profile.getLinkedAccountsDone) ⇒ Action
+ * [.getCredentialInit()](#module_actions.profile.getCredentialInit) ⇒ Action
+ * [.getCredentialDone(profile, tokenV3)](#module_actions.profile.getCredentialDone) ⇒ Action
+ * [.getEmailPreferencesInit()](#module_actions.profile.getEmailPreferencesInit) ⇒ Action
+ * [.getEmailPreferencesDone(profile, tokenV3)](#module_actions.profile.getEmailPreferencesDone) ⇒ Action
+ * [.uploadPhotoInit()](#module_actions.profile.uploadPhotoInit) ⇒ Action
+ * [.uploadPhotoDone(handle, tokenV3, file)](#module_actions.profile.uploadPhotoDone) ⇒ Action
+ * [.deletePhotoInit()](#module_actions.profile.deletePhotoInit) ⇒ Action
+ * [.updateProfileInit()](#module_actions.profile.updateProfileInit) ⇒ Action
+ * [.updateProfileDone(profile, tokenV3)](#module_actions.profile.updateProfileDone) ⇒ Action
+ * [.addSkillInit()](#module_actions.profile.addSkillInit) ⇒ Action
+ * [.addSkillDone(handle, tokenV3, skill)](#module_actions.profile.addSkillDone) ⇒ Action
+ * [.hideSkillInit()](#module_actions.profile.hideSkillInit) ⇒ Action
+ * [.hideSkillDone(handle, tokenV3, skill)](#module_actions.profile.hideSkillDone) ⇒ Action
+ * [.addWebLinkInit()](#module_actions.profile.addWebLinkInit) ⇒ Action
+ * [.addWebLinkDone(handle, tokenV3, webLink)](#module_actions.profile.addWebLinkDone) ⇒ Action
+ * [.deleteWebLinkInit(key)](#module_actions.profile.deleteWebLinkInit) ⇒ Action
+ * [.deleteWebLinkDone(handle, tokenV3, webLink)](#module_actions.profile.deleteWebLinkDone) ⇒ Action
+ * [.linkExternalAccountInit()](#module_actions.profile.linkExternalAccountInit) ⇒ Action
+ * [.linkExternalAccountDone(profile, tokenV3, providerType, callbackUrl)](#module_actions.profile.linkExternalAccountDone) ⇒ Action
+ * [.unlinkExternalAccountInit(providerType)](#module_actions.profile.unlinkExternalAccountInit) ⇒ Action
+ * [.unlinkExternalAccountDone(profile, tokenV3, providerType)](#module_actions.profile.unlinkExternalAccountDone) ⇒ Action
+ * [.saveEmailPreferencesInit()](#module_actions.profile.saveEmailPreferencesInit) ⇒ Action
+ * [.saveEmailPreferencesDone(profile, tokenV3, preferences)](#module_actions.profile.saveEmailPreferencesDone) ⇒ Action
+ * [.updatePasswordInit()](#module_actions.profile.updatePasswordInit) ⇒ Action
+ * [.updatePasswordDone(profile, tokenV3, newPassword, oldPassword)](#module_actions.profile.updatePasswordDone) ⇒ Action
@@ -167,3 +196,282 @@ Creates an action that loads member's stats.
| --- | --- | --- |
| handle | String
| Member handle. |
+
+
+### actions.profile.getActiveChallengesCountInit() ⇒ Action
+Creates an action that signals beginning of getting count of user's active challenges.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.getActiveChallengesCountDone(handle, tokenV3) ⇒ Action
+Creates an action that gets count of user's active challenges from the backend.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle. |
+| tokenV3 | String
| Optional. Topcoder auth token v3. Without token only public challenges will be counted. With the token provided, the action will also count private challenges related to this user. |
+
+
+
+### actions.profile.getLinkedAccountsInit() ⇒ Action
+Creates an action that signals beginning of getting linked accounts.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.getLinkedAccountsDone(profile, tokenV3) ⇒ Action
+Creates an action that gets linked accounts.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| Topcoder member profile. |
+| tokenV3 | String
| Topcoder auth token v3. |
+
+
+
+### actions.profile.getCredentialInit() ⇒ Action
+Creates an action that signals beginning of getting credential.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.getCredentialDone(profile, tokenV3) ⇒ Action
+Creates an action that gets credential.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| Topcoder member profile. |
+| tokenV3 | String
| Topcoder auth token v3. |
+
+
+
+### actions.profile.getEmailPreferencesInit() ⇒ Action
+Creates an action that signals beginning of getting email preferences.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.getEmailPreferencesDone(profile, tokenV3) ⇒ Action
+Creates an action that gets email preferences.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| Topcoder member profile. |
+| tokenV3 | String
| Topcoder auth token v3. |
+
+
+
+### actions.profile.uploadPhotoInit() ⇒ Action
+Creates an action that signals beginning of uploading user's photo.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.uploadPhotoDone(handle, tokenV3, file) ⇒ Action
+Creates an action that uploads user's photo.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| file | String
| The photo file. |
+
+
+
+### actions.profile.deletePhotoInit() ⇒ Action
+Creates an action that signals beginning of deleting user's photo.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.updateProfileInit() ⇒ Action
+Creates an action that signals beginning of updating user's profile.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.updateProfileDone(profile, tokenV3) ⇒ Action
+Creates an action that updates user's profile.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | String
| Topcoder user profile. |
+| tokenV3 | String
| Topcoder auth token v3. |
+
+
+
+### actions.profile.addSkillInit() ⇒ Action
+Creates an action that signals beginning of adding user's skill.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.addSkillDone(handle, tokenV3, skill) ⇒ Action
+Creates an action that adds user's skill.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| skill | Object
| Skill to add. |
+
+
+
+### actions.profile.hideSkillInit() ⇒ Action
+Creates an action that signals beginning of hiding user's skill.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.hideSkillDone(handle, tokenV3, skill) ⇒ Action
+Creates an action that hides user's skill.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| skill | Object
| Skill to hide. |
+
+
+
+### actions.profile.addWebLinkInit() ⇒ Action
+Creates an action that signals beginning of adding user's web link.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.addWebLinkDone(handle, tokenV3, webLink) ⇒ Action
+Creates an action that adds user's web link.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| webLink | String
| Web link to add. |
+
+
+
+### actions.profile.deleteWebLinkInit(key) ⇒ Action
+Creates an action that signals beginning of deleting user's web link.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| key | Object
| Web link key to delete. |
+
+
+
+### actions.profile.deleteWebLinkDone(handle, tokenV3, webLink) ⇒ Action
+Creates an action that deletes user's web link.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| webLink | String
| Web link to delete. |
+
+
+
+### actions.profile.linkExternalAccountInit() ⇒ Action
+Creates an action that signals beginning of linking external account.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.linkExternalAccountDone(profile, tokenV3, providerType, callbackUrl) ⇒ Action
+Creates an action that links external account.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| Topcoder member handle. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| providerType | String
| The external account service provider |
+| callbackUrl | String
| Optional. The callback url |
+
+
+
+### actions.profile.unlinkExternalAccountInit(providerType) ⇒ Action
+Creates an action that signals beginning of unlinking external account.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| providerType | Object
| External account provider type to delete. |
+
+
+
+### actions.profile.unlinkExternalAccountDone(profile, tokenV3, providerType) ⇒ Action
+Creates an action that unlinks external account.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| Topcoder member profile. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| providerType | String
| The external account service provider |
+
+
+
+### actions.profile.saveEmailPreferencesInit() ⇒ Action
+Creates an action that signals beginning of saving email preferences.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.saveEmailPreferencesDone(profile, tokenV3, preferences) ⇒ Action
+Creates an action that saves email preferences.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| Topcoder member profile. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| preferences | Object
| The email preferences |
+
+
+
+### actions.profile.updatePasswordInit() ⇒ Action
+Creates an action that signals beginning of updating user password.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+
+### actions.profile.updatePasswordDone(profile, tokenV3, newPassword, oldPassword) ⇒ Action
+Creates an action that updates user password.
+
+**Kind**: static method of [actions.profile
](#module_actions.profile)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| Topcoder member profile. |
+| tokenV3 | String
| Topcoder auth token v3. |
+| newPassword | String
| The new password |
+| oldPassword | String
| The old password |
+
diff --git a/docs/index.md b/docs/index.md
index 70f1bb72..ec065107 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -25,6 +25,10 @@ messaging.
Actions related to user groups.
Actions related to lookup data.
+Actions for management of member tasks and payments. Under the hood it is very similar to the challenge listing management, as these tasks are in @@ -94,6 +98,11 @@ not look really necessary at the moment, thus we do not provide an action to really cancel group loading.
Reducer for actions.lookup actions.
+State segment managed by this reducer has the following structure:
+Member tasks reducer.
This module provides a service to get lookup data from Topcoder +via API V3.
+This module provides a service for searching for Topcoder members via API V3.
diff --git a/docs/reducers.lookup.md b/docs/reducers.lookup.md new file mode 100644 index 00000000..24c01523 --- /dev/null +++ b/docs/reducers.lookup.md @@ -0,0 +1,59 @@ + + +## reducers.lookup +Reducer for [actions.lookup](#module_actions.lookup) actions. + +State segment managed by this reducer has the following structure: + + +| Param | Type | Default | Description | +| --- | --- | --- | --- | +| approvedSkills |Array
| ''
| approved skill tags. |
+
+
+* [reducers.lookup](#module_reducers.lookup)
+ * _static_
+ * [.default](#module_reducers.lookup.default)
+ * [.factory()](#module_reducers.lookup.factory) ⇒ Promise
+ * _inner_
+ * [~onGetApprovedSkills(state, action)](#module_reducers.lookup..onGetApprovedSkills) ⇒ Object
+ * [~create(initialState)](#module_reducers.lookup..create) ⇒ function
+
+
+
+### reducers.lookup.default
+Reducer with default initial state.
+
+**Kind**: static property of [reducers.lookup
](#module_reducers.lookup)
+
+
+### reducers.lookup.factory() ⇒ Promise
+Factory which creates a new reducer.
+
+**Kind**: static method of [reducers.lookup
](#module_reducers.lookup)
+**Resolves**: Function(state, action): state
New reducer.
+
+
+### reducers.lookup~onGetApprovedSkills(state, action) ⇒ Object
+Handles LOOKUP/GET_APPROVED_SKILLS action.
+
+**Kind**: inner method of [reducers.lookup
](#module_reducers.lookup)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.lookup~create(initialState) ⇒ function
+Creates a new Lookup reducer with the specified initial state.
+
+**Kind**: inner method of [reducers.lookup
](#module_reducers.lookup)
+**Returns**: function
- Lookup reducer.
+
+| Param | Type | Description |
+| --- | --- | --- |
+| initialState | Object
| Optional. Initial state. |
+
diff --git a/docs/reducers.profile.md b/docs/reducers.profile.md
index 5492081a..c81c34d5 100644
--- a/docs/reducers.profile.md
+++ b/docs/reducers.profile.md
@@ -18,6 +18,21 @@ Reducer for Profile API data
* [~onGetInfoDone(state, action)](#module_reducers.profile..onGetInfoDone) ⇒ Object
* [~onGetSkillsDone(state, action)](#module_reducers.profile..onGetSkillsDone) ⇒ Object
* [~onGetStatsDone(state, action)](#module_reducers.profile..onGetStatsDone) ⇒ Object
+ * [~onGetActiveChallengesCountDone(state, action)](#module_reducers.profile..onGetActiveChallengesCountDone) ⇒ Object
+ * [~onGetLinkedAccountsDone(state, action)](#module_reducers.profile..onGetLinkedAccountsDone) ⇒ Object
+ * [~onGetCredentialDone(state, action)](#module_reducers.profile..onGetCredentialDone) ⇒ Object
+ * [~onGetEmailPreferencesDone(state, action)](#module_reducers.profile..onGetEmailPreferencesDone) ⇒ Object
+ * [~onUploadPhotoDone(state, action)](#module_reducers.profile..onUploadPhotoDone) ⇒ Object
+ * [~onDeletePhotoDone(state, action)](#module_reducers.profile..onDeletePhotoDone) ⇒ Object
+ * [~onUpdateProfileDone(state, action)](#module_reducers.profile..onUpdateProfileDone) ⇒ Object
+ * [~onAddSkillDone(state, action)](#module_reducers.profile..onAddSkillDone) ⇒ Object
+ * [~onHideSkillDone(state, action)](#module_reducers.profile..onHideSkillDone) ⇒ Object
+ * [~onAddWebLinkDone(state, action)](#module_reducers.profile..onAddWebLinkDone) ⇒ Object
+ * [~onDeleteWebLinkDone(state, action)](#module_reducers.profile..onDeleteWebLinkDone) ⇒ Object
+ * [~onLinkExternalAccountDone(state, action)](#module_reducers.profile..onLinkExternalAccountDone) ⇒ Object
+ * [~onUnlinkExternalAccountDone(state, action)](#module_reducers.profile..onUnlinkExternalAccountDone) ⇒ Object
+ * [~onSaveEmailPreferencesDone(state, action)](#module_reducers.profile..onSaveEmailPreferencesDone) ⇒ Object
+ * [~onUpdatePasswordDone(state, action)](#module_reducers.profile..onUpdatePasswordDone) ⇒ Object
* [~create(initialState)](#module_reducers.profile..create) ⇒ function
@@ -107,6 +122,201 @@ Handles PROFILE/GET_STATS_DONE action.
| state | Object
| |
| action | Object
| Payload will be JSON from api call |
+
+
+### reducers.profile~onGetActiveChallengesCountDone(state, action) ⇒ Object
+Handles PROFILE/GET_ACTIVE_CHALLENGES_COUNT_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onGetLinkedAccountsDone(state, action) ⇒ Object
+Handles PROFILE/GET_LINKED_ACCOUNTS_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onGetCredentialDone(state, action) ⇒ Object
+Handles PROFILE/GET_CREDENTIAL_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onGetEmailPreferencesDone(state, action) ⇒ Object
+Handles PROFILE/GET_EMAIL_PREFERENCES_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onUploadPhotoDone(state, action) ⇒ Object
+Handles PROFILE/UPLOAD_PHOTO_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onDeletePhotoDone(state, action) ⇒ Object
+Handles PROFILE/DELETE_PHOTO_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onUpdateProfileDone(state, action) ⇒ Object
+Handles PROFILE/UPDATE_PROFILE_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onAddSkillDone(state, action) ⇒ Object
+Handles PROFILE/ADD_SKILL_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onHideSkillDone(state, action) ⇒ Object
+Handles PROFILE/HIDE_SKILL_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onAddWebLinkDone(state, action) ⇒ Object
+Handles PROFILE/ADD_WEB_LINK_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onDeleteWebLinkDone(state, action) ⇒ Object
+Handles PROFILE/DELETE_WEB_LINK_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onLinkExternalAccountDone(state, action) ⇒ Object
+Handles PROFILE/LINK_EXTERNAL_ACCOUNT_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onUnlinkExternalAccountDone(state, action) ⇒ Object
+Handles PROFILE/UNLINK_EXTERNAL_ACCOUNT_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onSaveEmailPreferencesDone(state, action) ⇒ Object
+Handles PROFILE/SAVE_EMAIL_PREFERENCES_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
+
+
+### reducers.profile~onUpdatePasswordDone(state, action) ⇒ Object
+Handles PROFILE/UPDATE_PASSWORD_DONE action.
+
+**Kind**: inner method of [reducers.profile
](#module_reducers.profile)
+**Returns**: Object
- New state
+
+| Param | Type | Description |
+| --- | --- | --- |
+| state | Object
| |
+| action | Object
| Payload will be JSON from api call |
+
### reducers.profile~create(initialState) ⇒ function
diff --git a/docs/services.api.md b/docs/services.api.md
index 015b5986..eb787a8e 100644
--- a/docs/services.api.md
+++ b/docs/services.api.md
@@ -19,6 +19,8 @@ This module provides a service for conventient access to Topcoder APIs.
* [.postJson(endpoint, json)](#module_services.api..Api+postJson) ⇒ Promise
* [.put(endpoint, body)](#module_services.api..Api+put) ⇒ Promise
* [.putJson(endpoint, json)](#module_services.api..Api+putJson) ⇒ Promise
+ * [.patch(endpoint, body)](#module_services.api..Api+patch) ⇒ Promise
+ * [.patchJson(endpoint, json)](#module_services.api..Api+patchJson) ⇒ Promise
* [.upload(endpoint, body, callback)](#module_services.api..Api+upload) ⇒ Promise
@@ -70,6 +72,8 @@ thing we need to be different is the base URL and auth token to use.
* [.postJson(endpoint, json)](#module_services.api..Api+postJson) ⇒ Promise
* [.put(endpoint, body)](#module_services.api..Api+put) ⇒ Promise
* [.putJson(endpoint, json)](#module_services.api..Api+putJson) ⇒ Promise
+ * [.patch(endpoint, body)](#module_services.api..Api+patch) ⇒ Promise
+ * [.patchJson(endpoint, json)](#module_services.api..Api+patchJson) ⇒ Promise
* [.upload(endpoint, body, callback)](#module_services.api..Api+upload) ⇒ Promise
@@ -182,6 +186,30 @@ Sends PUT request to the specified endpoint.
| endpoint | String
|
| json | JSON
|
+
+
+#### api.patch(endpoint, body) ⇒ Promise
+Sends PATCH request to the specified endpoint.
+
+**Kind**: instance method of [Api
](#module_services.api..Api)
+
+| Param | Type |
+| --- | --- |
+| endpoint | String
|
+| body | Blob
\| BufferSource
\| FormData
\| String
|
+
+
+
+#### api.patchJson(endpoint, json) ⇒ Promise
+Sends PATCH request to the specified endpoint.
+
+**Kind**: instance method of [Api
](#module_services.api..Api)
+
+| Param | Type |
+| --- | --- |
+| endpoint | String
|
+| json | JSON
|
+
#### api.upload(endpoint, body, callback) ⇒ Promise
diff --git a/docs/services.lookup.md b/docs/services.lookup.md
new file mode 100644
index 00000000..a0088232
--- /dev/null
+++ b/docs/services.lookup.md
@@ -0,0 +1,56 @@
+
+
+## services.lookup
+This module provides a service to get lookup data from Topcoder
+via API V3.
+
+
+* [services.lookup](#module_services.lookup)
+ * _static_
+ * [.getService(tokenV3)](#module_services.lookup.getService) ⇒ LookupService
+ * _inner_
+ * [~LookupService](#module_services.lookup..LookupService)
+ * [new LookupService(tokenV3)](#new_module_services.lookup..LookupService_new)
+ * [.getTags(params)](#module_services.lookup..LookupService+getTags) ⇒ Promise
+
+
+
+### services.lookup.getService(tokenV3) ⇒ LookupService
+Returns a new or existing lookup service.
+
+**Kind**: static method of [services.lookup
](#module_services.lookup)
+**Returns**: LookupService
- Lookup service object
+
+| Param | Type | Description |
+| --- | --- | --- |
+| tokenV3 | String
| Optional. Auth token for Topcoder API v3. |
+
+
+
+### services.lookup~LookupService
+**Kind**: inner class of [services.lookup
](#module_services.lookup)
+
+* [~LookupService](#module_services.lookup..LookupService)
+ * [new LookupService(tokenV3)](#new_module_services.lookup..LookupService_new)
+ * [.getTags(params)](#module_services.lookup..LookupService+getTags) ⇒ Promise
+
+
+
+#### new LookupService(tokenV3)
+
+| Param | Type | Description |
+| --- | --- | --- |
+| tokenV3 | String
| Optional. Auth token for Topcoder API v3. |
+
+
+
+#### lookupService.getTags(params) ⇒ Promise
+Gets tags.
+
+**Kind**: instance method of [LookupService
](#module_services.lookup..LookupService)
+**Returns**: Promise
- Resolves to the tags.
+
+| Param | Type | Description |
+| --- | --- | --- |
+| params | Object
| Parameters |
+
diff --git a/docs/services.members.md b/docs/services.members.md
index 2af2f272..87dade98 100644
--- a/docs/services.members.md
+++ b/docs/services.members.md
@@ -18,6 +18,14 @@ members via API V3.
* [.getSkills(handle)](#module_services.members..MembersService+getSkills) ⇒ Promise
* [.getStats(handle)](#module_services.members..MembersService+getStats) ⇒ Promise
* [.getMemberSuggestions(keyword)](#module_services.members..MembersService+getMemberSuggestions) ⇒ Promise
+ * [.addWebLink(userHandle, webLink)](#module_services.members..MembersService+addWebLink) ⇒ Promise
+ * [.deleteWebLink(userHandle, webLinkHandle)](#module_services.members..MembersService+deleteWebLink) ⇒ Promise
+ * [.addSkill(handle, skillTagId)](#module_services.members..MembersService+addSkill) ⇒ Promise
+ * [.hideSkill(handle, skillTagId)](#module_services.members..MembersService+hideSkill) ⇒ Promise
+ * [.updateMemberProfile(profile)](#module_services.members..MembersService+updateMemberProfile) ⇒ Promise
+ * [.getPresignedUrl(userHandle, file)](#module_services.members..MembersService+getPresignedUrl) ⇒ Promise
+ * [.updateMemberPhoto(S3Response)](#module_services.members..MembersService+updateMemberPhoto) ⇒ Promise
+ * [.uploadFileToS3(presignedUrlResponse)](#module_services.members..MembersService+uploadFileToS3) ⇒ Promise
@@ -47,6 +55,14 @@ Service class.
* [.getSkills(handle)](#module_services.members..MembersService+getSkills) ⇒ Promise
* [.getStats(handle)](#module_services.members..MembersService+getStats) ⇒ Promise
* [.getMemberSuggestions(keyword)](#module_services.members..MembersService+getMemberSuggestions) ⇒ Promise
+ * [.addWebLink(userHandle, webLink)](#module_services.members..MembersService+addWebLink) ⇒ Promise
+ * [.deleteWebLink(userHandle, webLinkHandle)](#module_services.members..MembersService+deleteWebLink) ⇒ Promise
+ * [.addSkill(handle, skillTagId)](#module_services.members..MembersService+addSkill) ⇒ Promise
+ * [.hideSkill(handle, skillTagId)](#module_services.members..MembersService+hideSkill) ⇒ Promise
+ * [.updateMemberProfile(profile)](#module_services.members..MembersService+updateMemberProfile) ⇒ Promise
+ * [.getPresignedUrl(userHandle, file)](#module_services.members..MembersService+getPresignedUrl) ⇒ Promise
+ * [.updateMemberPhoto(S3Response)](#module_services.members..MembersService+updateMemberPhoto) ⇒ Promise
+ * [.uploadFileToS3(presignedUrlResponse)](#module_services.members..MembersService+uploadFileToS3) ⇒ Promise
@@ -144,3 +160,104 @@ WARNING: This method requires v3 authorization.
| --- | --- | --- |
| keyword | String
| Partial string to find suggestions for |
+
+
+#### membersService.addWebLink(userHandle, webLink) ⇒ Promise
+Adds external web link for member.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to the api response content
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userHandle | String
| The user handle |
+| webLink | String
| The external web link |
+
+
+
+#### membersService.deleteWebLink(userHandle, webLinkHandle) ⇒ Promise
+Deletes external web link for member.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to the api response content
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userHandle | String
| The user handle |
+| webLinkHandle | String
| The external web link handle |
+
+
+
+#### membersService.addSkill(handle, skillTagId) ⇒ Promise
+Adds user skill.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to operation result
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle |
+| skillTagId | Number
| Skill tag id |
+
+
+
+#### membersService.hideSkill(handle, skillTagId) ⇒ Promise
+Hides user skill.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to operation result
+
+| Param | Type | Description |
+| --- | --- | --- |
+| handle | String
| Topcoder user handle |
+| skillTagId | Number
| Skill tag id |
+
+
+
+#### membersService.updateMemberProfile(profile) ⇒ Promise
+Updates member profile.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to the api response content
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| The profile to update. |
+
+
+
+#### membersService.getPresignedUrl(userHandle, file) ⇒ Promise
+Gets presigned url for member photo file.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to the api response content
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userHandle | String
| The user handle |
+| file | File
| The file to get its presigned url |
+
+
+
+#### membersService.updateMemberPhoto(S3Response) ⇒ Promise
+Updates member photo.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to the api response content
+
+| Param | Type | Description |
+| --- | --- | --- |
+| S3Response | Object
| The response from uploadFileToS3() function. |
+
+
+
+#### membersService.uploadFileToS3(presignedUrlResponse) ⇒ Promise
+Uploads file to S3.
+
+**Kind**: instance method of [MembersService
](#module_services.members..MembersService)
+**Returns**: Promise
- Resolves to the api response content
+
+| Param | Type | Description |
+| --- | --- | --- |
+| presignedUrlResponse | Object
| The presigned url response from getPresignedUrl() function. |
+
diff --git a/docs/services.user.md b/docs/services.user.md
index 0daaf23a..de282529 100644
--- a/docs/services.user.md
+++ b/docs/services.user.md
@@ -15,6 +15,14 @@ The User service provides functionality related to Topcoder user
* [.getAchievements(username)](#module_services.user..User+getAchievements) ⇒ Object
* [.getUserPublic(username)](#module_services.user..User+getUserPublic) ⇒ Object
* [.getUser(username)](#module_services.user..User+getUser) ⇒ Promise
+ * [.getEmailPreferences(userId)](#module_services.user..User+getEmailPreferences) ⇒ Promise
+ * [.saveEmailPreferences(user, preferences)](#module_services.user..User+saveEmailPreferences) ⇒ Promise
+ * [.getCredential(userId)](#module_services.user..User+getCredential) ⇒ Promise
+ * [.updatePassword(userId, newPassword, oldPassword)](#module_services.user..User+updatePassword) ⇒ Promise
+ * [.getLinkedAccounts(userId)](#module_services.user..User+getLinkedAccounts) ⇒ Promise
+ * [.unlinkExternalAccount(userId, provider)](#module_services.user..User+unlinkExternalAccount) ⇒ Promise
+ * [.linkExternalAccount(userId, provider, callbackUrl)](#module_services.user..User+linkExternalAccount) ⇒ Promise
+ * [~getSocialUserData(profile, accessToken)](#module_services.user..getSocialUserData) ⇒ Object
@@ -47,6 +55,13 @@ Service class.
* [.getAchievements(username)](#module_services.user..User+getAchievements) ⇒ Object
* [.getUserPublic(username)](#module_services.user..User+getUserPublic) ⇒ Object
* [.getUser(username)](#module_services.user..User+getUser) ⇒ Promise
+ * [.getEmailPreferences(userId)](#module_services.user..User+getEmailPreferences) ⇒ Promise
+ * [.saveEmailPreferences(user, preferences)](#module_services.user..User+saveEmailPreferences) ⇒ Promise
+ * [.getCredential(userId)](#module_services.user..User+getCredential) ⇒ Promise
+ * [.updatePassword(userId, newPassword, oldPassword)](#module_services.user..User+updatePassword) ⇒ Promise
+ * [.getLinkedAccounts(userId)](#module_services.user..User+getLinkedAccounts) ⇒ Promise
+ * [.unlinkExternalAccount(userId, provider)](#module_services.user..User+unlinkExternalAccount) ⇒ Promise
+ * [.linkExternalAccount(userId, provider, callbackUrl)](#module_services.user..User+linkExternalAccount) ⇒ Promise
@@ -95,3 +110,116 @@ NOTE: Only admins are authorized to use the underlying endpoint.
| --- | --- |
| username | String
|
+
+
+#### user.getEmailPreferences(userId) ⇒ Promise
+Gets email preferences.
+
+NOTE: Only admins are authorized to use the underlying endpoint.
+
+**Kind**: instance method of [User
](#module_services.user..User)
+**Returns**: Promise
- Resolves to the email preferences result
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userId | Number
| The TopCoder user id |
+
+
+
+#### user.saveEmailPreferences(user, preferences) ⇒ Promise
+Saves email preferences.
+
+NOTE: Only admins are authorized to use the underlying endpoint.
+
+**Kind**: instance method of [User
](#module_services.user..User)
+**Returns**: Promise
- Resolves to the email preferences result
+
+| Param | Type | Description |
+| --- | --- | --- |
+| user | Object
| The TopCoder user |
+| preferences | Object
| The email preferences |
+
+
+
+#### user.getCredential(userId) ⇒ Promise
+Gets credential for the specified user id.
+
+NOTE: Only admins are authorized to use the underlying endpoint.
+
+**Kind**: instance method of [User
](#module_services.user..User)
+**Returns**: Promise
- Resolves to the linked accounts array.
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userId | Number
| The user id |
+
+
+
+#### user.updatePassword(userId, newPassword, oldPassword) ⇒ Promise
+Updates user password.
+
+NOTE: Only admins are authorized to use the underlying endpoint.
+
+**Kind**: instance method of [User
](#module_services.user..User)
+**Returns**: Promise
- Resolves to the update result.
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userId | Number
| The user id |
+| newPassword | String
| The new password |
+| oldPassword | String
| The old password |
+
+
+
+#### user.getLinkedAccounts(userId) ⇒ Promise
+Gets linked accounts for the specified user id.
+
+NOTE: Only admins are authorized to use the underlying endpoint.
+
+**Kind**: instance method of [User
](#module_services.user..User)
+**Returns**: Promise
- Resolves to the linked accounts array.
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userId | Number
| The user id |
+
+
+
+#### user.unlinkExternalAccount(userId, provider) ⇒ Promise
+Unlinks external account.
+
+**Kind**: instance method of [User
](#module_services.user..User)
+**Returns**: Promise
- Resolves to the unlink result
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userId | Number
| The TopCoder user id |
+| provider | String
| The external account service provider |
+
+
+
+#### user.linkExternalAccount(userId, provider, callbackUrl) ⇒ Promise
+Links external account.
+
+**Kind**: instance method of [User
](#module_services.user..User)
+**Returns**: Promise
- Resolves to the linked account result
+
+| Param | Type | Description |
+| --- | --- | --- |
+| userId | Number
| The TopCoder user id |
+| provider | String
| The external account service provider |
+| callbackUrl | String
| Optional. The callback url |
+
+
+
+### services.user~getSocialUserData(profile, accessToken) ⇒ Object
+Gets social user data.
+
+**Kind**: inner method of [services.user
](#module_services.user)
+**Returns**: Object
- Social user data
+
+| Param | Type | Description |
+| --- | --- | --- |
+| profile | Object
| The user social profile |
+| accessToken | \*
| The access token |
+
diff --git a/src/actions/lookup.js b/src/actions/lookup.js
index b030006d..4b80311e 100644
--- a/src/actions/lookup.js
+++ b/src/actions/lookup.js
@@ -1,9 +1,9 @@
/**
* @module "actions.lookup"
- * @desc Actions related to lookup API: get skills tags.
+ * @desc Actions related to lookup data.
*/
-import { createActions } from 'redux-actions';
+import { createActions } from 'redux-actions';
import { getService } from '../services/lookup';
/**
diff --git a/src/reducers/lookup.js b/src/reducers/lookup.js
index 4239a071..bf217a85 100644
--- a/src/reducers/lookup.js
+++ b/src/reducers/lookup.js
@@ -3,7 +3,7 @@
* @desc Reducer for {@link module:actions.lookup} actions.
*
* State segment managed by this reducer has the following structure:
- * @param {Array} approvedSkills=[] approved skill tags.
+ * @param {Array} approvedSkills='' approved skill tags.
*/
import _ from 'lodash';
import { handleActions } from 'redux-actions';
@@ -30,11 +30,11 @@ function onGetApprovedSkills(state, { payload, error }) {
}
/**
- * Creates lookup reducer with the specified intial state.
- * @param {Object} initialState Optional. If not given, the default state is assumed.
- * @return {Function} Reducer.
+ * Creates a new Lookup reducer with the specified initial state.
+ * @param {Object} initialState Optional. Initial state.
+ * @return {Function} Lookup reducer.
*/
-function create(initialState) {
+function create(initialState = {}) {
const a = actions.lookup;
return handleActions({
[a.getApprovedSkills]: onGetApprovedSkills,
@@ -45,11 +45,16 @@ function create(initialState) {
/**
* Factory which creates a new reducer.
- * @return Promise which resolves to the new reducer.
+ * @return {Promise}
+ * @resolves {Function(state, action): state} New reducer.
*/
export function factory() {
return Promise.resolve(create());
}
-/* Default reducer with empty initial state. */
+/**
+ * @static
+ * @member default
+ * @desc Reducer with default initial state.
+ */
export default create();
diff --git a/src/services/lookup.js b/src/services/lookup.js
index 3bebecd3..60a7e480 100644
--- a/src/services/lookup.js
+++ b/src/services/lookup.js
@@ -1,5 +1,5 @@
/**
- * @module "services.members"
+ * @module "services.lookup"
* @desc This module provides a service to get lookup data from Topcoder
* via API V3.
*/
@@ -29,12 +29,12 @@ class LookupService {
}
}
+let lastInstance = null;
/**
* Returns a new or existing lookup service.
* @param {String} tokenV3 Optional. Auth token for Topcoder API v3.
* @return {LookupService} Lookup service object
*/
-let lastInstance = null;
export function getService(tokenV3) {
if (!lastInstance || tokenV3 !== lastInstance.private.tokenV3) {
lastInstance = new LookupService(tokenV3);
From b710a8f6ff42267f6c18ef953b89f0b260a2ff23 Mon Sep 17 00:00:00 2001
From: liuliquan \r\nTo agree to the Appirio NDA, please electronically sign the document by following this link:\r\n\r\nhttps://community.topcoder.com/tc?module=SignDocument&templateId=fake-template-id\r\n
\r\n\r\n\r\nOnce signed, you will be automatically added to the NDA terms of use and notified by email. \r\n
","agreed":false,"docusignTemplateId":"fake-template-id","serverInformation":{"serverName":"TopCoder API","apiVersion":"0.0.1","requestDuration":4,"currentTime":1504891122158},"requesterInformation":{"id":"d9994de712597c11d1caad64996d9fa0d9b4aa2c-w2VCwwGwnN6EeyhK","remoteIP":"12.34.56.789","receivedParams":{"apiVersion":"v2","termsOfUseId":"21153","action":"getTermsOfUse"}}} + +/***/ }), +/* 189 */ +/***/ (function(module, exports) { + +module.exports = {"terms":[{"termsOfUseId":21193,"title":"Standard Terms for Topcoder Competitions v2.1","url":"","agreeabilityType":"Electronically-agreeable","templateId":null},{"termsOfUseId":21153,"title":"Appirio NDA v2.0","url":"http://community.topcoder.com/tc?module=Terms&tuid=21153","agreeabilityType":"DocuSignable","templateId":"fake-template-id"}],"serverInformation":{"serverName":"Topcoder API","apiVersion":"0.0.1","requestDuration":11471,"currentTime":1504879510947},"requesterInformation":{"id":"456f987dee6e9823179c8184fd3509ffdf9c613a-FyefLdEpb8UHgFQF","remoteIP":"12.34.567.890","receivedParams":{"role":"Submitter","noauth":"true","apiVersion":"v2","challengeId":"30059255","action":"getChallengeTerms"}}} + +/***/ }), +/* 190 */ +/***/ (function(module, exports) { + +module.exports = {"terms":[{"termsOfUseId":21153,"title":"Appirio NDA v2.0","url":"http://community.topcoder.com/tc?module=Terms&tuid=21153","agreeabilityType":"DocuSignable","agreed":false,"templateId":"fake-template-id"},{"termsOfUseId":20704,"title":"Standard Reviewer Terms v1.0","url":"","agreeabilityType":"Electronically-agreeable","agreed":false,"templateId":null}],"serverInformation":{"serverName":"Topcoder API","apiVersion":"0.0.1","requestDuration":29,"currentTime":1504878884618},"requesterInformation":{"id":"1b37607c519c318194ce6da08c519c0a3f7c9855-7FSFCyd6oSX2mV6Z","remoteIP":"12.34.567.890","receivedParams":{"role":"Submitter","apiVersion":"v2","challengeId":"30059255","action":"getChallengeTerms"}}} + +/***/ }), +/* 191 */ +/***/ (function(module, exports) { + +module.exports = {"termsOfUseId":20704,"title":"Standard Reviewer Terms v1.0","url":"","text":"THESE ARE THE TERMS AND CONDITIONS (\"TERMS\") UNDER WHICH YOU AGREE TO WORK UNDER AS A TOPCODER REVIEW BOARD MEMBER. THESE TERMS AND CONDITIONS AFFECT YOUR RIGHTS AND YOU SHOULD READ THEM CAREFULLY BEFORE AGREEING TO THEM. IN THESE TERMS AND CONDITIONS, \"WE,\" \"US,\" \"ITS\" AND \"OUR\" REFER TO TOPCODER, INC. AND \"YOU\" AND \"YOUR\" REFER TO YOU.
\r\n\r\nIt is understood that We need, and You have, expertise in evaluating and critiquing software designs and/or software development solutions. Furthermore, You agree that You are ready, willing, and able to undertake the performance of evaluating and critiquing such software designs and/or software development solutions submitted to Us, and You agree to assign and transfer your rights as a result of performing such services.
\r\n\r\nIn consideration of the premises and the mutual promises and covenants set forth herein, and for other good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, the parties agree as follows:
\r\n\r\nAs used in these Terms, the following capitalized terms shall have the following meanings unless otherwise indicated:
\r\n\r\n1.1.\t\"Development(s)\" shall mean any idea, design, concept, development, component, algorithm, process, method, formula, code, software, technique, technology, discovery or improvement, whether or not patentable, made, conceived, created, discovered, invented or reduced to practice by You in connection with the performance of services hereunder.
\r\n\r\n1.2.\t\"Intellectual Property Rights\" shall mean all intellectual property rights worldwide arising under statutory or common law or by contract and whether or not perfected, now existing or hereafter filed, issued or acquired, including all patent rights; all rights associated with works of authorship including copyrights and moral rights; rights relating to the protection of trade secrets and confidential information; and any right analogous to those set forth herein and any other proprietary rights relating to intangible property, other than Trademarks.
\r\n\r\n1.3.\t\"TopCoder Information\" shall mean TopCoder's and TopCoder Software's specifications, descriptions, architecture, plans, interfaces, and code for TopCoder's and TopCoder Software's hardware, software, and web site; TopCoder's competitions and competition operation procedures; TopCoder's and TopCoder Software's business and operational plans; and derivatives of the foregoing. The TopCoder Information shall be Confidential Information hereunder.
\r\n\r\n1.4.\t\"Software Component\" shall mean all software and related materials, technology and documentation (including without limitation design documents, source code and object code) to be evaluated and assessed by You for Us hereunder in accordance with our requirements, as set forth herein and in other documents provided by Us. The Software Component shall be Confidential Information hereunder.
\r\n\r\n2.1\tYou hereby agree to provide services relating to the evaluation and assessment of the Software Component. You agree to perform such services according to and in conformity with the following specifications, in addition to any specifications and/or scheduled provided by Us in our sole discretion (the \"Services\"):
\r\n\r\n2.2\tYou agree to commit sufficient time and resources to perform the Services according to the schedule set forth by Us. You shall promptly notify Us of any circumstances, as such circumstances arise, that may reasonably be anticipated to lead to a material deviation from the schedule.
\r\n\r\n2.3\tYou agree to keep Us updated, promptly upon our request, of any progress, problems, and/or developments of which You are aware regarding the Services. We shall have the right to require such updates in writing from You in a format specified by Us or acceptable to Us in our sole discretion. You shall conduct and conclude the Services in a professional manner.
\r\n\r\n3.1\tFee. In consideration for performance of the Services required by You, We shall pay You the fee set forth on TopCoder's website and/or in other correspondence from Us to You (the \"Fee\"). The Fee shall be in U.S. Dollars and may be paid in installments, as set forth on our website or in other correspondence from Us. The Fee shall be paid upon the conclusion of the review period, and once completed scorecards have been received, provided the completed scorecards are submitted to Us by the deadline as set forth on the website and/or in the correspondence from Us.
\r\n\r\n3.2\tRoyalty Payments.
\r\n \r\n(a)\tDefinitions. As used in this Section 3, the following capitalized terms shall have the following meanings unless otherwise indicated:
\r\n(b)\tIn consideration of Your evaluation of the Software Components and performance of Your obligations hereunder, We may pay to You a royalty (the \"Royalty Payment\"). The Royalty Payment to be paid shall be a portion of the Royalty Pool. The Royalty Pool shall be distributed as follows:
\r\n\r\n3.3\tTotal Payment. The sum of the Fee and the Royalty Payments shall be the total payment due to You. Any and all out-of-pocket expenses incurred by You in connection with performing the obligations hereunder are your sole responsibility. We will not reimburse You for any expenses incurred.
\r\n\r\n3.4\tYou shall not be entitled to receive any other compensation or any benefits from Us in connection with the Services. Except as otherwise required by law, We shall not withhold any sums or payments made to You for social security or other federal, state or local tax liabilities or contributions, and all withholdings, liabilities, and contributions shall be solely your responsibility. Further, You understand and agree that the Services are not covered under the unemployment compensation laws and are not intended to be covered by workers' compensation laws.
\r\n\r\n4.1\tYou hereby acknowledge and agree that We own, solely and exclusively, all right, title and interest, including all Intellectual Property Rights, in and to the TopCoder Information. In addition, You hereby irrevocably and unconditionally transfer and assign to Us all right, title and interest You had, have, may have or acquire in or to all Developments and Software Components, and You agree to execute and deliver such documents, certificates, assignments and other writings, and take such other actions as may be necessary or desirable to vest in Us the ownership rights granted to Us hereunder.
\r\n\r\n4.2\tYou further agree that any and all works of authorship created, authored or developed by You hereunder shall be deemed to be \"works made for hire\" within the meaning of the United States Copyright Law and, as such, all rights therein including copyright shall belong solely and exclusively to Us from the time of their creation. To the extent any such work of authorship may not be deemed to be a work made for hire, You agree to, and do hereby, irrevocably and unconditionally transfer and assign to Us all right, title and interest including copyright in and to such work.
\r\n\r\n4.3\tYou agree that if We are unable, because of your unavailability, or for any other reason, to secure your signature to apply for or to pursue any application for any United States or foreign patents, mask work, copyright or trademark registrations covering the assignments to Us above, then You hereby irrevocably designates and appoints Us and your duly authorized officers and agents as your agent and attorney in fact, to act for and in your behalf and stead to execute and file any such applications and to do all other lawfully permitted acts to further the prosecution and issuance of patents, copyright, mask work and trademark registrations thereon with the same legal force and effect as if executed by your authorized agent.
\r\n\r\n4.4\tAll Intellectual Property Rights owned by a party as of the date You agree to these Terms shall remain the property of such party and no licenses or other rights with respect to such intellectual property are granted to the other party except as expressly set forth herein.
\r\n\r\n4.5\tNothing in these terms shall be construed as granting You any right or license under any of our Intellectual Property Right (including any rights We may have in any patents, copyrights, trademarks, service marks or any trade secrets), by implication, estoppel or otherwise, except as expressly set forth herein.
\r\n\r\n5.1\t\"Confidential Information\" shall mean any information, in whatever form, provided by Us to You with obligation of confidentiality, or designated by Us in writing as confidential, proprietary or marked with words of like import when provided to You, and information orally conveyed if We state at the time of oral conveyance or promptly thereafter that such information is confidential. Notwithstanding anything to the contrary contained herein, information about or relating to our software, our system interfaces, our hardware and software architecture, our business, operational and marketing plans, our member lists and database, all information and technology provided by Us to You to enable You to perform your obligations hereunder, TopCoder Information, and any and all Developments shall be considered Confidential Information.
\r\n\r\n5.2\tConfidential Information shall not include information which (a) was in your possession without confidentiality restriction prior to disclosure by Us hereunder; (b) at or after the time of disclosure by Us becomes generally available to the public through no act or omission on our part; (c) is developed by You independently of and without reference to any Confidential Information You receive from Us; or (d) has come into your possession without confidentiality restriction from a third party and such third party is under no obligation to Us to maintain the confidentiality of such information.
\r\n\r\n5.3\tYou acknowledge the confidential and proprietary nature of Confidential Information and agree (i) to hold Confidential Information in confidence and to take all reasonable precautions to protect such Confidential Information (including, without limitation, all precautions You employ with respect to your own confidential materials), (ii) not to divulge any such Confidential Information to any third person; and (iii) not to make any use whatsoever of such Confidential Information except as expressly authorized herein.
\r\n\r\n5.4\tIn the event You are ordered to disclose Confidential Information pursuant to a judicial or government request, requirement or order, You shall promptly notify Us and upon our request, You shall, at our expense, take reasonable steps to assist Us in contesting such request, requirement or order or in otherwise protecting our rights prior to disclosure.
\r\n\r\n5.5\tYou agree not to reproduce or copy by any means Confidential Information, except as reasonably required to perform the Services. Upon termination of your performance of the Services as a review board member, your right to use Confidential Information shall immediately terminate. In addition, upon such termination, or upon demand by Us at any time, You shall return promptly to Us or destroy, at our option, all tangible materials and computer data that disclose or embody Confidential Information.
\r\n\r\n5.6\tYou agree that any breach of these terms by You could cause irreparable damage to Us. In view of the difficulties of placing a monetary value on the Confidential Information, We shall have, in addition to any and all remedies of law, the right to an injunction or other equitable relief, and may be entitled to a preliminary and final injunction without the necessity of posting any bond or undertaking in connection therewith to prevent any further breach or further unauthorized use of Confidential Information. This remedy is separate from any other remedy We may have.
\r\n\r\n6.1\tYou represent and warrant that:\r\n
7.1\tYou shall indemnify, hold harmless and defend Us and our customers from and against any and all suits, actions, damages, costs, losses, expenses (including settlement awards and reasonable attorneys' fees) and other liabilities arising from or in connection with any claim alleging that, to your knowledge, any Development and/or Software Component violates any trade secret right, or infringes any copyright, patent, trademark, or other intellectual property interest, in any country, and shall pay all costs and damages awarded. We shall promptly notify You of any such claim of which We are aware.
\r\n\r\n7.2\tYour obligations shall not extend to any claim for violation or infringement resulting solely from your compliance with any specific or direct written instructions from Us if such infringement would have been avoided but for such compliance.
\r\n\r\n8.1\tBoth parties expressly agree and understand that You are an independent contractor and nothing herein nor the services rendered hereunder is meant, or shall be construed in any way or manner, to create a relationship of employer and employee, principal and agent, partners or any other relationship other than that of independent parties contracting with each other solely for the purpose of carrying out the provisions of these Terms. Accordingly, You acknowledge and agree that You shall not be entitled to any benefits provided by Us to our employees. You shall be responsible for any and all out-of-pocket expenses incurred in connection with performing the Services. In addition, You shall have sole and exclusive responsibility for the payment of all federal, state and local income taxes, for all employment and disability insurance and for Social Security and other similar taxes with respect to any compensation provided by Us hereunder. You further agree that if We pay or become liable for such taxes or related civil penalties or interest as a result of your failure to pay taxes or report same, or due to our failure to withhold taxes, You shall indemnify and hold us harmless for any such liability. You shall assume and accept all responsibilities which are imposed on independent contractors by any statute, regulation, rule of law, or otherwise. You are not our agent and are not authorized and shall not have the power or authority to bind Us or incur any liability or obligation, or act on behalf of Us. At no time shall You represent that You are our agent, or that any of the views, advice, statements and/or information that may be provided while performing the Services are ours.
\r\n\r\n8.2\tWe are entitled to provide You with general guidance to assist You in completing the scope of work to our satisfaction, You are ultimately responsible for directing and controlling the performance of the task and the scope of work, in accordance with these Terms. You shall use your best efforts, energy and skill in your own name and in such manner as You see fit.
","agreeabilityType":"Electronically-agreeable","serverInformation":{"serverName":"Topcoder API","apiVersion":"0.0.1","requestDuration":52,"currentTime":1504892902498},"requesterInformation":{"id":"d8c441f8332161f71533f368c09aeead856e4366-K1RdFai7LCAgXVu5","remoteIP":"12.34.56.78","receivedParams":{"apiVersion":"v2","termsOfUseId":"21193","action":"getTermsOfUse"}}} + +/***/ }), +/* 192 */ +/***/ (function(module, exports) { + +module.exports = {"termsOfUseId":21193,"title":"Standard Terms for Topcoder Competitions v2.1","url":"","agreeabilityType":"Electronically-agreeable","text":"\r\n\r\n\r\n\r\n\r\n\r\nBY E-MAIL: | \r\nGC@appirio.com | \r\n
BY MAIL: | \r\nDan Lascell\r\n\r\nTopcoder, Inc.\r\n\r\n760 Market Street\r\n\r\nSan Francisco, CA 94102 | \r\n
BY PHONE: | \r\n(650) 268-9911 | \r\n