3.0.0-beta4 • Published 4 years ago

@sheetbase/client v3.0.0-beta4

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@sheetbase/client

Javascript client for Sheetbase app.

NameTypeDescription
apiKey?undefined | string
authEndpoint?undefined | string
authProviders?undefined | object
backendUrl?undefined | string
databaseAutoContent?undefined | false | true
databaseCacheTime?undefined | number
databaseDocsStyle?DocsContentStyle
databaseEndpoint?undefined | string
databaseGids?DatabaseGids
databaseId?undefined | string
databaseUseCached?undefined | false | true
loggingEndpoint?undefined | string
mailEndpoint?undefined | string
storageAllowTypes?string[]
storageEndpoint?undefined | string
storageMaxSize?undefined | number

The AppObject class.

NameTypeDescription
apiServiceundefined | ApiService
authServiceundefined | AuthService
cacheServiceCacheService
databaseServiceundefined | DatabaseService
fetchServiceFetchService
helperServiceHelperService
localstorageServiceLocalstorageService
mailServiceundefined | MailService
optionServiceOptionService
storageServiceundefined | StorageService
FunctionReturns typeDescription
api()ApiService
auth()AuthService
cache()CacheService
database()DatabaseService
fetch()FetchService
helper()HelperService
localstorage()LocalstorageService
mail()MailService
option()OptionService
storage()StorageService

The api call signature.

Returns

ApiService


The auth call signature.

Returns

AuthService


The cache call signature.

Returns

CacheService


The database call signature.

Returns

DatabaseService


The fetch call signature.

Returns

FetchService


The helper call signature.

Returns

HelperService


The localstorage call signature.

Returns

LocalstorageService


The mail call signature.

Returns

MailService


The option call signature.

Returns

OptionService


The storage call signature.

Returns

StorageService


FunctionReturns typeDescription
createPopup(config)void
decodeJWTPayload(token)any
getHost()string
isExpiredInSeconds(expiredTime, costMore?)boolean
isExpiredJWT(token)boolean
md5(str, key?, raw?)string
orderBy(collection, iteratees, orders, guard?)any

License

@sheetbase/client is released under the MIT license.

