Namespace

api/interest

api/interest

Classes

InterestCollection
InterestTypeCollection

Members

api/interest.InterestCollection

# static constant exports.Interests

Provides the singleton instance of this class to all other entities.

View Source api/interest/InterestCollection.ts, line 176

api/interest.InterestTypeCollection

# static constant exports.InterestTypes

Provides the singleton instance of this class to all other entities.

View Source api/interest/InterestTypeCollection.ts, line 56

Methods

# static exports.isInterestArrayValidator()

Custom validator for fields that must contain an Interest slug.

View Source api/interest/InterestCollection.validators.ts, line 20

Error if there are no Slugs in the SlugCollection.

Undefined if the value is an Interest slug, otherwise returns 'undefinedInterestSlug'.

# static exports.isInterestSlugValidator()

Custom validator for fields that must contain an Interest slug.

View Source api/interest/InterestCollection.validators.ts, line 9

Error if there are no Slugs in the SlugCollection.

Undefined if the value is an Interest slug, otherwise returns 'undefinedInterestSlug'.

# static exports.makeSampleInterest() → {String}

Creates an Interest with a unique slug and returns its docID. Also creates a new InterestType.

View Source api/interest/SampleInterests.ts, line 26

The docID for the newly generated Interest.

String

# static exports.makeSampleInterestType() → {String}

Creates an InterestType with a unique slug and returns its docID.

View Source api/interest/SampleInterests.ts, line 13

The docID of the newly generated InterestType.

String