@sava-info-systems/api-maker-with-extensions 2.3.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/.dockerignore +5 -1
  2. package/Dockerfile +1 -35
  3. package/Dockerfile.base +22 -0
  4. package/Dockerfile.extended-base +44 -0
  5. package/dist/1025.5c34b11ab88519fd.js +1 -0
  6. package/dist/1097.3c5b2b4587cefa6e.js +1 -0
  7. package/dist/115.8d10b2b963e7d632.js +1 -0
  8. package/dist/148.f8f560a5f818328e.js +1 -0
  9. package/dist/1558.576af7585833e289.js +1 -0
  10. package/dist/1678.14f917ee37080d63.js +1 -0
  11. package/dist/1754.fc6d6e9f6c1e96d5.js +1 -0
  12. package/dist/1928.9c9375dd036b025a.js +1 -0
  13. package/dist/1957.b718aa368330b524.js +1 -0
  14. package/dist/2140.bb097d69bcb6a1e5.js +1 -0
  15. package/dist/2295.aa3514c8d1238cb2.js +1 -0
  16. package/dist/238.553f30dbe5124419.js +1 -0
  17. package/dist/2473.260a6b26a70eaa8d.js +1 -0
  18. package/dist/2579.b02fe6a8ba3a2e71.js +1 -0
  19. package/dist/2714.b41d14f7378785df.js +1 -0
  20. package/dist/2735.4046cae4c68ac75f.js +1 -0
  21. package/dist/292.bb85e0ea91dcc118.js +1 -0
  22. package/dist/3139.5dd9289cc24b4100.js +1 -0
  23. package/dist/3450.588aafa515b19133.js +1 -0
  24. package/dist/3664.ed1232e3c70195fc.js +1 -0
  25. package/dist/3752.d4e0a280a37c1426.js +1 -0
  26. package/dist/3rdpartylicenses.txt +1 -1
  27. package/dist/4110.b9ebfd9a7382c450.js +1 -0
  28. package/dist/4186.2fd0537d5bc6d882.js +1 -0
  29. package/dist/4211.b6b9f495b100e985.js +1 -0
  30. package/dist/4575.1fee055d10b57afc.js +1 -0
  31. package/dist/4842.ccf765ed3e9753a7.js +1 -0
  32. package/dist/485.7870367c9475fed8.js +1 -0
  33. package/dist/{4895.a54759704d1994b1.js → 4895.fa7b24d66157c531.js} +1 -1
  34. package/dist/5334.e0a2450fc295f659.js +1 -0
  35. package/dist/5421.2c2c0fbf926792db.js +1 -0
  36. package/dist/5434.0997994b319a866a.js +1 -0
  37. package/dist/5679.e362a3e10cb1b953.js +1 -0
  38. package/dist/5761.6c20b09245ac31ef.js +1 -0
  39. package/dist/5765.8d761aef1708e8a1.js +1 -0
  40. package/dist/6236.969b45cad747277c.js +1 -0
  41. package/dist/6393.1b7b097f17d75290.js +1 -0
  42. package/dist/6401.f18e3c98d6deaa22.js +1 -0
  43. package/dist/6650.05ea40acd68697c3.js +1 -0
  44. package/dist/7368.85d940d08fdca6e2.js +1 -0
  45. package/dist/7436.4a62f7ef13cffb21.js +1 -0
  46. package/dist/7470.d24359dc7a3ef75a.js +1 -0
  47. package/dist/7649.8e5ff8a951b474e0.js +1 -0
  48. package/dist/7975.d3d7064d527ac017.js +1 -0
  49. package/dist/7977.85b17bdb465e9a90.js +1 -0
  50. package/dist/7987.c1637bec96a9cc03.js +1 -0
  51. package/dist/8125.8390bc1b477ec6b9.js +1 -0
  52. package/dist/8266.0bf85311cf40ddff.js +1 -0
  53. package/dist/8296.fe54c3787977fad3.js +1 -0
  54. package/dist/885.7e1ec0f82adbdd6f.js +1 -0
  55. package/dist/891.fee03277c7f1c29d.js +1 -0
  56. package/dist/{913.4580b4ce4307a40f.js → 913.e49eb351997bc25c.js} +1 -1
  57. package/dist/9243.eaa2c312b42fc4b3.js +1 -0
  58. package/dist/9575.8404e98d640fd9f9.js +1 -0
  59. package/dist/9939.537c5e355804804b.js +1 -0
  60. package/dist/assets/images/icons/api-group-light.svg +11 -0
  61. package/dist/assets/images/icons/api-group.svg +5 -5
  62. package/dist/assets/images/icons/api-maker-deployment-light.svg +5 -0
  63. package/dist/assets/images/icons/api-maker-deployment.svg +3 -3
  64. package/dist/assets/images/icons/api-user-light.svg +12 -0
  65. package/dist/assets/images/icons/api-user.svg +2 -2
  66. package/dist/assets/images/icons/comparator-light.svg +61 -0
  67. package/dist/assets/images/icons/comparator.svg +2 -2
  68. package/dist/assets/images/icons/custom-light.svg +6 -0
  69. package/dist/assets/images/icons/custom.svg +5 -5
  70. package/dist/assets/images/icons/database-light.svg +29 -0
  71. package/dist/assets/images/icons/database.svg +6 -6
  72. package/dist/assets/images/icons/db-m-light.svg +10 -0
  73. package/dist/assets/images/icons/db-m.svg +4 -4
  74. package/dist/assets/images/icons/db-token-generator-light.svg +4 -0
  75. package/dist/assets/images/icons/db-token-generator.svg +4 -0
  76. package/dist/assets/images/icons/dev-light.svg +13 -0
  77. package/dist/assets/images/icons/dev.svg +4 -4
  78. package/dist/assets/images/icons/diagram-light.svg +28 -0
  79. package/dist/assets/images/icons/diagram.svg +9 -9
  80. package/dist/assets/images/icons/event-light.svg +16 -0
  81. package/dist/assets/images/icons/event.svg +4 -4
  82. package/dist/assets/images/icons/film-movies-icon.svg +3 -3
  83. package/dist/assets/images/icons/finder-light.svg +14 -0
  84. package/dist/assets/images/icons/finder.svg +3 -3
  85. package/dist/assets/images/icons/i18n-light.svg +11 -0
  86. package/dist/assets/images/icons/i18n.svg +6 -6
  87. package/dist/assets/images/icons/increment-light.svg +5 -0
  88. package/dist/assets/images/icons/increment.svg +2 -2
  89. package/dist/assets/images/icons/license-light.svg +6 -0
  90. package/dist/assets/images/icons/license.svg +4 -4
  91. package/dist/assets/images/icons/log-light.svg +17 -0
  92. package/dist/assets/images/icons/log-profile-light.svg +23 -0
  93. package/dist/assets/images/icons/log-profile.svg +7 -7
  94. package/dist/assets/images/icons/log.svg +6 -6
  95. package/dist/assets/images/icons/masters.svg +3 -3
  96. package/dist/assets/images/icons/native-process-logs-light.svg +13 -0
  97. package/dist/assets/images/icons/native-process-logs.svg +6 -6
  98. package/dist/assets/images/icons/nodes-light.svg +5 -0
  99. package/dist/assets/images/icons/nodes.svg +2 -2
  100. package/dist/assets/images/icons/notes-light.svg +16 -0
  101. package/dist/assets/images/icons/notes.svg +2 -2
  102. package/dist/assets/images/icons/process_initializers-light.svg +20 -0
  103. package/dist/assets/images/icons/process_initializers.svg +7 -7
  104. package/dist/assets/images/icons/rsa_encryption-light.svg +6 -0
  105. package/dist/assets/images/icons/rsa_encryption.svg +2 -2
  106. package/dist/assets/images/icons/sandbox-light.svg +11 -0
  107. package/dist/assets/images/icons/sandbox.svg +2 -2
  108. package/dist/assets/images/icons/scanning-period-light.svg +13 -0
  109. package/dist/assets/images/icons/scanning-period.svg +4 -4
  110. package/dist/assets/images/icons/schedulers-light.svg +8 -0
  111. package/dist/assets/images/icons/schedulers.svg +5 -5
  112. package/dist/assets/images/icons/secret-light.svg +15 -0
  113. package/dist/assets/images/icons/secret.svg +2 -2
  114. package/dist/assets/images/icons/swagger-logo-light.svg +9 -0
  115. package/dist/assets/images/icons/swagger-logo.svg +2 -2
  116. package/dist/assets/images/icons/systems-light.svg +8 -0
  117. package/dist/assets/images/icons/systems.svg +3 -3
  118. package/dist/assets/images/icons/testing-light.svg +12 -0
  119. package/dist/assets/images/icons/testing.svg +6 -6
  120. package/dist/assets/images/icons/third-party-light.svg +19 -0
  121. package/dist/assets/images/icons/third-party.svg +4 -4
  122. package/dist/assets/images/icons/typescript-light.svg +12 -0
  123. package/dist/assets/images/icons/typescript.svg +2 -2
  124. package/dist/assets/images/icons/ui-maker-light.svg +23 -0
  125. package/dist/assets/images/icons/ui-maker.svg +10 -10
  126. package/dist/assets/images/icons/utility-light.svg +19 -0
  127. package/dist/assets/images/icons/utility.svg +2 -2
  128. package/dist/assets/images/icons/vulnerability-light.svg +20 -0
  129. package/dist/assets/images/icons/vulnerability.svg +5 -5
  130. package/dist/assets/images/icons/web-light.svg +16 -0
  131. package/dist/assets/images/icons/web.svg +3 -3
  132. package/dist/assets/images/logo/api_maker_logo_dark.svg +29 -0
  133. package/dist/assets/images/logo/api_maker_logo_full_white.svg +29 -0
  134. package/dist/assets/images/logo/api_maker_logo_light.svg +22 -0
  135. package/dist/assets/images/logo/apple-touch-icon.png +0 -0
  136. package/dist/assets/images/logo/favicon-192x192.png +0 -0
  137. package/dist/assets/images/logo/favicon-32x32.png +0 -0
  138. package/dist/assets/images/logo/favicon-512x512.png +0 -0
  139. package/dist/assets/images/logo/logo_docs-light.svg +15 -0
  140. package/dist/assets/images/logo/logo_docs.svg +3 -3
  141. package/dist/assets/images/logo/logo_store-light.svg +17 -0
  142. package/dist/assets/images/logo/logo_store.svg +3 -3
  143. package/dist/assets/images/logo/store_logo-dark.svg +11 -0
  144. package/dist/assets/images/logo/store_logo-light.svg +11 -0
  145. package/dist/assets/images/logo/store_logo.svg +2 -2
  146. package/dist/assets/primeng-theme/primeng-theme-overrides.scss +1426 -31
  147. package/dist/assets/public/diagram-viewer/index.html +59 -20
  148. package/dist/assets/public/diagram-viewer/index.js +1 -1
  149. package/dist/assets/public/monaco-editor/index.html +105 -9
  150. package/dist/assets/public/monaco-editor/index.js +1 -1
  151. package/dist/assets/public/table-viewer/index.html +124 -38
  152. package/dist/assets/schema-types/InterfaceProps.ts +71 -13
  153. package/dist/assets/schema-types/store-types.ts +2 -0
  154. package/dist/assets/schema-types/types.ts +65 -17
  155. package/dist/assets/styles/bootstrap-overrides.scss +170 -7
  156. package/dist/assets/styles/colors-dark.scss +320 -33
  157. package/dist/assets/styles/colors-light.scss +453 -9
  158. package/dist/assets/styles/out/styles.css.map +1 -1
  159. package/dist/assets/styles/styles.scss +213 -24
  160. package/dist/assets/styles/variables.scss +2 -2
  161. package/dist/bootstrap-overrides.css +1 -0
  162. package/dist/colors-dark.css +1 -0
  163. package/dist/colors-light.css +1 -0
  164. package/dist/{common.912ad7a22e5de63a.js → common.86c514055f788290.js} +1 -1
  165. package/dist/index.html +111 -27
  166. package/dist/main.0ac98a72f1b9c1dd.js +1 -0
  167. package/dist/runtime.0e9fc303007ced09.js +1 -0
  168. package/dist/styles-global.css +1 -0
  169. package/dist/{styles.242217e145c3f7ab.css → styles.c1032bc4f4d7829b.css} +1 -1
  170. package/main.js +1 -1
  171. package/package-sandbox.json +1 -1
  172. package/package.json +9 -9
  173. package/pnpm-workspace.yaml +15 -0
  174. package/sandbox.js +1 -1
  175. package/src/assets/schema-types/store-types.ts +2 -0
  176. package/src/assets/schema-types/types.ts +65 -17
  177. package/src/schema-types/store-types.js +2 -0
  178. package/src/schema-types/types.js +1 -0
  179. package/src/tools/.github/copilot-instructions.md +17 -9
  180. package/src/tools/local-client.js +1 -1
  181. package/dist/1025.a0db9347453600d0.js +0 -1
  182. package/dist/1097.d0d6fd13031aa1f0.js +0 -1
  183. package/dist/148.1dc7d9e0cfe45510.js +0 -1
  184. package/dist/1558.0aae3e5c538d3815.js +0 -1
  185. package/dist/1678.ed1e4a269e0f42bc.js +0 -1
  186. package/dist/1754.691f142aa1eabe28.js +0 -1
  187. package/dist/1928.2b376f7cf66ed038.js +0 -1
  188. package/dist/1957.ab7fda21d9978597.js +0 -1
  189. package/dist/2140.1ce150285aebe3cc.js +0 -1
  190. package/dist/2295.4fa1d4b5ff482f3a.js +0 -1
  191. package/dist/238.891233aa670bdd2b.js +0 -1
  192. package/dist/2473.4b2bb1ad5b1cc99d.js +0 -1
  193. package/dist/2579.6558b67b2d98f116.js +0 -1
  194. package/dist/2714.0d6939336a02dd0a.js +0 -1
  195. package/dist/2735.86437a8639a0c1bb.js +0 -1
  196. package/dist/292.f6482cd1a572ba4b.js +0 -1
  197. package/dist/3139.0921102d181c220d.js +0 -1
  198. package/dist/3450.9b5cfc83039b02b5.js +0 -1
  199. package/dist/3664.4a1dd7f16f8b57fb.js +0 -1
  200. package/dist/4110.d108e786ecbdfd1b.js +0 -1
  201. package/dist/4186.ac3e8af0efeeac14.js +0 -1
  202. package/dist/4211.1bfe72ce0b7b2f76.js +0 -1
  203. package/dist/443.7e3946651373e09a.js +0 -1
  204. package/dist/4575.169008cbbbae66bb.js +0 -1
  205. package/dist/4842.e7649d81606ad80d.js +0 -1
  206. package/dist/485.b546656b466cb8a4.js +0 -1
  207. package/dist/5334.72c1c6d89fdf136e.js +0 -1
  208. package/dist/5421.2067001c10533303.js +0 -1
  209. package/dist/5679.4e22239895c7f520.js +0 -1
  210. package/dist/5761.331ca41ab64cca92.js +0 -1
  211. package/dist/5765.2b640be5d177d794.js +0 -1
  212. package/dist/6236.6c0fc469f0c96549.js +0 -1
  213. package/dist/6393.173ecdfc3b022973.js +0 -1
  214. package/dist/6401.374823002788afe7.js +0 -1
  215. package/dist/6650.1d18ee25901d68be.js +0 -1
  216. package/dist/7368.9ebf62d518f8ad7a.js +0 -1
  217. package/dist/7436.640bf5fe48814cbe.js +0 -1
  218. package/dist/7470.b1ce7eedb9cedb2d.js +0 -1
  219. package/dist/7649.ab4744cfe713eec0.js +0 -1
  220. package/dist/7975.578a00ebd1160a1e.js +0 -1
  221. package/dist/7977.afeded970bac8b66.js +0 -1
  222. package/dist/7987.5958ad5b81873058.js +0 -1
  223. package/dist/8125.b2f908096882ed45.js +0 -1
  224. package/dist/8266.aca59a0a04590ab1.js +0 -1
  225. package/dist/8296.a387c28f5702c5e8.js +0 -1
  226. package/dist/885.be44d92efca1aaf6.js +0 -1
  227. package/dist/891.5e08c81e5200413e.js +0 -1
  228. package/dist/9243.08630ad94e1fddba.js +0 -1
  229. package/dist/9575.30ac91b65602c0ca.js +0 -1
  230. package/dist/9939.a3389cc6764e3cbc.js +0 -1
  231. package/dist/assets/images/logo/API Maker Logo 2021 black.svg +0 -47
  232. package/dist/assets/images/logo/API Maker Logo 2021.svg +0 -49
  233. package/dist/assets/images/logo/logo.svg +0 -41
  234. package/dist/assets/styles/out/bootstrap-overrides.css +0 -2
  235. package/dist/assets/styles/out/colors-dark.css +0 -2
  236. package/dist/assets/styles/out/colors-light.css +0 -2
  237. package/dist/assets/styles/out/monaco-editor-overrides.css +0 -2
  238. package/dist/assets/styles/out/styles.css +0 -2
  239. package/dist/assets/styles/out/variables.css +0 -2
  240. package/dist/favicon.ico +0 -0
  241. package/dist/main.2046fb4b0dd1b8e0.js +0 -1
  242. package/dist/runtime.a86d5cd27767506e.js +0 -1
