0.6.16 • Published 1 year ago

@leaddreamer/tufbrowser v0.6.16

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

view on
npm

@leaddreamer/tufbrowser

Browser functions for the Tickets Unlimited system, wrapped around TUFBusiness and indirectly firebase-wrapper, for the Front End.

Modules

Constants

Functions

Typedefs

TUFBrowser

Browser functions for the Tickets Unlimited system, wrapped around TUFBusiness and indirectly firebase-wrapper, for the Front End.

TUFBrowser~FirebaseConfigObject : object

only authDomain, databaseURL and storageBucket are present when called from a cloud environment

Kind: inner typedef of TUFBrowser
Properties

NameTypeDescription
apiKeystringrequired api Key from Firebase Console,
appIdstringrequired app ID from Firebase Console
projectIdstringrequired Firebase projectID from Firebase console
authDomainstring(optional) auth domain from Firebase Console
databaseURLstring(optional) Firestore database URL from Firebase console
storageBucket:string(optional) URL of Firestore Storage Bucket
messagingSenderId:string(optional) ID for Messaing service from Firebase Console
measurementId:string(optional) Analytics/Measurement ID from Firebase Console
mapsAPIKeystring(optional) App ID for Google Maps API, from Google

CloudFunctions

Project specific Auth functions

CloudFunctions

Project specific Auth functions~fetchClaims

fetches our specific custom claim values from user Token() ⇒ Credential

Kind: inner method of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule)
<a name="CloudFunctions Project specific Auth functionsmodule
..changeCredentials use a credential object to add a new server-side role to a user">

CloudFunctions

Project specific Auth functions~changeCredentials

use a credential object to add a new server-side role to a user(credential) ⇒ Promise.<void>

Kind: inner method of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule_)

ParamTypeDescription
credentialCredentialthe new credential being requested. Verified and set at server-side

CloudFunctions

Project specific Auth functions~Credential : object Kind: inner typedef of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule_)
Properties

NameTypeDescription
artiststringArtists's Id
venuestringvenue Id
adminStatusboolean
superUserboolean
employeeboolean

CloudFunctions

Project specific Auth functions~secret_object : object Kind: inner typedef of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule_)
Properties

NameType
payment_secretstring

CloudFunctions

Project specific Auth functions~pledgeTicketObject : object Kind: inner typedef of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule_)
Properties

NameType
pledgeTicketpledgeTicket

CloudFunctions

Project specific Auth functions~AccountRequestData : object Kind: inner typedef of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule_)
Properties

NameTypeDescription
typestringeither "Artists" or "Venues"
accountArtistFormType | VenueType

CloudFunctions

Project specific Auth functions~personIdObject : object Kind: inner typedef of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule_)
Properties

NameType
personIdstring

CloudFunctions

