@fernir2/saas-kit 0.0.202 → 0.0.204

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 (1468) hide show
  1. package/flint/index.d.ts +0 -1
  2. package/flint/index.js +0 -1
  3. package/generated/crud-handler-map.js +1 -1
  4. package/internal/index.d.ts +4 -6
  5. package/internal/index.js +4 -5
  6. package/package.json +21 -10
  7. package/packages/base-repo/app-constants/aliases.js +1 -1
  8. package/packages/base-repo/app-constants/app-packages-names.d.ts +7 -1
  9. package/packages/base-repo/app-constants/app-packages-names.js +2 -4
  10. package/packages/base-repo/app-constants/command-names.d.ts +3 -0
  11. package/packages/base-repo/app-constants/command-names.js +2 -2
  12. package/packages/base-repo/app-constants/file-paths.d.ts +3 -0
  13. package/packages/base-repo/app-constants/file-paths.js +4 -0
  14. package/packages/base-repo/app-constants/project-paths.d.ts +6 -3
  15. package/packages/base-repo/app-constants/project-paths.js +5 -4
  16. package/packages/base-repo/app-constants/system-constants.d.ts +16 -0
  17. package/packages/base-repo/app-constants/system-constants.js +4 -2
  18. package/packages/base-repo/constants/extensions.d.ts +2 -4
  19. package/packages/base-repo/constants/extensions.js +2 -2
  20. package/packages/base-repo/constants/http-methods.d.ts +3 -0
  21. package/packages/base-repo/constants/http-methods.js +3 -1
  22. package/packages/base-repo/constants/packages.d.ts +16 -9
  23. package/packages/base-repo/constants/packages.js +1 -1
  24. package/packages/base-repo/constants/playwright.d.ts +7 -0
  25. package/packages/base-repo/constants/playwright.js +4 -0
  26. package/packages/base-repo/constants/string-duplication-constants.d.ts +3 -3
  27. package/packages/base-repo/constants/string-duplication-constants.js +1 -1
  28. package/packages/base-repo/constants/tools-constants.d.ts +30 -1
  29. package/packages/base-repo/constants/tools-constants.js +2 -2
  30. package/packages/base-repo/constants.d.ts +1 -1
  31. package/packages/base-repo/constants.js +2 -2
  32. package/packages/base-repo/tools/git/pre-commit-script.js +5 -5
  33. package/packages/cluster/contants/cluster-constants.d.ts +0 -1
  34. package/packages/cluster/contants/cluster-constants.js +1 -1
  35. package/packages/cluster/gitlab-runner.js +2 -2
  36. package/packages/cluster/networking.js +2 -2
  37. package/packages/cluster/postgres.js +3 -2
  38. package/packages/cluster/registry.js +3 -2
  39. package/packages/fd-toolbox/api/api-client.js +1 -1
  40. package/packages/fd-toolbox/api/api-path-names.js +2 -1
  41. package/packages/fd-toolbox/api/api-paths.js +2 -1
  42. package/packages/fd-toolbox/api/base-api.js +3 -2
  43. package/packages/fd-toolbox/api/cache-headers.js +1 -1
  44. package/packages/fd-toolbox/api/hooks/use-api.js +2 -2
  45. package/packages/fd-toolbox/auth/login-states.js +1 -1
  46. package/packages/fd-toolbox/auth/permissions/permission-notifiers.js +1 -1
  47. package/packages/fd-toolbox/auth/session-storage.js +1 -1
  48. package/packages/fd-toolbox/auth/tokens.js +1 -1
  49. package/packages/fd-toolbox/base-resource/base-resource.js +1 -1
  50. package/packages/fd-toolbox/base-resource/optional-user-id-base-resource.js +1 -1
  51. package/packages/fd-toolbox/base-resource/props/user-id-base-props-resource-props.js +2 -1
  52. package/packages/fd-toolbox/base-resource/props/with-optional-user-id-props.js +2 -1
  53. package/packages/fd-toolbox/base-resource/user-id-base-resource.js +1 -1
  54. package/packages/fd-toolbox/cache/cache.js +1 -1
  55. package/packages/fd-toolbox/collections/arrays.d.ts +1 -0
  56. package/packages/fd-toolbox/collections/arrays.js +2 -2
  57. package/packages/fd-toolbox/collections/enums.js +1 -1
  58. package/packages/fd-toolbox/constants/constants.d.ts +1 -0
  59. package/packages/fd-toolbox/constants/constants.js +2 -2
  60. package/packages/fd-toolbox/constants/element-suffixes.js +3 -1
  61. package/packages/fd-toolbox/constants/elements.js +3 -1
  62. package/packages/fd-toolbox/constants/environment-constants.d.ts +2 -1
  63. package/packages/fd-toolbox/constants/environment-constants.js +4 -1
  64. package/packages/fd-toolbox/constants/fd-resource-ids.js +2 -1
  65. package/packages/fd-toolbox/constants/file-constants.js +3 -1
  66. package/packages/fd-toolbox/constants/file-loader-data-types.js +1 -1
  67. package/packages/fd-toolbox/constants/header-names.d.ts +0 -1
  68. package/packages/fd-toolbox/constants/header-names.js +1 -1
  69. package/packages/fd-toolbox/constants/html-element-attributes.d.ts +1 -1
  70. package/packages/fd-toolbox/constants/html-element-attributes.js +3 -1
  71. package/packages/fd-toolbox/constants/keyboard-keys.js +3 -1
  72. package/packages/fd-toolbox/constants/odata-helper-constants.js +1 -1
  73. package/packages/fd-toolbox/constants/resource-folders.js +3 -1
  74. package/packages/fd-toolbox/constants/resource-id-constants.d.ts +1 -0
  75. package/packages/fd-toolbox/constants/resource-id-constants.js +1 -1
  76. package/packages/fd-toolbox/dates/date-formats.js +1 -1
  77. package/packages/fd-toolbox/dates/date-time.js +8 -8
  78. package/packages/fd-toolbox/enums/enums.d.ts +3 -4
  79. package/packages/fd-toolbox/enums/enums.js +1 -1
  80. package/packages/fd-toolbox/errors/error-handler.js +1 -1
  81. package/packages/fd-toolbox/errors/errors.js +1 -1
  82. package/packages/fd-toolbox/errors/problem-details.js +1 -1
  83. package/packages/fd-toolbox/functions/condition-check-functions.js +1 -1
  84. package/packages/fd-toolbox/functions/value-checking-functions.d.ts +1 -1
  85. package/packages/fd-toolbox/functions/value-checking-functions.js +1 -1
  86. package/packages/fd-toolbox/hooks/use-async-effect.js +1 -1
  87. package/packages/fd-toolbox/hooks/use-element-id.js +1 -1
  88. package/packages/fd-toolbox/hooks/use-empty-ref.js +1 -1
  89. package/packages/fd-toolbox/hooks/use-enter-key.js +1 -1
  90. package/packages/fd-toolbox/hooks/use-is-client.js +1 -1
  91. package/packages/fd-toolbox/hooks/use-is-mobile.js +1 -1
  92. package/packages/fd-toolbox/hooks/use-keyboard-navigation.js +1 -1
  93. package/packages/fd-toolbox/hooks/use-media-query.js +1 -1
  94. package/packages/fd-toolbox/hooks/use-optional-promise.js +1 -1
  95. package/packages/fd-toolbox/html/element-ids.js +1 -1
  96. package/packages/fd-toolbox/html/extract-emails-from-html.js +1 -1
  97. package/packages/fd-toolbox/html/markdown-renderer.js +1 -1
  98. package/packages/fd-toolbox/http/http.js +1 -1
  99. package/packages/fd-toolbox/http/url/url-builder.js +1 -1
  100. package/packages/fd-toolbox/http/url/urls.js +1 -1
  101. package/packages/fd-toolbox/infra/env-config.js +2 -2
  102. package/packages/fd-toolbox/infra/env-functions.js +2 -2
  103. package/packages/fd-toolbox/infra/env-schema.d.ts +18 -6
  104. package/packages/fd-toolbox/infra/env-schema.js +6 -3
  105. package/packages/fd-toolbox/infra/env-store.js +1 -1
  106. package/packages/fd-toolbox/infra/toolbox-env-setting-keys.d.ts +3 -0
  107. package/packages/fd-toolbox/infra/toolbox-env-setting-keys.js +1 -1
  108. package/packages/fd-toolbox/io/io.js +1 -1
  109. package/packages/fd-toolbox/lib/environments.d.ts +1 -1
  110. package/packages/fd-toolbox/lib/environments.js +1 -1
  111. package/packages/fd-toolbox/lib/utils.js +2 -1
  112. package/packages/fd-toolbox/local-storage/local-storage.js +1 -1
  113. package/packages/fd-toolbox/logging/cli-logger.d.ts +8 -11
  114. package/packages/fd-toolbox/logging/cli-logger.js +4 -2
  115. package/packages/fd-toolbox/logging/loggers.d.ts +1 -1
  116. package/packages/fd-toolbox/logging/loggers.js +1 -1
  117. package/packages/fd-toolbox/notifications.js +2 -2
  118. package/packages/fd-toolbox/numbers/numbers.js +1 -1
  119. package/packages/fd-toolbox/objects/property-value.js +1 -1
  120. package/packages/fd-toolbox/odata/odata-builder-funcs.js +1 -1
  121. package/packages/fd-toolbox/odata/odata-builders.js +1 -1
  122. package/packages/fd-toolbox/odata/odata-constants.d.ts +0 -2
  123. package/packages/fd-toolbox/odata/odata-constants.js +2 -2
  124. package/packages/fd-toolbox/odata/odata.js +4 -1
  125. package/packages/fd-toolbox/odata/odataconfig.js +1 -1
  126. package/packages/fd-toolbox/odata/services/odata-filters.js +2 -2
  127. package/packages/fd-toolbox/odata/services/odata-parsers.js +1 -1
  128. package/packages/fd-toolbox/path.js +1 -1
  129. package/packages/fd-toolbox/paths/ensure.d.ts +2 -0
  130. package/packages/fd-toolbox/paths/ensure.js +2 -2
  131. package/packages/fd-toolbox/paths/paths-names.js +1 -1
  132. package/packages/fd-toolbox/permissions/constants/crud-action-to-permission-prefix.js +2 -1
  133. package/packages/fd-toolbox/property/calculate-total-property-value.js +1 -1
  134. package/packages/fd-toolbox/redirect/redirect-functions.js +1 -1
  135. package/packages/fd-toolbox/routing/login-routers.js +1 -1
  136. package/packages/fd-toolbox/routing/paths.js +1 -1
  137. package/packages/fd-toolbox/routing/public-routes.js +1 -1
  138. package/packages/fd-toolbox/routing/routers.js +2 -1
  139. package/packages/fd-toolbox/routing/routes.js +1 -1
  140. package/packages/fd-toolbox/server/api/query-params.d.ts +1 -1
  141. package/packages/fd-toolbox/server/api/query-params.js +4 -2
  142. package/packages/fd-toolbox/server/auth/cookies.js +1 -1
  143. package/packages/fd-toolbox/server/cachings/core-cache.js +1 -1
  144. package/packages/fd-toolbox/server/cachings/fd-memory-cache.js +1 -1
  145. package/packages/fd-toolbox/server/cachings/fd-remote-cache.js +2 -2
  146. package/packages/fd-toolbox/server/collections/single-funcs.d.ts +1 -0
  147. package/packages/fd-toolbox/server/collections/single-funcs.js +2 -2
  148. package/packages/fd-toolbox/server/configs/configs.js +2 -1
  149. package/packages/fd-toolbox/server/constants/crud-actions-constants.js +3 -1
  150. package/packages/fd-toolbox/server/constants/fd-server-cache-keys.js +3 -1
  151. package/packages/fd-toolbox/server/entities/base-objects.js +1 -1
  152. package/packages/fd-toolbox/server/errors/error-dtos.js +1 -1
  153. package/packages/fd-toolbox/server/framework/index.js +1 -1
  154. package/packages/fd-toolbox/server/logging/latest-logs-store.js +1 -1
  155. package/packages/fd-toolbox/server/logging/log-dtos.js +1 -1
  156. package/packages/fd-toolbox/server/logging/logger.js +1 -1
  157. package/packages/fd-toolbox/server/objects/keys-case-converters.js +1 -1
  158. package/packages/fd-toolbox/server/random.js +1 -1
  159. package/packages/fd-toolbox/server/services/dictionaries.js +1 -1
  160. package/packages/fd-toolbox/server/strings/casing.js +1 -1
  161. package/packages/fd-toolbox/server/strings/strings.js +3 -1
  162. package/packages/fd-toolbox/server/time/duration-service.js +1 -1
  163. package/packages/fd-toolbox/server/url/http-body.d.ts +1 -1
  164. package/packages/fd-toolbox/server/web/errors.js +1 -1
  165. package/packages/fd-toolbox/state/component-states.js +1 -1
  166. package/packages/fd-toolbox/strings/case-converters.js +1 -1
  167. package/packages/fd-toolbox/strings/casing-converter.js +1 -1
  168. package/packages/fd-toolbox/strings/plural-converters.js +3 -1
  169. package/packages/fd-toolbox/strings/strings-constants.d.ts +6 -1
  170. package/packages/fd-toolbox/strings/strings-constants.js +2 -2
  171. package/packages/fd-toolbox/strings/strings.js +2 -2
  172. package/packages/fd-toolbox/time/date-time.js +1 -1
  173. package/packages/fd-toolbox/types/crud/crud-results.js +1 -1
  174. package/packages/fd-toolbox/types/ensure-type.js +3 -1
  175. package/packages/fd-toolbox/types/react-types.d.ts +2 -3
  176. package/packages/fd-toolbox/types/with-user-id.js +2 -1
  177. package/packages/fd-toolbox/url/urls.js +1 -1
  178. package/packages/fd-toolbox/uuids.d.ts +0 -1
  179. package/packages/fd-toolbox/uuids.js +3 -2
  180. package/packages/fd-toolbox/value-checkers.js +1 -1
  181. package/packages/fd-toolbox-core/constants/base-dev-url.d.ts +4 -0
  182. package/packages/fd-toolbox-core/constants/base-dev-url.js +2 -2
  183. package/packages/fd-toolbox-core/core/name-of.js +1 -1
  184. package/packages/fd-toolbox-core/server/base-resources/props/with-workspace-id-props.js +2 -1
  185. package/packages/fd-toolbox-core/types/resource-with-id.js +3 -1
  186. package/packages/flint/dist/rules/index.d.ts +12 -2
  187. package/packages/flint/dist/rules/index.js +10 -9
  188. package/packages/flint/eslint-base.config.js +13 -13
  189. package/packages/flint/eslint-next-web-vitals-temp.config.js +2 -2
  190. package/packages/flint/infra/analysis/array-analysis.js +8 -0
  191. package/packages/flint/infra/analysis/casing-analysis.js +4 -0
  192. package/packages/flint/infra/analysis/enum-analysis.js +12 -0
  193. package/packages/flint/infra/analysis/eslint-analysis.js +6 -0
  194. package/packages/flint/infra/analysis/expression-analysis.js +7 -0
  195. package/packages/flint/infra/analysis/formatting-analysis.js +6 -0
  196. package/packages/flint/infra/{ast-helpers → analysis}/function-analysis.d.ts +2 -0
  197. package/packages/flint/infra/analysis/function-analysis.js +8 -0
  198. package/packages/flint/infra/analysis/jsx-analysis.js +8 -0
  199. package/packages/flint/infra/{ast-helpers → analysis}/module-analysis.d.ts +4 -1
  200. package/packages/flint/infra/analysis/module-analysis.js +11 -0
  201. package/packages/flint/infra/{ast-helpers → analysis}/name-analysis.d.ts +1 -1
  202. package/packages/flint/infra/analysis/name-analysis.js +10 -0
  203. package/packages/flint/infra/analysis/nullish-analysis.js +7 -0
  204. package/packages/flint/infra/analysis/number-analysis.js +8 -0
  205. package/packages/flint/infra/{ast-helpers → analysis}/object-analysis.d.ts +1 -1
  206. package/packages/flint/infra/analysis/object-analysis.js +6 -0
  207. package/packages/flint/infra/analysis/return-analysis.d.ts +6 -0
  208. package/packages/flint/infra/analysis/return-analysis.js +7 -0
  209. package/packages/flint/infra/analysis/scope-analysis.js +11 -0
  210. package/packages/flint/infra/analysis/string-analysis.js +10 -0
  211. package/packages/flint/infra/analysis/tree-analysis.js +6 -0
  212. package/packages/flint/infra/{ast-helpers → analysis}/type-analysis.d.ts +17 -1
  213. package/packages/flint/infra/analysis/type-analysis.js +9 -0
  214. package/packages/flint/infra/{ast-helpers → analysis}/type-guards.d.ts +10 -4
  215. package/packages/flint/infra/analysis/type-guards.js +12 -0
  216. package/packages/flint/infra/analysis/variable-analysis.d.ts +4 -0
  217. package/packages/flint/infra/analysis/variable-analysis.js +8 -0
  218. package/packages/flint/infra/{ast-helpers → analysis}/visitors.d.ts +2 -1
  219. package/packages/flint/infra/analysis/visitors.js +6 -0
  220. package/packages/flint/infra/config-edited-checker.d.ts +2 -0
  221. package/packages/flint/infra/config-edited-checker.js +7 -0
  222. package/packages/flint/infra/constants/rules-meta.d.ts +6 -0
  223. package/packages/flint/infra/constants/rules-meta.js +2 -2
  224. package/packages/flint/infra/create-eslint-rule.js +7 -0
  225. package/packages/flint/infra/git-readers.d.ts +1 -0
  226. package/packages/flint/infra/git-readers.js +10 -0
  227. package/packages/flint/non-level-two-eslint-config.js +1 -1
  228. package/packages/flint/project-specific-eslint-configs.d.ts +4 -0
  229. package/packages/flint/project-specific-eslint-configs.js +9 -9
  230. package/packages/flint/rules/code-duplication/must-avoid-code-duplication-in-functions.d.ts +1 -0
  231. package/packages/flint/rules/code-duplication/must-avoid-code-duplication-in-functions.js +4 -3
  232. package/packages/flint/rules/code-duplication/no-duplicate-imports.d.ts +1 -0
  233. package/packages/flint/rules/code-duplication/no-duplicate-imports.js +4 -3
  234. package/packages/flint/rules/code-duplication/no-literal-duplication.js +3 -3
  235. package/packages/flint/rules/consistency/enum-type-immediate-definition.js +3 -3
  236. package/packages/flint/rules/consistency/must-not-needlessly-copy-arrays.js +3 -3
  237. package/packages/flint/rules/consistency/must-not-use-anonymous-objects-only-with-explicit-typization.js +3 -3
  238. package/packages/flint/rules/consistency/must-not-use-process-env.js +3 -3
  239. package/packages/flint/rules/consistency/must-use-nameof-for-props.d.ts +1 -0
  240. package/packages/flint/rules/consistency/must-use-nameof-for-props.js +4 -3
  241. package/packages/flint/rules/consistency/must-use-typed-resources-for-crud-update.d.ts +3 -0
  242. package/packages/flint/rules/consistency/must-use-typed-resources-for-crud-update.js +9 -0
  243. package/packages/flint/rules/consistency/must-use-typescript.js +3 -3
  244. package/packages/flint/rules/consistency/no-index-import-in-ast-helpers.d.ts +3 -0
  245. package/packages/flint/rules/consistency/no-index-import-in-ast-helpers.js +6 -0
  246. package/packages/flint/rules/consistency/no-new-date.d.ts +1 -0
  247. package/packages/flint/rules/consistency/no-new-date.js +4 -3
  248. package/packages/flint/rules/consistency/no-redundant-type-alias.d.ts +1 -0
  249. package/packages/flint/rules/consistency/no-redundant-type-alias.js +4 -3
  250. package/packages/flint/rules/consistency/no-use-type-undefined-for-optional.d.ts +1 -0
  251. package/packages/flint/rules/consistency/no-use-type-undefined-for-optional.js +4 -3
  252. package/packages/flint/rules/css/must-not-use-important.js +2 -2
  253. package/packages/flint/rules/css/no-array-destructuring-from-function-calls.d.ts +1 -0
  254. package/packages/flint/rules/css/no-array-destructuring-from-function-calls.js +4 -3
  255. package/packages/flint/rules/css/no-px-in-tailwind.js +2 -2
  256. package/packages/flint/rules/css/no-tailwind-colors.d.ts +1 -0
  257. package/packages/flint/rules/css/no-tailwind-colors.js +4 -3
  258. package/packages/flint/rules/flint/must-add-custom-rule-in-config.d.ts +1 -0
  259. package/packages/flint/rules/flint/must-add-custom-rule-in-config.js +8 -5
  260. package/packages/flint/rules/flint/must-have-both-rule-and-tests.d.ts +1 -0
  261. package/packages/flint/rules/flint/must-have-both-rule-and-tests.js +5 -4
  262. package/packages/flint/rules/flint/must-match-rule-name-with-file-name.js +4 -4
  263. package/packages/flint/rules/flint/must-not-declare-fixer-without-calling-it.js +2 -2
  264. package/packages/flint/rules/flint/must-not-import-ast-node-types.js +3 -3
  265. package/packages/flint/rules/flint/must-not-use-eslint-deprecated-methods.js +2 -2
  266. package/packages/flint/rules/flint/must-use-better-error-message-for-custom-rules.d.ts +14 -0
  267. package/packages/flint/rules/flint/must-use-better-error-message-for-custom-rules.js +4 -4
  268. package/packages/flint/rules/flint/must-use-constants-for-message-ids.d.ts +0 -1
  269. package/packages/flint/rules/flint/must-use-constants-for-message-ids.js +4 -5
  270. package/packages/flint/rules/flint/must-use-create-eslint-rule.d.ts +0 -1
  271. package/packages/flint/rules/flint/must-use-create-eslint-rule.js +4 -4
  272. package/packages/flint/rules/flint/must-use-link-for-camel-or-pascal-case-names.d.ts +1 -0
  273. package/packages/flint/rules/flint/must-use-link-for-camel-or-pascal-case-names.js +6 -5
  274. package/packages/flint/rules/flint/must-use-nodetypes-structure-instead-of-string-node-type.d.ts +4 -0
  275. package/packages/flint/rules/flint/must-use-nodetypes-structure-instead-of-string-node-type.js +8 -0
  276. package/packages/flint/rules/flint/must-use-unique-filenames-with-comment-in-tests.js +2 -2
  277. package/packages/flint/rules/general/group-consts-as-const.js +3 -3
  278. package/packages/flint/rules/general/must-add-space-for-comments.d.ts +1 -0
  279. package/packages/flint/rules/general/must-add-space-for-comments.js +3 -2
  280. package/packages/flint/rules/general/must-create-resources-in-src-dir.d.ts +1 -0
  281. package/packages/flint/rules/general/must-create-resources-in-src-dir.js +3 -2
  282. package/packages/flint/rules/general/must-not-define-functions-in-constants-files.d.ts +3 -0
  283. package/packages/flint/rules/general/must-not-define-functions-in-constants-files.js +8 -0
  284. package/packages/flint/rules/general/must-not-pass-full-objects-into-functions-needlessly.d.ts +1 -0
  285. package/packages/flint/rules/general/must-not-pass-full-objects-into-functions-needlessly.js +5 -4
  286. package/packages/flint/rules/general/must-start-comments-with-uppercase.d.ts +1 -0
  287. package/packages/flint/rules/general/must-start-comments-with-uppercase.js +3 -2
  288. package/packages/flint/rules/general/must-use-native-private.d.ts +1 -0
  289. package/packages/flint/rules/general/must-use-native-private.js +4 -3
  290. package/packages/flint/rules/general/must-use-strict-dependency-version.d.ts +1 -0
  291. package/packages/flint/rules/general/must-use-strict-dependency-version.js +3 -2
  292. package/packages/flint/rules/general/no-empty-files.d.ts +1 -0
  293. package/packages/flint/rules/general/no-empty-files.js +4 -3
  294. package/packages/flint/rules/general/no-eslint-disable-without-approved.d.ts +1 -0
  295. package/packages/flint/rules/general/no-eslint-disable-without-approved.js +4 -4
  296. package/packages/flint/rules/general/no-import-from-temp-dev.d.ts +1 -0
  297. package/packages/flint/rules/general/no-import-from-temp-dev.js +4 -3
  298. package/packages/flint/rules/general/no-specify-return-type.d.ts +1 -0
  299. package/packages/flint/rules/general/no-specify-return-type.js +4 -3
  300. package/packages/flint/rules/general/no-todo.d.ts +1 -0
  301. package/packages/flint/rules/general/no-todo.js +3 -2
  302. package/packages/flint/rules/general/use-of-only-english-in-repository.d.ts +1 -0
  303. package/packages/flint/rules/general/use-of-only-english-in-repository.js +4 -3
  304. package/packages/flint/rules/index.js +138 -128
  305. package/packages/flint/rules/must-always-specify-types-for-api-responses.d.ts +3 -0
  306. package/packages/flint/rules/must-always-specify-types-for-api-responses.js +7 -0
  307. package/packages/flint/rules/must-declare-module-members-in-consistent-order.js +3 -3
  308. package/packages/flint/rules/must-not-modify-data-or-workspace-in-readonly-tests.d.ts +0 -1
  309. package/packages/flint/rules/must-not-modify-data-or-workspace-in-readonly-tests.js +4 -4
  310. package/packages/flint/rules/must-not-return-empty-strings.d.ts +0 -1
  311. package/packages/flint/rules/must-not-return-empty-strings.js +4 -4
  312. package/packages/flint/rules/must-not-use-all-caps-constants.js +3 -3
  313. package/packages/flint/rules/must-not-use-fetch.js +3 -3
  314. package/packages/flint/rules/must-not-use-inline-object-type-parameters.js +2 -2
  315. package/packages/flint/rules/must-not-use-placeholders-in-eslint-rule-titles.js +3 -3
  316. package/packages/flint/rules/must-not-use-see-link-in-docs-if-type-available.d.ts +3 -0
  317. package/packages/flint/rules/must-not-use-see-link-in-docs-if-type-available.js +7 -0
  318. package/packages/flint/rules/must-separate-unrelated-tests-into-different-files.js +3 -3
  319. package/packages/flint/rules/must-specify-second-generic-parameter-in-apipost-and-apiput.d.ts +4 -0
  320. package/packages/flint/rules/must-specify-second-generic-parameter-in-apipost-and-apiput.js +7 -0
  321. package/packages/flint/rules/must-use-color-variables-instead-of-hardcoded-values.js +3 -3
  322. package/packages/flint/rules/must-use-functions-for-component-ids.js +3 -3
  323. package/packages/flint/rules/must-use-odata-builder.d.ts +3 -0
  324. package/packages/flint/rules/must-use-odata-builder.js +7 -0
  325. package/packages/flint/rules/must-use-only-crud-operations.js +3 -3
  326. package/packages/flint/rules/naming/filename-kebab-case.d.ts +1 -0
  327. package/packages/flint/rules/naming/filename-kebab-case.js +4 -3
  328. package/packages/flint/rules/naming/must-add-empty-line-before-assert-act-arrange.js +1 -1
  329. package/packages/flint/rules/naming/must-add-prefix-to-po-functions.d.ts +1 -0
  330. package/packages/flint/rules/naming/must-add-prefix-to-po-functions.js +4 -3
  331. package/packages/flint/rules/naming/must-avoid-non-null-assertions.js +2 -2
  332. package/packages/flint/rules/naming/must-create-assert-functions-in-asserts-files.d.ts +1 -0
  333. package/packages/flint/rules/naming/must-create-assert-functions-in-asserts-files.js +4 -3
  334. package/packages/flint/rules/naming/must-get-elements-in-tests-only-by-id.d.ts +1 -0
  335. package/packages/flint/rules/naming/must-get-elements-in-tests-only-by-id.js +4 -3
  336. package/packages/flint/rules/naming/must-name-ui-tests-component-condition-expected-result.d.ts +1 -0
  337. package/packages/flint/rules/naming/must-name-ui-tests-component-condition-expected-result.js +4 -3
  338. package/packages/flint/rules/naming/must-not-add-files-and-code-in-lib-folder.d.ts +1 -0
  339. package/packages/flint/rules/naming/must-not-add-files-and-code-in-lib-folder.js +4 -3
  340. package/packages/flint/rules/naming/must-not-create-funcs-files-for-non-components.js +3 -3
  341. package/packages/flint/rules/naming/must-not-declare-func-inside-another-func.d.ts +1 -0
  342. package/packages/flint/rules/naming/must-not-declare-func-inside-another-func.js +4 -3
  343. package/packages/flint/rules/naming/must-not-import-react.d.ts +1 -0
  344. package/packages/flint/rules/naming/must-not-import-react.js +5 -4
  345. package/packages/flint/rules/naming/must-not-use-emojis.d.ts +1 -0
  346. package/packages/flint/rules/naming/must-not-use-emojis.js +4 -3
  347. package/packages/flint/rules/naming/must-not-use-indexed-access-type-in-function-params.js +3 -3
  348. package/packages/flint/rules/naming/must-not-use-location-href.d.ts +1 -0
  349. package/packages/flint/rules/naming/must-not-use-location-href.js +4 -3
  350. package/packages/flint/rules/naming/must-not-use-negation-with-enums.d.ts +1 -0
  351. package/packages/flint/rules/naming/must-not-use-negation-with-enums.js +4 -3
  352. package/packages/flint/rules/naming/must-not-use-null.d.ts +1 -0
  353. package/packages/flint/rules/naming/must-not-use-null.js +4 -3
  354. package/packages/flint/rules/naming/must-not-use-po-in-assert-functions.d.ts +1 -0
  355. package/packages/flint/rules/naming/must-not-use-po-in-assert-functions.js +4 -3
  356. package/packages/flint/rules/naming/must-not-use-redundant-string.d.ts +1 -0
  357. package/packages/flint/rules/naming/must-not-use-redundant-string.js +4 -3
  358. package/packages/flint/rules/naming/must-not-use-ternary-operator-for-complicated-conditions.d.ts +1 -0
  359. package/packages/flint/rules/naming/must-not-use-ternary-operator-for-complicated-conditions.js +4 -3
  360. package/packages/flint/rules/naming/must-put-empty-line.d.ts +1 -0
  361. package/packages/flint/rules/naming/must-put-empty-line.js +4 -3
  362. package/packages/flint/rules/naming/must-throw-full-error-objects.js +2 -2
  363. package/packages/flint/rules/naming/must-use-camelcase-for-html-items-id-attribute.d.ts +1 -0
  364. package/packages/flint/rules/naming/must-use-camelcase-for-html-items-id-attribute.js +4 -4
  365. package/packages/flint/rules/naming/must-use-descriptive-names-for-functions-and-parameters.js +3 -3
  366. package/packages/flint/rules/naming/must-use-env-keys-from-constant.js +3 -3
  367. package/packages/flint/rules/naming/must-use-example-domain.d.ts +1 -0
  368. package/packages/flint/rules/naming/must-use-example-domain.js +4 -3
  369. package/packages/flint/rules/naming/must-use-filename-in-assert-functions.d.ts +1 -0
  370. package/packages/flint/rules/naming/must-use-filename-in-assert-functions.js +4 -3
  371. package/packages/flint/rules/naming/must-use-func-declaration-for-named-func.d.ts +1 -0
  372. package/packages/flint/rules/naming/must-use-func-declaration-for-named-func.js +4 -3
  373. package/packages/flint/rules/naming/must-use-function-for-component.d.ts +1 -0
  374. package/packages/flint/rules/naming/must-use-function-for-component.js +4 -3
  375. package/packages/flint/rules/naming/must-use-interface-for-props.d.ts +1 -0
  376. package/packages/flint/rules/naming/must-use-interface-for-props.js +4 -3
  377. package/packages/flint/rules/naming/must-use-new-url-constructor.d.ts +1 -0
  378. package/packages/flint/rules/naming/must-use-new-url-constructor.js +5 -3
  379. package/packages/flint/rules/naming/must-use-pascal-case-for-types-and-interfaces.d.ts +1 -0
  380. package/packages/flint/rules/naming/must-use-pascal-case-for-types-and-interfaces.js +4 -3
  381. package/packages/flint/rules/naming/must-use-plural-enum-const-and-singular-type.d.ts +1 -0
  382. package/packages/flint/rules/naming/must-use-plural-enum-const-and-singular-type.js +5 -4
  383. package/packages/flint/rules/naming/must-use-plural-in-function-names-if-returns-array.d.ts +1 -0
  384. package/packages/flint/rules/naming/must-use-plural-in-function-names-if-returns-array.js +6 -5
  385. package/packages/flint/rules/naming/must-use-plural-names-of-files-for-arrays.js +5 -5
  386. package/packages/flint/rules/naming/must-use-resource-name-instead-of-resource.d.ts +3 -0
  387. package/packages/flint/rules/naming/must-use-resource-name-instead-of-resource.js +7 -0
  388. package/packages/flint/rules/naming/must-use-s-ending-for-natural-plurals.d.ts +1 -0
  389. package/packages/flint/rules/naming/must-use-s-ending-for-natural-plurals.js +5 -4
  390. package/packages/flint/rules/naming/must-use-the-fd-prefix-for-env-variables.js +2 -2
  391. package/packages/flint/rules/naming/must-use-wrappers-to-access-first-element.d.ts +3 -0
  392. package/packages/flint/rules/naming/must-use-wrappers-to-access-first-element.js +7 -0
  393. package/packages/flint/rules/naming/no-conflicting-props.d.ts +1 -0
  394. package/packages/flint/rules/naming/no-conflicting-props.js +4 -3
  395. package/packages/flint/rules/naming/no-default-props.d.ts +1 -0
  396. package/packages/flint/rules/naming/no-default-props.js +4 -3
  397. package/packages/flint/rules/naming/no-delays-in-ui-tests.d.ts +1 -0
  398. package/packages/flint/rules/naming/no-delays-in-ui-tests.js +4 -3
  399. package/packages/flint/rules/naming/no-fd-prefix-in-folders.d.ts +1 -0
  400. package/packages/flint/rules/naming/no-fd-prefix-in-folders.js +4 -3
  401. package/packages/flint/rules/naming/no-get-in-function-names-without-return.d.ts +6 -0
  402. package/packages/flint/rules/naming/no-get-in-function-names-without-return.js +4 -3
  403. package/packages/flint/rules/naming/no-integers-instead-of-enums.d.ts +1 -0
  404. package/packages/flint/rules/naming/no-integers-instead-of-enums.js +5 -4
  405. package/packages/flint/rules/naming/no-nullable-check.d.ts +1 -0
  406. package/packages/flint/rules/naming/no-nullable-check.js +4 -3
  407. package/packages/flint/rules/naming/no-untyped-objects-between-components.d.ts +1 -0
  408. package/packages/flint/rules/naming/no-untyped-objects-between-components.js +5 -4
  409. package/packages/flint/rules/naming/no-use-conditional-logic-in-test-assertions.d.ts +1 -0
  410. package/packages/flint/rules/naming/no-use-conditional-logic-in-test-assertions.js +4 -3
  411. package/packages/flint/rules/naming/no-use-enum.d.ts +1 -0
  412. package/packages/flint/rules/naming/no-use-enum.js +3 -2
  413. package/packages/flint/rules/naming/no-use-id.d.ts +1 -0
  414. package/packages/flint/rules/naming/no-use-id.js +4 -3
  415. package/packages/flint/rules/naming/no-utils-helpers-naming.d.ts +3 -0
  416. package/packages/flint/rules/naming/no-utils-helpers-naming.js +7 -0
  417. package/packages/flint/rules/naming/use-on-prefix.d.ts +1 -0
  418. package/packages/flint/rules/naming/use-on-prefix.js +4 -3
  419. package/packages/flint/rules/performance/must-clean-up-event-listeners.d.ts +1 -0
  420. package/packages/flint/rules/performance/must-clean-up-event-listeners.js +4 -3
  421. package/packages/flint/rules/readability/component-function-max-lines.js +3 -3
  422. package/packages/flint/rules/readability/exported-func-above-regular.d.ts +0 -1
  423. package/packages/flint/rules/readability/exported-func-above-regular.js +4 -4
  424. package/packages/flint/rules/readability/for-each-max-lines.d.ts +1 -0
  425. package/packages/flint/rules/readability/for-each-max-lines.js +4 -3
  426. package/packages/flint/rules/readability/max-lines-per-function.d.ts +1 -0
  427. package/packages/flint/rules/readability/max-lines-per-function.js +4 -3
  428. package/packages/flint/rules/readability/must-consolidate-conditional-expressions.d.ts +1 -0
  429. package/packages/flint/rules/readability/must-consolidate-conditional-expressions.js +4 -3
  430. package/packages/flint/rules/readability/must-do-await-data-in-one-line.js +2 -2
  431. package/packages/flint/rules/readability/must-limit-lines-without-comments.d.ts +1 -0
  432. package/packages/flint/rules/readability/must-limit-lines-without-comments.js +3 -2
  433. package/packages/flint/rules/readability/must-not-destructure-function-parameters.js +3 -3
  434. package/packages/flint/rules/readability/must-not-use-empty-lines-in-html.js +3 -3
  435. package/packages/flint/rules/readability/must-not-use-inline-await.js +3 -3
  436. package/packages/flint/rules/readability/must-return-empty-array.d.ts +3 -0
  437. package/packages/flint/rules/readability/must-return-empty-array.js +7 -0
  438. package/packages/flint/rules/readability/must-use-alt-to-describe-images.d.ts +1 -0
  439. package/packages/flint/rules/readability/must-use-alt-to-describe-images.js +5 -4
  440. package/packages/flint/rules/readability/must-use-create-error.d.ts +1 -0
  441. package/packages/flint/rules/readability/must-use-create-error.js +4 -3
  442. package/packages/flint/rules/readability/must-use-interfaces-for-complex-types.d.ts +1 -0
  443. package/packages/flint/rules/readability/must-use-interfaces-for-complex-types.js +4 -3
  444. package/packages/flint/rules/readability/must-use-single-return-in-function.d.ts +3 -3
  445. package/packages/flint/rules/readability/must-use-single-return-in-function.js +4 -4
  446. package/packages/flint/rules/readability/must-use-test-comments.d.ts +1 -0
  447. package/packages/flint/rules/readability/must-use-test-comments.js +4 -3
  448. package/packages/flint/rules/readability/no-centralized-error-messages.js +2 -2
  449. package/packages/flint/rules/readability/no-constructor-name-for-resource.d.ts +1 -0
  450. package/packages/flint/rules/readability/no-constructor-name-for-resource.js +4 -3
  451. package/packages/flint/rules/readability/no-long-filter-map.d.ts +1 -0
  452. package/packages/flint/rules/readability/no-long-filter-map.js +4 -3
  453. package/packages/flint/rules/readability/no-naked-query-return.js +3 -3
  454. package/packages/flint/rules/readability/no-string-length-check.d.ts +1 -0
  455. package/packages/flint/rules/readability/no-string-length-check.js +4 -3
  456. package/packages/flint/rules/readability/no-then.d.ts +1 -0
  457. package/packages/flint/rules/readability/no-then.js +4 -3
  458. package/packages/flint/rules/readability/no-to-lower-case-with-resource-name.js +3 -3
  459. package/packages/flint/rules/readability/no-useless-destructing.js +3 -3
  460. package/packages/flint/rules/readability/use-function-without-parameter-shortcut.js +3 -3
  461. package/packages/flint/rules/readability/use-nullish-coalescing-for-default.d.ts +1 -0
  462. package/packages/flint/rules/readability/use-nullish-coalescing-for-default.js +6 -4
  463. package/packages/infra/ci/constants/ci-constants.d.ts +5 -0
  464. package/packages/infra/ci/constants/ci-constants.js +2 -1
  465. package/packages/infra/ci/constants/git-commands.d.ts +1 -5
  466. package/packages/infra/ci/constants/git-commands.js +2 -2
  467. package/packages/infra/ci/constants/npm-commands.d.ts +5 -3
  468. package/packages/infra/ci/constants/npm-commands.js +1 -1
  469. package/packages/infra/ci/constants/paths.d.ts +1 -1
  470. package/packages/infra/ci/constants/paths.js +2 -2
  471. package/packages/infra/ci/jobs/build-and-test.js +2 -3
  472. package/packages/infra/ci/jobs/build-db-connection-string.js +1 -1
  473. package/packages/infra/ci/jobs/build-package.js +3 -2
  474. package/packages/infra/ci/jobs/ci-auto-merge.js +2 -2
  475. package/packages/infra/ci/jobs/clear-nx-cache.js +4 -3
  476. package/packages/infra/ci/jobs/cli-create-test.js +3 -3
  477. package/packages/infra/ci/jobs/deploy-to-vercel.js +3 -3
  478. package/packages/infra/ci/jobs/drop-all-db.js +2 -2
  479. package/packages/infra/ci/jobs/lint.js +4 -3
  480. package/packages/infra/ci/jobs/manual-cleanup.js +2 -2
  481. package/packages/infra/ci/jobs/publish-package.js +2 -2
  482. package/packages/infra/ci/jobs/ranksters-build-and-test.js +2 -2
  483. package/packages/infra/ci/jobs/saas-kit-test-build-and-test.js +3 -3
  484. package/packages/infra/ci/jobs/sync-saas-kit-version-to-main.js +3 -3
  485. package/packages/infra/ci/jobs/unpublish-package.js +3 -3
  486. package/packages/infra/ci/jobs/update-submodules.js +3 -3
  487. package/packages/infra/ci/setup/checkout-and-sync-submodules.js +3 -3
  488. package/packages/infra/ci/setup/cleanup.js +3 -3
  489. package/packages/infra/ci/setup/clear-nx-cache-environment.js +1 -1
  490. package/packages/infra/ci/setup/copy-playwright-report.js +4 -4
  491. package/packages/infra/ci/setup/get-build-package-info.js +3 -2
  492. package/packages/infra/ci/setup/get-latest-npm-package-info.js +2 -2
  493. package/packages/infra/ci/setup/init-db.js +2 -2
  494. package/packages/infra/ci/setup/install-local-saaskit.js +6 -5
  495. package/packages/infra/ci/setup/npm-auth.js +3 -3
  496. package/packages/infra/ci/setup/prepare-environment.js +3 -3
  497. package/packages/infra/ci/setup/prettier.js +4 -4
  498. package/packages/infra/ci/setup/resolve-and-checkout-submodule-branch.js +3 -3
  499. package/packages/infra/ci/setup/resolve-main-repo-branch.js +3 -3
  500. package/packages/infra/ci/setup/rollup-cache-cloud.d.ts +2 -0
  501. package/packages/infra/ci/setup/rollup-cache-cloud.js +13 -0
  502. package/packages/infra/ci/setup/setup-submodules.js +3 -3
  503. package/packages/infra/ci/setup/spawn-background-server.js +3 -2
  504. package/packages/infra/ci/setup/sync-build-artifacts.js +2 -2
  505. package/packages/infra/ci/setup/update-workspace-dependencies.js +2 -2
  506. package/packages/infra/ci/setup/verify-published-version.js +2 -2
  507. package/packages/infra/ci/utils/cloud-client.d.ts +2 -0
  508. package/packages/infra/ci/utils/cloud-client.js +8 -0
  509. package/packages/infra/ci/utils/create-early-infra-error.js +1 -1
  510. package/packages/infra/ci/utils/exec.js +2 -2
  511. package/packages/infra/ci/utils/git-command-funcs.js +1 -1
  512. package/packages/infra/ci/utils/git.js +6 -6
  513. package/packages/infra/ci/utils/npm-command-funcs.js +2 -2
  514. package/packages/infra/deploy/cluster/cluster-deploy-setup.js +1 -1
  515. package/packages/infra/deploy/cluster/deploy-constants.d.ts +1 -1
  516. package/packages/infra/deploy/cluster/deploy-constants.js +3 -2
  517. package/packages/infra/git/gitlab/gitlab.js +1 -1
  518. package/packages/infra/plugins/dirname-plugin.js +1 -1
  519. package/packages/level2/ai/server/ai-deepinfra.js +1 -1
  520. package/packages/level2/ai/server/ai-google.js +1 -1
  521. package/packages/level2/ai/server/ai-groq.js +1 -1
  522. package/packages/level2/ai/vercel-ai-sdk/ai.js +1 -1
  523. package/packages/level2/cli/create/configs/drizzle-cli-config.js +2 -1
  524. package/packages/level2/cli/create/configs/next-cli-config.d.ts +11 -31
  525. package/packages/level2/cli/create/configs/next-cli-config.js +1 -3
  526. package/packages/level2/cli/create/configs/playwright-cli-config.js +4 -1
  527. package/packages/level2/client/component-configs/configure-default-config.js +1 -1
  528. package/packages/level2/client/component-configs/edit-resource-configs.js +1 -1
  529. package/packages/level2/client/component-configs/multi-list-config.js +1 -1
  530. package/packages/level2/client/component-configs/resource-list-configs.js +1 -1
  531. package/packages/level2/client/component-configs/workspace-settings-config.js +1 -1
  532. package/packages/level2/client/components/subscription-plan/SubscriptionPlan.funcs.d.ts +1 -1
  533. package/packages/level2/client/components/subscription-plan/SubscriptionPlan.funcs.js +2 -2
  534. package/packages/level2/client/components/subscription-plan/SubscriptionPlan.js +2 -5
  535. package/packages/level2/client/components/subscription-plan/subscription-plan-config.js +1 -1
  536. package/packages/level2/client/components/subscription-plan/subscriptions.js +1 -1
  537. package/packages/level2/client/components/wizard/Wizard.funcs.js +1 -1
  538. package/packages/level2/client/components/wizard/WizardStepper.funcs.js +1 -1
  539. package/packages/level2/client/components/wizard/config/wizard-edit-resource-config.js +1 -1
  540. package/packages/level2/client/pages/dashboard-page/DashboardPage.funcs.d.ts +1 -1
  541. package/packages/level2/client/pages/dashboard-page/DashboardPage.funcs.js +1 -1
  542. package/packages/level2/client/pages/edit-user-by-id-page/EditUserByIdPage.js +4 -3
  543. package/packages/level2/client/pages/microsoft-page/MicrosoftPage.funcs.js +1 -1
  544. package/packages/level2/client/pages/screenshot-page/TestScreenshotPage.funcs.js +1 -1
  545. package/packages/level2/client/pages/view-page/ViewPage.funcs.js +3 -4
  546. package/packages/level2/client/payments/change-payment-method-field/ChangePaymentMethodField.funcs.js +1 -1
  547. package/packages/level2/client/payments/checkout-form/CheckoutForm.funcs.d.ts +1 -0
  548. package/packages/level2/client/payments/checkout-form/CheckoutForm.funcs.js +3 -2
  549. package/packages/level2/client/payments/checkout-form/CheckoutForm.js +70 -83
  550. package/packages/level2/client/payments/checkout-form/CheckoutFormSubmit.js +3 -12
  551. package/packages/level2/client/payments/payments.js +1 -1
  552. package/packages/level2/client/products/reject-action-funcs.js +1 -1
  553. package/packages/level2/client/website-scan/website-scan-data.d.ts +1 -1
  554. package/packages/level2/client/website-scan/website-scan-result-social-media.js +1 -1
  555. package/packages/level2/common/addresses/address.resource.js +1 -1
  556. package/packages/level2/common/addresses/country.resource.js +1 -1
  557. package/packages/level2/common/customers/customer.resource.js +1 -1
  558. package/packages/level2/common/demo/company.resource.js +1 -1
  559. package/packages/level2/common/demo/contact.resource.js +1 -1
  560. package/packages/level2/common/demo/deal.resource.js +1 -1
  561. package/packages/level2/common/demo/ticket.resource.js +1 -1
  562. package/packages/level2/common/dev/ai-assistent/ai-assistant.resource.js +1 -1
  563. package/packages/level2/common/dev/custom-permission-resource/custom-permission-resource.resource.js +1 -1
  564. package/packages/level2/common/dev/dev-report.resource.js +1 -1
  565. package/packages/level2/common/dev/friends/friend.resource.js +1 -1
  566. package/packages/level2/common/dev/jobs/job.resource.js +1 -1
  567. package/packages/level2/common/dev/no-permission.resource.js +1 -1
  568. package/packages/level2/common/dev/persons/dev-greeting.resource.js +1 -1
  569. package/packages/level2/common/dev/persons/paper-plane.resource.js +1 -1
  570. package/packages/level2/common/dev/persons/person-to-job.resource.js +1 -1
  571. package/packages/level2/common/dev/persons/person-to-person.resource.js +1 -1
  572. package/packages/level2/common/dev/persons/person.resource-ext.js +1 -1
  573. package/packages/level2/common/dev/persons/person.resource.js +1 -1
  574. package/packages/level2/common/dev/persons/phone-brand.resource.js +1 -1
  575. package/packages/level2/common/dev/persons/ping.resource.js +1 -1
  576. package/packages/level2/common/dev/singleton-dev-sandbox.resource.js +1 -1
  577. package/packages/level2/common/fd/fd-meta-toolbox/status-board/status-board.resource.js +1 -1
  578. package/packages/level2/common/fd/fd-toolbox-web/forms/form-field-bank.resource.js +1 -1
  579. package/packages/level2/common/fd/fd-toolbox-web/forms/form-field-category.resource.js +1 -1
  580. package/packages/level2/common/fd/fd-toolbox-web/forms/form-field-submission.resource.js +1 -1
  581. package/packages/level2/common/fd/fd-toolbox-web/forms/form-field-to-form-section.resource.js +1 -1
  582. package/packages/level2/common/fd/fd-toolbox-web/forms/form-field.resource.js +1 -1
  583. package/packages/level2/common/fd/fd-toolbox-web/forms/form-section.resource.js +1 -1
  584. package/packages/level2/common/fd/fd-toolbox-web/forms/form-submission.resource.js +1 -1
  585. package/packages/level2/common/fd/fd-toolbox-web/forms/form.resource.js +1 -1
  586. package/packages/level2/common/fd/fd-toolbox-web/localization/language.resource.js +1 -1
  587. package/packages/level2/common/fd/fd-toolbox-web/localization/localization-string.resource.js +1 -1
  588. package/packages/level2/common/hd/resources/hd-product.resource.js +1 -1
  589. package/packages/level2/common/leads/google-place.resource.js +1 -1
  590. package/packages/level2/common/leads/lead-category.resource.js +1 -1
  591. package/packages/level2/common/leads/lead-email.resource.js +1 -1
  592. package/packages/level2/common/leads/lead-group.resource.js +1 -1
  593. package/packages/level2/common/leads/lead-to-lead-category.resource.js +1 -1
  594. package/packages/level2/common/leads/lead-to-lead-group.resource.js +1 -1
  595. package/packages/level2/common/leads/lead.resource.js +1 -1
  596. package/packages/level2/common/leads/lm/google-place.resource-ext.js +1 -1
  597. package/packages/level2/common/models/create-user-input.js +1 -1
  598. package/packages/level2/common/models/edit-other-user-dto.js +1 -1
  599. package/packages/level2/common/models/user-created.js +1 -1
  600. package/packages/level2/common/payments/feature-to-payment-plan.resource.js +1 -1
  601. package/packages/level2/common/payments/payment.resource.js +1 -1
  602. package/packages/level2/common/payments/system-invoice/payment-system-invoice.resource.js +1 -1
  603. package/packages/level2/common/products/product-parameter.resource.js +1 -1
  604. package/packages/level2/common/resources/case.resource2.js +1 -1
  605. package/packages/level2/common/resources/dashboard-report.resource.js +1 -1
  606. package/packages/level2/common/resources/dashboard.resource.js +1 -1
  607. package/packages/level2/common/resources/feed-entry.resource.js +1 -1
  608. package/packages/level2/common/resources/integration-subscription.resource.js +1 -1
  609. package/packages/level2/common/resources/item.resource.js +1 -1
  610. package/packages/level2/common/resources/oauth-service.resource.js +1 -1
  611. package/packages/level2/common/resources/order-line.resource.js +1 -1
  612. package/packages/level2/common/resources/order-transaction.resource.js +1 -1
  613. package/packages/level2/common/resources/order.resource.js +1 -1
  614. package/packages/level2/common/resources/product-category.resource.js +1 -1
  615. package/packages/level2/common/resources/product-media.resource.js +1 -1
  616. package/packages/level2/common/resources/product.resource.js +1 -1
  617. package/packages/level2/common/resources/search.resource.js +1 -1
  618. package/packages/level2/common/resources/searchable-resource.resource.js +1 -1
  619. package/packages/level2/common/resources/system-setting.resource.js +1 -1
  620. package/packages/level2/common/resources/website-scan-result.resource.js +1 -1
  621. package/packages/level2/common/resources/workspace-setting.resource.js +1 -1
  622. package/packages/level2/common/shipment/shipment-provider.resource.js +1 -1
  623. package/packages/level2/common/shipment/shipment.resource.js +1 -1
  624. package/packages/level2/common/stores/store.resource.js +1 -1
  625. package/packages/level2/common/tutorial/student.resource.js +1 -1
  626. package/packages/level2/common/website-scan/analytics-scan.js +1 -1
  627. package/packages/level2/common/website-scan/website-platform-checking.js +1 -1
  628. package/packages/level2/db/adapters/postgres-adapter.js +2 -2
  629. package/packages/level2/db/adapters/sqlite-adapter.js +2 -2
  630. package/packages/level2/db/constants/db-constants.js +1 -1
  631. package/packages/level2/db/db-config.js +1 -1
  632. package/packages/level2/db/db-connection.js +1 -1
  633. package/packages/level2/db/db-schema.js +1 -1
  634. package/packages/level2/db/drizzle-queries.js +1 -1
  635. package/packages/level2/db/guards/db-type-guards.js +1 -1
  636. package/packages/level2/db/utils/run-migration-command.js +1 -1
  637. package/packages/level2/enricher/integrations/google-spreadsheet.d.ts +1 -1
  638. package/packages/level2/enricher/integrations/google-spreadsheet.js +3 -3
  639. package/packages/level2/fd-app-toolbox/edit-password-form/EditPasswordForm.funcs.js +1 -1
  640. package/packages/level2/fd-app-toolbox/edit-password-form/EditPasswordForm.js +36 -47
  641. package/packages/level2/fd-app-toolbox/edit-user-form/EditUserForm.funcs.js +1 -1
  642. package/packages/level2/fd-app-toolbox/edit-user-form/EditUserForm.js +46 -55
  643. package/packages/level2/fd-app-toolbox/edit-user-sheet/EditUserSheet.funcs.js +1 -1
  644. package/packages/level2/fd-app-toolbox/forgot-password-form/ForgotPasswordForm.funcs.js +1 -1
  645. package/packages/level2/fd-app-toolbox/forgot-password-form/ForgotPasswordForm.js +7 -16
  646. package/packages/level2/fd-app-toolbox/layout/client-layout/client-layout-config.js +1 -1
  647. package/packages/level2/fd-app-toolbox/layout/client-root/ClientRoot.funcs.js +1 -1
  648. package/packages/level2/fd-app-toolbox/layout/sidebar/Sidebar.funcs.d.ts +2 -2
  649. package/packages/level2/fd-app-toolbox/layout/sidebar/Sidebar.funcs.js +1 -1
  650. package/packages/level2/fd-app-toolbox/layout/sidebar/sidebar-dropdown-menu/SidebarDropdownMenu.funcs.js +1 -1
  651. package/packages/level2/fd-app-toolbox/layout/sidebar/sidebar-resource-names-cache.js +1 -1
  652. package/packages/level2/fd-app-toolbox/layout/toolbar/Toolbar.funcs.js +1 -1
  653. package/packages/level2/fd-app-toolbox/layout/toolbar/Toolbar.js +1 -1
  654. package/packages/level2/fd-app-toolbox/login-form/LoginForm.funcs.js +1 -1
  655. package/packages/level2/fd-app-toolbox/login-form/LoginForm.js +50 -49
  656. package/packages/level2/fd-app-toolbox/login-form/facebook-login.js +1 -1
  657. package/packages/level2/fd-app-toolbox/login-form/google-login.js +1 -1
  658. package/packages/level2/fd-app-toolbox/login-form/microsoft-login.js +1 -1
  659. package/packages/level2/fd-app-toolbox/login-form/standard-login.js +1 -1
  660. package/packages/level2/fd-app-toolbox/menu/notifications-menu/NotificationMenu.funcs.js +2 -2
  661. package/packages/level2/fd-app-toolbox/menu/notifications-menu/notification-list/NotificationList.funcs.js +1 -1
  662. package/packages/level2/fd-app-toolbox/menu/top-menu/top-menu-item/TopMenuItem.funcs.js +1 -1
  663. package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/UserDropdownMenu.funcs.d.ts +2 -0
  664. package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/UserDropdownMenu.funcs.js +3 -2
  665. package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/UserDropdownMenu.js +2 -3
  666. package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/user-dropdown-menu-item/UserDropdownMenuItem.funcs.js +1 -1
  667. package/packages/level2/fd-app-toolbox/menu/visible-workspace-picker/VisibleWorkspacePicker.funcs.js +1 -1
  668. package/packages/level2/fd-app-toolbox/menu/workspace-picker/WorkspacePicker.funcs.js +1 -1
  669. package/packages/level2/fd-app-toolbox/models/screens-result.js +1 -1
  670. package/packages/level2/fd-app-toolbox/models/searchable-resource-result.js +1 -1
  671. package/packages/level2/fd-app-toolbox/passwords/passwords-api.js +1 -1
  672. package/packages/level2/fd-app-toolbox/providers/ThemeProvider/theme.js +1 -1
  673. package/packages/level2/fd-app-toolbox/register-form/RegisterForm.funcs.js +1 -1
  674. package/packages/level2/fd-app-toolbox/register-form/RegisterForm.js +40 -51
  675. package/packages/level2/fd-app-toolbox/report/Chart.js +2 -2
  676. package/packages/level2/fd-app-toolbox/report/ReportCard.funcs.js +1 -1
  677. package/packages/level2/fd-app-toolbox/report/ReportChart.funcs.js +1 -1
  678. package/packages/level2/fd-app-toolbox/report/ReportComponent.funcs.js +1 -1
  679. package/packages/level2/fd-app-toolbox/reports/dashboard-report-data.resource.js +1 -1
  680. package/packages/level2/fd-app-toolbox/reports/report-chart-series.resource.js +1 -1
  681. package/packages/level2/fd-app-toolbox/reports/report-with-data.resource.js +1 -1
  682. package/packages/level2/fd-app-toolbox/reports/report.resource.js +1 -1
  683. package/packages/level2/fd-app-toolbox/reset-password-form/ResetPasswordForm.funcs.js +1 -1
  684. package/packages/level2/fd-app-toolbox/reset-password-form/ResetPasswordForm.js +10 -18
  685. package/packages/level2/fd-app-toolbox/resources/notification/notification.resource.js +1 -1
  686. package/packages/level2/fd-app-toolbox/resources/status-board/status-board-item.resource.js +1 -1
  687. package/packages/level2/fd-app-toolbox/resources/status-board/status-board-status.resource.js +1 -1
  688. package/packages/level2/fd-app-toolbox/search/Search.funcs.js +1 -1
  689. package/packages/level2/fd-app-toolbox/search/search-dialog/SearchDialog.funcs.js +2 -2
  690. package/packages/level2/fd-app-toolbox/search/search-result/SearchResult.funcs.js +1 -1
  691. package/packages/level2/fd-app-toolbox/search/search-searchable-resource-results/SearchSearchableResourceResult.funcs.js +1 -1
  692. package/packages/level2/fd-app-toolbox/server/base-resources/props/fill-base-resource-props.js +1 -1
  693. package/packages/level2/fd-app-toolbox/server/base-resources/props/fill-workspace-resource-props.js +1 -1
  694. package/packages/level2/fd-app-toolbox/server/infra/workspaces/workspace-db.js +1 -1
  695. package/packages/level2/fd-app-toolbox/server/layout/sidebar/sidebar-resources.js +1 -1
  696. package/packages/level2/fd-app-toolbox/server/users/user-db.js +1 -1
  697. package/packages/level2/fd-app-toolbox/server/workspace/visible-workspaces.js +1 -1
  698. package/packages/level2/fd-app-toolbox/services/web-socket-client.js +1 -1
  699. package/packages/level2/fd-app-toolbox/status-board/StatusBoard.funcs.js +1 -1
  700. package/packages/level2/fd-app-toolbox/user-list/UserList.funcs.js +1 -1
  701. package/packages/level2/fd-component-toolbox/badge-toggle-list/BadgeToggleList.funcs.js +1 -1
  702. package/packages/level2/fd-component-toolbox/big-calendar/BigCalendar.funcs.js +4 -7
  703. package/packages/level2/fd-component-toolbox/button/Button.d.ts +2 -2
  704. package/packages/level2/fd-component-toolbox/button/Button.funcs.js +1 -1
  705. package/packages/level2/fd-component-toolbox/calendar/Calendar.funcs.js +1 -1
  706. package/packages/level2/fd-component-toolbox/client/framework/index.js +3 -3
  707. package/packages/level2/fd-component-toolbox/datepicker/DatePicker.funcs.d.ts +1 -1
  708. package/packages/level2/fd-component-toolbox/datepicker/DatePicker.funcs.js +1 -1
  709. package/packages/level2/fd-component-toolbox/dialog/YesOrNoDialog.funcs.js +1 -1
  710. package/packages/level2/fd-component-toolbox/dynamic-layout/Dynamic.d.ts +1 -1
  711. package/packages/level2/fd-component-toolbox/dynamic-layout/DynamicLayoutDragAndDrop.funcs.js +1 -1
  712. package/packages/level2/fd-component-toolbox/dynamic-layout/dynamic-component-props.d.ts +1 -1
  713. package/packages/level2/fd-component-toolbox/dynamic-layout/layout-element.d.ts +1 -1
  714. package/packages/level2/fd-component-toolbox/fade-out-text/FadeOutText.funcs.js +1 -1
  715. package/packages/level2/fd-component-toolbox/form/Form.js +6 -9
  716. package/packages/level2/fd-component-toolbox/image-radio-group/ImageRadioGroup.js +2 -2
  717. package/packages/level2/fd-component-toolbox/image-radio-group/ImageRadioGroupDialog.js +2 -2
  718. package/packages/level2/fd-component-toolbox/input/Input.d.ts +3 -3
  719. package/packages/level2/fd-component-toolbox/input/Input.funcs.d.ts +2 -2
  720. package/packages/level2/fd-component-toolbox/input/Input.funcs.js +1 -1
  721. package/packages/level2/fd-component-toolbox/list/list-item/ListItem.funcs.js +1 -1
  722. package/packages/level2/fd-component-toolbox/markdown/Markdown.funcs.js +1 -1
  723. package/packages/level2/fd-component-toolbox/markdown/Markdown.js +2 -2
  724. package/packages/level2/fd-component-toolbox/multiselect/Multiselect.d.ts +2 -1
  725. package/packages/level2/fd-component-toolbox/multiselect/Multiselect.funcs.d.ts +1 -1
  726. package/packages/level2/fd-component-toolbox/multiselect/Multiselect.funcs.js +1 -1
  727. package/packages/level2/fd-component-toolbox/multiselect/hooks/use-multi-select.js +1 -1
  728. package/packages/level2/fd-component-toolbox/navigation/navigation-item/NavigationItem.funcs.js +1 -1
  729. package/packages/level2/fd-component-toolbox/rich-text/RichText.funcs.js +3 -3
  730. package/packages/level2/fd-component-toolbox/rich-text/rich-text-constants.js +1 -1
  731. package/packages/level2/fd-component-toolbox/sizing/sizing.js +1 -1
  732. package/packages/level2/fd-component-toolbox/switch/Switch.funcs.js +1 -1
  733. package/packages/level2/fd-component-toolbox/table-element-suffixes.d.ts +12 -14
  734. package/packages/level2/fd-component-toolbox/textarea/TextArea.funcs.d.ts +1 -1
  735. package/packages/level2/fd-component-toolbox/textarea/TextArea.funcs.js +1 -1
  736. package/packages/level2/fd-component-toolbox/toaster/Toaster.funcs.js +1 -1
  737. package/packages/level2/meta/api/hooks/use-ui-resource-meta.js +1 -1
  738. package/packages/level2/meta/api/meta-odata.js +1 -1
  739. package/packages/level2/meta/auth/auth-guards.js +1 -1
  740. package/packages/level2/meta/auth/auth-handler.js +1 -1
  741. package/packages/level2/meta/auth/logins.js +1 -1
  742. package/packages/level2/meta/auth/permissions/permission-checker.js +1 -1
  743. package/packages/level2/meta/browsers/base-multi-browser/BaseMultiBrowser.d.ts +1 -1
  744. package/packages/level2/meta/browsers/base-multi-browser/BaseMultiBrowser.funcs.js +1 -1
  745. package/packages/level2/meta/browsers/base-multi-browser/base-multi-browser-dialog/BaseMultiBrowserDialog.funcs.d.ts +2 -6
  746. package/packages/level2/meta/browsers/base-multi-browser/base-multi-browser-dialog/BaseMultiBrowserDialog.funcs.js +1 -1
  747. package/packages/level2/meta/browsers/browser/Browser.funcs.js +1 -1
  748. package/packages/level2/meta/browsers/browser/browser-dialog/BrowserDialog.funcs.js +1 -1
  749. package/packages/level2/meta/browsers/many-to-many-browser/ManyToManyBrowser.funcs.js +1 -1
  750. package/packages/level2/meta/browsers/multi-browser/MultiBrowser.funcs.d.ts +1 -1
  751. package/packages/level2/meta/browsers/multi-browser/MultiBrowser.funcs.js +1 -1
  752. package/packages/level2/meta/card-list/CardList.funcs.js +1 -1
  753. package/packages/level2/meta/card-list/config/card-config.js +1 -1
  754. package/packages/level2/meta/card-list/data-card/DataCard.funcs.js +1 -1
  755. package/packages/level2/meta/card-list/data-card/data-card-content/DataCardContent.funcs.js +1 -1
  756. package/packages/level2/meta/client/framework/hooks.js +1 -1
  757. package/packages/level2/meta/client/framework/index.js +1 -1
  758. package/packages/level2/meta/client/layout.js +1 -1
  759. package/packages/level2/meta/comment/CommentList.funcs.js +1 -1
  760. package/packages/level2/meta/components/edit-image/EditImage.funcs.js +1 -1
  761. package/packages/level2/meta/components/file-upload/FileUpload.funcs.js +1 -1
  762. package/packages/level2/meta/components/multi-list/MultiList.funcs.d.ts +1 -1
  763. package/packages/level2/meta/components/multi-list/MultiList.funcs.js +1 -1
  764. package/packages/level2/meta/components/multi-list/MultiList.js +2 -2
  765. package/packages/level2/meta/components/multi-list/multi-list-types.d.ts +1 -1
  766. package/packages/level2/meta/components/multi-list/use-multi-list-edit-resource-config.js +1 -1
  767. package/packages/level2/meta/components/related-resources/RelatedResources.funcs.js +1 -1
  768. package/packages/level2/meta/components/related-resources/related-property.js +1 -1
  769. package/packages/level2/meta/components/related-resources/related-resources-component.js +1 -1
  770. package/packages/level2/meta/constants/toolbox-users.js +1 -1
  771. package/packages/level2/meta/core/auth-resource-meta.js +1 -1
  772. package/packages/level2/meta/core/property-meta.js +1 -1
  773. package/packages/level2/meta/core/property-types.js +1 -1
  774. package/packages/level2/meta/core/relation.js +1 -1
  775. package/packages/level2/meta/core/resource-description/resource-description.js +1 -1
  776. package/packages/level2/meta/core/resource-description/resource-descriptions.js +1 -1
  777. package/packages/level2/meta/core/resource-meta.js +1 -1
  778. package/packages/level2/meta/core/resource-singletons.js +1 -1
  779. package/packages/level2/meta/core/resources/blob/blob-urls.js +1 -1
  780. package/packages/level2/meta/core/resources/blob/blob.resource.js +1 -1
  781. package/packages/level2/meta/core/resources/comment.resource.js +1 -1
  782. package/packages/level2/meta/core/resources/features/feature.resource.js +1 -1
  783. package/packages/level2/meta/core/resources/payment-plan-feature.resource.js +1 -1
  784. package/packages/level2/meta/core/resources/payment-plan.resource.js +1 -1
  785. package/packages/level2/meta/core/resources/permissions/permission-package-to-permission.resource.js +1 -1
  786. package/packages/level2/meta/core/resources/permissions/permission-package.resource.js +1 -1
  787. package/packages/level2/meta/core/resources/pricing.resource.js +1 -1
  788. package/packages/level2/meta/core/resources/resources/resource-property.resource.js +1 -1
  789. package/packages/level2/meta/core/resources/resources/resource.resource.js +1 -1
  790. package/packages/level2/meta/core/resources/roles/role-feature.resource.js +1 -1
  791. package/packages/level2/meta/core/resources/roles/role-to-permission-package.resource.js +1 -1
  792. package/packages/level2/meta/core/resources/roles/role-to-permission.resource.js +1 -1
  793. package/packages/level2/meta/core/resources/roles/role.resource.js +1 -1
  794. package/packages/level2/meta/core/resources/usage-limit/usage-limit.resource.js +1 -1
  795. package/packages/level2/meta/core/resources/users/user-activity-overview.resource.js +1 -1
  796. package/packages/level2/meta/core/resources/users/user-feature.resource.js +1 -1
  797. package/packages/level2/meta/core/resources/users/user-role.resource.js +1 -1
  798. package/packages/level2/meta/core/resources/users/user-setting.resource.js +1 -1
  799. package/packages/level2/meta/core/resources/users/user-to-workspace.resource.js +1 -1
  800. package/packages/level2/meta/core/resources/users/user-visible-workspace.resource.js +1 -1
  801. package/packages/level2/meta/core/resources/users/user-workspace-invite.resource.js +1 -1
  802. package/packages/level2/meta/core/resources/users/user.resource.js +1 -1
  803. package/packages/level2/meta/core/resources/workspace/workspace-resource.js +1 -1
  804. package/packages/level2/meta/core/resources/workspace/workspace-to-workspace.resource.js +1 -1
  805. package/packages/level2/meta/core/resources/workspace/workspace.resource.js +1 -1
  806. package/packages/level2/meta/core/ui-property-meta-old.js +1 -1
  807. package/packages/level2/meta/crud/permissions/crud-permission-checker.js +1 -1
  808. package/packages/level2/meta/decorators/access-by-user-id.js +1 -1
  809. package/packages/level2/meta/decorators/access-by-workspace-id.js +1 -1
  810. package/packages/level2/meta/decorators/allowed-crud-actions.js +1 -1
  811. package/packages/level2/meta/decorators/big-text.js +1 -1
  812. package/packages/level2/meta/decorators/blob-image.js +1 -1
  813. package/packages/level2/meta/decorators/colorful.js +1 -1
  814. package/packages/level2/meta/decorators/concat-description.js +1 -1
  815. package/packages/level2/meta/decorators/create-only-resource.js +1 -1
  816. package/packages/level2/meta/decorators/currency.js +1 -1
  817. package/packages/level2/meta/decorators/date-only.js +1 -1
  818. package/packages/level2/meta/decorators/db-index.js +1 -1
  819. package/packages/level2/meta/decorators/default-sort.js +1 -1
  820. package/packages/level2/meta/decorators/description-based-on-property-value.js +1 -1
  821. package/packages/level2/meta/decorators/description-property.js +1 -1
  822. package/packages/level2/meta/decorators/display-name.js +1 -1
  823. package/packages/level2/meta/decorators/dynamic.js +1 -1
  824. package/packages/level2/meta/decorators/email.js +1 -1
  825. package/packages/level2/meta/decorators/expand-description-properties.js +1 -1
  826. package/packages/level2/meta/decorators/file-upload.js +1 -1
  827. package/packages/level2/meta/decorators/flags-enum.js +1 -1
  828. package/packages/level2/meta/decorators/get-only-resource.js +1 -1
  829. package/packages/level2/meta/decorators/icon.js +1 -1
  830. package/packages/level2/meta/decorators/integer.js +1 -1
  831. package/packages/level2/meta/decorators/label.js +1 -1
  832. package/packages/level2/meta/decorators/markdown.js +1 -1
  833. package/packages/level2/meta/decorators/not-a-resource.js +1 -1
  834. package/packages/level2/meta/decorators/not-colorful.js +1 -1
  835. package/packages/level2/meta/decorators/not-displayable.js +1 -1
  836. package/packages/level2/meta/decorators/not-edit-displayable.js +1 -1
  837. package/packages/level2/meta/decorators/not-editable-from-outside.js +1 -1
  838. package/packages/level2/meta/decorators/not-filter-displayable.js +1 -1
  839. package/packages/level2/meta/decorators/not-list-displayable.js +1 -1
  840. package/packages/level2/meta/decorators/not-relation.js +1 -1
  841. package/packages/level2/meta/decorators/outside-excluded.js +1 -1
  842. package/packages/level2/meta/decorators/permission-checker-for.js +1 -1
  843. package/packages/level2/meta/decorators/phone-number.js +1 -1
  844. package/packages/level2/meta/decorators/plural-name.js +1 -1
  845. package/packages/level2/meta/decorators/prefer-plural-name.js +1 -1
  846. package/packages/level2/meta/decorators/prefer-singular-name.js +1 -1
  847. package/packages/level2/meta/decorators/priority.js +1 -1
  848. package/packages/level2/meta/decorators/required-if-other-are-present.js +1 -1
  849. package/packages/level2/meta/decorators/required-if-prop-has-value.js +1 -1
  850. package/packages/level2/meta/decorators/required.js +1 -1
  851. package/packages/level2/meta/decorators/resource-id.js +1 -1
  852. package/packages/level2/meta/decorators/resource-property-id.js +1 -1
  853. package/packages/level2/meta/decorators/rich-text.js +1 -1
  854. package/packages/level2/meta/decorators/searchable.js +1 -1
  855. package/packages/level2/meta/decorators/singleton.js +1 -1
  856. package/packages/level2/meta/decorators/transient-resource.js +1 -1
  857. package/packages/level2/meta/decorators/ui-priority.js +1 -1
  858. package/packages/level2/meta/decorators/ui-relation-priority.js +1 -1
  859. package/packages/level2/meta/decorators/unique.js +1 -1
  860. package/packages/level2/meta/decorators/url.js +1 -1
  861. package/packages/level2/meta/edit-resource/EditResource.funcs.js +1 -1
  862. package/packages/level2/meta/edit-resource/EditResourceHeader.funcs.js +1 -1
  863. package/packages/level2/meta/edit-resource/EditResourceSheet.funcs.js +1 -1
  864. package/packages/level2/meta/edit-resource/EditResourceTabs.funcs.js +1 -1
  865. package/packages/level2/meta/edit-resource/apply-value-changes.js +1 -1
  866. package/packages/level2/meta/edit-resource/config/custom-filter-config-provider.d.ts +4 -0
  867. package/packages/level2/meta/edit-resource/config/custom-filter-config-provider.js +4 -0
  868. package/packages/level2/meta/edit-resource/config/edit-resource-config-custom-field.d.ts +1 -1
  869. package/packages/level2/meta/edit-resource/config/edit-resource-config.js +1 -1
  870. package/packages/level2/meta/edit-resource/config/edit-resource-configs.js +1 -1
  871. package/packages/level2/meta/edit-resource/config/edit-resource-property-config.js +1 -1
  872. package/packages/level2/meta/edit-resource/config/resource-list-config.js +1 -1
  873. package/packages/level2/meta/edit-resource/edit-link/EditLink.funcs.js +1 -1
  874. package/packages/level2/meta/edit-resource/edit-resource-dialog/EditResourceDialog.funcs.js +1 -1
  875. package/packages/level2/meta/edit-resource/edit-resource-property-block/EditResourceBlobField.funcs.js +1 -1
  876. package/packages/level2/meta/edit-resource/edit-resource-property-block/EditResourceEnumField.funcs.js +1 -1
  877. package/packages/level2/meta/edit-resource/edit-resource-property-block/EditResourceFlagsEnumField.funcs.js +1 -1
  878. package/packages/level2/meta/edit-resource/edit-resource-property-block/EditResourceImageField.funcs.js +7 -0
  879. package/packages/level2/meta/edit-resource/edit-resource-property-block/EditResourceImageField.js +7 -3
  880. package/packages/level2/meta/edit-resource/edit-resource-property-block/EditResourcePropertyBlock.funcs.d.ts +1 -1
  881. package/packages/level2/meta/edit-resource/edit-resource-property-block/EditResourcePropertyBlock.funcs.js +2 -2
  882. package/packages/level2/meta/edit-resource/edit-resource-property-field/EditResourcePropertyField.funcs.js +1 -1
  883. package/packages/level2/meta/edit-resource/edit-resource-validation.js +1 -1
  884. package/packages/level2/meta/edit-resource/edit-resources-constants.js +1 -1
  885. package/packages/level2/meta/edit-resource/hooks/use-edit-resource-ref.js +1 -1
  886. package/packages/level2/meta/edit-resource/save-complete-context.js +1 -1
  887. package/packages/level2/meta/edit-resource/services/blob-components.js +1 -1
  888. package/packages/level2/meta/edit-resource/services/edit-resource-components.js +1 -1
  889. package/packages/level2/meta/edit-resource/services/edit-resource-relations.js +1 -1
  890. package/packages/level2/meta/edit-resource/services/edit-resources.js +1 -1
  891. package/packages/level2/meta/edit-resource/services/form-validations.js +1 -1
  892. package/packages/level2/meta/edit-resource/services/property-metas.js +1 -1
  893. package/packages/level2/meta/edit-resource/services/use-edit-resource-config.js +1 -1
  894. package/packages/level2/meta/fd-meta-toolbox-service.js +1 -1
  895. package/packages/level2/meta/filtering/filter/Filter.funcs.d.ts +1 -1
  896. package/packages/level2/meta/filtering/filter/Filter.funcs.js +1 -1
  897. package/packages/level2/meta/filtering/filter/filters/EnumFilter.d.ts +2 -1
  898. package/packages/level2/meta/filtering/filter/filters/IntegerFilter.d.ts +1 -1
  899. package/packages/level2/meta/filtering/filter/filters/TextFilter.d.ts +1 -1
  900. package/packages/level2/meta/filtering/filter/filters/boolean-filter/BooleanFilter.funcs.d.ts +1 -1
  901. package/packages/level2/meta/filtering/filter/filters/boolean-filter/BooleanFilter.funcs.js +1 -1
  902. package/packages/level2/meta/filtering/resource-filter-list/ResourceFilterList.funcs.d.ts +1 -1
  903. package/packages/level2/meta/filtering/resource-filter-list/ResourceFilterList.funcs.js +1 -1
  904. package/packages/level2/meta/filtering/resource-filter-list/resource-filter-list-ids.js +1 -1
  905. package/packages/level2/meta/filtering/resource-filter-list/resource-filter-lists.js +1 -1
  906. package/packages/level2/meta/filtering/resource-filter-list/use-resource-filter-list-display.js +1 -1
  907. package/packages/level2/meta/layout/events.js +1 -1
  908. package/packages/level2/meta/layout/layout.d.ts +1 -1
  909. package/packages/level2/meta/meta-providers.js +1 -1
  910. package/packages/level2/meta/meta-sort.js +1 -1
  911. package/packages/level2/meta/models/user-base-resource.js +1 -1
  912. package/packages/level2/meta/models/user-workspace-base-resource.js +1 -1
  913. package/packages/level2/meta/odata/expands.js +1 -1
  914. package/packages/level2/meta/odata/odata-selects.js +1 -1
  915. package/packages/level2/meta/one-to-many-relations.js +1 -1
  916. package/packages/level2/meta/page/use-set-title.js +1 -1
  917. package/packages/level2/meta/page/use-title.js +1 -1
  918. package/packages/level2/meta/public-api.d.ts +14 -0
  919. package/packages/level2/meta/public-api.js +15 -0
  920. package/packages/level2/meta/relations/many-to-many-info.js +1 -1
  921. package/packages/level2/meta/relations/meta-relations.js +1 -1
  922. package/packages/level2/meta/resource-list/ResourceList.d.ts +2 -2
  923. package/packages/level2/meta/resource-list/ResourceList.funcs.js +4 -3
  924. package/packages/level2/meta/resource-list/ResourceList.js +6 -11
  925. package/packages/level2/meta/resource-list/resource-list-cell-element-ids.js +7 -0
  926. package/packages/level2/meta/resource-list/resource-list-checkers.js +1 -1
  927. package/packages/level2/meta/resource-list/resource-list-configs.js +1 -1
  928. package/packages/level2/meta/resource-list/resource-list-header/ResourceListHeader.funcs.js +1 -1
  929. package/packages/level2/meta/resource-list/resource-list-hooks.js +1 -1
  930. package/packages/level2/meta/resource-list/resource-list-persist-state.js +1 -1
  931. package/packages/level2/meta/resource-list/resource-list-state.d.ts +2 -2
  932. package/packages/level2/meta/resource-list/resource-lists.js +1 -1
  933. package/packages/level2/meta/resource-list/use-resource-list-config.js +1 -1
  934. package/packages/level2/meta/resource-providers.js +1 -1
  935. package/packages/level2/meta/resources/session/session.resource.js +1 -1
  936. package/packages/level2/meta/server/api/odata/odata-expression-operators.js +1 -1
  937. package/packages/level2/meta/server/api/odata/odata-expressions.js +1 -1
  938. package/packages/level2/meta/server/api/odata/odata-filters-helpers.js +1 -1
  939. package/packages/level2/meta/server/api/odata/odata-filters.js +1 -1
  940. package/packages/level2/meta/server/api/odata/odata-metas.js +1 -1
  941. package/packages/level2/meta/server/api/odata/odata-parsers.js +1 -1
  942. package/packages/level2/meta/server/api/odata/odata.js +1 -1
  943. package/packages/level2/meta/server/auth/auth-guard.js +1 -1
  944. package/packages/level2/meta/server/auth/fd-sessions.js +1 -1
  945. package/packages/level2/meta/server/auth/permissions/resource-permission-checker-provider.js +1 -1
  946. package/packages/level2/meta/server/auth/role-db/get-all-including-user-to-roles.js +1 -1
  947. package/packages/level2/meta/server/auth/session-access.js +1 -1
  948. package/packages/level2/meta/server/auth/session-validation.js +1 -1
  949. package/packages/level2/meta/server/auth/session.js +1 -1
  950. package/packages/level2/meta/server/auth/users/current-user-id-provider.js +1 -1
  951. package/packages/level2/meta/server/basic-crud/crud-api.js +1 -1
  952. package/packages/level2/meta/server/basic-crud/crud.js +1 -1
  953. package/packages/level2/meta/server/basic-crud/cruds.js +1 -1
  954. package/packages/level2/meta/server/basic-crud/helpers/crud-event-handler.js +1 -1
  955. package/packages/level2/meta/server/basic-crud/helpers/cruds-permission-checker.js +1 -1
  956. package/packages/level2/meta/server/basic-crud/helpers/prepare-many-to-many-resource.js +1 -1
  957. package/packages/level2/meta/server/basic-crud/related-resource-db.js +1 -1
  958. package/packages/level2/meta/server/basic-crud/relation-syncs.js +1 -1
  959. package/packages/level2/meta/server/basic-crud/resource-crud-handlers.js +1 -1
  960. package/packages/level2/meta/server/basic-crud/resource-meta-handlers.js +1 -1
  961. package/packages/level2/meta/server/controllers/generic-controllers/crud-controller.js +1 -1
  962. package/packages/level2/meta/server/db/db.js +1 -1
  963. package/packages/level2/meta/server/db/init-db.js +1 -1
  964. package/packages/level2/meta/server/db/schema/schema-adapter.js +1 -1
  965. package/packages/level2/meta/server/entities/edit-base-resources.js +1 -1
  966. package/packages/level2/meta/server/entities/edit-workspace.js +1 -1
  967. package/packages/level2/meta/server/integration-platforms/fd-integration-cache.js +1 -1
  968. package/packages/level2/meta/server/integration-platforms/integration-db.js +1 -1
  969. package/packages/level2/meta/server/integration-platforms/integration-events.js +1 -1
  970. package/packages/level2/meta/server/messaging/messages.js +1 -1
  971. package/packages/level2/meta/server/meta-core/constants/metas.js +1 -1
  972. package/packages/level2/meta/server/meta-core/constants/resource-ids.js +1 -1
  973. package/packages/level2/meta/server/meta-core/crud/crud-update-config.js +1 -1
  974. package/packages/level2/meta/server/meta-core/crud/search.js +1 -1
  975. package/packages/level2/meta/server/meta-core/display-name.js +1 -1
  976. package/packages/level2/meta/server/meta-url-service.js +1 -1
  977. package/packages/level2/meta/server/models/roles/role-to-permission-package-db.js +1 -1
  978. package/packages/level2/meta/server/permission/permission-checker.js +1 -1
  979. package/packages/level2/meta/server/permission/permission-data-provider.js +1 -1
  980. package/packages/level2/meta/server/permission/permission-package-to-permission-db.js +1 -1
  981. package/packages/level2/meta/server/permission/permissions.js +1 -1
  982. package/packages/level2/meta/server/permission/user-permissions-builder.js +1 -1
  983. package/packages/level2/meta/server/props/meta-property-filters.js +1 -1
  984. package/packages/level2/meta/server/props/property-meta-config-provider.js +1 -1
  985. package/packages/level2/meta/server/props/property-names.js +1 -1
  986. package/packages/level2/meta/server/props/required-properties.js +1 -1
  987. package/packages/level2/meta/server/providers/current-workspace-id-provider.js +1 -1
  988. package/packages/level2/meta/server/relations/many-to-many-relations.js +1 -1
  989. package/packages/level2/meta/server/relations/relations.js +1 -1
  990. package/packages/level2/meta/server/repositories/odata-db.js +1 -1
  991. package/packages/level2/meta/server/resources/crud-resources.js +1 -1
  992. package/packages/level2/meta/server/resources/dynamic-properties.js +1 -1
  993. package/packages/level2/meta/server/resources/init-internal-resource-metas-from-json.js +2 -2
  994. package/packages/level2/meta/server/resources/internal-resource-meta.js +1 -1
  995. package/packages/level2/meta/server/resources/resource-checker.js +1 -1
  996. package/packages/level2/meta/server/resources/resource-meta-plugin.js +2 -2
  997. package/packages/level2/meta/server/resources/searchable-resources-api.js +1 -1
  998. package/packages/level2/meta/server/resources/searchable-resources.js +1 -1
  999. package/packages/level2/meta/server/services/crud-actions.js +1 -1
  1000. package/packages/level2/meta/server/services/metas.js +1 -1
  1001. package/packages/level2/meta/server/services/permission-check-config-provider.js +1 -1
  1002. package/packages/level2/meta/server/services/property-meta.js +1 -1
  1003. package/packages/level2/meta/server/services/property-metas.js +1 -1
  1004. package/packages/level2/meta/server/services/resource-name-converter.js +1 -1
  1005. package/packages/level2/meta/server/services/resource-provider-db.js +1 -1
  1006. package/packages/level2/meta/server/services/resource-provider-defaults.js +1 -1
  1007. package/packages/level2/meta/server/services/resource-provider-expands.js +1 -1
  1008. package/packages/level2/meta/server/services/resource-provider-permissions.js +1 -1
  1009. package/packages/level2/meta/server/services/resource-provider.js +1 -1
  1010. package/packages/level2/meta/server/ui/meta-api.js +1 -1
  1011. package/packages/level2/meta/server/ui/ui-metas-api.js +1 -1
  1012. package/packages/level2/meta/server/ui/ui-metas.js +1 -1
  1013. package/packages/level2/meta/server/validations/meta-validations.js +2 -2
  1014. package/packages/level2/meta/server/value-checker.js +2 -2
  1015. package/packages/level2/meta/server/web/current-url.js +1 -1
  1016. package/packages/level2/meta/server/web/drizzle-guards.js +1 -1
  1017. package/packages/level2/meta/server/web/drizzle.js +1 -1
  1018. package/packages/level2/meta/server/web/http-api-wrapper.js +1 -1
  1019. package/packages/level2/meta/server/web/reduce-data.js +1 -1
  1020. package/packages/level2/meta/server/web/responses.js +1 -1
  1021. package/packages/level2/meta/server/workspace/get-visible-workspaces-cache-key.js +1 -1
  1022. package/packages/level2/meta/services/client-environment.js +1 -1
  1023. package/packages/level2/meta/services/filter-components.js +1 -1
  1024. package/packages/level2/meta/services/meta-navigations.js +1 -1
  1025. package/packages/level2/meta/services/property-values.js +1 -1
  1026. package/packages/level2/meta/services/resource-filters.js +1 -1
  1027. package/packages/level2/meta/services/resource-name-client-converter.js +1 -1
  1028. package/packages/level2/meta/services/window.js +1 -1
  1029. package/packages/level2/meta/state/base-state-functions.js +1 -1
  1030. package/packages/level2/meta/subscription-plan/fetch-active-or-trial-subscription.js +1 -1
  1031. package/packages/level2/meta/subscription-plan/subscription.resource.js +1 -1
  1032. package/packages/level2/meta/table/Table.funcs.js +1 -1
  1033. package/packages/level2/meta/table/body/TableBody.funcs.d.ts +1 -1
  1034. package/packages/level2/meta/table/body/TableBody.funcs.js +1 -1
  1035. package/packages/level2/meta/table/body/TableBody.js +2 -2
  1036. package/packages/level2/meta/table/body-cell/ActionBodyCell.funcs.js +1 -1
  1037. package/packages/level2/meta/table/body-cell/BlobBodyCell.funcs.js +1 -1
  1038. package/packages/level2/meta/table/body-cell/BodyCell.funcs.js +1 -1
  1039. package/packages/level2/meta/table/body-cell/BodyCellArrayTooltip.funcs.js +1 -1
  1040. package/packages/level2/meta/table/body-cell/BodyCellArrayTooltip.js +9 -6
  1041. package/packages/level2/meta/table/body-cell/MultiselectCellTemplate.funcs.js +1 -1
  1042. package/packages/level2/meta/table/body-cell/ViewCell.funcs.js +1 -1
  1043. package/packages/level2/meta/table/body-row/TableBodyRow.funcs.js +1 -1
  1044. package/packages/level2/meta/table/csv-converter.js +1 -1
  1045. package/packages/level2/meta/table/header/TableHeader.funcs.js +1 -1
  1046. package/packages/level2/meta/table/header-cell/TableHeaderActionCell.funcs.js +1 -1
  1047. package/packages/level2/meta/table/header-cell/TableHeaderCell.funcs.js +1 -1
  1048. package/packages/level2/meta/table/pager/Pager.funcs.js +1 -1
  1049. package/packages/level2/meta/table/services/fd-private-paging.js +1 -1
  1050. package/packages/level2/meta/table/services/fd-table-private-column-calculation.js +1 -1
  1051. package/packages/level2/meta/table/services/fd-table-private-columns.js +1 -1
  1052. package/packages/level2/meta/table/services/fd-table-private-create-columns.js +1 -1
  1053. package/packages/level2/meta/table/services/fd-table-private-properties.js +1 -1
  1054. package/packages/level2/meta/table/services/fd-table-private-resize-columns.js +1 -1
  1055. package/packages/level2/meta/table/services/fd-table-private-rows.js +1 -1
  1056. package/packages/level2/meta/table/services/fd-table-private-sorting.js +1 -1
  1057. package/packages/level2/meta/table/services/table-private-cell.js +1 -1
  1058. package/packages/level2/meta/table/table-constants.js +1 -1
  1059. package/packages/level2/meta/table/table-custom-action/TableCustomAction.funcs.js +1 -1
  1060. package/packages/level2/meta/table/table-models.d.ts +5 -5
  1061. package/packages/level2/meta/ui/ui-relation.js +1 -1
  1062. package/packages/level2/meta/ui-meta-providers.js +1 -1
  1063. package/packages/level2/meta/ui-resource-meta.js +1 -1
  1064. package/packages/level2/meta/view/ViewSheet.funcs.js +1 -1
  1065. package/packages/level2/npm-commands/gen-dynamic-handlers-map/generate-dynamic-handlers-map.js +3 -3
  1066. package/packages/level2/npm-commands/gen-meta/generate-meta.js +2 -2
  1067. package/packages/level2/npm-commands/gen-meta/generate-tsconfig.js +2 -2
  1068. package/packages/level2/npm-commands/gen-schema/gen-schema.js +1 -1
  1069. package/packages/level2/npm-commands/gen-schema/transpile-schema.js +1 -1
  1070. package/packages/level2/npm-commands/migrate-db/migrate-db.js +1 -1
  1071. package/packages/level2/npm-commands/run-command/index.js +3 -3
  1072. package/packages/level2/npm-commands/seed-db/seed-db.js +1 -1
  1073. package/packages/level2/npm-commands/server/db/fd-db-initializer.js +1 -1
  1074. package/packages/level2/other/scrapping/scrape.command.js +1 -1
  1075. package/packages/level2/other/scrapping/scrapper-config.js +1 -1
  1076. package/packages/level2/other/scrapping/scrappers.js +2 -2
  1077. package/packages/level2/server/addresses/address-db.js +1 -1
  1078. package/packages/level2/server/addresses/address-master-data.js +1 -1
  1079. package/packages/level2/server/addresses/country-db.d.ts +1 -1
  1080. package/packages/level2/server/addresses/country-db.js +2 -2
  1081. package/packages/level2/server/addresses/country-master-data.js +1 -1
  1082. package/packages/level2/server/ai/ai-generated-text.js +1 -1
  1083. package/packages/level2/server/auth/dev-demo-permissions.js +1 -1
  1084. package/packages/level2/server/auth/lm-permission-master-data.js +1 -1
  1085. package/packages/level2/server/auth/oauth-service-db.js +1 -1
  1086. package/packages/level2/server/auth/permission-master-data.js +1 -1
  1087. package/packages/level2/server/auth/permission-role-mapping.js +1 -1
  1088. package/packages/level2/server/auth/role-db.js +1 -1
  1089. package/packages/level2/server/auth/role-master-data.js +1 -1
  1090. package/packages/level2/server/auth/role-to-permission-master-data.js +1 -1
  1091. package/packages/level2/server/auth/role-to-permission-package.handlers.js +1 -1
  1092. package/packages/level2/server/auth/role-to-permission.handlers.js +1 -1
  1093. package/packages/level2/server/auth/role.handlers.js +1 -1
  1094. package/packages/level2/server/auth/sign-in-api.js +1 -1
  1095. package/packages/level2/server/auth/sign-out-api.js +1 -1
  1096. package/packages/level2/server/auth/sign-up-api.js +1 -1
  1097. package/packages/level2/server/blob/blob-db.d.ts +1 -1
  1098. package/packages/level2/server/blob/blob-db.js +3 -3
  1099. package/packages/level2/server/business-profile/business-profile-api.js +2 -2
  1100. package/packages/level2/server/comments/comment-db.js +1 -1
  1101. package/packages/level2/server/comments/comment-master-data.js +1 -1
  1102. package/packages/level2/server/customers/customer-db.js +1 -1
  1103. package/packages/level2/server/customers/customer-master-data.js +1 -1
  1104. package/packages/level2/server/dashboards/dashboard-db.js +1 -1
  1105. package/packages/level2/server/dashboards/dashboard-master-data.js +1 -1
  1106. package/packages/level2/server/dashboards/dashboard-report-db.js +1 -1
  1107. package/packages/level2/server/dashboards/dashboard-report-master-data.js +1 -1
  1108. package/packages/level2/server/db/db.js +1 -1
  1109. package/packages/level2/server/demo/companies/company-db.js +1 -1
  1110. package/packages/level2/server/demo/companies/company-master-data.js +1 -1
  1111. package/packages/level2/server/demo/contacts/contact-db.js +1 -1
  1112. package/packages/level2/server/demo/contacts/contact-master-data.js +1 -1
  1113. package/packages/level2/server/demo/deals/deal-db.js +1 -1
  1114. package/packages/level2/server/demo/deals/deal-master-data.js +1 -1
  1115. package/packages/level2/server/demo/tickets/ticket-db.js +1 -1
  1116. package/packages/level2/server/demo/tickets/ticket-master-data.js +1 -1
  1117. package/packages/level2/server/dev/ai-assistant/ai-assistant-db.js +1 -1
  1118. package/packages/level2/server/dev/ai-assistant/ai-assistant-master-data.js +1 -1
  1119. package/packages/level2/server/dev/ai-assistant/ai-assistant-mother.js +1 -1
  1120. package/packages/level2/server/dev/dev-greeting/dev-greeting-master-data.js +1 -1
  1121. package/packages/level2/server/dev/dev-greeting/dev-greeting-mother.js +1 -1
  1122. package/packages/level2/server/dev/friends/friend-db.js +1 -1
  1123. package/packages/level2/server/dev/friends/friend-master-data.js +1 -1
  1124. package/packages/level2/server/dev/friends/friend-mother.js +1 -1
  1125. package/packages/level2/server/dev/friends/friend-utils.js +1 -1
  1126. package/packages/level2/server/dev/jobs/job-db.js +1 -1
  1127. package/packages/level2/server/dev/jobs/job-master-data.js +1 -1
  1128. package/packages/level2/server/dev/jobs/job-mother.js +1 -1
  1129. package/packages/level2/server/dev/paper-planes/paper-plane-db.js +1 -1
  1130. package/packages/level2/server/dev/paper-planes/paper-plane-master-data.js +1 -1
  1131. package/packages/level2/server/dev/paper-planes/paper-plane-mother.js +1 -1
  1132. package/packages/level2/server/dev/paper-planes/paper-plane.handlers.js +1 -1
  1133. package/packages/level2/server/dev/persons/person-db.js +1 -1
  1134. package/packages/level2/server/dev/persons/person-master-data.js +1 -1
  1135. package/packages/level2/server/dev/persons/person-mother.js +1 -1
  1136. package/packages/level2/server/dev/persons/person-to-job-db.js +1 -1
  1137. package/packages/level2/server/dev/persons/person-to-job-master-data.js +1 -1
  1138. package/packages/level2/server/dev/persons/person-to-job-mother.js +1 -1
  1139. package/packages/level2/server/dev/persons/person-to-person-db.js +1 -1
  1140. package/packages/level2/server/dev/persons/person-to-person-master-data.js +1 -1
  1141. package/packages/level2/server/dev/persons/person-to-person-mother.js +1 -1
  1142. package/packages/level2/server/dev/persons/person.handlers.js +1 -1
  1143. package/packages/level2/server/dev/phone-brands/phone-brand-db.js +1 -1
  1144. package/packages/level2/server/dev/phone-brands/phone-brand-master-data.js +1 -1
  1145. package/packages/level2/server/dev/phone-brands/phone-brand-mother.js +1 -1
  1146. package/packages/level2/server/dev/pings/ping-db.js +1 -1
  1147. package/packages/level2/server/dev/pings/ping-master-data.js +1 -1
  1148. package/packages/level2/server/dev/pings/ping-mother.js +1 -1
  1149. package/packages/level2/server/example/example-api.js +1 -1
  1150. package/packages/level2/server/export/csv-data-formatter.js +1 -1
  1151. package/packages/level2/server/export/export-api.js +1 -1
  1152. package/packages/level2/server/fd/fd-toolbox-asp-net/models/roles/role-to-permission-db.d.ts +1 -1
  1153. package/packages/level2/server/fd/fd-toolbox-asp-net/models/roles/role-to-permission-db.js +2 -2
  1154. package/packages/level2/server/fd/fd-toolbox-web/auth/permissions/permission-db.js +1 -1
  1155. package/packages/level2/server/fd/fd-toolbox-web/auth/permissions/permission-package-db.js +1 -1
  1156. package/packages/level2/server/fd/fd-toolbox-web/auth/permissions/permission-package-to-db.js +1 -1
  1157. package/packages/level2/server/fd/fd-toolbox-web/auth/permissions/permission-package-to-permission.handlers.js +1 -1
  1158. package/packages/level2/server/fd/fd-toolbox-web/auth/permissions/permission-package.handlers.js +1 -1
  1159. package/packages/level2/server/fd/fd-toolbox-web/auth/permissions/permission.handlers.js +1 -1
  1160. package/packages/level2/server/fd/fd-toolbox-web/http/base-http-client.js +1 -1
  1161. package/packages/level2/server/fd/fd-toolbox-web/localization/language/language-db.js +1 -1
  1162. package/packages/level2/server/fd/fd-toolbox-web/localization/language/language-master-data.js +1 -1
  1163. package/packages/level2/server/fd/fd-toolbox-web/logging/log-api.js +1 -1
  1164. package/packages/level2/server/fd/fd-toolbox-web/mailing/fd-emails.js +1 -1
  1165. package/packages/level2/server/fd/fd-toolbox-web/models/reset-password-request.js +1 -1
  1166. package/packages/level2/server/fd/fd-toolbox-web/notifications/notification-db.js +1 -1
  1167. package/packages/level2/server/fd/fd-toolbox-web/permissions/fd-permission-master-data.js +1 -1
  1168. package/packages/level2/server/fd/fd-toolbox-web/permissions/permission-api.js +1 -1
  1169. package/packages/level2/server/fd/fd-toolbox-web/resources/resource-property-db.d.ts +1 -1
  1170. package/packages/level2/server/fd/fd-toolbox-web/resources/resource-property-db.js +2 -2
  1171. package/packages/level2/server/fd/fd-toolbox-web/seeding/notification-master-data.js +1 -1
  1172. package/packages/level2/server/fd/fd-toolbox-web/seeding/resource-master-data.js +1 -1
  1173. package/packages/level2/server/fd/fd-toolbox-web/seeding/resource-property-master-data.js +1 -1
  1174. package/packages/level2/server/fd/fd-toolbox-web/seeding/workspace-master-data.js +1 -1
  1175. package/packages/level2/server/fd/fd-toolbox-web/services/notifications.js +1 -1
  1176. package/packages/level2/server/fd/fd-toolbox-web/services/socket/web-socket-server.js +1 -1
  1177. package/packages/level2/server/features/feature-db.js +1 -1
  1178. package/packages/level2/server/features/feature-master-data.js +1 -1
  1179. package/packages/level2/server/features/feature-mother.js +1 -1
  1180. package/packages/level2/server/features/features.js +1 -1
  1181. package/packages/level2/server/features/payment-plan-feature-data.js +1 -1
  1182. package/packages/level2/server/features/payment-plan-feature-db.d.ts +1 -1
  1183. package/packages/level2/server/features/payment-plan-feature-db.js +2 -2
  1184. package/packages/level2/server/features/status-board-master-data.js +1 -1
  1185. package/packages/level2/server/features/user-feature.handlers.js +1 -1
  1186. package/packages/level2/server/feeds/feed-entry-data.js +1 -1
  1187. package/packages/level2/server/hd/plaid/plaid.js +1 -1
  1188. package/packages/level2/server/html/email.js +1 -1
  1189. package/packages/level2/server/infra/background-jobs/background-jobs.js +2 -2
  1190. package/packages/level2/server/infra/background-jobs/init-jobs.js +1 -1
  1191. package/packages/level2/server/infra/workspaces/workspace-setting-db.js +1 -1
  1192. package/packages/level2/server/integration/data/deleted/integration-deleted-api.js +1 -1
  1193. package/packages/level2/server/integration/data/dynamicfields/integration-dynamicfields-api.js +1 -1
  1194. package/packages/level2/server/integration/integration-api.js +1 -1
  1195. package/packages/level2/server/integration-platforms/{integration-resource.funcs.js → integration-resource.js} +1 -1
  1196. package/packages/level2/server/integration-platforms/subscription-odata.js +1 -1
  1197. package/packages/level2/server/integrations/aio/blobs.js +2 -2
  1198. package/packages/level2/server/integrations/blob/blob-storage.d.ts +1 -1
  1199. package/packages/level2/server/integrations/blob/blob-storage.js +2 -2
  1200. package/packages/level2/server/integrations/google-place/google-place-helpers.js +1 -1
  1201. package/packages/level2/server/integrations/google-place/google-place.d.ts +1 -1
  1202. package/packages/level2/server/integrations/google-place/google-place.handlers.js +2 -2
  1203. package/packages/level2/server/integrations/google-place/google-place.js +2 -2
  1204. package/packages/level2/server/integrations/remote-blob/remote-blob-storage.d.ts +1 -1
  1205. package/packages/level2/server/integrations/remote-blob/remote-blob-storage.js +2 -2
  1206. package/packages/level2/server/integrations/screenshot/get-website-screenshots.js +1 -1
  1207. package/packages/level2/server/integrations/screenshot/screenshot-controller.js +1 -1
  1208. package/packages/level2/server/integrations/screenshot/screenshotone/screenshotone-client.js +2 -2
  1209. package/packages/level2/server/integrations/website-scan/scan-social-media-and-email.js +1 -1
  1210. package/packages/level2/server/integrations/website-scan/website-scan-initializer.js +1 -1
  1211. package/packages/level2/server/items/item-db.js +1 -1
  1212. package/packages/level2/server/leads/lead-category-db.js +1 -1
  1213. package/packages/level2/server/leads/lead-category-master-data.js +1 -1
  1214. package/packages/level2/server/leads/lead-db.js +1 -1
  1215. package/packages/level2/server/leads/lead-email-db.js +1 -1
  1216. package/packages/level2/server/leads/lead-email-master-data.js +1 -1
  1217. package/packages/level2/server/leads/lead-group-db.js +1 -1
  1218. package/packages/level2/server/leads/lead-group-master-data.js +1 -1
  1219. package/packages/level2/server/leads/lead-master-data.js +1 -1
  1220. package/packages/level2/server/leads/lead-to-lead-category-db.js +1 -1
  1221. package/packages/level2/server/leads/lead-to-lead-category-master-data.js +1 -1
  1222. package/packages/level2/server/leads/lead-to-lead-group-db.js +1 -1
  1223. package/packages/level2/server/leads/lead-to-lead-group-master-data.js +1 -1
  1224. package/packages/level2/server/leads/lead-to-lead-group.handlers.js +1 -1
  1225. package/packages/level2/server/leads/lead.handlers.js +1 -1
  1226. package/packages/level2/server/leads/services/ai-scan-result-delete.js +1 -1
  1227. package/packages/level2/server/lm/google-place/google-place-to-lead.js +1 -1
  1228. package/packages/level2/server/lm/google-place/save-to-group/save-to-group-api.js +1 -1
  1229. package/packages/level2/server/lm/google-place-scan-website/google-place-scan-website-api.js +1 -1
  1230. package/packages/level2/server/lm/lead-scan-website/lead-scan-website-api.js +1 -1
  1231. package/packages/level2/server/markdown/markdown-api.js +1 -1
  1232. package/packages/level2/server/markdown/markdown.js +1 -1
  1233. package/packages/level2/server/media/media-api.js +2 -2
  1234. package/packages/level2/server/media/media-master-data.js +3 -3
  1235. package/packages/level2/server/notifications/notification.handlers.js +1 -1
  1236. package/packages/level2/server/orders/order-db.js +1 -1
  1237. package/packages/level2/server/orders/order-master-data.js +1 -1
  1238. package/packages/level2/server/orders/order-utils.js +1 -1
  1239. package/packages/level2/server/orders/order.handlers.js +1 -1
  1240. package/packages/level2/server/otheruser/id/otheruser-id-api.js +1 -1
  1241. package/packages/level2/server/otheruser/otheruser-api.js +1 -1
  1242. package/packages/level2/server/password/editpassword/editpassword-api.js +1 -1
  1243. package/packages/level2/server/password/forgotpassword/forgotpassword-api.js +1 -1
  1244. package/packages/level2/server/password/resetpassword/resetpassword-api.js +1 -1
  1245. package/packages/level2/server/payment/method/payment-method-api.js +1 -1
  1246. package/packages/level2/server/payment/verify-fail/payment-verify-fail-api.js +1 -1
  1247. package/packages/level2/server/payment/verify-success/payment-verify-success.js +1 -1
  1248. package/packages/level2/server/payments/payment-plan.handlers.js +2 -2
  1249. package/packages/level2/server/payments/payments/payment-plan-db.js +1 -1
  1250. package/packages/level2/server/payments/payments/payment-plan-master-data.js +1 -1
  1251. package/packages/level2/server/payments/payments/payment-plans.js +1 -1
  1252. package/packages/level2/server/payments/payments/payments-api.js +1 -1
  1253. package/packages/level2/server/payments/payments/payments.js +1 -1
  1254. package/packages/level2/server/payments/payments/pricing-seeding.js +1 -1
  1255. package/packages/level2/server/payments/pricing.handlers.js +1 -1
  1256. package/packages/level2/server/payments/stripe/stripe-sync.js +2 -2
  1257. package/packages/level2/server/payments/stripe/stripes.js +2 -2
  1258. package/packages/level2/server/payments/subscriptions/subscription-db.js +1 -1
  1259. package/packages/level2/server/payments/subscriptions/subscriptions.js +1 -1
  1260. package/packages/level2/server/payments/system-invoice/payment-system-invoice.handlers.js +1 -1
  1261. package/packages/level2/server/product-setup/website-analysiz.js +2 -2
  1262. package/packages/level2/server/products/product-db.js +1 -1
  1263. package/packages/level2/server/products/product-master-data.js +1 -1
  1264. package/packages/level2/server/products/product-media/product-media-db.js +1 -1
  1265. package/packages/level2/server/products/product-media/product-media-master-data.js +1 -1
  1266. package/packages/level2/server/products/product-parameters/product-parameter-mother.js +1 -1
  1267. package/packages/level2/server/reports/report-chart-series-master-data.js +1 -1
  1268. package/packages/level2/server/reports/report-chart-series-mother.js +1 -1
  1269. package/packages/level2/server/reports/report-db.js +1 -1
  1270. package/packages/level2/server/reports/report-master-data.js +1 -1
  1271. package/packages/level2/server/reports/report-mother.js +1 -1
  1272. package/packages/level2/server/reports/report-with-data.handlers.js +1 -1
  1273. package/packages/level2/server/search/search-result-api.js +2 -2
  1274. package/packages/level2/server/search/search-result.d.ts +1 -1
  1275. package/packages/level2/server/search/search-result.js +2 -2
  1276. package/packages/level2/server/search/search.handlers.js +1 -1
  1277. package/packages/level2/server/search/searchable-resource.handlers.js +1 -1
  1278. package/packages/level2/server/seeding/seed-master-data.js +1 -1
  1279. package/packages/level2/server/shipment/shipment-api.js +1 -1
  1280. package/packages/level2/server/shipment/shipment-db.js +1 -1
  1281. package/packages/level2/server/shipment/shipment-master-data.js +1 -1
  1282. package/packages/level2/server/shipment/shipment.handlers.js +1 -1
  1283. package/packages/level2/server/statusboard/statusboard-api.js +1 -1
  1284. package/packages/level2/server/store/store-db.js +1 -1
  1285. package/packages/level2/server/store/store-master-data.js +2 -2
  1286. package/packages/level2/server/subscription/cancel/subscription-cancel-api.js +1 -1
  1287. package/packages/level2/server/subscription/create/subscription-create-api.js +1 -1
  1288. package/packages/level2/server/subscription/update/subscription-update-api.js +1 -1
  1289. package/packages/level2/server/system-settings/system-master-data.js +1 -1
  1290. package/packages/level2/server/system-settings/system-setting-db.js +1 -1
  1291. package/packages/level2/server/test/data/test-data-api.js +1 -1
  1292. package/packages/level2/server/test/data/test-data.js +1 -1
  1293. package/packages/level2/server/upload/upload-api.js +2 -2
  1294. package/packages/level2/server/usage-limit/usage-limit.js +1 -1
  1295. package/packages/level2/server/user-settings/user-setting.handlers.js +1 -1
  1296. package/packages/level2/server/userfeature/isenabled/userfeature-isenabled-api.js +1 -1
  1297. package/packages/level2/server/users/admin-edit-admin.js +1 -1
  1298. package/packages/level2/server/users/auth.js +1 -1
  1299. package/packages/level2/server/users/edit-other-users.js +1 -1
  1300. package/packages/level2/server/users/tokens.js +2 -2
  1301. package/packages/level2/server/users/user-creation-service.js +1 -1
  1302. package/packages/level2/server/users/user-db.js +1 -1
  1303. package/packages/level2/server/users/user-deletions.js +1 -1
  1304. package/packages/level2/server/users/user-feature-db.js +1 -1
  1305. package/packages/level2/server/users/user-feature-predicates.js +1 -1
  1306. package/packages/level2/server/users/user-manager.js +2 -2
  1307. package/packages/level2/server/users/user-master-data.js +1 -1
  1308. package/packages/level2/server/users/user-mother.js +1 -1
  1309. package/packages/level2/server/users/user-role.handlers.js +1 -1
  1310. package/packages/level2/server/users/user-role.js +1 -1
  1311. package/packages/level2/server/users/user-service.js +1 -1
  1312. package/packages/level2/server/users/user-settings/user-setting-db.js +1 -1
  1313. package/packages/level2/server/users/user.handlers.js +1 -1
  1314. package/packages/level2/server/utils/base-resource-properties.js +1 -1
  1315. package/packages/level2/server/utils/check-resource-access-permission.js +1 -1
  1316. package/packages/level2/server/utils/get-user-and-workspace-ids.js +1 -1
  1317. package/packages/level2/server/utils/map-subscription-status-to-db-format.js +1 -1
  1318. package/packages/level2/server/web/http-wrapper.d.ts +2 -2
  1319. package/packages/level2/server/web/http-wrapper.js +1 -1
  1320. package/packages/level2/server/web/initialize.js +1 -1
  1321. package/packages/level2/server/web/responses/create-remote-blob-response.js +1 -1
  1322. package/packages/level2/server/workspace/change-current-workspace.js +1 -1
  1323. package/packages/level2/server/workspace/visible-workspace-api.js +1 -1
  1324. package/packages/level2/server/workspace/workspace-api.js +1 -1
  1325. package/packages/level2/server/workspace/workspace-invite/user-workspace-invite.handlers.js +1 -1
  1326. package/packages/level2/server/workspace/workspace-invite/workspace-user-invites.js +1 -1
  1327. package/packages/test-infra/asserters/edit-asserts.js +1 -1
  1328. package/packages/test-infra/asserters/forgot-password-asserts.js +1 -1
  1329. package/packages/test-infra/asserters/navigation-asserts.js +1 -1
  1330. package/packages/test-infra/asserters/notification-asserts.js +1 -1
  1331. package/packages/test-infra/asserters/search-asserts.js +1 -1
  1332. package/packages/test-infra/asserters/table-asserts.d.ts +1 -0
  1333. package/packages/test-infra/asserters/table-asserts.js +3 -3
  1334. package/packages/test-infra/asserters/ui-asserts.js +1 -1
  1335. package/packages/test-infra/constants/test-data/input-fields-values.js +3 -1
  1336. package/packages/test-infra/constants/ui-tester/checkout-form-test-data.js +2 -1
  1337. package/packages/test-infra/eslint.config.d.ts +2 -0
  1338. package/packages/test-infra/eslint.config.js +7 -0
  1339. package/packages/test-infra/fixtures/custom-test-functions.js +1 -1
  1340. package/packages/test-infra/fixtures/error-tracking-fixture.js +1 -1
  1341. package/packages/test-infra/fixtures/extend-test.js +1 -1
  1342. package/packages/test-infra/monorepo-global-setup.js +1 -1
  1343. package/packages/test-infra/monorepo-global-teardown.js +1 -1
  1344. package/packages/test-infra/page-objects/account-setup-po.js +1 -1
  1345. package/packages/test-infra/page-objects/browser-po.js +1 -1
  1346. package/packages/test-infra/page-objects/checkout-form-po.js +1 -1
  1347. package/packages/test-infra/page-objects/edit-po.js +1 -1
  1348. package/packages/test-infra/page-objects/filter-po.js +1 -1
  1349. package/packages/test-infra/page-objects/forgot-password-po.js +1 -1
  1350. package/packages/test-infra/page-objects/list-po.js +1 -1
  1351. package/packages/test-infra/page-objects/login-po.js +2 -2
  1352. package/packages/test-infra/page-objects/multi-browser-po.js +1 -1
  1353. package/packages/test-infra/page-objects/notification-po.js +1 -1
  1354. package/packages/test-infra/page-objects/payment-plan-po.js +1 -1
  1355. package/packages/test-infra/page-objects/reset-password-po.js +1 -1
  1356. package/packages/test-infra/page-objects/search-po.js +1 -1
  1357. package/packages/test-infra/page-objects/select-workspace-po.js +2 -2
  1358. package/packages/test-infra/page-objects/sidebar-po.js +1 -1
  1359. package/packages/test-infra/page-objects/table-asserts.d.ts +3 -2
  1360. package/packages/test-infra/page-objects/table-asserts.js +2 -2
  1361. package/packages/test-infra/page-objects/toolbar-po.js +1 -1
  1362. package/packages/test-infra/page-objects/user-menu-po.js +1 -1
  1363. package/packages/test-infra/page-objects/user-setting-po.js +1 -1
  1364. package/packages/test-infra/page-objects/view-po.js +1 -1
  1365. package/packages/test-infra/playwright-setup/global-setup.js +1 -1
  1366. package/packages/test-infra/playwright-setup/global-teardown.js +1 -1
  1367. package/packages/test-infra/test-data/crud-tests/crud-test-data-factory.js +1 -1
  1368. package/packages/test-infra/test-data/crud-tests/crud-test-data.js +1 -1
  1369. package/packages/test-infra/test-data/crud-tests/relation-sync-info-provider.js +1 -1
  1370. package/packages/test-infra/test-data/dev/friends/friends-mother.js +1 -1
  1371. package/packages/test-infra/test-data/dev/persons/person-mother.js +2 -1
  1372. package/packages/test-infra/test-data/dev/persons/phone-brand-mother.js +1 -1
  1373. package/packages/test-infra/test-data/integration-tests/base-http-client.js +2 -2
  1374. package/packages/test-infra/test-data/integration-tests/http-client.js +2 -2
  1375. package/packages/test-infra/test-data/integration-tests/result-comparer.js +1 -1
  1376. package/packages/test-infra/test-data/integration-tests/workspace.js +1 -1
  1377. package/packages/test-infra/test-data/meta/person-property-metas.js +1 -1
  1378. package/packages/test-infra/test-data/meta/resource-meta-mother.js +1 -1
  1379. package/packages/test-infra/test-data/meta/ui-meta-mother.js +1 -1
  1380. package/packages/test-infra/test-data/meta/ui-property-meta-mother.js +1 -1
  1381. package/packages/test-infra/test-data/seed-test-data.js +1 -1
  1382. package/packages/test-infra/ui-tester/global-ui-test.js +1 -1
  1383. package/packages/test-infra/ui-tester/ui-tester.js +3 -3
  1384. package/packages/tools/string-duplication/handlers.js +2 -1
  1385. package/packages/tools/string-duplication/index.d.ts +13 -1
  1386. package/packages/tools/string-duplication/index.js +11 -49
  1387. package/packages/tools/string-duplication/normalizer.js +1 -1
  1388. package/packages/tools/string-duplication/reporter.js +3 -1
  1389. package/packages/tools/string-duplication/resolver.js +3 -2
  1390. package/packages/tools/string-duplication/string-extractor.js +3 -2
  1391. package/src/app/loading.js +7 -4
  1392. package/src/hd/footer/HdFooter.js +3 -2
  1393. package/src/lm/ai-scan/AiScanAction.funcs.js +1 -1
  1394. package/src/lm/google-place/action-dropdown/GooglePlaceActionDropdown.funcs.d.ts +1 -1
  1395. package/src/lm/google-place/action-dropdown/GooglePlaceActionDropdown.funcs.js +1 -1
  1396. package/src/lm/google-place/action-dropdown/google-place-dropdown-actions.d.ts +1 -1
  1397. package/src/lm/google-place/actions/GooglePlaceSaveToGroupAction.funcs.js +1 -1
  1398. package/src/lm/google-place/actions/google-place-delete-action.js +1 -1
  1399. package/src/lm/google-place/actions/google-place-take-screenshot-action.js +1 -1
  1400. package/src/lm/google-place/cell-templates/GooglePlaceEmailsCellTemplate.funcs.js +1 -1
  1401. package/src/lm/google-place/cell-templates/GooglePlaceScanAction.funcs.js +1 -1
  1402. package/src/lm/lead/action-dropdown/LeadActionDropdown.funcs.js +1 -1
  1403. package/src/lm/lead/action-dropdown/lead-dropdown-actions.d.ts +1 -1
  1404. package/src/lm/lead/action-dropdown/lead-dropdown-actions.js +1 -1
  1405. package/src/lm/lead/actions/export-leads-action/export-leads-action.js +1 -1
  1406. package/src/lm/lead/actions/move-to-group-action/LeadMoveToGroupAction.funcs.js +1 -1
  1407. package/src/lm/lead/actions/save-to-group-action/lead-save-to-group-action.js +7 -0
  1408. package/src/lm/lead/actions/take-screenshot-action/lead-take-screenshot-action.js +1 -1
  1409. package/src/lm/lead/cell-templates/LeadScanAction.funcs.js +1 -1
  1410. package/src/lm/lead-group/table-custom-action/lead-group-table-custom-action.js +1 -1
  1411. package/src/lm/pages/HomePage.funcs.js +1 -1
  1412. package/test-infra/index.d.ts +3 -4
  1413. package/test-infra/index.js +3 -4
  1414. package/undocumented/index.d.ts +262 -153
  1415. package/undocumented/index.js +206 -187
  1416. package/packages/base-repo/constants/packages2.js +0 -4
  1417. package/packages/fd-toolbox/infra/env-setting-types.d.ts +0 -5
  1418. package/packages/fd-toolbox/infra/env-setting-types.js +0 -4
  1419. package/packages/fd-toolbox/server/constants/signals.d.ts +0 -3
  1420. package/packages/fd-toolbox/server/constants/signals.js +0 -4
  1421. package/packages/flint/infra/ast-helpers/array-analysis.js +0 -8
  1422. package/packages/flint/infra/ast-helpers/casing-analysis.js +0 -4
  1423. package/packages/flint/infra/ast-helpers/enum-analysis.js +0 -12
  1424. package/packages/flint/infra/ast-helpers/eslint-analysis.js +0 -6
  1425. package/packages/flint/infra/ast-helpers/expression-analysis.js +0 -7
  1426. package/packages/flint/infra/ast-helpers/formatting-analysis.js +0 -6
  1427. package/packages/flint/infra/ast-helpers/function-analysis.js +0 -7
  1428. package/packages/flint/infra/ast-helpers/jsx-analysis.js +0 -7
  1429. package/packages/flint/infra/ast-helpers/module-analysis.js +0 -7
  1430. package/packages/flint/infra/ast-helpers/name-analysis.js +0 -9
  1431. package/packages/flint/infra/ast-helpers/nullish-analysis.js +0 -6
  1432. package/packages/flint/infra/ast-helpers/number-analysis.js +0 -7
  1433. package/packages/flint/infra/ast-helpers/object-analysis.js +0 -6
  1434. package/packages/flint/infra/ast-helpers/scope-analysis.js +0 -10
  1435. package/packages/flint/infra/ast-helpers/string-analysis.js +0 -9
  1436. package/packages/flint/infra/ast-helpers/tree-analysis.js +0 -6
  1437. package/packages/flint/infra/ast-helpers/type-analysis.js +0 -8
  1438. package/packages/flint/infra/ast-helpers/type-guards.js +0 -10
  1439. package/packages/flint/infra/ast-helpers/variable-analysis.d.ts +0 -2
  1440. package/packages/flint/infra/ast-helpers/variable-analysis.js +0 -7
  1441. package/packages/flint/infra/ast-helpers/visitors.js +0 -4
  1442. package/packages/flint/infra/utils/create-eslint-rule.js +0 -6
  1443. package/packages/flint/rules/naming/must-use-singlewithwarning-instead-of-indexing-first-element.d.ts +0 -3
  1444. package/packages/flint/rules/naming/must-use-singlewithwarning-instead-of-indexing-first-element.js +0 -8
  1445. package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/user-dropdown-menu-item/UserDropdownMenu.funcs.d.ts +0 -2
  1446. package/packages/level2/fd-app-toolbox/menu/user-dropdown-menu/user-dropdown-menu-item/UserDropdownMenu.funcs.js +0 -6
  1447. package/packages/level2/meta/edit-resource/edit-resource-property-block/FdEditResourceImageField.funcs.js +0 -7
  1448. package/packages/level2/meta/resource-list/ResourceListCellElementIds.funcs.js +0 -7
  1449. package/packages/test-infra/constants/test-data/resource-id-tests.d.ts +0 -5
  1450. package/packages/test-infra/constants/test-data/resource-id-tests.js +0 -4
  1451. package/packages/test-infra/constants/test-data/screenshot-names.d.ts +0 -8
  1452. package/packages/test-infra/constants/test-data/screenshot-names.js +0 -4
  1453. package/src/lm/lead/actions/save-to-group-action/LeadSaveToGroupAction.funcs.js +0 -7
  1454. /package/packages/flint/infra/{ast-helpers → analysis}/array-analysis.d.ts +0 -0
  1455. /package/packages/flint/infra/{ast-helpers → analysis}/casing-analysis.d.ts +0 -0
  1456. /package/packages/flint/infra/{ast-helpers → analysis}/enum-analysis.d.ts +0 -0
  1457. /package/packages/flint/infra/{ast-helpers → analysis}/eslint-analysis.d.ts +0 -0
  1458. /package/packages/flint/infra/{ast-helpers → analysis}/formatting-analysis.d.ts +0 -0
  1459. /package/packages/flint/infra/{ast-helpers → analysis}/jsx-analysis.d.ts +0 -0
  1460. /package/packages/flint/infra/{ast-helpers → analysis}/nullish-analysis.d.ts +0 -0
  1461. /package/packages/flint/infra/{ast-helpers → analysis}/number-analysis.d.ts +0 -0
  1462. /package/packages/flint/infra/{ast-helpers → analysis}/string-analysis.d.ts +0 -0
  1463. /package/packages/flint/infra/{ast-helpers → analysis}/tree-analysis.d.ts +0 -0
  1464. /package/packages/flint/infra/{utils/create-eslint-rule.d.ts → create-eslint-rule.d.ts} +0 -0
  1465. /package/packages/level2/meta/edit-resource/edit-resource-property-block/{FdEditResourceImageField.funcs.d.ts → EditResourceImageField.funcs.d.ts} +0 -0
  1466. /package/packages/level2/meta/resource-list/{ResourceListCellElementIds.funcs.d.ts → resource-list-cell-element-ids.d.ts} +0 -0
  1467. /package/packages/level2/server/integration-platforms/{integration-resource.funcs.d.ts → integration-resource.d.ts} +0 -0
  1468. /package/src/lm/lead/actions/save-to-group-action/{LeadSaveToGroupAction.funcs.d.ts → lead-save-to-group-action.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
- import _0x576388 from 'stripe';
2
+ import _0x2b5aae from 'stripe';
3
3
  import { apiBadRequestError } from '../../../../fd-toolbox/server/web/errors.js';
4
4
  import { getNow, unixTimestampToDate } from '../../../../fd-toolbox/time/date-time.js';
5
5
  import { logSeverities } from '../../../../fd-toolbox-core/enums/log-severities.js';
@@ -13,6 +13,6 @@ import { billingIntervals } from '../../../meta/core/resources/enums/payment-enu
13
13
  import { detachPaymentMethod } from '../payments/payments.js';
14
14
  import { isNullOrUndefined } from '../../../../fd-toolbox/functions/value-checking-functions.js';
15
15
 
16
- var __defProp=Object['defineProperty'],__name=(_0x15df58,_0x26e48b)=>__defProp(_0x15df58,'name',{'value':_0x26e48b,'configurable':!![]});const stripeKey=getStringEnvSetting(envSettingKeys['stripeSecretKey']),centsInADollar=-0x3*0x8ef+0x2*-0x26e+-0x669*-0x5;const stripe=new _0x576388(stripeKey,{'apiVersion':'2024-06-20'});function areEnvSettingsConfiguredForPaymentSystem(){return !!stripeKey;}__name(areEnvSettingsConfiguredForPaymentSystem,'areEnvSettingsConfiguredForPaymentSystem');async function findStripeCustomerById(_0x1187bf){return stripe['customers']['retrieve'](_0x1187bf);}__name(findStripeCustomerById,'findStripeCustomerById');async function findStripeCustomerByEmail(_0x48fae9){const _0x492ad4=await stripe['customers']['list']({'email':_0x48fae9}),_0x19de1a=_0x492ad4['data'];return _0x19de1a['length']>0x1*-0x20af+0x903+0x194*0xf?_0x19de1a[-0x1159*0x2+0x1*-0x1539+-0x7*-0x7fd]:void(-0x3*0x5fb+0x1*0x12e6+-0xf5);}__name(findStripeCustomerByEmail,'findStripeCustomerByEmail');async function createStripeCustomer(_0x128527,_0x4e0e01,_0x1dfa92){return stripe['customers']['create']({'email':_0x4e0e01,'name':_0x128527,'metadata':{'workspaceId':_0x1dfa92}});}__name(createStripeCustomer,'createStripeCustomer');async function hasStripeSubscription(_0x323522,_0x2cd160){const _0x3bd7ad=await stripe['subscriptions']['list']({'customer':_0x323522});return _0x3bd7ad['data']['some'](_0x243a29=>_0x243a29?.['items']?.['data']['some'](_0x128c51=>_0x128c51['plan']['id']===_0x2cd160));}__name(hasStripeSubscription,'hasStripeSubscription');async function createStripeSubscription(_0x4de6b6,_0x429bc4,_0x1457ea){return stripe['subscriptions']['create']({'customer':_0x4de6b6,'items':[{'price':_0x429bc4}],'payment_behavior':'default_incomplete','expand':['latest_invoice.payment_intent'],'default_payment_method':_0x1457ea});}__name(createStripeSubscription,'createStripeSubscription');async function createStripeTrialSubscription(_0x2c2c90,_0x4f39d6,_0x3ce719){return stripe['subscriptions']['create']({'customer':_0x2c2c90,'items':[{'price':_0x4f39d6}],'payment_behavior':'default_incomplete','trial_period_days':0x1e,'trial_settings':{'end_behavior':{'missing_payment_method':'create_invoice'}},'default_payment_method':_0x3ce719});}__name(createStripeTrialSubscription,'createStripeTrialSubscription');async function updateCustomerEmailIfNeeded(_0x34b530,_0x4dc316){const _0x594d36=await findStripeCustomerById(_0x34b530),_0x5982e4=await stripe['paymentMethods']['retrieve'](_0x4dc316);!_0x594d36['deleted']&&_0x5982e4['billing_details']['email']&&_0x594d36['email']!==_0x5982e4['billing_details']['email']&&await changeCustomerEmail(_0x34b530,_0x5982e4['billing_details']['email']);}__name(updateCustomerEmailIfNeeded,'updateCustomerEmailIfNeeded');async function attachPaymentMethodToCustomer(_0x1a9100,_0x1b4cd0){await detachAllPaymentMethodsFromCustomer(_0x1a9100),await stripe['paymentMethods']['attach'](_0x1b4cd0,{'customer':_0x1a9100});}__name(attachPaymentMethodToCustomer,'attachPaymentMethodToCustomer');async function retrievePaymentIntentFromSubscription(_0x24a0d5){const _0x425d8d=await stripe['subscriptions']['retrieve'](_0x24a0d5,{'expand':['latest_invoice.payment_intent']}),_0x2c2f82=_0x425d8d['latest_invoice'];if(typeof _0x2c2f82==='object'&&!isNullOrUndefined(_0x2c2f82)){const _0xe167ae=_0x2c2f82;if(_0xe167ae['payment_intent']&&typeof _0xe167ae['payment_intent']!=='string')return _0xe167ae['payment_intent'];else throw apiBadRequestError(stripeErrorConstants['paymentIntentError']);}if(typeof _0x2c2f82==='string'){const _0x158676=await stripe['invoices']['retrieve'](_0x2c2f82,{'expand':['payment_intent']});if(_0x158676['payment_intent']&&typeof _0x158676['payment_intent']!=='string')return _0x158676['payment_intent'];else throw apiBadRequestError(stripeErrorConstants['paymentIntentError']);}throw apiBadRequestError(stripeErrorConstants['noLatestInvoice']);}__name(retrievePaymentIntentFromSubscription,'retrievePaymentIntentFromSubscription');async function confirmStripePayment(_0x3dadb0,_0x342eae,_0x48e359){try{return await stripe['paymentIntents']['confirm'](_0x3dadb0,{'payment_method':_0x342eae});}catch(_0x4cca84){await cancelStripeSubscriptionById(_0x48e359);throw _0x4cca84;}}__name(confirmStripePayment,'confirmStripePayment');async function cancelStripeSubscription(_0xca79e9){const _0xf39ea4=await stripe['subscriptions']['retrieve'](_0xca79e9),_0x2da05f=getNow(),_0x432dff=unixTimestampToDate(_0xf39ea4['current_period_end']),_0x1a0ce8=_0xf39ea4['status']===stripeSubscriptionStatuses['active'],_0x467463=_0x1a0ce8&&_0x432dff>_0x2da05f;let _0x156259;return _0x467463?_0x156259=await stripe['subscriptions']['update'](_0xca79e9,{'cancel_at_period_end':!![]}):_0x156259=await stripe['subscriptions']['cancel'](_0xca79e9),{'subscriptionId':_0x156259['id'],'subscriptionStatus':_0x156259['status'],'currentPeriodEndDate':_0x156259['current_period_end'],'endDate':_0x467463?_0x156259['cancel_at']:_0x156259['canceled_at']};}__name(cancelStripeSubscription,'cancelStripeSubscription');async function instantUpdateStripeSubscription(_0x264c2f,_0x243b35){const _0x11c481=await stripe['subscriptions']['retrieve'](_0x264c2f);return stripe['subscriptions']['update'](_0x11c481['id'],{'items':[{'id':_0x11c481['items']['data'][-0x101*-0x25+0xb0d+-0x1819*0x2]['id'],'price':_0x243b35}],'proration_behavior':'always_invoice'});}__name(instantUpdateStripeSubscription,'instantUpdateStripeSubscription');async function updateStripeSubscriptionWithoutProration(_0x54aeba,_0x3e3314){const _0x2f0e4e=await stripe['subscriptions']['retrieve'](_0x54aeba);return stripe['subscriptions']['update'](_0x2f0e4e['id'],{'items':[{'id':_0x2f0e4e['items']['data'][-0x1*-0x146b+0x2285+-0x36f0]['id'],'price':_0x3e3314}],'proration_behavior':'none','billing_cycle_anchor':'unchanged'});}__name(updateStripeSubscriptionWithoutProration,'updateStripeSubscriptionWithoutProration');async function getSubscriptionFromPaymentIntent(_0x29b0d6){const _0x4e482b=await stripe['paymentIntents']['retrieve'](_0x29b0d6);if(_0x4e482b['invoice']&&typeof _0x4e482b['invoice']==='string'){const _0x175f87=await stripe['invoices']['retrieve'](_0x4e482b['invoice']);if(_0x175f87['subscription']&&typeof _0x175f87['subscription']==='string'){const _0x30509e=await stripe['subscriptions']['retrieve'](_0x175f87['subscription']);return _0x30509e['id'];}}throw createError(stripeErrorConstants['noAssociatedSubscription']);}__name(getSubscriptionFromPaymentIntent,'getSubscriptionFromPaymentIntent');async function getStripeSubscriptionData(_0x3e3542){const _0x108ba9=await stripe['subscriptions']['retrieve'](_0x3e3542),{status:_0x46e0bb,current_period_end:_0xf2bbe1,canceled_at:_0x2190eb,trial_end:_0x5e433c}=_0x108ba9;return {'status':_0x46e0bb,'currentPeriodEndDate':_0xf2bbe1,'endDate':_0x2190eb??void(-0x1607+-0x106f+0x3*0xcd2),'trialEnd':_0x5e433c};}__name(getStripeSubscriptionData,'getStripeSubscriptionData');async function cancelStripeSubscriptionById(_0x3a8282){return stripe['subscriptions']['cancel'](_0x3a8282);}__name(cancelStripeSubscriptionById,'cancelStripeSubscriptionById');async function processPaymentFailureAndCancelSubscription(_0x1dde4a){const _0x1784df=_0x1dde4a['payment_intent']?.['invoice'];if(!_0x1784df||typeof _0x1784df!=='string')return;const _0xa8d80=await stripe['invoices']['retrieve'](_0x1784df),_0x5d8e03=_0xa8d80['subscription'];_0x5d8e03&&typeof _0x5d8e03==='string'&&await stripe['subscriptions']['cancel'](_0x5d8e03);}__name(processPaymentFailureAndCancelSubscription,'processPaymentFailureAndCancelSubscription');async function getStripePaymentData(_0x4a2e39){const {currency:_0x1a4743,status:_0x10074d,amount:_0x47166b,payment_method:_0x4ebb4b}=await stripe['paymentIntents']['retrieve'](_0x4a2e39);return {'currency':_0x1a4743,'status':_0x10074d,'amount':_0x47166b,'paymentMethodId':_0x4ebb4b};}__name(getStripePaymentData,'getStripePaymentData');async function getStripeSubscriptionStatus(_0x25167f){try{const _0x4ab0b4=await stripe['subscriptions']['retrieve'](_0x25167f);return _0x4ab0b4['status'];}catch(_0x287977){if(_0x287977 instanceof Error){const _0x3c2380={'severity':logSeverities['warning'],'message':_0x287977 instanceof _0x576388['errors']['StripeError']?_0x287977['type']:_0x287977['name'],'errorMessage':_0x287977['message'],'stackTrace':_0x287977['stack']};addLog(_0x3c2380);}return void(0xc38+-0x5*-0x373+-0x18d*0x13);}}__name(getStripeSubscriptionStatus,'getStripeSubscriptionStatus');async function changeStripeProductName(_0x473d31,_0x3ceb37){return stripe['products']['update'](_0x473d31,{'name':_0x3ceb37});}__name(changeStripeProductName,'changeStripeProductName');async function changeStripeProductStatus(_0x3ce0ad,_0x56725b){return stripe['products']['update'](_0x3ce0ad,{'active':_0x56725b});}__name(changeStripeProductStatus,'changeStripeProductStatus');async function createStripeProductPricing(_0xd2310d,_0x1daa03,_0x5720f3,_0x1c57bf,_0x4f2f6d,_0x56de39=!![]){const _0x3f0ca7=_0x56de39?_0x5720f3*centsInADollar:_0x5720f3;return !_0x4f2f6d||_0x4f2f6d===billingIntervals['lifetime']?stripe['prices']['create']({'currency':_0x1daa03,'unit_amount':_0x3f0ca7,'product':_0xd2310d,'metadata':{'id':_0x1c57bf}}):stripe['prices']['create']({'currency':_0x1daa03,'unit_amount':_0x3f0ca7,'product':_0xd2310d,'metadata':{'id':_0x1c57bf},'recurring':{'interval':billingIntervalsToStripeBillingIntervals[_0x4f2f6d]}});}__name(createStripeProductPricing,'createStripeProductPricing');async function deactivateStripeProductPricing(_0x2e06b4){return stripe['prices']['update'](_0x2e06b4,{'active':![]});}__name(deactivateStripeProductPricing,'deactivateStripeProductPricing');async function createStripeProduct(_0x36ef75,_0x57ea31){const _0x2f9e6b=await stripe['products']['create']({'name':_0x36ef75,'metadata':{'paymentPlanId':_0x57ea31}});return _0x2f9e6b;}__name(createStripeProduct,'createStripeProduct');async function deactivateStripeProduct(_0x32574f){const _0x10a968=await stripe['products']['list'](),_0x51e010=_0x10a968['data']['filter'](_0x357e95=>{return _0x357e95['name']===_0x32574f;});for(const _0x36fb5d of _0x51e010){await stripe['products']['update'](_0x36fb5d['id'],{'active':![]});}}__name(deactivateStripeProduct,'deactivateStripeProduct');async function getStripeProducts(){const _0x50c999=await stripe['products']['list']();return _0x50c999['data'];}__name(getStripeProducts,'getStripeProducts');async function getStripeProductIdByPriceId(_0x41c77a){const {product:_0xa3f4cf}=await stripe['prices']['retrieve'](_0x41c77a);return isString(_0xa3f4cf)?_0xa3f4cf:_0xa3f4cf['id'];}__name(getStripeProductIdByPriceId,'getStripeProductIdByPriceId');async function setCustomerDefaultPaymentMethod(_0x243900,_0x4b9572){await stripe['customers']['update'](_0x4b9572,{'invoice_settings':{'default_payment_method':_0x243900}});}__name(setCustomerDefaultPaymentMethod,'setCustomerDefaultPaymentMethod');async function changeCustomerEmail(_0x82f328,_0x14b593){await stripe['customers']['update'](_0x82f328,{'email':_0x14b593});}__name(changeCustomerEmail,'changeCustomerEmail');async function getStripeDefaultPaymentMethod(_0x57ec1b){const _0x374e41=await findStripeCustomerById(_0x57ec1b);if(_0x374e41['deleted']||!_0x374e41['invoice_settings']['default_payment_method'])return void(-0x7f9*-0x1+-0x7*-0xa4+0x1*-0xc75);const _0x4c3668=isString(_0x374e41['invoice_settings']['default_payment_method'])?_0x374e41['invoice_settings']['default_payment_method']:_0x374e41['invoice_settings']['default_payment_method']['id'],_0x1d568b=await stripe['paymentMethods']['retrieve'](_0x4c3668);return _0x1d568b;}__name(getStripeDefaultPaymentMethod,'getStripeDefaultPaymentMethod');async function detachAllPaymentMethodsFromCustomer(_0x11095e){const _0x24ea2c=await stripe['customers']['listPaymentMethods'](_0x11095e),_0x13824f=_0x24ea2c['data']['map'](_0x571291=>_0x571291['id']);await Promise['all'](_0x13824f['map'](detachPaymentMethod));}__name(detachAllPaymentMethodsFromCustomer,'detachAllPaymentMethodsFromCustomer');
16
+ var __defProp=Object['defineProperty'],__name=(_0x49f41b,_0x253054)=>__defProp(_0x49f41b,'name',{'value':_0x253054,'configurable':!![]});const stripeKey=getStringEnvSetting(envSettingKeys['stripeSecretKey']),centsInADollar=0x182f*0x1+-0x17f5+0x2a;const stripe=new _0x2b5aae(stripeKey,{'apiVersion':'2024-06-20'});function areEnvSettingsConfiguredForPaymentSystem(){return !!stripeKey;}__name(areEnvSettingsConfiguredForPaymentSystem,'areEnvSettingsConfiguredForPaymentSystem');async function findStripeCustomerById(_0x32bdea){return stripe['customers']['retrieve'](_0x32bdea);}__name(findStripeCustomerById,'findStripeCustomerById');async function findStripeCustomerByEmail(_0x213562){const _0x53e3db=await stripe['customers']['list']({'email':_0x213562});return _0x53e3db['data']['length']>0x7f1+0x190+0x981*-0x1?_0x53e3db['data'][0x40*0x51+0x31*0x62+-0x2702]:void(-0x2625+-0x8*-0x4c0+0x25);}__name(findStripeCustomerByEmail,'findStripeCustomerByEmail');async function createStripeCustomer(_0x4532ee,_0x376100,_0x29cbc3){return stripe['customers']['create']({'email':_0x376100,'name':_0x4532ee,'metadata':{'workspaceId':_0x29cbc3}});}__name(createStripeCustomer,'createStripeCustomer');async function hasStripeSubscription(_0x27b114,_0x423cf2){const _0x44ea13=await stripe['subscriptions']['list']({'customer':_0x27b114});return _0x44ea13['data']['some'](_0x389fde=>_0x389fde?.['items']?.['data']['some'](_0x19daab=>_0x19daab['plan']['id']===_0x423cf2));}__name(hasStripeSubscription,'hasStripeSubscription');async function createStripeSubscription(_0x328587,_0x142633,_0x556578){return stripe['subscriptions']['create']({'customer':_0x328587,'items':[{'price':_0x142633}],'payment_behavior':'default_incomplete','expand':['latest_invoice.payment_intent'],'default_payment_method':_0x556578});}__name(createStripeSubscription,'createStripeSubscription');async function createStripeTrialSubscription(_0x18f80f,_0x4a9685,_0x151a87){return stripe['subscriptions']['create']({'customer':_0x18f80f,'items':[{'price':_0x4a9685}],'payment_behavior':'default_incomplete','trial_period_days':0x1e,'trial_settings':{'end_behavior':{'missing_payment_method':'create_invoice'}},'default_payment_method':_0x151a87});}__name(createStripeTrialSubscription,'createStripeTrialSubscription');async function updateCustomerEmailIfNeeded(_0x38e601,_0x25ae15){const _0x55b95d=await findStripeCustomerById(_0x38e601),_0x6284d4=await stripe['paymentMethods']['retrieve'](_0x25ae15);!_0x55b95d['deleted']&&_0x6284d4['billing_details']['email']&&_0x55b95d['email']!==_0x6284d4['billing_details']['email']&&await changeCustomerEmail(_0x38e601,_0x6284d4['billing_details']['email']);}__name(updateCustomerEmailIfNeeded,'updateCustomerEmailIfNeeded');async function attachPaymentMethodToCustomer(_0x2b8cff,_0x187c90){await detachAllPaymentMethodsFromCustomer(_0x2b8cff),await stripe['paymentMethods']['attach'](_0x187c90,{'customer':_0x2b8cff});}__name(attachPaymentMethodToCustomer,'attachPaymentMethodToCustomer');async function retrievePaymentIntentFromSubscription(_0x211b86){const _0x4389bf=await stripe['subscriptions']['retrieve'](_0x211b86,{'expand':['latest_invoice.payment_intent']}),_0x3a6c86=_0x4389bf['latest_invoice'];if(typeof _0x3a6c86==='object'&&!isNullOrUndefined(_0x3a6c86)){const _0xe42f78=_0x3a6c86;if(_0xe42f78['payment_intent']&&typeof _0xe42f78['payment_intent']!=='string')return _0xe42f78['payment_intent'];else throw apiBadRequestError(stripeErrorConstants['paymentIntentError']);}if(typeof _0x3a6c86==='string'){const _0xf89dbb=await stripe['invoices']['retrieve'](_0x3a6c86,{'expand':['payment_intent']});if(_0xf89dbb['payment_intent']&&typeof _0xf89dbb['payment_intent']!=='string')return _0xf89dbb['payment_intent'];else throw apiBadRequestError(stripeErrorConstants['paymentIntentError']);}throw apiBadRequestError(stripeErrorConstants['noLatestInvoice']);}__name(retrievePaymentIntentFromSubscription,'retrievePaymentIntentFromSubscription');async function confirmStripePayment(_0x41baf5,_0xca99fb,_0x2669ec){try{return await stripe['paymentIntents']['confirm'](_0x41baf5,{'payment_method':_0xca99fb});}catch(_0x30f237){await cancelStripeSubscriptionById(_0x2669ec);throw _0x30f237;}}__name(confirmStripePayment,'confirmStripePayment');async function cancelStripeSubscription(_0x1c3b3a){const _0x456c47=await stripe['subscriptions']['retrieve'](_0x1c3b3a),_0x1ede68=getNow(),_0x6c337d=unixTimestampToDate(_0x456c47['current_period_end']),_0x4b8868=_0x456c47['status']===stripeSubscriptionStatuses['active'],_0x1f91df=_0x4b8868&&_0x6c337d>_0x1ede68;let _0x28b82e;return _0x1f91df?_0x28b82e=await stripe['subscriptions']['update'](_0x1c3b3a,{'cancel_at_period_end':!![]}):_0x28b82e=await stripe['subscriptions']['cancel'](_0x1c3b3a),{'subscriptionId':_0x28b82e['id'],'subscriptionStatus':_0x28b82e['status'],'currentPeriodEndDate':_0x28b82e['current_period_end'],'endDate':_0x1f91df?_0x28b82e['cancel_at']:_0x28b82e['canceled_at']};}__name(cancelStripeSubscription,'cancelStripeSubscription');async function instantUpdateStripeSubscription(_0x464002,_0x484a38){const _0x38ac6f=await stripe['subscriptions']['retrieve'](_0x464002);return stripe['subscriptions']['update'](_0x38ac6f['id'],{'items':[{'id':_0x38ac6f['items']['data'][0x151*0x5+0x1315+-0x88e*0x3]['id'],'price':_0x484a38}],'proration_behavior':'always_invoice'});}__name(instantUpdateStripeSubscription,'instantUpdateStripeSubscription');async function updateStripeSubscriptionWithoutProration(_0x1bd407,_0x4f8d67){const _0x3db968=await stripe['subscriptions']['retrieve'](_0x1bd407);return stripe['subscriptions']['update'](_0x3db968['id'],{'items':[{'id':_0x3db968['items']['data'][-0x1*-0x21f8+-0x4da+0x1d1e*-0x1]['id'],'price':_0x4f8d67}],'proration_behavior':'none','billing_cycle_anchor':'unchanged'});}__name(updateStripeSubscriptionWithoutProration,'updateStripeSubscriptionWithoutProration');async function getSubscriptionFromPaymentIntent(_0x3addd9){const _0x670f1a=await stripe['paymentIntents']['retrieve'](_0x3addd9);if(_0x670f1a['invoice']&&typeof _0x670f1a['invoice']==='string'){const _0x40d3c8=await stripe['invoices']['retrieve'](_0x670f1a['invoice']);if(_0x40d3c8['subscription']&&typeof _0x40d3c8['subscription']==='string'){const _0x5d8d89=await stripe['subscriptions']['retrieve'](_0x40d3c8['subscription']);return _0x5d8d89['id'];}}throw createError(stripeErrorConstants['noAssociatedSubscription']);}__name(getSubscriptionFromPaymentIntent,'getSubscriptionFromPaymentIntent');async function getStripeSubscriptionData(_0x725b6d){const _0x52e208=await stripe['subscriptions']['retrieve'](_0x725b6d);return {'status':_0x52e208['status'],'currentPeriodEndDate':_0x52e208['current_period_end'],'endDate':_0x52e208['canceled_at']??void(0x148e+0x1208+0x16*-0x1c1),'trialEnd':_0x52e208['trial_end']};}__name(getStripeSubscriptionData,'getStripeSubscriptionData');async function cancelStripeSubscriptionById(_0x540098){return stripe['subscriptions']['cancel'](_0x540098);}__name(cancelStripeSubscriptionById,'cancelStripeSubscriptionById');async function processPaymentFailureAndCancelSubscription(_0xab9746){const _0x22c922=_0xab9746['payment_intent']?.['invoice'];if(!_0x22c922||typeof _0x22c922!=='string')return;const _0x20e165=await stripe['invoices']['retrieve'](_0x22c922),_0x11dad6=_0x20e165['subscription'];_0x11dad6&&typeof _0x11dad6==='string'&&await stripe['subscriptions']['cancel'](_0x11dad6);}__name(processPaymentFailureAndCancelSubscription,'processPaymentFailureAndCancelSubscription');async function getStripePaymentData(_0x140526){const {currency:_0x4ed9e3,status:_0x477c8b,amount:_0x2a45e6,payment_method:_0x2a5d19}=await stripe['paymentIntents']['retrieve'](_0x140526);return {'currency':_0x4ed9e3,'status':_0x477c8b,'amount':_0x2a45e6,'paymentMethodId':_0x2a5d19};}__name(getStripePaymentData,'getStripePaymentData');async function getStripeSubscriptionStatus(_0x2a55b4){try{const _0x227cf5=await stripe['subscriptions']['retrieve'](_0x2a55b4);return _0x227cf5['status'];}catch(_0x131294){if(_0x131294 instanceof Error){const _0x386131={'severity':logSeverities['warning'],'message':_0x131294 instanceof _0x2b5aae['errors']['StripeError']?_0x131294['type']:_0x131294['name'],'errorMessage':_0x131294['message'],'stackTrace':_0x131294['stack']};addLog(_0x386131);}return void(-0x1*-0x62b+0x1c1+-0x7ec);}}__name(getStripeSubscriptionStatus,'getStripeSubscriptionStatus');async function changeStripeProductName(_0x402ba1,_0x24e267){return stripe['products']['update'](_0x402ba1,{'name':_0x24e267});}__name(changeStripeProductName,'changeStripeProductName');async function changeStripeProductStatus(_0x2818d3,_0x251907){return stripe['products']['update'](_0x2818d3,{'active':_0x251907});}__name(changeStripeProductStatus,'changeStripeProductStatus');async function createStripeProductPricing(_0x35430f,_0x5532f1,_0xa7dafd,_0xab9d42,_0x2231a1,_0x1b5a4c=!![]){const _0x35273f=_0x1b5a4c?_0xa7dafd*centsInADollar:_0xa7dafd;return !_0x2231a1||_0x2231a1===billingIntervals['lifetime']?stripe['prices']['create']({'currency':_0x5532f1,'unit_amount':_0x35273f,'product':_0x35430f,'metadata':{'id':_0xab9d42}}):stripe['prices']['create']({'currency':_0x5532f1,'unit_amount':_0x35273f,'product':_0x35430f,'metadata':{'id':_0xab9d42},'recurring':{'interval':billingIntervalsToStripeBillingIntervals[_0x2231a1]}});}__name(createStripeProductPricing,'createStripeProductPricing');async function deactivateStripeProductPricing(_0x13dc54){return stripe['prices']['update'](_0x13dc54,{'active':![]});}__name(deactivateStripeProductPricing,'deactivateStripeProductPricing');async function createStripeProduct(_0x3a4e07,_0x345c35){const _0x5d872d=await stripe['products']['create']({'name':_0x3a4e07,'metadata':{'paymentPlanId':_0x345c35}});return _0x5d872d;}__name(createStripeProduct,'createStripeProduct');async function deactivateStripeProduct(_0xe78f56){const _0x4a1e3a=await stripe['products']['list'](),_0x386a9c=_0x4a1e3a['data']['filter'](_0x5a09f6=>{return _0x5a09f6['name']===_0xe78f56;});for(const _0x17c7a4 of _0x386a9c){await stripe['products']['update'](_0x17c7a4['id'],{'active':![]});}}__name(deactivateStripeProduct,'deactivateStripeProduct');async function getStripeProducts(){const _0x2e48e7=await stripe['products']['list']();return _0x2e48e7['data'];}__name(getStripeProducts,'getStripeProducts');async function getStripeProductIdByPriceId(_0x519394){const {product:_0x274cbc}=await stripe['prices']['retrieve'](_0x519394);return isString(_0x274cbc)?_0x274cbc:_0x274cbc['id'];}__name(getStripeProductIdByPriceId,'getStripeProductIdByPriceId');async function setCustomerDefaultPaymentMethod(_0x2400f3,_0x1f55cd){await stripe['customers']['update'](_0x1f55cd,{'invoice_settings':{'default_payment_method':_0x2400f3}});}__name(setCustomerDefaultPaymentMethod,'setCustomerDefaultPaymentMethod');async function changeCustomerEmail(_0x43b627,_0x57ba2c){await stripe['customers']['update'](_0x43b627,{'email':_0x57ba2c});}__name(changeCustomerEmail,'changeCustomerEmail');async function getStripeDefaultPaymentMethod(_0x446c25){const _0x41c2d2=await findStripeCustomerById(_0x446c25);if(_0x41c2d2['deleted']||!_0x41c2d2['invoice_settings']['default_payment_method'])return void(-0x1e79+-0x4d5+-0x2*-0x11a7);const _0x10a489=isString(_0x41c2d2['invoice_settings']['default_payment_method'])?_0x41c2d2['invoice_settings']['default_payment_method']:_0x41c2d2['invoice_settings']['default_payment_method']['id'],_0x337590=await stripe['paymentMethods']['retrieve'](_0x10a489);return _0x337590;}__name(getStripeDefaultPaymentMethod,'getStripeDefaultPaymentMethod');async function detachAllPaymentMethodsFromCustomer(_0xfd18c4){const _0x556ca5=await stripe['customers']['listPaymentMethods'](_0xfd18c4),_0x2a14f9=_0x556ca5['data']['map'](_0x500a86=>_0x500a86['id']);await Promise['all'](_0x2a14f9['map'](detachPaymentMethod));}__name(detachAllPaymentMethodsFromCustomer,'detachAllPaymentMethodsFromCustomer');
17
17
 
18
18
  export { areEnvSettingsConfiguredForPaymentSystem, attachPaymentMethodToCustomer, cancelStripeSubscription, cancelStripeSubscriptionById, changeCustomerEmail, changeStripeProductName, changeStripeProductStatus, confirmStripePayment, createStripeCustomer, createStripeProduct, createStripeProductPricing, createStripeSubscription, createStripeTrialSubscription, deactivateStripeProduct, deactivateStripeProductPricing, findStripeCustomerByEmail, findStripeCustomerById, getStripeDefaultPaymentMethod, getStripePaymentData, getStripeProductIdByPriceId, getStripeProducts, getStripeSubscriptionData, getStripeSubscriptionStatus, getSubscriptionFromPaymentIntent, hasStripeSubscription, instantUpdateStripeSubscription, processPaymentFailureAndCancelSubscription, retrievePaymentIntentFromSubscription, setCustomerDefaultPaymentMethod, stripe, updateCustomerEmailIfNeeded, updateStripeSubscriptionWithoutProration };
@@ -8,6 +8,6 @@ import { subscriptionStatuses } from '../../../meta/core/resources/enums/payment
8
8
  import { resourceNames } from '../../../../fd-toolbox/resources/resource-names.js';
9
9
  import { createResource } from '../../../meta/server/resources/crud-resources.js';
10
10
 
11
- var __defProp=Object['defineProperty'],__name=(_0x5f475f,_0x14f8d7)=>__defProp(_0x5f475f,'name',{'value':_0x14f8d7,'configurable':!![]});async function createSubscription(_0x580f14){return createResource(_0x580f14,resourceNames['subscription']);}__name(createSubscription,'createSubscription');async function getOneSubscription(_0x1bad0f){const _0x266516=createDynamicSelect(subscriptionSchema);dbWhere(_0x266516,eq(subscriptionSchema['workspaceId'],_0x1bad0f));const _0x19ce1c=await runQuery(_0x266516);return _0x19ce1c[0x820+0x25*-0xa3+0x3*0x525];}__name(getOneSubscription,'getOneSubscription');async function getSubscriptionsByWorkspaceId(_0x3f74af){const _0x40e425=createDynamicSelect(subscriptionSchema);return dbWhere(_0x40e425,eq(subscriptionSchema['workspaceId'],_0x3f74af)),runQuery(_0x40e425);}__name(getSubscriptionsByWorkspaceId,'getSubscriptionsByWorkspaceId');async function getFreeSubscriptionByWorkspaceId(_0x5c163b){const _0x49892c=createDynamicSelect(subscriptionSchema);dbWhere(_0x49892c,and(eq(subscriptionSchema['workspaceId'],_0x5c163b),isNull(subscriptionSchema['paymentSystemSubscriptionId'])));const _0x26a2d7=await runQuery(_0x49892c);return _0x26a2d7[0xcbd+0xd*0x2f4+-0x3321];}__name(getFreeSubscriptionByWorkspaceId,'getFreeSubscriptionByWorkspaceId');async function changeSubscriptionStatusById(_0x8825f5,_0x296704){const _0xb03870={'status':_0x296704};await dbUpdate(subscriptionSchema)['set'](_0xb03870)['where'](eq(subscriptionSchema['id'],_0x8825f5));const _0x1fa2a5=await selectSubscription(eq(subscriptionSchema['id'],_0x8825f5));return _0x1fa2a5[-0xdc5+-0x7*0x1d3+0x1a8a];}__name(changeSubscriptionStatusById,'changeSubscriptionStatusById');async function selectSubscription(_0x2f0bbd){const _0x4236e0=createDynamicSelect(subscriptionSchema,{'id':subscriptionSchema['id'],'paymentPlanName':paymentPlanSchema['name'],'status':subscriptionSchema['status'],'currentPeriodEndDate':subscriptionSchema['currentPeriodEndDate'],'endDate':subscriptionSchema['endDate'],'price':pricingSchema['price'],'currency':pricingSchema['currency'],'billingInterval':pricingSchema['billingInterval'],'paymentSystemSubscriptionId':subscriptionSchema['paymentSystemSubscriptionId']});return dbInnerJoin(_0x4236e0,pricingSchema,eq(subscriptionSchema['pricingId'],pricingSchema['id'])),dbInnerJoin(_0x4236e0,paymentPlanSchema,eq(pricingSchema['paymentPlanId'],paymentPlanSchema['id'])),dbWhere(_0x4236e0,_0x2f0bbd),runQuery(_0x4236e0);}__name(selectSubscription,'selectSubscription');async function getSubscriptionsDueForCheck(){const _0x222d81=createDynamicSelect(subscriptionSchema);return dbWhere(_0x222d81,and(isNotNull(subscriptionSchema['paymentSystemSubscriptionId']),eq(subscriptionSchema['status'],subscriptionStatuses['active']),lt(subscriptionSchema['currentPeriodEndDate'],getNowUtc()))),runQuery(_0x222d81);}__name(getSubscriptionsDueForCheck,'getSubscriptionsDueForCheck');async function getSubscriptionByPaymentSystemSubscrId(_0x1a682){const _0x723259=await selectSubscription(eq(subscriptionSchema['paymentSystemSubscriptionId'],_0x1a682));return _0x723259[0x113a+-0x1c04+0xaca];}__name(getSubscriptionByPaymentSystemSubscrId,'getSubscriptionByPaymentSystemSubscrId');
11
+ var __defProp=Object['defineProperty'],__name=(_0x104807,_0x39b84d)=>__defProp(_0x104807,'name',{'value':_0x39b84d,'configurable':!![]});async function createSubscription(_0x1a7e17){return createResource(_0x1a7e17,resourceNames['subscription']);}__name(createSubscription,'createSubscription');async function getOneSubscription(_0x1034c4){const _0x540fbd=createDynamicSelect(subscriptionSchema);dbWhere(_0x540fbd,eq(subscriptionSchema['workspaceId'],_0x1034c4));const _0x2a5366=await runQuery(_0x540fbd);return _0x2a5366[-0x17b7+-0x1a41+0x31f8];}__name(getOneSubscription,'getOneSubscription');async function getSubscriptionsByWorkspaceId(_0x790aad){const _0x158c15=createDynamicSelect(subscriptionSchema);return dbWhere(_0x158c15,eq(subscriptionSchema['workspaceId'],_0x790aad)),runQuery(_0x158c15);}__name(getSubscriptionsByWorkspaceId,'getSubscriptionsByWorkspaceId');async function getFreeSubscriptionByWorkspaceId(_0x127033){const _0xe7e49=createDynamicSelect(subscriptionSchema);dbWhere(_0xe7e49,and(eq(subscriptionSchema['workspaceId'],_0x127033),isNull(subscriptionSchema['paymentSystemSubscriptionId'])));const _0x3f1aed=await runQuery(_0xe7e49);return _0x3f1aed[-0x5f2+-0x153+-0x1*-0x745];}__name(getFreeSubscriptionByWorkspaceId,'getFreeSubscriptionByWorkspaceId');async function changeSubscriptionStatusById(_0x406bbf,_0x40a3cc){const _0x3dfd7d={'status':_0x40a3cc};await dbUpdate(subscriptionSchema)['set'](_0x3dfd7d)['where'](eq(subscriptionSchema['id'],_0x406bbf));const _0x5320aa=await selectSubscription(eq(subscriptionSchema['id'],_0x406bbf));return _0x5320aa[0x4*0x43b+-0x1ea9+0xdbd];}__name(changeSubscriptionStatusById,'changeSubscriptionStatusById');async function selectSubscription(_0x140bb2){const _0x2f55bf=createDynamicSelect(subscriptionSchema,{'id':subscriptionSchema['id'],'paymentPlanName':paymentPlanSchema['name'],'status':subscriptionSchema['status'],'currentPeriodEndDate':subscriptionSchema['currentPeriodEndDate'],'endDate':subscriptionSchema['endDate'],'price':pricingSchema['price'],'currency':pricingSchema['currency'],'billingInterval':pricingSchema['billingInterval'],'paymentSystemSubscriptionId':subscriptionSchema['paymentSystemSubscriptionId']});return dbInnerJoin(_0x2f55bf,pricingSchema,eq(subscriptionSchema['pricingId'],pricingSchema['id'])),dbInnerJoin(_0x2f55bf,paymentPlanSchema,eq(pricingSchema['paymentPlanId'],paymentPlanSchema['id'])),dbWhere(_0x2f55bf,_0x140bb2),runQuery(_0x2f55bf);}__name(selectSubscription,'selectSubscription');async function getSubscriptionsDueForCheck(){const _0x287721=createDynamicSelect(subscriptionSchema);return dbWhere(_0x287721,and(isNotNull(subscriptionSchema['paymentSystemSubscriptionId']),eq(subscriptionSchema['status'],subscriptionStatuses['active']),lt(subscriptionSchema['currentPeriodEndDate'],getNowUtc()))),runQuery(_0x287721);}__name(getSubscriptionsDueForCheck,'getSubscriptionsDueForCheck');async function getSubscriptionByPaymentSystemSubscrId(_0x3152b9){const _0x2423b1=await selectSubscription(eq(subscriptionSchema['paymentSystemSubscriptionId'],_0x3152b9));return _0x2423b1[-0x13*0x3e+-0xcbb*-0x3+-0x2197];}__name(getSubscriptionByPaymentSystemSubscrId,'getSubscriptionByPaymentSystemSubscrId');
12
12
 
13
13
  export { changeSubscriptionStatusById, createSubscription, getFreeSubscriptionByWorkspaceId, getOneSubscription, getSubscriptionByPaymentSystemSubscrId, getSubscriptionsByWorkspaceId, getSubscriptionsDueForCheck, selectSubscription };
@@ -14,6 +14,6 @@ import { getCurrentPaymentSystemCustomerId, createSubscriptionWithInstantPayment
14
14
  import { getPaymentPlanByPricingId } from '../payments/payment-plan-db.js';
15
15
  import { isPaymentPlanTrial } from '../payments/payment-plans.js';
16
16
 
17
- var __defProp=Object['defineProperty'],__name=(_0x54916a,_0x397a49)=>__defProp(_0x54916a,'name',{'value':_0x397a49,'configurable':!![]});async function cancelPaidSubscription(_0x47920a,_0x234a83){const _0x1d73fd=await getSubscriptionsByWorkspaceId(_0x234a83),_0x46c81d=_0x1d73fd['some'](_0x3c922e=>_0x3c922e['id']===_0x47920a);if(!_0x46c81d)throw apiForbiddenError();const _0x1c8b3e=_0x1d73fd['find'](_0x555560=>_0x555560['id']===_0x47920a);if(!_0x1c8b3e?.['paymentSystemSubscriptionId'])throw apiBadRequestError();if(_0x1c8b3e['pendingPricingId']){const _0x30f692=await updateSubscriptionById(_0x47920a,{'pendingPricingId':void(0x58*0x40+-0xc94+0x9*-0x10c),'endDate':_0x1c8b3e['currentPeriodEndDate']}),_0x3673a7=await getResource({'resourceName':resourceNames['pricing'],'id':_0x1c8b3e['pricingId']});return updateStripeSubscriptionWithoutProration(_0x1c8b3e['paymentSystemSubscriptionId'],_0x3673a7['paymentSystemPriceId']),_0x30f692;}const _0x1818a5=await cancelStripeSubscription(_0x1c8b3e['paymentSystemSubscriptionId']),_0x190491={'status':mapSubscriptionStatusToDbFormat(_0x1818a5['subscriptionStatus']),'currentPeriodEndDate':unixTimestampToDate(_0x1818a5?.['currentPeriodEndDate']),'endDate':_0x1818a5?.['endDate']?unixTimestampToDate(_0x1818a5['endDate']):void(0x663*-0x4+-0x15cc+0x2f58),'pendingPricingId':void(-0x15b0+0x1748+-0x3*0x88)};return updateSubscriptionById(_0x47920a,_0x190491);}__name(cancelPaidSubscription,'cancelPaidSubscription');async function updatePaymentPlan(_0x53f7bb,_0x4caf41){const _0x45011e=await getResource({'resourceName':resourceNames['subscription'],'id':_0x53f7bb}),_0x310490=await getResource({'resourceName':resourceNames['pricing'],'id':_0x4caf41}),_0xa0506f=_0x45011e['paymentSystemSubscriptionId'],_0x1f681f=_0x310490['paymentSystemPriceId'];if(_0x45011e['status']===subscriptionStatuses['trialing'])throw apiForbiddenError(paymentErrorMessages['subscriptionCannotBeUpdatedDueToTrial']);const _0x18fe83=await getPaymentPlanByPricingId(_0x4caf41);if(!_0x18fe83)throw apiInternalServerError(paymentErrorMessages['noPaymentPlanAttachedToPricing']);if(isPaymentPlanTrial(_0x18fe83))throw apiBadRequestError(paymentErrorMessages['subscriptionCannotBeUpgradedToTrial']);const _0x3a293f=await getResource({'resourceName':resourceNames['pricing'],'id':_0x4caf41}),_0x1a3e10=await getResource({'resourceName':resourceNames['pricing'],'id':_0x45011e['pricingId']});_0x3a293f['price']>=_0x1a3e10['price']?await upgradePaymentPlan(_0x53f7bb,_0xa0506f,_0x1f681f,_0x4caf41):await downgradePaymentPlan(_0x53f7bb,_0xa0506f,_0x1f681f,_0x4caf41);}__name(updatePaymentPlan,'updatePaymentPlan');async function changeSubscriptionStatus(_0x4ef906,_0x4bc295){return changeSubscriptionStatusById(_0x4ef906,_0x4bc295);}__name(changeSubscriptionStatus,'changeSubscriptionStatus');async function getActiveSubscriptionByWorkspaceId(_0x425f2a){const _0x4b5590=await getSubscriptionsByWorkspaceId(_0x425f2a),_0x589022=_0x4b5590['find'](_0x2545d8=>_0x2545d8['status']===subscriptionStatuses['active']||_0x2545d8['status']===subscriptionStatuses['trialing']);return _0x589022;}__name(getActiveSubscriptionByWorkspaceId,'getActiveSubscriptionByWorkspaceId');async function syncInactiveSubscriptions(){const _0x3c2d35=await getSubscriptionsDueForCheck();if(!_0x3c2d35['length'])return;for(const _0xf90708 of _0x3c2d35){if(_0xf90708?.['paymentSystemSubscriptionId']){const _0x34714f=await getFreeSubscriptionByWorkspaceId(_0xf90708['workspaceId']),_0x1a862d=await getStripeSubscriptionData(_0xf90708['paymentSystemSubscriptionId']),_0x4cd43a=mapSubscriptionStatusToDbFormat(_0x1a862d['status']);_0x4cd43a!==_0xf90708['status']&&_0x4cd43a!==subscriptionStatuses['active']&&_0x4cd43a!==subscriptionStatuses['pastDue']&&await processInactiveSubscriptionSync(_0xf90708['id'],_0x34714f['id'],_0x1a862d);}}}__name(syncInactiveSubscriptions,'syncInactiveSubscriptions');async function processInactiveSubscriptionSync(_0xb27377,_0x381bc5,_0x468635){const _0x18a559={'status':subscriptionStatuses['canceled'],'currentPeriodEndDate':unixTimestampToDate(_0x468635['currentPeriodEndDate']),'endDate':_0x468635['endDate']?unixTimestampToDate(_0x468635['endDate']):void(-0x1*0x794+0x1*0x1ecb+-0x1737)};await updateSubscriptionById(_0xb27377,_0x18a559),await changeSubscriptionStatusById(_0x381bc5,subscriptionStatuses['active']);}__name(processInactiveSubscriptionSync,'processInactiveSubscriptionSync');async function hasPaidOrTrialSubscription(){const _0x18c3f7=await getResourcesByName(resourceNames['subscription']);return _0x18c3f7['some'](_0x4f5b85=>_0x4f5b85['pricingId']!==pricingIds['basicId']);}__name(hasPaidOrTrialSubscription,'hasPaidOrTrialSubscription');async function createSubscriptionForCurrentWorkspace(_0x2228f2){const _0x14e2f9=await getCurrentPaymentSystemCustomerId();if(!_0x14e2f9)throw apiNotFoundError(paymentErrorMessages['paymentSystemUserNotFound']);const _0x106020=await getStripeDefaultPaymentMethod(_0x14e2f9),_0x503356=_0x106020?.['id'];if(!_0x503356)throw apiNotFoundError(paymentErrorMessages['defaultPaymentMethodNotFound']);const _0x45108e=await getPaymentPlanByPricingId(_0x2228f2);if(!_0x45108e)throw apiInternalServerError(paymentErrorMessages['noPaymentPlanAttachedToPricing']);if(isPaymentPlanTrial(_0x45108e))throw apiBadRequestError(paymentErrorMessages['trialCannotBeCreated']);return createSubscriptionWithInstantPayment(_0x2228f2,_0x503356,_0x14e2f9);}__name(createSubscriptionForCurrentWorkspace,'createSubscriptionForCurrentWorkspace');async function downgradePaymentPlan(_0x2d44f7,_0x2b25b0,_0x1f8f8e,_0x19e992){await updateStripeSubscriptionWithoutProration(_0x2b25b0,_0x1f8f8e);const _0x18088c={'pendingPricingId':_0x19e992,'endDate':void(0x449*0x5+0x9db+-0xfa4*0x2)};return updateSubscriptionById(_0x2d44f7,_0x18088c);}__name(downgradePaymentPlan,'downgradePaymentPlan');async function upgradePaymentPlan(_0x26cc5f,_0x5c8404,_0xd5e9b2,_0x5c7806){await instantUpdateStripeSubscription(_0x5c8404,_0xd5e9b2);const _0x287aee={'pricingId':_0x5c7806,'endDate':void(0x1e43+-0x39*-0x1+0x1*-0x1e7c),'pendingPricingId':void(0x53*0x2+-0x1596+0x2*0xa78)};return updateSubscriptionById(_0x26cc5f,_0x287aee);}__name(upgradePaymentPlan,'upgradePaymentPlan');async function updateSubscriptionById(_0x27f034,_0x926cbe){const _0x44662c=await getUserId(),_0xf48dc0={'id':_0x27f034,..._0x926cbe},_0x34bbd5={'resourceName':resourceNames['subscription'],'resource':_0xf48dc0,'isCreate':![],'throwOnNonSuccess':!![],'userId':_0x44662c};await crudUpdate(_0x34bbd5);}__name(updateSubscriptionById,'updateSubscriptionById');
17
+ var __defProp=Object['defineProperty'],__name=(_0x2f0269,_0x55d9fc)=>__defProp(_0x2f0269,'name',{'value':_0x55d9fc,'configurable':!![]});async function cancelPaidSubscription(_0x330331,_0x4d4b34){const _0x25fad2=await getSubscriptionsByWorkspaceId(_0x4d4b34),_0x1dfbd6=_0x25fad2['some'](_0x5a6e95=>_0x5a6e95['id']===_0x330331);if(!_0x1dfbd6)throw apiForbiddenError();const _0x22a5d1=_0x25fad2['find'](_0x469cbe=>_0x469cbe['id']===_0x330331);if(!_0x22a5d1?.['paymentSystemSubscriptionId'])throw apiBadRequestError();if(_0x22a5d1['pendingPricingId']){const _0x7033ec=await updateSubscriptionById(_0x330331,{'pendingPricingId':void(-0x1ddd+0x1a7d+0x360),'endDate':_0x22a5d1['currentPeriodEndDate']}),_0x41412a=await getResource({'resourceName':resourceNames['pricing'],'id':_0x22a5d1['pricingId']});return updateStripeSubscriptionWithoutProration(_0x22a5d1['paymentSystemSubscriptionId'],_0x41412a['paymentSystemPriceId']),_0x7033ec;}const _0x43e526=await cancelStripeSubscription(_0x22a5d1['paymentSystemSubscriptionId']),_0x5d5c83={'status':mapSubscriptionStatusToDbFormat(_0x43e526['subscriptionStatus']),'currentPeriodEndDate':unixTimestampToDate(_0x43e526?.['currentPeriodEndDate']),'endDate':_0x43e526?.['endDate']?unixTimestampToDate(_0x43e526['endDate']):void(0x5f0+0x3f7+-0x9e7),'pendingPricingId':void(0x23b7+-0xea5*-0x1+-0x325c)};return updateSubscriptionById(_0x330331,_0x5d5c83);}__name(cancelPaidSubscription,'cancelPaidSubscription');async function updatePaymentPlan(_0x3496e0,_0x577ac9){const _0x86e84=await getResource({'resourceName':resourceNames['subscription'],'id':_0x3496e0}),_0x1c66cd=await getResource({'resourceName':resourceNames['pricing'],'id':_0x577ac9}),_0x2309d9=_0x86e84['paymentSystemSubscriptionId'],_0x46f2f0=_0x1c66cd['paymentSystemPriceId'];if(_0x86e84['status']===subscriptionStatuses['trialing'])throw apiForbiddenError(paymentErrorMessages['subscriptionCannotBeUpdatedDueToTrial']);const _0x58ed90=await getPaymentPlanByPricingId(_0x577ac9);if(!_0x58ed90)throw apiInternalServerError(paymentErrorMessages['noPaymentPlanAttachedToPricing']);if(isPaymentPlanTrial(_0x58ed90))throw apiBadRequestError(paymentErrorMessages['subscriptionCannotBeUpgradedToTrial']);const _0x1c5396=await getResource({'resourceName':resourceNames['pricing'],'id':_0x577ac9}),_0x931010=await getResource({'resourceName':resourceNames['pricing'],'id':_0x86e84['pricingId']});_0x1c5396['price']>=_0x931010['price']?await upgradePaymentPlan(_0x3496e0,_0x2309d9,_0x46f2f0,_0x577ac9):await downgradePaymentPlan(_0x3496e0,_0x2309d9,_0x46f2f0,_0x577ac9);}__name(updatePaymentPlan,'updatePaymentPlan');async function changeSubscriptionStatus(_0x49a1ad,_0x35fb1d){return changeSubscriptionStatusById(_0x49a1ad,_0x35fb1d);}__name(changeSubscriptionStatus,'changeSubscriptionStatus');async function getActiveSubscriptionByWorkspaceId(_0x33dc8c){const _0x479998=await getSubscriptionsByWorkspaceId(_0x33dc8c),_0x310a37=_0x479998['find'](_0x11fa56=>_0x11fa56['status']===subscriptionStatuses['active']||_0x11fa56['status']===subscriptionStatuses['trialing']);return _0x310a37;}__name(getActiveSubscriptionByWorkspaceId,'getActiveSubscriptionByWorkspaceId');async function syncInactiveSubscriptions(){const _0x31c728=await getSubscriptionsDueForCheck();if(!_0x31c728['length'])return;for(const _0x48f1a6 of _0x31c728){if(_0x48f1a6?.['paymentSystemSubscriptionId']){const _0x51b82a=await getFreeSubscriptionByWorkspaceId(_0x48f1a6['workspaceId']),_0x35235f=await getStripeSubscriptionData(_0x48f1a6['paymentSystemSubscriptionId']),_0x4fc838=mapSubscriptionStatusToDbFormat(_0x35235f['status']);_0x4fc838!==_0x48f1a6['status']&&_0x4fc838!==subscriptionStatuses['active']&&_0x4fc838!==subscriptionStatuses['pastDue']&&await processInactiveSubscriptionSync(_0x48f1a6['id'],_0x51b82a['id'],_0x35235f);}}}__name(syncInactiveSubscriptions,'syncInactiveSubscriptions');async function processInactiveSubscriptionSync(_0x32b53d,_0x298294,_0xe0d452){const _0x47cbd5={'status':subscriptionStatuses['canceled'],'currentPeriodEndDate':unixTimestampToDate(_0xe0d452['currentPeriodEndDate']),'endDate':_0xe0d452['endDate']?unixTimestampToDate(_0xe0d452['endDate']):void(-0xd3f+0x1e75+-0x1136)};await updateSubscriptionById(_0x32b53d,_0x47cbd5),await changeSubscriptionStatusById(_0x298294,subscriptionStatuses['active']);}__name(processInactiveSubscriptionSync,'processInactiveSubscriptionSync');async function hasPaidOrTrialSubscription(){const _0xd6772e=await getResourcesByName(resourceNames['subscription']);return _0xd6772e['some'](_0x246dfd=>_0x246dfd['pricingId']!==pricingIds['basicId']);}__name(hasPaidOrTrialSubscription,'hasPaidOrTrialSubscription');async function createSubscriptionForCurrentWorkspace(_0x878374){const _0x502473=await getCurrentPaymentSystemCustomerId();if(!_0x502473)throw apiNotFoundError(paymentErrorMessages['paymentSystemUserNotFound']);const _0x312678=await getStripeDefaultPaymentMethod(_0x502473),_0x125466=_0x312678?.['id'];if(!_0x125466)throw apiNotFoundError(paymentErrorMessages['defaultPaymentMethodNotFound']);const _0x4dbea7=await getPaymentPlanByPricingId(_0x878374);if(!_0x4dbea7)throw apiInternalServerError(paymentErrorMessages['noPaymentPlanAttachedToPricing']);if(isPaymentPlanTrial(_0x4dbea7))throw apiBadRequestError(paymentErrorMessages['trialCannotBeCreated']);return createSubscriptionWithInstantPayment(_0x878374,_0x125466,_0x502473);}__name(createSubscriptionForCurrentWorkspace,'createSubscriptionForCurrentWorkspace');async function downgradePaymentPlan(_0x6e71f7,_0xdad4c4,_0x35b81f,_0x507eb6){await updateStripeSubscriptionWithoutProration(_0xdad4c4,_0x35b81f);const _0x5326ea={'pendingPricingId':_0x507eb6,'endDate':void(-0x26b*0xb+-0xe08+0x3*0xd8b)};return updateSubscriptionById(_0x6e71f7,_0x5326ea);}__name(downgradePaymentPlan,'downgradePaymentPlan');async function upgradePaymentPlan(_0x34a196,_0x52dcf9,_0x1cc5d8,_0x5cc731){await instantUpdateStripeSubscription(_0x52dcf9,_0x1cc5d8);const _0xc79beb={'pricingId':_0x5cc731,'endDate':void(0x1ceb+0x6*0x33d+-0x3059*0x1),'pendingPricingId':void(0x4*-0x321+0x18fb+0x1*-0xc77)};return updateSubscriptionById(_0x34a196,_0xc79beb);}__name(upgradePaymentPlan,'upgradePaymentPlan');async function updateSubscriptionById(_0x58a577,_0x3ac8b6){const _0x37f0a2=await getUserId(),_0x580a1d={'id':_0x58a577,..._0x3ac8b6},_0x23e7f4={'resourceName':resourceNames['subscription'],'resource':_0x580a1d,'isCreate':![],'throwOnNonSuccess':!![],'userId':_0x37f0a2};await crudUpdate(_0x23e7f4);}__name(updateSubscriptionById,'updateSubscriptionById');
18
18
 
19
19
  export { cancelPaidSubscription, changeSubscriptionStatus, createSubscriptionForCurrentWorkspace, getActiveSubscriptionByWorkspaceId, hasPaidOrTrialSubscription, processInactiveSubscriptionSync, syncInactiveSubscriptions, updatePaymentPlan };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  import { stripe } from '../stripe/stripes.js';
3
3
 
4
- var __defProp=Object['defineProperty'],__name=(_0x24cff5,_0x1b4d92)=>__defProp(_0x24cff5,'name',{'value':_0x1b4d92,'configurable':!![]});async function get(){const _0x832476=await stripe['invoices']['list']();return _0x832476['data']['map'](transformInvoice);}__name(get,'get');function transformInvoice(_0x1d8613){return {'id':_0x1d8613['id'],'date':_0x1d8613['created'],'invoiceNumber':_0x1d8613['number']??void(0x3cc*0x9+0x24b3*0x1+-0x46df*0x1),'amount':_0x1d8613['amount_due'],'status':_0x1d8613['status']??void(0x2*-0x59e+0xec3*0x1+-0x387),'downloadUrl':_0x1d8613['invoice_pdf']??void(-0x5b*0x41+-0xb54+0x226f),'viewUrl':_0x1d8613['hosted_invoice_url']??void(-0x1be8+0x2*0x959+0x936)};}__name(transformInvoice,'transformInvoice');
4
+ var __defProp=Object['defineProperty'],__name=(_0x5d65e8,_0xbbd406)=>__defProp(_0x5d65e8,'name',{'value':_0xbbd406,'configurable':!![]});async function get(){const _0x405f62=await stripe['invoices']['list']();return _0x405f62['data']['map'](transformInvoice);}__name(get,'get');function transformInvoice(_0x169460){return {'id':_0x169460['id'],'date':_0x169460['created'],'invoiceNumber':_0x169460['number']??void(-0x1b68+-0x2a*0xe4+0x8*0x81a),'amount':_0x169460['amount_due'],'status':_0x169460['status']??void(0x1d3e*0x1+-0x18d0+-0x46e),'downloadUrl':_0x169460['invoice_pdf']??void(-0x22d7+-0xe3f+0x3116),'viewUrl':_0x169460['hosted_invoice_url']??void(0x1*-0x109f+0x79*-0x4+0x1283)};}__name(transformInvoice,'transformInvoice');
5
5
 
6
6
  export { get };
@@ -3,8 +3,8 @@ import { safeParseJson } from '../../../fd-toolbox/lib/utils.js';
3
3
  import { generateAiText } from '../../ai/vercel-ai-sdk/ai.js';
4
4
  import { createError } from '../../../fd-toolbox/errors/errors.js';
5
5
  import { enricherErrorMessages } from '../../enricher/constants/enricher-error-message-constants.js';
6
- import * as _0x5efc3a from 'cheerio';
6
+ import * as _0x5113ce from 'cheerio';
7
7
 
8
- var __defProp=Object['defineProperty'],__name=(_0x5745a6,_0x397546)=>__defProp(_0x5745a6,'name',{'value':_0x397546,'configurable':!![]});function extractText(_0x3c0a3f,_0x2db34a){const _0x32fa82=_0x5efc3a['load'](_0x3c0a3f),_0x23c307=[];_0x32fa82('p,\x20h1,\x20h2,\x20h3,\x20h4,\x20h5,\x20h6,\x20li,\x20td,\x20th,\x20article')['each']((_0x378737,_0x3a2ae9)=>{_0x23c307['push'](_0x32fa82(_0x3a2ae9)['text']()['trim']());});const _0x6ce83e=_0x23c307['join']('\x0a')['trim']();return _0x6ce83e['slice'](0x1*0x2336+-0x1*-0x18d4+-0x109*0x3a,_0x2db34a);}__name(extractText,'extractText');async function fetchHtml(_0x27b038){const _0x307a1c=await fetch(_0x27b038),_0x5ba8d7=await _0x307a1c['text']();if(!_0x307a1c['ok'])throw createError(enricherErrorMessages['errorFetching']['replace']('{0}',_0x307a1c['status']+':\x20'+_0x5ba8d7));return _0x5ba8d7;}__name(fetchHtml,'fetchHtml');async function analyzeWebsite(_0x568846){const _0x4d170a=await fetchHtml(_0x568846),_0x3052bd=extractText(_0x4d170a,-0x1e2d+0x1225+0x17c0),_0x170e7f=buildUserPrompt(_0x568846,_0x3052bd),_0x56ccad=buildSeoCompetitorsPrompt(_0x568846,_0x3052bd),[_0x4fffea,_0x4b1a4d]=await Promise['all']([generateAiText({'prompt':_0x170e7f,'systemPrompt':systemPrompt}),generateAiText({'prompt':_0x56ccad,'systemPrompt':systemPrompt})]),_0x5442f6=safeParseJson(_0x4fffea['text']),_0x9597c9=safeParseJson(_0x4b1a4d['text']),_0x3dbf31={..._0x5442f6,'competitors':_0x9597c9['competitors'],'targetAudiences':_0x5442f6['targetAudiences']};return _0x3dbf31;}__name(analyzeWebsite,'analyzeWebsite');const systemPrompt='\x0a#\x20System\x20Prompt\x0a\x0aYou\x20are\x20an\x20expert\x20business\x20analyst\x20specializing\x20in\x20competitive\x20research\x20and\x20market\x20positioning.\x0aYour\x20task\x20is\x20to\x20analyze\x20website\x20content\x20and\x20extract\x20the\x20most\x20accurate,\x20concise\x20description\x0aof\x20the\x20company\x20behind\x20the\x20website.\x0a\x0a##\x20Rules:\x0a\x0a-\x20Base\x20your\x20answer\x20ONLY\x20on\x20the\x20provided\x20website\x20text.\x0a-\x20Do\x20not\x20guess\x20or\x20invent\x20information.\x0a-\x20If\x20something\x20is\x20unclear\x20or\x20missing,\x20return\x20\x22unknown\x22\x20for\x20that\x20field.\x0a-\x20For\x20the\x20`language`\x20field,\x20return\x20the\x20IETF\x20BCP\x2047\x20language\x20tag\x20(e.g.,\x20\x22en-US\x22,\x20\x22de-DE\x22,\x20\x22uk-UA\x22,\x20\x22pl-PL\x22).\x0a-\x20For\x20the\x20`country`\x20field,\x20return\x20the\x20ISO\x203166-1\x20alpha-2\x20country\x20code\x20(e.g.,\x20\x22US\x22,\x20\x22DE\x22,\x20\x22UA\x22,\x20\x22PL\x22).\x0a-\x20Respond\x20in\x20valid\x20JSON\x20only,\x20with\x20no\x20extra\x20text,\x20no\x20markdown\x20fences,\x20no\x20explanations.\x0a';function buildUserPrompt(_0x382af8,_0x254040){return '\x0a#\x20User\x20Prompt\x0a\x0aAnalyze\x20the\x20following\x20website\x20content\x20and\x20determine:\x0a\x0a1.\x20**Core\x20business**\x20-\x20A\x20clear\x20one-sentence\x20description\x20of\x20what\x20the\x20company\x20primarily\x20does.\x0a\x20\x20\x20Focus\x20on\x20the\x20value\x20proposition,\x20not\x20just\x20the\x20industry.\x0a2.\x20**Unique\x20selling\x20propositions\x20(USPs)**\x20-\x20A\x20list\x20of\x203-5\x20main\x20differentiators\x20or\x20competitive\x20strengths\x0a\x20\x20\x20that\x20set\x20this\x20company\x20apart.\x0a3.\x20**Language**\x20-\x20The\x20primary\x20language\x20used\x20on\x20the\x20site\x20as\x20an\x20IETF\x20BCP\x2047\x20tag\x20(e.g.,\x20\x22en-US\x22,\x20\x22de-DE\x22).\x0a4.\x20**Country**\x20-\x20The\x20main\x20country\x20or\x20region\x20the\x20business\x20serves\x20as\x20an\x20ISO\x203166-1\x20alpha-2\x20code\x20(e.g.,\x20\x22US\x22,\x20\x22DE\x22).\x0a5.\x20**Target\x20audiences**\x20-\x20Exactly\x206\x20distinct\x20customer\x20segments\x20the\x20company\x20is\x20trying\x20to\x20reach.\x0a\x20\x20\x20Each\x20audience\x20should\x20be\x20a\x20specific,\x20actionable\x20persona\x20description\x0a\x20\x20\x20(e.g.,\x20\x22Small\x20business\x20owners\x20looking\x20for\x20affordable\x20CRM\x20solutions\x22\x20instead\x20of\x20just\x20\x22Small\x20businesses\x22).\x0a\x0aReturn\x20the\x20result\x20in\x20this\x20exact\x20JSON\x20structure:\x0a\x0a```json\x0a{\x0a\x20\x20\x20\x20\x22name\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22coreBusiness\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22usps\x22:\x20[],\x0a\x20\x20\x20\x20\x22language\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22country\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22targetAudiences\x22:\x20[]\x0a}\x0a```\x0a\x0a**Website\x20URL:**\x20'+_0x382af8+'\x0a\x0a**Website\x20content:**\x0a'+_0x254040+'\x0a';}__name(buildUserPrompt,'buildUserPrompt');function buildSeoCompetitorsPrompt(_0x6428ec,_0x3bcef9){return '\x0a#\x20SEO\x20Competitors\x20Analysis\x20Prompt\x0a\x0aRole:\x0aYou\x20are\x20an\x20experienced\x20SEO\x20analyst\x20specializing\x20in\x20organic\x20search\x20and\x20competitor\x20research.\x0a\x0aContext:\x0aThe\x20user\x20owns\x20the\x20website\x20'+_0x6428ec+'.\x0a\x0aTask:\x0aIdentify\x20the\x20top\x205\x20organic\x20search\x20competitors\x20of\x20'+_0x6428ec+'\x20based\x20on\x20the\x20most\x20important\x20keywords\x20this\x20site\x20targets\x20\x0aor\x20is\x20likely\x20to\x20rank\x20for.\x0a\x0aInstructions:\x0a1.\x20Determine\x20the\x20primary\x20keywords\x20and\x20keyword\x20themes\x20relevant\x20to\x20'+_0x6428ec+',\x20including\x20core\x20and\x20long-tail\x20queries.\x0a2.\x20Analyze\x20Google’s\x20organic\x20search\x20results\x20for\x20these\x20keywords.\x0a3.\x20Identify\x20websites\x20that\x20consistently\x20rank\x20for\x20multiple\x20of\x20these\x20keywords\x20and\x20compete\x20for\x20the\x20same\x20search\x20visibility.\x0a4.\x20Output\x20a\x20list\x20of\x205\x20competitors.\x0a\x0aReturn\x20the\x20result\x20in\x20this\x20exact\x20JSON\x20structure:\x0a\x0a```json\x0a{\x0a\x20\x20\x20\x20\x22competitors\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22domain\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22reason\x22:\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20]\x0a}\x0a```\x0a\x0a**Website\x20URL:**\x20'+_0x6428ec+'\x0a\x0a**Website\x20content:**\x0a'+_0x3bcef9+'\x0a';}__name(buildSeoCompetitorsPrompt,'buildSeoCompetitorsPrompt');
8
+ var __defProp=Object['defineProperty'],__name=(_0x5aeec8,_0x1ccd53)=>__defProp(_0x5aeec8,'name',{'value':_0x1ccd53,'configurable':!![]});function extractText(_0x517fb0,_0x344019){const _0x493a39=_0x5113ce['load'](_0x517fb0),_0x23f8b1=[];_0x493a39('p,\x20h1,\x20h2,\x20h3,\x20h4,\x20h5,\x20h6,\x20li,\x20td,\x20th,\x20article')['each']((_0x1b068c,_0x3781c3)=>{_0x23f8b1['push'](_0x493a39(_0x3781c3)['text']()['trim']());});const _0x1933db=_0x23f8b1['join']('\x0a')['trim']();return _0x1933db['slice'](0x68*0x5+-0x51b+0x1*0x313,_0x344019);}__name(extractText,'extractText');async function fetchHtml(_0x308d49){const _0x306420=await fetch(_0x308d49),_0x1ae741=await _0x306420['text']();if(!_0x306420['ok'])throw createError(enricherErrorMessages['errorFetching']['replace']('{0}',_0x306420['status']+':\x20'+_0x1ae741));return _0x1ae741;}__name(fetchHtml,'fetchHtml');async function analyzeWebsite(_0x611093){const _0x451e98=await fetchHtml(_0x611093),_0x1b223b=extractText(_0x451e98,-0x13*-0x20c+-0x4*0x4bc+-0x20f*0x4),_0x4ee649=buildUserPrompt(_0x611093,_0x1b223b),_0x5f0fda=buildSeoCompetitorsPrompt(_0x611093,_0x1b223b),[_0x22136a,_0x96c411]=await Promise['all']([generateAiText({'prompt':_0x4ee649,'systemPrompt':systemPrompt}),generateAiText({'prompt':_0x5f0fda,'systemPrompt':systemPrompt})]),_0x58f253=safeParseJson(_0x22136a['text']),_0x447ce0=safeParseJson(_0x96c411['text']),_0x2cec32={..._0x58f253,'competitors':_0x447ce0['competitors'],'targetAudiences':_0x58f253['targetAudiences']};return _0x2cec32;}__name(analyzeWebsite,'analyzeWebsite');const systemPrompt='\x0a#\x20System\x20Prompt\x0a\x0aYou\x20are\x20an\x20expert\x20business\x20analyst\x20specializing\x20in\x20competitive\x20research\x20and\x20market\x20positioning.\x0aYour\x20task\x20is\x20to\x20analyze\x20website\x20content\x20and\x20extract\x20the\x20most\x20accurate,\x20concise\x20description\x0aof\x20the\x20company\x20behind\x20the\x20website.\x0a\x0a##\x20Rules:\x0a\x0a-\x20Base\x20your\x20answer\x20ONLY\x20on\x20the\x20provided\x20website\x20text.\x0a-\x20Do\x20not\x20guess\x20or\x20invent\x20information.\x0a-\x20If\x20something\x20is\x20unclear\x20or\x20missing,\x20return\x20\x22unknown\x22\x20for\x20that\x20field.\x0a-\x20For\x20the\x20`language`\x20field,\x20return\x20the\x20IETF\x20BCP\x2047\x20language\x20tag\x20(e.g.,\x20\x22en-US\x22,\x20\x22de-DE\x22,\x20\x22uk-UA\x22,\x20\x22pl-PL\x22).\x0a-\x20For\x20the\x20`country`\x20field,\x20return\x20the\x20ISO\x203166-1\x20alpha-2\x20country\x20code\x20(e.g.,\x20\x22US\x22,\x20\x22DE\x22,\x20\x22UA\x22,\x20\x22PL\x22).\x0a-\x20Respond\x20in\x20valid\x20JSON\x20only,\x20with\x20no\x20extra\x20text,\x20no\x20markdown\x20fences,\x20no\x20explanations.\x0a';function buildUserPrompt(_0x5115ed,_0x28660b){return '\x0a#\x20User\x20Prompt\x0a\x0aAnalyze\x20the\x20following\x20website\x20content\x20and\x20determine:\x0a\x0a1.\x20**Core\x20business**\x20-\x20A\x20clear\x20one-sentence\x20description\x20of\x20what\x20the\x20company\x20primarily\x20does.\x0a\x20\x20\x20Focus\x20on\x20the\x20value\x20proposition,\x20not\x20just\x20the\x20industry.\x0a2.\x20**Unique\x20selling\x20propositions\x20(USPs)**\x20-\x20A\x20list\x20of\x203-5\x20main\x20differentiators\x20or\x20competitive\x20strengths\x0a\x20\x20\x20that\x20set\x20this\x20company\x20apart.\x0a3.\x20**Language**\x20-\x20The\x20primary\x20language\x20used\x20on\x20the\x20site\x20as\x20an\x20IETF\x20BCP\x2047\x20tag\x20(e.g.,\x20\x22en-US\x22,\x20\x22de-DE\x22).\x0a4.\x20**Country**\x20-\x20The\x20main\x20country\x20or\x20region\x20the\x20business\x20serves\x20as\x20an\x20ISO\x203166-1\x20alpha-2\x20code\x20(e.g.,\x20\x22US\x22,\x20\x22DE\x22).\x0a5.\x20**Target\x20audiences**\x20-\x20Exactly\x206\x20distinct\x20customer\x20segments\x20the\x20company\x20is\x20trying\x20to\x20reach.\x0a\x20\x20\x20Each\x20audience\x20should\x20be\x20a\x20specific,\x20actionable\x20persona\x20description\x0a\x20\x20\x20(e.g.,\x20\x22Small\x20business\x20owners\x20looking\x20for\x20affordable\x20CRM\x20solutions\x22\x20instead\x20of\x20just\x20\x22Small\x20businesses\x22).\x0a\x0aReturn\x20the\x20result\x20in\x20this\x20exact\x20JSON\x20structure:\x0a\x0a```json\x0a{\x0a\x20\x20\x20\x20\x22name\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22coreBusiness\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22usps\x22:\x20[],\x0a\x20\x20\x20\x20\x22language\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22country\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x22targetAudiences\x22:\x20[]\x0a}\x0a```\x0a\x0a**Website\x20URL:**\x20'+_0x5115ed+'\x0a\x0a**Website\x20content:**\x0a'+_0x28660b+'\x0a';}__name(buildUserPrompt,'buildUserPrompt');function buildSeoCompetitorsPrompt(_0x5b646c,_0x175339){return '\x0a#\x20SEO\x20Competitors\x20Analysis\x20Prompt\x0a\x0aRole:\x0aYou\x20are\x20an\x20experienced\x20SEO\x20analyst\x20specializing\x20in\x20organic\x20search\x20and\x20competitor\x20research.\x0a\x0aContext:\x0aThe\x20user\x20owns\x20the\x20website\x20'+_0x5b646c+'.\x0a\x0aTask:\x0aIdentify\x20the\x20top\x205\x20organic\x20search\x20competitors\x20of\x20'+_0x5b646c+'\x20based\x20on\x20the\x20most\x20important\x20keywords\x20this\x20site\x20targets\x20\x0aor\x20is\x20likely\x20to\x20rank\x20for.\x0a\x0aInstructions:\x0a1.\x20Determine\x20the\x20primary\x20keywords\x20and\x20keyword\x20themes\x20relevant\x20to\x20'+_0x5b646c+',\x20including\x20core\x20and\x20long-tail\x20queries.\x0a2.\x20Analyze\x20Google’s\x20organic\x20search\x20results\x20for\x20these\x20keywords.\x0a3.\x20Identify\x20websites\x20that\x20consistently\x20rank\x20for\x20multiple\x20of\x20these\x20keywords\x20and\x20compete\x20for\x20the\x20same\x20search\x20visibility.\x0a4.\x20Output\x20a\x20list\x20of\x205\x20competitors.\x0a\x0aReturn\x20the\x20result\x20in\x20this\x20exact\x20JSON\x20structure:\x0a\x0a```json\x0a{\x0a\x20\x20\x20\x20\x22competitors\x22:\x20[\x0a\x20\x20\x20\x20\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22domain\x22:\x20\x22\x22,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x22reason\x22:\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20]\x0a}\x0a```\x0a\x0a**Website\x20URL:**\x20'+_0x5b646c+'\x0a\x0a**Website\x20content:**\x0a'+_0x175339+'\x0a';}__name(buildSeoCompetitorsPrompt,'buildSeoCompetitorsPrompt');
9
9
 
10
10
  export { analyzeWebsite, extractText, fetchHtml };
@@ -3,6 +3,6 @@ import { getResourcesByName } from '../../meta/server/db/db.js';
3
3
  import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
4
4
  import { createResource } from '../../meta/server/resources/crud-resources.js';
5
5
 
6
- var __defProp=Object['defineProperty'],__name=(_0x2d2660,_0x358f9f)=>__defProp(_0x2d2660,'name',{'value':_0x358f9f,'configurable':!![]});function createProduct(_0x21af95){return createResource(_0x21af95,resourceNames['product']);}__name(createProduct,'createProduct');function createProductCategory(_0x140c25){return createResource(_0x140c25,resourceNames['productCategory']);}__name(createProductCategory,'createProductCategory');function getAllProducts(){return getResourcesByName(resourceNames['product']);}__name(getAllProducts,'getAllProducts');
6
+ var __defProp=Object['defineProperty'],__name=(_0x4caeca,_0x20996b)=>__defProp(_0x4caeca,'name',{'value':_0x20996b,'configurable':!![]});function createProduct(_0x4db867){return createResource(_0x4db867,resourceNames['product']);}__name(createProduct,'createProduct');function createProductCategory(_0x5c6020){return createResource(_0x5c6020,resourceNames['productCategory']);}__name(createProductCategory,'createProductCategory');function getAllProducts(){return getResourcesByName(resourceNames['product']);}__name(getAllProducts,'getAllProducts');
7
7
 
8
8
  export { createProduct, createProductCategory, getAllProducts };
@@ -5,6 +5,6 @@ import { workspaceConstants } from '../../../fd-toolbox/server/constants/workspa
5
5
  import { storeIds } from '../store/store-master-data.js';
6
6
  import { productStatuses } from '../../common/products/product-enums.js';
7
7
 
8
- var __defProp=Object['defineProperty'],__name=(_0x2e2539,_0x5a9693)=>__defProp(_0x2e2539,'name',{'value':_0x5a9693,'configurable':!![]});const productIds={'smartphoneId':'18a3b240-29d9-40eb-ad41-628ee3754add','gamingLaptopId':'807adb0c-db34-4b05-ae43-594cfe433ffd','wirelessHeadphonesId':'23b315b6-4c7c-4813-980b-4006ce7cc519','smartTvId':'599d75c3-f427-4756-aeea-b4e6856540be'};const productCategoriesIds={'electronicsId':'c54346c4-dabe-46a6-89c1-8403c58fe987','phonesId':'081f1050-ca5e-4bc3-83fd-4754ca66f063','laptopsId':'d9723ea8-8dd4-476f-a37b-d088305963e5','accessoriesId':'5784949f-1c1a-4af6-b307-7562965bff14'};async function seedProducts(){for(const _0x27f5d5 of productCategoriesToSeed){await seedProductCategory(_0x27f5d5['id'],workspaceConstants['defaultWorkspaceId'],_0x27f5d5['name'],_0x27f5d5['parentId']);}for(const _0x41ea4e of productsToSeed){await seedProduct(_0x41ea4e['id'],workspaceConstants['defaultWorkspaceId'],_0x41ea4e['name'],_0x41ea4e['description'],_0x41ea4e['categoryId'],_0x41ea4e['storeId'],_0x41ea4e['freight'],_0x41ea4e['price'],_0x41ea4e['status'],_0x41ea4e['notes']);}}__name(seedProducts,'seedProducts');async function seedProduct(_0x3ed142,_0x2dc90d,_0x1905e5,_0x533ecc,_0x3e4379,_0x12c5b0,_0x3b7ac7,_0x25a040,_0x48d5d1,_0x169903){const _0x13c950={...createBaseResourceProperties(_0x3ed142),'workspaceId':_0x2dc90d,'name':_0x1905e5,'description':_0x533ecc,'productCategoryId':_0x3e4379,'storeId':_0x12c5b0,'freightShipment':_0x3b7ac7,'notes':_0x169903,'status':_0x48d5d1,'price':_0x25a040};return createProduct(_0x13c950);}__name(seedProduct,'seedProduct');async function seedProductCategory(_0x4133cb,_0x51adc1,_0x5814aa,_0x7672c2){const _0x2d8326={...createBaseResourceProperties(_0x4133cb),'workspaceId':_0x51adc1,'name':_0x5814aa,'parentProductCategoryId':_0x7672c2};return createProductCategory(_0x2d8326);}__name(seedProductCategory,'seedProductCategory');const productCategoriesToSeed=[{'id':productCategoriesIds['electronicsId'],'name':'Electronics'},{'id':productCategoriesIds['laptopsId'],'name':'Laptops','parentId':productCategoriesIds['electronicsId']},{'id':productCategoriesIds['phonesId'],'name':'Mobile\x20Phones','parentId':productCategoriesIds['electronicsId']},{'id':productCategoriesIds['accessoriesId'],'name':'Laptop\x20Accessories','parentId':productCategoriesIds['laptopsId']}],productsToSeed=[{'id':productIds['smartphoneId'],'name':'Smartphone','description':'High-end\x20smartphone\x20with\x20advanced\x20features.','categoryId':productCategoriesIds['phonesId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':999.99,'status':productStatuses['published'],'notes':'Rechargeable\x20battery\x20with\x2020\x20hours\x20of\x20usage.'},{'id':productIds['gamingLaptopId'],'name':'Gaming\x20Laptop','description':'Powerful\x20laptop\x20with\x20high-performance\x20hardware.','categoryId':productCategoriesIds['laptopsId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':0x3e8,'status':productStatuses['private'],'notes':'Battery\x20life\x20up\x20to\x208\x20hours,\x20depending\x20on\x20usage.'},{'id':productIds['smartTvId'],'name':'Smart\x20TV','description':'Smart\x20TV\x20with\x204K\x20resolution','categoryId':productCategoriesIds['electronicsId'],'storeId':storeIds['techStoreId'],'freight':![],'price':4999.99,'status':productStatuses['published'],'notes':'Streaming\x20capabilities'},{'id':productIds['wirelessHeadphonesId'],'name':'Wireless\x20Headphones','description':'High-quality\x20wireless\x20headphones\x20with\x20noise\x20cancellation.','categoryId':productCategoriesIds['electronicsId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':0x7d0,'status':productStatuses['draft'],'notes':'Compatible\x20with\x20all\x20Bluetooth-enabled\x20devices.'}];
8
+ var __defProp=Object['defineProperty'],__name=(_0x23d3af,_0x62ec94)=>__defProp(_0x23d3af,'name',{'value':_0x62ec94,'configurable':!![]});const productIds={'smartphoneId':'18a3b240-29d9-40eb-ad41-628ee3754add','gamingLaptopId':'807adb0c-db34-4b05-ae43-594cfe433ffd','wirelessHeadphonesId':'23b315b6-4c7c-4813-980b-4006ce7cc519','smartTvId':'599d75c3-f427-4756-aeea-b4e6856540be'};const productCategoriesIds={'electronicsId':'c54346c4-dabe-46a6-89c1-8403c58fe987','phonesId':'081f1050-ca5e-4bc3-83fd-4754ca66f063','laptopsId':'d9723ea8-8dd4-476f-a37b-d088305963e5','accessoriesId':'5784949f-1c1a-4af6-b307-7562965bff14'};async function seedProducts(){for(const _0x5b0ada of productCategoriesToSeed){await seedProductCategory(_0x5b0ada['id'],workspaceConstants['defaultWorkspaceId'],_0x5b0ada['name'],_0x5b0ada['parentId']);}for(const _0x2a2d86 of productsToSeed){await seedProduct(_0x2a2d86['id'],workspaceConstants['defaultWorkspaceId'],_0x2a2d86['name'],_0x2a2d86['description'],_0x2a2d86['categoryId'],_0x2a2d86['storeId'],_0x2a2d86['freight'],_0x2a2d86['price'],_0x2a2d86['status'],_0x2a2d86['notes']);}}__name(seedProducts,'seedProducts');async function seedProduct(_0x38147f,_0x182263,_0x21d0d0,_0x1542d3,_0xbc3c38,_0x4ade34,_0x5497db,_0x4448fc,_0x3778c9,_0x18b968){const _0x146a63={...createBaseResourceProperties(_0x38147f),'workspaceId':_0x182263,'name':_0x21d0d0,'description':_0x1542d3,'productCategoryId':_0xbc3c38,'storeId':_0x4ade34,'freightShipment':_0x5497db,'notes':_0x18b968,'status':_0x3778c9,'price':_0x4448fc};return createProduct(_0x146a63);}__name(seedProduct,'seedProduct');async function seedProductCategory(_0x528e37,_0x4f878a,_0x39f72a,_0x3b4cac){const _0x1836b0={...createBaseResourceProperties(_0x528e37),'workspaceId':_0x4f878a,'name':_0x39f72a,'parentProductCategoryId':_0x3b4cac};return createProductCategory(_0x1836b0);}__name(seedProductCategory,'seedProductCategory');const productCategoriesToSeed=[{'id':productCategoriesIds['electronicsId'],'name':'Electronics'},{'id':productCategoriesIds['laptopsId'],'name':'Laptops','parentId':productCategoriesIds['electronicsId']},{'id':productCategoriesIds['phonesId'],'name':'Mobile\x20Phones','parentId':productCategoriesIds['electronicsId']},{'id':productCategoriesIds['accessoriesId'],'name':'Laptop\x20Accessories','parentId':productCategoriesIds['laptopsId']}],productsToSeed=[{'id':productIds['smartphoneId'],'name':'Smartphone','description':'High-end\x20smartphone\x20with\x20advanced\x20features.','categoryId':productCategoriesIds['phonesId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':999.99,'status':productStatuses['published'],'notes':'Rechargeable\x20battery\x20with\x2020\x20hours\x20of\x20usage.'},{'id':productIds['gamingLaptopId'],'name':'Gaming\x20Laptop','description':'Powerful\x20laptop\x20with\x20high-performance\x20hardware.','categoryId':productCategoriesIds['laptopsId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':0x3e8,'status':productStatuses['private'],'notes':'Battery\x20life\x20up\x20to\x208\x20hours,\x20depending\x20on\x20usage.'},{'id':productIds['smartTvId'],'name':'Smart\x20TV','description':'Smart\x20TV\x20with\x204K\x20resolution','categoryId':productCategoriesIds['electronicsId'],'storeId':storeIds['techStoreId'],'freight':![],'price':4999.99,'status':productStatuses['published'],'notes':'Streaming\x20capabilities'},{'id':productIds['wirelessHeadphonesId'],'name':'Wireless\x20Headphones','description':'High-quality\x20wireless\x20headphones\x20with\x20noise\x20cancellation.','categoryId':productCategoriesIds['electronicsId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':0x7d0,'status':productStatuses['draft'],'notes':'Compatible\x20with\x20all\x20Bluetooth-enabled\x20devices.'}];
9
9
 
10
10
  export { productCategoriesIds, productIds, seedProducts };
@@ -2,6 +2,6 @@
2
2
  import { resourceNames } from '../../../../fd-toolbox/resources/resource-names.js';
3
3
  import { createResource } from '../../../meta/server/resources/crud-resources.js';
4
4
 
5
- var __defProp=Object['defineProperty'],__name=(_0x522ac5,_0x2dd6db)=>__defProp(_0x522ac5,'name',{'value':_0x2dd6db,'configurable':!![]});function createProductMedia(_0x293601){return createResource(_0x293601,resourceNames['productMedia']);}__name(createProductMedia,'createProductMedia');
5
+ var __defProp=Object['defineProperty'],__name=(_0x14dde1,_0x4a6725)=>__defProp(_0x14dde1,'name',{'value':_0x4a6725,'configurable':!![]});function createProductMedia(_0x627271){return createResource(_0x627271,resourceNames['productMedia']);}__name(createProductMedia,'createProductMedia');
6
6
 
7
7
  export { createProductMedia };
@@ -4,6 +4,6 @@ import { createProductMedia } from './product-media-db.js';
4
4
  import { createBaseResourceProperties } from '../../utils/base-resource-properties.js';
5
5
  import { workspaceConstants } from '../../../../fd-toolbox/server/constants/workspace-constants.js';
6
6
 
7
- var __defProp=Object['defineProperty'],__name=(_0x376fed,_0x3e1466)=>__defProp(_0x376fed,'name',{'value':_0x3e1466,'configurable':!![]});const productMediaIds={'landscapeId':'c47034b5-b6f5-5a10-9a77-6c0210df2674','cookieId':'1e8f9d44-4efe-5870-aa0e-b0887f6c5748','laptopId':'d26f02f3-7874-50aa-b277-c5a2470f0dd7'};async function seedProductMedias(){await seedLandscape(),await seedCookie(),await seedLaptop();}__name(seedProductMedias,'seedProductMedias');async function seedProductMedia(_0x248867,_0x53cd2f,_0x3955ee,_0x537052,_0x2a8453){const _0x1fb506={...createBaseResourceProperties(_0x248867),'workspaceId':_0x3955ee,'productId':_0x53cd2f,'imageUrl':_0x537052,'videoUrl':_0x2a8453};return createProductMedia(_0x1fb506);}__name(seedProductMedia,'seedProductMedia');async function seedLandscape(){await seedProductMedia(productMediaIds['landscapeId'],productIds['smartphoneId'],workspaceConstants['defaultWorkspaceId'],'/images/test/photo-1519681393784-d120267933ba.jpg');}__name(seedLandscape,'seedLandscape');async function seedCookie(){await seedProductMedia(productMediaIds['cookieId'],productIds['smartTvId'],workspaceConstants['defaultWorkspaceId'],'/images/test/photo-1499636136210-6f4ee915583e.jpg');}__name(seedCookie,'seedCookie');async function seedLaptop(){await seedProductMedia(productMediaIds['laptopId'],productIds['wirelessHeadphonesId'],workspaceConstants['defaultWorkspaceId'],'/images/test/photo-1460925895917-afdab827c52f.jpg');}__name(seedLaptop,'seedLaptop');
7
+ var __defProp=Object['defineProperty'],__name=(_0x5232b8,_0x288584)=>__defProp(_0x5232b8,'name',{'value':_0x288584,'configurable':!![]});const productMediaIds={'landscapeId':'c47034b5-b6f5-5a10-9a77-6c0210df2674','cookieId':'1e8f9d44-4efe-5870-aa0e-b0887f6c5748','laptopId':'d26f02f3-7874-50aa-b277-c5a2470f0dd7'};async function seedProductMedias(){await seedLandscape(),await seedCookie(),await seedLaptop();}__name(seedProductMedias,'seedProductMedias');async function seedProductMedia(_0x5a46a3,_0x54ab4a,_0x45ff1d,_0x4b0690,_0x57bf09){const _0x584225={...createBaseResourceProperties(_0x5a46a3),'workspaceId':_0x45ff1d,'productId':_0x54ab4a,'imageUrl':_0x4b0690,'videoUrl':_0x57bf09};return createProductMedia(_0x584225);}__name(seedProductMedia,'seedProductMedia');async function seedLandscape(){await seedProductMedia(productMediaIds['landscapeId'],productIds['smartphoneId'],workspaceConstants['defaultWorkspaceId'],'/images/test/photo-1519681393784-d120267933ba.jpg');}__name(seedLandscape,'seedLandscape');async function seedCookie(){await seedProductMedia(productMediaIds['cookieId'],productIds['smartTvId'],workspaceConstants['defaultWorkspaceId'],'/images/test/photo-1499636136210-6f4ee915583e.jpg');}__name(seedCookie,'seedCookie');async function seedLaptop(){await seedProductMedia(productMediaIds['laptopId'],productIds['wirelessHeadphonesId'],workspaceConstants['defaultWorkspaceId'],'/images/test/photo-1460925895917-afdab827c52f.jpg');}__name(seedLaptop,'seedLaptop');
8
8
 
9
9
  export { productMediaIds, seedProductMedias };
@@ -3,6 +3,6 @@ import { createBaseResourceProperties } from '../../utils/base-resource-properti
3
3
  import { workspaceConstants } from '../../../../fd-toolbox/server/constants/workspace-constants.js';
4
4
  import { getNewUuid } from '../../../../fd-toolbox/uuids.js';
5
5
 
6
- var __defProp=Object['defineProperty'],__name=(_0xccb0f3,_0x5a499a)=>__defProp(_0xccb0f3,'name',{'value':_0x5a499a,'configurable':!![]});function getAllProductParameters(_0x5b5276){const _0x444f5c=[getLengthParameterProduct(_0x5b5276),getWidthParameterProduct(_0x5b5276),getThicknessParameterProduct(_0x5b5276),getAngleParameterProduct(_0x5b5276)];return _0x444f5c;}__name(getAllProductParameters,'getAllProductParameters');function getLengthParameterProduct(_0x1559f9){return {...createBaseResourceProperties(getNewUuid()),'productId':_0x1559f9,'externalId':'ext_101','name':'length','minValue':0xa,'maxValue':0x64,'defaultValue':0x32,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getLengthParameterProduct,'getLengthParameterProduct');function getWidthParameterProduct(_0x693387){return {...createBaseResourceProperties(getNewUuid()),'productId':_0x693387,'externalId':'ext_102','name':'width','minValue':0x5,'maxValue':0x32,'defaultValue':0x19,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getWidthParameterProduct,'getWidthParameterProduct');function getThicknessParameterProduct(_0x459619){return {...createBaseResourceProperties(getNewUuid()),'productId':_0x459619,'externalId':'ext_103','name':'thickness','minValue':0x1,'maxValue':0xc8,'defaultValue':0x64,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getThicknessParameterProduct,'getThicknessParameterProduct');function getAngleParameterProduct(_0x71d8c4){return {...createBaseResourceProperties(getNewUuid()),'productId':_0x71d8c4,'externalId':'ext_104','name':'angle','minValue':0x0,'maxValue':0x168,'defaultValue':0x0,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getAngleParameterProduct,'getAngleParameterProduct');
6
+ var __defProp=Object['defineProperty'],__name=(_0x4a7e28,_0x27c25b)=>__defProp(_0x4a7e28,'name',{'value':_0x27c25b,'configurable':!![]});function getAllProductParameters(_0x4d0326){const _0x31679a=[getLengthParameterProduct(_0x4d0326),getWidthParameterProduct(_0x4d0326),getThicknessParameterProduct(_0x4d0326),getAngleParameterProduct(_0x4d0326)];return _0x31679a;}__name(getAllProductParameters,'getAllProductParameters');function getLengthParameterProduct(_0x17e912){return {...createBaseResourceProperties(getNewUuid()),'productId':_0x17e912,'externalId':'ext_101','name':'length','minValue':0xa,'maxValue':0x64,'defaultValue':0x32,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getLengthParameterProduct,'getLengthParameterProduct');function getWidthParameterProduct(_0xceaaf0){return {...createBaseResourceProperties(getNewUuid()),'productId':_0xceaaf0,'externalId':'ext_102','name':'width','minValue':0x5,'maxValue':0x32,'defaultValue':0x19,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getWidthParameterProduct,'getWidthParameterProduct');function getThicknessParameterProduct(_0xd0dc79){return {...createBaseResourceProperties(getNewUuid()),'productId':_0xd0dc79,'externalId':'ext_103','name':'thickness','minValue':0x1,'maxValue':0xc8,'defaultValue':0x64,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getThicknessParameterProduct,'getThicknessParameterProduct');function getAngleParameterProduct(_0x2c07e8){return {...createBaseResourceProperties(getNewUuid()),'productId':_0x2c07e8,'externalId':'ext_104','name':'angle','minValue':0x0,'maxValue':0x168,'defaultValue':0x0,'step':0xa,'unit':0x0,'type':0x0,'workspaceId':workspaceConstants['defaultWorkspaceId']};}__name(getAngleParameterProduct,'getAngleParameterProduct');
7
7
 
8
8
  export { getAllProductParameters, getAngleParameterProduct, getLengthParameterProduct, getThicknessParameterProduct, getWidthParameterProduct };
@@ -3,6 +3,6 @@ import { getAllReportChartSeries } from './report-chart-series-mother.js';
3
3
  import { createResource } from '../../meta/server/resources/crud-resources.js';
4
4
  import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
5
5
 
6
- var __defProp=Object['defineProperty'],__name=(_0x3245ea,_0x319f50)=>__defProp(_0x3245ea,'name',{'value':_0x319f50,'configurable':!![]});async function seedReportChartSeries(){const _0x1f682b=await getAllReportChartSeries();for(const _0x2b683d of _0x1f682b){await createResource(_0x2b683d,resourceNames['reportChartSeries']);}}__name(seedReportChartSeries,'seedReportChartSeries');
6
+ var __defProp=Object['defineProperty'],__name=(_0x173e30,_0x5d812a)=>__defProp(_0x173e30,'name',{'value':_0x5d812a,'configurable':!![]});async function seedReportChartSeries(){const _0x43849a=await getAllReportChartSeries();for(const _0x5cfd72 of _0x43849a){await createResource(_0x5cfd72,resourceNames['reportChartSeries']);}}__name(seedReportChartSeries,'seedReportChartSeries');
7
7
 
8
8
  export { seedReportChartSeries };
@@ -5,6 +5,6 @@ import { dealProps } from '../../common/demo/props/deal-props.js';
5
5
  import { capitalizeFirstLetter } from '../../../fd-toolbox/strings/casing-converter.js';
6
6
  import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
7
7
 
8
- var __defProp=Object['defineProperty'],__name=(_0x2eaf34,_0x5caf37)=>__defProp(_0x2eaf34,'name',{'value':_0x5caf37,'configurable':!![]});const reportChartSeriesIds={'salesDevicesByTypeSeries':'a1b2c3d4-e5f6-4789-a1b2-c3d4e5f67890','devicesTypeSmartphones':'b2c3d4e5-f6a7-4890-b2c3-d4e5f6a78901','bestDevicesTypeSmartphones':'a7b8c9d0-e1f2-4345-a7b8-c9d0e1f23456','bestDevicesTypeLaptops':'b8c9d0e1-f2a3-4456-b8c9-d0e1f2a34567','bestDevicesTypeTablets':'c9d0e1f2-a3b4-4567-c9d0-e1f2a3b45678','systemDevicesAndroid':'d0e1f2a3-b4c5-4678-d0e1-f2a3b4c56789','systemDevicesIos':'e1f2a3b4-c5d6-4789-e1f2-a3b4c5d67890','devicesSalesOnline':'f2a3b4c5-d6e7-4890-f2a3-b4c5d6e78901','devicesSalesStore':'a3b4c5d6-e7f8-4901-a3b4-c5d6e7f89012','popularDevicesFlagship':'b4c5d6e7-f8a9-4012-b4c5-d6e7f8a90123','popularDevicesMidrange':'c5d6e7f8-a9b0-4123-c5d6-e7f8a9b01234','popularDevicesBudget':'d6e7f8a9-b0c1-4234-d6e7-f8a9b0c12345','deal':'84ab658d-3ffc-4883-a383-5cfb9aebd518'};async function getAllReportChartSeries(){return [...createReportChartSeries1(),...createReportChartSeries2(),...createReportChartSeries3(),...createReportChartSeries4(),...createReportChartSeries5(),...createReportChartSeries6(),...createReportChartSeries7()];}__name(getAllReportChartSeries,'getAllReportChartSeries');function createReportChartSeries1(){const _0x4ab68f='Month',_0x4841ee='Sales';return [{...createBaseResourceProperties(reportChartSeriesIds['salesDevicesByTypeSeries']),'reportId':reportIds['report1'],'name':'Total\x20Sales','axisXPropertyName':'month','axisYPropertyName':'sales','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x4ab68f,'axisYLabel':_0x4841ee}];}__name(createReportChartSeries1,'createReportChartSeries1');function createReportChartSeries2(){const _0x34fe24='Category',_0x5c6af9='Sales';return [{...createBaseResourceProperties(reportChartSeriesIds['devicesTypeSmartphones']),'reportId':reportIds['report2'],'name':'Device\x20Sales','axisXPropertyName':'category','axisYPropertyName':'value','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x34fe24,'axisYLabel':_0x5c6af9}];}__name(createReportChartSeries2,'createReportChartSeries2');function createReportChartSeries3(){const _0x40b641='Month',_0x347b43='Units\x20Sold';return [{...createBaseResourceProperties(reportChartSeriesIds['bestDevicesTypeSmartphones']),'reportId':reportIds['report3'],'name':'Smartphones','axisXPropertyName':'month','axisYPropertyName':'smartphone','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x40b641,'axisYLabel':_0x347b43},{...createBaseResourceProperties(reportChartSeriesIds['bestDevicesTypeLaptops']),'reportId':reportIds['report3'],'name':'Laptops','axisXPropertyName':'month','axisYPropertyName':'laptops','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x40b641,'axisYLabel':_0x347b43},{...createBaseResourceProperties(reportChartSeriesIds['bestDevicesTypeTablets']),'reportId':reportIds['report3'],'name':'Tablets','axisXPropertyName':'month','axisYPropertyName':'tablets','axisYColor':'hsl(var(--chart-3))','axisXLabel':_0x40b641,'axisYLabel':_0x347b43}];}__name(createReportChartSeries3,'createReportChartSeries3');function createReportChartSeries4(){const _0x44645a='Month',_0x2fe250='Devices';return [{...createBaseResourceProperties(reportChartSeriesIds['systemDevicesAndroid']),'reportId':reportIds['report4'],'name':'Android','axisXPropertyName':'month','axisYPropertyName':'android','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x44645a,'axisYLabel':_0x2fe250},{...createBaseResourceProperties(reportChartSeriesIds['systemDevicesIos']),'reportId':reportIds['report4'],'name':'iOS','axisXPropertyName':'month','axisYPropertyName':'ios','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x44645a,'axisYLabel':_0x2fe250}];}__name(createReportChartSeries4,'createReportChartSeries4');function createReportChartSeries5(){const _0x2e3cb9='Month',_0x211fc9='Revenue';return [{...createBaseResourceProperties(reportChartSeriesIds['devicesSalesOnline']),'reportId':reportIds['report5'],'name':'Online\x20Sales','axisXPropertyName':'month','axisYPropertyName':'online','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x2e3cb9,'axisYLabel':_0x211fc9},{...createBaseResourceProperties(reportChartSeriesIds['devicesSalesStore']),'reportId':reportIds['report5'],'name':'Store\x20Sales','axisXPropertyName':'month','axisYPropertyName':'store','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x2e3cb9,'axisYLabel':_0x211fc9}];}__name(createReportChartSeries5,'createReportChartSeries5');function createReportChartSeries6(){const _0x32f1c2='Month',_0xe50f63='Popularity';return [{...createBaseResourceProperties(reportChartSeriesIds['popularDevicesFlagship']),'reportId':reportIds['report6'],'name':'Flagship\x20Phones','axisXPropertyName':'month','axisYPropertyName':'flagship','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x32f1c2,'axisYLabel':_0xe50f63},{...createBaseResourceProperties(reportChartSeriesIds['popularDevicesMidrange']),'reportId':reportIds['report6'],'name':'Mid-Range\x20Phones','axisXPropertyName':'month','axisYPropertyName':'midrange','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x32f1c2,'axisYLabel':_0xe50f63},{...createBaseResourceProperties(reportChartSeriesIds['popularDevicesBudget']),'reportId':reportIds['report6'],'name':'Budget\x20Phones','axisXPropertyName':'month','axisYPropertyName':'budget','axisYColor':'hsl(var(--chart-3))','axisXLabel':_0x32f1c2,'axisYLabel':_0xe50f63}];}__name(createReportChartSeries6,'createReportChartSeries6');function createReportChartSeries7(){const _0x483e7e=dealProps['stage'],_0x3e9905=dealProps['amount'],_0x23a7f0=capitalizeFirstLetter(_0x483e7e),_0x16dfbe=capitalizeFirstLetter(_0x3e9905);return [{...createBaseResourceProperties(reportChartSeriesIds['deal']),'reportId':reportIds['report13'],'name':resourceNames['deal'],'axisXPropertyName':_0x483e7e,'axisYPropertyName':_0x3e9905,'axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x23a7f0,'axisYLabel':_0x16dfbe}];}__name(createReportChartSeries7,'createReportChartSeries7');
8
+ var __defProp=Object['defineProperty'],__name=(_0x4eeec0,_0x54a69f)=>__defProp(_0x4eeec0,'name',{'value':_0x54a69f,'configurable':!![]});const reportChartSeriesIds={'salesDevicesByTypeSeries':'a1b2c3d4-e5f6-4789-a1b2-c3d4e5f67890','devicesTypeSmartphones':'b2c3d4e5-f6a7-4890-b2c3-d4e5f6a78901','bestDevicesTypeSmartphones':'a7b8c9d0-e1f2-4345-a7b8-c9d0e1f23456','bestDevicesTypeLaptops':'b8c9d0e1-f2a3-4456-b8c9-d0e1f2a34567','bestDevicesTypeTablets':'c9d0e1f2-a3b4-4567-c9d0-e1f2a3b45678','systemDevicesAndroid':'d0e1f2a3-b4c5-4678-d0e1-f2a3b4c56789','systemDevicesIos':'e1f2a3b4-c5d6-4789-e1f2-a3b4c5d67890','devicesSalesOnline':'f2a3b4c5-d6e7-4890-f2a3-b4c5d6e78901','devicesSalesStore':'a3b4c5d6-e7f8-4901-a3b4-c5d6e7f89012','popularDevicesFlagship':'b4c5d6e7-f8a9-4012-b4c5-d6e7f8a90123','popularDevicesMidrange':'c5d6e7f8-a9b0-4123-c5d6-e7f8a9b01234','popularDevicesBudget':'d6e7f8a9-b0c1-4234-d6e7-f8a9b0c12345','deal':'84ab658d-3ffc-4883-a383-5cfb9aebd518'};async function getAllReportChartSeries(){return [...createReportChartSeries1(),...createReportChartSeries2(),...createReportChartSeries3(),...createReportChartSeries4(),...createReportChartSeries5(),...createReportChartSeries6(),...createReportChartSeries7()];}__name(getAllReportChartSeries,'getAllReportChartSeries');function createReportChartSeries1(){const _0x155e70='Month',_0x293169='Sales';return [{...createBaseResourceProperties(reportChartSeriesIds['salesDevicesByTypeSeries']),'reportId':reportIds['report1'],'name':'Total\x20Sales','axisXPropertyName':'month','axisYPropertyName':'sales','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x155e70,'axisYLabel':_0x293169}];}__name(createReportChartSeries1,'createReportChartSeries1');function createReportChartSeries2(){const _0x4e979f='Category',_0x2a55b2='Sales';return [{...createBaseResourceProperties(reportChartSeriesIds['devicesTypeSmartphones']),'reportId':reportIds['report2'],'name':'Device\x20Sales','axisXPropertyName':'category','axisYPropertyName':'value','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x4e979f,'axisYLabel':_0x2a55b2}];}__name(createReportChartSeries2,'createReportChartSeries2');function createReportChartSeries3(){const _0x355ef9='Month',_0x299df7='Units\x20Sold';return [{...createBaseResourceProperties(reportChartSeriesIds['bestDevicesTypeSmartphones']),'reportId':reportIds['report3'],'name':'Smartphones','axisXPropertyName':'month','axisYPropertyName':'smartphone','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x355ef9,'axisYLabel':_0x299df7},{...createBaseResourceProperties(reportChartSeriesIds['bestDevicesTypeLaptops']),'reportId':reportIds['report3'],'name':'Laptops','axisXPropertyName':'month','axisYPropertyName':'laptops','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x355ef9,'axisYLabel':_0x299df7},{...createBaseResourceProperties(reportChartSeriesIds['bestDevicesTypeTablets']),'reportId':reportIds['report3'],'name':'Tablets','axisXPropertyName':'month','axisYPropertyName':'tablets','axisYColor':'hsl(var(--chart-3))','axisXLabel':_0x355ef9,'axisYLabel':_0x299df7}];}__name(createReportChartSeries3,'createReportChartSeries3');function createReportChartSeries4(){const _0x5c6f43='Month',_0x3d34e6='Devices';return [{...createBaseResourceProperties(reportChartSeriesIds['systemDevicesAndroid']),'reportId':reportIds['report4'],'name':'Android','axisXPropertyName':'month','axisYPropertyName':'android','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x5c6f43,'axisYLabel':_0x3d34e6},{...createBaseResourceProperties(reportChartSeriesIds['systemDevicesIos']),'reportId':reportIds['report4'],'name':'iOS','axisXPropertyName':'month','axisYPropertyName':'ios','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x5c6f43,'axisYLabel':_0x3d34e6}];}__name(createReportChartSeries4,'createReportChartSeries4');function createReportChartSeries5(){const _0x47704a='Month',_0x44bb91='Revenue';return [{...createBaseResourceProperties(reportChartSeriesIds['devicesSalesOnline']),'reportId':reportIds['report5'],'name':'Online\x20Sales','axisXPropertyName':'month','axisYPropertyName':'online','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x47704a,'axisYLabel':_0x44bb91},{...createBaseResourceProperties(reportChartSeriesIds['devicesSalesStore']),'reportId':reportIds['report5'],'name':'Store\x20Sales','axisXPropertyName':'month','axisYPropertyName':'store','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x47704a,'axisYLabel':_0x44bb91}];}__name(createReportChartSeries5,'createReportChartSeries5');function createReportChartSeries6(){const _0x1b3576='Month',_0x25f6b7='Popularity';return [{...createBaseResourceProperties(reportChartSeriesIds['popularDevicesFlagship']),'reportId':reportIds['report6'],'name':'Flagship\x20Phones','axisXPropertyName':'month','axisYPropertyName':'flagship','axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x1b3576,'axisYLabel':_0x25f6b7},{...createBaseResourceProperties(reportChartSeriesIds['popularDevicesMidrange']),'reportId':reportIds['report6'],'name':'Mid-Range\x20Phones','axisXPropertyName':'month','axisYPropertyName':'midrange','axisYColor':'hsl(var(--chart-2))','axisXLabel':_0x1b3576,'axisYLabel':_0x25f6b7},{...createBaseResourceProperties(reportChartSeriesIds['popularDevicesBudget']),'reportId':reportIds['report6'],'name':'Budget\x20Phones','axisXPropertyName':'month','axisYPropertyName':'budget','axisYColor':'hsl(var(--chart-3))','axisXLabel':_0x1b3576,'axisYLabel':_0x25f6b7}];}__name(createReportChartSeries6,'createReportChartSeries6');function createReportChartSeries7(){const _0x2f2881=dealProps['stage'],_0x106458=dealProps['amount'],_0x506d26=capitalizeFirstLetter(_0x2f2881),_0xb5a5ba=capitalizeFirstLetter(_0x106458);return [{...createBaseResourceProperties(reportChartSeriesIds['deal']),'reportId':reportIds['report13'],'name':resourceNames['deal'],'axisXPropertyName':_0x2f2881,'axisYPropertyName':_0x106458,'axisYColor':'hsl(var(--chart-1))','axisXLabel':_0x506d26,'axisYLabel':_0xb5a5ba}];}__name(createReportChartSeries7,'createReportChartSeries7');
9
9
 
10
10
  export { createReportChartSeries1, createReportChartSeries2, createReportChartSeries3, createReportChartSeries4, createReportChartSeries5, createReportChartSeries6, createReportChartSeries7, getAllReportChartSeries, reportChartSeriesIds };
@@ -2,6 +2,6 @@
2
2
  import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
3
3
  import { createResource } from '../../meta/server/resources/crud-resources.js';
4
4
 
5
- var __defProp=Object['defineProperty'],__name=(_0x3623d6,_0x595d30)=>__defProp(_0x3623d6,'name',{'value':_0x595d30,'configurable':!![]});function createReport(_0x57f4a1){return createResource(_0x57f4a1,resourceNames['report']);}__name(createReport,'createReport');
5
+ var __defProp=Object['defineProperty'],__name=(_0x459d8a,_0x1c93e6)=>__defProp(_0x459d8a,'name',{'value':_0x1c93e6,'configurable':!![]});function createReport(_0x519c91){return createResource(_0x519c91,resourceNames['report']);}__name(createReport,'createReport');
6
6
 
7
7
  export { createReport };
@@ -2,6 +2,6 @@
2
2
  import { createReport } from './report-db.js';
3
3
  import { getAllReports } from './report-mother.js';
4
4
 
5
- var __defProp=Object['defineProperty'],__name=(_0x2bf5a7,_0x5b8013)=>__defProp(_0x2bf5a7,'name',{'value':_0x5b8013,'configurable':!![]});async function seedReports(){const _0x4701da=getAllReports();for(const _0x14c9f4 of _0x4701da){await createReport(_0x14c9f4);}}__name(seedReports,'seedReports');
5
+ var __defProp=Object['defineProperty'],__name=(_0x1afd03,_0x3992c0)=>__defProp(_0x1afd03,'name',{'value':_0x3992c0,'configurable':!![]});async function seedReports(){const _0x2bf1eb=getAllReports();for(const _0x439caf of _0x2bf1eb){await createReport(_0x439caf);}}__name(seedReports,'seedReports');
6
6
 
7
7
  export { seedReports };
@@ -2,6 +2,6 @@
2
2
  import { createBaseResourceProperties } from '../utils/base-resource-properties.js';
3
3
  import { chartTypes, reportTypes } from '../../fd-app-toolbox/reports/report-enums.js';
4
4
 
5
- var __defProp=Object['defineProperty'],__name=(_0x421a15,_0x14b09f)=>__defProp(_0x421a15,'name',{'value':_0x14b09f,'configurable':!![]});const reportIds={'report1':'ddb5f0d4-f4a6-42af-a785-d43d2717cfa5','report2':'3004fa18-e70e-495a-86ec-8bfc8a20b42f','report3':'743c436d-713e-4af2-b23c-97102bae8192','report4':'ff78a693-57d7-4294-88c9-3a9451582946','report5':'58f57e60-e3a4-407d-a256-3ca7b8dcd005','report6':'d89e12b6-4ac3-4a72-8c71-6e19a9316022','report7':'9f2c7107-5825-4f9d-94c6-d5b1f5690a72','report8':'e4b379b8-8f71-493d-a9e3-6d8c4af6c5e2','report9':'ac9d60c5-9f38-4b4b-b4a1-f34f965927de','report10':'33fa1d5b-b4d8-4f65-882b-1e23c4b7396a','report11':'6b1d6c73-05e8-4eaf-b4b7-c8f7236b9af1','report12':'0e1d6c73-05e8-4eaf-b4b7-c8f7236b9af2','report13':'0e1d6c73-05e8-4eaf-b4b7-c8f7236b9af3'};function getAllReports(){return [createReport1(),createReport2(),createReport3(),createReport4(),createReport5(),createReport6(),createReport7(),createReport8(),createReport9(),createReport10(),createReport11(),createReport13(),createReport12()];}__name(getAllReports,'getAllReports');function createReport1(){return {...createBaseResourceProperties(reportIds['report1']),'name':'Sales\x20devices\x20by\x20type','description':'Different\x20types\x20of\x20device','type':reportTypes['chart'],'chartType':chartTypes['area']};}__name(createReport1,'createReport1');function createReport2(){return {...createBaseResourceProperties(reportIds['report2']),'name':'Top\x205\x20devices\x20type','description':'This\x20stats\x20for\x20device\x20from\x20june\x20to\x20august','type':reportTypes['chart'],'chartType':chartTypes['pie']};}__name(createReport2,'createReport2');function createReport3(){return {...createBaseResourceProperties(reportIds['report3']),'name':'Best\x20devices\x20type','description':'Stats\x20for\x20fall','type':reportTypes['chart'],'chartType':chartTypes['bar']};}__name(createReport3,'createReport3');function createReport4(){return {...createBaseResourceProperties(reportIds['report4']),'name':'Android/IOS\x20devices','description':'Number\x20of\x20android/IOS\x20devices\x20in\x202024','type':reportTypes['chart'],'chartType':chartTypes['barStacked']};}__name(createReport4,'createReport4');function createReport5(){return {...createBaseResourceProperties(reportIds['report5']),'name':'Devices\x20sales','description':'This\x20spring\x27s\x20sales','type':reportTypes['chart'],'chartType':chartTypes['barMixed']};}__name(createReport5,'createReport5');function createReport6(){return {...createBaseResourceProperties(reportIds['report6']),'name':'Top\x20popular\x20devices\x20by\x20type','description':'Best\x20of\x203','type':reportTypes['chart'],'chartType':chartTypes['line']};}__name(createReport6,'createReport6');function createReport7(){return {...createBaseResourceProperties(reportIds['report7']),'name':'Total\x20Revenue','description':'+20.1%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport7,'createReport7');function createReport8(){return {...createBaseResourceProperties(reportIds['report8']),'name':'Subscriptions','description':'+15.8%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport8,'createReport8');function createReport9(){return {...createBaseResourceProperties(reportIds['report9']),'name':'Sales','description':'+8.3%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport9,'createReport9');function createReport10(){return {...createBaseResourceProperties(reportIds['report10']),'name':'Orders','description':'+12.3%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport10,'createReport10');function createReport11(){return {...createBaseResourceProperties(reportIds['report11']),'name':'Active\x20Now','description':'+203\x20since\x20last\x20hour','type':reportTypes['number']};}__name(createReport11,'createReport11');function createReport12(){return {...createBaseResourceProperties(reportIds['report12']),'name':'Deals\x20by\x20Stage','description':'Total\x20amount\x20by\x20stage','type':reportTypes['number']};}__name(createReport12,'createReport12');function createReport13(){return {...createBaseResourceProperties(reportIds['report13']),'name':'Deal\x20stage','description':'(Sum)\x20Amount','type':reportTypes['chart'],'chartType':chartTypes['barStacked']};}__name(createReport13,'createReport13');
5
+ var __defProp=Object['defineProperty'],__name=(_0x3ae806,_0x3016c5)=>__defProp(_0x3ae806,'name',{'value':_0x3016c5,'configurable':!![]});const reportIds={'report1':'ddb5f0d4-f4a6-42af-a785-d43d2717cfa5','report2':'3004fa18-e70e-495a-86ec-8bfc8a20b42f','report3':'743c436d-713e-4af2-b23c-97102bae8192','report4':'ff78a693-57d7-4294-88c9-3a9451582946','report5':'58f57e60-e3a4-407d-a256-3ca7b8dcd005','report6':'d89e12b6-4ac3-4a72-8c71-6e19a9316022','report7':'9f2c7107-5825-4f9d-94c6-d5b1f5690a72','report8':'e4b379b8-8f71-493d-a9e3-6d8c4af6c5e2','report9':'ac9d60c5-9f38-4b4b-b4a1-f34f965927de','report10':'33fa1d5b-b4d8-4f65-882b-1e23c4b7396a','report11':'6b1d6c73-05e8-4eaf-b4b7-c8f7236b9af1','report12':'0e1d6c73-05e8-4eaf-b4b7-c8f7236b9af2','report13':'0e1d6c73-05e8-4eaf-b4b7-c8f7236b9af3'};function getAllReports(){return [createReport1(),createReport2(),createReport3(),createReport4(),createReport5(),createReport6(),createReport7(),createReport8(),createReport9(),createReport10(),createReport11(),createReport13(),createReport12()];}__name(getAllReports,'getAllReports');function createReport1(){return {...createBaseResourceProperties(reportIds['report1']),'name':'Sales\x20devices\x20by\x20type','description':'Different\x20types\x20of\x20device','type':reportTypes['chart'],'chartType':chartTypes['area']};}__name(createReport1,'createReport1');function createReport2(){return {...createBaseResourceProperties(reportIds['report2']),'name':'Top\x205\x20devices\x20type','description':'This\x20stats\x20for\x20device\x20from\x20june\x20to\x20august','type':reportTypes['chart'],'chartType':chartTypes['pie']};}__name(createReport2,'createReport2');function createReport3(){return {...createBaseResourceProperties(reportIds['report3']),'name':'Best\x20devices\x20type','description':'Stats\x20for\x20fall','type':reportTypes['chart'],'chartType':chartTypes['bar']};}__name(createReport3,'createReport3');function createReport4(){return {...createBaseResourceProperties(reportIds['report4']),'name':'Android/IOS\x20devices','description':'Number\x20of\x20android/IOS\x20devices\x20in\x202024','type':reportTypes['chart'],'chartType':chartTypes['barStacked']};}__name(createReport4,'createReport4');function createReport5(){return {...createBaseResourceProperties(reportIds['report5']),'name':'Devices\x20sales','description':'This\x20spring\x27s\x20sales','type':reportTypes['chart'],'chartType':chartTypes['barMixed']};}__name(createReport5,'createReport5');function createReport6(){return {...createBaseResourceProperties(reportIds['report6']),'name':'Top\x20popular\x20devices\x20by\x20type','description':'Best\x20of\x203','type':reportTypes['chart'],'chartType':chartTypes['line']};}__name(createReport6,'createReport6');function createReport7(){return {...createBaseResourceProperties(reportIds['report7']),'name':'Total\x20Revenue','description':'+20.1%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport7,'createReport7');function createReport8(){return {...createBaseResourceProperties(reportIds['report8']),'name':'Subscriptions','description':'+15.8%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport8,'createReport8');function createReport9(){return {...createBaseResourceProperties(reportIds['report9']),'name':'Sales','description':'+8.3%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport9,'createReport9');function createReport10(){return {...createBaseResourceProperties(reportIds['report10']),'name':'Orders','description':'+12.3%\x20from\x20last\x20month','type':reportTypes['number']};}__name(createReport10,'createReport10');function createReport11(){return {...createBaseResourceProperties(reportIds['report11']),'name':'Active\x20Now','description':'+203\x20since\x20last\x20hour','type':reportTypes['number']};}__name(createReport11,'createReport11');function createReport12(){return {...createBaseResourceProperties(reportIds['report12']),'name':'Deals\x20by\x20Stage','description':'Total\x20amount\x20by\x20stage','type':reportTypes['number']};}__name(createReport12,'createReport12');function createReport13(){return {...createBaseResourceProperties(reportIds['report13']),'name':'Deal\x20stage','description':'(Sum)\x20Amount','type':reportTypes['chart'],'chartType':chartTypes['barStacked']};}__name(createReport13,'createReport13');
6
6
 
7
7
  export { createReport1, createReport10, createReport11, createReport12, createReport13, createReport2, createReport3, createReport4, createReport5, createReport6, createReport7, createReport8, createReport9, getAllReports, reportIds };
@@ -12,6 +12,6 @@ import { calculateTotalPropertyValue } from '../../../fd-toolbox/property/calcul
12
12
  import { isNullOrUndefined } from '../../../fd-toolbox/functions/value-checking-functions.js';
13
13
  import { getResourceMeta } from '../../meta/server/services/metas.js';
14
14
 
15
- var __defProp=Object['defineProperty'],__name=(_0x5393a3,_0x1ce04f)=>__defProp(_0x5393a3,'name',{'value':_0x1ce04f,'configurable':!![]});async function getOne(_0x3a6e2e){const _0xea5336=await getUserId(),_0x2fa71d=getODataBuilder(),_0x4fada4=_0x2fa71d['expand'](reportProps['reportChartSeriesList'])['build']();let _0x5745b2=await tryGetResourceById(resourceNames['report'],_0x3a6e2e,_0xea5336,![],_0x4fada4);if(!isNullOrUndefined(_0x5745b2))return getDashboardReportData(_0x3a6e2e,_0x5745b2);return void(-0x833*0x1+-0x1f*-0x123+0x1*-0x1b0a);}__name(getOne,'getOne');async function createBigDigitReport(_0x5e26d3,_0x38a4d1,_0x3c4faa){const _0x206aaa=await getResourcesByName(_0x38a4d1),_0x504104=calculateTotalPropertyValue(_0x206aaa,_0x3c4faa);return {'id':_0x5e26d3['id'],'report':_0x5e26d3,'data':['$'+_0x504104]};}__name(createBigDigitReport,'createBigDigitReport');async function getDealDashboard(){const _0x3076eb=await getResourcesByName(resourceNames['deal']),_0xe8f0b2=await getResourceMeta(resourceNames['deal']),_0x430030=_0xe8f0b2['properties'][dealProps['stage']],_0x5eec2e=new Map(),_0x21d0f5=_0x430030['enumerationValues']??[],_0x5cf5da=_0x430030['enumerationDisplayName']??[];for(let _0x548cb6=-0x302*-0x5+0xa68+-0x1972;_0x548cb6<_0x21d0f5['length'];_0x548cb6++){_0x5eec2e['set'](_0x21d0f5[_0x548cb6],_0x5cf5da[_0x548cb6]);}const _0x3a27e5=_0x3076eb['reduce']((_0x3d171b,_0x15f143)=>{if(isNullOrUndefined(_0x15f143['stage']))return _0x3d171b;const _0x23bd3d=_0x15f143['amount']??-0x5f9*-0x6+0x1b*0x15f+-0x3*0x1849,_0x5bc1b7=_0x3d171b['get'](_0x15f143['stage'])??-0x1*0x22c6+0x1*0x1298+0x26*0x6d;return _0x3d171b['set'](_0x15f143['stage'],_0x5bc1b7+_0x23bd3d),_0x3d171b;},new Map());return Array['from'](_0x3a27e5,([_0x3a1dc4,_0x4ac26c])=>({'stage':_0x5eec2e['get'](_0x3a1dc4)??_0x3a1dc4,'amount':_0x4ac26c}));}__name(getDealDashboard,'getDealDashboard');async function getDashboardReportData(_0x8a743c,_0x5e801b){let _0x1056a1;switch(_0x8a743c){case reportIds['report1']:_0x1056a1=reportData1;break;case reportIds['report2']:_0x1056a1=reportData2;break;case reportIds['report3']:_0x1056a1=reportData3;break;case reportIds['report4']:_0x1056a1=reportData4;break;case reportIds['report5']:_0x1056a1=reportData5;break;case reportIds['report6']:_0x1056a1=reportData6;break;case reportIds['report7']:_0x1056a1=reportData7;break;case reportIds['report8']:_0x1056a1=reportData8;break;case reportIds['report9']:_0x1056a1=reportData9;break;case reportIds['report10']:_0x1056a1=reportData10;break;case reportIds['report11']:_0x1056a1=reportData11;break;case reportIds['report12']:return createBigDigitReport(_0x5e801b,resourceNames['deal'],dealProps['amount']);case reportIds['report13']:_0x1056a1=await getDealDashboard();break;default:return void(-0x1b98+0x10f*0x1b+0x17*-0xb);}if(_0x1056a1)return {'id':_0x8a743c,'report':_0x5e801b,'data':_0x1056a1};return void(0xaf8+-0x1183*-0x1+0x17*-0x13d);}__name(getDashboardReportData,'getDashboardReportData');
15
+ var __defProp=Object['defineProperty'],__name=(_0x59e840,_0x3c3e06)=>__defProp(_0x59e840,'name',{'value':_0x3c3e06,'configurable':!![]});async function getOne(_0x34fb3f){const _0x9e5b74=await getUserId(),_0x4fbe93=getODataBuilder(),_0x8cffbc=_0x4fbe93['expand'](reportProps['reportChartSeriesList'])['build']();let _0x478127=await tryGetResourceById(resourceNames['report'],_0x34fb3f,_0x9e5b74,![],_0x8cffbc);if(!isNullOrUndefined(_0x478127))return getDashboardReportData(_0x34fb3f,_0x478127);return void(0xb*-0x1a0+-0x93a+0x1b1a);}__name(getOne,'getOne');async function createBigDigitReport(_0xac1785,_0x952635,_0xdc5ffb){const _0x3dc705=await getResourcesByName(_0x952635),_0x3fbccb=calculateTotalPropertyValue(_0x3dc705,_0xdc5ffb);return {'id':_0xac1785['id'],'report':_0xac1785,'data':['$'+_0x3fbccb]};}__name(createBigDigitReport,'createBigDigitReport');async function getDealDashboard(){const _0x1d9dfa=await getResourcesByName(resourceNames['deal']),_0x4ae2d0=await getResourceMeta(resourceNames['deal']),_0x5adbce=_0x4ae2d0['properties'][dealProps['stage']],_0x5b8a3d=new Map(),_0x3fb7e5=_0x5adbce['enumerationValues']??[],_0x45ed99=_0x5adbce['enumerationDisplayName']??[];for(let _0x3becdb=-0x21b7+-0xc5*-0xd+0x17b6;_0x3becdb<_0x3fb7e5['length'];_0x3becdb++){_0x5b8a3d['set'](_0x3fb7e5[_0x3becdb],_0x45ed99[_0x3becdb]);}const _0xc1c81e=_0x1d9dfa['reduce']((_0x4ae8fc,_0x4c8fe4)=>{if(isNullOrUndefined(_0x4c8fe4['stage']))return _0x4ae8fc;const _0x473ab0=_0x4c8fe4['amount']??-0x296*0x8+0x1b60+-0x6b0,_0x53db33=_0x4ae8fc['get'](_0x4c8fe4['stage'])??0xb32+0x1ef8*0x1+-0x2a2a;return _0x4ae8fc['set'](_0x4c8fe4['stage'],_0x53db33+_0x473ab0),_0x4ae8fc;},new Map());return Array['from'](_0xc1c81e,([_0x2c5b08,_0x49f59f])=>({'stage':_0x5b8a3d['get'](_0x2c5b08)??_0x2c5b08,'amount':_0x49f59f}));}__name(getDealDashboard,'getDealDashboard');async function getDashboardReportData(_0xcf26d2,_0x4e6304){let _0x3c81a2;switch(_0xcf26d2){case reportIds['report1']:_0x3c81a2=reportData1;break;case reportIds['report2']:_0x3c81a2=reportData2;break;case reportIds['report3']:_0x3c81a2=reportData3;break;case reportIds['report4']:_0x3c81a2=reportData4;break;case reportIds['report5']:_0x3c81a2=reportData5;break;case reportIds['report6']:_0x3c81a2=reportData6;break;case reportIds['report7']:_0x3c81a2=reportData7;break;case reportIds['report8']:_0x3c81a2=reportData8;break;case reportIds['report9']:_0x3c81a2=reportData9;break;case reportIds['report10']:_0x3c81a2=reportData10;break;case reportIds['report11']:_0x3c81a2=reportData11;break;case reportIds['report12']:return createBigDigitReport(_0x4e6304,resourceNames['deal'],dealProps['amount']);case reportIds['report13']:_0x3c81a2=await getDealDashboard();break;default:return void(0x67a+0x1f57*-0x1+0x18dd);}if(_0x3c81a2)return {'id':_0xcf26d2,'report':_0x4e6304,'data':_0x3c81a2};return void(0x608+0x21bc*0x1+-0x27c4);}__name(getDashboardReportData,'getDashboardReportData');
16
16
 
17
17
  export { getOne };
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
  import { searchResultParams } from '../../../fd-toolbox/constants/search-result-constants.js';
3
- import { getSearchableResourceResult, getSearchScreensResult } from './search-result.js';
3
+ import { getSearchableResourceResults, getSearchScreensResult } from './search-result.js';
4
4
  import { httpApiWrapper } from '../../meta/server/web/http-api-wrapper.js';
5
5
  import { apiOkResponse } from '../../meta/server/web/responses.js';
6
6
  import { isPromiseFulfilled } from '../../../fd-toolbox/lib/utils.js';
7
7
 
8
- const getSearchResultRoute=httpApiWrapper(async _0x28c7a4=>{const _0x317e04=new URL(_0x28c7a4['url']),_0x3f9f9d=_0x317e04['searchParams']['get'](searchResultParams['querySearch'])??'',_0x3ff511=_0x317e04['searchParams']['get'](searchResultParams['filterSearch']),_0x81959c=_0x3ff511?_0x3ff511['split'](','):[],_0x524f36=getSearchableResourceResult(_0x3f9f9d,_0x81959c),_0x58ab16=getSearchScreensResult(_0x3f9f9d,_0x81959c),[_0x449d75,_0x27ae77]=await Promise['allSettled']([_0x524f36,_0x58ab16]);return apiOkResponse({'searchableResources':isPromiseFulfilled(_0x449d75)?_0x449d75['value']:[],'screens':isPromiseFulfilled(_0x27ae77)?_0x27ae77['value']:[]});});
8
+ const getSearchResultRoute=httpApiWrapper(async _0xf7b99b=>{const _0x804c93=new URL(_0xf7b99b['url']),_0x591b1d=_0x804c93['searchParams']['get'](searchResultParams['querySearch'])??'',_0x28bdbf=_0x804c93['searchParams']['get'](searchResultParams['filterSearch']),_0x3fc677=_0x28bdbf?_0x28bdbf['split'](','):[],_0x5858c6=getSearchableResourceResults(_0x591b1d,_0x3fc677),_0x341884=getSearchScreensResult(_0x591b1d,_0x3fc677),[_0x414faf,_0x271a57]=await Promise['allSettled']([_0x5858c6,_0x341884]);return apiOkResponse({'searchableResources':isPromiseFulfilled(_0x414faf)?_0x414faf['value']:[],'screens':isPromiseFulfilled(_0x271a57)?_0x271a57['value']:[]});});
9
9
 
10
10
  export { getSearchResultRoute };
@@ -1,3 +1,3 @@
1
1
  import { ScreensResult } from "../../fd-app-toolbox/models/screens-result";
2
- export declare function getSearchableResourceResult(querySearch: string, filterSearch: string[]): Promise<import("../../../../lib/package").GroupedResourceSearchResult[]>;
2
+ export declare function getSearchableResourceResults(querySearch: string, filterSearch: string[]): Promise<import("../../../../lib/package").GroupedResourceSearchResult[]>;
3
3
  export declare function getSearchScreensResult(querySearch: string, filterSearch: string[]): Promise<ScreensResult[]>;
@@ -7,6 +7,6 @@ import { getResourceListUrl } from '../../meta/services/meta-navigations.js';
7
7
  import { getUserPermissions, hasPermission } from '../../meta/server/permission/permission-checker.js';
8
8
  import { crudActions } from '../../../fd-toolbox/enums/enums.js';
9
9
 
10
- var __defProp=Object['defineProperty'],__name=(_0x35eeff,_0x5886c6)=>__defProp(_0x35eeff,'name',{'value':_0x5886c6,'configurable':!![]});async function getSearchableResourceResult(_0x43c5f0,_0x348a9a){const _0x2bdf76=_0x348a9a['filter'](_0x559c54=>_0x559c54!==searchableFilters['screens']);if(_0x2bdf76['length']===0x1652+0xb96+-0x21e8)return [];return searchAcrossResources(_0x43c5f0,_0x2bdf76);}__name(getSearchableResourceResult,'getSearchableResourceResult');async function getSearchScreensResult(_0x3c6231,_0x342f45){const _0x52e2ed=[];if(_0x342f45['includes'](searchableFilters['screens'])){const _0x5e0459=await getUserId(),_0x1f3f72=await getUserPermissions(_0x5e0459),_0x2937b6=_0x1f3f72['resourcePermissions'];if(_0x2937b6)for(const _0x256613 of Object['values'](_0x2937b6)){_0x256613['type']===permissionTypes['resource']&&(!_0x256613['resourceId']||await hasPermission(_0x256613['resourceName'],crudActions['view'],_0x5e0459))&&isPermissionMatchingQuery(_0x256613,_0x3c6231)&&_0x52e2ed['push']({'resourceName':_0x256613['resourceName'],'displayName':_0x256613['displayName'],'resourceListUrl':getResourceListUrl(_0x256613['resourceName'])});}}return _0x52e2ed;}__name(getSearchScreensResult,'getSearchScreensResult');function isPermissionMatchingQuery(_0x129442,_0x4697eb){return _0x129442['displayName']['toLowerCase']()['startsWith'](_0x4697eb['toLowerCase']());}__name(isPermissionMatchingQuery,'isPermissionMatchingQuery');
10
+ var __defProp=Object['defineProperty'],__name=(_0x5e231a,_0x29d7d4)=>__defProp(_0x5e231a,'name',{'value':_0x29d7d4,'configurable':!![]});async function getSearchableResourceResults(_0x11323f,_0x2070c6){const _0x472255=_0x2070c6['filter'](_0x454bc3=>_0x454bc3!==searchableFilters['screens']);if(_0x472255['length']===0x9e*0x8+0x14b4+0x88c*-0x3)return [];return searchAcrossResources(_0x11323f,_0x472255);}__name(getSearchableResourceResults,'getSearchableResourceResults');async function getSearchScreensResult(_0x2dd034,_0x39c80a){const _0x2daba8=[];if(_0x39c80a['includes'](searchableFilters['screens'])){const _0x4cef3f=await getUserId(),_0x4e7fec=await getUserPermissions(_0x4cef3f),_0x4e1281=_0x4e7fec['resourcePermissions'];if(_0x4e1281)for(const _0x2d4041 of Object['values'](_0x4e1281)){_0x2d4041['type']===permissionTypes['resource']&&(!_0x2d4041['resourceId']||await hasPermission(_0x2d4041['resourceName'],crudActions['view'],_0x4cef3f))&&isPermissionMatchingQuery(_0x2d4041,_0x2dd034)&&_0x2daba8['push']({'resourceName':_0x2d4041['resourceName'],'displayName':_0x2d4041['displayName'],'resourceListUrl':getResourceListUrl(_0x2d4041['resourceName'])});}}return _0x2daba8;}__name(getSearchScreensResult,'getSearchScreensResult');function isPermissionMatchingQuery(_0x20daa3,_0x4a6f01){return _0x20daa3['displayName']['toLowerCase']()['startsWith'](_0x4a6f01['toLowerCase']());}__name(isPermissionMatchingQuery,'isPermissionMatchingQuery');
11
11
 
12
- export { getSearchScreensResult, getSearchableResourceResult };
12
+ export { getSearchScreensResult, getSearchableResourceResults };
@@ -6,6 +6,6 @@ import { searchAcrossResources } from '../../meta/server/meta-core/crud/search.j
6
6
  import { getFilterValue } from '../../meta/server/api/odata/odata-filters.js';
7
7
  import { searchErrors } from '../../meta/constants/search-constants.js';
8
8
 
9
- var __defProp=Object['defineProperty'],__name=(_0x21f830,_0x8fc76b)=>__defProp(_0x21f830,'name',{'value':_0x8fc76b,'configurable':!![]});async function get(_0x284137){const _0x1a5cf2=getFilterValue(_0x284137,searchProps['searchQuery']);if(!_0x1a5cf2)return logErrorRaw(createError(searchErrors['searchQueryRequired'])),[];const _0x241582=getFilterValue(_0x284137,searchProps['resourceNames']),_0x179cae=_0x241582?.['slice'](0x1839+-0x1dd2+-0xef*-0x6,-(0x2606+0x6f0*0x1+-0x2cf5))['split'](',');if(!_0x179cae)return logErrorRaw(createError(searchErrors['resourceNamesRequired'])),[];return searchAcrossResources(_0x1a5cf2,_0x179cae);}__name(get,'get');
9
+ var __defProp=Object['defineProperty'],__name=(_0x5b69dc,_0x38d708)=>__defProp(_0x5b69dc,'name',{'value':_0x38d708,'configurable':!![]});async function get(_0x279739){const _0x2918b4=getFilterValue(_0x279739,searchProps['searchQuery']);if(!_0x2918b4)return logErrorRaw(createError(searchErrors['searchQueryRequired'])),[];const _0x2b4e92=getFilterValue(_0x279739,searchProps['resourceNames']),_0x591a36=_0x2b4e92?.['slice'](0x38d*0x6+0x2004+-0x3551,-(0xae1*-0x1+-0x239a+-0x2*-0x173e))['split'](',');if(!_0x591a36)return logErrorRaw(createError(searchErrors['resourceNamesRequired'])),[];return searchAcrossResources(_0x2918b4,_0x591a36);}__name(get,'get');
10
10
 
11
11
  export { get as getSearch };
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  import { getSearchableResources } from '../../meta/server/resources/searchable-resources.js';
3
3
 
4
- var __defProp=Object['defineProperty'],__name=(_0x10cc58,_0x236ffb)=>__defProp(_0x10cc58,'name',{'value':_0x236ffb,'configurable':!![]});async function get(){const _0x3daa8d=await getSearchableResources();return Array['from'](_0x3daa8d['keys']());}__name(get,'get');
4
+ var __defProp=Object['defineProperty'],__name=(_0x1c64b2,_0x470aec)=>__defProp(_0x1c64b2,'name',{'value':_0x470aec,'configurable':!![]});async function get(){const _0x545c3f=await getSearchableResources();return Array['from'](_0x545c3f['keys']());}__name(get,'get');
5
5
 
6
6
  export { get as getSearchableResourcesHandler };
@@ -61,6 +61,6 @@ import { configureResourcePermissions, addPermissionIds, seedPermissionPackageTo
61
61
  import { permissionPackages } from '../../common/auth/permissions/permission-constants.js';
62
62
  import { permissionActions } from '../../meta/core/resources/enums/permission-enums.js';
63
63
 
64
- var __defProp=Object['defineProperty'],__name=(_0x3ac594,_0x2eb3c8)=>__defProp(_0x3ac594,'name',{'value':_0x2eb3c8,'configurable':!![]});async function seed(_0x4b3504,_0x4a2bce){getDotenvConfig(),setCurrentWorkspaceId(workspaceConstants['defaultWorkspaceId']);const _0x44cbcc=!await anyRoleExists();if(_0x44cbcc){ensureContentFolder(),await clearContentFolder(),await seedEarlyResourcesDirectlyInDb(),await seedResources(),await seedReports(),await seedReportChartSeries(),await seedDashboards(),await seedDashboardReports(),await seedSystemSettings(),await seedStatusBoards(),await seedDemoResources(),await seedDevResources(),await seedCountries(),await seedLanguages();if(_0x4b3504)for(const _0x2dfb0e of _0x4b3504){await _0x2dfb0e();}if(_0x4a2bce){const _0x2c4001=new Map(),_0x513caf=_0x4a2bce['map'](([_0x14a7e3])=>_0x14a7e3);await seedResourcesDirectlyInDb(_0x4a2bce),await configureResourcePermissions(_0x513caf,_0x2c4001);const _0x460ff4=[];addPermissionIds(_0x513caf,permissionActions['create'],_0x460ff4,_0x2c4001),await seedPermissionPackageToPermissionIfNotExist(permissionPackages['generalId'],_0x460ff4);}await seedResourcePropertiesDirectlyInDb(),await seedPaymentPlans(),await syncPaymentPlansAndPricesAfterSeeding(),await seedComments();}}__name(seed,'seed');async function seedResources(){await seedWorkspaces(),await seedUsers();const _0x5d7812=await seedFeatures();await seedOtherUsersInfo(_0x5d7812);}__name(seedResources,'seedResources');async function seedEarlyResourcesDirectlyInDb(){await seedRolesDirectlyInDb(),await seedDefaultWorkspaceDirectlyInDb(),await seedWorkerBotDirectlyInDb(),setCurrentUserId(toolboxUserConstants['workerBotId']),await seedResourcesDirectlyInDb(),await seedResourcePropertiesDirectlyInDb(),await seedPermissionsDirectlyInDb();}__name(seedEarlyResourcesDirectlyInDb,'seedEarlyResourcesDirectlyInDb');async function seedDemoResources(){if(!getBooleanEnvSetting(toolboxEnvSettingKeys['seedDemoResources']))return;logInfo('Seeding\x20demo\x20resources'),await seedCompanies(),await seedContacts(),await seedDeals(),await seedTickets(),await seedFeatures(),await seedBasicPlanFeatures(),await seedPremiumPlanFeatures(),await seedEnterprisePlanFeatures(),await seedDemoPaymentPlans(),await seedNotifications(),await seedFeedEntries(),!isTemporaryDisabled()&&(await seedCustomers(),await seedStores(),await seedProducts(),await seedOrders(),await seedShipments(),await seedProductMedias(),await seedAddresses(),await seedLeads(),await seedLeadEmails(),await seedLeadCategories(),await seedLeadToLeadCategories(),await seedLeadGroups(),await seedLeadToLeadGroups());}__name(seedDemoResources,'seedDemoResources');async function seedDevResources(){if(!getBooleanEnvSetting(toolboxEnvSettingKeys['seedDevResources']))return;logInfo('Seeding\x20dev\x20resources'),await seedJobs(),await seedPings(),await seedDevGreetings(),await seedPaperPlanes(),await seedPhoneBrands(),await seedAiAssistants(),await seedPersons(),await seedPersonToPersons(),await seedPersonToJobs(),await seedFriends();}__name(seedDevResources,'seedDevResources');
64
+ var __defProp=Object['defineProperty'],__name=(_0x47da73,_0x4bae04)=>__defProp(_0x47da73,'name',{'value':_0x4bae04,'configurable':!![]});async function seed(_0x36a342,_0x396957){getDotenvConfig(),setCurrentWorkspaceId(workspaceConstants['defaultWorkspaceId']);const _0xac0396=!await anyRoleExists();if(_0xac0396){ensureContentFolder(),await clearContentFolder(),await seedEarlyResourcesDirectlyInDb(),await seedResources(),await seedReports(),await seedReportChartSeries(),await seedDashboards(),await seedDashboardReports(),await seedSystemSettings(),await seedStatusBoards(),await seedDemoResources(),await seedDevResources(),await seedCountries(),await seedLanguages();if(_0x36a342)for(const _0x29d042 of _0x36a342){await _0x29d042();}if(_0x396957){const _0x3ae04c=new Map(),_0x42aefb=_0x396957['map'](([_0x2dc610])=>_0x2dc610);await seedResourcesDirectlyInDb(_0x396957),await configureResourcePermissions(_0x42aefb,_0x3ae04c);const _0x572105=[];addPermissionIds(_0x42aefb,permissionActions['create'],_0x572105,_0x3ae04c),await seedPermissionPackageToPermissionIfNotExist(permissionPackages['generalId'],_0x572105);}await seedResourcePropertiesDirectlyInDb(),await seedPaymentPlans(),await syncPaymentPlansAndPricesAfterSeeding(),await seedComments();}}__name(seed,'seed');async function seedResources(){await seedWorkspaces(),await seedUsers();const _0xca9a11=await seedFeatures();await seedOtherUsersInfo(_0xca9a11);}__name(seedResources,'seedResources');async function seedEarlyResourcesDirectlyInDb(){await seedRolesDirectlyInDb(),await seedDefaultWorkspaceDirectlyInDb(),await seedWorkerBotDirectlyInDb(),setCurrentUserId(toolboxUserConstants['workerBotId']),await seedResourcesDirectlyInDb(),await seedResourcePropertiesDirectlyInDb(),await seedPermissionsDirectlyInDb();}__name(seedEarlyResourcesDirectlyInDb,'seedEarlyResourcesDirectlyInDb');async function seedDemoResources(){if(!getBooleanEnvSetting(toolboxEnvSettingKeys['seedDemoResources']))return;logInfo('Seeding\x20demo\x20resources'),await seedCompanies(),await seedContacts(),await seedDeals(),await seedTickets(),await seedFeatures(),await seedBasicPlanFeatures(),await seedPremiumPlanFeatures(),await seedEnterprisePlanFeatures(),await seedDemoPaymentPlans(),await seedNotifications(),await seedFeedEntries(),!isTemporaryDisabled()&&(await seedCustomers(),await seedStores(),await seedProducts(),await seedOrders(),await seedShipments(),await seedProductMedias(),await seedAddresses(),await seedLeads(),await seedLeadEmails(),await seedLeadCategories(),await seedLeadToLeadCategories(),await seedLeadGroups(),await seedLeadToLeadGroups());}__name(seedDemoResources,'seedDemoResources');async function seedDevResources(){if(!getBooleanEnvSetting(toolboxEnvSettingKeys['seedDevResources']))return;logInfo('Seeding\x20dev\x20resources'),await seedJobs(),await seedPings(),await seedDevGreetings(),await seedPaperPlanes(),await seedPhoneBrands(),await seedAiAssistants(),await seedPersons(),await seedPersonToPersons(),await seedPersonToJobs(),await seedFriends();}__name(seedDevResources,'seedDevResources');
65
65
 
66
66
  export { seed, seedEarlyResourcesDirectlyInDb, seedResources };
@@ -7,6 +7,6 @@ import { httpContentTypes } from '../../../fd-toolbox/constants/header-names.js'
7
7
  import { tryGetFromCoreCache, setCoreCache } from '../../../fd-toolbox/server/cachings/core-cache.js';
8
8
  import { oAuthGrantTypes, oAuthTokenResponseFields } from '../../../fd-toolbox/constants/auth-constants.js';
9
9
 
10
- var __defProp=Object['defineProperty'],__name=(_0x45e825,_0x429816)=>__defProp(_0x45e825,'name',{'value':_0x429816,'configurable':!![]});const fedexTokenKey='fedex_api_token';async function getFedexTokenFromApi(){const _0x5d0df8={'grant_type':oAuthGrantTypes['clientCredentials'],'client_id':getRequiredStringEnvSetting(envSettingKeys['fedexApiKey']),'client_secret':getRequiredStringEnvSetting(envSettingKeys['fedexSecretKey'])},_0x5dddb8=new Headers();_0x5dddb8['append'](httpContentTypes['contentTypeHeaderName'],httpContentTypes['contentTypeApplicationForm']);const _0x4e4d61=await postBaseApi(fedexTestApi+fedexRoutes['token'],new URLSearchParams(_0x5d0df8),_0x5dddb8);return _0x4e4d61[oAuthTokenResponseFields['token']];}__name(getFedexTokenFromApi,'getFedexTokenFromApi');async function getFedexToken(){const _0x5403b8=await tryGetFromCoreCache(fedexTokenKey);if(!_0x5403b8){const _0x33e4f2=await getFedexTokenFromApi();return await setCoreCache(fedexTokenKey,{'token':_0x33e4f2}),_0x33e4f2;}return _0x5403b8['token'];}__name(getFedexToken,'getFedexToken');
10
+ var __defProp=Object['defineProperty'],__name=(_0x5caef1,_0x171755)=>__defProp(_0x5caef1,'name',{'value':_0x171755,'configurable':!![]});const fedexTokenKey='fedex_api_token';async function getFedexTokenFromApi(){const _0x5bf0d1={'grant_type':oAuthGrantTypes['clientCredentials'],'client_id':getRequiredStringEnvSetting(envSettingKeys['fedexApiKey']),'client_secret':getRequiredStringEnvSetting(envSettingKeys['fedexSecretKey'])},_0x288c63=new Headers();_0x288c63['append'](httpContentTypes['contentTypeHeaderName'],httpContentTypes['contentTypeApplicationForm']);const _0x259b88=await postBaseApi(fedexTestApi+fedexRoutes['token'],new URLSearchParams(_0x5bf0d1),_0x288c63);return _0x259b88[oAuthTokenResponseFields['token']];}__name(getFedexTokenFromApi,'getFedexTokenFromApi');async function getFedexToken(){const _0x14517d=await tryGetFromCoreCache(fedexTokenKey);if(!_0x14517d){const _0x189f8c=await getFedexTokenFromApi();return await setCoreCache(fedexTokenKey,{'token':_0x189f8c}),_0x189f8c;}return _0x14517d['token'];}__name(getFedexToken,'getFedexToken');
11
11
 
12
12
  export { fedexTokenKey, getFedexToken, getFedexTokenFromApi };
@@ -2,6 +2,6 @@
2
2
  import { resourceNames } from '../../../fd-toolbox/resources/resource-names.js';
3
3
  import { createResource } from '../../meta/server/resources/crud-resources.js';
4
4
 
5
- var __defProp=Object['defineProperty'],__name=(_0x336801,_0x32c254)=>__defProp(_0x336801,'name',{'value':_0x32c254,'configurable':!![]});function createShipment(_0x3944c4){return createResource(_0x3944c4,resourceNames['shipment']);}__name(createShipment,'createShipment');function createShipmentProvider(_0x357de0){return createResource(_0x357de0,resourceNames['shipmentProvider']);}__name(createShipmentProvider,'createShipmentProvider');
5
+ var __defProp=Object['defineProperty'],__name=(_0x3032b4,_0x56cf91)=>__defProp(_0x3032b4,'name',{'value':_0x56cf91,'configurable':!![]});function createShipment(_0x1ddf8c){return createResource(_0x1ddf8c,resourceNames['shipment']);}__name(createShipment,'createShipment');function createShipmentProvider(_0x4b726c){return createResource(_0x4b726c,resourceNames['shipmentProvider']);}__name(createShipmentProvider,'createShipmentProvider');
6
6
 
7
7
  export { createShipment, createShipmentProvider };