![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@basis-theory/basis-theory-elements-interfaces
Advanced tools
Since v1.27.0, [Basis Theory JS SDK](https://github.com/Basis-Theory/basis-theory-js) embeds all required types.
Since v1.27.0, Basis Theory JS SDK embeds all required types.
Example:
- import type { Token } from '@basis-theory/basis-theory-elements-interfaces/models';
+ import type { Token } from '@basis-theory/basis-theory-js/types/models';
This package exposes TypeScript definitions for Basis Theory JS SDK features, including Elements.
Using Node Package Manager
npm install --save-dev @basis-theory/basis-theory-elements-interfaces
Using Yarn
yarn add --dev @basis-theory/basis-theory-elements-interfaces
Types are exported from the following locations.
import { BasisTheory } from '@basis-theory/basis-theory-js';
import type { Application } from '@basis-theory/basis-theory-elements-interfaces/models'; // <- models root
const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED'); // replace with your application key
const application: Application = await bt.applications.retrieve('fe1f9ba4-474e-44b9-b949-110cdba9d662');
import { BasisTheory } from '@basis-theory/basis-theory-js';
import type { PaginatedList, ListLogQuery } from '@basis-theory/basis-theory-elements-interfaces/sdk'; // <- sdk root
import type { Log } from '@basis-theory/basis-theory-elements-interfaces/models';
const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED'); // replace with your application key
let query: ListLogQuery = {
entityType: 'application'
};
if (someCondition) {
query = {
...query,
entityId: '3f86930c-18f3-4a2d-b033-b738e59d419e'
}
}
const logs: PaginatedList<Log> = await bt.logs.list(query);
import { BasisTheory } from '@basis-theory/basis-theory-js';
import type { TextElement } from '@basis-theory/basis-theory-elements-interfaces/elements'; // <- elements root
const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED', { elements: true }); // replace with your application key
const myInput: TextElement = bt.createElement('text', { targetId: 'myInputId' });
FAQs
Since v1.27.0, [Basis Theory JS SDK](https://github.com/Basis-Theory/basis-theory-js) embeds all required types.
The npm package @basis-theory/basis-theory-elements-interfaces receives a total of 45 weekly downloads. As such, @basis-theory/basis-theory-elements-interfaces popularity was classified as not popular.
We found that @basis-theory/basis-theory-elements-interfaces demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.