-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from PrestaShop/global
Export types
- Loading branch information
Showing
4 changed files
with
115 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
type GlobalInstall = { | ||
URL: string | ||
ENABLE_SSL: boolean | ||
LANGUAGE: string | ||
COUNTRY: string | ||
DB_SERVER: string | ||
DB_NAME: string | ||
DB_USER: string | ||
DB_PASSWD: string | ||
DB_PREFIX: string | ||
SHOP_NAME: string | ||
} | ||
|
||
type GlobalFO = { | ||
URL: string | ||
} | ||
|
||
type GlobalBO = { | ||
URL: string | ||
EMAIL: string | ||
PASSWD: string | ||
FIRSTNAME: string | ||
LASTNAME: string | ||
} | ||
|
||
type GlobalBrowserConfig = { | ||
headless: any | ||
timeout: number | ||
slowMo: number | ||
channel?: string | ||
args?: Array<string> | ||
} | ||
|
||
type GlobalBrowser = { | ||
name: string | ||
lang: string | ||
width: number | ||
height: number | ||
sandboxArgs: Array<string> | ||
acceptDownloads: boolean | ||
config: GlobalBrowserConfig | ||
interceptErrors: any | ||
} | ||
|
||
type GlobalPSConfig = { | ||
parametersFile: string | ||
} | ||
|
||
type GlobalBrowserErrors = { | ||
responses: Array<any> | ||
js: Array<any> | ||
console: Array<any> | ||
} | ||
|
||
type GlobalScreenshot = { | ||
FOLDER: string | ||
AFTER_FAIL: any | ||
} | ||
|
||
type GlobalMaildevConfig = { | ||
smtpPort: number | ||
smtpServer: string | ||
silent: boolean | ||
} | ||
|
||
type GlobalKeycloakConfig = { | ||
keycloakExternalUrl: string | ||
keycloakInternalUrl: string | ||
keycloakAdminUser: string | ||
keycloakAdminPass: string | ||
keycloakClientId: string | ||
} | ||
|
||
export type { | ||
GlobalInstall, | ||
GlobalFO, | ||
GlobalBO, | ||
GlobalBrowser, | ||
GlobalBrowserConfig, | ||
GlobalPSConfig, | ||
GlobalBrowserErrors, | ||
GlobalScreenshot, | ||
GlobalMaildevConfig, | ||
GlobalKeycloakConfig, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,90 +1,17 @@ | ||
/* eslint-disable vars-on-top, no-var */ | ||
|
||
type GlobalInstall = { | ||
URL: string | ||
ENABLE_SSL: boolean | ||
LANGUAGE: string | ||
COUNTRY: string | ||
DB_SERVER: string | ||
DB_NAME: string | ||
DB_USER: string | ||
DB_PASSWD: string | ||
DB_PREFIX: string | ||
SHOP_NAME: string | ||
} | ||
|
||
type GlobalFO = { | ||
URL: string | ||
} | ||
|
||
type GlobalBO = { | ||
URL: string | ||
EMAIL: string | ||
PASSWD: string | ||
FIRSTNAME: string | ||
LASTNAME: string | ||
} | ||
|
||
type GlobalBrowserConfig = { | ||
headless: any | ||
timeout: number | ||
slowMo: number | ||
channel?: string | ||
args?: Array<string> | ||
} | ||
|
||
type GlobalBrowser = { | ||
name: string | ||
lang: string | ||
width: number | ||
height: number | ||
sandboxArgs: Array<string> | ||
acceptDownloads: boolean | ||
config: GlobalBrowserConfig | ||
interceptErrors: any | ||
} | ||
|
||
type GlobalPSConfig = { | ||
parametersFile: string | ||
} | ||
|
||
type GlobalBrowserErrors = { | ||
responses: Array<any> | ||
js: Array<any> | ||
console: Array<any> | ||
} | ||
|
||
type GlobalScreenshot = { | ||
FOLDER: string | ||
AFTER_FAIL: any | ||
} | ||
|
||
type GlobalMaildevConfig = { | ||
smtpPort: number | ||
smtpServer: string | ||
silent: boolean | ||
} | ||
|
||
type GlobalKeycloakConfig = { | ||
keycloakExternalUrl: string | ||
keycloakInternalUrl: string | ||
keycloakAdminUser: string | ||
keycloakAdminPass: string | ||
keycloakClientId: string | ||
} | ||
|
||
declare global { | ||
var INSTALL: GlobalInstall; | ||
var URLHasPort: boolean; | ||
var FO: GlobalFO; | ||
var BO: GlobalBO; | ||
var PSConfig: GlobalPSConfig; | ||
var BROWSER: GlobalBrowser; | ||
var GENERATE_FAILED_STEPS: any; | ||
var SCREENSHOT: GlobalScreenshot; | ||
var maildevConfig: GlobalMaildevConfig; | ||
var keycloakConfig: GlobalKeycloakConfig; | ||
var browserErrors: GlobalBrowserErrors; | ||
} | ||
declare global { | ||
var INSTALL: GlobalInstall; | ||
var URLHasPort: boolean; | ||
var FO: GlobalFO; | ||
var BO: GlobalBO; | ||
var PSConfig: GlobalPSConfig; | ||
var BROWSER: GlobalBrowser; | ||
var GENERATE_FAILED_STEPS: any; | ||
var SCREENSHOT: GlobalScreenshot; | ||
var maildevConfig: GlobalMaildevConfig; | ||
var keycloakConfig: GlobalKeycloakConfig; | ||
var browserErrors: GlobalBrowserErrors; | ||
} | ||
|
||
export {}; |