2.3.5 • Published 4 years ago

@nuskin/invite-link-service v2.3.5

Weekly downloads
10
License
ISC
Repository
-
Last release
4 years ago

Invite Link Service

Exports:


getCountryAndLanguagesList

/**
 * Returns a Promise which resolves with a shortened url which can be provided as an invitation link to someone.
 * @returns {Promise<string>}
 * @param {Object} config - The parameters required to build the URL
 * @param {string} config.origin - The site host, as configured in the marketConfig.siteUrl
 * @param {INVITATION_TYPE} config.invitationType - The type of the invitation
 * @param {string} config.selectedLocale - The locale for which the URL will point to
 * @param {string} config.hostAccountId - The account-id of the distributor sending the invitation
 */

getUserProfile

/**
 * User-profile info
 * @typedef {Object} UserProfileInfo
 * @property {string} displayName - The display-name, usually first-name + last-name of the user
 * @property {string} profilePhoto - The url of the user's profile-photo
 */
/**
	* Gets a user's profile info.
	* @returns {Promise<UserProfileInfo>}
	* @param {Object} params
	* @param {('dev'|'test'|'stage'|'prod')} params.env - The current environment
	* @param {string} params.accountID - The user's account-id
 */

ENVIRONMENT

/**
 * Enum for firebase environments.
 * @typedef ENVIRONMENT
 * @readonly
 * @enum {string}
 * @property {string} LOCALHOST
 * @property {string} DEV
 * @property {string} TEST
 * @property {string} STAGE
 * @property {string} PROD
 */


getShortInviteURL

/**
 * Returns a Promise which resolves with a shortened url which can be provided as an invitation link to someone.
 * @returns {Promise<string>}
 * @param {Object} config - The parameters required to build the URL
 * @param {string} config.origin - The site host, as configured in the marketConfig.siteUrl
 * @param {INVITATION_TYPE} config.invitationType - The type of the invitation
 * @param {string} config.selectedLocale - The locale for which the URL will point to
 * @param {string} config.hostAccountId - The account-id of the distributor sending the invitation
 */

INVITATION_TYPE

/**
 * Enum for invitation-types.
 * @typedef INVITATION_TYPE
 * @readonly
 * @enum {string}
 * @property {string} BRAND_AFFILIATE
 * @property {string} MEMBER
 * @property {string} CUSTOMER
 */
2.3.5

4 years ago

2.3.4

5 years ago

2.3.3

5 years ago

2.3.2

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago