chore(docs): Generated JS Client Reference (#5434)

Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-10-20 11:47:19 +00:00
committed by GitHub
parent 8203dec3e2
commit 39de54e2e8
96 changed files with 12353 additions and 525 deletions
@@ -0,0 +1,38 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# AddressInfo
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).AddressInfo
## Properties
<ParameterTypes parameters={[
{
"name": "address",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "family",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "port",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]} />
@@ -14,7 +14,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "encoding",
"type": "[`BufferEncoding`](../../admin_discounts/modules/admin_discounts.internal.mdx#bufferencoding)",
"description": "",
"description": "#### Default ```ts 'utf8' ```",
"optional": true,
"defaultValue": "",
"children": []
@@ -18,7 +18,7 @@ Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'bas
{
"name": "poolSize",
"type": "`number`",
"description": "This is the size (in bytes) of pre-allocated internal `Buffer` instances used for pooling. This value may be modified.",
"description": "This is the size (in bytes) of pre-allocated internal `Buffer` instances used for pooling. This value may be modified. #### Since v0.11.3",
"optional": false,
"defaultValue": "",
"children": []
@@ -0,0 +1,22 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# ConnectOpts
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).ConnectOpts
## Properties
<ParameterTypes parameters={[
{
"name": "onread",
"type": "[`OnReadOpts`](admin_discounts.internal.OnReadOpts.mdx)",
"description": "If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will still be emitted as normal and methods like pause() and resume() will also behave as expected.",
"optional": true,
"defaultValue": "",
"children": []
}
]} />
@@ -0,0 +1,26 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# Dict
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).Dict
## Type parameters
<ParameterTypes parameters={[
{
"name": "T",
"type": "`object`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]} />
## Indexable
▪ [key: `string`]: `T` \| `undefined`
@@ -87,7 +87,7 @@ ___
{
"name": "InventoryLevelDTO",
"type": "`object`",
"description": "",
"description": "#### Schema The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"children": []
@@ -205,7 +205,7 @@ ___
{
"name": "InventoryItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Title of the inventory item",
"optional": false,
"defaultValue": "",
"children": []
@@ -263,7 +263,7 @@ ___
{
"name": "InventoryItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Title of the inventory item",
"optional": false,
"defaultValue": "",
"children": []
@@ -316,7 +316,7 @@ ___
{
"name": "InventoryLevelDTO",
"type": "`object`",
"description": "",
"description": "#### Schema The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"children": []
@@ -374,7 +374,7 @@ ___
{
"name": "InventoryLevelDTO",
"type": "`object`",
"description": "",
"description": "#### Schema The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"children": []
@@ -427,7 +427,7 @@ ___
{
"name": "ReservationItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a reservation of an inventory item at a stock location",
"optional": false,
"defaultValue": "",
"children": []
@@ -485,7 +485,7 @@ ___
{
"name": "ReservationItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a reservation of an inventory item at a stock location",
"optional": false,
"defaultValue": "",
"children": []
@@ -959,6 +959,48 @@ ___
___
### restoreInventoryItem
▸ **restoreInventoryItem**(`inventoryItemId`, `context?`): `Promise`<`void`\>
#### Parameters
<ParameterTypes parameters={[
{
"name": "inventoryItemId",
"type": "`string` \\| `string`[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "context",
"type": "[`SharedContext`](../../admin_discounts/modules/admin_discounts.internal.mdx#sharedcontext)",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
}
]} />
#### Returns
`Promise`<`void`\>
<ParameterTypes parameters={[
{
"name": "Promise",
"type": "`Promise`<`void`\\>",
"optional": false,
"defaultValue": "",
"description": "",
"children": []
}
]} />
___
### retrieveAvailableQuantity
▸ **retrieveAvailableQuantity**(`inventoryItemId`, `locationIds`, `context?`): `Promise`<`number`\>
@@ -1066,7 +1108,7 @@ ___
{
"name": "InventoryItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Title of the inventory item",
"optional": false,
"defaultValue": "",
"children": []
@@ -1125,7 +1167,7 @@ ___
{
"name": "InventoryLevelDTO",
"type": "`object`",
"description": "",
"description": "#### Schema The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"children": []
@@ -1176,7 +1218,7 @@ ___
{
"name": "ReservationItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a reservation of an inventory item at a stock location",
"optional": false,
"defaultValue": "",
"children": []
@@ -1353,7 +1395,7 @@ ___
{
"name": "InventoryItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Title of the inventory item",
"optional": false,
"defaultValue": "",
"children": []
@@ -1420,7 +1462,7 @@ ___
{
"name": "InventoryLevelDTO",
"type": "`object`",
"description": "",
"description": "#### Schema The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"children": []
@@ -1478,7 +1520,7 @@ ___
{
"name": "InventoryLevelDTO",
"type": "`object`",
"description": "",
"description": "#### Schema The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"children": []
@@ -1539,7 +1581,7 @@ ___
{
"name": "ReservationItemDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a reservation of an inventory item at a stock location",
"optional": false,
"defaultValue": "",
"children": []
@@ -71,7 +71,7 @@ ___
{
"name": "StockLocationDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a Stock Location",
"optional": false,
"defaultValue": "",
"children": []
@@ -179,7 +179,7 @@ ___
{
"name": "StockLocationDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a Stock Location",
"optional": false,
"defaultValue": "",
"children": []
@@ -307,7 +307,7 @@ ___
{
"name": "StockLocationDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a Stock Location",
"optional": false,
"defaultValue": "",
"children": []
@@ -366,7 +366,7 @@ ___
{
"name": "StockLocationDTO",
"type": "`object`",
"description": "",
"description": "#### Schema Represents a Stock Location",
"optional": false,
"defaultValue": "",
"children": []
@@ -0,0 +1,518 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# IncomingHttpHeaders
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).IncomingHttpHeaders
## Properties
<ParameterTypes parameters={[
{
"name": "accept",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "accept-language",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "accept-patch",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "accept-ranges",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-allow-credentials",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-allow-headers",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-allow-methods",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-allow-origin",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-expose-headers",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-max-age",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-request-headers",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "access-control-request-method",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "age",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "allow",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "alt-svc",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "authorization",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "cache-control",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "connection",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "content-disposition",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "content-encoding",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "content-language",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "content-length",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "content-location",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "content-range",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "content-type",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "cookie",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "date",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "etag",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "expect",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "expires",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "forwarded",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "from",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "host",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "if-match",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "if-modified-since",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "if-none-match",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "if-unmodified-since",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "last-modified",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "location",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "origin",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "pragma",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "proxy-authenticate",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "proxy-authorization",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "public-key-pins",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "range",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "referer",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "retry-after",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "sec-websocket-accept",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "sec-websocket-extensions",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "sec-websocket-key",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "sec-websocket-protocol",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "sec-websocket-version",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "set-cookie",
"type": "`string`[]",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "strict-transport-security",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "tk",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "trailer",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "transfer-encoding",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "upgrade",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "user-agent",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "vary",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "via",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "warning",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "www-authenticate",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
}
]} />
@@ -0,0 +1,30 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# IpcSocketConnectOpts
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).IpcSocketConnectOpts
## Properties
<ParameterTypes parameters={[
{
"name": "onread",
"type": "[`OnReadOpts`](admin_discounts.internal.OnReadOpts.mdx)",
"description": "If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will still be emitted as normal and methods like pause() and resume() will also behave as expected.",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "path",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]} />
@@ -0,0 +1,46 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# LookupOneOptions
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).LookupOneOptions
## Properties
<ParameterTypes parameters={[
{
"name": "all",
"type": "``false``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "family",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "hints",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "verbatim",
"type": "`boolean`",
"description": "#### Default ```ts true ```",
"optional": true,
"defaultValue": "",
"children": []
}
]} />
@@ -0,0 +1,46 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# LookupOptions
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).LookupOptions
## Properties
<ParameterTypes parameters={[
{
"name": "all",
"type": "`boolean`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "family",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "hints",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "verbatim",
"type": "`boolean`",
"description": "#### Default ```ts true ```",
"optional": true,
"defaultValue": "",
"children": []
}
]} />
@@ -0,0 +1,68 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# OnReadOpts
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).OnReadOpts
## Properties
<ParameterTypes parameters={[
{
"name": "buffer",
"type": "`Uint8Array` \\| () => `Uint8Array`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]} />
## Methods
### callback
▸ **callback**(`bytesWritten`, `buf`): `boolean`
This function is called for every chunk of incoming data.
Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer.
Return false from this function to implicitly pause() the socket.
#### Parameters
<ParameterTypes parameters={[
{
"name": "bytesWritten",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "buf",
"type": "`Uint8Array`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]} />
#### Returns
`boolean`
<ParameterTypes parameters={[
{
"name": "boolean",
"type": "`boolean`",
"optional": true,
"defaultValue": "",
"description": "",
"children": []
}
]} />
@@ -0,0 +1,54 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# SocketConstructorOpts
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).SocketConstructorOpts
## Properties
<ParameterTypes parameters={[
{
"name": "allowHalfOpen",
"type": "`boolean`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "fd",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "readable",
"type": "`boolean`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "signal",
"type": "`AbortSignal`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "writable",
"type": "`boolean`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
}
]} />
@@ -0,0 +1,118 @@
---
displayed_sidebar: jsClientSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# TcpSocketConnectOpts
[admin/discounts](../../modules/admin_discounts.mdx).[internal](../../admin_discounts/modules/admin_discounts.internal.mdx).TcpSocketConnectOpts
## Properties
<ParameterTypes parameters={[
{
"name": "autoSelectFamily",
"type": "`boolean`",
"description": "#### Since v18.13.0",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "autoSelectFamilyAttemptTimeout",
"type": "`number`",
"description": "#### Since v18.13.0",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "family",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "hints",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "host",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "keepAlive",
"type": "`boolean`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "keepAliveInitialDelay",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "localAddress",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "localPort",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "lookup",
"type": "[`LookupFunction`](../../admin_discounts/modules/admin_discounts.internal.mdx#lookupfunction)",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "noDelay",
"type": "`boolean`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "onread",
"type": "[`OnReadOpts`](admin_discounts.internal.OnReadOpts.mdx)",
"description": "If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will still be emitted as normal and methods like pause() and resume() will also behave as expected.",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "port",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]} />