@brasilindoc/integration-products
Advanced tools
Comparing version 3.1.3 to 3.2.0
import { AccountsService } from './services/AccountsService.js'; | ||
import { FileManagerService } from './services/FileManagerService.js'; | ||
import { FinancialService } from './services/FinancialService.js'; | ||
import { IdentifyService } from './services/IdentifyService.js'; | ||
import { IndocService } from './services/IndocService.js'; | ||
import { OnboardingService } from './services/OnboardingService.js'; | ||
import { PhoneIdService } from './services/PhoneIdService.js'; | ||
@@ -19,2 +21,4 @@ import './@types/br-accounts.types.js'; | ||
private readonly hostFileManagerId; | ||
private readonly hostOnboarding; | ||
private readonly hostFinancial; | ||
constructor(accessToken?: string | undefined); | ||
@@ -26,2 +30,4 @@ accounts(): AccountsService; | ||
fileManager(): FileManagerService; | ||
onboarding(): OnboardingService; | ||
financial(): FinancialService; | ||
private getHostAppByEnv; | ||
@@ -28,0 +34,0 @@ private getHostByEnv; |
@@ -234,2 +234,10 @@ "use strict"; | ||
// src/services/FinancialService.ts | ||
var FINANCIAL_PRODUCT_KEY = 97; | ||
var FinancialService = class extends BRDocServiceBase { | ||
constructor(hostAccounts, host, accessToken) { | ||
super(hostAccounts, host, FINANCIAL_PRODUCT_KEY, accessToken); | ||
} | ||
}; | ||
// src/services/IdentifyService.ts | ||
@@ -283,2 +291,11 @@ var IDENTIFY_PRODUCT_KEY = 2; | ||
// src/services/OnboardingService.ts | ||
var ONBOARDING_PRODUCT_KEY = 4; | ||
var OnboardingService = class extends BRDocServiceBase { | ||
resource = "onboarding"; | ||
constructor(hostAccounts, host, accessToken) { | ||
super(hostAccounts, host, ONBOARDING_PRODUCT_KEY, accessToken); | ||
} | ||
}; | ||
// src/services/PhoneIdService.ts | ||
@@ -304,2 +321,4 @@ var PHONEID_PRODUCT_KEY = 3; | ||
this.hostFileManagerId = this.getHostAppByEnv("file-manager"); | ||
this.hostOnboarding = this.getHostAppByEnv("onboarding"); | ||
this.hostFinancial = this.getHostAppByEnv("financial"); | ||
} | ||
@@ -311,2 +330,4 @@ hostAccounts; | ||
hostFileManagerId; | ||
hostOnboarding; | ||
hostFinancial; | ||
accounts() { | ||
@@ -339,2 +360,16 @@ return new AccountsService(this.hostAccounts, this.accessToken); | ||
} | ||
onboarding() { | ||
return new OnboardingService( | ||
this.hostAccounts, | ||
this.hostOnboarding, | ||
this.accessToken | ||
); | ||
} | ||
financial() { | ||
return new FinancialService( | ||
this.hostAccounts, | ||
this.hostFinancial, | ||
this.accessToken | ||
); | ||
} | ||
getHostAppByEnv(appName) { | ||
@@ -341,0 +376,0 @@ switch (Environment.get("ENVIRONMENT_TYPE")) { |
{ | ||
"name": "@brasilindoc/integration-products", | ||
"version": "3.1.3", | ||
"version": "3.2.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": "^18.14.0" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3876920
43
113348
66
14