@@ -1 +1 @@
1
- !function(){const e="SET_VALUE",o="GET_VALUE",t="SET_OPTIONS",n="SET_LANGUAGE",r="FORMAT_DOCUMENT",a="INSERT_AT_CURSOR",i="SET_EXTRA_LIBS",c="SET_TS_COMPILER_OPTIONS",d="SET_TS_DIAGNOSTICS_OPTIONS",s="LOAD_TYPES",l="INIT_DIFF",u="RESET",g="FOCUS",f="SET_POSITION",y="SET_SELECTION",p="SET_SCROLL_TOP",k="SET_SCROLL_LEFT",m="TRIGGER",h="ADD_ACTION",C="DELTA_DECORATIONS",E="REMOVE_DECORATIONS",D="REVEAL_POSITION",b="EDITOR_READY",S="CONTENT_CHANGED",A="BLUR",O="VALUE_RESPONSE",I="CURSOR_POSITION_CHANGED",T="CURSOR_SELECTION_CHANGED",w="FONT_SIZE_CHANGED",v="ACTION_TRIGGERED",_="TYPES_LOADING",B="TYPES_LOADED";let M=null,L=null;const F={};let N={};function P(e){window.parent.postMessage(e,"*")}function R(e){F[e]&&P({type:v,payload:{actionId:e}})}const x=[];function U(e){if(M)try{e(M)}catch(e){console.error("[monaco-iframe] whenEditorReady callback failed",e)}else x.push(e)}const G="monaco_ct_v1_",H="monaco_ct_inflight",j=45e3;function V(e,o,t){return G+function(e){let o=5381;for(let t=0;t<e.length;t++)o=Math.imul(o,31)+e.charCodeAt(t)|0;return(o>>>0).toString(36)}(e+"|"+o+"|"+t)}async function K(e){try{const o=localStorage.getItem(e);return o?await async function(e){const o=atob(e),t=new Uint8Array(o.length);for(let e=0;e<o.length;e++)t[e]=o.charCodeAt(e);const n=new DecompressionStream("gzip"),r=n.writable.getWriter();r.write(t),r.close();const a=[],i=n.readable.getReader();for(;;){const e=await i.read();if(e.done)break;a.push(e.value)}const c=a.reduce((function(e,o){return e+o.length}),0),d=new Uint8Array(c);let s=0;return a.forEach((function(e){d.set(e,s),s+=e.length})),JSON.parse((new TextDecoder).decode(d))}(o):null}catch(o){try{localStorage.removeItem(e)}catch(e){}return null}}async function W(e,o){try{const t=await async function(e){const o=(new TextEncoder).encode(JSON.stringify(e)),t=new CompressionStream("gzip"),n=t.writable.getWriter();n.write(o),n.close();const r=[],a=t.readable.getReader();for(;;){const e=await a.read();if(e.done)break;r.push(e.value)}const i=r.reduce((function(e,o){return e+o.length}),0),c=new Uint8Array(i);let d=0;r.forEach((function(e){c.set(e,d),d+=e.length}));let s="";return c.forEach((function(e){s+=String.fromCharCode(e)})),btoa(s)}(o);localStorage.setItem(e,t)}catch(e){!e||"QuotaExceededError"!==e.name&&22!==e.code||console.warn("[monaco-iframe] Common types cache skipped — localStorage quota exceeded")}}function z(){try{const e=localStorage.getItem(H);return!!e&&Date.now()-Number(e)<j}catch(e){return!1}}function J(){try{localStorage.removeItem(H)}catch(e){}}function q(){M&&(M.dispose(),M=null),L&&(L.dispose(),L=null),N={},document.getElementById("editor").innerHTML=""}function Y(e){q();const o=Object.assign({},{automaticLayout:!0,minimap:{enabled:!1},theme:"vscode-dark-plus",fontSize:Number(localStorage.getItem("MONACO_FONT_SIZE")||0)||14,fontFamily:'JetBrains Mono, MonoLisa, Menlo, Monaco, "Courier New", "Lucida Console", monospace',wordWrap:"off",wrappingIndent:"indent",renderLineHighlight:"all",cursorBlinking:"blink",cursorSmoothCaretAnimation:"off",smoothScrolling:!1,bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0,indentation:!0},"semanticHighlighting.enabled":!0,stickyScroll:{enabled:!1}},e||{});var t;M=monaco.editor.create(document.getElementById("editor"),o),(t=M).addCommand(monaco.KeyMod.Shift|monaco.KeyCode.Delete,(function(){t.trigger("keyboard","editor.action.deleteLines")})),t.addCommand(monaco.KeyMod.Shift|monaco.KeyCode.Backspace,(function(){t.trigger("keyboard","editor.action.deleteLines")})),M.onDidChangeModelContent((function(){P({type:S,payload:{value:M.getValue()}})})),M.onDidBlurEditorText((function(){P({type:A,payload:{value:M.getValue()}})})),M.onDidChangeConfiguration((function(e){const o=monaco.editor.EditorOption;if(e.hasChanged(o.fontSize)){const e=M.getOptions().get(o.fontSize);localStorage.setItem("MONACO_FONT_SIZE",e),P({type:w,payload:{fontSize:e}})}})),M.onDidChangeCursorPosition((function(e){P({type:I,payload:{position:e.position}})})),M.onDidChangeCursorSelection((function(e){P({type:T,payload:{selection:e.selection}})})),function(){if(!M||0===x.length)return;x.splice(0).forEach((function(e){try{e(M)}catch(e){console.error("[monaco-iframe] Pending editor callback failed",e)}}))}()}monaco.editor.defineTheme("vscode-dark-plus",{base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:"6A9955",fontStyle:"italic"},{token:"comment.line",foreground:"6A9955",fontStyle:"italic"},{token:"comment.block",foreground:"6A9955",fontStyle:"italic"},{token:"keyword",foreground:"569CD6"},{token:"keyword.control",foreground:"C586C0"},{token:"keyword.operator",foreground:"569CD6"},{token:"storage.type",foreground:"569CD6"},{token:"storage.modifier",foreground:"569CD6"},{token:"type",foreground:"4EC9B0"},{token:"entity.name.type",foreground:"4EC9B0"},{token:"entity.name.class",foreground:"4EC9B0"},{token:"support.type",foreground:"4EC9B0"},{token:"entity.name.function",foreground:"DCDCAA"},{token:"support.function",foreground:"DCDCAA"},{token:"identifier",foreground:"9CDCFE"},{token:"string",foreground:"CE9178"},{token:"string.template",foreground:"CE9178"},{token:"number",foreground:"B5CEA8"},{token:"constant.language",foreground:"569CD6"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"variable.language",foreground:"569CD6"},{token:"operator",foreground:"D4D4D4"},{token:"delimiter",foreground:"D4D4D4"},{token:"annotation",foreground:"DCDCAA"},{token:"regexp",foreground:"D16969"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"tag.css",foreground:"D7BA7D"},{token:"tag.scss",foreground:"D7BA7D"},{token:"tag.less",foreground:"D7BA7D"},{token:"entity.name.tag.css",foreground:"D7BA7D"},{token:"attribute.name.css",foreground:"9CDCFE"},{token:"attribute.name.scss",foreground:"9CDCFE"},{token:"attribute.name.less",foreground:"9CDCFE"},{token:"attribute.value.css",foreground:"CE9178"},{token:"attribute.value.scss",foreground:"CE9178"},{token:"attribute.value.less",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"9CDCFE"},{token:"attribute.value.hex.css",foreground:"CE9178"},{token:"string.css",foreground:"CE9178"},{token:"string.scss",foreground:"CE9178"},{token:"string.less",foreground:"CE9178"},{token:"keyword.css",foreground:"C586C0"},{token:"keyword.scss",foreground:"C586C0"},{token:"keyword.less",foreground:"C586C0"},{token:"number.css",foreground:"B5CEA8"},{token:"number.scss",foreground:"B5CEA8"},{token:"delimiter.css",foreground:"D4D4D4"},{token:"delimiter.scss",foreground:"D4D4D4"},{token:"delimiter.less",foreground:"D4D4D4"},{token:"pseudo.css",foreground:"D7BA7D"},{token:"unit.css",foreground:"9CDCFE"},{token:"variable.css",foreground:"9CDCFE"},{token:"variable.scss",foreground:"9CDCFE"},{token:"variable.less",foreground:"9CDCFE"},{token:"selector.css",foreground:"D7BA7D"},{token:"operator.css",foreground:"D4D4D4"}],colors:{"editor.background":"#1E1E1E","editor.foreground":"#D4D4D4","editor.lineHighlightBackground":"#2A2D2E","editor.selectionBackground":"#264F78","editor.inactiveSelectionBackground":"#3A3D41","editor.selectionHighlightBackground":"#ADD6FF26","editor.wordHighlightBackground":"#575757B8","editor.wordHighlightStrongBackground":"#004972B8","editorLineNumber.foreground":"#858585","editorLineNumber.activeForeground":"#C6C6C6","editorCursor.foreground":"#AEAFAD","editorWhitespace.foreground":"#3B4048","editorIndentGuide.background":"#404040","editorIndentGuide.activeBackground":"#707070","editorBracketMatch.background":"#0064001A","editorBracketMatch.border":"#888888","editor.findMatchBackground":"#515C6A","editor.findMatchHighlightBackground":"#EA5C0055","editorOverviewRuler.findMatchForeground":"#D186167E","editorSuggestWidget.background":"#252526","editorSuggestWidget.border":"#454545","editorSuggestWidget.foreground":"#D4D4D4","editorSuggestWidget.selectedBackground":"#062F4A","editorSuggestWidget.highlightForeground":"#18A3FF","editorHoverWidget.background":"#252526","editorHoverWidget.border":"#454545","peekView.border":"#007ACC","peekViewEditor.background":"#001F33","peekViewResult.background":"#252526","scrollbarSlider.background":"#79797966","scrollbarSlider.hoverBackground":"#646464B3","scrollbarSlider.activeBackground":"#BFBFBF66"}});let Z=0,Q=null;async function X(e,o){Q=e;const t=++Z;P({type:_});const n={"Content-Type":"application/json",authorization:e.token||""},r=e.hostAndPort,a=e.adminId,i=JSON.stringify(e.typesRequestBody||{});if(!o){if(!!!await K(V(r,a,i))&&(await new Promise((function(e){setTimeout(e,5e3)})),t!==Z))return}const c=[];try{const o=await Promise.all([fetch(e.typesUrl).then((function(e){return e.text()})),fetch(e.storeTypesUrl).then((function(e){return e.text()}))]);c.push({content:o[0],filePath:"file:///node_modules/@types/types/index.d.ts"}),c.push({content:o[1],filePath:"file:///node_modules/@types/store-types/index.d.ts"})}catch(e){console.error("[monaco-iframe] Failed to load asset types",e)}try{const e=V(r,a,i);let t=null;if(o||(t=await K(e)),t||z()&&(t=await(d=e,new Promise((function(e){let o=0;const t=setInterval((async function(){o++;try{const o=await K(d);if(o)return clearInterval(t),void e(o)}catch(e){}(!z()||o>=120)&&(clearInterval(t),e(null))}),500)})))),!t){!function(){try{localStorage.setItem(H,String(Date.now()))}catch(e){}}();try{t=await fetch(r+"/api/sites/types/"+a+"/get-common-types-from-be",{method:"POST",headers:n,body:i}).then((function(e){return e.json()})),t&&await W(e,t)}finally{J()}}t&&t.data&&Object.entries(t.data).forEach((function(e){c.push({content:e[1],filePath:e[0]})}))}catch(e){console.error("[monaco-iframe] Failed to load common types",e)}var d;try{const e=await fetch(r+"/api/sites/types/"+a+"/utility-class-types",{method:"POST",headers:n,body:i}).then((function(e){return e.json()}));e&&e.data&&Object.entries(e.data).forEach((function(e){c.push({content:e[1],filePath:e[0]})}))}catch(e){console.error("[monaco-iframe] Failed to load utility-class types",e)}try{const e=await fetch(r+"/api/sites/types/"+a+"/db-interfaces",{method:"POST",headers:n,body:JSON.stringify({})}).then((function(e){return e.json()}));e&&Object.entries(e).forEach((function(e){c.push({content:e[1],filePath:e[0]})}))}catch(e){console.error("[monaco-iframe] Failed to load DB interfaces",e)}t===Z&&(monaco.languages.typescript.typescriptDefaults.setExtraLibs(c),P({type:B}))}document.fonts.ready.then((function(){Y(),P({type:b})})),function(){const e=document.getElementById("reload-types-btn");e&&e.addEventListener("click",(async function(){if(Q){e.classList.add("loading"),e.textContent="↻ Loading…",function(){try{Object.keys(localStorage).forEach((function(e){e.startsWith(G)&&localStorage.removeItem(e)}))}catch(e){}J()}();try{await X(Q,!0)}finally{e.classList.remove("loading"),e.textContent="↺ Types"}}}))}(),window.addEventListener("keydown",(function(e){if(M)return!e.shiftKey||e.ctrlKey||e.metaKey||e.altKey||"Delete"!==e.key?void(function(e){return(e.ctrlKey||e.metaKey)&&e.altKey&&e.shiftKey&&("Backslash"===e.code||"\\"===e.key||"|"===e.key)}(e)&&(e.preventDefault(),e.stopPropagation(),R("idMonacoToggleZoom"))):(e.preventDefault(),e.stopPropagation(),M.trigger("keyboard","editor.action.deleteLines",void 0),void R("idMonacoDeleteLine"))}),!0),window.addEventListener("message",(function(S){const A=S.data;if(A&&A.type)switch(A.type){case e:U((function(e){e.setValue(A.payload.value||"")}));break;case o:{const e=A.requestId;U((function(o){P({type:O,payload:{value:o.getValue()},requestId:e})}));break}case t:A.payload&&U((function(e){const o=A.payload._modelUri,t=Object.assign({},A.payload);if(delete t._modelUri,e.updateOptions(t),o){const n=e.getModel()&&e.getModel().getLanguageId(),r=t.language||"plaintext"!==n&&n||"typescript",a=e.getValue(),i=monaco.editor.createModel(a,r,monaco.Uri.parse(o));e.setModel(i)}}));break;case n:U((function(e){const o=e.getModel();o&&monaco.editor.setModelLanguage(o,A.payload.language)}));break;case r:U((function(e){e.trigger(void 0,"editor.action.formatDocument",void 0)}));break;case a:A.payload&&null!=A.payload.text&&U((function(e){const o=e.getSelection();e.executeEdits("iframe-insert",[{identifier:{major:1,minor:1},range:o,text:A.payload.text,forceMoveMarkers:!0}])}));break;case s:if(A.payload){X(A.payload);const e=document.getElementById("reload-types-btn");e&&e.classList.add("visible")}break;case i:A.payload&&Array.isArray(A.payload.libs)&&monaco.languages.typescript.typescriptDefaults.setExtraLibs(A.payload.libs);break;case c:A.payload&&monaco.languages.typescript.typescriptDefaults.setCompilerOptions(A.payload);break;case d:A.payload&&monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(A.payload);break;case f:A.payload&&A.payload.position&&U((function(e){e.setPosition(A.payload.position)}));break;case y:A.payload&&A.payload.selection&&U((function(e){e.setSelection(A.payload.selection)}));break;case p:A.payload&&null!=A.payload.top&&U((function(e){e.setScrollTop(A.payload.top)}));break;case k:A.payload&&null!=A.payload.left&&U((function(e){e.setScrollLeft(A.payload.left)}));break;case m:A.payload&&U((function(e){e.trigger(A.payload.source,A.payload.handlerId,A.payload.payload)}));break;case h:if(A.payload){const e=A.payload;F[e.id]=!0,U((function(o){o.addAction({id:e.id,label:e.label,keybindings:e.keybindings,precondition:e.precondition||null,keybindingContext:e.keybindingContext||null,contextMenuGroupId:e.contextMenuGroupId,contextMenuOrder:e.contextMenuOrder,run:function(){P({type:v,payload:{actionId:e.id}})}})}))}break;case C:A.payload&&U((function(e){const o=A.payload.oldDecorationIds||[],t=A.payload.newDecorations||[],n=A.payload.newParentIds||[],r=[];o.forEach((function(e){N[e]&&(N[e].forEach((function(e){r.push(e)})),delete N[e])}));const a=e.deltaDecorations(r,t);n.forEach((function(e,o){N[e]=a[o]?[a[o]]:[]}))}));break;case E:A.payload&&Array.isArray(A.payload.decorationIds)&&U((function(e){const o=[];A.payload.decorationIds.forEach((function(e){N[e]&&(N[e].forEach((function(e){o.push(e)})),delete N[e])})),o.length&&e.deltaDecorations(o,[])}));break;case l:{const e=A.payload||{};q();const o=Math.round(1e9*Math.random()),t=Math.round(1e9*Math.random()),n=e.language||"typescript",r=monaco.editor.createModel(e.text||"",n,monaco.Uri.parse("file:///"+o+"_Main.ts")),a=monaco.editor.createModel(e.editedText||"",n,monaco.Uri.parse("file:///"+t+"_Main.ts"));L=monaco.editor.createDiffEditor(document.getElementById("editor"),{originalEditable:!!e.isEditable,readOnly:!!e.isReadOnly,renderSideBySide:!0,automaticLayout:!0,theme:"vscode-dark-plus"}),L.setModel({original:r,modified:a});break}case u:Y(A.payload||{}),P({type:b});break;case g:U((function(e){e.focus()}));break;case D:A.payload&&A.payload.position&&U((function(e){e.revealPositionInCenter(A.payload.position)}))}}))}();
1
+ !function(){const e="SET_VALUE",o="GET_VALUE",t="SET_OPTIONS",n="SET_THEME",r="SET_LANGUAGE",a="FORMAT_DOCUMENT",i="INSERT_AT_CURSOR",d="SET_EXTRA_LIBS",c="SET_TS_COMPILER_OPTIONS",u="SET_TS_DIAGNOSTICS_OPTIONS",s="LOAD_TYPES",l="INIT_DIFF",g="RESET",f="FOCUS",k="SET_POSITION",p="SET_SELECTION",y="SET_SCROLL_TOP",F="SET_SCROLL_LEFT",m="TRIGGER",b="ADD_ACTION",E="DELTA_DECORATIONS",C="REMOVE_DECORATIONS",h="REVEAL_POSITION",D="EDITOR_READY",A="CONTENT_CHANGED",S="BLUR",v="VALUE_RESPONSE",B="CURSOR_POSITION_CHANGED",I="CURSOR_SELECTION_CHANGED",w="FONT_SIZE_CHANGED",O="ACTION_TRIGGERED",T="TYPES_LOADING",L="TYPES_LOADED";let _=null,M=null;const N={};let R={};function P(e){window.parent.postMessage(e,"*")}function H(e){N[e]&&P({type:O,payload:{actionId:e}})}const x=[];function W(e){if(_)try{e(_)}catch(e){console.error("[monaco-iframe] whenEditorReady callback failed",e)}else x.push(e)}const G="monaco_ct_v1_",z="monaco_ct_inflight",U=45e3;function V(e,o,t){return G+function(e){let o=5381;for(let t=0;t<e.length;t++)o=Math.imul(o,31)+e.charCodeAt(t)|0;return(o>>>0).toString(36)}(e+"|"+o+"|"+t)}async function j(e){try{const o=localStorage.getItem(e);return o?await async function(e){const o=atob(e),t=new Uint8Array(o.length);for(let e=0;e<o.length;e++)t[e]=o.charCodeAt(e);const n=new DecompressionStream("gzip"),r=n.writable.getWriter();r.write(t),r.close();const a=[],i=n.readable.getReader();for(;;){const e=await i.read();if(e.done)break;a.push(e.value)}const d=a.reduce((function(e,o){return e+o.length}),0),c=new Uint8Array(d);let u=0;return a.forEach((function(e){c.set(e,u),u+=e.length})),JSON.parse((new TextDecoder).decode(c))}(o):null}catch(o){try{localStorage.removeItem(e)}catch(e){}return null}}async function q(e,o){try{const t=await async function(e){const o=(new TextEncoder).encode(JSON.stringify(e)),t=new CompressionStream("gzip"),n=t.writable.getWriter();n.write(o),n.close();const r=[],a=t.readable.getReader();for(;;){const e=await a.read();if(e.done)break;r.push(e.value)}const i=r.reduce((function(e,o){return e+o.length}),0),d=new Uint8Array(i);let c=0;r.forEach((function(e){d.set(e,c),c+=e.length}));let u="";return d.forEach((function(e){u+=String.fromCharCode(e)})),btoa(u)}(o);localStorage.setItem(e,t)}catch(e){!e||"QuotaExceededError"!==e.name&&22!==e.code||console.warn("[monaco-iframe] Common types cache skipped — localStorage quota exceeded")}}function K(){try{const e=localStorage.getItem(z);return!!e&&Date.now()-Number(e)<U}catch(e){return!1}}function J(){try{localStorage.removeItem(z)}catch(e){}}function Y(){try{return"LIGHT"===localStorage.getItem("THEME")?"vscode-light-plus":"vscode-dark-plus"}catch(e){return"vscode-dark-plus"}}function Z(e){try{document.documentElement.classList.toggle("light",!!e)}catch(e){}}function Q(){try{return"LIGHT"===localStorage.getItem("THEME")}catch(e){return!1}}function X(){_&&(_.dispose(),_=null),M&&(M.dispose(),M=null),R={},document.getElementById("editor").innerHTML=""}function $(e){X();const o=Object.assign({},{automaticLayout:!0,minimap:{enabled:!1},theme:Y(),fontSize:Number(localStorage.getItem("MONACO_FONT_SIZE")||0)||14,fontFamily:'JetBrains Mono, MonoLisa, Menlo, Monaco, "Courier New", "Lucida Console", monospace',wordWrap:"off",wrappingIndent:"indent",renderLineHighlight:"all",cursorBlinking:"blink",cursorSmoothCaretAnimation:"off",smoothScrolling:!1,bracketPairColorization:{enabled:!0},guides:{bracketPairs:!0,indentation:!0},"semanticHighlighting.enabled":!0,stickyScroll:{enabled:!1},scrollbar:{verticalScrollbarSize:14,horizontalScrollbarSize:14,verticalSliderSize:14,horizontalSliderSize:14,useShadows:!1}},e||{});var t;_=monaco.editor.create(document.getElementById("editor"),o),(t=_).addCommand(monaco.KeyMod.Shift|monaco.KeyCode.Delete,(function(){t.trigger("keyboard","editor.action.deleteLines")})),t.addCommand(monaco.KeyMod.Shift|monaco.KeyCode.Backspace,(function(){t.trigger("keyboard","editor.action.deleteLines")})),_.onDidChangeModelContent((function(){P({type:A,payload:{value:_.getValue()}})})),_.onDidBlurEditorText((function(){P({type:S,payload:{value:_.getValue()}})})),_.onDidChangeConfiguration((function(e){const o=monaco.editor.EditorOption;if(e.hasChanged(o.fontSize)){const e=_.getOptions().get(o.fontSize);localStorage.setItem("MONACO_FONT_SIZE",e),P({type:w,payload:{fontSize:e}})}})),_.onDidChangeCursorPosition((function(e){P({type:B,payload:{position:e.position}})})),_.onDidChangeCursorSelection((function(e){P({type:I,payload:{selection:e.selection}})})),function(){if(!_||0===x.length)return;x.splice(0).forEach((function(e){try{e(_)}catch(e){console.error("[monaco-iframe] Pending editor callback failed",e)}}))}()}monaco.editor.defineTheme("vscode-dark-plus",{base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:"6A9955",fontStyle:"italic"},{token:"comment.line",foreground:"6A9955",fontStyle:"italic"},{token:"comment.block",foreground:"6A9955",fontStyle:"italic"},{token:"keyword",foreground:"569CD6"},{token:"keyword.control",foreground:"C586C0"},{token:"keyword.operator",foreground:"569CD6"},{token:"storage.type",foreground:"569CD6"},{token:"storage.modifier",foreground:"569CD6"},{token:"type",foreground:"4EC9B0"},{token:"entity.name.type",foreground:"4EC9B0"},{token:"entity.name.class",foreground:"4EC9B0"},{token:"support.type",foreground:"4EC9B0"},{token:"entity.name.function",foreground:"DCDCAA"},{token:"support.function",foreground:"DCDCAA"},{token:"identifier",foreground:"9CDCFE"},{token:"string",foreground:"CE9178"},{token:"string.template",foreground:"CE9178"},{token:"number",foreground:"B5CEA8"},{token:"constant.language",foreground:"569CD6"},{token:"variable",foreground:"9CDCFE"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"variable.language",foreground:"569CD6"},{token:"operator",foreground:"D4D4D4"},{token:"delimiter",foreground:"D4D4D4"},{token:"annotation",foreground:"DCDCAA"},{token:"regexp",foreground:"D16969"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"tag.css",foreground:"D7BA7D"},{token:"tag.scss",foreground:"D7BA7D"},{token:"tag.less",foreground:"D7BA7D"},{token:"entity.name.tag.css",foreground:"D7BA7D"},{token:"attribute.name.css",foreground:"9CDCFE"},{token:"attribute.name.scss",foreground:"9CDCFE"},{token:"attribute.name.less",foreground:"9CDCFE"},{token:"attribute.value.css",foreground:"CE9178"},{token:"attribute.value.scss",foreground:"CE9178"},{token:"attribute.value.less",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"9CDCFE"},{token:"attribute.value.hex.css",foreground:"CE9178"},{token:"string.css",foreground:"CE9178"},{token:"string.scss",foreground:"CE9178"},{token:"string.less",foreground:"CE9178"},{token:"keyword.css",foreground:"C586C0"},{token:"keyword.scss",foreground:"C586C0"},{token:"keyword.less",foreground:"C586C0"},{token:"number.css",foreground:"B5CEA8"},{token:"number.scss",foreground:"B5CEA8"},{token:"delimiter.css",foreground:"D4D4D4"},{token:"delimiter.scss",foreground:"D4D4D4"},{token:"delimiter.less",foreground:"D4D4D4"},{token:"pseudo.css",foreground:"D7BA7D"},{token:"unit.css",foreground:"9CDCFE"},{token:"variable.css",foreground:"9CDCFE"},{token:"variable.scss",foreground:"9CDCFE"},{token:"variable.less",foreground:"9CDCFE"},{token:"selector.css",foreground:"D7BA7D"},{token:"operator.css",foreground:"D4D4D4"}],colors:{"editor.background":"#0E1726","editor.foreground":"#D6E2F2","editor.lineHighlightBackground":"#16273D","editor.selectionBackground":"#2F6FB8AA","editor.inactiveSelectionBackground":"#2F6FB855","editor.selectionHighlightBackground":"#2F6FB840","editor.wordHighlightBackground":"#1F4A6E88","editor.wordHighlightStrongBackground":"#00893F55","editorLineNumber.foreground":"#5C7799","editorLineNumber.activeForeground":"#9EC3E8","editorCursor.foreground":"#61AFEF","editorWhitespace.foreground":"#3B4048","editorIndentGuide.background":"#404040","editorIndentGuide.activeBackground":"#707070","editorBracketMatch.background":"#0064001A","editorBracketMatch.border":"#888888","editor.findMatchBackground":"#515C6A","editor.findMatchHighlightBackground":"#EA5C0055","editorOverviewRuler.findMatchForeground":"#D186167E","editorSuggestWidget.background":"#141C29","editorSuggestWidget.border":"#23344A","editorSuggestWidget.foreground":"#D6E2F2","editorSuggestWidget.selectedBackground":"#0C53A4","editorSuggestWidget.selectedForeground":"#FFFFFF","editorSuggestWidget.selectedIconForeground":"#FFFFFF","editorSuggestWidget.highlightForeground":"#61AFEF","editorSuggestWidget.focusHighlightForeground":"#9EC3E8","editorHoverWidget.background":"#141C29","editorHoverWidget.border":"#23344A","editorHoverWidget.foreground":"#D6E2F2","peekView.border":"#007ACC","peekViewEditor.background":"#001F33","peekViewResult.background":"#252526","scrollbarSlider.background":"#1F4A6E99","scrollbarSlider.hoverBackground":"#245F9FCC","scrollbarSlider.activeBackground":"#1D6A5ACC","menu.background":"#141C29","menu.foreground":"#D6E2F2","menu.border":"#23344A","menu.selectionBackground":"#0C53A4","menu.selectionForeground":"#FFFFFF","menu.selectionBorder":"#0C53A4","menu.separatorBackground":"#23344A","quickInput.background":"#141C29","quickInput.foreground":"#D6E2F2","quickInputList.focusBackground":"#0C53A4","quickInputList.focusForeground":"#FFFFFF","quickInputList.focusIconForeground":"#FFFFFF","pickerGroup.foreground":"#61AFEF","pickerGroup.border":"#23344A","input.background":"#0E1726","input.foreground":"#D6E2F2","input.border":"#23344A","input.placeholderForeground":"#5C7799","inputOption.activeBorder":"#0C53A4","inputOption.activeBackground":"#0C53A455",focusBorder:"#61AFEF","widget.shadow":"#00000066","keybindingLabel.background":"#0E1726","keybindingLabel.foreground":"#D6E2F2","keybindingLabel.border":"#23344A","keybindingLabel.bottomBorder":"#23344A"}}),monaco.editor.defineTheme("vscode-light-plus",{base:"vs",inherit:!0,rules:[{token:"comment",foreground:"008000",fontStyle:"italic"},{token:"comment.line",foreground:"008000",fontStyle:"italic"},{token:"comment.block",foreground:"008000",fontStyle:"italic"},{token:"keyword",foreground:"0000FF"},{token:"keyword.control",foreground:"AF00DB"},{token:"keyword.operator",foreground:"0000FF"},{token:"storage.type",foreground:"0000FF"},{token:"storage.modifier",foreground:"0000FF"},{token:"type",foreground:"267F99"},{token:"entity.name.type",foreground:"267F99"},{token:"entity.name.class",foreground:"267F99"},{token:"support.type",foreground:"267F99"},{token:"entity.name.function",foreground:"795E26"},{token:"support.function",foreground:"795E26"},{token:"identifier",foreground:"001080"},{token:"variable",foreground:"001080"},{token:"variable.parameter",foreground:"001080"},{token:"variable.language",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.template",foreground:"A31515"},{token:"number",foreground:"098658"},{token:"constant.language",foreground:"0000FF"},{token:"constant.numeric",foreground:"098658"},{token:"operator",foreground:"000000"},{token:"delimiter",foreground:"000000"},{token:"annotation",foreground:"795E26"},{token:"regexp",foreground:"811F3F"},{token:"key",foreground:"0451A5"},{token:"string.key.json",foreground:"0451A5"},{token:"string.value.json",foreground:"A31515"},{token:"tag.css",foreground:"800000"},{token:"tag.scss",foreground:"800000"},{token:"tag.less",foreground:"800000"},{token:"entity.name.tag.css",foreground:"800000"},{token:"attribute.name.css",foreground:"FF0000"},{token:"attribute.name.scss",foreground:"FF0000"},{token:"attribute.name.less",foreground:"FF0000"},{token:"attribute.value.css",foreground:"0451A5"},{token:"attribute.value.scss",foreground:"0451A5"},{token:"attribute.value.less",foreground:"0451A5"},{token:"attribute.value.number.css",foreground:"098658"},{token:"attribute.value.unit.css",foreground:"098658"},{token:"attribute.value.hex.css",foreground:"0451A5"},{token:"string.css",foreground:"A31515"},{token:"string.scss",foreground:"A31515"},{token:"string.less",foreground:"A31515"},{token:"keyword.css",foreground:"AF00DB"},{token:"keyword.scss",foreground:"AF00DB"},{token:"keyword.less",foreground:"AF00DB"},{token:"number.css",foreground:"098658"},{token:"number.scss",foreground:"098658"},{token:"delimiter.css",foreground:"000000"},{token:"delimiter.scss",foreground:"000000"},{token:"delimiter.less",foreground:"000000"},{token:"pseudo.css",foreground:"800000"},{token:"unit.css",foreground:"098658"},{token:"variable.css",foreground:"E50000"},{token:"variable.scss",foreground:"001080"},{token:"variable.less",foreground:"001080"},{token:"selector.css",foreground:"800000"},{token:"operator.css",foreground:"000000"}],colors:{"editor.background":"#FBFCFE","editor.foreground":"#0C2033","editor.lineHighlightBackground":"#EEF3FA","editor.selectionBackground":"#9EC3E8AA","editor.inactiveSelectionBackground":"#9EC3E866","editor.selectionHighlightBackground":"#9EC3E855","editor.wordHighlightBackground":"#0C53A422","editor.wordHighlightStrongBackground":"#00893F2E","editorLineNumber.foreground":"#7E97B5","editorLineNumber.activeForeground":"#0C53A4","editorCursor.foreground":"#0C53A4","editorWhitespace.foreground":"#B3B3B3","editorIndentGuide.background":"#D3D3D3","editorIndentGuide.activeBackground":"#939393","editorBracketMatch.background":"#0064001A","editorBracketMatch.border":"#B9B9B9","editor.findMatchBackground":"#A8AC94","editor.findMatchHighlightBackground":"#EA5C0055","editorOverviewRuler.findMatchForeground":"#D186167E","editorSuggestWidget.background":"#FFFFFF","editorSuggestWidget.border":"#D4DEEA","editorSuggestWidget.foreground":"#0C2033","editorSuggestWidget.selectedBackground":"#0C53A4","editorSuggestWidget.selectedForeground":"#FFFFFF","editorSuggestWidget.selectedIconForeground":"#FFFFFF","editorSuggestWidget.highlightForeground":"#0C53A4","editorSuggestWidget.focusHighlightForeground":"#0A4685","editorHoverWidget.background":"#FFFFFF","editorHoverWidget.border":"#D4DEEA","editorHoverWidget.foreground":"#0C2033","peekView.border":"#007ACC","peekViewEditor.background":"#F2F8FC","peekViewResult.background":"#F3F3F3","scrollbarSlider.background":"#AEBFD6AA","scrollbarSlider.hoverBackground":"#6F96C4CC","scrollbarSlider.activeBackground":"#5FA98CCC","menu.background":"#FFFFFF","menu.foreground":"#0C2033","menu.border":"#D4DEEA","menu.selectionBackground":"#0C53A4","menu.selectionForeground":"#FFFFFF","menu.selectionBorder":"#0C53A4","menu.separatorBackground":"#D4DEEA","quickInput.background":"#FFFFFF","quickInput.foreground":"#0C2033","quickInputList.focusBackground":"#0C53A4","quickInputList.focusForeground":"#FFFFFF","quickInputList.focusIconForeground":"#FFFFFF","pickerGroup.foreground":"#0C53A4","pickerGroup.border":"#D4DEEA","input.background":"#FBFCFE","input.foreground":"#0C2033","input.border":"#D4DEEA","input.placeholderForeground":"#7E97B5","inputOption.activeBorder":"#0C53A4","inputOption.activeBackground":"#0C53A433",focusBorder:"#0C53A4","widget.shadow":"#0C204020","keybindingLabel.background":"#EEF3FA","keybindingLabel.foreground":"#0C2033","keybindingLabel.border":"#D4DEEA","keybindingLabel.bottomBorder":"#D4DEEA"}}),Z(Q());let ee=0,oe=null;async function te(e,o){oe=e;const t=++ee;P({type:T});const n={"Content-Type":"application/json",authorization:e.token||""},r=e.hostAndPort,a=e.adminId,i=JSON.stringify(e.typesRequestBody||{});if(!o){if(!!!await j(V(r,a,i))&&(await new Promise((function(e){setTimeout(e,5e3)})),t!==ee))return}const d=[];try{const o=await Promise.all([fetch(e.typesUrl).then((function(e){return e.text()})),fetch(e.storeTypesUrl).then((function(e){return e.text()}))]);d.push({content:o[0],filePath:"file:///node_modules/@types/types/index.d.ts"}),d.push({content:o[1],filePath:"file:///node_modules/@types/store-types/index.d.ts"})}catch(e){console.error("[monaco-iframe] Failed to load asset types",e)}try{const e=V(r,a,i);let t=null;if(o||(t=await j(e)),t||K()&&(t=await(c=e,new Promise((function(e){let o=0;const t=setInterval((async function(){o++;try{const o=await j(c);if(o)return clearInterval(t),void e(o)}catch(e){}(!K()||o>=120)&&(clearInterval(t),e(null))}),500)})))),!t){!function(){try{localStorage.setItem(z,String(Date.now()))}catch(e){}}();try{t=await fetch(r+"/api/sites/types/"+a+"/get-common-types-from-be",{method:"POST",headers:n,body:i}).then((function(e){return e.json()})),t&&await q(e,t)}finally{J()}}t&&t.data&&Object.entries(t.data).forEach((function(e){d.push({content:e[1],filePath:e[0]})}))}catch(e){console.error("[monaco-iframe] Failed to load common types",e)}var c;try{const e=await fetch(r+"/api/sites/types/"+a+"/utility-class-types",{method:"POST",headers:n,body:i}).then((function(e){return e.json()}));e&&e.data&&Object.entries(e.data).forEach((function(e){d.push({content:e[1],filePath:e[0]})}))}catch(e){console.error("[monaco-iframe] Failed to load utility-class types",e)}try{const e=await fetch(r+"/api/sites/types/"+a+"/db-interfaces",{method:"POST",headers:n,body:JSON.stringify({})}).then((function(e){return e.json()}));e&&Object.entries(e).forEach((function(e){d.push({content:e[1],filePath:e[0]})}))}catch(e){console.error("[monaco-iframe] Failed to load DB interfaces",e)}t===ee&&(monaco.languages.typescript.typescriptDefaults.setExtraLibs(d),P({type:L}))}document.fonts.ready.then((function(){$(),P({type:D})})),function(){const e=document.getElementById("reload-types-btn");e&&e.addEventListener("click",(async function(){if(oe){e.classList.add("loading"),e.textContent="↻ Loading…",function(){try{Object.keys(localStorage).forEach((function(e){e.startsWith(G)&&localStorage.removeItem(e)}))}catch(e){}J()}();try{await te(oe,!0)}finally{e.classList.remove("loading"),e.textContent="↺ Types"}}}))}(),window.addEventListener("keydown",(function(e){if(_)return!e.shiftKey||e.ctrlKey||e.metaKey||e.altKey||"Delete"!==e.key?void(function(e){return(e.ctrlKey||e.metaKey)&&e.altKey&&e.shiftKey&&("Backslash"===e.code||"\\"===e.key||"|"===e.key)}(e)&&(e.preventDefault(),e.stopPropagation(),H("idMonacoToggleZoom"))):(e.preventDefault(),e.stopPropagation(),_.trigger("keyboard","editor.action.deleteLines",void 0),void H("idMonacoDeleteLine"))}),!0),window.addEventListener("message",(function(A){const S=A.data;if(S&&S.type)switch(S.type){case e:W((function(e){e.setValue(S.payload.value||"")}));break;case o:{const e=S.requestId;W((function(o){P({type:v,payload:{value:o.getValue()},requestId:e})}));break}case t:S.payload&&W((function(e){const o=S.payload._modelUri,t=Object.assign({},S.payload);if(delete t._modelUri,e.updateOptions(t),o){const n=e.getModel()&&e.getModel().getLanguageId(),r=t.language||"plaintext"!==n&&n||"typescript",a=e.getValue(),i=monaco.editor.createModel(a,r,monaco.Uri.parse(o));e.setModel(i)}}));break;case n:{const e=S.payload&&S.payload.theme?"LIGHT"===S.payload.theme:Q();monaco.editor.setTheme(e?"vscode-light-plus":"vscode-dark-plus"),Z(e);break}case r:W((function(e){const o=e.getModel();o&&monaco.editor.setModelLanguage(o,S.payload.language)}));break;case a:W((function(e){e.trigger(void 0,"editor.action.formatDocument",void 0)}));break;case i:S.payload&&null!=S.payload.text&&W((function(e){const o=e.getSelection();e.executeEdits("iframe-insert",[{identifier:{major:1,minor:1},range:o,text:S.payload.text,forceMoveMarkers:!0}])}));break;case s:if(S.payload){te(S.payload);const e=document.getElementById("reload-types-btn");e&&e.classList.add("visible")}break;case d:S.payload&&Array.isArray(S.payload.libs)&&monaco.languages.typescript.typescriptDefaults.setExtraLibs(S.payload.libs);break;case c:S.payload&&monaco.languages.typescript.typescriptDefaults.setCompilerOptions(S.payload);break;case u:S.payload&&monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(S.payload);break;case k:S.payload&&S.payload.position&&W((function(e){e.setPosition(S.payload.position)}));break;case p:S.payload&&S.payload.selection&&W((function(e){e.setSelection(S.payload.selection)}));break;case y:S.payload&&null!=S.payload.top&&W((function(e){e.setScrollTop(S.payload.top)}));break;case F:S.payload&&null!=S.payload.left&&W((function(e){e.setScrollLeft(S.payload.left)}));break;case m:S.payload&&W((function(e){e.trigger(S.payload.source,S.payload.handlerId,S.payload.payload)}));break;case b:if(S.payload){const e=S.payload;N[e.id]=!0,W((function(o){o.addAction({id:e.id,label:e.label,keybindings:e.keybindings,precondition:e.precondition||null,keybindingContext:e.keybindingContext||null,contextMenuGroupId:e.contextMenuGroupId,contextMenuOrder:e.contextMenuOrder,run:function(){P({type:O,payload:{actionId:e.id}})}})}))}break;case E:S.payload&&W((function(e){const o=S.payload.oldDecorationIds||[],t=S.payload.newDecorations||[],n=S.payload.newParentIds||[],r=[];o.forEach((function(e){R[e]&&(R[e].forEach((function(e){r.push(e)})),delete R[e])}));const a=e.deltaDecorations(r,t);n.forEach((function(e,o){R[e]=a[o]?[a[o]]:[]}))}));break;case C:S.payload&&Array.isArray(S.payload.decorationIds)&&W((function(e){const o=[];S.payload.decorationIds.forEach((function(e){R[e]&&(R[e].forEach((function(e){o.push(e)})),delete R[e])})),o.length&&e.deltaDecorations(o,[])}));break;case l:{const e=S.payload||{};X();const o=Math.round(1e9*Math.random()),t=Math.round(1e9*Math.random()),n=e.language||"typescript",r=monaco.editor.createModel(e.text||"",n,monaco.Uri.parse("file:///"+o+"_Main.ts")),a=monaco.editor.createModel(e.editedText||"",n,monaco.Uri.parse("file:///"+t+"_Main.ts"));M=monaco.editor.createDiffEditor(document.getElementById("editor"),{originalEditable:!!e.isEditable,readOnly:!!e.isReadOnly,renderSideBySide:!0,automaticLayout:!0,theme:Y(),scrollbar:{verticalScrollbarSize:14,horizontalScrollbarSize:14,verticalSliderSize:14,horizontalSliderSize:14,useShadows:!1}}),M.setModel({original:r,modified:a});break}case g:$(S.payload||{}),P({type:D});break;case f:W((function(e){e.focus()}));break;case h:S.payload&&S.payload.position&&W((function(e){e.revealPositionInCenter(S.payload.position)}))}}))}();
@@ -4,10 +4,32 @@
4
4
  <meta charset="UTF-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <title>Table Viewer</title>
7
+ <script>
8
+ // Apply the app theme (shared localStorage, same origin) before render to avoid a flash.
9
+ (function () {
10
+ function applyTheme(t) {
11
+ var light = t === 'LIGHT';
12
+ document.documentElement.classList.toggle('light', light);
13
+ // swap AG Grid theme class on any existing grid container
14
+ document.querySelectorAll('.ag-theme-alpine-dark, .ag-theme-alpine').forEach(function (el) {
15
+ el.classList.toggle('ag-theme-alpine', light);
16
+ el.classList.toggle('ag-theme-alpine-dark', !light);
17
+ });
18
+ }
19
+ try { applyTheme(localStorage.getItem('THEME')); } catch (e) {}
20
+ window.addEventListener('message', function (ev) {
21
+ var m = ev.data;
22
+ if (m && m.type === 'SET_THEME') applyTheme(m.payload && m.payload.theme);
23
+ });
24
+ // expose for the grid-creation code to read
25
+ window.__amIsLight = function () { try { return localStorage.getItem('THEME') === 'LIGHT'; } catch (e) { return false; } };
26
+ }());
27
+ </script>
7
28
 
8
29
  <!-- AG Grid Community -->
9
30
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@31.3.4/styles/ag-grid.css">
10
31
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@31.3.4/styles/ag-theme-alpine-dark.css">
32
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ag-grid-community@31.3.4/styles/ag-theme-alpine.css">
11
33
  <script src="https://cdn.jsdelivr.net/npm/ag-grid-community@31.3.4/dist/ag-grid-community.min.js"></script>
12
34
 
13
35
  <!-- SheetJS for Excel export -->
@@ -25,20 +47,38 @@
25
47
  }
26
48
 
27
49
  :root {
28
- --bg-primary: #282828;
29
- --bg-secondary: #303030;
30
- --bg-tertiary: #404040;
31
- --hairline: #3c3c3c;
32
- --hairline-strong: #4e4e4e;
33
- --text-primary: #f0f0f0;
34
- --text-secondary: #969696;
35
- --text-muted: #959595;
36
- --brand: #F26B3A;
37
- --blue: #097BED;
38
- --success: #26B47F;
39
- --warning: #FFB400;
40
- --danger: #ED4B48;
41
- --editor-bg: #1e1e1e;
50
+ --bg-primary: #141c29;
51
+ --bg-secondary: #1b2636;
52
+ --bg-tertiary: #22324a;
53
+ --hairline: rgba(97, 175, 239, 0.14);
54
+ --hairline-strong: rgba(97, 175, 239, 0.28);
55
+ --text-primary: #e6ebf2;
56
+ --text-secondary: #9aa6b5;
57
+ --text-muted: #6f7c8c;
58
+ --brand: #61AFEF;
59
+ --blue: #0C53A4;
60
+ --success: #00893F;
61
+ --warning: #E5C07B;
62
+ --danger: #E06C75;
63
+ --editor-bg: #10161f;
64
+ }
65
+
66
+ /* LIGHT theme — applied when <html> has class "light" (set from app's THEME) */
67
+ html.light {
68
+ --bg-primary: #ffffff;
69
+ --bg-secondary: #eef3fa;
70
+ --bg-tertiary: #e3eaf3;
71
+ --hairline: rgba(12, 83, 164, 0.14);
72
+ --hairline-strong: rgba(12, 83, 164, 0.28);
73
+ --text-primary: #1b2330;
74
+ --text-secondary: #4a5563;
75
+ --text-muted: #7a8694;
76
+ --brand: #0C53A4;
77
+ --blue: #0C53A4;
78
+ --success: #00893F;
79
+ --warning: #d99a07;
80
+ --danger: #DC2626;
81
+ --editor-bg: #f6f8fb;
42
82
  }
43
83
 
44
84
  html, body {
@@ -89,12 +129,15 @@
89
129
  }
90
130
 
91
131
  .btn:hover {
92
- background: #505050;
93
- border-color: #666;
132
+ /* Brand-blue tint + hairline (matches the app's button hover),
133
+ instead of a flat grey that clashed with the brand surfaces. */
134
+ background: rgba(12, 83, 164, 0.18);
135
+ border-color: var(--hairline-strong);
136
+ color: var(--text-primary);
94
137
  }
95
138
 
96
139
  .btn:active {
97
- background: #606060;
140
+ background: rgba(12, 83, 164, 0.28);
98
141
  }
99
142
 
100
143
  .btn-success {
@@ -120,13 +163,23 @@
120
163
  border-color: rgba(255, 180, 0, 0.4);
121
164
  }
122
165
 
166
+ /* Export = primary action: solid brand blue, consistent with the
167
+ other toolbar buttons' shape but clearly the primary control. */
123
168
  .btn-blue {
124
- color: var(--blue);
125
- border-color: rgba(9, 123, 237, 0.4);
169
+ background: var(--blue);
170
+ color: #ffffff;
171
+ border-color: var(--blue);
126
172
  }
127
173
 
128
174
  .btn-blue:hover {
129
- background: rgba(9, 123, 237, 0.12);
175
+ background: #0a4685;
176
+ border-color: #0a4685;
177
+ color: #ffffff;
178
+ }
179
+
180
+ .btn-blue:active {
181
+ background: #083a6f;
182
+ border-color: #083a6f;
130
183
  }
131
184
 
132
185
  .toolbar-sep {
@@ -177,30 +230,62 @@
177
230
 
178
231
  /* ── AG Grid overrides (dark theme) ──────────────────────────────────────── */
179
232
  .ag-theme-alpine-dark {
180
- --ag-background-color: #1e1e1e;
181
- --ag-foreground-color: #e8e8e8;
182
- --ag-border-color: #3a3a3a;
183
- --ag-secondary-border-color: #3a3a3a;
184
- --ag-header-background-color: #252525;
185
- --ag-header-foreground-color: #b0b0b0;
186
- --ag-odd-row-background-color: #222222;
187
- --ag-even-row-background-color: #1e1e1e;
188
- --ag-row-hover-color: #2a2a2a;
189
- --ag-selected-row-background-color: rgba(9, 123, 237, 0.18);
190
- --ag-range-selection-background-color: rgba(9, 123, 237, 0.12);
191
- --ag-range-selection-border-color: #097BED;
192
- --ag-header-cell-hover-background-color: #2e2e2e;
233
+ /* Brand navy grid surfaces (match the app dark theme: navy base
234
+ #0e1726, card surface #141c29, brand-blue hairlines). */
235
+ --ag-background-color: #0e1726;
236
+ --ag-foreground-color: #e6ebf2;
237
+ --ag-border-color: rgba(97, 175, 239, 0.14);
238
+ --ag-secondary-border-color: rgba(97, 175, 239, 0.14);
239
+ --ag-header-background-color: #141c29;
240
+ --ag-header-foreground-color: #9aa6b5;
241
+ --ag-odd-row-background-color: #121b2a;
242
+ --ag-even-row-background-color: #0e1726;
243
+ --ag-row-hover-color: rgba(12, 83, 164, 0.18);
244
+ --ag-selected-row-background-color: rgba(12, 83, 164, 0.22);
245
+ --ag-range-selection-background-color: rgba(12, 83, 164, 0.14);
246
+ --ag-range-selection-border-color: #0C53A4;
247
+ --ag-header-cell-hover-background-color: #1b2636;
193
248
  --ag-cell-horizontal-padding: 5px;
194
249
  --ag-font-size: 12px;
195
250
  --ag-font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
196
251
  --ag-row-height: 26px;
197
252
  --ag-header-height: 28px;
198
253
  --ag-filter-tool-panel-header-height: 26px;
199
- --ag-input-focus-border-color: #097BED;
200
- --ag-checkbox-checked-color: #097BED;
254
+ --ag-input-focus-border-color: #0C53A4;
255
+ --ag-checkbox-checked-color: #0C53A4;
201
256
  --ag-checkbox-unchecked-color: #686868;
202
- --ag-active-color: #097BED;
203
- --ag-balham-active-color: #097BED;
257
+ --ag-active-color: #0C53A4;
258
+ --ag-balham-active-color: #0C53A4;
259
+ }
260
+
261
+ /* ── AG Grid overrides (LIGHT theme) ─────────────────────────────────────── */
262
+ html.light .ag-theme-alpine,
263
+ html.light .ag-theme-alpine-dark {
264
+ --ag-background-color: #ffffff;
265
+ --ag-foreground-color: #1b2330;
266
+ --ag-border-color: rgba(12, 83, 164, 0.14);
267
+ --ag-secondary-border-color: rgba(12, 83, 164, 0.14);
268
+ --ag-header-background-color: #eef3fa;
269
+ --ag-header-foreground-color: #4a5563;
270
+ --ag-odd-row-background-color: #f3f7fc;
271
+ --ag-even-row-background-color: #ffffff;
272
+ --ag-row-hover-color: #eaf1fb;
273
+ --ag-selected-row-background-color: rgba(12, 83, 164, 0.14);
274
+ --ag-range-selection-background-color: rgba(12, 83, 164, 0.10);
275
+ --ag-range-selection-border-color: #0C53A4;
276
+ --ag-header-cell-hover-background-color: #e3eaf3;
277
+ --ag-input-focus-border-color: #0C53A4;
278
+ --ag-checkbox-checked-color: #0C53A4;
279
+ --ag-active-color: #0C53A4;
280
+ --ag-balham-active-color: #0C53A4;
281
+ /* keep the SAME compact density as dark mode (alpine-light defaults are taller) */
282
+ --ag-grid-size: 3px;
283
+ --ag-cell-horizontal-padding: 5px;
284
+ --ag-row-height: 26px;
285
+ --ag-header-height: 28px;
286
+ --ag-list-item-height: 24px;
287
+ --ag-font-size: 12px;
288
+ --ag-font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
204
289
  }
205
290
 
206
291
  /* Tighter header padding */
@@ -474,7 +559,8 @@
474
559
 
475
560
  /* ── Tooltip for long text ───────────────────────────────────────────────── */
476
561
  .ag-tooltip {
477
- background: #2a2a2a !important;
562
+ /* Brand surface (navy in dark, light card in light) via theme var. */
563
+ background: var(--bg-secondary) !important;
478
564
  border: 1px solid var(--hairline-strong) !important;
479
565
  color: var(--text-primary) !important;
480
566
  font-size: 11px !important;
@@ -40,7 +40,7 @@ export enum ITPApiSettingsProps {
40
40
  enableCaching = 'enableCaching',
41
41
  acceptOnlyEncryptedData = 'acceptOnlyEncryptedData',
42
42
  apiAccessType = 'apiAccessType',
43
- authTokenInfo = 'authTokenInfo',
43
+ authProviders = 'authProviders',
44
44
  thirdPartyApiSettingsCode = 'thirdPartyApiSettingsCode',
45
45
  resetCacheOnModificationOf = 'resetCacheOnModificationOf',
46
46
 
@@ -156,7 +156,6 @@ export enum ICustomApiProps {
156
156
  // label = 'label',
157
157
  apiDocs = 'apiDocs',
158
158
  apiAccessType = 'apiAccessType',
159
- authTokenInfo = 'authTokenInfo',
160
159
  enableCaching = 'enableCaching',
161
160
  acceptOnlyEncryptedData = 'acceptOnlyEncryptedData',
162
161
  requestMethod = 'requestMethod',
@@ -168,6 +167,8 @@ export enum ICustomApiProps {
168
167
  swaggerDocs = 'swaggerDocs',
169
168
  separateSandboxSettings = 'separateSandboxSettings',
170
169
  fileUpload = 'fileUpload',
170
+ authProviders = 'authProviders',
171
+ customApiTimeoutInSeconds = 'customApiTimeoutInSeconds',
171
172
  }
172
173
 
173
174
  export enum IGroupProps {
@@ -178,6 +179,7 @@ export enum IGroupProps {
178
179
 
179
180
  export enum IInstanceApiSettingsProps {
180
181
  guid = 'guid',
182
+ name = 'name',
181
183
  instanceName = 'instanceName',
182
184
  databaseName = 'databaseName',
183
185
  collectionName = 'collectionName',
@@ -186,13 +188,14 @@ export enum IInstanceApiSettingsProps {
186
188
  apiAccessType = 'apiAccessType',
187
189
  enableCaching = 'enableCaching',
188
190
  acceptOnlyEncryptedData = 'acceptOnlyEncryptedData',
189
- authTokenInfo = 'authTokenInfo',
191
+ authProviders = 'authProviders',
190
192
  instanceApiSettingCode = 'instanceApiSettingCode',
191
193
  instanceApiSettingCodeJS = 'instanceApiSettingCodeJS',
192
194
  }
193
195
 
194
196
  export enum IInstanceApiHooksProps {
195
197
  guid = 'guid',
198
+ name = 'name',
196
199
  instanceName = 'instanceName',
197
200
  databaseName = 'databaseName',
198
201
  collectionName = 'collectionName',
@@ -202,11 +205,13 @@ export enum IInstanceApiHooksProps {
202
205
 
203
206
  export enum IInstanceHooksProps {
204
207
  guid = 'guid',
208
+ name = 'name',
205
209
  instanceName = 'instanceName',
206
210
  user = 'user',
207
211
  }
208
212
 
209
213
  export enum IDatabaseHooksProps {
214
+ name = 'name',
210
215
  instanceName = 'instanceName',
211
216
  databaseName = 'databaseName',
212
217
  user = 'user',
@@ -215,6 +220,7 @@ export enum IDatabaseHooksProps {
215
220
 
216
221
  export enum ICollectionHooksProps {
217
222
  guid = 'guid',
223
+ name = 'name',
218
224
  instanceName = 'instanceName',
219
225
  databaseName = 'databaseName',
220
226
  collectionName = 'collectionName',
@@ -234,10 +240,12 @@ export enum IInstanceProps {
234
240
  maxPoolConnections = 'maxPoolConnections',
235
241
  active = 'active',
236
242
  connectionString = 'connectionString',
243
+ connectionStringSandbox = 'connectionStringSandbox',
237
244
  }
238
245
 
239
246
  export enum ISchemaProps {
240
247
  guid = 'guid',
248
+ name = 'name',
241
249
  instanceName = 'instanceName',
242
250
  databaseName = 'databaseName',
243
251
  collectionName = 'collectionName',
@@ -286,7 +294,7 @@ export enum ISystemApiSettingsProps {
286
294
  enableCaching = 'enableCaching',
287
295
  acceptOnlyEncryptedData = 'acceptOnlyEncryptedData',
288
296
  apiAccessType = 'apiAccessType',
289
- authTokenInfo = 'authTokenInfo',
297
+ authProviders = 'authProviders',
290
298
  }
291
299
 
292
300
  export enum ISystemApiHooksProps {
@@ -375,6 +383,7 @@ export enum IPrePostHookProps {
375
383
  hookCodeMap = 'hookCodeMap',
376
384
  isActive = 'isActive',
377
385
  runOnNativeProcess = 'runOnNativeProcess',
386
+ groupNames = 'groupNames',
378
387
  }
379
388
 
380
389
  export enum IArrayOperationBodyProps {
@@ -414,6 +423,62 @@ export enum INotesProps {
414
423
  user = 'user'
415
424
  }
416
425
 
426
+ export enum IAuthProviderProps {
427
+ guid = 'guid',
428
+ user = 'user',
429
+ name = 'name',
430
+ dbTokenGeneratorCode = 'dbTokenGeneratorCode',
431
+ dbTokenGeneratorJS = 'dbTokenGeneratorJS',
432
+ dbTokenGeneratorMap = 'dbTokenGeneratorMap',
433
+ fieldsGeneratorFunCode = 'fieldsGeneratorFunCode',
434
+ fieldsGeneratorFunJS = 'fieldsGeneratorFunJS',
435
+ fieldsGeneratorFunMap = 'fieldsGeneratorFunMap',
436
+ runOnNativeProcess = 'runOnNativeProcess',
437
+ generatorType = 'generatorType',
438
+ customTokenGeneratorFunCode = 'customTokenGeneratorFunCode',
439
+ customTokenGeneratorFunJS = 'customTokenGeneratorFunJS',
440
+ customTokenGeneratorFunMap = 'customTokenGeneratorFunMap',
441
+ customTokenValidatorFunCode = 'customTokenValidatorFunCode',
442
+ customTokenValidatorFunJS = 'customTokenValidatorFunJS',
443
+ customTokenValidatorFunMap = 'customTokenValidatorFunMap',
444
+ apiAccessType = 'apiAccessType',
445
+ instance = 'instance',
446
+ database = 'database',
447
+ collection = 'collection',
448
+ table = 'table',
449
+ usernameColumn = 'usernameColumn',
450
+ passwordColumn = 'passwordColumn',
451
+ passwordChangedAtColumn = 'passwordChangedAtColumn',
452
+ groupsColumn = 'groupsColumn',
453
+ countOfUsersForTesting = 'countOfUsersForTesting',
454
+ condition = 'condition',
455
+ sortUsersForTesting = 'sortUsersForTesting',
456
+ select = 'select',
457
+ expiresInSeconds = 'expiresInSeconds',
458
+
459
+ // AWS
460
+ cognitoUserPoolId = 'cognitoUserPoolId',
461
+ region = 'region',
462
+ tokenUse = 'tokenUse',
463
+ tokenExpiration = 'tokenExpiration',
464
+
465
+ // Azure AD
466
+ appId = 'appId',
467
+ tenant = 'tenant',
468
+ audience = 'audience',
469
+ issuer = 'issuer',
470
+ maxRetries = 'maxRetries',
471
+
472
+ // Google
473
+ clientId = 'clientId',
474
+
475
+ // Groups properties (shared across AWS / Azure / Google)
476
+ sourceFieldOfUniqueId = 'sourceFieldOfUniqueId',
477
+ groupsDataSource = 'groupsDataSource',
478
+
479
+ testObj = 'testObj',
480
+ }
481
+
417
482
  export enum IUtilityClassesProps {
418
483
  guid = 'guid',
419
484
  name = 'name',
@@ -511,15 +576,6 @@ export enum IAdminDashboardsProps {
511
576
  user = 'user'
512
577
  }
513
578
 
514
- export enum ICallApiFromBackendProps {
515
- }
516
-
517
- export enum IAuthTokenInfoProps {
518
- authTokenType = 'authTokenType',
519
- authTokenAM = 'authTokenAM',
520
- authTokenAMDB = 'authTokenAMDB',
521
- }
522
-
523
579
  export enum IAuthTokenAMProps {
524
580
  u = 'u',
525
581
  p = 'p',
@@ -530,6 +586,7 @@ export enum IRefreshTokenAMProps {
530
586
  }
531
587
 
532
588
  export enum IAuthTokenAMDBProps {
589
+ name = 'name',
533
590
  instance = 'instance',
534
591
  database = 'database',
535
592
  collection = 'collection',
@@ -614,6 +671,7 @@ export enum IAuthInfoObjectsProps {
614
671
  authGoogleGroups = 'authGoogleGroups',
615
672
  authAWSGroups = 'authAWSGroups',
616
673
  authAzureGroups = 'authAzureGroups',
674
+ authCustomGroups = 'authCustomGroups',
617
675
 
618
676
  }
619
677
 
@@ -69,6 +69,7 @@ export enum ESupportedAPIParamType {
69
69
  aws_authorization = 'aws_authorization',
70
70
  google_authorization = 'google_authorization',
71
71
  azure_authorization = 'azure_authorization',
72
+ custom_authorization = 'custom_authorization',
72
73
 
73
74
  i18n = 'i18n',
74
75
  boolean = 'boolean',
@@ -102,6 +103,7 @@ export enum EHeader {
102
103
  AUTHORIZATION_AWS = 'x-aws-authorization', // used tor EAuthTokenType
103
104
  AUTHORIZATION_GOOGLE = 'x-google-authorization', // used tor EAuthTokenType
104
105
  AUTHORIZATION_AZURE = 'x-azure-authorization', // used tor EAuthTokenType
106
+ AUTHORIZATION_CUSTOM = 'x-custom-authorization', // used tor EAuthTokenType
105
107
  RUN_IN_SANDBOX = 'x-am-run-in-sandbox',
106
108
 
107
109
  ORIGIN = 'origin',