| 1 |
interface KeyStringObject { |
| 2 |
[key: string]: string; |
| 3 |
} |
| 4 |
|
| 5 |
interface Routes { |
| 6 |
[key: string]: string | KeyStringObject; |
| 7 |
} |
| 8 |
|
| 9 |
export type ContentEmbedDetails = { |
| 10 |
activated: boolean; |
| 11 |
installed: boolean; |
| 12 |
canActivate: boolean; |
| 13 |
canInstall: boolean; |
| 14 |
nonce: string; |
| 15 |
}; |
| 16 |
|
| 17 |
interface LeadinConfig { |
| 18 |
accountName: string; |
| 19 |
adminUrl: string; |
| 20 |
activationTime: string; |
| 21 |
connectionStatus?: 'Connected' | 'NotConnected'; |
| 22 |
deviceId: string; |
| 23 |
didDisconnect: '1' | '0'; |
| 24 |
env: string; |
| 25 |
formsScript: string; |
| 26 |
meetingsScript: string; |
| 27 |
formsScriptPayload: string; |
| 28 |
hublet: string; |
| 29 |
hubspotBaseUrl: string; |
| 30 |
hubspotNonce: string; |
| 31 |
iframeUrl: string; |
| 32 |
impactLink?: string; |
| 33 |
leadinPluginVersion: string; |
| 34 |
leadinQueryParams: KeyStringObject; |
| 35 |
loginUrl: string; |
| 36 |
locale: string; |
| 37 |
phpVersion: string; |
| 38 |
pluginPath: string; |
| 39 |
plugins: KeyStringObject; |
| 40 |
portalDomain: string; |
| 41 |
portalEmail: string; |
| 42 |
portalId: number; |
| 43 |
redirectNonce: string; |
| 44 |
restNonce: string; |
| 45 |
restUrl: string; |
| 46 |
reviewSkippedDate: string; |
| 47 |
refreshToken?: string; |
| 48 |
theme: string; |
| 49 |
trackConsent?: boolean; |
| 50 |
wpVersion: string; |
| 51 |
contentEmbed: ContentEmbedDetails; |
| 52 |
requiresContentEmbedScope?: boolean; |
| 53 |
} |
| 54 |
|
| 55 |
const { |
| 56 |
accountName, |
| 57 |
adminUrl, |
| 58 |
activationTime, |
| 59 |
connectionStatus, |
| 60 |
deviceId, |
| 61 |
didDisconnect, |
| 62 |
env, |
| 63 |
formsScript, |
| 64 |
meetingsScript, |
| 65 |
formsScriptPayload, |
| 66 |
hublet, |
| 67 |
hubspotBaseUrl, |
| 68 |
hubspotNonce, |
| 69 |
iframeUrl, |
| 70 |
impactLink, |
| 71 |
leadinPluginVersion, |
| 72 |
leadinQueryParams, |
| 73 |
locale, |
| 74 |
loginUrl, |
| 75 |
phpVersion, |
| 76 |
pluginPath, |
| 77 |
plugins, |
| 78 |
portalDomain, |
| 79 |
portalEmail, |
| 80 |
portalId, |
| 81 |
redirectNonce, |
| 82 |
restNonce, |
| 83 |
restUrl, |
| 84 |
refreshToken, |
| 85 |
reviewSkippedDate, |
| 86 |
theme, |
| 87 |
trackConsent, |
| 88 |
wpVersion, |
| 89 |
contentEmbed, |
| 90 |
requiresContentEmbedScope, |
| 91 |
}: //@ts-expect-error global |
| 92 |
LeadinConfig = window.leadinConfig; |
| 93 |
|
| 94 |
export { |
| 95 |
accountName, |
| 96 |
adminUrl, |
| 97 |
activationTime, |
| 98 |
connectionStatus, |
| 99 |
deviceId, |
| 100 |
didDisconnect, |
| 101 |
env, |
| 102 |
formsScript, |
| 103 |
meetingsScript, |
| 104 |
formsScriptPayload, |
| 105 |
hublet, |
| 106 |
hubspotBaseUrl, |
| 107 |
hubspotNonce, |
| 108 |
iframeUrl, |
| 109 |
impactLink, |
| 110 |
leadinPluginVersion, |
| 111 |
leadinQueryParams, |
| 112 |
loginUrl, |
| 113 |
locale, |
| 114 |
phpVersion, |
| 115 |
pluginPath, |
| 116 |
plugins, |
| 117 |
portalDomain, |
| 118 |
portalEmail, |
| 119 |
portalId, |
| 120 |
redirectNonce, |
| 121 |
restNonce, |
| 122 |
restUrl, |
| 123 |
refreshToken, |
| 124 |
reviewSkippedDate, |
| 125 |
theme, |
| 126 |
trackConsent, |
| 127 |
wpVersion, |
| 128 |
contentEmbed, |
| 129 |
requiresContentEmbedScope, |
| 130 |
}; |
| 131 |
|