FunctionReturns typeDescription
getOptions()Options
FunctionReturns typeDescription
clear()Promise
extend(storageConfigs)LocalstorageService
get(key)Promise<null | Data>
iterate(handler)Promise
iterateKeys(handler)Promise
keys()Promise<string[]>
remove(key)Promise
removeBulk(keys)Promise
removeByPrefix(prefix)Promise
removeBySuffix(suffix)Promise
set(key, data)Promise
FunctionReturns typeDescription
extend(storageConfigs)CacheService
flush()Promise
flushExpired()Promise
get(key, refresher?, cacheTime?, keyBuilder?)Promise<null | Data>
iterate(handler)Promise
iterateKeys(handler)Promise
remove(key)Promise
removeBulk(keys)Promise
removeByPrefix(prefix)Promise
removeBySuffix(suffix)Promise
set(key, data, cacheTime?)Promise
FunctionReturns typeDescription
delete(url, init?)Promise
fetch(input, init?, json?)Promise
get(url, init?, json?, cacheTime?)Promise<null | Data>
patch(url, init?)Promise
post(url, init?)Promise
put(url, init?)Promise
FunctionReturns typeDescription
addBeforeHooks(hooks)ApiService
addBody(body)ApiService
addQuery(query)ApiService
delete(endpoint?, query?, body?)Promise
error(value)Promise
extend()ApiService
get(endpoint?, query?, cacheTime?)Promise<null | Data>
info(value)Promise
log(value)Promise
logging(value, level?)Promise
patch(endpoint?, query?, body?)Promise
post(endpoint?, query?, body?)Promise
put(endpoint?, query?, body?)Promise
request(inputs?)Promise<null | Data>
setData(data)ApiService
setEndpoint(endpoint)ApiService
system()Promise<null | Data>
warn(value)Promise
FunctionReturns typeDescription
add(sheet, key, data)Promise
all(sheet, cacheTime?)Promise<null | Item[]>
clearCachedAll(input)void
clearCachedContent(cachedInput)Promise
clearCachedItem(sheet, key)Promise
commenting(sheet, key)Promise
direct()DirectObject
docsContent(docId, docsStyle?, cacheTime?)Promise<null | string>
increase(sheet, key, increasing)Promise
indirect()IndirectObject
item(sheet, finder, options?)Promise<null | Item>
items(sheet, filter?, options?)Promise<null | Item[]>
itemsArchived(sheet, options?)Promise<null | Item[]>
itemsByAuthor(sheet, authorKey, options?)Promise<null | Item[]>
itemsByCategory(sheet, categoryKey, options?)Promise<null | Item[]>
itemsByKeyword(sheet, keyword, options?)Promise<null | Item[]>
itemsByLocale(sheet, locale, options?)Promise<null | Item[]>
itemsByMetaEquals(sheet, metaKey, equalTo, options?)Promise<null | Item[]>
itemsByMetaExists(sheet, metaKey, options?)Promise<null | Item[]>
itemsByOrigin(sheet, origin, options?)Promise<null | Item[]>
itemsByParent(sheet, parentKey, options?)Promise<null | Item[]>
itemsByRelated(sheet, baseItem, options?)Promise<Item[]>
itemsByTag(sheet, tagKey, options?)Promise<null | Item[]>
itemsByTerm(sheet, taxonomy, termKey, options?)Promise<null | Item[]>
itemsByType(sheet, type, options?)Promise<null | Item[]>
itemsByTypeDefault(sheet, options?)Promise<null | Item[]>
itemsDraft(sheet, options?)Promise<null | Item[]>
itemsOriginal(sheet, options?)Promise<null | Item[]>
itemsPublished(sheet, options?)Promise<null | Item[]>
jsonContent(url, cacheTime?)Promise<null | Data>
liking(sheet, key)Promise
query(sheet, filter, options?)Promise<null | Item[]>
rating(sheet, key, stars)Promise
registerDataParser(parser)DatabaseService
remove(sheet, key)Promise
set(sheet, key, data)Promise
setSegmentation(globalSegment)DatabaseService
sharing(sheet, key, providers?)Promise
textContent(url, cacheTime?)Promise<null | string>
update(sheet, key, data)Promise
viewing(sheet, key)Promise
FunctionReturns typeDescription
info(id, cacheTime?)Promise<null | FileInfo>
read(_file)Promise
remove(id)Promise
update(id, data)Promise
upload(fileData, customFolder?, renamePolicy?, sharing?)Promise
uploadMultiple(uploadResources)Promise<FileInfo[]>
FunctionReturns typeDescription
quota()Promise<null | MailingQuota>
send(mailingData, category?, template?, silent?)Promise
threads(category?)Promise<null | MailingThread[]>
FunctionReturns typeDescription
checkActionCode(code)Promise
confirmPasswordReset(code, newPassword)Promise
createUserWithEmailAndPassword(email, password)Promise
facebookAuthProvider()ProviderObject
googleAuthProvider()ProviderObject
onAuthStateChanged(next)void
sendPasswordResetEmail(email)Promise
signInAnonymously()Promise
signInWithCustomToken(token)Promise
signInWithEmailAndPassword(email, password)Promise
signInWithPopup(provider)Promise
signOut()Promise
verifyPasswordResetCode(code)Promise
3.0.0-beta4

4 years ago

3.0.0-beta3

4 years ago

3.0.0-beta2

4 years ago

3.0.0-beta1

4 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.0.0-rc.0

5 years ago

0.0.23

5 years ago

0.0.22

5 years ago

0.0.21

5 years ago

0.0.20

5 years ago

0.0.19

5 years ago

0.0.18

5 years ago

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago