Preparing search index...
The search index is not available
@jamesgopsill/myminifactory-client
@jamesgopsill/myminifactory-client
MyMiniFactoryClient
Class MyMiniFactoryClient
Hierarchy
MyMiniFactoryClient
Index
Constructors
constructor
Properties
_api
Key
_fetch
_url
categories
category
collection
collections
file
me
object
object
Files
object
Prints
object
Upload
Status
patch
Object
Metadata
search
upload
File
upload
Image
upload
Object
Metadata
user
user
Collection
user
Collections
user
Followers
user
Following
user
Liked
Objects
user
Objects
Methods
ping
Constructors
constructor
new
My
Mini
Factory
Client
(
apiKey
?:
string
)
:
MyMiniFactoryClient
Parameters
apiKey:
string
= ""
Returns
MyMiniFactoryClient
Properties
Protected
_api
Key
_api
Key
:
string
= ""
Protected
_fetch
_fetch
:
(
<
T
>
(
this
:
MyMiniFactoryClient
, method
:
"GET"
|
"POST"
|
"PUT"
|
"DELETE"
|
"PATCH"
, url
:
string
, params
?:
undefined
|
{
[k:
string
]
:
any
;
}
)
=>
Promise
<
HttpResponse
<
T
>
>
)
= fetchIt
Type declaration
<
T
>
(
this
:
MyMiniFactoryClient
, method
:
"GET"
|
"POST"
|
"PUT"
|
"DELETE"
|
"PATCH"
, url
:
string
, params
?:
undefined
|
{
[k:
string
]
:
any
;
}
)
:
Promise
<
HttpResponse
<
T
>
>
Type Parameters
T
Parameters
this:
MyMiniFactoryClient
method:
"GET"
|
"POST"
|
"PUT"
|
"DELETE"
|
"PATCH"
url:
string
params:
undefined
|
{
[k:
string
]
:
any
;
}
= undefined
Returns
Promise
<
HttpResponse
<
T
>
>
Protected
_url
_url
:
string
= "https://www.myminifactory.com/api/v2"
categories
categories
:
(
(
this
:
MyMiniFactoryClient
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
Category
>
>
>
)
= Categories.categories
Type declaration
(
this
:
MyMiniFactoryClient
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
Category
>
>
>
Parameters
this:
MyMiniFactoryClient
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
Category
>
>
>
category
category
:
(
(
this
:
MyMiniFactoryClient
, id
:
string
)
=>
Promise
<
HttpResponse
<
Category
>
>
)
= Categories.category
Type declaration
(
this
:
MyMiniFactoryClient
, id
:
string
)
:
Promise
<
HttpResponse
<
Category
>
>
Parameters
this:
MyMiniFactoryClient
id:
string
Returns
Promise
<
HttpResponse
<
Category
>
>
collection
collection
:
(
(
this
:
MyMiniFactoryClient
, id
:
string
)
=>
Promise
<
HttpResponse
<
Collection
>
>
)
= Collections.collection
Type declaration
(
this
:
MyMiniFactoryClient
, id
:
string
)
:
Promise
<
HttpResponse
<
Collection
>
>
Parameters
this:
MyMiniFactoryClient
id:
string
Returns
Promise
<
HttpResponse
<
Collection
>
>
collections
collections
:
(
(
this
:
MyMiniFactoryClient
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
Collection
>
>
>
)
= Collections.collections
Type declaration
(
this
:
MyMiniFactoryClient
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
Collection
>
>
>
Parameters
this:
MyMiniFactoryClient
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
Collection
>
>
>
file
file
:
(
(
this
:
MyMiniFactoryClient
, id
:
string
)
=>
Promise
<
HttpResponse
<
File
>
>
)
= Files.file
Type declaration
(
this
:
MyMiniFactoryClient
, id
:
string
)
:
Promise
<
HttpResponse
<
File
>
>
Parameters
this:
MyMiniFactoryClient
id:
string
Returns
Promise
<
HttpResponse
<
File
>
>
me
me
:
(
(
this
:
MyMiniFactoryClient
)
=>
Promise
<
HttpResponse
<
User
>
>
)
= User.me
Type declaration
(
this
:
MyMiniFactoryClient
)
:
Promise
<
HttpResponse
<
User
>
>
Parameters
this:
MyMiniFactoryClient
Returns
Promise
<
HttpResponse
<
User
>
>
object
object
:
(
(
this
:
MyMiniFactoryClient
, id
:
string
)
=>
Promise
<
HttpResponse
<
Object
>
>
)
= Objects.object
Type declaration
(
this
:
MyMiniFactoryClient
, id
:
string
)
:
Promise
<
HttpResponse
<
Object
>
>
Parameters
this:
MyMiniFactoryClient
id:
string
Returns
Promise
<
HttpResponse
<
Object
>
>
object
Files
object
Files
:
(
(
this
:
MyMiniFactoryClient
, id
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
File
>
>
>
)
= Objects.objectFiles
Type declaration
(
this
:
MyMiniFactoryClient
, id
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
File
>
>
>
Parameters
this:
MyMiniFactoryClient
id:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
File
>
>
>
object
Prints
object
Prints
:
(
(
this
:
MyMiniFactoryClient
, id
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
Image
>
>
>
)
= Objects.objectPrints
Type declaration
(
this
:
MyMiniFactoryClient
, id
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
Image
>
>
>
Parameters
this:
MyMiniFactoryClient
id:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
Image
>
>
>
object
Upload
Status
object
Upload
Status
:
(
(
this
:
MyMiniFactoryClient
, id
:
string
)
=>
Promise
<
HttpResponse
<
unknown
>
>
)
= Objects.objectUploadStatus
Type declaration
(
this
:
MyMiniFactoryClient
, id
:
string
)
:
Promise
<
HttpResponse
<
unknown
>
>
Parameters
this:
MyMiniFactoryClient
id:
string
Returns
Promise
<
HttpResponse
<
unknown
>
>
patch
Object
Metadata
patch
Object
Metadata
:
(
(
this
:
MyMiniFactoryClient
, params
:
Partial
<
MetadataParams
>
)
=>
Promise
<
HttpResponse
<
unknown
>
>
)
= Objects.patchObjectMetadata
Type declaration
(
this
:
MyMiniFactoryClient
, params
:
Partial
<
MetadataParams
>
)
:
Promise
<
HttpResponse
<
unknown
>
>
Parameters
this:
MyMiniFactoryClient
params:
Partial
<
MetadataParams
>
Returns
Promise
<
HttpResponse
<
unknown
>
>
search
search
:
(
(
this
:
MyMiniFactoryClient
, searchParams
:
SearchParams
)
=>
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
)
= Search.search
Type declaration
(
this
:
MyMiniFactoryClient
, searchParams
:
SearchParams
)
:
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
Parameters
this:
MyMiniFactoryClient
searchParams:
SearchParams
Returns
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
upload
File
upload
File
:
(
(
this
:
MyMiniFactoryClient
)
=>
Promise
<
string
>
)
= Files.uploadFile
Type declaration
(
this
:
MyMiniFactoryClient
)
:
Promise
<
string
>
Parameters
this:
MyMiniFactoryClient
Returns
Promise
<
string
>
upload
Image
upload
Image
:
(
(
this
:
MyMiniFactoryClient
)
=>
Promise
<
string
>
)
= Files.uploadImage
Type declaration
(
this
:
MyMiniFactoryClient
)
:
Promise
<
string
>
Parameters
this:
MyMiniFactoryClient
Returns
Promise
<
string
>
upload
Object
Metadata
upload
Object
Metadata
:
(
(
this
:
MyMiniFactoryClient
, params
:
MetadataParams
)
=>
Promise
<
HttpResponse
<
unknown
>
>
)
= Objects.uploadObjectMetadata
Type declaration
(
this
:
MyMiniFactoryClient
, params
:
MetadataParams
)
:
Promise
<
HttpResponse
<
unknown
>
>
Parameters
this:
MyMiniFactoryClient
params:
MetadataParams
Returns
Promise
<
HttpResponse
<
unknown
>
>
user
user
:
(
(
this
:
MyMiniFactoryClient
, username
:
string
)
=>
Promise
<
HttpResponse
<
User
>
>
)
= User.user
Type declaration
(
this
:
MyMiniFactoryClient
, username
:
string
)
:
Promise
<
HttpResponse
<
User
>
>
Parameters
this:
MyMiniFactoryClient
username:
string
Returns
Promise
<
HttpResponse
<
User
>
>
user
Collection
user
Collection
:
(
(
this
:
MyMiniFactoryClient
, username
:
string
, collectionSlug
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Collection
>
>
)
= User.userCollection
Type declaration
(
this
:
MyMiniFactoryClient
, username
:
string
, collectionSlug
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Collection
>
>
Parameters
this:
MyMiniFactoryClient
username:
string
collectionSlug:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Collection
>
>
user
Collections
user
Collections
:
(
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
Collection
>
>
>
)
= User.userCollections
Type declaration
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
Collection
>
>
>
Parameters
this:
MyMiniFactoryClient
username:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
Collection
>
>
>
user
Followers
user
Followers
:
(
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
User
>
>
>
)
= User.userFollowers
Type declaration
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
User
>
>
>
Parameters
this:
MyMiniFactoryClient
username:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
User
>
>
>
user
Following
user
Following
:
(
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
User
>
>
>
)
= User.userFollowing
Type declaration
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
User
>
>
>
Parameters
this:
MyMiniFactoryClient
username:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
User
>
>
>
user
Liked
Objects
user
Liked
Objects
:
(
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
)
= User.userLikedObjects
Type declaration
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
Parameters
this:
MyMiniFactoryClient
username:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
user
Objects
user
Objects
:
(
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
=>
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
)
= User.userObjects
Type declaration
(
this
:
MyMiniFactoryClient
, username
:
string
, page
?:
number
, perPage
?:
number
)
:
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
Parameters
this:
MyMiniFactoryClient
username:
string
page:
number
= 1
perPage:
number
= 20
Returns
Promise
<
HttpResponse
<
Paginated
<
Object
>
>
>
Methods
ping
ping
(
)
:
string
Returns
string
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@jamesgopsill/myminifactory-
client
My
Mini
Factory
Client
constructor
_api
Key
_fetch
_url
categories
category
collection
collections
file
me
object
object
Files
object
Prints
object
Upload
Status
patch
Object
Metadata
search
upload
File
upload
Image
upload
Object
Metadata
user
user
Collection
user
Collections
user
Followers
user
Following
user
Liked
Objects
user
Objects
ping
Generated using
TypeDoc