Project specific Auth functions~PDSSummaryArray : PDSSummary Kind: inner typedef of CloudFunctions Project specific Auth functions(#CloudFunctions Project specific Auth functionsmodule_)

subscribeVenue

Venue Specific subscribers

Kind: global constant

editInPlaceSelectStyles


Edit In Place constants

Kind: global constant

loginArtist

----------------------------------------------------------------------()

Kind: global function

logoutArtist

----------------------------------------------------------------------()

Kind: global function

makeActiveArtist

accepts the selected artist_role and uses it login & setup control of

the indicated artist.(artist_role) ⇒ Promise.<void>

Kind: global function
Returns: Promise.<void> - ----------------------------------------------------------------------

ParamTypeDescription
artist_roleartist_role{ Id: {string} artistID name: {string} artist_name role: {string} management role }

listenArtist

Sets up a listener *specifically* to the Redux store(uid) ⇒

Kind: global function
Returns: an unsubscribe function

ParamDescription
uidUID of the Artist record for the Redux store to listen too.

listenArtists(dataCallback, errCallback) ⇒ function


Kind: global function
Returns: function - unsubscribe function

ParamTypeDescription
dataCallbackfunctioncallback
errCallbackfunctioncallback

listenArtistsPaginated(dataCallback, errCallback) ⇒ PaginatedListener


Kind: global function
Returns: PaginatedListener - object with unsubscribe and pagination methods

ParamTypeDescription
dataCallbackfunctioncallback
errCallbackfunctioncallback

loginCityManager(cityManager_roles)


Kind: global function

ParamTypeDescription
cityManager_rolesobject----------------------------------------------------------------------

logoutCityManager

----------------------------------------------------------------------()

Kind: global function

makeActiveCityManager

accepts the selected artist_role and uses it login & setup control of

the indicated artist.(cityManager_role) ⇒ Promise.<void>

Kind: global function
Returns: Promise.<void> - ----------------------------------------------------------------------

ParamTypeDescription
cityManager_rolecityManager_role{ Id: {string} cityManagerID name: {string} cityManager_name role: {string} management role }

Sets up a listener *specifically* to the Redux store(uid) ⇒


Kind: global function
Returns: an unsubscribe function

ParamDescription
uidUID of the Artist record for the Redux store to listen too.

ListenMCCs() ⇒ function

A function that returns a function to attach as a listener, that returns a function to unsubscribe A function that "pretends" to be a listener, to maintain consistent structure Onlyloads at boot-up

Kind: global function
Sync: uses colusure, so can be called sync

pullURLFromRecord(record, key) ⇒ external:promise


Kind: global function
Fulfil: string a "private" URL to access the file.
Reject: string

ParamTypeDescription
recordRecordObjectA firestore document Record - the '/' separated collection/ document path is used as the path to the stored item.
keystringAn optional string identifying the specific field an stored item is associated with

accessibleStorage(URL) ⇒ Promise.<URL>


Kind: global function
Fulfil: string a local URL to access the downloaded data
Reject: string

ParamType
URLstring

offerAccess(parent, offer)

Kind: global function

ParamType
parentArtistFormType | VenueType
offerAccessOffer

selectType

This function is a parameterized selector(state, type) Kind: global function

ParamTypeDescription
stateStoreRedux State/Store
type"Genres" | "Regions" | "Skills" | "Roles" | "MANAGEDARTISTS" | "MANAGEDVENUES"type of list to select. Returns {null} for others

selectAccountData(state)

Kind: global function

ParamTypeDescription
stateStoreRedux State/Store

This function is a parameterized selector(type, prompt, limit) ⇒ Promise.<HostArray>

Kind: global function
Returns: Promise.<HostArray> - - returns an array of results, up to limit

ParamTypeDescription
type"MANAGEDARTISTS" | "MANAGEDVENUES"type of list to select. Returns {null} for others
promptstring"search" string (starts-with)
limitnumberlimit results (from start)

summarizeItem

parameterized function to return string summary of an object By default, returns the name property of the item.(item, type) ⇒ string Kind: global function

ParamTypeDescription
itemobjectdata object to summarize
typeString | "People" | "Addresses" | "accessControl"- type of the object to summarize

loginVenue(venue_roles)


Kind: global function

ParamTypeDescription
venue_rolesobject----------------------------------------------------------------------

logoutVenue

----------------------------------------------------------------------()

Kind: global function

makeActiveVenue

accepts the selected artist_role and uses it login & setup control of

the indicated artist.(venue_role) ⇒ Promise.<void>

Kind: global function
Returns: Promise.<void> - ----------------------------------------------------------------------

ParamTypeDescription
venue_rolevenue_role{ Id: {string} venueID name: {string} venue_name role: {string} management role }

listenVenues(dataCallback, errCallback) ⇒ function


Kind: global function
Returns: function - unsubscribe function

ParamTypeDescription
dataCallbackfunctioncallback
errCallbackfunctioncallback

listenVenuesPaginated(dataCallback, errCallback, pageSize) ⇒ PaginatedListener

Kind: global function
Returns: PaginatedListener - object with unsubscribe and pagination methods

ParamTypeDescription
dataCallbackfunctioncallback
errCallbackfunctioncallback
pageSizenumber

listenPledgeTickets

Attaches a listener to the tourStops pledgetickets (if any)(tourStop, dataCallback, errCallback) ⇒

Kind: global function
Returns: a unsubscribe function to dismiss the listener

ParamDescription
tourStoptourStop record (with refPath) to get pledgeTickets from
dataCallbacka callback function to call when when there is an update event on the pledgeTickets attached to the tourStop
errCallbacka callback function for error conditions

browserCheckIn(pledgeTicket, checkIn)

Calls Function Server to securely create a CheckIn

Kind: global function

ParamType
pledgeTicketpledgeTicketType
pledgeTicket.refPathstring
checkInobject

selectGeneric(state, sliceName, which)

gets Redux information by "slice" (really, which reducer) and "which" (table name)

Kind: global function

ParamTypeDescription
statestoreRedux state/store
sliceNamestringa name to identify the reducer/state segment
whichstringthe name of the sub-table

getGeneric(sliceName, which)

gets Redux information by "slice" (really, which reducer) and "which" (table name) Supplies the state locally - which may affect some async operations.

Kind: global function

ParamTypeDescription
sliceNamestringa name to identify the reducer/state segment
whichstringthe name of the sub-table

HostArray : ArtistFormType | VenueType

Kind: global typedef

.createArtistAccount(artistForm) ⇒ Promise

Kind: static function

ParamType
artistFormArtistFormType

.createCityManagerAccount(cityManagerForm) ⇒ Promise

Kind: static function

ParamType
cityManagerFormCityManagerType

.createVenueAccount(venueForm) ⇒ Promise

Kind: static function

ParamType
venueFormVenueType

© 2020-2023 Tracy Hall

0.6.13-beta.10

1 year ago

0.6.13-beta.11

1 year ago

0.6.14

1 year ago

0.6.16

1 year ago

0.6.15

1 year ago

0.6.13-beta.0

1 year ago

0.6.17-beta.1

1 year ago

0.6.17-beta.2

1 year ago

0.6.17-beta.3

1 year ago

0.6.17-beta.4

1 year ago

0.6.17-beta.5

1 year ago

0.6.13-beta.6

1 year ago

0.6.13-beta.5

1 year ago

0.6.13-beta.8

1 year ago

0.6.13-beta.7

1 year ago

0.6.13-beta.2

1 year ago

0.6.13-beta.1

1 year ago

0.6.13-beta.4

1 year ago

0.6.13-beta.3

1 year ago

0.6.13-beta.9

1 year ago

0.6.7

1 year ago

0.6.6

1 year ago

0.6.9

1 year ago

0.6.8

1 year ago

0.6.10

1 year ago

0.6.12

1 year ago

0.6.11

1 year ago

0.5.2

1 year ago

0.6.3

1 year ago

0.6.2

1 year ago

0.6.5

1 year ago

0.6.4

1 year ago

0.6.1

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.2-beta.33

1 year ago

0.0.2-beta.32

1 year ago

0.0.2-beta.31

1 year ago

0.0.2-beta.30

1 year ago

0.0.2-beta.29

1 year ago

0.0.2-beta.28

1 year ago

0.0.2-beta.27

1 year ago

0.0.2-beta.26

1 year ago

0.0.2-beta.25

1 year ago

0.0.2-beta.24

1 year ago

0.0.2-beta.23

1 year ago

0.0.2-beta.22

1 year ago

0.0.2-beta.21

1 year ago

0.0.2-beta.20

1 year ago

0.0.2-beta.19

1 year ago

0.0.2-beta.18

1 year ago

0.0.2-beta.17

1 year ago

0.0.2-beta.16

1 year ago

0.0.2-beta.15

1 year ago

0.0.2-beta.14

1 year ago

0.0.2-beta.13

1 year ago

0.0.2-beta.12

1 year ago

0.0.2-beta.11

1 year ago

0.0.2-beta.10

1 year ago

0.0.2-beta.9

1 year ago

0.0.2-beta.8

1 year ago

0.0.2-beta.7

1 year ago

0.0.2-beta.6

1 year ago

0.0.2-beta.5

1 year ago

0.0.2-beta.4

1 year ago

0.0.2-beta.3

1 year ago

0.0.2-beta.2

1 year ago

0.0.2-beta.1

1 year ago

0.0.2-beta.0

1 year ago