@tillhub/javascript-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Barcode
Get
Failed
Product
Children
Details
Fetch
Failed
Product
Details
Fetch
Failed
Product
Fetch
Failed
Products
constructor
endpoint
http
options
uri
Helper
base
Endpoint
book
Stock
bulk
Create
bulk
Edit
check
Barcode
count
create
delete
duplicate
export
get
get
All
get
Children
Details
get
Details
import
meta
pricebook
Entries
pricebooks
put
search
select
Products
Book
Stock
Failed
Products
Bulk
Create
Failed
Products
Bulk
Edit
Failed
Products
Count
Failed
Products
Create
Failed
Products
Delete
Failed
Products
Duplicate
Failed
Products
Export
Failed
Products
Fetch
Failed
Products
Import
Failed
Products
Meta
Failed
Products
Search
Failed
Products
Update
Failed
Barcode
Response
Book
Stock
Book
Stock
Query
Error
Object
Handler
Products
Query
Images
Product
Product
Delete
Options
Product
Response
Products
Bulk
Response
Products
Create
Query
Products
Details
Options
Products
Duplicate
Body
Products
Duplicate
Response
Products
Export
Response
Products
Options
Products
Query
Products
Response
Products
Update
Request
Object
Search
Query
Select
Products
Query
Stock
Configuration
Location
Hierarchy
ThBaseHandler
Products
Index
Constructors
constructor
Properties
endpoint
http
options
uri
Helper
base
Endpoint
Methods
book
Stock
bulk
Create
bulk
Edit
check
Barcode
count
create
delete
duplicate
export
get
get
All
get
Children
Details
get
Details
import
meta
pricebook
Entries
pricebooks
put
search
select
Constructors
constructor
new
Products
(
options
:
ProductsOptions
, http
:
Client
)
:
Products
Parameters
options:
ProductsOptions
http:
Client
Returns
Products
Properties
endpoint
endpoint
:
string
http
http
:
Client
options
options
:
ProductsOptions
uri
Helper
uri
Helper
:
UriHelper
Static
base
Endpoint
base
Endpoint
:
string
= '/api/v1/products'
Methods
book
Stock
book
Stock
(
requestOptions
:
BookStockQuery
)
:
Promise
<
ProductResponse
>
Parameters
requestOptions:
BookStockQuery
Returns
Promise
<
ProductResponse
>
bulk
Create
bulk
Create
(
products
:
Product
[]
, query
?:
HandlerProductsQuery
)
:
Promise
<
ProductsBulkResponse
>
Parameters
products:
Product
[]
Optional
query:
HandlerProductsQuery
Returns
Promise
<
ProductsBulkResponse
>
bulk
Edit
bulk
Edit
(
products
:
Product
[]
)
:
Promise
<
ProductsResponse
>
Parameters
products:
Product
[]
Returns
Promise
<
ProductsResponse
>
check
Barcode
check
Barcode
(
code
:
string
)
:
Promise
<
ProductResponse
>
Parameters
code:
string
Returns
Promise
<
ProductResponse
>
count
count
(
)
:
Promise
<
ProductsResponse
>
Returns
Promise
<
ProductsResponse
>
create
create
(
product
:
Product
, query
?:
HandlerProductsQuery
)
:
Promise
<
ProductResponse
>
Parameters
product:
Product
Optional
query:
HandlerProductsQuery
Returns
Promise
<
ProductResponse
>
delete
delete
(
productId
:
string
, deleteOptions
?:
ProductDeleteOptions
)
:
Promise
<
ProductsResponse
>
Parameters
productId:
string
Optional
deleteOptions:
ProductDeleteOptions
Returns
Promise
<
ProductsResponse
>
duplicate
duplicate
(
body
:
ProductsDuplicateBody
)
:
Promise
<
ProductsDuplicateResponse
>
Parameters
body:
ProductsDuplicateBody
Returns
Promise
<
ProductsDuplicateResponse
>
export
export
(
query
?:
ProductsQuery
)
:
Promise
<
ProductsExportResponse
>
Parameters
Optional
query:
ProductsQuery
Returns
Promise
<
ProductsExportResponse
>
get
get
(
productId
:
string
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
Returns
Promise
<
ProductResponse
>
get
All
get
All
(
options
?:
ProductsOptions
)
:
Promise
<
ProductsResponse
>
Parameters
Optional
options:
ProductsOptions
Returns
Promise
<
ProductsResponse
>
get
Children
Details
get
Children
Details
(
productId
:
string
, hideStock
?:
boolean
, options
?:
ProductsDetailsOptions
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
Optional
hideStock:
boolean
Optional
options:
ProductsDetailsOptions
Returns
Promise
<
ProductResponse
>
get
Details
get
Details
(
productId
:
string
, options
?:
ProductsOptions
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
Optional
options:
ProductsOptions
Returns
Promise
<
ProductResponse
>
import
import
(
options
?:
ProductsOptions
)
:
Promise
<
ProductsResponse
>
Parameters
Optional
options:
ProductsOptions
Returns
Promise
<
ProductsResponse
>
meta
meta
(
q
?:
ProductsQuery
)
:
Promise
<
ProductsResponse
>
Parameters
Optional
q:
ProductsQuery
Returns
Promise
<
ProductsResponse
>
pricebook
Entries
pricebook
Entries
(
)
:
PricebookEntries
Returns
PricebookEntries
pricebooks
pricebooks
(
)
:
Pricebooks
Returns
Pricebooks
put
put
(
productId
:
string
, product
:
Product
)
:
Promise
<
ProductResponse
>
Parameters
productId:
string
product:
Product
Returns
Promise
<
ProductResponse
>
search
search
(
query
:
string
|
SearchQuery
)
:
Promise
<
ProductsResponse
>
Parameters
query:
string
|
SearchQuery
Returns
Promise
<
ProductsResponse
>
select
select
(
options
:
SelectProductsQuery
)
:
Promise
<
ProductsResponse
>
Parameters
options:
SelectProductsQuery
Returns
Promise
<
ProductsResponse
>
Generated using
TypeDoc