@basis-theory/basis-theory-js
Advanced tools
Comparing version 1.6.0 to 1.7.0
import type { PaginatedQuery } from '../service'; | ||
import type { Auditable } from '../types'; | ||
declare const APPLICATION_TYPES: readonly ["server_to_server", "public", "elements", "management"]; | ||
declare type ApplicationType = typeof APPLICATION_TYPES[number]; | ||
interface Application { | ||
interface Application extends Auditable { | ||
id: string; | ||
@@ -11,4 +12,2 @@ tenantId: string; | ||
permissions: string[]; | ||
createdAt: string; | ||
modifiedAt: string; | ||
} | ||
@@ -15,0 +14,0 @@ declare type CreateApplicationModel = Pick<Application, 'name' | 'type'> & Partial<Pick<Application, 'permissions'>>; |
import type { TokenType } from '../tokens'; | ||
interface Atomic { | ||
import type { Auditable } from '../types'; | ||
interface Atomic extends Auditable { | ||
id: string; | ||
@@ -8,4 +9,2 @@ tenantId: string; | ||
metadata?: Record<string, string>; | ||
createdBy: string; | ||
createdAt: string; | ||
} | ||
@@ -12,0 +11,0 @@ interface ReactRequest { |
{ | ||
"name": "@basis-theory/basis-theory-js", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"repository": "https://github.com/Basis-Theory/basis-theory-js", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
import type { PaginatedQuery } from '../service'; | ||
import type { TokenType } from '../tokens'; | ||
import type { Auditable } from '../types'; | ||
declare type FormulaType = 'official' | 'private'; | ||
declare type DataType = 'string' | 'boolean' | 'number'; | ||
interface ReactorFormula { | ||
interface ReactorFormula extends Auditable { | ||
id: string; | ||
@@ -15,4 +16,2 @@ name: string; | ||
requestParameters: ReactorFormulaRequestParam[]; | ||
createdAt: string; | ||
modifiedAt?: string; | ||
} | ||
@@ -30,3 +29,3 @@ interface ReactorFormulaConfig { | ||
} | ||
declare type CreateReactorFormulaModel = Omit<ReactorFormula, 'id' | 'createdAt' | 'modifiedAt'>; | ||
declare type CreateReactorFormulaModel = Omit<ReactorFormula, 'id' | 'createdAt' | 'createdBy' | 'modifiedAt' | 'modifiedBy'>; | ||
interface ReactorFormulaQuery extends PaginatedQuery { | ||
@@ -33,0 +32,0 @@ name?: string; |
import type { ReactorFormula } from '../reactor-formulas/types'; | ||
import type { PaginatedQuery } from '../service'; | ||
import type { TokenType } from '../tokens/types'; | ||
interface Reactor { | ||
import type { Auditable } from '../types'; | ||
interface Reactor extends Auditable { | ||
id: string; | ||
@@ -10,4 +11,2 @@ tenantId: string; | ||
configuration: Record<string, string>; | ||
createdAt: string; | ||
modifiedAt: string; | ||
} | ||
@@ -14,0 +13,0 @@ declare type CreateReactorModel = Pick<Reactor, 'name' | 'configuration'> & { |
@@ -1,7 +0,6 @@ | ||
interface Tenant { | ||
import type { Auditable } from '../types'; | ||
interface Tenant extends Auditable { | ||
id: string; | ||
ownerId: string; | ||
name: string; | ||
createdAt: string; | ||
modifiedAt: string; | ||
} | ||
@@ -8,0 +7,0 @@ declare type UpdateTenantModel = Pick<Tenant, 'name'>; |
import type { PaginatedQuery } from '../service'; | ||
import type { Auditable } from '../types'; | ||
declare type Primitive = string | number | boolean | null; | ||
@@ -17,3 +18,3 @@ declare type DataObject = { | ||
} | ||
interface Token { | ||
interface Token extends Auditable { | ||
id: string; | ||
@@ -27,4 +28,2 @@ tenantId: string; | ||
children?: Token[]; | ||
createdBy: string; | ||
createdAt: string; | ||
} | ||
@@ -31,0 +30,0 @@ declare type CreateTokenModel = Pick<Token, 'type' | 'data' | 'metadata' | 'encryption' | 'children'>; |
@@ -23,2 +23,8 @@ import type { BasisTheoryElements } from './elements'; | ||
} | ||
interface Auditable { | ||
createdBy?: string; | ||
createdAt?: string; | ||
modifiedBy?: string; | ||
modifiedAt?: string; | ||
} | ||
declare global { | ||
@@ -30,2 +36,2 @@ interface Window { | ||
export { algorithm }; | ||
export type { InitStatus, Clients, ClientsBasePathMap, Providers, Algorithm, EncryptionProviderOptions, EncryptionOptions, BasisTheoryInitOptions, }; | ||
export type { InitStatus, Clients, ClientsBasePathMap, Providers, Algorithm, EncryptionProviderOptions, EncryptionOptions, BasisTheoryInitOptions, Auditable, }; |
97014