smi-0-20-4
@ordergroove/smi-core / Modules
smi-core
Ordergroove's smi library allows you to manage subscription.
Instalation
npm install --save @ordergroove/smi-core
Usage
import { bootstrap } from '@ordergroove/smi-core';
import { mainTemplate } from '@ordergroove/smi-templates';
// bootstrap cookie based auth
bootstrap({ merchant_id: '0e5de2bedc5e11e3a2e4bc764e106cf4', env: 'staging' }, mainTemplate);
// bootstrap json auth
bootstrap({ merchant_id: '0e5de2bedc5e11e3a2e4bc764e106cf4', env: 'staging', auth_url: '/auth' }, mainTemplate);
// bootstrap inline auth
bootstrap(
{
auth: {
public_id: '0e5de2bedc5e11e3a2e4bc764e106cf4',
ts: 1612805023,
sig_field: 'TestCust',
sig: 'bGoeslklKTtlV9l9q16Ah1Md3D21rsegD0x8z2VjvxI='
},
env: 'staging'
},
mainTemplate
);
// bootstrap inline auth flavor
bootstrap(
{
merchant_id: '0e5de2bedc5e11e3a2e4bc764e106cf4',
auth: 'TestCust|1612805023|bGoeslklKTtlV9l9q16Ah1Md3D21rsegD0x8z2VjvxI=',
env: 'staging'
},
mainTemplate
);
Place the elemenent in the page by either using the legacy markup
<div id="og-msi"></div>
or using latest markup with web components syntax
<og-smi></og-smi>;
bootstrap(config, templateGenerator)
| DESCRIPTOR | SUMMARY | |
|---|---|---|
| config | Object (see below) | Merchant identifier |
| templateGenerator | Function | Factory of templates |
Method that bootstrap the smi for the given configuration and templateGenerator
Configuration
| DESCRIPTOR | SUMMARY | |
|---|---|---|
| merchant_id | Required | Merchant identifier |
| auth_url | optional | Sets the url that holds the auth object know as ajax auth |
| auth | optional <object|string> | Json object containing HMAC auth {sig, sig_field, ts} or string as cookie format |
| env | defaults=prod oneOf(prod, staging) | Allow to specify staging or production |
Templating
Second argument of bootstrap is the templateGenerator
Template generator is a callback that gets call with the lit-html html tag as first argument. Callback need to return a tempalte function that receive the application state.
const templateGenerator = html => state =>
html`
<pre>${JSON.stringify(state, null, 4)}</pre>
`;
const auth = {
public_id: '0e5de2bedc5e11e3a2e4bc764e106cf4',
ts: 1634326560,
sig_field: 'TestCust',
sig: '674VHI8gVS2eaR0KMzVVmhUNNvrPI7PgQtWHQvJZGmk='
};
bootstrap({ auth }, templateGenerator);
Application State
| Name | Type | Desc |
|---|---|---|
| locale | String | This value will represent the current locale being set on the website. The value is pulled form the lang attribute of the html node. For example <html lang='en'> |
| customer | Object | This object represents the current customer who is logged into your site that is viewing the SMI |
| merchant_id | String | This value is used to identify you as the merchant and is the same value that you would find under the customer.public_id key above. |
| environment | Object | This object represents the environment that the application is currently running in. You typically will not need to |
| orders | Array | This array represents the list of all of the customer's upcoming orders. Each item in this list is an order object and |
| items | Array | |
| subscriptions | Array | |
| products | Array | |
| addresses | Array | |
| payments | Array |
Local Development
To develop locally run. The command will start smi and templates linked on http://localhost:8080/
lerna bootstrap
lerna run smi:start --parallel
browse http://localhost:8080
Local development also support specifies the bootstrap method params via query string
@ordergroove/smi-core / Modules / smi-core / Smi
Class: Smi
smi-core.Smi
Custom element that renders an smi-template
Usage
<og-smi></og-smi>
tag og-smi
Hierarchy
-
HTMLElement↳
Smi
Table of contents
Constructors
Events
Properties
- ATTRIBUTE_NODE
- CDATA_SECTION_NODE
- COMMENT_NODE
- DOCUMENT_FRAGMENT_NODE
- DOCUMENT_NODE
- DOCUMENT_POSITION_CONTAINED_BY
- DOCUMENT_POSITION_CONTAINS
- DOCUMENT_POSITION_DISCONNECTED
- DOCUMENT_POSITION_FOLLOWING
- DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
- DOCUMENT_POSITION_PRECEDING
- DOCUMENT_TYPE_NODE
- ELEMENT_NODE
- ENTITY_NODE
- ENTITY_REFERENCE_NODE
- NOTATION_NODE
- PROCESSING_INSTRUCTION_NODE
- TEXT_NODE
- accessKey
- accessKeyLabel
- ariaAtomic
- ariaAutoComplete
- ariaBusy
- ariaChecked
- ariaColCount
- ariaColIndex
- ariaColSpan
- ariaCurrent
- ariaDisabled
- ariaExpanded
- ariaHasPopup
- ariaHidden
- ariaKeyShortcuts
- ariaLabel
- ariaLevel
- ariaLive
- ariaModal
- ariaMultiLine
- ariaMultiSelectable
- ariaOrientation
- ariaPlaceholder
- ariaPosInSet
- ariaPressed
- ariaReadOnly
- ariaRequired
- ariaRoleDescription
- ariaRowCount
- ariaRowIndex
- ariaRowSpan
- ariaSelected
- ariaSetSize
- ariaSort
- ariaValueMax
- ariaValueMin
- ariaValueNow
- ariaValueText
- assignedSlot
- attributes
- autocapitalize
- baseURI
- childElementCount
- childNodes
- children
- classList
- className
- clientHeight
- clientLeft
- clientTop
- clientWidth
- contentEditable
- dataset
- dir
- draggable
- enterKeyHint
- env
- firstChild
- firstElementChild
- hidden
- id
- innerHTML
- innerText
- inputMode
- isConnected
- isContentEditable
- lang
- lastChild
- lastElementChild
- localName
- merchant_id
- namespaceURI
- nextElementSibling
- nextSibling
- nodeName
- nodeType
- nodeValue
- nonce
- offsetHeight
- offsetLeft
- offsetParent
- offsetTop
- offsetWidth
- onabort
- onanimationcancel
- onanimationend
- onanimationiteration
- onanimationstart
- onauxclick
- onblur
- oncanplay
- oncanplaythrough
- onchange
- onclick
- onclose
- oncontextmenu
- oncopy
- oncuechange
- oncut
- ondblclick
- ondrag
- ondragend
- ondragenter
- ondragleave
- ondragover
- ondragstart
- ondrop
- ondurationchange
- onemptied
- onended
- onerror
- onfocus
- onformdata
- onfullscreenchange
- onfullscreenerror
- ongotpointercapture
- oninput
- oninvalid
- onkeydown
- onkeypress
- onkeyup
- onload
- onloadeddata
- onloadedmetadata
- onloadstart
- onlostpointercapture
- onmousedown
- onmouseenter
- onmouseleave
- onmousemove
- onmouseout
- onmouseover
- onmouseup
- onpaste
- onpause
- onplay
- onplaying
- onpointercancel
- onpointerdown
- onpointerenter
- onpointerleave
- onpointermove
- onpointerout
- onpointerover
- onpointerup
- onprogress
- onratechange
- onreset
- onresize
- onscroll
- onseeked
- onseeking
- onselect
- onselectionchange
- onselectstart
- onstalled
- onsubmit
- onsuspend
- ontimeupdate
- ontoggle
- ontouchcancel
- ontouchend
- ontouchmove
- ontouchstart
- ontransitioncancel
- ontransitionend
- ontransitionrun
- ontransitionstart
- onvolumechange
- onwaiting
- onwebkitanimationend
- onwebkitanimationiteration
- onwebkitanimationstart
- onwebkittransitionend
- onwheel
- outerHTML
- outerText
- ownerDocument
- parentElement
- parentNode
- part
- prefix
- previousElementSibling
- previousSibling
- scrollHeight
- scrollLeft
- scrollTop
- scrollWidth
- shadowRoot
- slot
- spellcheck
- style
- tabIndex
- tagName
- textContent
- title
- translate
- store
Accessors
Methods
- addEventListener
- after
- animate
- append
- appendChild
- attachShadow
- before
- blur
- click
- cloneNode
- closest
- compareDocumentPosition
- contains
- dispatchEvent
- focus
- getAnimations
- getAttribute
- getAttributeNS
- getAttributeNames
- getAttributeNode
- getAttributeNodeNS
- getBoundingClientRect
- getClientRects
- getElementsByClassName
- getElementsByTagName
- getElementsByTagNameNS
- getRootNode
- hasAttribute
- hasAttributeNS
- hasAttributes
- hasChildNodes
- hasPointerCapture
- insertAdjacentElement
- insertAdjacentHTML
- insertAdjacentText
- insertBefore
- isDefaultNamespace
- isEqualNode
- isSameNode
- lookupNamespaceURI
- lookupPrefix
- matches
- normalize
- prepend
- querySelector
- querySelectorAll
- releasePointerCapture
- remove
- removeAttribute
- removeAttributeNS
- removeAttributeNode
- removeChild
- removeEventListener
- replaceChild
- replaceChildren
- replaceWith
- requestFullscreen
- requestPointerLock
- scroll
- scrollBy
- scrollIntoView
- scrollTo
- setAttribute
- setAttributeNS
- setAttributeNode
- setAttributeNodeNS
- setPointerCapture
- toggleAttribute
- webkitMatchesSelector
Constructors
constructor
• new Smi()
Inherited from
HTMLElement.constructor
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6440
Events
READY
• Static READY: string = 'og:smi:ready'
Triggered after smi elements initialize and gets connected to DOM
Defined in
packages/smi-core/src/components/Smi.js:55
Properties
ATTRIBUTE_NODE
• Readonly ATTRIBUTE_NODE: number
Inherited from
HTMLElement.ATTRIBUTE_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10578
CDATA_SECTION_NODE
• Readonly CDATA_SECTION_NODE: number
node is a CDATASection node.
Inherited from
HTMLElement.CDATA_SECTION_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10582
COMMENT_NODE
• Readonly COMMENT_NODE: number
node is a Comment node.
Inherited from
HTMLElement.COMMENT_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10586
DOCUMENT_FRAGMENT_NODE
• Readonly DOCUMENT_FRAGMENT_NODE: number
node is a DocumentFragment node.
Inherited from
HTMLElement.DOCUMENT_FRAGMENT_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10590
DOCUMENT_NODE
• Readonly DOCUMENT_NODE: number
node is a document.
Inherited from
HTMLElement.DOCUMENT_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10594
DOCUMENT_POSITION_CONTAINED_BY
• Readonly DOCUMENT_POSITION_CONTAINED_BY: number
Set when other is a descendant of node.
Inherited from
HTMLElement.DOCUMENT_POSITION_CONTAINED_BY
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10598
DOCUMENT_POSITION_CONTAINS
• Readonly DOCUMENT_POSITION_CONTAINS: number
Set when other is an ancestor of node.
Inherited from
HTMLElement.DOCUMENT_POSITION_CONTAINS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10602
DOCUMENT_POSITION_DISCONNECTED
• Readonly DOCUMENT_POSITION_DISCONNECTED: number
Set when node and other are not in the same tree.
Inherited from
HTMLElement.DOCUMENT_POSITION_DISCONNECTED
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10606
DOCUMENT_POSITION_FOLLOWING
• Readonly DOCUMENT_POSITION_FOLLOWING: number
Set when other is following node.
Inherited from
HTMLElement.DOCUMENT_POSITION_FOLLOWING
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10610
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
• Readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number
Inherited from
HTMLElement.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10611
DOCUMENT_POSITION_PRECEDING
• Readonly DOCUMENT_POSITION_PRECEDING: number
Set when other is preceding node.
Inherited from
HTMLElement.DOCUMENT_POSITION_PRECEDING
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10615
DOCUMENT_TYPE_NODE
• Readonly DOCUMENT_TYPE_NODE: number
node is a doctype.
Inherited from
HTMLElement.DOCUMENT_TYPE_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10619
ELEMENT_NODE
• Readonly ELEMENT_NODE: number
node is an element.
Inherited from
HTMLElement.ELEMENT_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10623
ENTITY_NODE
• Readonly ENTITY_NODE: number
Inherited from
HTMLElement.ENTITY_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10624
ENTITY_REFERENCE_NODE
• Readonly ENTITY_REFERENCE_NODE: number
Inherited from
HTMLElement.ENTITY_REFERENCE_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10625
NOTATION_NODE
• Readonly NOTATION_NODE: number
Inherited from
HTMLElement.NOTATION_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10626
PROCESSING_INSTRUCTION_NODE
• Readonly PROCESSING_INSTRUCTION_NODE: number
node is a ProcessingInstruction node.
Inherited from
HTMLElement.PROCESSING_INSTRUCTION_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10630
TEXT_NODE
• Readonly TEXT_NODE: number
node is a Text node.
Inherited from
HTMLElement.TEXT_NODE
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10634
accessKey
• accessKey: string
Inherited from
HTMLElement.accessKey
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6414
accessKeyLabel
• Readonly accessKeyLabel: string
Inherited from
HTMLElement.accessKeyLabel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6415
ariaAtomic
• ariaAtomic: string
Inherited from
HTMLElement.ariaAtomic
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1860
ariaAutoComplete
• ariaAutoComplete: string
Inherited from
HTMLElement.ariaAutoComplete
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1861
ariaBusy
• ariaBusy: string
Inherited from
HTMLElement.ariaBusy
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1862
ariaChecked
• ariaChecked: string
Inherited from
HTMLElement.ariaChecked
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1863
ariaColCount
• ariaColCount: string
Inherited from
HTMLElement.ariaColCount
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1864
ariaColIndex
• ariaColIndex: string
Inherited from
HTMLElement.ariaColIndex
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1865
ariaColSpan
• ariaColSpan: string
Inherited from
HTMLElement.ariaColSpan
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1866
ariaCurrent
• ariaCurrent: string
Inherited from
HTMLElement.ariaCurrent
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1867
ariaDisabled
• ariaDisabled: string
Inherited from
HTMLElement.ariaDisabled
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1868
ariaExpanded
• ariaExpanded: string
Inherited from
HTMLElement.ariaExpanded
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1869
ariaHasPopup
• ariaHasPopup: string
Inherited from
HTMLElement.ariaHasPopup
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1870
ariaHidden
• ariaHidden: string
Inherited from
HTMLElement.ariaHidden
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1871
ariaKeyShortcuts
• ariaKeyShortcuts: string
Inherited from
HTMLElement.ariaKeyShortcuts
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1872
ariaLabel
• ariaLabel: string
Inherited from
HTMLElement.ariaLabel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1873
ariaLevel
• ariaLevel: string
Inherited from
HTMLElement.ariaLevel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1874
ariaLive
• ariaLive: string
Inherited from
HTMLElement.ariaLive
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1875
ariaModal
• ariaModal: string
Inherited from
HTMLElement.ariaModal
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1876
ariaMultiLine
• ariaMultiLine: string
Inherited from
HTMLElement.ariaMultiLine
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1877
ariaMultiSelectable
• ariaMultiSelectable: string
Inherited from
HTMLElement.ariaMultiSelectable
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1878
ariaOrientation
• ariaOrientation: string
Inherited from
HTMLElement.ariaOrientation
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1879
ariaPlaceholder
• ariaPlaceholder: string
Inherited from
HTMLElement.ariaPlaceholder
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1880
ariaPosInSet
• ariaPosInSet: string
Inherited from
HTMLElement.ariaPosInSet
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1881
ariaPressed
• ariaPressed: string
Inherited from
HTMLElement.ariaPressed
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1882
ariaReadOnly
• ariaReadOnly: string
Inherited from
HTMLElement.ariaReadOnly
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1883
ariaRequired
• ariaRequired: string
Inherited from
HTMLElement.ariaRequired
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1884
ariaRoleDescription
• ariaRoleDescription: string
Inherited from
HTMLElement.ariaRoleDescription
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1885
ariaRowCount
• ariaRowCount: string
Inherited from
HTMLElement.ariaRowCount
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1886
ariaRowIndex
• ariaRowIndex: string
Inherited from
HTMLElement.ariaRowIndex
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1887
ariaRowSpan
• ariaRowSpan: string
Inherited from
HTMLElement.ariaRowSpan
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1888
ariaSelected
• ariaSelected: string
Inherited from
HTMLElement.ariaSelected
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1889
ariaSetSize
• ariaSetSize: string
Inherited from
HTMLElement.ariaSetSize
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1890
ariaSort
• ariaSort: string
Inherited from
HTMLElement.ariaSort
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1891
ariaValueMax
• ariaValueMax: string
Inherited from
HTMLElement.ariaValueMax
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1892
ariaValueMin
• ariaValueMin: string
Inherited from
HTMLElement.ariaValueMin
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1893
ariaValueNow
• ariaValueNow: string
Inherited from
HTMLElement.ariaValueNow
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1894
ariaValueText
• ariaValueText: string
Inherited from
HTMLElement.ariaValueText
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1895
assignedSlot
• Readonly assignedSlot: HTMLSlotElement
Inherited from
HTMLElement.assignedSlot
Defined in
node_modules/typescript/lib/lib.dom.d.ts:14105
attributes
• Readonly attributes: NamedNodeMap
Inherited from
HTMLElement.attributes
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4873
autocapitalize
• autocapitalize: string
Inherited from
HTMLElement.autocapitalize
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6416
baseURI
• Readonly baseURI: string
Returns node's node document's document base URL.
Inherited from
HTMLElement.baseURI
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10495
childElementCount
• Readonly childElementCount: number
Inherited from
HTMLElement.childElementCount
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10958
childNodes
• Readonly childNodes: NodeListOf<ChildNode>
Returns the children.
Inherited from
HTMLElement.childNodes
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10499
children
• Readonly children: HTMLCollection
Returns the child elements.
Inherited from
HTMLElement.children
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10962
classList
• Readonly classList: DOMTokenList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
Inherited from
HTMLElement.classList
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4877
className
• className: string
Returns the value of element's class content attribute. Can be set to change it.
Inherited from
HTMLElement.className
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4881
clientHeight
• Readonly clientHeight: number
Inherited from
HTMLElement.clientHeight
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4882
clientLeft
• Readonly clientLeft: number
Inherited from
HTMLElement.clientLeft
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4883
clientTop
• Readonly clientTop: number
Inherited from
HTMLElement.clientTop
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4884
clientWidth
• Readonly clientWidth: number
Inherited from
HTMLElement.clientWidth
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4885
contentEditable
• contentEditable: string
Inherited from
HTMLElement.contentEditable
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5038
dataset
• Readonly dataset: DOMStringMap
Inherited from
HTMLElement.dataset
Defined in
node_modules/typescript/lib/lib.dom.d.ts:7897
dir
• dir: string
Inherited from
HTMLElement.dir
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6417
draggable
• draggable: boolean
Inherited from
HTMLElement.draggable
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6418
enterKeyHint
• enterKeyHint: string
Inherited from
HTMLElement.enterKeyHint
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5039
env
• env: "prod" | "staging" = 'prod'
The name of the Ordergroove environment where the SMI is currently running. Default prod
attribute env This property is exposed to HTML attribute env
Defined in
packages/smi-core/src/components/Smi.js:49
firstChild
• Readonly firstChild: ChildNode
Returns the first child.
Inherited from
HTMLElement.firstChild
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10503
firstElementChild
• Readonly firstElementChild: Element
Returns the first child that is an element, and null otherwise.
Inherited from
HTMLElement.firstElementChild
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10966
hidden
• hidden: boolean
Inherited from
HTMLElement.hidden
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6419
id
• id: string
Returns the value of element's id content attribute. Can be set to change it.
Inherited from
HTMLElement.id
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4889
innerHTML
• innerHTML: string
Inherited from
HTMLElement.innerHTML
Defined in
node_modules/typescript/lib/lib.dom.d.ts:9506
innerText
• innerText: string
Inherited from
HTMLElement.innerText
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6420
inputMode
• inputMode: string
Inherited from
HTMLElement.inputMode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5040
isConnected
• Readonly isConnected: boolean
Returns true if node is connected and false otherwise.
Inherited from
HTMLElement.isConnected
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10507
isContentEditable
• Readonly isContentEditable: boolean
Inherited from
HTMLElement.isContentEditable
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5041
lang
• lang: string
Inherited from
HTMLElement.lang
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6421
lastChild
• Readonly lastChild: ChildNode
Returns the last child.
Inherited from
HTMLElement.lastChild
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10511
lastElementChild
• Readonly lastElementChild: Element
Returns the last child that is an element, and null otherwise.
Inherited from
HTMLElement.lastElementChild
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10970
localName
• Readonly localName: string
Returns the local name.
Inherited from
HTMLElement.localName
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4893
merchant_id
• merchant_id: string = ''
This value is used to identify you as the merchant and is the same value that you would find under the customer.public_id key above.
attribute merchant_id This property is exposed to HTML attribute merchant_id
Defined in
packages/smi-core/src/components/Smi.js:41
namespaceURI
• Readonly namespaceURI: string
Returns the namespace.
Inherited from
HTMLElement.namespaceURI
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4897
nextElementSibling
• Readonly nextElementSibling: Element
Returns the first following sibling that is an element, and null otherwise.
Inherited from
HTMLElement.nextElementSibling
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10756
nextSibling
• Readonly nextSibling: ChildNode
Returns the next sibling.
Inherited from
HTMLElement.nextSibling
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10515
nodeName
• Readonly nodeName: string
Returns a string appropriate for the type of node.
Inherited from
HTMLElement.nodeName
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10519
nodeType
• Readonly nodeType: number
Returns the type of node.
Inherited from
HTMLElement.nodeType
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10523
nodeValue
• nodeValue: string
Inherited from
HTMLElement.nodeValue
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10524
nonce
• Optional nonce: string
Inherited from
HTMLElement.nonce
Defined in
node_modules/typescript/lib/lib.dom.d.ts:7898
offsetHeight
• Readonly offsetHeight: number
Inherited from
HTMLElement.offsetHeight
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6422
offsetLeft
• Readonly offsetLeft: number
Inherited from
HTMLElement.offsetLeft
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6423
offsetParent
• Readonly offsetParent: Element
Inherited from
HTMLElement.offsetParent
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6424
offsetTop
• Readonly offsetTop: number
Inherited from
HTMLElement.offsetTop
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6425
offsetWidth
• Readonly offsetWidth: number
Inherited from
HTMLElement.offsetWidth
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6426
onabort
• onabort: (ev: UIEvent) => any
Type declaration
▸ (ev): any
Fires when the user aborts the download.
Parameters
| Name | Type | Description |
|---|---|---|
ev | UIEvent | The event. |
Returns
any
Inherited from
HTMLElement.onabort
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5677
onanimationcancel
• onanimationcancel: (ev: AnimationEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | AnimationEvent |
Returns
any
Inherited from
HTMLElement.onanimationcancel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5678
onanimationend
• onanimationend: (ev: AnimationEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | AnimationEvent |
Returns
any
Inherited from
HTMLElement.onanimationend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5679
onanimationiteration
• onanimationiteration: (ev: AnimationEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | AnimationEvent |
Returns
any
Inherited from
HTMLElement.onanimationiteration
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5680
onanimationstart
• onanimationstart: (ev: AnimationEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | AnimationEvent |
Returns
any
Inherited from
HTMLElement.onanimationstart
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5681
onauxclick
• onauxclick: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | MouseEvent |
Returns
any
Inherited from
HTMLElement.onauxclick
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5682
onblur
• onblur: (ev: FocusEvent) => any
Type declaration
▸ (ev): any
Fires when the object loses the input focus.
Parameters
| Name | Type | Description |
|---|---|---|
ev | FocusEvent | The focus event. |
Returns
any
Inherited from
HTMLElement.onblur
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5687
oncanplay
• oncanplay: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when playback is possible, but would require further buffering.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.oncanplay
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5692
oncanplaythrough
• oncanplaythrough: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.oncanplaythrough
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5693
onchange
• onchange: (ev: Event) => any
Type declaration
▸ (ev): any
Fires when the contents of the object or selection have changed.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onchange
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5698
onclick
• onclick: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user clicks the left mouse button on the object
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.onclick
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5703
onclose
• onclose: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onclose
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5704
oncontextmenu
• oncontextmenu: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user clicks the right mouse button in the client area, opening the context menu.
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.oncontextmenu
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5709
oncopy
• oncopy: (ev: ClipboardEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | ClipboardEvent |
Returns
any
Inherited from
HTMLElement.oncopy
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4730
oncuechange
• oncuechange: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.oncuechange
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5710
oncut
• oncut: (ev: ClipboardEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | ClipboardEvent |
Returns
any
Inherited from
HTMLElement.oncut
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4731
ondblclick
• ondblclick: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user double-clicks the object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.ondblclick
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5715
ondrag
• ondrag: (ev: DragEvent) => any
Type declaration
▸ (ev): any
Fires on the source object continuously during a drag operation.
Parameters
| Name | Type | Description |
|---|---|---|
ev | DragEvent | The event. |
Returns
any
Inherited from
HTMLElement.ondrag
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5720
ondragend
• ondragend: (ev: DragEvent) => any
Type declaration
▸ (ev): any
Fires on the source object when the user releases the mouse at the close of a drag operation.
Parameters
| Name | Type | Description |
|---|---|---|
ev | DragEvent | The event. |
Returns
any
Inherited from
HTMLElement.ondragend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5725
ondragenter
• ondragenter: (ev: DragEvent) => any
Type declaration
▸ (ev): any
Fires on the target element when the user drags the object to a valid drop target.
Parameters
| Name | Type | Description |
|---|---|---|
ev | DragEvent | The drag event. |
Returns
any
Inherited from
HTMLElement.ondragenter
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5730
ondragleave
• ondragleave: (ev: DragEvent) => any
Type declaration
▸ (ev): any
Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
Parameters
| Name | Type | Description |
|---|---|---|
ev | DragEvent | The drag event. |
Returns
any
Inherited from
HTMLElement.ondragleave
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5735
ondragover
• ondragover: (ev: DragEvent) => any
Type declaration
▸ (ev): any
Fires on the target element continuously while the user drags the object over a valid drop target.
Parameters
| Name | Type | Description |
|---|---|---|
ev | DragEvent | The event. |
Returns
any
Inherited from
HTMLElement.ondragover
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5740
ondragstart
• ondragstart: (ev: DragEvent) => any
Type declaration
▸ (ev): any
Fires on the source object when the user starts to drag a text selection or selected object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | DragEvent | The event. |
Returns
any
Inherited from
HTMLElement.ondragstart
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5745
ondrop
• ondrop: (ev: DragEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | DragEvent |
Returns
any
Inherited from
HTMLElement.ondrop
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5746
ondurationchange
• ondurationchange: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the duration attribute is updated.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.ondurationchange
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5751
onemptied
• onemptied: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the media element is reset to its initial state.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onemptied
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5756
onended
• onended: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the end of playback is reached.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event |
Returns
any
Inherited from
HTMLElement.onended
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5761
onerror
• onerror: OnErrorEventHandlerNonNull
Fires when an error occurs during object loading.
param The event.
Inherited from
HTMLElement.onerror
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5766
onfocus
• onfocus: (ev: FocusEvent) => any
Type declaration
▸ (ev): any
Fires when the object receives focus.
Parameters
| Name | Type | Description |
|---|---|---|
ev | FocusEvent | The event. |
Returns
any
Inherited from
HTMLElement.onfocus
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5771
onformdata
• onformdata: (ev: FormDataEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | FormDataEvent |
Returns
any
Inherited from
HTMLElement.onformdata
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5772
onfullscreenchange
• onfullscreenchange: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onfullscreenchange
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4898
onfullscreenerror
• onfullscreenerror: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onfullscreenerror
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4899
ongotpointercapture
• ongotpointercapture: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.ongotpointercapture
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5773
oninput
• oninput: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.oninput
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5774
oninvalid
• oninvalid: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.oninvalid
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5775
onkeydown
• onkeydown: (ev: KeyboardEvent) => any
Type declaration
▸ (ev): any
Fires when the user presses a key.
Parameters
| Name | Type | Description |
|---|---|---|
ev | KeyboardEvent | The keyboard event |
Returns
any
Inherited from
HTMLElement.onkeydown
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5780
onkeypress
• onkeypress: (ev: KeyboardEvent) => any
Type declaration
▸ (ev): any
Fires when the user presses an alphanumeric key.
deprecated
Parameters
| Name | Type | Description |
|---|---|---|
ev | KeyboardEvent | The event. |
Returns
any
Inherited from
HTMLElement.onkeypress
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5786
onkeyup
• onkeyup: (ev: KeyboardEvent) => any
Type declaration
▸ (ev): any
Fires when the user releases a key.
Parameters
| Name | Type | Description |
|---|---|---|
ev | KeyboardEvent | The keyboard event |
Returns
any
Inherited from
HTMLElement.onkeyup
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5791
onload
• onload: (ev: Event) => any
Type declaration
▸ (ev): any
Fires immediately after the browser loads the object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onload
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5796
onloadeddata
• onloadeddata: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when media data is loaded at the current playback position.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onloadeddata
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5801
onloadedmetadata
• onloadedmetadata: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the duration and dimensions of the media have been determined.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onloadedmetadata
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5806
onloadstart
• onloadstart: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when Internet Explorer begins looking for media data.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onloadstart
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5811
onlostpointercapture
• onlostpointercapture: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onlostpointercapture
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5812
onmousedown
• onmousedown: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user clicks the object with either mouse button.
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.onmousedown
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5817
onmouseenter
• onmouseenter: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | MouseEvent |
Returns
any
Inherited from
HTMLElement.onmouseenter
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5818
onmouseleave
• onmouseleave: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | MouseEvent |
Returns
any
Inherited from
HTMLElement.onmouseleave
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5819
onmousemove
• onmousemove: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user moves the mouse over the object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.onmousemove
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5824
onmouseout
• onmouseout: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user moves the mouse pointer outside the boundaries of the object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.onmouseout
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5829
onmouseover
• onmouseover: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user moves the mouse pointer into the object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.onmouseover
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5834
onmouseup
• onmouseup: (ev: MouseEvent) => any
Type declaration
▸ (ev): any
Fires when the user releases a mouse button while the mouse is over the object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | MouseEvent | The mouse event. |
Returns
any
Inherited from
HTMLElement.onmouseup
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5839
onpaste
• onpaste: (ev: ClipboardEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | ClipboardEvent |
Returns
any
Inherited from
HTMLElement.onpaste
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4732
onpause
• onpause: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when playback is paused.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onpause
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5844
onplay
• onplay: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the play method is requested.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onplay
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5849
onplaying
• onplaying: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the audio or video has started playing.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onplaying
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5854
onpointercancel
• onpointercancel: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointercancel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5855
onpointerdown
• onpointerdown: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointerdown
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5856
onpointerenter
• onpointerenter: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointerenter
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5857
onpointerleave
• onpointerleave: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointerleave
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5858
onpointermove
• onpointermove: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointermove
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5859
onpointerout
• onpointerout: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointerout
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5860
onpointerover
• onpointerover: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointerover
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5861
onpointerup
• onpointerup: (ev: PointerEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | PointerEvent |
Returns
any
Inherited from
HTMLElement.onpointerup
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5862
onprogress
• onprogress: (ev: ProgressEvent<EventTarget>) => any
Type declaration
▸ (ev): any
Occurs to indicate progress while downloading media data.
Parameters
| Name | Type | Description |
|---|---|---|
ev | ProgressEvent<EventTarget> | The event. |
Returns
any
Inherited from
HTMLElement.onprogress
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5867
onratechange
• onratechange: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the playback rate is increased or decreased.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onratechange
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5872
onreset
• onreset: (ev: Event) => any
Type declaration
▸ (ev): any
Fires when the user resets a form.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onreset
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5877
onresize
• onresize: (ev: UIEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | UIEvent |
Returns
any
Inherited from
HTMLElement.onresize
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5878
onscroll
• onscroll: (ev: Event) => any
Type declaration
▸ (ev): any
Fires when the user repositions the scroll box in the scroll bar on the object.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onscroll
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5883
onseeked
• onseeked: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the seek operation ends.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onseeked
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5888
onseeking
• onseeking: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the current playback position is moved.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onseeking
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5893
onselect
• onselect: (ev: Event) => any
Type declaration
▸ (ev): any
Fires when the current selection changes.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onselect
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5898
onselectionchange
• onselectionchange: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onselectionchange
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5899
onselectstart
• onselectstart: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onselectstart
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5900
onstalled
• onstalled: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the download has stopped.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onstalled
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5905
onsubmit
• onsubmit: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onsubmit
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5906
onsuspend
• onsuspend: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs if the load operation has been intentionally halted.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onsuspend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5911
ontimeupdate
• ontimeupdate: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs to indicate the current playback position.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.ontimeupdate
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5916
ontoggle
• ontoggle: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.ontoggle
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5917
ontouchcancel
• Optional ontouchcancel: (ev: TouchEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TouchEvent |
Returns
any
Inherited from
HTMLElement.ontouchcancel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5918
ontouchend
• Optional ontouchend: (ev: TouchEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TouchEvent |
Returns
any
Inherited from
HTMLElement.ontouchend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5919
ontouchmove
• Optional ontouchmove: (ev: TouchEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TouchEvent |
Returns
any
Inherited from
HTMLElement.ontouchmove
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5920
ontouchstart
• Optional ontouchstart: (ev: TouchEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TouchEvent |
Returns
any
Inherited from
HTMLElement.ontouchstart
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5921
ontransitioncancel
• ontransitioncancel: (ev: TransitionEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TransitionEvent |
Returns
any
Inherited from
HTMLElement.ontransitioncancel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5922
ontransitionend
• ontransitionend: (ev: TransitionEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TransitionEvent |
Returns
any
Inherited from
HTMLElement.ontransitionend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5923
ontransitionrun
• ontransitionrun: (ev: TransitionEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TransitionEvent |
Returns
any
Inherited from
HTMLElement.ontransitionrun
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5924
ontransitionstart
• ontransitionstart: (ev: TransitionEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | TransitionEvent |
Returns
any
Inherited from
HTMLElement.ontransitionstart
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5925
onvolumechange
• onvolumechange: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when the volume is changed, or playback is muted or unmuted.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onvolumechange
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5930
onwaiting
• onwaiting: (ev: Event) => any
Type declaration
▸ (ev): any
Occurs when playback stops because the next frame of a video resource is not available.
Parameters
| Name | Type | Description |
|---|---|---|
ev | Event | The event. |
Returns
any
Inherited from
HTMLElement.onwaiting
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5935
onwebkitanimationend
• onwebkitanimationend: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onwebkitanimationend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5936
onwebkitanimationiteration
• onwebkitanimationiteration: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onwebkitanimationiteration
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5937
onwebkitanimationstart
• onwebkitanimationstart: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onwebkitanimationstart
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5938
onwebkittransitionend
• onwebkittransitionend: (ev: Event) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | Event |
Returns
any
Inherited from
HTMLElement.onwebkittransitionend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5939
onwheel
• onwheel: (ev: WheelEvent) => any
Type declaration
▸ (ev): any
Parameters
| Name | Type |
|---|---|
ev | WheelEvent |
Returns
any
Inherited from
HTMLElement.onwheel
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5940
outerHTML
• outerHTML: string
Inherited from
HTMLElement.outerHTML
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4900
outerText
• outerText: string
Inherited from
HTMLElement.outerText
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6427
ownerDocument
• Readonly ownerDocument: Document
Inherited from
HTMLElement.ownerDocument
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4901
parentElement
• Readonly parentElement: HTMLElement
Returns the parent element.
Inherited from
HTMLElement.parentElement
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10532
parentNode
• Readonly parentNode: ParentNode
Returns the parent.
Inherited from
HTMLElement.parentNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10536
part
• Readonly part: DOMTokenList
Inherited from
HTMLElement.part
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4902
prefix
• Readonly prefix: string
Returns the namespace prefix.
Inherited from
HTMLElement.prefix
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4906
previousElementSibling
• Readonly previousElementSibling: Element
Returns the first preceding sibling that is an element, and null otherwise.
Inherited from
HTMLElement.previousElementSibling
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10760
previousSibling
• Readonly previousSibling: ChildNode
Returns the previous sibling.
Inherited from
HTMLElement.previousSibling
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10540
scrollHeight
• Readonly scrollHeight: number
Inherited from
HTMLElement.scrollHeight
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4907
scrollLeft
• scrollLeft: number
Inherited from
HTMLElement.scrollLeft
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4908
scrollTop
• scrollTop: number
Inherited from
HTMLElement.scrollTop
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4909
scrollWidth
• Readonly scrollWidth: number
Inherited from
HTMLElement.scrollWidth
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4910
shadowRoot
• Readonly shadowRoot: ShadowRoot
Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
Inherited from
HTMLElement.shadowRoot
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4914
slot
• slot: string
Returns the value of element's slot content attribute. Can be set to change it.
Inherited from
HTMLElement.slot
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4918
spellcheck
• spellcheck: boolean
Inherited from
HTMLElement.spellcheck
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6428
style
• Readonly style: CSSStyleDeclaration
Inherited from
HTMLElement.style
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5034
tabIndex
• tabIndex: number
Inherited from
HTMLElement.tabIndex
Defined in
node_modules/typescript/lib/lib.dom.d.ts:7899
tagName
• Readonly tagName: string
Returns the HTML-uppercased qualified name.
Inherited from
HTMLElement.tagName
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4922
textContent
• textContent: string
Inherited from
HTMLElement.textContent
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10541
title
• title: string
Inherited from
HTMLElement.title
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6429
translate
• translate: boolean
Inherited from
HTMLElement.translate
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6430
store
▪ Static store: SmiStore = store
Defines the glbal redux store
Defined in
packages/smi-core/src/components/Smi.js:61
Accessors
store
• get store(): SmiStore
Returns the instance of redux store
Returns
Defined in
packages/smi-core/src/components/Smi.js:131
template
• set template(templateGenerator): void
Sets template for current smi instance
The following example ilustrates a smi template that renders all state as JSON string
document.querySelector('og-smi').templatye = html => state => html`<pre>${JSON.stringify(state,null,4)}</pre>`
Parameters
| Name | Type |
|---|---|
templateGenerator | (html: Function) => (state: SmiState) => TemplateResult |
Returns
void
Defined in
packages/smi-core/src/components/Smi.js:84
template
• Static set template(val): void
Sets the default template for all smi instaces
Parameters
| Name | Type |
|---|---|
val | any |
Returns
void
Defined in
packages/smi-core/src/components/Smi.js:66
Methods
addEventListener
▸ addEventListener<K>(type, listener, options?): void
Type parameters
| Name | Type |
|---|---|
K | extends keyof HTMLElementEventMap |
Parameters
| Name | Type |
|---|---|
type | K |
listener | (ev: HTMLElementEventMap[K]) => any |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
HTMLElement.addEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6432
▸ addEventListener(type, listener, options?): void
Parameters
| Name | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | AddEventListenerOptions |
Returns
void
Inherited from
HTMLElement.addEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6433
after
▸ after(...nodes): void
Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
| Name | Type |
|---|---|
...nodes | (string | Node)[] |
Returns
void
Inherited from
HTMLElement.after
Defined in
node_modules/typescript/lib/lib.dom.d.ts:3491
animate
▸ animate(keyframes, options?): Animation
Parameters
| Name | Type |
|---|---|
keyframes | Keyframe[] | PropertyIndexedKeyframes |
options? | number | KeyframeAnimationOptions |
Returns
Animation
Inherited from
HTMLElement.animate
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1996
append
▸ append(...nodes): void
Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
| Name | Type |
|---|---|
...nodes | (string | Node)[] |
Returns
void
Inherited from
HTMLElement.append
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10976
appendChild
▸ appendChild<T>(node): T
Type parameters
| Name | Type |
|---|---|
T | extends Node |
Parameters
| Name | Type |
|---|---|
node | T |
Returns
T
Inherited from
HTMLElement.appendChild
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10542
attachShadow
▸ attachShadow(init): ShadowRoot
Creates a shadow root for element and returns it.
Parameters
| Name | Type |
|---|---|
init | ShadowRootInit |
Returns
ShadowRoot
Inherited from
HTMLElement.attachShadow
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4926
before
▸ before(...nodes): void
Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
| Name | Type |
|---|---|
...nodes | (string | Node)[] |
Returns
void
Inherited from
HTMLElement.before
Defined in
node_modules/typescript/lib/lib.dom.d.ts:3497
blur
▸ blur(): void
Returns
void
Inherited from
HTMLElement.blur
Defined in
node_modules/typescript/lib/lib.dom.d.ts:7900
click
▸ click(): void
Returns
void
Inherited from
HTMLElement.click
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6431
cloneNode
▸ cloneNode(deep?): Node
Returns a copy of node. If deep is true, the copy also includes the node's descendants.
Parameters
| Name | Type |
|---|---|
deep? | boolean |
Returns
Node
Inherited from
HTMLElement.cloneNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10546
closest
▸ closest<K>(selector): HTMLElementTagNameMap[K]
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
Type parameters
| Name | Type |
|---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
| Name | Type |
|---|---|
selector | K |
Returns
HTMLElementTagNameMap[K]
Inherited from
HTMLElement.closest
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4930
▸ closest<K>(selector): SVGElementTagNameMap[K]
Type parameters
| Name | Type |
|---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
| Name | Type |
|---|---|
selector | K |
Returns
SVGElementTagNameMap[K]
Inherited from
HTMLElement.closest
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4931
▸ closest<E>(selectors): E
Type parameters
| Name | Type |
|---|---|
E | extends Element``Element |
Parameters
| Name | Type |
|---|---|
selectors | string |
Returns
E
Inherited from
HTMLElement.closest
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4932
compareDocumentPosition
▸ compareDocumentPosition(other): number
Returns a bitmask indicating the position of other relative to node.
Parameters
| Name | Type |
|---|---|
other | Node |
Returns
number
Inherited from
HTMLElement.compareDocumentPosition
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10550
contains
▸ contains(other): boolean
Returns true if other is an inclusive descendant of node, and false otherwise.
Parameters
| Name | Type |
|---|---|
other | Node |
Returns
boolean
Inherited from
HTMLElement.contains
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10554
dispatchEvent
▸ dispatchEvent(event): boolean
Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
Parameters
| Name | Type |
|---|---|
event | Event |
Returns
boolean
Inherited from
HTMLElement.dispatchEvent
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5210
focus
▸ focus(options?): void
Parameters
| Name | Type |
|---|---|
options? | FocusOptions |
Returns
void
Inherited from
HTMLElement.focus
Defined in
node_modules/typescript/lib/lib.dom.d.ts:7901
getAnimations
▸ getAnimations(options?): Animation[]
Parameters
| Name | Type |
|---|---|
options? | GetAnimationsOptions |
Returns
Animation[]
Inherited from
HTMLElement.getAnimations
Defined in
node_modules/typescript/lib/lib.dom.d.ts:1997
getAttribute
▸ getAttribute(qualifiedName): string
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
Parameters
| Name | Type |
|---|---|
qualifiedName | string |
Returns
string
Inherited from
HTMLElement.getAttribute
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4936
getAttributeNS
▸ getAttributeNS(namespace, localName): string
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
Parameters
| Name | Type |
|---|---|
namespace | string |
localName | string |
Returns
string
Inherited from
HTMLElement.getAttributeNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4940
getAttributeNames
▸ getAttributeNames(): string[]
Returns the qualified names of all element's attributes. Can contain duplicates.
Returns
string[]
Inherited from
HTMLElement.getAttributeNames
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4944
getAttributeNode
▸ getAttributeNode(qualifiedName): Attr
Parameters
| Name | Type |
|---|---|
qualifiedName | string |
Returns
Attr
Inherited from
HTMLElement.getAttributeNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4945
getAttributeNodeNS
▸ getAttributeNodeNS(namespace, localName): Attr
Parameters
| Name | Type |
|---|---|
namespace | string |
localName | string |
Returns
Attr
Inherited from
HTMLElement.getAttributeNodeNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4946
getBoundingClientRect
▸ getBoundingClientRect(): DOMRect
Returns
DOMRect
Inherited from
HTMLElement.getBoundingClientRect
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4947
getClientRects
▸ getClientRects(): DOMRectList
Returns
DOMRectList
Inherited from
HTMLElement.getClientRects
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4948
getElementsByClassName
▸ getElementsByClassName(classNames): HTMLCollectionOf<Element>
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
Parameters
| Name | Type |
|---|---|
classNames | string |
Returns
HTMLCollectionOf<Element>
Inherited from
HTMLElement.getElementsByClassName
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4952
getElementsByTagName
▸ getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<HTMLElementTagNameMap[K]>
Type parameters
| Name | Type |
|---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
| Name | Type |
|---|---|
qualifiedName | K |
Returns
HTMLCollectionOf<HTMLElementTagNameMap[K]>
Inherited from
HTMLElement.getElementsByTagName
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4953
▸ getElementsByTagName<K>(qualifiedName): HTMLCollectionOf<SVGElementTagNameMap[K]>
Type parameters
| Name | Type |
|---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
| Name | Type |
|---|---|
qualifiedName | K |
Returns
HTMLCollectionOf<SVGElementTagNameMap[K]>
Inherited from
HTMLElement.getElementsByTagName
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4954
▸ getElementsByTagName(qualifiedName): HTMLCollectionOf<Element>
Parameters
| Name | Type |
|---|---|
qualifiedName | string |
Returns
HTMLCollectionOf<Element>
Inherited from
HTMLElement.getElementsByTagName
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4955
getElementsByTagNameNS
▸ getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<HTMLElement>
Parameters
| Name | Type |
|---|---|
namespaceURI | "http://www.w3.org/1999/xhtml" |
localName | string |
Returns
HTMLCollectionOf<HTMLElement>
Inherited from
HTMLElement.getElementsByTagNameNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4956
▸ getElementsByTagNameNS(namespaceURI, localName): HTMLCollectionOf<SVGElement>
Parameters
| Name | Type |
|---|---|
namespaceURI | "http://www.w3.org/2000/svg" |
localName | string |
Returns
HTMLCollectionOf<SVGElement>
Inherited from
HTMLElement.getElementsByTagNameNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4957
▸ getElementsByTagNameNS(namespace, localName): HTMLCollectionOf<Element>
Parameters
| Name | Type |
|---|---|
namespace | string |
localName | string |
Returns
HTMLCollectionOf<Element>
Inherited from
HTMLElement.getElementsByTagNameNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4958
getRootNode
▸ getRootNode(options?): Node
Returns node's root.
Parameters
| Name | Type |
|---|---|
options? | GetRootNodeOptions |
Returns
Node
Inherited from
HTMLElement.getRootNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10558
hasAttribute
▸ hasAttribute(qualifiedName): boolean
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
Parameters
| Name | Type |
|---|---|
qualifiedName | string |
Returns
boolean
Inherited from
HTMLElement.hasAttribute
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4962
hasAttributeNS
▸ hasAttributeNS(namespace, localName): boolean
Returns true if element has an attribute whose namespace is namespace and local name is localName.
Parameters
| Name | Type |
|---|---|
namespace | string |
localName | string |
Returns
boolean
Inherited from
HTMLElement.hasAttributeNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4966
hasAttributes
▸ hasAttributes(): boolean
Returns true if element has attributes, and false otherwise.
Returns
boolean
Inherited from
HTMLElement.hasAttributes
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4970
hasChildNodes
▸ hasChildNodes(): boolean
Returns whether node has children.
Returns
boolean
Inherited from
HTMLElement.hasChildNodes
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10562
hasPointerCapture
▸ hasPointerCapture(pointerId): boolean
Parameters
| Name | Type |
|---|---|
pointerId | number |
Returns
boolean
Inherited from
HTMLElement.hasPointerCapture
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4971
insertAdjacentElement
▸ insertAdjacentElement(where, element): Element
Parameters
| Name | Type |
|---|---|
where | InsertPosition |
element | Element |
Returns
Element
Inherited from
HTMLElement.insertAdjacentElement
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4972
insertAdjacentHTML
▸ insertAdjacentHTML(position, text): void
Parameters
| Name | Type |
|---|---|
position | InsertPosition |
text | string |
Returns
void
Inherited from
HTMLElement.insertAdjacentHTML
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4973
insertAdjacentText
▸ insertAdjacentText(where, data): void
Parameters
| Name | Type |
|---|---|
where | InsertPosition |
data | string |
Returns
void
Inherited from
HTMLElement.insertAdjacentText
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4974
insertBefore
▸ insertBefore<T>(node, child): T
Type parameters
| Name | Type |
|---|---|
T | extends Node |
Parameters
| Name | Type |
|---|---|
node | T |
child | Node |
Returns
T
Inherited from
HTMLElement.insertBefore
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10563
isDefaultNamespace
▸ isDefaultNamespace(namespace): boolean
Parameters
| Name | Type |
|---|---|
namespace | string |
Returns
boolean
Inherited from
HTMLElement.isDefaultNamespace
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10564
isEqualNode
▸ isEqualNode(otherNode): boolean
Returns whether node and otherNode have the same properties.
Parameters
| Name | Type |
|---|---|
otherNode | Node |
Returns
boolean
Inherited from
HTMLElement.isEqualNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10568
isSameNode
▸ isSameNode(otherNode): boolean
Parameters
| Name | Type |
|---|---|
otherNode | Node |
Returns
boolean
Inherited from
HTMLElement.isSameNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10569
lookupNamespaceURI
▸ lookupNamespaceURI(prefix): string
Parameters
| Name | Type |
|---|---|
prefix | string |
Returns
string
Inherited from
HTMLElement.lookupNamespaceURI
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10570
lookupPrefix
▸ lookupPrefix(namespace): string
Parameters
| Name | Type |
|---|---|
namespace | string |
Returns
string
Inherited from
HTMLElement.lookupPrefix
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10571
matches
▸ matches(selectors): boolean
Returns true if matching selectors against element's root yields element, and false otherwise.
Parameters
| Name | Type |
|---|---|
selectors | string |
Returns
boolean
Inherited from
HTMLElement.matches
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4978
normalize
▸ normalize(): void
Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
Returns
void
Inherited from
HTMLElement.normalize
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10575
prepend
▸ prepend(...nodes): void
Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
| Name | Type |
|---|---|
...nodes | (string | Node)[] |
Returns
void
Inherited from
HTMLElement.prepend
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10982
querySelector
▸ querySelector<K>(selectors): HTMLElementTagNameMap[K]
Returns the first element that is a descendant of node that matches selectors.
Type parameters
| Name | Type |
|---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
| Name | Type |
|---|---|
selectors | K |
Returns
HTMLElementTagNameMap[K]
Inherited from
HTMLElement.querySelector
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10986
▸ querySelector<K>(selectors): SVGElementTagNameMap[K]
Type parameters
| Name | Type |
|---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
| Name | Type |
|---|---|
selectors | K |
Returns
SVGElementTagNameMap[K]
Inherited from
HTMLElement.querySelector
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10987
▸ querySelector<E>(selectors): E
Type parameters
| Name | Type |
|---|---|
E | extends Element``Element |
Parameters
| Name | Type |
|---|---|
selectors | string |
Returns
E
Inherited from
HTMLElement.querySelector
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10988
querySelectorAll
▸ querySelectorAll<K>(selectors): NodeListOf<HTMLElementTagNameMap[K]>
Returns all element descendants of node that match selectors.
Type parameters
| Name | Type |
|---|---|
K | extends keyof HTMLElementTagNameMap |
Parameters
| Name | Type |
|---|---|
selectors | K |
Returns
NodeListOf<HTMLElementTagNameMap[K]>
Inherited from
HTMLElement.querySelectorAll
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10992
▸ querySelectorAll<K>(selectors): NodeListOf<SVGElementTagNameMap[K]>
Type parameters
| Name | Type |
|---|---|
K | extends keyof SVGElementTagNameMap |
Parameters
| Name | Type |
|---|---|
selectors | K |
Returns
NodeListOf<SVGElementTagNameMap[K]>
Inherited from
HTMLElement.querySelectorAll
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10993
▸ querySelectorAll<E>(selectors): NodeListOf<E>
Type parameters
| Name | Type |
|---|---|
E | extends Element``Element |
Parameters
| Name | Type |
|---|---|
selectors | string |
Returns
NodeListOf<E>
Inherited from
HTMLElement.querySelectorAll
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10994
releasePointerCapture
▸ releasePointerCapture(pointerId): void
Parameters
| Name | Type |
|---|---|
pointerId | number |
Returns
void
Inherited from
HTMLElement.releasePointerCapture
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4979
remove
▸ remove(): void
Removes node.
Returns
void
Inherited from
HTMLElement.remove
Defined in
node_modules/typescript/lib/lib.dom.d.ts:3501
removeAttribute
▸ removeAttribute(qualifiedName): void
Removes element's first attribute whose qualified name is qualifiedName.
Parameters
| Name | Type |
|---|---|
qualifiedName | string |
Returns
void
Inherited from
HTMLElement.removeAttribute
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4983
removeAttributeNS
▸ removeAttributeNS(namespace, localName): void
Removes element's attribute whose namespace is namespace and local name is localName.
Parameters
| Name | Type |
|---|---|
namespace | string |
localName | string |
Returns
void
Inherited from
HTMLElement.removeAttributeNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4987
removeAttributeNode
▸ removeAttributeNode(attr): Attr
Parameters
| Name | Type |
|---|---|
attr | Attr |
Returns
Attr
Inherited from
HTMLElement.removeAttributeNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4988
removeChild
▸ removeChild<T>(child): T
Type parameters
| Name | Type |
|---|---|
T | extends Node |
Parameters
| Name | Type |
|---|---|
child | T |
Returns
T
Inherited from
HTMLElement.removeChild
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10576
removeEventListener
▸ removeEventListener<K>(type, listener, options?): void
Type parameters
| Name | Type |
|---|---|
K | extends keyof HTMLElementEventMap |
Parameters
| Name | Type |
|---|---|
type | K |
listener | (ev: HTMLElementEventMap[K]) => any |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
HTMLElement.removeEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6434
▸ removeEventListener(type, listener, options?): void
Parameters
| Name | Type |
|---|---|
type | string |
listener | EventListenerOrEventListenerObject |
options? | boolean | EventListenerOptions |
Returns
void
Inherited from
HTMLElement.removeEventListener
Defined in
node_modules/typescript/lib/lib.dom.d.ts:6435
replaceChild
▸ replaceChild<T>(node, child): T
Type parameters
| Name | Type |
|---|---|
T | extends Node |
Parameters
| Name | Type |
|---|---|
node | Node |
child | T |
Returns
T
Inherited from
HTMLElement.replaceChild
Defined in
node_modules/typescript/lib/lib.dom.d.ts:10577
replaceChildren
▸ replaceChildren(...nodes): void
Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
| Name | Type |
|---|---|
...nodes | (string | Node)[] |
Returns
void
Inherited from
HTMLElement.replaceChildren
Defined in
node_modules/typescript/lib/lib.dom.d.ts:11000
replaceWith
▸ replaceWith(...nodes): void
Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
Parameters
| Name | Type |
|---|---|
...nodes | (string | Node)[] |
Returns
void
Inherited from
HTMLElement.replaceWith
Defined in
node_modules/typescript/lib/lib.dom.d.ts:3507
requestFullscreen
▸ requestFullscreen(options?): Promise<void>
Displays element fullscreen and resolves promise when done.
When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
Parameters
| Name | Type |
|---|---|
options? | FullscreenOptions |
Returns
Promise<void>
Inherited from
HTMLElement.requestFullscreen
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4994
requestPointerLock
▸ requestPointerLock(): void
Returns
void
Inherited from
HTMLElement.requestPointerLock
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4995
scroll
▸ scroll(options?): void
Parameters
| Name | Type |
|---|---|
options? | ScrollToOptions |
Returns
void
Inherited from
HTMLElement.scroll
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4996
▸ scroll(x, y): void
Parameters
| Name | Type |
|---|---|
x | number |
y | number |
Returns
void
Inherited from
HTMLElement.scroll
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4997
scrollBy
▸ scrollBy(options?): void
Parameters
| Name | Type |
|---|---|
options? | ScrollToOptions |
Returns
void
Inherited from
HTMLElement.scrollBy
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4998
▸ scrollBy(x, y): void
Parameters
| Name | Type |
|---|---|
x | number |
y | number |
Returns
void
Inherited from
HTMLElement.scrollBy
Defined in
node_modules/typescript/lib/lib.dom.d.ts:4999
scrollIntoView
▸ scrollIntoView(arg?): void
Parameters
| Name | Type |
|---|---|
arg? | boolean | ScrollIntoViewOptions |
Returns
void
Inherited from
HTMLElement.scrollIntoView
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5000
scrollTo
▸ scrollTo(options?): void
Parameters
| Name | Type |
|---|---|
options? | ScrollToOptions |
Returns
void
Inherited from
HTMLElement.scrollTo
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5001
▸ scrollTo(x, y): void
Parameters
| Name | Type |
|---|---|
x | number |
y | number |
Returns
void
Inherited from
HTMLElement.scrollTo
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5002
setAttribute
▸ setAttribute(qualifiedName, value): void
Sets the value of element's first attribute whose qualified name is qualifiedName to value.
Parameters
| Name | Type |
|---|---|
qualifiedName | string |
value | string |
Returns
void
Inherited from
HTMLElement.setAttribute
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5006
setAttributeNS
▸ setAttributeNS(namespace, qualifiedName, value): void
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
Parameters
| Name | Type |
|---|---|
namespace | string |
qualifiedName | string |
value | string |
Returns
void
Inherited from
HTMLElement.setAttributeNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5010
setAttributeNode
▸ setAttributeNode(attr): Attr
Parameters
| Name | Type |
|---|---|
attr | Attr |
Returns
Attr
Inherited from
HTMLElement.setAttributeNode
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5011
setAttributeNodeNS
▸ setAttributeNodeNS(attr): Attr
Parameters
| Name | Type |
|---|---|
attr | Attr |
Returns
Attr
Inherited from
HTMLElement.setAttributeNodeNS
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5012
setPointerCapture
▸ setPointerCapture(pointerId): void
Parameters
| Name | Type |
|---|---|
pointerId | number |
Returns
void
Inherited from
HTMLElement.setPointerCapture
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5013
toggleAttribute
▸ toggleAttribute(qualifiedName, force?): boolean
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
Returns true if qualifiedName is now present, and false otherwise.
Parameters
| Name | Type |
|---|---|
qualifiedName | string |
force? | boolean |
Returns
boolean
Inherited from
HTMLElement.toggleAttribute
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5019
webkitMatchesSelector
▸ webkitMatchesSelector(selectors): boolean
deprecated This is a legacy alias of matches.
Parameters
| Name | Type |
|---|---|
selectors | string |
Returns
boolean
Inherited from
HTMLElement.webkitMatchesSelector
Defined in
node_modules/typescript/lib/lib.dom.d.ts:5021
@ordergroove/smi-core / Modules / smi-core / dayjs / Dayjs
Class: Dayjs
Table of contents
Constructors
Methods
- add
- clone
- date
- day
- daysInMonth
- diff
- endOf
- format
- get
- hour
- isAfter
- isBefore
- isSame
- isValid
- locale
- millisecond
- minute
- month
- second
- set
- startOf
- subtract
- toDate
- toISOString
- toJSON
- toString
- unix
- utcOffset
- valueOf
- year
Constructors
constructor
• new Dayjs(config?)
Parameters
| Name | Type |
|---|---|
config? | ConfigType |
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:28
Methods
add
▸ add(value, unit?): Dayjs
Returns a cloned Day.js object with a specified amount of time added.
dayjs().add(7, 'day')// => Dayjs
Units are case insensitive, and support plural and short forms.
Docs: https://day.js.org/docs/en/manipulate/add
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
| `unit?` | [`OpUnitType`](#opunittype) |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:234
___
### clone
▸ **clone**(): [`Dayjs`](#classessmi_coredayjsdayjsmd)
All Day.js objects are immutable. Still, `dayjs#clone` can create a clone of the current object if you need one.
dayjs().clone()// => Dayjs
dayjs(dayjs('2019-01-25')) // passing a Dayjs object to a constructor will also clone it
Docs: https://day.js.org/docs/en/parse/dayjs-clone
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:37
___
### date
▸ **date**(): `number`
Get the date of the month.
dayjs().date()// => 1-31
Docs: https://day.js.org/docs/en/get-set/date
Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the months.
dayjs().date(1)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/date
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:91
▸ **date**(`value`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Set the date of the month.
Accepts numbers from 1 to 31. If the range is exceeded, it will bubble up to the months.
dayjs().date(1)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/date
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:101
___
### day
▸ **day**(): `number`
Get the day of the week.
Returns numbers from 0 (Sunday) to 6 (Saturday).
dayjs().day()// 0-6
Docs: https://day.js.org/docs/en/get-set/day
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:111
▸ **day**(`value`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Set the day of the week.
Accepts numbers from 0 (Sunday) to 6 (Saturday). If the range is exceeded, it will bubble up to other weeks.
dayjs().day(0)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/day
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:121
___
### daysInMonth
▸ **daysInMonth**(): `number`
Get the number of days in the current month.
dayjs('2019-01-25').daysInMonth() // 31
Docs: https://day.js.org/docs/en/display/days-in-month
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:324
___
### diff
▸ **diff**(`date`, `unit?`, `float?`): `number`
This indicates the difference between two date-time in the specified unit.
To get the difference in milliseconds, use `dayjs#diff`
const date1 = dayjs('2019-01-25')
const date2 = dayjs('2018-06-05')
date1.diff(date2) // 20214000000 default milliseconds
To get the difference in another unit of measurement, pass that measurement as the second argument.
const date1 = dayjs('2019-01-25')
date1.diff('2018-06-05', 'month') // 7
Units are case insensitive, and support plural and short forms.
Docs: https://day.js.org/docs/en/display/difference
#### Parameters
| Name | Type |
| :------ | :------ |
| `date` | [`ConfigType`](#configtype) |
| `unit?` | ``"s"`` \| ``"millisecond"`` \| ``"second"`` \| ``"minute"`` \| ``"hour"`` \| ``"day"`` \| ``"month"`` \| ``"year"`` \| ``"date"`` \| ``"milliseconds"`` \| ``"seconds"`` \| ``"minutes"`` \| ``"hours"`` \| ``"days"`` \| ``"months"`` \| ``"years"`` \| ``"dates"`` \| ``"d"`` \| ``"M"`` \| ``"y"`` \| ``"h"`` \| ``"m"`` \| ``"ms"`` \| ``"week"`` \| ``"weeks"`` \| ``"w"`` \| ``"quarter"`` \| ``"quarters"`` \| ``"Q"`` |
| `float?` | `boolean` |
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:295
___
### endOf
▸ **endOf**(`unit`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Returns a cloned Day.js object and set it to the end of a unit of time.
dayjs().endOf('month')// => Dayjs
Units are case insensitive, and support plural and short forms.
Docs: https://day.js.org/docs/en/manipulate/end-of
#### Parameters
| Name | Type |
| :------ | :------ |
| `unit` | [`OpUnitType`](#opunittype) |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:264
___
### format
▸ **format**(`template?`): `string`
Get the formatted date according to the string of tokens passed in.
To escape characters, wrap them in square brackets (e.g. [MM]).
dayjs().format()// => current date in ISO8601, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
dayjs('2019-01-25').format('[YYYYescape] YYYY-MM-DDTHH:mm:ssZ[Z]')// 'YYYYescape 2019-01-25T00:00:00-02:00Z'
dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
Docs: https://day.js.org/docs/en/display/format
#### Parameters
| Name | Type |
| :------ | :------ |
| `template?` | `string` |
#### Returns
`string`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:276
___
### get
▸ **get**(`unit`): `number`
String getter, returns the corresponding information getting from Day.js object.
In general:
dayjs().get(unit) === dayjs()[unit]()
Units are case insensitive, and support plural and short forms.
dayjs().get('year')
dayjs().get('month') // start 0
dayjs().get('date')
Docs: https://day.js.org/docs/en/get-set/get
#### Parameters
| Name | Type |
| :------ | :------ |
| `unit` | [`UnitType`](#unittype) |
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:224
___
### hour
▸ **hour**(): `number`
Get the hour.
dayjs().hour()// => 0-23
Docs: https://day.js.org/docs/en/get-set/hour
Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the day.
dayjs().hour(12)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/hour
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:129
▸ **hour**(`value`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Set the hour.
Accepts numbers from 0 to 23. If the range is exceeded, it will bubble up to the day.
dayjs().hour(12)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/hour
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:139
___
### isAfter
▸ **isAfter**(`date`, `unit?`): `boolean`
This indicates whether the Day.js object is after the other supplied date-time.
dayjs().isAfter(dayjs('2011-01-01')) // default milliseconds
If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
dayjs().isAfter('2011-01-01', 'year')// => boolean
Units are case insensitive, and support plural and short forms.
Docs: https://day.js.org/docs/en/query/is-after
#### Parameters
| Name | Type |
| :------ | :------ |
| `date` | [`ConfigType`](#configtype) |
| `unit?` | [`OpUnitType`](#opunittype) |
#### Returns
`boolean`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:403
___
### isBefore
▸ **isBefore**(`date`, `unit?`): `boolean`
This indicates whether the Day.js object is before the other supplied date-time.
dayjs().isBefore(dayjs('2011-01-01')) // default milliseconds
If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
dayjs().isBefore('2011-01-01', 'year')// => boolean
Units are case insensitive, and support plural and short forms.
Docs: https://day.js.org/docs/en/query/is-before
#### Parameters
| Name | Type |
| :------ | :------ |
| `date` | [`ConfigType`](#configtype) |
| `unit?` | [`OpUnitType`](#opunittype) |
#### Returns
`boolean`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:377
___
### isSame
▸ **isSame**(`date`, `unit?`): `boolean`
This indicates whether the Day.js object is the same as the other supplied date-time.
dayjs().isSame(dayjs('2011-01-01')) // default milliseconds
If you want to limit the granularity to a unit other than milliseconds, pass it as the second parameter.
dayjs().isSame('2011-01-01', 'year')// => boolean
Docs: https://day.js.org/docs/en/query/is-same
#### Parameters
| Name | Type |
| :------ | :------ |
| `date` | [`ConfigType`](#configtype) |
| `unit?` | [`OpUnitType`](#opunittype) |
#### Returns
`boolean`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:389
___
### isValid
▸ **isValid**(): `boolean`
This returns a `boolean` indicating whether the Day.js object contains a valid date or not.
dayjs().isValid()// => boolean
Docs: https://day.js.org/docs/en/parse/is-valid
#### Returns
`boolean`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:45
___
### locale
▸ **locale**(): `string`
#### Returns
`string`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:405
▸ **locale**(`preset`, `object?`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Parameters
| Name | Type |
| :------ | :------ |
| `preset` | `string` \| `ILocale` |
| `object?` | `Partial`<`ILocale`\> |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:407
___
### millisecond
▸ **millisecond**(): `number`
Get the milliseconds.
dayjs().millisecond()// => 0-999
Docs: https://day.js.org/docs/en/get-set/millisecond
Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the seconds.
dayjs().millisecond(1)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/millisecond
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:182
▸ **millisecond**(`value`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Set the milliseconds.
Accepts numbers from 0 to 999. If the range is exceeded, it will bubble up to the seconds.
dayjs().millisecond(1)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/millisecond
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:192
___
### minute
▸ **minute**(): `number`
Get the minutes.
dayjs().minute()// => 0-59
Docs: https://day.js.org/docs/en/get-set/minute
Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the hour.
dayjs().minute(59)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/minute
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:147
▸ **minute**(`value`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Set the minutes.
Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the hour.
dayjs().minute(59)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/minute
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:157
___
### month
▸ **month**(): `number`
Get the month.
Months are zero indexed, so January is month 0.
dayjs().month()// => 0-11
Docs: https://day.js.org/docs/en/get-set/month
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:71
▸ **month**(`value`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Set the month.
Months are zero indexed, so January is month 0.
Accepts numbers from 0 to 11. If the range is exceeded, it will bubble up to the year.
dayjs().month(0)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/month
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:83
___
### second
▸ **second**(): `number`
Get the seconds.
dayjs().second()// => 0-59
Docs: https://day.js.org/docs/en/get-set/second
Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the minutes.
dayjs().second(1)// Dayjs
Returns
number
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:165
▸ second(value): Dayjs
Set the seconds.
Accepts numbers from 0 to 59. If the range is exceeded, it will bubble up to the minutes.
dayjs().second(1)// Dayjs
Parameters
| Name | Type |
|---|---|
value | number |
Returns
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:174
set
▸ set(unit, value): Dayjs
Generic setter, accepting unit as first argument, and value as second, returns a new instance with the applied changes.
In general:
dayjs().set(unit, value) === dayjs()[unit](value)
Units are case insensitive, and support plural and short forms.
dayjs().set('date', 1)
dayjs().set('month', 3) // April
dayjs().set('second', 30)
Docs: https://day.js.org/docs/en/get-set/set
#### Parameters
| Name | Type |
| :------ | :------ |
| `unit` | [`UnitType`](#unittype) |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:208
___
### startOf
▸ **startOf**(`unit`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Returns a cloned Day.js object and set it to the start of a unit of time.
dayjs().startOf('year')// => Dayjs
Units are case insensitive, and support plural and short forms.
Docs: https://day.js.org/docs/en/manipulate/start-of
#### Parameters
| Name | Type |
| :------ | :------ |
| `unit` | [`OpUnitType`](#opunittype) |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:254
___
### subtract
▸ **subtract**(`value`, `unit?`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Returns a cloned Day.js object with a specified amount of time subtracted.
dayjs().subtract(7, 'year')// => Dayjs
Units are case insensitive, and support plural and short forms.
Docs: https://day.js.org/docs/en/manipulate/subtract
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
| `unit?` | [`OpUnitType`](#opunittype) |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:244
___
### toDate
▸ **toDate**(): `Date`
To get a copy of the native `Date` object parsed from the Day.js object use `dayjs#toDate`.
dayjs('2019-01-25').toDate()// => Date
Returns
Date
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:331
toISOString
▸ toISOString(): string
To format as an ISO 8601 string.
dayjs('2019-01-25').toISOString() // '2019-01-25T02:00:00.000Z'
Docs: https://day.js.org/docs/en/display/as-iso-string
#### Returns
`string`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:347
___
### toJSON
▸ **toJSON**(): `string`
To serialize as an ISO 8601 string.
dayjs('2019-01-25').toJSON() // '2019-01-25T02:00:00.000Z'
Docs: https://day.js.org/docs/en/display/as-json
#### Returns
`string`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:339
___
### toString
▸ **toString**(): `string`
Returns a string representation of the date.
dayjs('2019-01-25').toString() // 'Fri, 25 Jan 2019 02:00:00 GMT'
Docs: https://day.js.org/docs/en/display/as-string
#### Returns
`string`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:355
___
### unix
▸ **unix**(): `number`
This returns the Unix timestamp (the number of **seconds** since the Unix Epoch) of the Day.js object.
dayjs('2019-01-25').unix() // 1548381600
This value is floored to the nearest second, and does not include a milliseconds component.
Docs: https://day.js.org/docs/en/display/unix-timestamp
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:316
___
### utcOffset
▸ **utcOffset**(): `number`
Get the UTC offset in minutes.
dayjs().utcOffset()
Docs: https://day.js.org/docs/en/manipulate/utc-offset
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:363
___
### valueOf
▸ **valueOf**(): `number`
This returns the number of **milliseconds** since the Unix Epoch of the Day.js object.
dayjs('2019-01-25').valueOf() // 1548381600000
+dayjs(1548381600000) // 1548381600000
To get a Unix timestamp (the number of seconds since the epoch) from a Day.js object, you should use Unix Timestamp `dayjs#unix()`.
Docs: https://day.js.org/docs/en/display/unix-timestamp-milliseconds
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:306
___
### year
▸ **year**(): `number`
Get the year.
dayjs().year()// => 2020
Docs: https://day.js.org/docs/en/get-set/year
#### Returns
`number`
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:53
▸ **year**(`value`): [`Dayjs`](#classessmi_coredayjsdayjsmd)
Set the year.
dayjs().year(2000)// => Dayjs
Docs: https://day.js.org/docs/en/get-set/year
#### Parameters
| Name | Type |
| :------ | :------ |
| `value` | `number` |
#### Returns
[`Dayjs`](#classessmi_coredayjsdayjsmd)
#### Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:61
<a name="enumstypescancelreasonmd"></a>
[@ordergroove/smi-core](#readmemd) / [Modules](#modulesmd) / [types](#modulestypesmd) / CancelReason
# Enumeration: CancelReason
[types](#modulestypesmd).CancelReason
## Table of contents
### Enumeration members
- [CANCEL\_REASON\_1](#cancel_reason_1)
- [CANCEL\_REASON\_15](#cancel_reason_15)
- [CANCEL\_REASON\_2](#cancel_reason_2)
- [CANCEL\_REASON\_22](#cancel_reason_22)
- [CANCEL\_REASON\_3](#cancel_reason_3)
- [CANCEL\_REASON\_31](#cancel_reason_31)
- [CANCEL\_REASON\_70](#cancel_reason_70)
- [CANCEL\_REASON\_8](#cancel_reason_8)
## Enumeration members
### CANCEL\_REASON\_1
• **CANCEL\_REASON\_1** = `"Other (please specify)"`
#### Defined in
[packages/smi-core/src/types/index.ts:874](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L874)
___
### CANCEL\_REASON\_15
• **CANCEL\_REASON\_15** = `"I don't like this product"`
#### Defined in
[packages/smi-core/src/types/index.ts:878](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L878)
___
### CANCEL\_REASON\_2
• **CANCEL\_REASON\_2** = `"I have too many of this product"`
#### Defined in
[packages/smi-core/src/types/index.ts:875](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L875)
___
### CANCEL\_REASON\_22
• **CANCEL\_REASON\_22** = `"I wanted to switch to a different product/flavor"`
#### Defined in
[packages/smi-core/src/types/index.ts:879](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L879)
___
### CANCEL\_REASON\_3
• **CANCEL\_REASON\_3** = `"I stopped using this product"`
#### Defined in
[packages/smi-core/src/types/index.ts:876](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L876)
___
### CANCEL\_REASON\_31
• **CANCEL\_REASON\_31** = `"I had trouble managing my subscription"`
#### Defined in
[packages/smi-core/src/types/index.ts:880](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L880)
___
### CANCEL\_REASON\_70
• **CANCEL\_REASON\_70** = `"I no longer have any use for this product and I will not need it in the near future"`
#### Defined in
[packages/smi-core/src/types/index.ts:881](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L881)
___
### CANCEL\_REASON\_8
• **CANCEL\_REASON\_8** = `"This product is too expensive"`
#### Defined in
[packages/smi-core/src/types/index.ts:877](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L877)
<a name="enumstypescctypemd"></a>
[@ordergroove/smi-core](#readmemd) / [Modules](#modulesmd) / [types](#modulestypesmd) / CcType
# Enumeration: CcType
[types](#modulestypesmd).CcType
Defines a credit card type
## Table of contents
### Enumeration members
- [AMERICAN\_EXPRESS](#american_express)
- [DINERS](#diners)
- [DISCOVER](#discover)
- [JCB](#jcb)
- [MASTERCARD](#mastercard)
- [VISA](#visa)
## Enumeration members
### AMERICAN\_EXPRESS
• **AMERICAN\_EXPRESS** = `3`
#### Defined in
[packages/smi-core/src/types/index.ts:47](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L47)
___
### DINERS
• **DINERS** = `5`
#### Defined in
[packages/smi-core/src/types/index.ts:49](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L49)
___
### DISCOVER
• **DISCOVER** = `4`
#### Defined in
[packages/smi-core/src/types/index.ts:48](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L48)
___
### JCB
• **JCB** = `6`
#### Defined in
[packages/smi-core/src/types/index.ts:50](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L50)
___
### MASTERCARD
• **MASTERCARD** = `2`
#### Defined in
[packages/smi-core/src/types/index.ts:46](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L46)
___
### VISA
• **VISA** = `1`
#### Defined in
[packages/smi-core/src/types/index.ts:45](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L45)
<a name="enumstypeseveryperiodmd"></a>
[@ordergroove/smi-core](#readmemd) / [Modules](#modulesmd) / [types](#modulestypesmd) / EveryPeriod
# Enumeration: EveryPeriod
[types](#modulestypesmd).EveryPeriod
Defines a period of time
## Table of contents
### Enumeration members
- [DAYS](#days)
- [MONTHS](#months)
- [WEEKS](#weeks)
## Enumeration members
### DAYS
• **DAYS** = `1`
#### Defined in
[packages/smi-core/src/types/index.ts:37](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L37)
___
### MONTHS
• **MONTHS** = `3`
#### Defined in
[packages/smi-core/src/types/index.ts:39](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L39)
___
### WEEKS
• **WEEKS** = `2`
#### Defined in
[packages/smi-core/src/types/index.ts:38](https://github.com/ordergroove/plush-toys/blob/5f265228/packages/smi-core/src/types/index.ts#L38)
<a name="enumstypesformnamechoicemd"></a>
[@ordergroove/smi-core](#readmemd) / [Modules](#modulesmd) / [types](#modulestypesmd) / FormNameChoice
# Enumeration: FormNameChoice
[types](#modulestypesmd).FormNameChoice
## Table of contents
### Enumeration members
- [cancel\_subscription](#cancel_subscription)
- [change\_item\_quantity](#change_item_quantity)
- [change\_product](#change_product)
- [change\_quantity](#change_quantity)
- [change\_shipment\_date](#change_shipment_date)
- [change\_shipping\_address](#change_shipping_address)
- [change\_subscription\_frequency](#change_subscription_frequency)
- [delete\_item](#delete_item)
- [pause\_subscription](#pause_subscription)
- [reactivate\_subscription](#reactivate_subscription)
- [send\_now](#send_now)
- [skip\_shipment](#skip_shipment)
## Enumeration members
### cancel\_subscription
• **cancel\_subscription** = `"cancel_subscription"`
Handles the subscription cancellation flow.
This handler will throw an error if no input name="subscription" is available in the context.
<form action={{'cancel_subscription' | action}}>
<input type="hidden" name="subscription" value="{{ subscription.public_id }}">
<input type="submit"/>
</form>
input subscription public_id of the subscription attempting to cancel
input cancel_reason A valid cancel_reason code CancelReason
input cancel_reason_details Reason described as block text
Defined in
packages/smi-core/src/types/index.ts:904
change_item_quantity
• change_item_quantity = "change_item_quantity"
Defined in
packages/smi-core/src/types/index.ts:906
change_product
• change_product = "change_product"
Defined in
packages/smi-core/src/types/index.ts:907
change_quantity
• change_quantity = "change_quantity"
Defined in
packages/smi-core/src/types/index.ts:905
change_shipment_date
• change_shipment_date = "change_shipment_date"
Defined in
packages/smi-core/src/types/index.ts:908
change_shipping_address
• change_shipping_address = "change_shipping_address"
Defined in
packages/smi-core/src/types/index.ts:909
change_subscription_frequency
• change_subscription_frequency = "change_subscription_frequency"
Defined in
packages/smi-core/src/types/index.ts:913
delete_item
• delete_item = "delete_item"
Defined in
packages/smi-core/src/types/index.ts:910
pause_subscription
• pause_subscription = "pause_subscription"
Defined in
packages/smi-core/src/types/index.ts:915
reactivate_subscription
• reactivate_subscription = "reactivate_subscription"
Defined in
packages/smi-core/src/types/index.ts:911
send_now
• send_now = "send_now"
Defined in
packages/smi-core/src/types/index.ts:912
skip_shipment
• skip_shipment = "skip_shipment"
Defined in
packages/smi-core/src/types/index.ts:914
@ordergroove/smi-core / Modules / types / OrderSortBy
Enumeration: OrderSortBy
types.OrderSortBy
Table of contents
Enumeration members
Enumeration members
place
• place = "place"
Defined in
packages/smi-core/src/types/index.ts:860
@ordergroove/smi-core / Modules / types / OrderStatus
Enumeration: OrderStatus
types.OrderStatus
This field is used to determine the current status of the order. List of possible order status which are important to note
Table of contents
Enumeration members
- CANCELLED
- CONNECTION_ERROR_DURING_PLACEMENT
- CREDIT_CARD_RETRY
- EXCEPTION_DURING_PLACEMENT_PREPARATION
- EXPIRED
- GENERIC_ERROR_RESPONSE
- MERGED
- ONE_TIME
- PENDING_BATCH_RESPONSE
- PENDING_PLACEMENT
- PENDING_VERIFICATION
- REJECTED
- RESPONSE_PROCESSING_ERROR
- SEND_NOW
- SENT
- SUCCESS
- UNKNOWN_PLACEMENT_RESPONSE
- UNSENT
Enumeration members
CANCELLED
• CANCELLED = 4
Defined in
packages/smi-core/src/types/index.ts:72
CONNECTION_ERROR_DURING_PLACEMENT
• CONNECTION_ERROR_DURING_PLACEMENT = 13
Unable to reach the merchant's order placement service and will be retried on the next placement. No retry limit.
Defined in
packages/smi-core/src/types/index.ts:88
CREDIT_CARD_RETRY
• CREDIT_CARD_RETRY = 18
The order failed with a 140 error code and is going through the credit card retry process.
Defined in
packages/smi-core/src/types/index.ts:105
EXCEPTION_DURING_PLACEMENT_PREPARATION
• EXCEPTION_DURING_PLACEMENT_PREPARATION = 12
Defined in
packages/smi-core/src/types/index.ts:84
EXPIRED
• EXPIRED = 16
Defined in
packages/smi-core/src/types/index.ts:97
GENERIC_ERROR_RESPONSE
• GENERIC_ERROR_RESPONSE = 15
A generic error was sent or defaulted by our system. Merchant sets number of times to retry.
Defined in
packages/smi-core/src/types/index.ts:96
MERGED
• MERGED = 17
This order was merged with another order. To find the order, check the Order's extra data for the field 'merged_order_id'.
Defined in
packages/smi-core/src/types/index.ts:101
ONE_TIME
• ONE_TIME = 7
Defined in
packages/smi-core/src/types/index.ts:79
PENDING_BATCH_RESPONSE
• PENDING_BATCH_RESPONSE = 9
Defined in
packages/smi-core/src/types/index.ts:81
PENDING_PLACEMENT
• PENDING_PLACEMENT = 11
Defined in
packages/smi-core/src/types/index.ts:83
PENDING_VERIFICATION
• PENDING_VERIFICATION = 10
Defined in
packages/smi-core/src/types/index.ts:82
REJECTED
• REJECTED = 3
Orders are set to 'REJECTED' after the retry limit has been reached.
Defined in
packages/smi-core/src/types/index.ts:71
RESPONSE_PROCESSING_ERROR
• RESPONSE_PROCESSING_ERROR = 14
The batch or http response from the merchant was not understood by our system. This order is not retried.
Defined in
packages/smi-core/src/types/index.ts:92
SEND_NOW
• SEND_NOW = 6
Order is currently processing and will be sent as soon as possible and
will already have a future order created before the order placement process.
Defined in
packages/smi-core/src/types/index.ts:78
SENT
• SENT = 2
Defined in
packages/smi-core/src/types/index.ts:67
SUCCESS
• SUCCESS = 5
Defined in
packages/smi-core/src/types/index.ts:73
UNKNOWN_PLACEMENT_RESPONSE
• UNKNOWN_PLACEMENT_RESPONSE = 8
Defined in
packages/smi-core/src/types/index.ts:80
UNSENT
• UNSENT = 1
Order will be placing some time in the future.
Defined in
packages/smi-core/src/types/index.ts:66
@ordergroove/smi-core / Modules / types / OrderType
Enumeration: OrderType
types.OrderType
Defines the order type
Table of contents
Enumeration members
Enumeration members
ONE_TIME
• ONE_TIME = 2
Defined in
packages/smi-core/src/types/index.ts:112
OTHER
• OTHER = 3
Defined in
packages/smi-core/src/types/index.ts:113
SUBSCRIPTION
• SUBSCRIPTION = 1
Defined in
packages/smi-core/src/types/index.ts:111
@ordergroove/smi-core / Modules / types / PaymentMethod
Enumeration: PaymentMethod
types.PaymentMethod
Defines a payment method type
Table of contents
Enumeration members
Enumeration members
CREDIT_CARD
• CREDIT_CARD = 1
Defined in
packages/smi-core/src/types/index.ts:56
PAY_PAL
• PAY_PAL = 2
Defined in
packages/smi-core/src/types/index.ts:57
@ordergroove/smi-core / Modules / types / Action
Interface: Action
types.Action
Table of contents
Properties
Properties
payload
• payload: any
Defined in
packages/smi-core/src/types/index.ts:845
type
• type: string
Defined in
packages/smi-core/src/types/index.ts:844
@ordergroove/smi-core / Modules / types / Address
Interface: Address
types.Address
Table of contents
Properties
- address
- address2
- city
- company_name
- country_code
- created
- customer
- fax
- first_name
- last_name
- live
- phone
- public_id
- state_province_code
- store_public_id
- zip_postal_code
Properties
address
• address: String
The first line of the address which typically includes a street names and house number.
Defined in
packages/smi-core/src/types/index.ts:430
address2
• address2: String
The second line of the address which is typically used to specify additional address details such as apartment number.
Defined in
packages/smi-core/src/types/index.ts:434
city
• city: String
The city of the address.
Defined in
packages/smi-core/src/types/index.ts:438
company_name
• company_name: String
The name of the company tied to the address.
Defined in
packages/smi-core/src/types/index.ts:426
country_code
• country_code: String
The two-letter country code tied to the address.
Defined in
packages/smi-core/src/types/index.ts:458
created
• created: date
The time stamp of when the address record was created.
Defined in
packages/smi-core/src/types/index.ts:466
customer
• customer: String
This field represents your customer's id.
This id is used to map the customer between Ordergroove and your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:410
fax
• fax: String
The fax number tied to the address.
Defined in
packages/smi-core/src/types/index.ts:454
first_name
• first_name: String
The first name of person for whom the shipment is meant for.
Defined in
packages/smi-core/src/types/index.ts:418
last_name
• last_name: String
The last name of person for whom the shipment is meant for.
Defined in
packages/smi-core/src/types/index.ts:422
live
• live: boolean
Determines if an address is currently actively tied to an upcoming order or subscription.
Defined in
packages/smi-core/src/types/index.ts:462
phone
• phone: String
The phone number tied to the address.
Defined in
packages/smi-core/src/types/index.ts:450
public_id
• public_id: String
This is the id of the address.
Defined in
packages/smi-core/src/types/index.ts:414
state_province_code
• state_province_code: String
The state, province or region of the address.
Defined in
packages/smi-core/src/types/index.ts:442
store_public_id
• store_public_id: String
The id of the physical store that is tied to this address.
Defined in
packages/smi-core/src/types/index.ts:470
zip_postal_code
• zip_postal_code: String
The zip or postal code of the address.
Defined in
packages/smi-core/src/types/index.ts:446
@ordergroove/smi-core / Modules / types / Customer
Interface: Customer
types.Customer
This object represents the current customer who is logged into your site that is viewing the SMI
Table of contents
Properties
Properties
authorized
• authorized: boolean
Indicates whether a user who is viewing the SMI is successfully authenticated.
Defined in
packages/smi-core/src/types/index.ts:123
public_id
• public_id: MerchantId
This id is used to identify you as the merchant.
Defined in
packages/smi-core/src/types/index.ts:140
sig
• sig: string
Indicates whether a user who is viewing the SMI is successfully authenticated.
Defined in
packages/smi-core/src/types/index.ts:136
sig_field
• sig_field: string
This field represents your customer's id. This id is used to map the customer between
Ordergroove and your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:128
ts
• ts: number
Timestamp used to generate the authentication signature.
Defined in
packages/smi-core/src/types/index.ts:132
@ordergroove/smi-core / Modules / types / DateFormatString
Interface: DateFormatString
types.DateFormatString
| Format | Output | Description |
|---|---|---|
| YY | 18 | Two-digit year |
| YYYY | 2018 | Four-digit year |
| M | 1-12 | The month, beginning at 1 |
| MM | 01-12 | The month, 2-digits |
| MMM | Jan-Dec | The abbreviated month name |
| MMMM | January-December | The full month name |
| D | 1-31 | The day of the month |
| DD | 01-31 | The day of the month, 2-digits |
| d | 0-6 | The day of the week, with Sunday as 0 |
| dd | Su-Sa | The min name of the day of the week |
| ddd | Sun-Sat | The short name of the day of the week |
| dddd | Sunday-Saturday | The name of the day of the week |
| H | 0-23 | The hour |
| HH | 00-23 | The hour, 2-digits |
| h | 1-12 | The hour, 12-hour clock |
| hh | 01-12 | The hour, 12-hour clock, 2-digits |
| m | 0-59 \ The minute | |
| mm | 00-59 | The minute, 2-digits |
| s | 0-59 | The second |
| ss | 00-59 | The second, 2-digits |
| SSS | 000-999 | The millisecond, 3-digits |
| Z | +05:00 | The offset from UTC, ±HH:mm |
| ZZ | +0500 | The offset from UTC, ±HHmm |
| A | AM PM | |
| a | am pm |
export
interface DateFormatString
Hierarchy
-
String↳
DateFormatString
Table of contents
Properties
Methods
- [iterator]
- anchor
- big
- blink
- bold
- charAt
- charCodeAt
- codePointAt
- concat
- endsWith
- fixed
- fontcolor
- fontsize
- includes
- indexOf
- italics
- lastIndexOf
- link
- localeCompare
- match
- matchAll
- normalize
- padEnd
- padStart
- repeat
- replace
- search
- slice
- small
- split
- startsWith
- strike
- sub
- substr
- substring
- sup
- toLocaleLowerCase
- toLocaleUpperCase
- toLowerCase
- toString
- toUpperCase
- trim
- trimEnd
- trimLeft
- trimRight
- trimStart
- valueOf
Properties
length
• Readonly length: number
Returns the length of a String object.
Inherited from
String.length
Defined in
node_modules/typescript/lib/lib.es5.d.ts:501
Methods
[iterator]
▸ [iterator](): IterableIterator<string>
Iterator
Returns
IterableIterator<string>
Inherited from
String.__@iterator@79
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:247
anchor
▸ anchor(name): string
Returns an <a> HTML anchor element and sets the name attribute to the text value
Parameters
| Name | Type |
|---|---|
name | string |
Returns
string
Inherited from
String.anchor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:460
big
▸ big(): string
Returns a <big> HTML element
Returns
string
Inherited from
String.big
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:463
blink
▸ blink(): string
Returns a <blink> HTML element
Returns
string
Inherited from
String.blink
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:466
bold
▸ bold(): string
Returns a <b> HTML element
Returns
string
Inherited from
String.bold
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:469
charAt
▸ charAt(pos): string
Returns the character at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
pos | number | The zero-based index of the desired character. |
Returns
string
Inherited from
String.charAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:402
charCodeAt
▸ charCodeAt(index): number
Returns the Unicode value of the character at the specified location.
Parameters
| Name | Type | Description |
|---|---|---|
index | number | The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. |
Returns
number
Inherited from
String.charCodeAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:408
codePointAt
▸ codePointAt(pos): number
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
value of the UTF-16 encoded code point starting at the string element at position pos in
the String resulting from converting this object to a String.
If there is no element at that position, the result is undefined.
If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
| Name | Type |
|---|---|
pos | number |
Returns
number
Inherited from
String.codePointAt
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:408
concat
▸ concat(...strings): string
Returns a string that contains the concatenation of two or more strings.
Parameters
| Name | Type | Description |
|---|---|---|
...strings | string[] | The strings to append to the end of the string. |
Returns
string
Inherited from
String.concat
Defined in
node_modules/typescript/lib/lib.es5.d.ts:414
endsWith
▸ endsWith(searchString, endPosition?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
endPosition – length(this). Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
endPosition? | number |
Returns
boolean
Inherited from
String.endsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:424
fixed
▸ fixed(): string
Returns a <tt> HTML element
Returns
string
Inherited from
String.fixed
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:472
fontcolor
▸ fontcolor(color): string
Returns a <font> HTML element and sets the color attribute value
Parameters
| Name | Type |
|---|---|
color | string |
Returns
string
Inherited from
String.fontcolor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:475
fontsize
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | number |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:478
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | string |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:481
includes
▸ includes(searchString, position?): boolean
Returns true if searchString appears as a substring of the result of converting this
object to a String, at one or more positions that are
greater than or equal to position; otherwise, returns false.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | search string |
position? | number | If position is undefined, 0 is assumed, so as to search all of the String. |
Returns
boolean
Inherited from
String.includes
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:417
indexOf
▸ indexOf(searchString, position?): number
Returns the position of the first occurrence of a substring.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for in the string |
position? | number | The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. |
Returns
number
Inherited from
String.indexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:421
italics
▸ italics(): string
Returns an <i> HTML element
Returns
string
Inherited from
String.italics
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:484
lastIndexOf
▸ lastIndexOf(searchString, position?): number
Returns the last occurrence of a substring in the string.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for. |
position? | number | The index at which to begin searching. If omitted, the search begins at the end of the string. |
Returns
number
Inherited from
String.lastIndexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:428
link
▸ link(url): string
Returns an <a> HTML element and sets the href attribute value
Parameters
| Name | Type |
|---|---|
url | string |
Returns
string
Inherited from
String.link
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:487
localeCompare
▸ localeCompare(that): number
Determines whether two strings are equivalent in the current locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:434
▸ localeCompare(that, locales?, options?): number
Determines whether two strings are equivalent in the current or specified locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
locales? | string | string[] | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
options? | CollatorOptions | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:4403
match
▸ match(regexp): RegExpMatchArray
Matches a string with a regular expression, and returns an array containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es5.d.ts:440
▸ match(matcher): RegExpMatchArray
Matches a string or an object that supports being matched against, and returns an array
containing the results of that search, or null if no matches are found.
Parameters
| Name | Type | Description |
|---|---|---|
matcher | Object | An object that supports being matched against. |
matcher.[match] | (string: string) => RegExpMatchArray | - |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:239
matchAll
▸ matchAll(regexp): IterableIterator<RegExpMatchArray>
Matches a string with a regular expression, and returns an iterable of matches
containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
IterableIterator<RegExpMatchArray>
Inherited from
String.matchAll
Defined in
node_modules/typescript/lib/lib.es2020.string.d.ts:29
normalize
▸ normalize(form): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form | "NFC" | "NFD" | "NFKC" | "NFKD" | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:432
▸ normalize(form?): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form? | string | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:440
padEnd
▸ padEnd(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the end (right) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padEnd
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:46
padStart
▸ padStart(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the start (left) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padStart
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:33
repeat
▸ repeat(count): string
Returns a String value that is made from count copies appended together. If count is 0,
the empty string is returned.
Parameters
| Name | Type | Description |
|---|---|---|
count | number | number of copies to append |
Returns
string
Inherited from
String.repeat
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:447
replace
▸ replace(searchValue, replaceValue): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replaceValue | string | A string containing the text to replace for every successful match of searchValue in this string. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:447
▸ replace(searchValue, replacer): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:454
▸ replace(searchValue, replaceValue): string
Replaces first match with string or all matches with RegExp.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A string or RegExp search value. |
searchValue.[replace] | (string: string, replaceValue: string) => string | - |
replaceValue | string | A string containing the text to replace for match. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:246
▸ replace(searchValue, replacer): string
Replaces text in a string, using an object that supports replacement within a string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A object can search for and replace matches within a string. |
searchValue.[replace] | (string: string, replacer: (substring: string, ...args: any[]) => string) => string | - |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:253
search
▸ search(regexp): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | The regular expression pattern and applicable flags. |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es5.d.ts:460
▸ search(searcher): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
searcher | Object | An object which supports searching within a string. |
searcher.[search] | (string: string) => number | - |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:259
slice
▸ slice(start?, end?): string
Returns a section of a string.
Parameters
| Name | Type | Description |
|---|---|---|
start? | number | The index to the beginning of the specified portion of stringObj. |
end? | number | The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj. |
Returns
string
Inherited from
String.slice
Defined in
node_modules/typescript/lib/lib.es5.d.ts:468
small
▸ small(): string
Returns a <small> HTML element
Returns
string
Inherited from
String.small
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:490
split
▸ split(separator, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
separator | string | RegExp | A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es5.d.ts:475
▸ split(splitter, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
splitter | Object | An object that can split a string. |
splitter.[split] | (string: string, limit?: number) => string[] | - |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:266
startsWith
▸ startsWith(searchString, position?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
position. Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
position? | number |
Returns
boolean
Inherited from
String.startsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:454
strike
▸ strike(): string
Returns a <strike> HTML element
Returns
string
Inherited from
String.strike
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:493
sub
▸ sub(): string
Returns a <sub> HTML element
Returns
string
Inherited from
String.sub
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:496
substr
▸ substr(from, length?): string
Gets a substring beginning at the specified location and having the specified length.
Parameters
| Name | Type | Description |
|---|---|---|
from | number | The starting position of the desired substring. The index of the first character in the string is zero. |
length? | number | The number of characters to include in the returned substring. |
Returns
string
Inherited from
String.substr
Defined in
node_modules/typescript/lib/lib.es5.d.ts:509
substring
▸ substring(start, end?): string
Returns the substring at the specified location within a String object.
Parameters
| Name | Type | Description |
|---|---|---|
start | number | The zero-based index number indicating the beginning of the substring. |
end? | number | Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. |
Returns
string
Inherited from
String.substring
Defined in
node_modules/typescript/lib/lib.es5.d.ts:483
sup
▸ sup(): string
Returns a <sup> HTML element
Returns
string
Inherited from
String.sup
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:499
toLocaleLowerCase
▸ toLocaleLowerCase(locales?): string
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:489
toLocaleUpperCase
▸ toLocaleUpperCase(locales?): string
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:495
toLowerCase
▸ toLowerCase(): string
Converts all the alphabetic characters in a string to lowercase.
Returns
string
Inherited from
String.toLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:486
toString
▸ toString(): string
Returns a string representation of a string.
Returns
string
Inherited from
String.toString
Defined in
node_modules/typescript/lib/lib.es5.d.ts:396
toUpperCase
▸ toUpperCase(): string
Converts all the alphabetic characters in a string to uppercase.
Returns
string
Inherited from
String.toUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:492
trim
▸ trim(): string
Removes the leading and trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trim
Defined in
node_modules/typescript/lib/lib.es5.d.ts:498
trimEnd
▸ trimEnd(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimEnd
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:23
▸ trimEnd(): string
Returns a copy with trailing whitespace removed.
Returns
string
Inherited from
String.trimEnd
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:159
trimLeft
▸ trimLeft(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimLeft
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:29
▸ trimLeft(): string
Removes whitespace from the left end of a string.
Returns
string
Inherited from
String.trimLeft
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:152
trimRight
▸ trimRight(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimRight
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:32
▸ trimRight(): string
Removes whitespace from the right end of a string.
Returns
string
Inherited from
String.trimRight
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:154
trimStart
▸ trimStart(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimStart
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:26
▸ trimStart(): string
Returns a copy with leading whitespace removed.
Returns
string
Inherited from
String.trimStart
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:157
valueOf
▸ valueOf(): string
Returns the primitive value of the specified object.
Returns
string
Inherited from
String.valueOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:512
@ordergroove/smi-core / Modules / types / Environment
Interface: Environment
types.Environment
This object represents the environment that the application is currently running in.
You typically will not need to interact with this object unless you're instructed
to by an Ordergroove representative.
Table of contents
Properties
Properties
api_url
• api_url: string
URL of the legacy Ordergroove API cluster that the SMI is using to retrieve data.
defaults https://api.ordergroove.com
Defined in
packages/smi-core/src/types/index.ts:651
lego_api
• lego_api: string
URL of the Ordergroove REST API cluster that the SMI is using to retrieve data.
default https://restapi.ordergroove.com
Defined in
packages/smi-core/src/types/index.ts:646
name
• name: EnvironmentChoices
The name of the Ordergroove environment where the SMI is currently running.
Defined in
packages/smi-core/src/types/index.ts:640
@ordergroove/smi-core / Modules / types / MerchantId
Interface: MerchantId
types.MerchantId
This value is used to identify the merchant.
Hierarchy
-
↳
MerchantId
Table of contents
Properties
Methods
- [iterator]
- anchor
- big
- blink
- bold
- charAt
- charCodeAt
- codePointAt
- concat
- endsWith
- fixed
- fontcolor
- fontsize
- includes
- indexOf
- italics
- lastIndexOf
- link
- localeCompare
- match
- matchAll
- normalize
- padEnd
- padStart
- repeat
- replace
- search
- slice
- small
- split
- startsWith
- strike
- sub
- substr
- substring
- sup
- toLocaleLowerCase
- toLocaleUpperCase
- toLowerCase
- toString
- toUpperCase
- trim
- trimEnd
- trimLeft
- trimRight
- trimStart
- valueOf
Properties
length
• Readonly length: number
Returns the length of a String object.
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:501
Methods
[iterator]
▸ [iterator](): IterableIterator<string>
Iterator
Returns
IterableIterator<string>
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:247
anchor
▸ anchor(name): string
Returns an <a> HTML anchor element and sets the name attribute to the text value
Parameters
| Name | Type |
|---|---|
name | string |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:460
big
▸ big(): string
Returns a <big> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:463
blink
▸ blink(): string
Returns a <blink> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:466
bold
▸ bold(): string
Returns a <b> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:469
charAt
▸ charAt(pos): string
Returns the character at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
pos | number | The zero-based index of the desired character. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:402
charCodeAt
▸ charCodeAt(index): number
Returns the Unicode value of the character at the specified location.
Parameters
| Name | Type | Description |
|---|---|---|
index | number | The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:408
codePointAt
▸ codePointAt(pos): number
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
value of the UTF-16 encoded code point starting at the string element at position pos in
the String resulting from converting this object to a String.
If there is no element at that position, the result is undefined.
If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
| Name | Type |
|---|---|
pos | number |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:408
concat
▸ concat(...strings): string
Returns a string that contains the concatenation of two or more strings.
Parameters
| Name | Type | Description |
|---|---|---|
...strings | string[] | The strings to append to the end of the string. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:414
endsWith
▸ endsWith(searchString, endPosition?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
endPosition – length(this). Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
endPosition? | number |
Returns
boolean
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:424
fixed
▸ fixed(): string
Returns a <tt> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:472
fontcolor
▸ fontcolor(color): string
Returns a <font> HTML element and sets the color attribute value
Parameters
| Name | Type |
|---|---|
color | string |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:475
fontsize
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | number |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:478
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | string |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:481
includes
▸ includes(searchString, position?): boolean
Returns true if searchString appears as a substring of the result of converting this
object to a String, at one or more positions that are
greater than or equal to position; otherwise, returns false.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | search string |
position? | number | If position is undefined, 0 is assumed, so as to search all of the String. |
Returns
boolean
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:417
indexOf
▸ indexOf(searchString, position?): number
Returns the position of the first occurrence of a substring.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for in the string |
position? | number | The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:421
italics
▸ italics(): string
Returns an <i> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:484
lastIndexOf
▸ lastIndexOf(searchString, position?): number
Returns the last occurrence of a substring in the string.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for. |
position? | number | The index at which to begin searching. If omitted, the search begins at the end of the string. |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:428
link
▸ link(url): string
Returns an <a> HTML element and sets the href attribute value
Parameters
| Name | Type |
|---|---|
url | string |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:487
localeCompare
▸ localeCompare(that): number
Determines whether two strings are equivalent in the current locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:434
▸ localeCompare(that, locales?, options?): number
Determines whether two strings are equivalent in the current or specified locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
locales? | string | string[] | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
options? | CollatorOptions | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:4403
match
▸ match(regexp): RegExpMatchArray
Matches a string with a regular expression, and returns an array containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
RegExpMatchArray
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:440
▸ match(matcher): RegExpMatchArray
Matches a string or an object that supports being matched against, and returns an array
containing the results of that search, or null if no matches are found.
Parameters
| Name | Type | Description |
|---|---|---|
matcher | Object | An object that supports being matched against. |
matcher.[match] | (string: string) => RegExpMatchArray | - |
Returns
RegExpMatchArray
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:239
matchAll
▸ matchAll(regexp): IterableIterator<RegExpMatchArray>
Matches a string with a regular expression, and returns an iterable of matches
containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
IterableIterator<RegExpMatchArray>
Inherited from
Defined in
node_modules/typescript/lib/lib.es2020.string.d.ts:29
normalize
▸ normalize(form): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form | "NFC" | "NFD" | "NFKC" | "NFKD" | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:432
▸ normalize(form?): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form? | string | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:440
padEnd
▸ padEnd(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the end (right) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:46
padStart
▸ padStart(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the start (left) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:33
repeat
▸ repeat(count): string
Returns a String value that is made from count copies appended together. If count is 0,
the empty string is returned.
Parameters
| Name | Type | Description |
|---|---|---|
count | number | number of copies to append |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:447
replace
▸ replace(searchValue, replaceValue): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replaceValue | string | A string containing the text to replace for every successful match of searchValue in this string. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:447
▸ replace(searchValue, replacer): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:454
▸ replace(searchValue, replaceValue): string
Replaces first match with string or all matches with RegExp.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A string or RegExp search value. |
searchValue.[replace] | (string: string, replaceValue: string) => string | - |
replaceValue | string | A string containing the text to replace for match. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:246
▸ replace(searchValue, replacer): string
Replaces text in a string, using an object that supports replacement within a string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A object can search for and replace matches within a string. |
searchValue.[replace] | (string: string, replacer: (substring: string, ...args: any[]) => string) => string | - |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:253
search
▸ search(regexp): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | The regular expression pattern and applicable flags. |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:460
▸ search(searcher): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
searcher | Object | An object which supports searching within a string. |
searcher.[search] | (string: string) => number | - |
Returns
number
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:259
slice
▸ slice(start?, end?): string
Returns a section of a string.
Parameters
| Name | Type | Description |
|---|---|---|
start? | number | The index to the beginning of the specified portion of stringObj. |
end? | number | The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:468
small
▸ small(): string
Returns a <small> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:490
split
▸ split(separator, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
separator | string | RegExp | A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:475
▸ split(splitter, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
splitter | Object | An object that can split a string. |
splitter.[split] | (string: string, limit?: number) => string[] | - |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:266
startsWith
▸ startsWith(searchString, position?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
position. Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
position? | number |
Returns
boolean
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:454
strike
▸ strike(): string
Returns a <strike> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:493
sub
▸ sub(): string
Returns a <sub> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:496
substr
▸ substr(from, length?): string
Gets a substring beginning at the specified location and having the specified length.
Parameters
| Name | Type | Description |
|---|---|---|
from | number | The starting position of the desired substring. The index of the first character in the string is zero. |
length? | number | The number of characters to include in the returned substring. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:509
substring
▸ substring(start, end?): string
Returns the substring at the specified location within a String object.
Parameters
| Name | Type | Description |
|---|---|---|
start | number | The zero-based index number indicating the beginning of the substring. |
end? | number | Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:483
sup
▸ sup(): string
Returns a <sup> HTML element
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:499
toLocaleLowerCase
▸ toLocaleLowerCase(locales?): string
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:489
toLocaleUpperCase
▸ toLocaleUpperCase(locales?): string
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:495
toLowerCase
▸ toLowerCase(): string
Converts all the alphabetic characters in a string to lowercase.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:486
toString
▸ toString(): string
Returns a string representation of a string.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:396
toUpperCase
▸ toUpperCase(): string
Converts all the alphabetic characters in a string to uppercase.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:492
trim
▸ trim(): string
Removes the leading and trailing white space and line terminator characters from a string.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:498
trimEnd
▸ trimEnd(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:23
▸ trimEnd(): string
Returns a copy with trailing whitespace removed.
Returns
string
Inherited from
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:159
trimLeft
▸ trimLeft(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:29
▸ trimLeft(): string
Removes whitespace from the left end of a string.
Returns
string
Inherited from
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:152
trimRight
▸ trimRight(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:32
▸ trimRight(): string
Removes whitespace from the right end of a string.
Returns
string
Inherited from
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:154
trimStart
▸ trimStart(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:26
▸ trimStart(): string
Returns a copy with leading whitespace removed.
Returns
string
Inherited from
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:157
valueOf
▸ valueOf(): string
Returns the primitive value of the specified object.
Returns
string
Inherited from
Defined in
node_modules/typescript/lib/lib.es5.d.ts:512
@ordergroove/smi-core / Modules / types / Notification
Interface: Notification
types.Notification
Table of contents
Properties
Properties
message
• message: "change_shipment_date_success" | "change_shipment_date_error" | "send_now_success" | "send_now_error" | "cancel_subscription_success" | "cancel_subscription_error" | "reactivate_subscription_success" | "reactivate_subscription_error" | "order_cancel_success" | "order_cancel_error" | "change_product_success" | "change_product_error" | "change_subscription_quantity_success" | "change_subscription_quantity_error" | "change_shipping_address_success" | "change_shipping_address_error" | "change_subscription_frequency_success" | "change_subscription_frequency_error" | "change_one_time_quantity_success" | "change_one_time_quantity_error" | "delete_subscription_item_success" | "delete_subscription_item_error" | "delete_one_time_item_success" | "delete_one_time_item_error" | "pause_subscription_success" | "pause_subscription_error"
A string describing the result of a completed action
Defined in
packages/smi-core/src/types/index.ts:594
target
• Optional target: Order | OrderItem | Subscription
The domain object upon which the action was applied
Defined in
packages/smi-core/src/types/index.ts:624
time
• time: number
The timestamp of the notification in milliseconds Date.now()
Defined in
packages/smi-core/src/types/index.ts:589
@ordergroove/smi-core / Modules / types / Order
Interface: Order
types.Order
Represents a customer orders.
Table of contents
Properties
- cancelled
- created
- customer
- discount_total
- extra_data
- generic_error_count
- locked
- merchant
- oos_free_shipping
- order_merchant_id
- payment
- place
- public_id
- rejected_message
- shipping_address
- shipping_total
- status
- sub_total
- tax_total
- total
- tries
- type
Properties
cancelled
• cancelled: date
The date that the order was cancelled.
Defined in
packages/smi-core/src/types/index.ts:209
created
• created: datetime
The date and time that the order was created by the Ordergroove system.
Defined in
packages/smi-core/src/types/index.ts:201
customer
• customer: string
This field represents your customer's id.
This id is used to map the customer between Ordergroove and your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:168
discount_total
• discount_total: string
The total discount amount being applied to the order.
Defined in
packages/smi-core/src/types/index.ts:192
extra_data
• extra_data: Object
This field is reserved to hold any meta data tied to the order.
Defined in
packages/smi-core/src/types/index.ts:235
generic_error_count
• generic_error_count: number
An internal counter to determine how many times an order failed to place due to a unknown error.
Defined in
packages/smi-core/src/types/index.ts:217
locked
• locked: boolean
This field will be set to true if the order has been locked and is no longer in an editable state.
Defined in
packages/smi-core/src/types/index.ts:239
merchant
• merchant: MerchantId
This id is used to identify you as the merchant.
Defined in
packages/smi-core/src/types/index.ts:155
oos_free_shipping
• oos_free_shipping: boolean
This field is used for internal purposes and can be ignored.
deprecated
Defined in
packages/smi-core/src/types/index.ts:244
order_merchant_id
• order_merchant_id: string
This field is updated after the order is successfully placed with the id of the resulting order in the ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:227
payment
• payment: uuid
This is the id of the payment record associated with the order.
Defined in
packages/smi-core/src/types/index.ts:172
place
• place: date
The date that the order will be placed into the ecommerce system for fulfillment.
Defined in
packages/smi-core/src/types/index.ts:205
public_id
• public_id: uuid
This is the order id.
Defined in
packages/smi-core/src/types/index.ts:151
rejected_message
• rejected_message: string
The reason that an order failed to place into the ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:231
shipping_address
• shipping_address: uuid
This is the id of the shipping address record associated with the order.
Defined in
packages/smi-core/src/types/index.ts:176
shipping_total
• shipping_total: string
Any shipping cost which was already applied to the order.
Defined in
packages/smi-core/src/types/index.ts:188
status
• status: OrderStatus
This field is used to determine the current status of the order.
List of possible order status which are important to note:
Defined in
packages/smi-core/src/types/index.ts:161
sub_total
• sub_total: string
This is the order sub total. Inclusive of discounts but does not include tax and shipping costs.
Defined in
packages/smi-core/src/types/index.ts:180
tax_total
• tax_total: string
Any tax which was already applied to the order. (Please note that Ordergroove typically does not calculate tax so this value will most likely be '0.00')
Defined in
packages/smi-core/src/types/index.ts:184
total
• total: string
The total cost of the order, inclusive of any applicable discounts, taxes and shipping costs.
Defined in
packages/smi-core/src/types/index.ts:196
tries
• tries: number
The amount of times that the Ordergroove system attempted to place this order into the ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:213
type
• type: OrderType
A order type. In most cases this value will be set to 1 to indicate that this is a subscription order.
Defined in
packages/smi-core/src/types/index.ts:222
@ordergroove/smi-core / Modules / types / OrderItem
Interface: OrderItem
types.OrderItem
This object represents an order items which make up the customer's current set of orders.
In order to help visualize this,
we have provided a sample json object in addition to the description of each item object key representation below:
{
order: 'order123abc',
offer: null,
subscription: 'sub123abc',
product: 'prod123abc',
components: [],
quantity: 1,
public_id: 'item123abc',
product_attribute: null,
extra_cost: '0',
one_time: false,
frozen: true,
first_placed: '..',
price: '0.00',
total_price: '0.00',
show_original_price: false
}
Table of contents
Properties
- components
- first_placed
- frozen
- offer
- one_time
- order
- price
- product
- public_id
- quantity
- show_original_price
- subscription
- total_price
Properties
components
• components: String[]
This is a list of product ids which make up this line item, if the line item happens to be a bundle product.
sample []
Defined in
packages/smi-core/src/types/index.ts:304
first_placed
• first_placed: date
Internal to Ordergroove
Defined in
packages/smi-core/src/types/index.ts:326
frozen
• frozen: boolean
Internal to Ordergroove
Defined in
packages/smi-core/src/types/index.ts:321
offer
• offer: uuid
This is the id of an offer which is tied to this line item.
Please note that this field is blank unless the item was added via the Instant Upsell feature.
Defined in
packages/smi-core/src/types/index.ts:287
one_time
• one_time: boolean
This field is set to false if an item is tied to a subscription. If the item was added as a one-time item via Instant Upsell, then the value will be true.
sample false
Defined in
packages/smi-core/src/types/index.ts:316
order
• order: uuid
This is the order id used as foreign key.
Defined in
packages/smi-core/src/types/index.ts:281
price
• price: String
Individual price of an item
Defined in
packages/smi-core/src/types/index.ts:331
product
• product: String
This is the product id which is associated with this item.
This is typically the same product id which you can use to find the product in your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:298
public_id
• public_id: uuid
This is the id of the item
Defined in
packages/smi-core/src/types/index.ts:276
quantity
• quantity: number
This is the quantity of this product that the customer will be receiving as part of their order.
sample 1
Defined in
packages/smi-core/src/types/index.ts:310
show_original_price
• show_original_price: boolean
This value is there to help determine if a pre-discount item price should be displayed in the SMI
Defined in
packages/smi-core/src/types/index.ts:341
subscription
• subscription: uuid
This is the id of the subscription that this line item is associated with.
Please note that this field might be blank if the item was added via the Instant Upsell feature.
Defined in
packages/smi-core/src/types/index.ts:293
total_price
• total_price: String
Price of an item after a discount has been applied to it.
Defined in
packages/smi-core/src/types/index.ts:336
@ordergroove/smi-core / Modules / types / Payment
Interface: Payment
types.Payment
Table of contents
Properties
- billing_address
- cc_exp_date
- cc_holder
- cc_number_ending
- cc_type
- created
- customer
- label
- last_updated
- live
- payment_method
- public_id
- token_id
Properties
billing_address
• billing_address: String
The id of the billing address tied to this billing record.
Defined in
packages/smi-core/src/types/index.ts:355
cc_exp_date
• cc_exp_date: String
The month and year of that the credit card expires.
Defined in
packages/smi-core/src/types/index.ts:383
cc_holder
• cc_holder: String
The name of the account holder.
Defined in
packages/smi-core/src/types/index.ts:375
cc_number_ending
• cc_number_ending: String
The last four digits of the credit card number.
Defined in
packages/smi-core/src/types/index.ts:359
cc_type
• cc_type: CcType
The credit cart issuer that this payment record is associated with
Defined in
packages/smi-core/src/types/index.ts:379
created
• created: String
The time stamp of when the payment record was created.
Defined in
packages/smi-core/src/types/index.ts:395
customer
• customer: String
The id of the customer tied to this payment record.
Defined in
packages/smi-core/src/types/index.ts:351
label
• label: String
A custom label for the address if one exists.
Defined in
packages/smi-core/src/types/index.ts:367
last_updated
• last_updated: String
The time stamp of when the payment record was last updated.
Defined in
packages/smi-core/src/types/index.ts:399
live
• live: boolean
Determines if this payment record is currently tied to an upcoming order or subscription.
Defined in
packages/smi-core/src/types/index.ts:391
payment_method
• payment_method: PaymentMethod
The payment method tied to this payment record.
Defined in
packages/smi-core/src/types/index.ts:387
public_id
• public_id: String
The id of the payment record.
Defined in
packages/smi-core/src/types/index.ts:363
token_id
• token_id: String
The payment token id that is stored in the ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:371
@ordergroove/smi-core / Modules / types / Product
Interface: Product
types.Product
Each product in the object above contains the following keys
Table of contents
Properties
- autoship_by_default
- autoship_enabled
- created
- detail_url
- dicontinued
- external_product_id
- extra_data
- groups
- image_url
- incentive_group
- last_update
- live
- merchant
- name
- price
- product_type
- sku
Properties
autoship_by_default
• autoship_by_default: boolean
If this field is set to true, then the default choice for a customer when
they are browsing the product on a product detail page will be to subscribe to this product.
Defined in
packages/smi-core/src/types/index.ts:794
autoship_enabled
• autoship_enabled: boolean
This field determines if a product is currently marked as eligible for
subscription. If this field is marked is false then visitors on your
website will not be able to create new subscriptions tied to this product.
Defined in
packages/smi-core/src/types/index.ts:753
created
• created: datetime
The time stamp of when the product was first created in our system.
Defined in
packages/smi-core/src/types/index.ts:758
detail_url
• detail_url: String
The url of the product detail page. Please note that this field is localized so
the value may be different, depending on the currently active website locale.
Defined in
packages/smi-core/src/types/index.ts:736
dicontinued
• dicontinued: boolean
Determines if the product has been discontinued.
Defined in
packages/smi-core/src/types/index.ts:773
external_product_id
• external_product_id: String
The id of the product. This should be the same id that you use to identify
products in your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:742
extra_data
• extra_data: ProductExtraData
This field is reserved to hold any meta data tied to the product.
A common data element which can be found here would be the localization of product name, image and url.
Defined in
packages/smi-core/src/types/index.ts:779
groups
• groups: ProductGroup[]
This will contain all of the groups that a product currently belongs to.
There are some complex use-cases within the Ordergroove system like sku
swap that make use of this field.
Defined in
packages/smi-core/src/types/index.ts:717
image_url
• image_url: String
The url of the product image. Please note that this field is localized so the
value may be different, depending on the currently active website locale.
Defined in
packages/smi-core/src/types/index.ts:731
incentive_group
• Optional incentive_group: any[]
Any custom incentive group that this product may belong to.
Defined in
packages/smi-core/src/types/index.ts:784
last_update
• last_update: String
The time stamp of when the product was lasted updated in our system.
Defined in
packages/smi-core/src/types/index.ts:763
live
• live: boolean
Determines if the product is currently in-stock in your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:768
merchant
• merchant: MerchantId
This id is used to identify you as the merchant.
Defined in
packages/smi-core/src/types/index.ts:711
name
• name: String
The name of the product. Please note that this field is localized so the value
may be different, depending on the currently active website locale.
Defined in
packages/smi-core/src/types/index.ts:722
price
• price: String
The base price of the item as it appears in your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:726
product_type
• product_type: "standard" | "bundle"
This field will return 'standard' for regular products and 'bundle' for products that contain other product components.
Defined in
packages/smi-core/src/types/index.ts:788
sku
• sku: String
The sku id of the product.
Defined in
packages/smi-core/src/types/index.ts:747
@ordergroove/smi-core / Modules / types / ProductExtraData
Interface: ProductExtraData
types.ProductExtraData
Type that described the localized properties of a product
{
i18n_display: {
'fr-CA': {
name: 'telephone de cell',
image_url: 'https://m.media-amazon.com/images/I/51o-rBDk5IL._SR500,500_.jpg',
detail_url: 'http://www.walmart.ca/fr/ip/vfi-de-sport-de-rame/6000163069962'
}
}
}
Indexable
▪ [key: string]: any
This object accepts an arbitrary key-value pairs
Table of contents
Properties
Properties
i18n_display
• i18n_display: Object
Index signature
▪ [key: string]: { detail_url: string ; image_url: string ; name: string }
Locale name as a key
Defined in
packages/smi-core/src/types/index.ts:680
@ordergroove/smi-core / Modules / types / ProductGroup
Interface: ProductGroup
types.ProductGroup
Table of contents
Properties
Properties
group_type
• group_type: String
This will tell ordergroove treat this group as special like sku swap or eligibility
Defined in
packages/smi-core/src/types/index.ts:657
name
• name: String
Human readable group name
Defined in
packages/smi-core/src/types/index.ts:661
@ordergroove/smi-core / Modules / types / ProductId
Interface: ProductId
types.ProductId
String representaion of product ID
example prod123abc
Hierarchy
-
String↳
ProductId
Table of contents
Properties
Methods
- [iterator]
- anchor
- big
- blink
- bold
- charAt
- charCodeAt
- codePointAt
- concat
- endsWith
- fixed
- fontcolor
- fontsize
- includes
- indexOf
- italics
- lastIndexOf
- link
- localeCompare
- match
- matchAll
- normalize
- padEnd
- padStart
- repeat
- replace
- search
- slice
- small
- split
- startsWith
- strike
- sub
- substr
- substring
- sup
- toLocaleLowerCase
- toLocaleUpperCase
- toLowerCase
- toString
- toUpperCase
- trim
- trimEnd
- trimLeft
- trimRight
- trimStart
- valueOf
Properties
length
• Readonly length: number
Returns the length of a String object.
Inherited from
String.length
Defined in
node_modules/typescript/lib/lib.es5.d.ts:501
Methods
[iterator]
▸ [iterator](): IterableIterator<string>
Iterator
Returns
IterableIterator<string>
Inherited from
String.__@iterator@79
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:247
anchor
▸ anchor(name): string
Returns an <a> HTML anchor element and sets the name attribute to the text value
Parameters
| Name | Type |
|---|---|
name | string |
Returns
string
Inherited from
String.anchor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:460
big
▸ big(): string
Returns a <big> HTML element
Returns
string
Inherited from
String.big
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:463
blink
▸ blink(): string
Returns a <blink> HTML element
Returns
string
Inherited from
String.blink
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:466
bold
▸ bold(): string
Returns a <b> HTML element
Returns
string
Inherited from
String.bold
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:469
charAt
▸ charAt(pos): string
Returns the character at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
pos | number | The zero-based index of the desired character. |
Returns
string
Inherited from
String.charAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:402
charCodeAt
▸ charCodeAt(index): number
Returns the Unicode value of the character at the specified location.
Parameters
| Name | Type | Description |
|---|---|---|
index | number | The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. |
Returns
number
Inherited from
String.charCodeAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:408
codePointAt
▸ codePointAt(pos): number
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
value of the UTF-16 encoded code point starting at the string element at position pos in
the String resulting from converting this object to a String.
If there is no element at that position, the result is undefined.
If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
| Name | Type |
|---|---|
pos | number |
Returns
number
Inherited from
String.codePointAt
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:408
concat
▸ concat(...strings): string
Returns a string that contains the concatenation of two or more strings.
Parameters
| Name | Type | Description |
|---|---|---|
...strings | string[] | The strings to append to the end of the string. |
Returns
string
Inherited from
String.concat
Defined in
node_modules/typescript/lib/lib.es5.d.ts:414
endsWith
▸ endsWith(searchString, endPosition?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
endPosition – length(this). Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
endPosition? | number |
Returns
boolean
Inherited from
String.endsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:424
fixed
▸ fixed(): string
Returns a <tt> HTML element
Returns
string
Inherited from
String.fixed
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:472
fontcolor
▸ fontcolor(color): string
Returns a <font> HTML element and sets the color attribute value
Parameters
| Name | Type |
|---|---|
color | string |
Returns
string
Inherited from
String.fontcolor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:475
fontsize
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | number |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:478
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | string |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:481
includes
▸ includes(searchString, position?): boolean
Returns true if searchString appears as a substring of the result of converting this
object to a String, at one or more positions that are
greater than or equal to position; otherwise, returns false.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | search string |
position? | number | If position is undefined, 0 is assumed, so as to search all of the String. |
Returns
boolean
Inherited from
String.includes
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:417
indexOf
▸ indexOf(searchString, position?): number
Returns the position of the first occurrence of a substring.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for in the string |
position? | number | The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. |
Returns
number
Inherited from
String.indexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:421
italics
▸ italics(): string
Returns an <i> HTML element
Returns
string
Inherited from
String.italics
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:484
lastIndexOf
▸ lastIndexOf(searchString, position?): number
Returns the last occurrence of a substring in the string.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for. |
position? | number | The index at which to begin searching. If omitted, the search begins at the end of the string. |
Returns
number
Inherited from
String.lastIndexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:428
link
▸ link(url): string
Returns an <a> HTML element and sets the href attribute value
Parameters
| Name | Type |
|---|---|
url | string |
Returns
string
Inherited from
String.link
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:487
localeCompare
▸ localeCompare(that): number
Determines whether two strings are equivalent in the current locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:434
▸ localeCompare(that, locales?, options?): number
Determines whether two strings are equivalent in the current or specified locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
locales? | string | string[] | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
options? | CollatorOptions | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:4403
match
▸ match(regexp): RegExpMatchArray
Matches a string with a regular expression, and returns an array containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es5.d.ts:440
▸ match(matcher): RegExpMatchArray
Matches a string or an object that supports being matched against, and returns an array
containing the results of that search, or null if no matches are found.
Parameters
| Name | Type | Description |
|---|---|---|
matcher | Object | An object that supports being matched against. |
matcher.[match] | (string: string) => RegExpMatchArray | - |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:239
matchAll
▸ matchAll(regexp): IterableIterator<RegExpMatchArray>
Matches a string with a regular expression, and returns an iterable of matches
containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
IterableIterator<RegExpMatchArray>
Inherited from
String.matchAll
Defined in
node_modules/typescript/lib/lib.es2020.string.d.ts:29
normalize
▸ normalize(form): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form | "NFC" | "NFD" | "NFKC" | "NFKD" | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:432
▸ normalize(form?): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form? | string | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:440
padEnd
▸ padEnd(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the end (right) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padEnd
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:46
padStart
▸ padStart(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the start (left) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padStart
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:33
repeat
▸ repeat(count): string
Returns a String value that is made from count copies appended together. If count is 0,
the empty string is returned.
Parameters
| Name | Type | Description |
|---|---|---|
count | number | number of copies to append |
Returns
string
Inherited from
String.repeat
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:447
replace
▸ replace(searchValue, replaceValue): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replaceValue | string | A string containing the text to replace for every successful match of searchValue in this string. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:447
▸ replace(searchValue, replacer): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:454
▸ replace(searchValue, replaceValue): string
Replaces first match with string or all matches with RegExp.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A string or RegExp search value. |
searchValue.[replace] | (string: string, replaceValue: string) => string | - |
replaceValue | string | A string containing the text to replace for match. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:246
▸ replace(searchValue, replacer): string
Replaces text in a string, using an object that supports replacement within a string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A object can search for and replace matches within a string. |
searchValue.[replace] | (string: string, replacer: (substring: string, ...args: any[]) => string) => string | - |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:253
search
▸ search(regexp): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | The regular expression pattern and applicable flags. |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es5.d.ts:460
▸ search(searcher): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
searcher | Object | An object which supports searching within a string. |
searcher.[search] | (string: string) => number | - |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:259
slice
▸ slice(start?, end?): string
Returns a section of a string.
Parameters
| Name | Type | Description |
|---|---|---|
start? | number | The index to the beginning of the specified portion of stringObj. |
end? | number | The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj. |
Returns
string
Inherited from
String.slice
Defined in
node_modules/typescript/lib/lib.es5.d.ts:468
small
▸ small(): string
Returns a <small> HTML element
Returns
string
Inherited from
String.small
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:490
split
▸ split(separator, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
separator | string | RegExp | A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es5.d.ts:475
▸ split(splitter, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
splitter | Object | An object that can split a string. |
splitter.[split] | (string: string, limit?: number) => string[] | - |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:266
startsWith
▸ startsWith(searchString, position?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
position. Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
position? | number |
Returns
boolean
Inherited from
String.startsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:454
strike
▸ strike(): string
Returns a <strike> HTML element
Returns
string
Inherited from
String.strike
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:493
sub
▸ sub(): string
Returns a <sub> HTML element
Returns
string
Inherited from
String.sub
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:496
substr
▸ substr(from, length?): string
Gets a substring beginning at the specified location and having the specified length.
Parameters
| Name | Type | Description |
|---|---|---|
from | number | The starting position of the desired substring. The index of the first character in the string is zero. |
length? | number | The number of characters to include in the returned substring. |
Returns
string
Inherited from
String.substr
Defined in
node_modules/typescript/lib/lib.es5.d.ts:509
substring
▸ substring(start, end?): string
Returns the substring at the specified location within a String object.
Parameters
| Name | Type | Description |
|---|---|---|
start | number | The zero-based index number indicating the beginning of the substring. |
end? | number | Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. |
Returns
string
Inherited from
String.substring
Defined in
node_modules/typescript/lib/lib.es5.d.ts:483
sup
▸ sup(): string
Returns a <sup> HTML element
Returns
string
Inherited from
String.sup
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:499
toLocaleLowerCase
▸ toLocaleLowerCase(locales?): string
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:489
toLocaleUpperCase
▸ toLocaleUpperCase(locales?): string
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:495
toLowerCase
▸ toLowerCase(): string
Converts all the alphabetic characters in a string to lowercase.
Returns
string
Inherited from
String.toLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:486
toString
▸ toString(): string
Returns a string representation of a string.
Returns
string
Inherited from
String.toString
Defined in
node_modules/typescript/lib/lib.es5.d.ts:396
toUpperCase
▸ toUpperCase(): string
Converts all the alphabetic characters in a string to uppercase.
Returns
string
Inherited from
String.toUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:492
trim
▸ trim(): string
Removes the leading and trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trim
Defined in
node_modules/typescript/lib/lib.es5.d.ts:498
trimEnd
▸ trimEnd(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimEnd
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:23
▸ trimEnd(): string
Returns a copy with trailing whitespace removed.
Returns
string
Inherited from
String.trimEnd
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:159
trimLeft
▸ trimLeft(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimLeft
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:29
▸ trimLeft(): string
Removes whitespace from the left end of a string.
Returns
string
Inherited from
String.trimLeft
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:152
trimRight
▸ trimRight(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimRight
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:32
▸ trimRight(): string
Removes whitespace from the right end of a string.
Returns
string
Inherited from
String.trimRight
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:154
trimStart
▸ trimStart(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimStart
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:26
▸ trimStart(): string
Returns a copy with leading whitespace removed.
Returns
string
Inherited from
String.trimStart
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:157
valueOf
▸ valueOf(): string
Returns the primitive value of the specified object.
Returns
string
Inherited from
String.valueOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:512
@ordergroove/smi-core / Modules / types / SmiState
Interface: SmiState
types.SmiState
Table of contents
Properties
- addresses
- auth_url
- customer
- environment
- global_error
- loading
- locale
- merchant_id
- notifications
- order_items
- orders
- payments
- products
- subscriptions
Properties
addresses
• addresses: Address[]
Defined in
packages/smi-core/src/types/index.ts:832
auth_url
• auth_url: string
Defined in
packages/smi-core/src/types/index.ts:821
customer
• customer: Customer
This object represents the current customer who is logged into your site that is viewing the SMI
Defined in
packages/smi-core/src/types/index.ts:813
environment
• environment: Environment
Defined in
packages/smi-core/src/types/index.ts:823
global_error
• global_error: boolean
Defined in
packages/smi-core/src/types/index.ts:837
loading
• loading: boolean
Defined in
packages/smi-core/src/types/index.ts:836
locale
• locale: string
This value will represent the current locale being set on the website.
The value is pulled form the lang attribute of the html node.
For example
default en
Defined in
packages/smi-core/src/types/index.ts:808
merchant_id
• merchant_id: MerchantId
This value is used to identify you as the merchant and is the same value
that you would find under the customer.public_id key above.
Defined in
packages/smi-core/src/types/index.ts:819
notifications
• notifications: Notification[]
Defined in
packages/smi-core/src/types/index.ts:835
order_items
• order_items: OrderItem[]
Defined in
packages/smi-core/src/types/index.ts:830
orders
• orders: Order[]
This array represents the list of all of the customer's orders.
Defined in
packages/smi-core/src/types/index.ts:828
payments
• payments: Payment[]
Defined in
packages/smi-core/src/types/index.ts:831
products
• products: Product[]
Defined in
packages/smi-core/src/types/index.ts:833
subscriptions
• subscriptions: Subscription[]
Defined in
packages/smi-core/src/types/index.ts:834
@ordergroove/smi-core / Modules / types / SmiStore
Interface: SmiStore
types.SmiStore
Table of contents
Methods
Methods
dispatch
▸ dispatch(action): undefined
Parameters
| Name | Type |
|---|---|
action | Action |
Returns
undefined
Defined in
packages/smi-core/src/types/index.ts:853
getState
▸ getState(): SmiState
Returns
Defined in
packages/smi-core/src/types/index.ts:852
subscribe
▸ subscribe(listener): undefined
Parameters
| Name | Type |
|---|---|
listener | CallableFunction |
Returns
undefined
Defined in
packages/smi-core/src/types/index.ts:851
@ordergroove/smi-core / Modules / types / Subscription
Interface: Subscription
types.Subscription
Object that represents a subscription and contains the following fields:
Table of contents
Properties
- cancel_reason
- cancel_reason_code
- cancelled
- components
- created
- customer
- every
- every_period
- extra_data
- frequency_days
- live
- merchant
- merchant_order_id
- payment
- price
- product
- public_id
- quantity
- raw_subscription_type
- reminder_days
- session_id
- shipping_address
- start_date
- updated
Properties
cancel_reason
• cancel_reason: String
This is the reason that the consumer gave for why they decided to cancel their subscription.
Defined in
packages/smi-core/src/types/index.ts:556
cancel_reason_code
• cancel_reason_code: Number
Code for the cancel reason. You can ignore this field
Defined in
packages/smi-core/src/types/index.ts:560
cancelled
• cancelled: date
This is the date when the subscription was cancelled.
Defined in
packages/smi-core/src/types/index.ts:552
components
• components: ProductId[]
This is a list of product ids which make up this line item, if the line item happens to be a bundle product.
Defined in
packages/smi-core/src/types/index.ts:511
created
• created: date
The time stamp of when this subscription record was created.
Defined in
packages/smi-core/src/types/index.ts:572
customer
• customer: String
This field represents your customer's id.
This id is used to map the customer between Ordergroove and your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:482
every
• every: Number
This number indicats a multiplier for a unit of time
Defined in
packages/smi-core/src/types/index.ts:540
every_period
• every_period: EveryPeriod
This number indicats a unit of time
Defined in
packages/smi-core/src/types/index.ts:544
extra_data
• extra_data: Object
This field is reserved to hold any meta data tied to the subscription.
Defined in
packages/smi-core/src/types/index.ts:515
frequency_days
• frequency_days: Number
The amount of days that a customer will go before their next shipment is placed
Defined in
packages/smi-core/src/types/index.ts:531
live
• live: boolean
Determines if this subscription is still active. Once a customer decides to cancel their subscription, this flag will be set to false.
Defined in
packages/smi-core/src/types/index.ts:580
merchant
• merchant: MerchantId
This id is used to identify you as the merchant.
Defined in
packages/smi-core/src/types/index.ts:486
merchant_order_id
• merchant_order_id: String
This is the id of the order in your ecommerce system which resulted in the creation of this subscription.
Defined in
packages/smi-core/src/types/index.ts:568
payment
• payment: uuid
This is the id of the payment record associated with the order.
Defined in
packages/smi-core/src/types/index.ts:495
price
• price: String
This will indicate a subscription price only in cases where a customer is locked into a specific price. In most cases this value will be null and can be ignored.
Defined in
packages/smi-core/src/types/index.ts:527
product
• product: String
This is the product id which is associated with this item.
This is typically the same product id which you can use to find the product in your ecommerce system.
Defined in
packages/smi-core/src/types/index.ts:491
public_id
• public_id: String
This is the id of the subscription.
Defined in
packages/smi-core/src/types/index.ts:519
quantity
• quantity: Number
This is the quantity of this product that the customer will be receiving.
Defined in
packages/smi-core/src/types/index.ts:523
raw_subscription_type
• raw_subscription_type: String
This field identifies the subscription based on a specific type. List of possible subscription types which are important to note:
replenishment - Subscription created via a customer's checkout
IU replenishment - Subscription created via the Instant Upsell feature
CSA replenishment - Subscriptions created via the customer service tool in RC3.
Defined in
packages/smi-core/src/types/index.ts:507
reminder_days
• reminder_days: Number
This number will indicate how far ahead do we want to send the order reminder to the customer.
For example a value of 10 means that we will send the order reminder email 10 days before this order is actually placed.
Defined in
packages/smi-core/src/types/index.ts:536
session_id
• session_id: String
The session id which was assigned to the customer during their checkout.
Defined in
packages/smi-core/src/types/index.ts:564
shipping_address
• shipping_address: uuid
This is the id of the shipping address record associated with the order.
Defined in
packages/smi-core/src/types/index.ts:499
start_date
• start_date: date
This is the date when the subscription was first started.
Defined in
packages/smi-core/src/types/index.ts:548
updated
• updated: date
The time stamp of when this subscription record was last updated
Defined in
packages/smi-core/src/types/index.ts:576
@ordergroove/smi-core / Modules / types / date
Interface: date
types.date
String representation of date in ordergroove.
example 2021-04-04
Hierarchy
-
String↳
date
Table of contents
Properties
Methods
- [iterator]
- anchor
- big
- blink
- bold
- charAt
- charCodeAt
- codePointAt
- concat
- endsWith
- fixed
- fontcolor
- fontsize
- includes
- indexOf
- italics
- lastIndexOf
- link
- localeCompare
- match
- matchAll
- normalize
- padEnd
- padStart
- repeat
- replace
- search
- slice
- small
- split
- startsWith
- strike
- sub
- substr
- substring
- sup
- toLocaleLowerCase
- toLocaleUpperCase
- toLowerCase
- toString
- toUpperCase
- trim
- trimEnd
- trimLeft
- trimRight
- trimStart
- valueOf
Properties
length
• Readonly length: number
Returns the length of a String object.
Inherited from
String.length
Defined in
node_modules/typescript/lib/lib.es5.d.ts:501
Methods
[iterator]
▸ [iterator](): IterableIterator<string>
Iterator
Returns
IterableIterator<string>
Inherited from
String.__@iterator@79
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:247
anchor
▸ anchor(name): string
Returns an <a> HTML anchor element and sets the name attribute to the text value
Parameters
| Name | Type |
|---|---|
name | string |
Returns
string
Inherited from
String.anchor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:460
big
▸ big(): string
Returns a <big> HTML element
Returns
string
Inherited from
String.big
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:463
blink
▸ blink(): string
Returns a <blink> HTML element
Returns
string
Inherited from
String.blink
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:466
bold
▸ bold(): string
Returns a <b> HTML element
Returns
string
Inherited from
String.bold
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:469
charAt
▸ charAt(pos): string
Returns the character at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
pos | number | The zero-based index of the desired character. |
Returns
string
Inherited from
String.charAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:402
charCodeAt
▸ charCodeAt(index): number
Returns the Unicode value of the character at the specified location.
Parameters
| Name | Type | Description |
|---|---|---|
index | number | The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. |
Returns
number
Inherited from
String.charCodeAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:408
codePointAt
▸ codePointAt(pos): number
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
value of the UTF-16 encoded code point starting at the string element at position pos in
the String resulting from converting this object to a String.
If there is no element at that position, the result is undefined.
If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
| Name | Type |
|---|---|
pos | number |
Returns
number
Inherited from
String.codePointAt
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:408
concat
▸ concat(...strings): string
Returns a string that contains the concatenation of two or more strings.
Parameters
| Name | Type | Description |
|---|---|---|
...strings | string[] | The strings to append to the end of the string. |
Returns
string
Inherited from
String.concat
Defined in
node_modules/typescript/lib/lib.es5.d.ts:414
endsWith
▸ endsWith(searchString, endPosition?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
endPosition – length(this). Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
endPosition? | number |
Returns
boolean
Inherited from
String.endsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:424
fixed
▸ fixed(): string
Returns a <tt> HTML element
Returns
string
Inherited from
String.fixed
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:472
fontcolor
▸ fontcolor(color): string
Returns a <font> HTML element and sets the color attribute value
Parameters
| Name | Type |
|---|---|
color | string |
Returns
string
Inherited from
String.fontcolor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:475
fontsize
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | number |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:478
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | string |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:481
includes
▸ includes(searchString, position?): boolean
Returns true if searchString appears as a substring of the result of converting this
object to a String, at one or more positions that are
greater than or equal to position; otherwise, returns false.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | search string |
position? | number | If position is undefined, 0 is assumed, so as to search all of the String. |
Returns
boolean
Inherited from
String.includes
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:417
indexOf
▸ indexOf(searchString, position?): number
Returns the position of the first occurrence of a substring.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for in the string |
position? | number | The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. |
Returns
number
Inherited from
String.indexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:421
italics
▸ italics(): string
Returns an <i> HTML element
Returns
string
Inherited from
String.italics
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:484
lastIndexOf
▸ lastIndexOf(searchString, position?): number
Returns the last occurrence of a substring in the string.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for. |
position? | number | The index at which to begin searching. If omitted, the search begins at the end of the string. |
Returns
number
Inherited from
String.lastIndexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:428
link
▸ link(url): string
Returns an <a> HTML element and sets the href attribute value
Parameters
| Name | Type |
|---|---|
url | string |
Returns
string
Inherited from
String.link
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:487
localeCompare
▸ localeCompare(that): number
Determines whether two strings are equivalent in the current locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:434
▸ localeCompare(that, locales?, options?): number
Determines whether two strings are equivalent in the current or specified locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
locales? | string | string[] | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
options? | CollatorOptions | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:4403
match
▸ match(regexp): RegExpMatchArray
Matches a string with a regular expression, and returns an array containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es5.d.ts:440
▸ match(matcher): RegExpMatchArray
Matches a string or an object that supports being matched against, and returns an array
containing the results of that search, or null if no matches are found.
Parameters
| Name | Type | Description |
|---|---|---|
matcher | Object | An object that supports being matched against. |
matcher.[match] | (string: string) => RegExpMatchArray | - |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:239
matchAll
▸ matchAll(regexp): IterableIterator<RegExpMatchArray>
Matches a string with a regular expression, and returns an iterable of matches
containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
IterableIterator<RegExpMatchArray>
Inherited from
String.matchAll
Defined in
node_modules/typescript/lib/lib.es2020.string.d.ts:29
normalize
▸ normalize(form): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form | "NFC" | "NFD" | "NFKC" | "NFKD" | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:432
▸ normalize(form?): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form? | string | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:440
padEnd
▸ padEnd(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the end (right) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padEnd
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:46
padStart
▸ padStart(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the start (left) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padStart
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:33
repeat
▸ repeat(count): string
Returns a String value that is made from count copies appended together. If count is 0,
the empty string is returned.
Parameters
| Name | Type | Description |
|---|---|---|
count | number | number of copies to append |
Returns
string
Inherited from
String.repeat
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:447
replace
▸ replace(searchValue, replaceValue): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replaceValue | string | A string containing the text to replace for every successful match of searchValue in this string. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:447
▸ replace(searchValue, replacer): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:454
▸ replace(searchValue, replaceValue): string
Replaces first match with string or all matches with RegExp.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A string or RegExp search value. |
searchValue.[replace] | (string: string, replaceValue: string) => string | - |
replaceValue | string | A string containing the text to replace for match. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:246
▸ replace(searchValue, replacer): string
Replaces text in a string, using an object that supports replacement within a string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A object can search for and replace matches within a string. |
searchValue.[replace] | (string: string, replacer: (substring: string, ...args: any[]) => string) => string | - |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:253
search
▸ search(regexp): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | The regular expression pattern and applicable flags. |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es5.d.ts:460
▸ search(searcher): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
searcher | Object | An object which supports searching within a string. |
searcher.[search] | (string: string) => number | - |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:259
slice
▸ slice(start?, end?): string
Returns a section of a string.
Parameters
| Name | Type | Description |
|---|---|---|
start? | number | The index to the beginning of the specified portion of stringObj. |
end? | number | The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj. |
Returns
string
Inherited from
String.slice
Defined in
node_modules/typescript/lib/lib.es5.d.ts:468
small
▸ small(): string
Returns a <small> HTML element
Returns
string
Inherited from
String.small
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:490
split
▸ split(separator, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
separator | string | RegExp | A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es5.d.ts:475
▸ split(splitter, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
splitter | Object | An object that can split a string. |
splitter.[split] | (string: string, limit?: number) => string[] | - |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:266
startsWith
▸ startsWith(searchString, position?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
position. Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
position? | number |
Returns
boolean
Inherited from
String.startsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:454
strike
▸ strike(): string
Returns a <strike> HTML element
Returns
string
Inherited from
String.strike
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:493
sub
▸ sub(): string
Returns a <sub> HTML element
Returns
string
Inherited from
String.sub
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:496
substr
▸ substr(from, length?): string
Gets a substring beginning at the specified location and having the specified length.
Parameters
| Name | Type | Description |
|---|---|---|
from | number | The starting position of the desired substring. The index of the first character in the string is zero. |
length? | number | The number of characters to include in the returned substring. |
Returns
string
Inherited from
String.substr
Defined in
node_modules/typescript/lib/lib.es5.d.ts:509
substring
▸ substring(start, end?): string
Returns the substring at the specified location within a String object.
Parameters
| Name | Type | Description |
|---|---|---|
start | number | The zero-based index number indicating the beginning of the substring. |
end? | number | Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. |
Returns
string
Inherited from
String.substring
Defined in
node_modules/typescript/lib/lib.es5.d.ts:483
sup
▸ sup(): string
Returns a <sup> HTML element
Returns
string
Inherited from
String.sup
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:499
toLocaleLowerCase
▸ toLocaleLowerCase(locales?): string
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:489
toLocaleUpperCase
▸ toLocaleUpperCase(locales?): string
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:495
toLowerCase
▸ toLowerCase(): string
Converts all the alphabetic characters in a string to lowercase.
Returns
string
Inherited from
String.toLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:486
toString
▸ toString(): string
Returns a string representation of a string.
Returns
string
Inherited from
String.toString
Defined in
node_modules/typescript/lib/lib.es5.d.ts:396
toUpperCase
▸ toUpperCase(): string
Converts all the alphabetic characters in a string to uppercase.
Returns
string
Inherited from
String.toUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:492
trim
▸ trim(): string
Removes the leading and trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trim
Defined in
node_modules/typescript/lib/lib.es5.d.ts:498
trimEnd
▸ trimEnd(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimEnd
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:23
▸ trimEnd(): string
Returns a copy with trailing whitespace removed.
Returns
string
Inherited from
String.trimEnd
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:159
trimLeft
▸ trimLeft(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimLeft
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:29
▸ trimLeft(): string
Removes whitespace from the left end of a string.
Returns
string
Inherited from
String.trimLeft
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:152
trimRight
▸ trimRight(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimRight
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:32
▸ trimRight(): string
Removes whitespace from the right end of a string.
Returns
string
Inherited from
String.trimRight
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:154
trimStart
▸ trimStart(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimStart
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:26
▸ trimStart(): string
Returns a copy with leading whitespace removed.
Returns
string
Inherited from
String.trimStart
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:157
valueOf
▸ valueOf(): string
Returns the primitive value of the specified object.
Returns
string
Inherited from
String.valueOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:512
@ordergroove/smi-core / Modules / types / datetime
Interface: datetime
types.datetime
String representation of date and time in ordergroove.
example 2021-04-04 09:19:52
Hierarchy
-
String↳
datetime
Table of contents
Properties
Methods
- [iterator]
- anchor
- big
- blink
- bold
- charAt
- charCodeAt
- codePointAt
- concat
- endsWith
- fixed
- fontcolor
- fontsize
- includes
- indexOf
- italics
- lastIndexOf
- link
- localeCompare
- match
- matchAll
- normalize
- padEnd
- padStart
- repeat
- replace
- search
- slice
- small
- split
- startsWith
- strike
- sub
- substr
- substring
- sup
- toLocaleLowerCase
- toLocaleUpperCase
- toLowerCase
- toString
- toUpperCase
- trim
- trimEnd
- trimLeft
- trimRight
- trimStart
- valueOf
Properties
length
• Readonly length: number
Returns the length of a String object.
Inherited from
String.length
Defined in
node_modules/typescript/lib/lib.es5.d.ts:501
Methods
[iterator]
▸ [iterator](): IterableIterator<string>
Iterator
Returns
IterableIterator<string>
Inherited from
String.__@iterator@79
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:247
anchor
▸ anchor(name): string
Returns an <a> HTML anchor element and sets the name attribute to the text value
Parameters
| Name | Type |
|---|---|
name | string |
Returns
string
Inherited from
String.anchor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:460
big
▸ big(): string
Returns a <big> HTML element
Returns
string
Inherited from
String.big
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:463
blink
▸ blink(): string
Returns a <blink> HTML element
Returns
string
Inherited from
String.blink
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:466
bold
▸ bold(): string
Returns a <b> HTML element
Returns
string
Inherited from
String.bold
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:469
charAt
▸ charAt(pos): string
Returns the character at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
pos | number | The zero-based index of the desired character. |
Returns
string
Inherited from
String.charAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:402
charCodeAt
▸ charCodeAt(index): number
Returns the Unicode value of the character at the specified location.
Parameters
| Name | Type | Description |
|---|---|---|
index | number | The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. |
Returns
number
Inherited from
String.charCodeAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:408
codePointAt
▸ codePointAt(pos): number
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
value of the UTF-16 encoded code point starting at the string element at position pos in
the String resulting from converting this object to a String.
If there is no element at that position, the result is undefined.
If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
| Name | Type |
|---|---|
pos | number |
Returns
number
Inherited from
String.codePointAt
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:408
concat
▸ concat(...strings): string
Returns a string that contains the concatenation of two or more strings.
Parameters
| Name | Type | Description |
|---|---|---|
...strings | string[] | The strings to append to the end of the string. |
Returns
string
Inherited from
String.concat
Defined in
node_modules/typescript/lib/lib.es5.d.ts:414
endsWith
▸ endsWith(searchString, endPosition?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
endPosition – length(this). Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
endPosition? | number |
Returns
boolean
Inherited from
String.endsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:424
fixed
▸ fixed(): string
Returns a <tt> HTML element
Returns
string
Inherited from
String.fixed
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:472
fontcolor
▸ fontcolor(color): string
Returns a <font> HTML element and sets the color attribute value
Parameters
| Name | Type |
|---|---|
color | string |
Returns
string
Inherited from
String.fontcolor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:475
fontsize
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | number |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:478
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | string |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:481
includes
▸ includes(searchString, position?): boolean
Returns true if searchString appears as a substring of the result of converting this
object to a String, at one or more positions that are
greater than or equal to position; otherwise, returns false.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | search string |
position? | number | If position is undefined, 0 is assumed, so as to search all of the String. |
Returns
boolean
Inherited from
String.includes
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:417
indexOf
▸ indexOf(searchString, position?): number
Returns the position of the first occurrence of a substring.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for in the string |
position? | number | The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. |
Returns
number
Inherited from
String.indexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:421
italics
▸ italics(): string
Returns an <i> HTML element
Returns
string
Inherited from
String.italics
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:484
lastIndexOf
▸ lastIndexOf(searchString, position?): number
Returns the last occurrence of a substring in the string.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for. |
position? | number | The index at which to begin searching. If omitted, the search begins at the end of the string. |
Returns
number
Inherited from
String.lastIndexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:428
link
▸ link(url): string
Returns an <a> HTML element and sets the href attribute value
Parameters
| Name | Type |
|---|---|
url | string |
Returns
string
Inherited from
String.link
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:487
localeCompare
▸ localeCompare(that): number
Determines whether two strings are equivalent in the current locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:434
▸ localeCompare(that, locales?, options?): number
Determines whether two strings are equivalent in the current or specified locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
locales? | string | string[] | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
options? | CollatorOptions | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:4403
match
▸ match(regexp): RegExpMatchArray
Matches a string with a regular expression, and returns an array containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es5.d.ts:440
▸ match(matcher): RegExpMatchArray
Matches a string or an object that supports being matched against, and returns an array
containing the results of that search, or null if no matches are found.
Parameters
| Name | Type | Description |
|---|---|---|
matcher | Object | An object that supports being matched against. |
matcher.[match] | (string: string) => RegExpMatchArray | - |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:239
matchAll
▸ matchAll(regexp): IterableIterator<RegExpMatchArray>
Matches a string with a regular expression, and returns an iterable of matches
containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
IterableIterator<RegExpMatchArray>
Inherited from
String.matchAll
Defined in
node_modules/typescript/lib/lib.es2020.string.d.ts:29
normalize
▸ normalize(form): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form | "NFC" | "NFD" | "NFKC" | "NFKD" | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:432
▸ normalize(form?): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form? | string | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:440
padEnd
▸ padEnd(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the end (right) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padEnd
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:46
padStart
▸ padStart(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the start (left) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padStart
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:33
repeat
▸ repeat(count): string
Returns a String value that is made from count copies appended together. If count is 0,
the empty string is returned.
Parameters
| Name | Type | Description |
|---|---|---|
count | number | number of copies to append |
Returns
string
Inherited from
String.repeat
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:447
replace
▸ replace(searchValue, replaceValue): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replaceValue | string | A string containing the text to replace for every successful match of searchValue in this string. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:447
▸ replace(searchValue, replacer): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:454
▸ replace(searchValue, replaceValue): string
Replaces first match with string or all matches with RegExp.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A string or RegExp search value. |
searchValue.[replace] | (string: string, replaceValue: string) => string | - |
replaceValue | string | A string containing the text to replace for match. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:246
▸ replace(searchValue, replacer): string
Replaces text in a string, using an object that supports replacement within a string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A object can search for and replace matches within a string. |
searchValue.[replace] | (string: string, replacer: (substring: string, ...args: any[]) => string) => string | - |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:253
search
▸ search(regexp): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | The regular expression pattern and applicable flags. |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es5.d.ts:460
▸ search(searcher): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
searcher | Object | An object which supports searching within a string. |
searcher.[search] | (string: string) => number | - |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:259
slice
▸ slice(start?, end?): string
Returns a section of a string.
Parameters
| Name | Type | Description |
|---|---|---|
start? | number | The index to the beginning of the specified portion of stringObj. |
end? | number | The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj. |
Returns
string
Inherited from
String.slice
Defined in
node_modules/typescript/lib/lib.es5.d.ts:468
small
▸ small(): string
Returns a <small> HTML element
Returns
string
Inherited from
String.small
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:490
split
▸ split(separator, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
separator | string | RegExp | A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es5.d.ts:475
▸ split(splitter, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
splitter | Object | An object that can split a string. |
splitter.[split] | (string: string, limit?: number) => string[] | - |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:266
startsWith
▸ startsWith(searchString, position?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
position. Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
position? | number |
Returns
boolean
Inherited from
String.startsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:454
strike
▸ strike(): string
Returns a <strike> HTML element
Returns
string
Inherited from
String.strike
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:493
sub
▸ sub(): string
Returns a <sub> HTML element
Returns
string
Inherited from
String.sub
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:496
substr
▸ substr(from, length?): string
Gets a substring beginning at the specified location and having the specified length.
Parameters
| Name | Type | Description |
|---|---|---|
from | number | The starting position of the desired substring. The index of the first character in the string is zero. |
length? | number | The number of characters to include in the returned substring. |
Returns
string
Inherited from
String.substr
Defined in
node_modules/typescript/lib/lib.es5.d.ts:509
substring
▸ substring(start, end?): string
Returns the substring at the specified location within a String object.
Parameters
| Name | Type | Description |
|---|---|---|
start | number | The zero-based index number indicating the beginning of the substring. |
end? | number | Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. |
Returns
string
Inherited from
String.substring
Defined in
node_modules/typescript/lib/lib.es5.d.ts:483
sup
▸ sup(): string
Returns a <sup> HTML element
Returns
string
Inherited from
String.sup
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:499
toLocaleLowerCase
▸ toLocaleLowerCase(locales?): string
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:489
toLocaleUpperCase
▸ toLocaleUpperCase(locales?): string
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:495
toLowerCase
▸ toLowerCase(): string
Converts all the alphabetic characters in a string to lowercase.
Returns
string
Inherited from
String.toLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:486
toString
▸ toString(): string
Returns a string representation of a string.
Returns
string
Inherited from
String.toString
Defined in
node_modules/typescript/lib/lib.es5.d.ts:396
toUpperCase
▸ toUpperCase(): string
Converts all the alphabetic characters in a string to uppercase.
Returns
string
Inherited from
String.toUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:492
trim
▸ trim(): string
Removes the leading and trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trim
Defined in
node_modules/typescript/lib/lib.es5.d.ts:498
trimEnd
▸ trimEnd(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimEnd
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:23
▸ trimEnd(): string
Returns a copy with trailing whitespace removed.
Returns
string
Inherited from
String.trimEnd
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:159
trimLeft
▸ trimLeft(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimLeft
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:29
▸ trimLeft(): string
Removes whitespace from the left end of a string.
Returns
string
Inherited from
String.trimLeft
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:152
trimRight
▸ trimRight(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimRight
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:32
▸ trimRight(): string
Removes whitespace from the right end of a string.
Returns
string
Inherited from
String.trimRight
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:154
trimStart
▸ trimStart(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimStart
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:26
▸ trimStart(): string
Returns a copy with leading whitespace removed.
Returns
string
Inherited from
String.trimStart
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:157
valueOf
▸ valueOf(): string
Returns the primitive value of the specified object.
Returns
string
Inherited from
String.valueOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:512
@ordergroove/smi-core / Modules / types / uuid
Interface: uuid
types.uuid
It consists of 32 alphanumeric character hash
example d4ce4ebe635211e8bf29bc764e1107f2
Hierarchy
-
String↳
uuid↳↳
MerchantId
Table of contents
Properties
Methods
- [iterator]
- anchor
- big
- blink
- bold
- charAt
- charCodeAt
- codePointAt
- concat
- endsWith
- fixed
- fontcolor
- fontsize
- includes
- indexOf
- italics
- lastIndexOf
- link
- localeCompare
- match
- matchAll
- normalize
- padEnd
- padStart
- repeat
- replace
- search
- slice
- small
- split
- startsWith
- strike
- sub
- substr
- substring
- sup
- toLocaleLowerCase
- toLocaleUpperCase
- toLowerCase
- toString
- toUpperCase
- trim
- trimEnd
- trimLeft
- trimRight
- trimStart
- valueOf
Properties
length
• Readonly length: number
Returns the length of a String object.
Inherited from
String.length
Defined in
node_modules/typescript/lib/lib.es5.d.ts:501
Methods
[iterator]
▸ [iterator](): IterableIterator<string>
Iterator
Returns
IterableIterator<string>
Inherited from
String.__@iterator@79
Defined in
node_modules/typescript/lib/lib.es2015.iterable.d.ts:247
anchor
▸ anchor(name): string
Returns an <a> HTML anchor element and sets the name attribute to the text value
Parameters
| Name | Type |
|---|---|
name | string |
Returns
string
Inherited from
String.anchor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:460
big
▸ big(): string
Returns a <big> HTML element
Returns
string
Inherited from
String.big
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:463
blink
▸ blink(): string
Returns a <blink> HTML element
Returns
string
Inherited from
String.blink
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:466
bold
▸ bold(): string
Returns a <b> HTML element
Returns
string
Inherited from
String.bold
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:469
charAt
▸ charAt(pos): string
Returns the character at the specified index.
Parameters
| Name | Type | Description |
|---|---|---|
pos | number | The zero-based index of the desired character. |
Returns
string
Inherited from
String.charAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:402
charCodeAt
▸ charCodeAt(index): number
Returns the Unicode value of the character at the specified location.
Parameters
| Name | Type | Description |
|---|---|---|
index | number | The zero-based index of the desired character. If there is no character at the specified index, NaN is returned. |
Returns
number
Inherited from
String.charCodeAt
Defined in
node_modules/typescript/lib/lib.es5.d.ts:408
codePointAt
▸ codePointAt(pos): number
Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
value of the UTF-16 encoded code point starting at the string element at position pos in
the String resulting from converting this object to a String.
If there is no element at that position, the result is undefined.
If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
Parameters
| Name | Type |
|---|---|
pos | number |
Returns
number
Inherited from
String.codePointAt
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:408
concat
▸ concat(...strings): string
Returns a string that contains the concatenation of two or more strings.
Parameters
| Name | Type | Description |
|---|---|---|
...strings | string[] | The strings to append to the end of the string. |
Returns
string
Inherited from
String.concat
Defined in
node_modules/typescript/lib/lib.es5.d.ts:414
endsWith
▸ endsWith(searchString, endPosition?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
endPosition – length(this). Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
endPosition? | number |
Returns
boolean
Inherited from
String.endsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:424
fixed
▸ fixed(): string
Returns a <tt> HTML element
Returns
string
Inherited from
String.fixed
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:472
fontcolor
▸ fontcolor(color): string
Returns a <font> HTML element and sets the color attribute value
Parameters
| Name | Type |
|---|---|
color | string |
Returns
string
Inherited from
String.fontcolor
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:475
fontsize
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | number |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:478
▸ fontsize(size): string
Returns a <font> HTML element and sets the size attribute value
Parameters
| Name | Type |
|---|---|
size | string |
Returns
string
Inherited from
String.fontsize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:481
includes
▸ includes(searchString, position?): boolean
Returns true if searchString appears as a substring of the result of converting this
object to a String, at one or more positions that are
greater than or equal to position; otherwise, returns false.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | search string |
position? | number | If position is undefined, 0 is assumed, so as to search all of the String. |
Returns
boolean
Inherited from
String.includes
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:417
indexOf
▸ indexOf(searchString, position?): number
Returns the position of the first occurrence of a substring.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for in the string |
position? | number | The index at which to begin searching the String object. If omitted, search starts at the beginning of the string. |
Returns
number
Inherited from
String.indexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:421
italics
▸ italics(): string
Returns an <i> HTML element
Returns
string
Inherited from
String.italics
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:484
lastIndexOf
▸ lastIndexOf(searchString, position?): number
Returns the last occurrence of a substring in the string.
Parameters
| Name | Type | Description |
|---|---|---|
searchString | string | The substring to search for. |
position? | number | The index at which to begin searching. If omitted, the search begins at the end of the string. |
Returns
number
Inherited from
String.lastIndexOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:428
link
▸ link(url): string
Returns an <a> HTML element and sets the href attribute value
Parameters
| Name | Type |
|---|---|
url | string |
Returns
string
Inherited from
String.link
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:487
localeCompare
▸ localeCompare(that): number
Determines whether two strings are equivalent in the current locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:434
▸ localeCompare(that, locales?, options?): number
Determines whether two strings are equivalent in the current or specified locale.
Parameters
| Name | Type | Description |
|---|---|---|
that | string | String to compare to target string |
locales? | string | string[] | A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details. |
options? | CollatorOptions | An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details. |
Returns
number
Inherited from
String.localeCompare
Defined in
node_modules/typescript/lib/lib.es5.d.ts:4403
match
▸ match(regexp): RegExpMatchArray
Matches a string with a regular expression, and returns an array containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es5.d.ts:440
▸ match(matcher): RegExpMatchArray
Matches a string or an object that supports being matched against, and returns an array
containing the results of that search, or null if no matches are found.
Parameters
| Name | Type | Description |
|---|---|---|
matcher | Object | An object that supports being matched against. |
matcher.[match] | (string: string) => RegExpMatchArray | - |
Returns
RegExpMatchArray
Inherited from
String.match
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:239
matchAll
▸ matchAll(regexp): IterableIterator<RegExpMatchArray>
Matches a string with a regular expression, and returns an iterable of matches
containing the results of that search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | RegExp | A variable name or string literal containing the regular expression pattern and flags. |
Returns
IterableIterator<RegExpMatchArray>
Inherited from
String.matchAll
Defined in
node_modules/typescript/lib/lib.es2020.string.d.ts:29
normalize
▸ normalize(form): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form | "NFC" | "NFD" | "NFKC" | "NFKD" | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:432
▸ normalize(form?): string
Returns the String value result of normalizing the string into the normalization form
named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
Parameters
| Name | Type | Description |
|---|---|---|
form? | string | Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC" |
Returns
string
Inherited from
String.normalize
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:440
padEnd
▸ padEnd(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the end (right) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padEnd
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:46
padStart
▸ padStart(maxLength, fillString?): string
Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
The padding is applied from the start (left) of the current string.
Parameters
| Name | Type | Description |
|---|---|---|
maxLength | number | The length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is. |
fillString? | string | The string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020). |
Returns
string
Inherited from
String.padStart
Defined in
node_modules/typescript/lib/lib.es2017.string.d.ts:33
repeat
▸ repeat(count): string
Returns a String value that is made from count copies appended together. If count is 0,
the empty string is returned.
Parameters
| Name | Type | Description |
|---|---|---|
count | number | number of copies to append |
Returns
string
Inherited from
String.repeat
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:447
replace
▸ replace(searchValue, replaceValue): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replaceValue | string | A string containing the text to replace for every successful match of searchValue in this string. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:447
▸ replace(searchValue, replacer): string
Replaces text in a string, using a regular expression or search string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | string | RegExp | A string to search for. |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es5.d.ts:454
▸ replace(searchValue, replaceValue): string
Replaces first match with string or all matches with RegExp.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A string or RegExp search value. |
searchValue.[replace] | (string: string, replaceValue: string) => string | - |
replaceValue | string | A string containing the text to replace for match. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:246
▸ replace(searchValue, replacer): string
Replaces text in a string, using an object that supports replacement within a string.
Parameters
| Name | Type | Description |
|---|---|---|
searchValue | Object | A object can search for and replace matches within a string. |
searchValue.[replace] | (string: string, replacer: (substring: string, ...args: any[]) => string) => string | - |
replacer | (substring: string, ...args: any[]) => string | A function that returns the replacement text. |
Returns
string
Inherited from
String.replace
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:253
search
▸ search(regexp): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
regexp | string | RegExp | The regular expression pattern and applicable flags. |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es5.d.ts:460
▸ search(searcher): number
Finds the first substring match in a regular expression search.
Parameters
| Name | Type | Description |
|---|---|---|
searcher | Object | An object which supports searching within a string. |
searcher.[search] | (string: string) => number | - |
Returns
number
Inherited from
String.search
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:259
slice
▸ slice(start?, end?): string
Returns a section of a string.
Parameters
| Name | Type | Description |
|---|---|---|
start? | number | The index to the beginning of the specified portion of stringObj. |
end? | number | The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj. |
Returns
string
Inherited from
String.slice
Defined in
node_modules/typescript/lib/lib.es5.d.ts:468
small
▸ small(): string
Returns a <small> HTML element
Returns
string
Inherited from
String.small
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:490
split
▸ split(separator, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
separator | string | RegExp | A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned. |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es5.d.ts:475
▸ split(splitter, limit?): string[]
Split a string into substrings using the specified separator and return them as an array.
Parameters
| Name | Type | Description |
|---|---|---|
splitter | Object | An object that can split a string. |
splitter.[split] | (string: string, limit?: number) => string[] | - |
limit? | number | A value used to limit the number of elements returned in the array. |
Returns
string[]
Inherited from
String.split
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:266
startsWith
▸ startsWith(searchString, position?): boolean
Returns true if the sequence of elements of searchString converted to a String is the
same as the corresponding elements of this object (converted to a String) starting at
position. Otherwise returns false.
Parameters
| Name | Type |
|---|---|
searchString | string |
position? | number |
Returns
boolean
Inherited from
String.startsWith
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:454
strike
▸ strike(): string
Returns a <strike> HTML element
Returns
string
Inherited from
String.strike
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:493
sub
▸ sub(): string
Returns a <sub> HTML element
Returns
string
Inherited from
String.sub
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:496
substr
▸ substr(from, length?): string
Gets a substring beginning at the specified location and having the specified length.
Parameters
| Name | Type | Description |
|---|---|---|
from | number | The starting position of the desired substring. The index of the first character in the string is zero. |
length? | number | The number of characters to include in the returned substring. |
Returns
string
Inherited from
String.substr
Defined in
node_modules/typescript/lib/lib.es5.d.ts:509
substring
▸ substring(start, end?): string
Returns the substring at the specified location within a String object.
Parameters
| Name | Type | Description |
|---|---|---|
start | number | The zero-based index number indicating the beginning of the substring. |
end? | number | Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned. |
Returns
string
Inherited from
String.substring
Defined in
node_modules/typescript/lib/lib.es5.d.ts:483
sup
▸ sup(): string
Returns a <sup> HTML element
Returns
string
Inherited from
String.sup
Defined in
node_modules/typescript/lib/lib.es2015.core.d.ts:499
toLocaleLowerCase
▸ toLocaleLowerCase(locales?): string
Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:489
toLocaleUpperCase
▸ toLocaleUpperCase(locales?): string
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
Parameters
| Name | Type |
|---|---|
locales? | string | string[] |
Returns
string
Inherited from
String.toLocaleUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:495
toLowerCase
▸ toLowerCase(): string
Converts all the alphabetic characters in a string to lowercase.
Returns
string
Inherited from
String.toLowerCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:486
toString
▸ toString(): string
Returns a string representation of a string.
Returns
string
Inherited from
String.toString
Defined in
node_modules/typescript/lib/lib.es5.d.ts:396
toUpperCase
▸ toUpperCase(): string
Converts all the alphabetic characters in a string to uppercase.
Returns
string
Inherited from
String.toUpperCase
Defined in
node_modules/typescript/lib/lib.es5.d.ts:492
trim
▸ trim(): string
Removes the leading and trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trim
Defined in
node_modules/typescript/lib/lib.es5.d.ts:498
trimEnd
▸ trimEnd(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimEnd
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:23
▸ trimEnd(): string
Returns a copy with trailing whitespace removed.
Returns
string
Inherited from
String.trimEnd
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:159
trimLeft
▸ trimLeft(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimLeft
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:29
▸ trimLeft(): string
Removes whitespace from the left end of a string.
Returns
string
Inherited from
String.trimLeft
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:152
trimRight
▸ trimRight(): string
Removes the trailing white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimRight
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:32
▸ trimRight(): string
Removes whitespace from the right end of a string.
Returns
string
Inherited from
String.trimRight
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:154
trimStart
▸ trimStart(): string
Removes the leading white space and line terminator characters from a string.
Returns
string
Inherited from
String.trimStart
Defined in
node_modules/typescript/lib/lib.es2019.string.d.ts:26
▸ trimStart(): string
Returns a copy with leading whitespace removed.
Returns
string
Inherited from
String.trimStart
Defined in
packages/smi-core/node_modules/@types/node/globals.d.ts:157
valueOf
▸ valueOf(): string
Returns the primitive value of the specified object.
Returns
string
Inherited from
String.valueOf
Defined in
node_modules/typescript/lib/lib.es5.d.ts:512
@ordergroove/smi-core / Modules
@ordergroove/smi-core
Table of contents
Modules
@ordergroove/smi-core / Modules / smi-core / api
Namespace: api
smi-core.api
Table of contents
Functions
Functions
request_orders
▸ request_orders(options): Promise<Object>
Performs an asynchronous request to fetch orders and update the state with the result
const {results: ordersInRetryStatus} = await og.smi.api.request_orders({ status: 18 });
Parameters
| Name | Type | Description |
|---|---|---|
options | Object | Describing filter and ordering. |
options.ordering? | place | - |
options.status? | OrderStatus[] | - |
Returns
Promise<Object>
Defined in
packages/smi-core/src/api.js:16
request_orders_items
▸ request_orders_items(options): Promise<Object>
Performs an asynchronous request to fetch order items and update the state with the result
const {results: orderItemsInRetryStatus} = await og.smi.api.request_orders_items({ status: 18 });
Parameters
| Name | Type | Description |
|---|---|---|
options | Object | Describes order status filter |
options.status? | OrderStatus[] | - |
Returns
Promise<Object>
Defined in
packages/smi-core/src/api.js:29
request_product
▸ request_product(external_product_id): Promise<Product>
Performs an asynchronous request to a product and update the state with the result
Parameters
| Name | Type | Description |
|---|---|---|
external_product_id | string | Product identifier (external_product_id) |
Returns
Promise<Product>
Defined in
packages/smi-core/src/api.js:47
request_subscriptions
▸ request_subscriptions(options): Promise<Object>
Performs an asynchronous request to fetch subscriptions and update the state with the result
Parameters
| Name | Type |
|---|---|
options | any |
Returns
Promise<Object>
Defined in
packages/smi-core/src/api.js:37
@ordergroove/smi-core / Modules / smi-core / dayjs
Namespace: dayjs
smi-core.dayjs
Table of contents
Classes
Type aliases
- ConfigType
- OpUnitType
- OptionType
- PluginFunc
- QUnitType
- UnitType
- UnitTypeLong
- UnitTypeLongPlural
- UnitTypeShort
Variables
Functions
Type aliases
ConfigType
Ƭ ConfigType: string | number | Date | Dayjs
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:12
OpUnitType
Ƭ OpUnitType: UnitType | "week" | "weeks" | "w"
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:24
OptionType
Ƭ OptionType: { format?: string ; locale?: string ; utc?: boolean } | string | string[]
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:14
PluginFunc
Ƭ PluginFunc<T>: (option: T, c: typeof Dayjs, d: typeof dayjs) => void
Type parameters
| Name | Type |
|---|---|
T | unknown |
Type declaration
▸ (option, c, d): void
Parameters
| Name | Type |
|---|---|
option | T |
c | typeof Dayjs |
d | typeof dayjs |
Returns
void
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:410
QUnitType
Ƭ QUnitType: UnitType | "quarter" | "quarters" | "Q"
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:25
UnitType
Ƭ UnitType: UnitTypeLong | UnitTypeLongPlural | UnitTypeShort
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:22
UnitTypeLong
Ƭ UnitTypeLong: "millisecond" | "second" | "minute" | "hour" | "day" | "month" | "year" | "date"
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:18
UnitTypeLongPlural
Ƭ UnitTypeLongPlural: "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "months" | "years" | "dates"
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:20
UnitTypeShort
Ƭ UnitTypeShort: "d" | "M" | "y" | "h" | "m" | "s" | "ms"
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:16
Variables
Ls
• Ls: Object
Index signature
▪ [key: string]: ILocale
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:420
Functions
extend
▸ extend<T>(plugin, option?): Dayjs
Type parameters
| Name | Type |
|---|---|
T | unknown |
Parameters
| Name | Type |
|---|---|
plugin | PluginFunc<T> |
option? | T |
Returns
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:412
isDayjs
▸ isDayjs(d): d is Dayjs
Parameters
| Name | Type |
|---|---|
d | any |
Returns
d is Dayjs
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:416
locale
▸ locale(preset?, object?, isLocal?): string
Parameters
| Name | Type |
|---|---|
preset? | string | ILocale |
object? | Partial<ILocale> |
isLocal? | boolean |
Returns
string
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:414
unix
▸ unix(t): Dayjs
Parameters
| Name | Type |
|---|---|
t | number |
Returns
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:418
@ordergroove/smi-core / Modules / smi-core
Module: smi-core
Main smi-core module.
Main exports:
Table of contents
References
Namespaces
Classes
Properties
Functions
References
default
Renames and re-exports bootstrap
Properties
memoize
• memoize: any
Functions
bootstrap
▸ bootstrap(runtimeConfig, templateGenerator): void
Function that bootstrap smi for a given merchants
NOTE: auth and auth_url are boot optionals, if none is present smi will attempt
find og_auth cookie
Parameters
| Name | Type |
|---|---|
runtimeConfig | any |
templateGenerator | any |
Returns
void
Defined in
packages/smi-core/src/bootstrap.js:50
dayjs
▸ dayjs(date?): Dayjs
Parameters
| Name | Type |
|---|---|
date? | ConfigType |
Returns
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:5
▸ dayjs(date?, format?, strict?): Dayjs
Parameters
| Name | Type |
|---|---|
date? | ConfigType |
format? | OptionType |
strict? | boolean |
Returns
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:7
▸ dayjs(date?, format?, locale?, strict?): Dayjs
Parameters
| Name | Type |
|---|---|
date? | ConfigType |
format? | OptionType |
locale? | string |
strict? | boolean |
Returns
Defined in
packages/smi-core/node_modules/dayjs/index.d.ts:9
html
▸ Const html(strings, ...values): TemplateResult
Interprets a template literal as an HTML template that can efficiently
render to and update a container.
Parameters
| Name | Type |
|---|---|
strings | TemplateStringsArray |
...values | unknown[] |
Returns
TemplateResult
Defined in
packages/smi-core/node_modules/lit-html/lit-html.d.ts:36
@ordergroove/smi-core / Modules / smi-core/filters
Module: smi-core/filters
Filters
Filters provide a way for you to apply a function over a variable before it's rendered to the page. In order to use a filter you will have to call it following a variable declaration and separated by a |. Most common use-case for this is the need to modify or format the variable content before it's included in the template. For example, let's say that you wanted to display a ISO date in a more human readable format:
In the example above, we are using the date filter and it will render to the customer as:
Standard date: {{ order.place }}
Formatted date: {{ order.place | date }}
In the example above, we are using the date filter and it will render to the customer as:
Standard date: 2020-05-10
Formatted date: May 10, 2020
### Filter with parameters
Since filters are just a way for you to apply a function over a variable, some filters also
support the idea of additional parameters. You can supply additional parameters by passing
them into the filter, the same way as you would in other programming paradigms. A good example
of this is the date filter from our earlier example. It accepts a date format as a parameter
that allows you to have greater flexibility over how the date is displayed. Please find a few
examples below:
Localized format 1: {{ order.place | date('L') }}
Localized format 2: {{ order.place | date('LL') }}
Non-localized specific format: {{ order.place | date('MMM D YYYY') }}
In the example above, we're displaying a date in two different localized formats and a
non-localized one. You can see the resulting message below if the current locale was set to English.
Localized format: 01/10/2020
Localized format: January 10, 2020
Non-localized specific format: Jan 10 2020
You can read more about our list of supported filters in the Filter Reference
List of available filters:
Table of contents
Properties
Functions
Properties
default
• default: any
Functions
createFilters
▸ createFilters(locale): TemplateFilters
Parameters
| Name | Type |
|---|---|
locale | any |
Returns
Defined in
packages/smi-core/src/core/filters/create-filters.js:83
@ordergroove/smi-core / Modules / types
Module: types
Table of contents
Action Payloads Enumerations
Other Enumerations
Application Interface Interfaces
Domain Models Interfaces
Domain Models
Object that represents a payment and contains the following fields: Interfaces
Domain Models
Object that represents an address and contains the following fields: Interfaces
Generic types Interfaces
Other Interfaces
Type aliases
- ActionFilter
- BootstrapOptions
- CurrencyFilter
- DateFilter
- DumpFilter
- EntriesFilter
- EnvironmentChoices
- FindFilter
- FirstFilter
- GetFilter
- IfDefinedFilter
- LastFilter
- RejectFilter
- SelectFilter
- ShuffleFilter
- SortFilter
- TemplateFilters
- TemplateGenerator
- UntilFilter
Type aliases
ActionFilter
Ƭ ActionFilter: (formName: FormNameChoice) => (part: any) => void
Type declaration
▸ (formName): (part: any) => void
This filter handles the form validation and submission to ordergrooves backend
<form action="{{ 'send_now' | action }}">
<input type="hidden" value="{{ subscription.public_id }}" name="subscription" />
<button class="og-button" type="submit" name="send_now">Send</button>
</form>
Parameters
| Name | Type | Description |
|---|---|---|
formName | FormNameChoice | Special keyword describing how the form needs to be handled. Note that some handlers require special field sin the form to be present as hidden inputs. See FormNameChoice |
Returns
fn
▸ (part): void
Parameters
| Name | Type |
|---|---|
part | any |
Returns
void
Defined in
packages/smi-core/src/types/index.ts:933
BootstrapOptions
Ƭ BootstrapOptions: Object
Type declaration
| Name | Type |
|---|---|
auth? | Object |
auth_url? | String |
env | EnvironmentChoices |
merchant_id | MerchantId |
Defined in
packages/smi-core/src/types/index.ts:862
CurrencyFilter
Ƭ CurrencyFilter: (amount: string | number, currency?: string, currencyDisplay?: string) => string
Type declaration
▸ (amount, currency?, currencyDisplay?): string
Returns a localized currency number. Internally using NumberFormat
Parameters
| Name | Type | Description |
|---|---|---|
amount | string | number | Number or string like number |
currency? | string | A valid currency code it defaults whatever localization file says as "currency_code": "USD", |
currencyDisplay? | string | How to display the curency defaults to narrow |
Returns
string
Defined in
packages/smi-core/src/types/index.ts:997
DateFilter
Ƭ DateFilter: (value: string | date | datetime, format: DateFormatString) => string
Type declaration
▸ (value, format): string
Returns a localized date in specified format
Parameters
| Name | Type | Description |
|---|---|---|
value | string | date | datetime | Value any string like date value |
format | DateFormatString | String may be any combination of DateFormatString |
Returns
string
Defined in
packages/smi-core/src/types/index.ts:941
DumpFilter
Ƭ DumpFilter: (value: any) => string
Type declaration
▸ (value): string
Dumps the string represantation of the value, useful for debugging purpose.
Parameters
| Name | Type |
|---|---|
value | any |
Returns
string
Defined in
packages/smi-core/src/types/index.ts:1071
EntriesFilter
Ƭ EntriesFilter: (value: any) => string
Type declaration
▸ (value): string
Returns the result of JavaScript's Object.entries function
Parameters
| Name | Type |
|---|---|
value | any |
Returns
string
Defined in
packages/smi-core/src/types/index.ts:1076
EnvironmentChoices
Ƭ EnvironmentChoices: "prod" | "staging"
Defined in
packages/smi-core/src/types/index.ts:627
FindFilter
Ƭ FindFilter: (list: any, ...identity: any[]) => any
Type declaration
▸ (list, ...identity): any
https://lodash.com/docs/4.17.15#find
Parameters
| Name | Type |
|---|---|
list | any |
...identity | any[] |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1019
FirstFilter
Ƭ FirstFilter: (list: any, ...identity: any[]) => any
Type declaration
▸ (list, ...identity): any
https://lodash.com/docs/4.17.15#first
Parameters
| Name | Type |
|---|---|
list | any |
...identity | any[] |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1034
GetFilter
Ƭ GetFilter: (list: any, ...identity: any[]) => any
Type declaration
▸ (list, ...identity): any
https://lodash.com/docs/4.17.15#get
Parameters
| Name | Type |
|---|---|
list | any |
...identity | any[] |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1039
IfDefinedFilter
Ƭ IfDefinedFilter: (value: unknown) => (part: Part) => void
Type declaration
▸ (value): (part: Part) => void
https://lit-html.polymer-project.org/guide/template-reference#ifdefined
Parameters
| Name | Type |
|---|---|
value | unknown |
Returns
fn
▸ (part): void
Parameters
| Name | Type |
|---|---|
part | Part |
Returns
void
Defined in
packages/smi-core/src/types/index.ts:989
LastFilter
Ƭ LastFilter: (list: any, ...identity: any[]) => any
Type declaration
▸ (list, ...identity): any
https://lodash.com/docs/4.17.15#last
Parameters
| Name | Type |
|---|---|
list | any |
...identity | any[] |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1066
RejectFilter
Ƭ RejectFilter: (list: any, ...identity: any[]) => any
Type declaration
▸ (list, ...identity): any
https://lodash.com/docs/4.17.15#reject
Parameters
| Name | Type |
|---|---|
list | any |
...identity | any[] |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1024
SelectFilter
Ƭ SelectFilter: (list: any, ...identity: any[]) => any
Type declaration
▸ (list, ...identity): any
Creates an identity function based on an optional filter function.
If no filter function is provided and the argiment is a string of 32 length, a default filter function using public_id will be used.
Parameters
| Name | Type |
|---|---|
list | any |
...identity | any[] |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1014
ShuffleFilter
Ƭ ShuffleFilter: (list: any) => any
Type declaration
▸ (list): any
Creates an array of shuffled values, using a version of the
Fisher-Yates shuffle.
{% for reason in cancel_reasons | entries | shuffle %}
{% set code = reason | first %}
{% set text = reason | last %}
{% if code != '1' %}
<div class="og-input-group">
<input class="og-check-radio" required type="radio" name="cancel_reason"
value="{{ code }} | {{ text }}" id="cancel_reason_{{ code }}_{{ subscription.public_id }}"/>
<label class="og-check-radio-label" for="cancel_reason_{{ code }}_{{ subscription.public_id }}">
{{ text }}
</label>
</div>
{% endif %}
{% endfor %}
Parameters
| Name | Type |
|---|---|
list | any |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1061
SortFilter
Ƭ SortFilter: (list: any, ...identity: any[]) => any
Type declaration
▸ (list, ...identity): any
https://lodash.com/docs/4.17.15#sort
Parameters
| Name | Type |
|---|---|
list | any |
...identity | any[] |
Returns
any
Defined in
packages/smi-core/src/types/index.ts:1029
TemplateFilters
Ƭ TemplateFilters: Object
Filters are essentially functions that can be applied to variables.
They are called with a pipe operator (|) and can take arguments.
{{ foo | title }}
{{ foo | join(",") }}
{{ foo | replace("foo", "bar") | capitalize }}
The third example shows how you can chain filters. It would display "Bar",
by first replacing "foo" with "bar" and then capitalizing it.
A filter is simply a function that takes the target object as the first argument and any arguments passed to the filter as the other arguments, in order.
Type declaration
| Name | Type |
|---|---|
action | ActionFilter |
currency | CurrencyFilter |
date | DateFilter |
dump | DumpFilter |
entries | EntriesFilter |
find | FindFilter |
first | FirstFilter |
get | GetFilter |
if_defined | IfDefinedFilter |
last | LastFilter |
reject | RejectFilter |
select | SelectFilter |
shuffle | ShuffleFilter |
sort | SortFilter |
until | UntilFilter |
Defined in
packages/smi-core/src/types/index.ts:1095
TemplateGenerator
Ƭ TemplateGenerator: (html: Function) => (state: SmiState) => TemplateResult
Type declaration
▸ (html): (state: SmiState) => TemplateResult
Parameters
| Name | Type |
|---|---|
html | Function |
Returns
fn
▸ (state): TemplateResult
Parameters
| Name | Type |
|---|---|
state | SmiState |
Returns
TemplateResult
Defined in
packages/smi-core/src/types/index.ts:869
UntilFilter
Ƭ UntilFilter: (...args: unknown[]) => (part: Part) => void
Type declaration
▸ (...args): (part: Part) => void
https://lit-html.polymer-project.org/guide/template-reference#until
Parameters
| Name | Type |
|---|---|
...args | unknown[] |
Returns
fn
▸ (part): void
Parameters
| Name | Type |
|---|---|
part | Part |
Returns
void
