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