@basis-theory/basis-theory-js
Advanced tools
Comparing version 1.0.0-alpha.25 to 1.0.0-alpha.26
@@ -7,2 +7,4 @@ import { BasisTheoryAtomic } from './atomic'; | ||
import type { BasisTheoryElements } from './elements'; | ||
import { BasisTheoryReactorFormulas } from './reactor-formulas'; | ||
import { BasisTheoryReactors } from './reactors'; | ||
import { BasisTheoryPermissions } from './permissions'; | ||
@@ -18,2 +20,4 @@ export declare const defaultInitOptions: Required<BasisTheoryInitOptions>; | ||
private _applications?; | ||
private _reactorFormulas?; | ||
private _reactors?; | ||
private _permissions?; | ||
@@ -29,3 +33,5 @@ init(apiKey: string, options?: BasisTheoryInitOptions): Promise<BasisTheory>; | ||
get applications(): BasisTheoryApplications; | ||
get reactorFormulas(): BasisTheoryReactorFormulas; | ||
get reactors(): BasisTheoryReactors; | ||
get permissions(): BasisTheoryPermissions; | ||
} |
@@ -18,2 +18,6 @@ "use strict"; | ||
var _reactorFormulas = require("./reactor-formulas"); | ||
var _reactors = require("./reactors"); | ||
var _permissions = require("./permissions"); | ||
@@ -45,2 +49,6 @@ | ||
_defineProperty(this, "_reactorFormulas", void 0); | ||
_defineProperty(this, "_reactors", void 0); | ||
_defineProperty(this, "_permissions", void 0); | ||
@@ -72,2 +80,10 @@ } | ||
}); | ||
this._reactorFormulas = new _reactorFormulas.BasisTheoryReactorFormulas({ | ||
apiKey, | ||
baseURL: _common.SERVICES.reactorFormulas[this._initOptions.environment] | ||
}); | ||
this._reactors = new _reactors.BasisTheoryReactors({ | ||
apiKey, | ||
baseURL: _common.SERVICES.reactors[this._initOptions.environment] | ||
}); | ||
this._permissions = new _permissions.BasisTheoryPermissions({ | ||
@@ -126,2 +142,10 @@ apiKey, | ||
get reactorFormulas() { | ||
return (0, _common.assertInit)(this._reactorFormulas); | ||
} | ||
get reactors() { | ||
return (0, _common.assertInit)(this._reactors); | ||
} | ||
get permissions() { | ||
@@ -128,0 +152,0 @@ return (0, _common.assertInit)(this._permissions); |
@@ -23,2 +23,12 @@ "use strict"; | ||
}, | ||
reactorFormulas: { | ||
production: `https://${"api.basistheory.com"}/reactor-formulas`, | ||
sandbox: `https://${"api-dev.basistheory.com"}/reactor-formulas`, | ||
local: `http://${"localhost:3333"}/reactor-formulas` | ||
}, | ||
reactors: { | ||
production: `https://${"api.basistheory.com"}/reactors`, | ||
sandbox: `https://${"api-dev.basistheory.com"}/reactors`, | ||
local: `http://${"localhost:3333"}/reactors` | ||
}, | ||
permissions: { | ||
@@ -25,0 +35,0 @@ production: `https://${"api.basistheory.com"}/permissions`, |
{ | ||
"name": "@basis-theory/basis-theory-js", | ||
"version": "1.0.0-alpha.25", | ||
"version": "1.0.0-alpha.26", | ||
"repository": "https://github.com/Basis-Theory/basis-theory-js", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -7,3 +7,3 @@ import type { BasisTheoryElements } from './elements'; | ||
}; | ||
export declare type Services = 'tokens' | 'atomic' | 'applications' | 'permissions'; | ||
export declare type Services = 'tokens' | 'atomic' | 'applications' | 'reactorFormulas' | 'reactors' | 'permissions'; | ||
export declare type ServicesMap = { | ||
@@ -10,0 +10,0 @@ [key in Services]: ServiceUrlMap; |
Sorry, the diff of this file is too big to display
144724
82
1629