@xxmachina/common 19.0.0-preview.29 → 19.0.0-preview.4

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 (583) hide show
  1. package/README.md +11 -0
  2. package/_shared/auth/auth.module.js +22 -0
  3. package/_shared/auth/auth.module.js.map +1 -0
  4. package/_shared/auth/index.js +5 -0
  5. package/_shared/auth/index.js.map +1 -0
  6. package/_shared/auth/passports/anonymous/anonymous.strategy.js +19 -0
  7. package/_shared/auth/passports/anonymous/anonymous.strategy.js.map +1 -0
  8. package/_shared/auth/passports/anonymous/index.js +5 -0
  9. package/_shared/auth/passports/anonymous/index.js.map +1 -0
  10. package/_shared/auth/passports/firebase/firebase.guard.js +23 -0
  11. package/_shared/auth/passports/firebase/firebase.guard.js.map +1 -0
  12. package/_shared/auth/passports/firebase/firebase.strategy.js +22 -0
  13. package/_shared/auth/passports/firebase/firebase.strategy.js.map +1 -0
  14. package/_shared/auth/passports/firebase/index.js +6 -0
  15. package/_shared/auth/passports/firebase/index.js.map +1 -0
  16. package/_shared/auth/passports/internal/index.js +5 -0
  17. package/_shared/auth/passports/internal/index.js.map +1 -0
  18. package/_shared/auth/passports/internal/internal.strategy.js +33 -0
  19. package/_shared/auth/passports/internal/internal.strategy.js.map +1 -0
  20. package/_shared/auth/passports/msal/index.js +6 -0
  21. package/_shared/auth/passports/msal/index.js.map +1 -0
  22. package/_shared/auth/passports/msal/msal.guard.js +13 -0
  23. package/_shared/auth/passports/msal/msal.guard.js.map +1 -0
  24. package/_shared/auth/passports/msal/msal.strategy.js +43 -0
  25. package/_shared/auth/passports/msal/msal.strategy.js.map +1 -0
  26. package/_shared/meta/decorators.js +25 -0
  27. package/_shared/meta/decorators.js.map +1 -0
  28. package/_shared/meta/redis/index.js +6 -0
  29. package/_shared/meta/redis/index.js.map +1 -0
  30. package/_shared/meta/redis/redis.config.js +10 -0
  31. package/_shared/meta/redis/redis.config.js.map +1 -0
  32. package/_shared/meta/redis/redis.repository.d.ts +3 -6
  33. package/_shared/meta/redis/redis.repository.js +108 -0
  34. package/_shared/meta/redis/redis.repository.js.map +1 -0
  35. package/auth/auth.service.d.ts +0 -3
  36. package/auth/auth.service.js +12 -0
  37. package/auth/auth.service.js.map +1 -0
  38. package/auth/index.js +5 -0
  39. package/auth/index.js.map +1 -0
  40. package/azure-auth/auth.di.js +56 -0
  41. package/azure-auth/auth.di.js.map +1 -0
  42. package/azure-auth/auth.service.d.ts +0 -3
  43. package/azure-auth/auth.service.js +115 -0
  44. package/azure-auth/auth.service.js.map +1 -0
  45. package/azure-auth/index.js +6 -0
  46. package/azure-auth/index.js.map +1 -0
  47. package/domain/builder/command/command.builder.d.ts +2 -1
  48. package/domain/builder/command/command.builder.js +30 -0
  49. package/domain/builder/command/command.builder.js.map +1 -0
  50. package/domain/builder/command/index.js +5 -0
  51. package/domain/builder/command/index.js.map +1 -0
  52. package/domain/builder/command-action/command-action.builder.d.ts +1 -1
  53. package/domain/builder/command-action/command-action.builder.js +139 -0
  54. package/domain/builder/command-action/command-action.builder.js.map +1 -0
  55. package/domain/builder/command-action/index.js +5 -0
  56. package/domain/builder/command-action/index.js.map +1 -0
  57. package/domain/builder/er/er.builder.js +112 -0
  58. package/domain/builder/er/er.builder.js.map +1 -0
  59. package/domain/builder/er/index.js +5 -0
  60. package/domain/builder/er/index.js.map +1 -0
  61. package/domain/builder/screen-item/index.js +5 -0
  62. package/domain/builder/screen-item/index.js.map +1 -0
  63. package/domain/builder/screen-item/screen-item.builder.d.ts +2 -2
  64. package/{fesm2022/xxmachina-common-domain-builder-screen-item.mjs → domain/builder/screen-item/screen-item.builder.js} +11 -10
  65. package/domain/builder/screen-item/screen-item.builder.js.map +1 -0
  66. package/domain/index.d.ts +1 -2
  67. package/domain/index.js +5 -0
  68. package/domain/index.js.map +1 -0
  69. package/{domain-invoice → domain/invoice}/builders/email/email.builder.d.ts +1 -1
  70. package/domain/invoice/builders/email/email.builder.js +29 -0
  71. package/domain/invoice/builders/email/email.builder.js.map +1 -0
  72. package/domain/invoice/builders/email/index.js +5 -0
  73. package/domain/invoice/builders/email/index.js.map +1 -0
  74. package/domain/invoice/builders/message/index.js +5 -0
  75. package/domain/invoice/builders/message/index.js.map +1 -0
  76. package/{domain-invoice → domain/invoice}/builders/message/message.builder.d.ts +1 -1
  77. package/domain/invoice/builders/message/message.builder.js +43 -0
  78. package/domain/invoice/builders/message/message.builder.js.map +1 -0
  79. package/domain/invoice/builders/title/index.js +5 -0
  80. package/domain/invoice/builders/title/index.js.map +1 -0
  81. package/{domain-invoice → domain/invoice}/builders/title/title.builder.d.ts +1 -1
  82. package/domain/invoice/builders/title/title.builder.js +11 -0
  83. package/domain/invoice/builders/title/title.builder.js.map +1 -0
  84. package/domain/invoice/models/backoffice/contract.js +50 -0
  85. package/domain/invoice/models/backoffice/contract.js.map +1 -0
  86. package/domain/invoice/models/backoffice/index.js +9 -0
  87. package/domain/invoice/models/backoffice/index.js.map +1 -0
  88. package/domain/invoice/models/backoffice/invoice-mail.js +7 -0
  89. package/domain/invoice/models/backoffice/invoice-mail.js.map +1 -0
  90. package/{domain-invoice → domain/invoice}/models/backoffice/invoice.d.ts +1 -1
  91. package/domain/invoice/models/backoffice/invoice.js +91 -0
  92. package/domain/invoice/models/backoffice/invoice.js.map +1 -0
  93. package/{domain-invoice → domain/invoice}/models/backoffice/order.d.ts +1 -1
  94. package/domain/invoice/models/backoffice/order.js +157 -0
  95. package/domain/invoice/models/backoffice/order.js.map +1 -0
  96. package/{domain-invoice → domain/invoice}/models/backoffice/partner.d.ts +1 -1
  97. package/domain/invoice/models/backoffice/partner.js +96 -0
  98. package/domain/invoice/models/backoffice/partner.js.map +1 -0
  99. package/domain/invoice/models/index.js +5 -0
  100. package/domain/invoice/models/index.js.map +1 -0
  101. package/domain/models/agent/assistant.js +31 -0
  102. package/domain/models/agent/assistant.js.map +1 -0
  103. package/domain/models/agent/index.js +5 -0
  104. package/domain/models/agent/index.js.map +1 -0
  105. package/domain/models/bookmarklet/bookmarklet.js +34 -0
  106. package/domain/models/bookmarklet/bookmarklet.js.map +1 -0
  107. package/domain/models/bookmarklet/index.js +5 -0
  108. package/domain/models/bookmarklet/index.js.map +1 -0
  109. package/domain/models/calendar-utils.d.ts +5 -0
  110. package/domain/models/calendar-utils.js +43 -0
  111. package/domain/models/calendar-utils.js.map +1 -0
  112. package/domain/models/command/command.helper.js +14 -0
  113. package/domain/models/command/command.helper.js.map +1 -0
  114. package/domain/models/command/command.js +40 -0
  115. package/domain/models/command/command.js.map +1 -0
  116. package/domain/models/command/index.js +6 -0
  117. package/domain/models/command/index.js.map +1 -0
  118. package/domain/models/database/database.js +7 -0
  119. package/domain/models/database/database.js.map +1 -0
  120. package/domain/models/database/index.js +5 -0
  121. package/domain/models/database/index.js.map +1 -0
  122. package/domain/models/endpoint/endpoint.helper.js +21 -0
  123. package/domain/models/endpoint/endpoint.helper.js.map +1 -0
  124. package/domain/models/endpoint/index.js +5 -0
  125. package/domain/models/endpoint/index.js.map +1 -0
  126. package/domain/models/index.d.ts +2 -8
  127. package/domain/models/index.js +12 -0
  128. package/domain/models/index.js.map +1 -0
  129. package/domain/models/links/google/google.js +47 -0
  130. package/domain/models/links/google/google.js.map +1 -0
  131. package/domain/models/links/google/index.js +5 -0
  132. package/domain/models/links/google/index.js.map +1 -0
  133. package/domain/models/openapi/index.js +6 -0
  134. package/domain/models/openapi/index.js.map +1 -0
  135. package/domain/models/openapi/openapi.js +87 -0
  136. package/domain/models/openapi/openapi.js.map +1 -0
  137. package/domain/models/openapi/openapi.schema.js +3 -0
  138. package/domain/models/openapi/openapi.schema.js.map +1 -0
  139. package/domain/models/operators/assistancts/base.js +13 -0
  140. package/domain/models/operators/assistancts/base.js.map +1 -0
  141. package/domain/models/operators/assistancts/index.js +5 -0
  142. package/domain/models/operators/assistancts/index.js.map +1 -0
  143. package/domain/models/operators/base.js +10 -0
  144. package/domain/models/operators/base.js.map +1 -0
  145. package/domain/models/operators/index.js +8 -0
  146. package/domain/models/operators/index.js.map +1 -0
  147. package/domain/models/operators/systems/base.js +3 -0
  148. package/domain/models/operators/systems/base.js.map +1 -0
  149. package/domain/models/operators/systems/graphql.js +3 -0
  150. package/domain/models/operators/systems/graphql.js.map +1 -0
  151. package/domain/models/operators/systems/index.js +7 -0
  152. package/domain/models/operators/systems/index.js.map +1 -0
  153. package/domain/models/operators/systems/rest.js +3 -0
  154. package/domain/models/operators/systems/rest.js.map +1 -0
  155. package/domain/models/operators/workflows/index.js +5 -0
  156. package/domain/models/operators/workflows/index.js.map +1 -0
  157. package/domain/models/operators/workflows/workflow.js +3 -0
  158. package/domain/models/operators/workflows/workflow.js.map +1 -0
  159. package/domain/models/project.js +9 -0
  160. package/domain/models/project.js.map +1 -0
  161. package/domain/models/query/index.js +6 -0
  162. package/domain/models/query/index.js.map +1 -0
  163. package/domain/models/query/query.d.ts +1 -1
  164. package/domain/models/query/query.helper.d.ts +0 -1
  165. package/domain/models/query/query.helper.js +172 -0
  166. package/domain/models/query/query.helper.js.map +1 -0
  167. package/domain/models/query/query.js +122 -0
  168. package/domain/models/query/query.js.map +1 -0
  169. package/domain/models/resource/index.js +6 -0
  170. package/domain/models/resource/index.js.map +1 -0
  171. package/domain/models/resource/resource.helper.js +16 -0
  172. package/domain/models/resource/resource.helper.js.map +1 -0
  173. package/domain/models/resource/resource.js +73 -0
  174. package/domain/models/resource/resource.js.map +1 -0
  175. package/domain/models/scheduler/index.js +5 -0
  176. package/domain/models/scheduler/index.js.map +1 -0
  177. package/domain/models/scheduler/schedule.js +89 -0
  178. package/domain/models/scheduler/schedule.js.map +1 -0
  179. package/domain/models/screen-item/index.js +5 -0
  180. package/domain/models/screen-item/index.js.map +1 -0
  181. package/domain/models/screen-item/screen-item.js +3 -0
  182. package/domain/models/screen-item/screen-item.js.map +1 -0
  183. package/domain/models/spec.js +3 -0
  184. package/domain/models/spec.js.map +1 -0
  185. package/domain/resolvers/index.js +5 -0
  186. package/domain/resolvers/index.js.map +1 -0
  187. package/{domain-invoice → domain}/resolvers/invoice.resolver.d.ts +1 -1
  188. package/domain/resolvers/invoice.resolver.js +31 -0
  189. package/domain/resolvers/invoice.resolver.js.map +1 -0
  190. package/infrastructure/converters/bookmarklet/bookmarklet.converter.d.ts +0 -0
  191. package/infrastructure/converters/bookmarklet/bookmarklet.converter.js +1 -0
  192. package/infrastructure/converters/bookmarklet/bookmarklet.converter.js.map +1 -0
  193. package/{infra → infrastructure}/converters/google/google.converter.d.ts +1 -4
  194. package/infrastructure/converters/google/google.converter.js +27 -0
  195. package/infrastructure/converters/google/google.converter.js.map +1 -0
  196. package/infrastructure/converters/google/index.js +5 -0
  197. package/infrastructure/converters/google/index.js.map +1 -0
  198. package/infrastructure/external/data-connect/data-connect.service.impl.d.ts +7 -0
  199. package/infrastructure/external/data-connect/data-connect.service.impl.js +20 -0
  200. package/infrastructure/external/data-connect/data-connect.service.impl.js.map +1 -0
  201. package/infrastructure/external/data-connect/data-connect.service.js +11 -0
  202. package/infrastructure/external/data-connect/data-connect.service.js.map +1 -0
  203. package/infrastructure/external/data-connect/index.js +5 -0
  204. package/infrastructure/external/data-connect/index.js.map +1 -0
  205. package/{infra → infrastructure}/external/external.config.d.ts +2 -2
  206. package/infrastructure/external/external.config.js +13 -0
  207. package/infrastructure/external/external.config.js.map +1 -0
  208. package/{infra → infrastructure}/external/external.service.d.ts +3 -4
  209. package/infrastructure/external/external.service.js +23 -0
  210. package/infrastructure/external/external.service.js.map +1 -0
  211. package/infrastructure/external/index.js +6 -0
  212. package/infrastructure/external/index.js.map +1 -0
  213. package/infrastructure/external/quick-js/index.js +5 -0
  214. package/infrastructure/external/quick-js/index.js.map +1 -0
  215. package/{infra → infrastructure}/external/quick-js/quick-js.service.d.ts +0 -3
  216. package/infrastructure/external/quick-js/quick-js.service.js +44 -0
  217. package/infrastructure/external/quick-js/quick-js.service.js.map +1 -0
  218. package/infrastructure/external/resend/index.js +5 -0
  219. package/infrastructure/external/resend/index.js.map +1 -0
  220. package/infrastructure/external/resend/resend.service.d.ts +9 -0
  221. package/{infra → infrastructure}/external/resend/resend.service.impl.d.ts +8 -4
  222. package/infrastructure/external/resend/resend.service.impl.js +27 -0
  223. package/infrastructure/external/resend/resend.service.impl.js.map +1 -0
  224. package/infrastructure/external/resend/resend.service.js +6 -0
  225. package/infrastructure/external/resend/resend.service.js.map +1 -0
  226. package/infrastructure/index.js +6 -0
  227. package/infrastructure/index.js.map +1 -0
  228. package/{infra → infrastructure}/infrastructure.config.d.ts +5 -5
  229. package/infrastructure/infrastructure.config.js +12 -0
  230. package/infrastructure/infrastructure.config.js.map +1 -0
  231. package/{infra → infrastructure}/infrastructure.service.d.ts +0 -3
  232. package/infrastructure/infrastructure.service.js +20 -0
  233. package/infrastructure/infrastructure.service.js.map +1 -0
  234. package/infrastructure/query/firestore/query/index.js +5 -0
  235. package/infrastructure/query/firestore/query/index.js.map +1 -0
  236. package/{infra → infrastructure}/query/firestore/query/query.query.d.ts +0 -3
  237. package/infrastructure/query/firestore/query/query.query.js +20 -0
  238. package/infrastructure/query/firestore/query/query.query.js.map +1 -0
  239. package/infrastructure/query/firestore/resource/index.js +5 -0
  240. package/infrastructure/query/firestore/resource/index.js.map +1 -0
  241. package/{infra → infrastructure}/query/firestore/resource/resource.query.d.ts +0 -3
  242. package/infrastructure/query/firestore/resource/resource.query.js +20 -0
  243. package/infrastructure/query/firestore/resource/resource.query.js.map +1 -0
  244. package/infrastructure/query/hasura/resource/index.js +5 -0
  245. package/infrastructure/query/hasura/resource/index.js.map +1 -0
  246. package/infrastructure/query/hasura/resource/resource.query.d.ts +3 -0
  247. package/infrastructure/query/hasura/resource/resource.query.js +14 -0
  248. package/infrastructure/query/hasura/resource/resource.query.js.map +1 -0
  249. package/infrastructure/repository/dataconnect/invoice/index.js +5 -0
  250. package/infrastructure/repository/dataconnect/invoice/index.js.map +1 -0
  251. package/{infra → infrastructure}/repository/dataconnect/invoice/invoice.repository.impl.d.ts +1 -4
  252. package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js +54 -0
  253. package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js.map +1 -0
  254. package/infrastructure/repository/dataconnect/invoice/invoice.repository.js +11 -0
  255. package/infrastructure/repository/dataconnect/invoice/invoice.repository.js.map +1 -0
  256. package/infrastructure/repository/dataconnect/order/index.js +5 -0
  257. package/infrastructure/repository/dataconnect/order/index.js.map +1 -0
  258. package/{infra → infrastructure}/repository/dataconnect/order/order.repository.impl.d.ts +1 -4
  259. package/infrastructure/repository/dataconnect/order/order.repository.impl.js +74 -0
  260. package/infrastructure/repository/dataconnect/order/order.repository.impl.js.map +1 -0
  261. package/infrastructure/repository/dataconnect/order/order.repository.js +11 -0
  262. package/infrastructure/repository/dataconnect/order/order.repository.js.map +1 -0
  263. package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.d.ts +6 -0
  264. package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js +20 -0
  265. package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js.map +1 -0
  266. package/infrastructure/repository/firestore/bookmarklet/index.d.ts +1 -0
  267. package/infrastructure/repository/firestore/bookmarklet/index.js +5 -0
  268. package/infrastructure/repository/firestore/bookmarklet/index.js.map +1 -0
  269. package/infrastructure/repository/firestore/firestore.repository.d.ts +7 -0
  270. package/infrastructure/repository/firestore/firestore.repository.js +20 -0
  271. package/infrastructure/repository/firestore/firestore.repository.js.map +1 -0
  272. package/infrastructure/repository/firestore/index.d.ts +1 -0
  273. package/infrastructure/repository/firestore/index.js +5 -0
  274. package/infrastructure/repository/firestore/index.js.map +1 -0
  275. package/infrastructure/repository/firestore/link/google/google.repository.d.ts +7 -0
  276. package/infrastructure/repository/firestore/link/google/google.repository.js +19 -0
  277. package/infrastructure/repository/firestore/link/google/google.repository.js.map +1 -0
  278. package/infrastructure/repository/firestore/link/google/index.js +5 -0
  279. package/infrastructure/repository/firestore/link/google/index.js.map +1 -0
  280. package/infrastructure/repository/firestore/link/index.js +5 -0
  281. package/infrastructure/repository/firestore/link/index.js.map +1 -0
  282. package/infrastructure/repository/firestore/link/link.repository.d.ts +5 -0
  283. package/infrastructure/repository/firestore/link/link.repository.js +17 -0
  284. package/infrastructure/repository/firestore/link/link.repository.js.map +1 -0
  285. package/infrastructure/repository/firestore/query/index.js +5 -0
  286. package/infrastructure/repository/firestore/query/index.js.map +1 -0
  287. package/{infra → infrastructure}/repository/firestore/query/query.repository.d.ts +1 -4
  288. package/infrastructure/repository/firestore/query/query.repository.js +20 -0
  289. package/infrastructure/repository/firestore/query/query.repository.js.map +1 -0
  290. package/infrastructure/repository/firestore/resource/index.js +5 -0
  291. package/infrastructure/repository/firestore/resource/index.js.map +1 -0
  292. package/{infra → infrastructure}/repository/firestore/resource/resource.repository.d.ts +1 -4
  293. package/infrastructure/repository/firestore/resource/resource.repository.js +20 -0
  294. package/infrastructure/repository/firestore/resource/resource.repository.js.map +1 -0
  295. package/infrastructure/repository/hasura/query/index.js +5 -0
  296. package/infrastructure/repository/hasura/query/index.js.map +1 -0
  297. package/{infra → infrastructure}/repository/hasura/query/query.repository.d.ts +0 -3
  298. package/infrastructure/repository/hasura/query/query.repository.js +23 -0
  299. package/infrastructure/repository/hasura/query/query.repository.js.map +1 -0
  300. package/infrastructure/repository/hasura/resource/index.js +5 -0
  301. package/infrastructure/repository/hasura/resource/index.js.map +1 -0
  302. package/{infra → infrastructure}/repository/hasura/resource/resource.repository.d.ts +0 -3
  303. package/infrastructure/repository/hasura/resource/resource.repository.js +23 -0
  304. package/infrastructure/repository/hasura/resource/resource.repository.js.map +1 -0
  305. package/infrastructure/repository/index.js +6 -0
  306. package/infrastructure/repository/index.js.map +1 -0
  307. package/infrastructure/repository/notion/contract/contract.config.js +10 -0
  308. package/infrastructure/repository/notion/contract/contract.config.js.map +1 -0
  309. package/{infra → infrastructure}/repository/notion/contract/contract.repository.d.ts +1 -4
  310. package/infrastructure/repository/notion/contract/contract.repository.js +22 -0
  311. package/infrastructure/repository/notion/contract/contract.repository.js.map +1 -0
  312. package/infrastructure/repository/notion/contract/index.js +6 -0
  313. package/infrastructure/repository/notion/contract/index.js.map +1 -0
  314. package/infrastructure/repository/notion/index.d.ts +2 -0
  315. package/infrastructure/repository/notion/index.js +6 -0
  316. package/infrastructure/repository/notion/index.js.map +1 -0
  317. package/infrastructure/repository/notion/invoice/index.js +6 -0
  318. package/infrastructure/repository/notion/invoice/index.js.map +1 -0
  319. package/infrastructure/repository/notion/invoice/invoice.config.js +10 -0
  320. package/infrastructure/repository/notion/invoice/invoice.config.js.map +1 -0
  321. package/{infra → infrastructure}/repository/notion/invoice/invoice.repository.d.ts +1 -4
  322. package/infrastructure/repository/notion/invoice/invoice.repository.js +22 -0
  323. package/infrastructure/repository/notion/invoice/invoice.repository.js.map +1 -0
  324. package/infrastructure/repository/notion/notion.config.js +18 -0
  325. package/infrastructure/repository/notion/notion.config.js.map +1 -0
  326. package/{infra → infrastructure}/repository/notion/notion.repository.d.ts +0 -3
  327. package/infrastructure/repository/notion/notion.repository.js +26 -0
  328. package/infrastructure/repository/notion/notion.repository.js.map +1 -0
  329. package/infrastructure/repository/notion/order/index.js +5 -0
  330. package/infrastructure/repository/notion/order/index.js.map +1 -0
  331. package/infrastructure/repository/notion/order/order.config.js +10 -0
  332. package/infrastructure/repository/notion/order/order.config.js.map +1 -0
  333. package/{infra → infrastructure}/repository/notion/order/order.repository.d.ts +1 -4
  334. package/infrastructure/repository/notion/order/order.repository.js +22 -0
  335. package/infrastructure/repository/notion/order/order.repository.js.map +1 -0
  336. package/infrastructure/repository/notion/partner/index.js +6 -0
  337. package/infrastructure/repository/notion/partner/index.js.map +1 -0
  338. package/infrastructure/repository/notion/partner/partner.config.js +10 -0
  339. package/infrastructure/repository/notion/partner/partner.config.js.map +1 -0
  340. package/{infra → infrastructure}/repository/notion/partner/partner.repository.d.ts +1 -4
  341. package/infrastructure/repository/notion/partner/partner.repository.js +22 -0
  342. package/infrastructure/repository/notion/partner/partner.repository.js.map +1 -0
  343. package/infrastructure/repository/redis/index.js +6 -0
  344. package/infrastructure/repository/redis/index.js.map +1 -0
  345. package/infrastructure/repository/redis/operator/index.js +5 -0
  346. package/infrastructure/repository/redis/operator/index.js.map +1 -0
  347. package/{infra → infrastructure}/repository/redis/operator/operator.repository.d.ts +0 -3
  348. package/infrastructure/repository/redis/operator/operator.repository.js +17 -0
  349. package/infrastructure/repository/redis/operator/operator.repository.js.map +1 -0
  350. package/infrastructure/repository/redis/project/index.js +5 -0
  351. package/infrastructure/repository/redis/project/index.js.map +1 -0
  352. package/{infra → infrastructure}/repository/redis/project/project.repository.d.ts +0 -3
  353. package/infrastructure/repository/redis/project/project.repository.js +33 -0
  354. package/infrastructure/repository/redis/project/project.repository.js.map +1 -0
  355. package/infrastructure/repository/redis/redis.config.js +10 -0
  356. package/infrastructure/repository/redis/redis.config.js.map +1 -0
  357. package/{infra → infrastructure}/repository/redis/redis.service.d.ts +0 -3
  358. package/infrastructure/repository/redis/redis.service.js +22 -0
  359. package/infrastructure/repository/redis/redis.service.js.map +1 -0
  360. package/infrastructure/repository/redis/spec/index.js +5 -0
  361. package/infrastructure/repository/redis/spec/index.js.map +1 -0
  362. package/{infra → infrastructure}/repository/redis/spec/spec.repository.d.ts +3 -5
  363. package/infrastructure/repository/redis/spec/spec.repository.js +94 -0
  364. package/infrastructure/repository/redis/spec/spec.repository.js.map +1 -0
  365. package/infrastructure/repository/redis/system/index.js +5 -0
  366. package/infrastructure/repository/redis/system/index.js.map +1 -0
  367. package/infrastructure/repository/redis/system/system.repository.d.ts +3 -0
  368. package/infrastructure/repository/redis/system/system.repository.js +15 -0
  369. package/infrastructure/repository/redis/system/system.repository.js.map +1 -0
  370. package/{infra → infrastructure}/repository/repository.config.d.ts +4 -4
  371. package/infrastructure/repository/repository.config.js +12 -0
  372. package/infrastructure/repository/repository.config.js.map +1 -0
  373. package/{infra → infrastructure}/repository/repository.service.d.ts +0 -3
  374. package/infrastructure/repository/repository.service.js +20 -0
  375. package/infrastructure/repository/repository.service.js.map +1 -0
  376. package/package.json +14 -202
  377. package/stores/index.d.ts +28 -4
  378. package/stores/index.js +66 -0
  379. package/stores/index.js.map +1 -0
  380. package/usecase/assistant/assistant.service.d.ts +1 -4
  381. package/usecase/assistant/assistant.service.js +72 -0
  382. package/usecase/assistant/assistant.service.js.map +1 -0
  383. package/usecase/assistant/index.js +5 -0
  384. package/usecase/assistant/index.js.map +1 -0
  385. package/usecase/database/database.service.d.ts +0 -3
  386. package/usecase/database/database.service.js +103 -0
  387. package/usecase/database/database.service.js.map +1 -0
  388. package/usecase/database/index.js +5 -0
  389. package/usecase/database/index.js.map +1 -0
  390. package/usecase/graphql/graphql.service.d.ts +0 -3
  391. package/usecase/graphql/graphql.service.js +49 -0
  392. package/usecase/graphql/graphql.service.js.map +1 -0
  393. package/usecase/graphql/index.js +5 -0
  394. package/usecase/graphql/index.js.map +1 -0
  395. package/usecase/index.js +5 -0
  396. package/usecase/index.js.map +1 -0
  397. package/usecase/invoice/index.js +5 -0
  398. package/usecase/invoice/index.js.map +1 -0
  399. package/usecase/invoice/invoice.service.d.ts +13 -9
  400. package/usecase/invoice/invoice.service.js +69 -0
  401. package/usecase/invoice/invoice.service.js.map +1 -0
  402. package/usecase/link/index.js +5 -0
  403. package/usecase/link/index.js.map +1 -0
  404. package/usecase/link/link.service.d.ts +2 -5
  405. package/usecase/link/link.service.js +20 -0
  406. package/usecase/link/link.service.js.map +1 -0
  407. package/usecase/order/index.js +5 -0
  408. package/usecase/order/index.js.map +1 -0
  409. package/usecase/order/order.service.d.ts +2 -5
  410. package/usecase/order/order.service.js +27 -0
  411. package/usecase/order/order.service.js.map +1 -0
  412. package/usecase/project/index.js +5 -0
  413. package/usecase/project/index.js.map +1 -0
  414. package/usecase/project/project.service.d.ts +1 -4
  415. package/usecase/project/project.service.js +37 -0
  416. package/usecase/project/project.service.js.map +1 -0
  417. package/usecase/spec/index.js +5 -0
  418. package/usecase/spec/index.js.map +1 -0
  419. package/usecase/spec/spec.service.d.ts +1 -4
  420. package/usecase/spec/spec.service.js +49 -0
  421. package/usecase/spec/spec.service.js.map +1 -0
  422. package/usecase/usecase.service.d.ts +0 -3
  423. package/usecase/usecase.service.js +24 -0
  424. package/usecase/usecase.service.js.map +1 -0
  425. package/{fesm2022/xxmachina-common-utils-crypto.mjs → utils/crypto.js} +12 -10
  426. package/utils/crypto.js.map +1 -0
  427. package/{fesm2022/xxmachina-common-utils.mjs → utils/extract-display-fields.js} +4 -7
  428. package/utils/extract-display-fields.js.map +1 -0
  429. package/utils/index.js +5 -0
  430. package/utils/index.js.map +1 -0
  431. package/_shared/meta/index.d.ts +0 -1
  432. package/domain/builder/index.d.ts +0 -4
  433. package/domain/models/links/index.d.ts +0 -1
  434. package/domain-invoice/builders/index.d.ts +0 -3
  435. package/domain-invoice/index.d.ts +0 -3
  436. package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs +0 -20
  437. package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs.map +0 -1
  438. package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs +0 -41
  439. package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs.map +0 -1
  440. package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs +0 -34
  441. package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs.map +0 -1
  442. package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs +0 -49
  443. package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs.map +0 -1
  444. package/fesm2022/xxmachina-common-_shared-auth.mjs +0 -25
  445. package/fesm2022/xxmachina-common-_shared-auth.mjs.map +0 -1
  446. package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +0 -99
  447. package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +0 -1
  448. package/fesm2022/xxmachina-common-_shared-meta.mjs +0 -26
  449. package/fesm2022/xxmachina-common-_shared-meta.mjs.map +0 -1
  450. package/fesm2022/xxmachina-common-auth.mjs +0 -17
  451. package/fesm2022/xxmachina-common-auth.mjs.map +0 -1
  452. package/fesm2022/xxmachina-common-azure-auth.mjs +0 -160
  453. package/fesm2022/xxmachina-common-azure-auth.mjs.map +0 -1
  454. package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +0 -1
  455. package/fesm2022/xxmachina-common-domain-builder.mjs +0 -470
  456. package/fesm2022/xxmachina-common-domain-builder.mjs.map +0 -1
  457. package/fesm2022/xxmachina-common-domain-invoice-builders.mjs +0 -70
  458. package/fesm2022/xxmachina-common-domain-invoice-builders.mjs.map +0 -1
  459. package/fesm2022/xxmachina-common-domain-invoice-models.mjs +0 -427
  460. package/fesm2022/xxmachina-common-domain-invoice-models.mjs.map +0 -1
  461. package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs +0 -39
  462. package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs.map +0 -1
  463. package/fesm2022/xxmachina-common-domain-invoice.mjs +0 -8
  464. package/fesm2022/xxmachina-common-domain-invoice.mjs.map +0 -1
  465. package/fesm2022/xxmachina-common-domain-models.mjs +0 -805
  466. package/fesm2022/xxmachina-common-domain-models.mjs.map +0 -1
  467. package/fesm2022/xxmachina-common-domain.mjs +0 -7
  468. package/fesm2022/xxmachina-common-domain.mjs.map +0 -1
  469. package/fesm2022/xxmachina-common-infra-converters-google.mjs +0 -36
  470. package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +0 -1
  471. package/fesm2022/xxmachina-common-infra-external-data-connect.mjs +0 -13
  472. package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +0 -1
  473. package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +0 -44
  474. package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +0 -1
  475. package/fesm2022/xxmachina-common-infra-external-resend.mjs +0 -10
  476. package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +0 -1
  477. package/fesm2022/xxmachina-common-infra-external.mjs +0 -35
  478. package/fesm2022/xxmachina-common-infra-external.mjs.map +0 -1
  479. package/fesm2022/xxmachina-common-infra-query-firestore.mjs +0 -34
  480. package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +0 -1
  481. package/fesm2022/xxmachina-common-infra-query-hasura.mjs +0 -20
  482. package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +0 -1
  483. package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs +0 -18
  484. package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +0 -1
  485. package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +0 -74
  486. package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +0 -1
  487. package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +0 -41
  488. package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +0 -1
  489. package/fesm2022/xxmachina-common-infra-repository-notion.mjs +0 -112
  490. package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +0 -1
  491. package/fesm2022/xxmachina-common-infra.mjs +0 -376
  492. package/fesm2022/xxmachina-common-infra.mjs.map +0 -1
  493. package/fesm2022/xxmachina-common-stores-firestore.mjs +0 -33
  494. package/fesm2022/xxmachina-common-stores-firestore.mjs.map +0 -1
  495. package/fesm2022/xxmachina-common-stores-hasura.mjs +0 -32
  496. package/fesm2022/xxmachina-common-stores-hasura.mjs.map +0 -1
  497. package/fesm2022/xxmachina-common-stores.mjs +0 -16
  498. package/fesm2022/xxmachina-common-stores.mjs.map +0 -1
  499. package/fesm2022/xxmachina-common-usecase-assistant.mjs +0 -67
  500. package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +0 -1
  501. package/fesm2022/xxmachina-common-usecase-database.mjs +0 -95
  502. package/fesm2022/xxmachina-common-usecase-database.mjs.map +0 -1
  503. package/fesm2022/xxmachina-common-usecase-graphql.mjs +0 -51
  504. package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +0 -1
  505. package/fesm2022/xxmachina-common-usecase-invoice.mjs +0 -67
  506. package/fesm2022/xxmachina-common-usecase-invoice.mjs.map +0 -1
  507. package/fesm2022/xxmachina-common-usecase-link.mjs +0 -26
  508. package/fesm2022/xxmachina-common-usecase-link.mjs.map +0 -1
  509. package/fesm2022/xxmachina-common-usecase-order.mjs +0 -29
  510. package/fesm2022/xxmachina-common-usecase-order.mjs.map +0 -1
  511. package/fesm2022/xxmachina-common-usecase-project.mjs +0 -35
  512. package/fesm2022/xxmachina-common-usecase-project.mjs.map +0 -1
  513. package/fesm2022/xxmachina-common-usecase-spec.mjs +0 -45
  514. package/fesm2022/xxmachina-common-usecase-spec.mjs.map +0 -1
  515. package/fesm2022/xxmachina-common-usecase.mjs +0 -198
  516. package/fesm2022/xxmachina-common-usecase.mjs.map +0 -1
  517. package/fesm2022/xxmachina-common-utils-crypto.mjs.map +0 -1
  518. package/fesm2022/xxmachina-common-utils.mjs.map +0 -1
  519. package/fesm2022/xxmachina-common.mjs +0 -6
  520. package/fesm2022/xxmachina-common.mjs.map +0 -1
  521. package/index.d.ts +0 -1
  522. package/infra/external/resend/resend.service.d.ts +0 -2
  523. package/infra/query/firestore/index.d.ts +0 -2
  524. package/infra/query/hasura/index.d.ts +0 -1
  525. package/infra/query/hasura/resource/resource.query.d.ts +0 -6
  526. package/infra/repository/dataconnect/index.d.ts +0 -2
  527. package/infra/repository/firestore/firestore.repository.d.ts +0 -8
  528. package/infra/repository/firestore/index.d.ts +0 -3
  529. package/infra/repository/firestore/link/google/google.repository.d.ts +0 -10
  530. package/infra/repository/firestore/link/link.repository.d.ts +0 -8
  531. package/infra/repository/hasura/index.d.ts +0 -2
  532. package/infra/repository/notion/index.d.ts +0 -6
  533. package/infra/repository/redis/system/system.repository.d.ts +0 -6
  534. package/stores/firestore/firestore.store.d.ts +0 -12
  535. package/stores/firestore/index.d.ts +0 -1
  536. package/stores/hasura/hasura.store.d.ts +0 -12
  537. package/stores/hasura/index.d.ts +0 -1
  538. package/utils/crypto/index.d.ts +0 -1
  539. /package/{domain-invoice → domain/invoice}/builders/email/index.d.ts +0 -0
  540. /package/{domain-invoice → domain/invoice}/builders/message/index.d.ts +0 -0
  541. /package/{domain-invoice → domain/invoice}/builders/title/index.d.ts +0 -0
  542. /package/{domain-invoice → domain/invoice}/models/backoffice/contract.d.ts +0 -0
  543. /package/{domain-invoice → domain/invoice}/models/backoffice/index.d.ts +0 -0
  544. /package/{domain-invoice → domain/invoice}/models/backoffice/invoice-mail.d.ts +0 -0
  545. /package/{domain-invoice → domain/invoice}/models/index.d.ts +0 -0
  546. /package/{domain-invoice → domain}/resolvers/index.d.ts +0 -0
  547. /package/{infra → infrastructure}/converters/google/index.d.ts +0 -0
  548. /package/{infra → infrastructure}/external/data-connect/data-connect.service.d.ts +0 -0
  549. /package/{infra → infrastructure}/external/data-connect/index.d.ts +0 -0
  550. /package/{infra → infrastructure}/external/index.d.ts +0 -0
  551. /package/{infra → infrastructure}/external/quick-js/index.d.ts +0 -0
  552. /package/{infra → infrastructure}/external/resend/index.d.ts +0 -0
  553. /package/{infra → infrastructure}/index.d.ts +0 -0
  554. /package/{infra → infrastructure}/query/firestore/query/index.d.ts +0 -0
  555. /package/{infra → infrastructure}/query/firestore/resource/index.d.ts +0 -0
  556. /package/{infra → infrastructure}/query/hasura/resource/index.d.ts +0 -0
  557. /package/{infra → infrastructure}/repository/dataconnect/invoice/index.d.ts +0 -0
  558. /package/{infra → infrastructure}/repository/dataconnect/invoice/invoice.repository.d.ts +0 -0
  559. /package/{infra → infrastructure}/repository/dataconnect/order/index.d.ts +0 -0
  560. /package/{infra → infrastructure}/repository/dataconnect/order/order.repository.d.ts +0 -0
  561. /package/{infra → infrastructure}/repository/firestore/link/google/index.d.ts +0 -0
  562. /package/{infra → infrastructure}/repository/firestore/link/index.d.ts +0 -0
  563. /package/{infra → infrastructure}/repository/firestore/query/index.d.ts +0 -0
  564. /package/{infra → infrastructure}/repository/firestore/resource/index.d.ts +0 -0
  565. /package/{infra → infrastructure}/repository/hasura/query/index.d.ts +0 -0
  566. /package/{infra → infrastructure}/repository/hasura/resource/index.d.ts +0 -0
  567. /package/{infra → infrastructure}/repository/index.d.ts +0 -0
  568. /package/{infra → infrastructure}/repository/notion/contract/contract.config.d.ts +0 -0
  569. /package/{infra → infrastructure}/repository/notion/contract/index.d.ts +0 -0
  570. /package/{infra → infrastructure}/repository/notion/invoice/index.d.ts +0 -0
  571. /package/{infra → infrastructure}/repository/notion/invoice/invoice.config.d.ts +0 -0
  572. /package/{infra → infrastructure}/repository/notion/notion.config.d.ts +0 -0
  573. /package/{infra → infrastructure}/repository/notion/order/index.d.ts +0 -0
  574. /package/{infra → infrastructure}/repository/notion/order/order.config.d.ts +0 -0
  575. /package/{infra → infrastructure}/repository/notion/partner/index.d.ts +0 -0
  576. /package/{infra → infrastructure}/repository/notion/partner/partner.config.d.ts +0 -0
  577. /package/{infra → infrastructure}/repository/redis/index.d.ts +0 -0
  578. /package/{infra → infrastructure}/repository/redis/operator/index.d.ts +0 -0
  579. /package/{infra → infrastructure}/repository/redis/project/index.d.ts +0 -0
  580. /package/{infra → infrastructure}/repository/redis/redis.config.d.ts +0 -0
  581. /package/{infra → infrastructure}/repository/redis/spec/index.d.ts +0 -0
  582. /package/{infra → infrastructure}/repository/redis/system/index.d.ts +0 -0
  583. /package/utils/{crypto/crypto.d.ts → crypto.d.ts} +0 -0
@@ -1,160 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, inject, signal, Injectable, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER, importProvidersFrom } from '@angular/core';
3
- import * as i1 from '@azure/msal-angular';
4
- import { MsalModule } from '@azure/msal-angular';
5
- import { PublicClientApplication, InteractionType } from '@azure/msal-browser';
6
- import { provideEffect } from '@ng-atomic/core';
7
- import { AppFrameStore } from '@ng-atomic/components/frames/app';
8
- import { AuthService as AuthService$1 } from '@xxmachina/common/auth';
9
- import { toSignal, toObservable } from '@angular/core/rxjs-interop';
10
- import { ReplaySubject, interval, startWith, switchMap, filter, take, lastValueFrom } from 'rxjs';
11
- import { HttpClient } from '@angular/common/http';
12
-
13
- class AuthService {
14
- }
15
- const AZURE_AUTH_CONFIG = new InjectionToken('[@xxmachina/common] AZURE_AUTH_CONFIG');
16
- class AzureAuthService extends AuthService {
17
- msal;
18
- config = inject(AZURE_AUTH_CONFIG);
19
- auth$ = new ReplaySubject(1);
20
- auth = toSignal(this.auth$);
21
- accessToken = signal(null);
22
- accessToken$ = toObservable(this.accessToken);
23
- http = inject(HttpClient);
24
- constructor(msal) {
25
- super();
26
- this.msal = msal;
27
- this.initialize().then(() => {
28
- const account = this.msal.instance.getActiveAccount();
29
- if (account) {
30
- this.auth$.next(account);
31
- }
32
- else {
33
- this.auth$.next(null);
34
- }
35
- });
36
- interval(1_000 * 60 * 5).pipe(startWith(null), switchMap(() => this.auth$.pipe(filter((auth) => !!auth), take(1))), filter(() => !!this.auth())).subscribe(() => {
37
- this.updateAccessToken();
38
- });
39
- }
40
- async initialize() {
41
- await lastValueFrom(this.msal.initialize()).then(() => {
42
- return this.msal.instance.handleRedirectPromise().then((response) => {
43
- if (response !== null) {
44
- this.msal.instance.setActiveAccount(response.account);
45
- }
46
- }).catch((error) => {
47
- console.error('リダイレクト処理エラー:', error);
48
- });
49
- });
50
- }
51
- async signIn() {
52
- try {
53
- const result = await lastValueFrom(this.msal.loginPopup({
54
- scopes: this.config.scopes,
55
- }));
56
- this.msal.instance.setActiveAccount(result.account);
57
- this.auth$.next(result.account);
58
- console.debug('Sign-in result:', result);
59
- await this.acquireAccessToken();
60
- return result.account;
61
- }
62
- catch (error) {
63
- console.error('Sign-in failed:', error);
64
- throw error;
65
- }
66
- }
67
- async signOut() {
68
- try {
69
- this.msal.instance.setActiveAccount(null);
70
- this.auth$.next(null);
71
- this.accessToken.set(null);
72
- }
73
- catch (error) {
74
- console.error('Sign-out failed:', error);
75
- throw error;
76
- }
77
- }
78
- async updateAccessToken(scopes = this.config.scopes) {
79
- try {
80
- const accessToken = await this.acquireAccessToken(scopes);
81
- this.accessToken.set(accessToken);
82
- }
83
- catch (error) {
84
- console.error('Failed to acquire access token:', error);
85
- this.accessToken.set(null);
86
- throw error;
87
- }
88
- }
89
- async acquireAccessToken(scopes = this.config.scopes) {
90
- const account = this.msal.instance.getActiveAccount();
91
- if (!account)
92
- throw new Error('No active account found.');
93
- return lastValueFrom(this.msal.acquireTokenSilent({
94
- account,
95
- scopes,
96
- forceRefresh: true,
97
- })).then((response) => {
98
- this.auth$.next(response.account);
99
- console.debug('[AzureAuthService] response:', response);
100
- return response.accessToken;
101
- });
102
- }
103
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AzureAuthService, deps: [{ token: i1.MsalService }], target: i0.ɵɵFactoryTarget.Injectable });
104
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AzureAuthService, providedIn: 'root' });
105
- }
106
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: AzureAuthService, decorators: [{
107
- type: Injectable,
108
- args: [{ providedIn: 'root' }]
109
- }], ctorParameters: () => [{ type: i1.MsalService }] });
110
-
111
- function provideAppInitializer(useValue) {
112
- return makeEnvironmentProviders([
113
- {
114
- provide: ENVIRONMENT_INITIALIZER,
115
- useValue,
116
- multi: true,
117
- },
118
- ]);
119
- }
120
- function provideAzureAuth(config) {
121
- return makeEnvironmentProviders([
122
- importProvidersFrom(MsalModule.forRoot(new PublicClientApplication(config?.configuration), {
123
- interactionType: InteractionType.Redirect,
124
- authRequest: {
125
- scopes: config.scopes,
126
- },
127
- }, {
128
- interactionType: InteractionType.Redirect,
129
- protectedResourceMap: new Map([
130
- ['https://graph.microsoft.com/v1.0/me', config.scopes],
131
- ]),
132
- })),
133
- { provide: AZURE_AUTH_CONFIG, useValue: config },
134
- { provide: AuthService$1, useClass: AzureAuthService },
135
- provideAppInitializer(() => { inject(AuthService$1); }),
136
- provideEffect(AppFrameStore.ActionId.SIGN_IN_WITH_MICROSOFT, () => {
137
- const auth = inject(AuthService$1);
138
- return () => {
139
- console.debug('auth:', auth);
140
- if (!auth.auth()) {
141
- auth.signIn();
142
- }
143
- else {
144
- console.log('既にログイン済みです。');
145
- }
146
- };
147
- }),
148
- provideEffect(AppFrameStore.ActionId.SIGN_OUT, () => {
149
- const auth = inject(AuthService$1);
150
- return () => auth.signOut();
151
- }),
152
- ]);
153
- }
154
-
155
- /**
156
- * Generated bundle index. Do not edit.
157
- */
158
-
159
- export { AZURE_AUTH_CONFIG, AzureAuthService, provideAppInitializer, provideAzureAuth };
160
- //# sourceMappingURL=xxmachina-common-azure-auth.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxmachina-common-azure-auth.mjs","sources":["../../../../../packages/@xxmachina/common/src/lib/azure-auth/auth.service.ts","../../../../../packages/@xxmachina/common/src/lib/azure-auth/auth.di.ts","../../../../../packages/@xxmachina/common/src/lib/azure-auth/xxmachina-common-azure-auth.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken, signal } from \"@angular/core\";\nimport { toObservable, toSignal } from \"@angular/core/rxjs-interop\";\nimport { filter, interval, lastValueFrom, Observable, ReplaySubject, startWith, switchMap, take } from \"rxjs\";\nimport { MsalService } from '@azure/msal-angular';\nimport { AccountInfo, AuthenticationResult, Configuration } from '@azure/msal-browser';\nimport { HttpClient } from \"@angular/common/http\";\n\nabstract class AuthService {\n abstract readonly auth$: Observable<any>;\n abstract readonly accessToken$: Observable<string>;\n\n abstract signIn(): Promise<any>;\n abstract signOut(): Promise<void>;\n}\n\nexport interface AzureAuthConfig {\n configuration: Configuration,\n scopes: string[];\n}\n\nexport const AZURE_AUTH_CONFIG = new InjectionToken<AzureAuthConfig>('[@xxmachina/common] AZURE_AUTH_CONFIG');\n\n@Injectable({ providedIn: 'root' })\nexport class AzureAuthService extends AuthService {\n protected readonly config = inject(AZURE_AUTH_CONFIG);\n readonly auth$ = new ReplaySubject<AccountInfo>(1);\n readonly auth = toSignal(this.auth$);\n readonly accessToken = signal(null);\n readonly accessToken$ = toObservable(this.accessToken);\n readonly http = inject(HttpClient);\n\n constructor(public msal: MsalService) {\n super();\n\n this.initialize().then(() => {\n const account = this.msal.instance.getActiveAccount();\n if (account) {\n this.auth$.next(account);\n } else {\n this.auth$.next(null);\n }\n });\n\n interval(1_000 * 60 * 5).pipe(\n startWith(null),\n switchMap(() => this.auth$.pipe(\n filter((auth) => !!auth),\n take(1)\n )),\n filter(() => !!this.auth()),\n ).subscribe(() => {\n this.updateAccessToken();\n });\n }\n\n async initialize() {\n await lastValueFrom(this.msal.initialize()).then(() => {\n return this.msal.instance.handleRedirectPromise().then((response) => {\n if (response !== null) {\n this.msal.instance.setActiveAccount(response.account);\n }\n }).catch((error) => {\n console.error('リダイレクト処理エラー:', error);\n });\n });\n }\n\n async signIn(): Promise<any> {\n try {\n const result: AuthenticationResult = await lastValueFrom(this.msal.loginPopup({\n scopes: this.config.scopes,\n }));\n this.msal.instance.setActiveAccount(result.account);\n this.auth$.next(result.account);\n console.debug('Sign-in result:', result);\n await this.acquireAccessToken();\n return result.account;\n } catch (error) {\n console.error('Sign-in failed:', error);\n throw error;\n }\n }\n\n async signOut(): Promise<void> {\n try {\n this.msal.instance.setActiveAccount(null);\n this.auth$.next(null);\n this.accessToken.set(null);\n } catch (error) {\n console.error('Sign-out failed:', error);\n throw error;\n }\n }\n\n protected async updateAccessToken(scopes = this.config.scopes): Promise<void> {\n try {\n const accessToken = await this.acquireAccessToken(scopes);\n this.accessToken.set(accessToken);\n } catch (error) {\n console.error('Failed to acquire access token:', error);\n this.accessToken.set(null);\n throw error;\n }\n }\n\n async acquireAccessToken(scopes = this.config.scopes): Promise<string> {\n const account = this.msal.instance.getActiveAccount();\n if (!account) throw new Error('No active account found.');\n return lastValueFrom(this.msal.acquireTokenSilent({\n account,\n scopes,\n forceRefresh: true,\n })).then((response) => {\n this.auth$.next(response.account);\n console.debug('[AzureAuthService] response:', response);\n return response.accessToken\n });\n }\n}\n","import { ENVIRONMENT_INITIALIZER, EnvironmentProviders, importProvidersFrom, inject, makeEnvironmentProviders } from \"@angular/core\";\nimport { MsalModule } from '@azure/msal-angular';\nimport { InteractionType, PublicClientApplication } from '@azure/msal-browser';\nimport { provideEffect } from \"@ng-atomic/core\";\nimport { AppFrameStore } from \"@ng-atomic/components/frames/app\";\nimport { AuthService } from \"@xxmachina/common/auth\";\nimport { AzureAuthService } from \"./auth.service\";\nimport { AzureAuthConfig, AZURE_AUTH_CONFIG } from \"./auth.service\";\n\nexport function provideAppInitializer(useValue: () => void): EnvironmentProviders {\n return makeEnvironmentProviders([\n {\n provide: ENVIRONMENT_INITIALIZER,\n useValue,\n multi: true,\n },\n ]);\n}\n\n\nexport function provideAzureAuth(config: AzureAuthConfig): EnvironmentProviders {\n return makeEnvironmentProviders([\n importProvidersFrom(MsalModule.forRoot(new PublicClientApplication(config?.configuration), {\n interactionType: InteractionType.Redirect,\n authRequest: {\n scopes: config.scopes,\n },\n }, {\n interactionType: InteractionType.Redirect,\n protectedResourceMap: new Map([\n ['https://graph.microsoft.com/v1.0/me', config.scopes],\n ]),\n })),\n { provide: AZURE_AUTH_CONFIG, useValue: config },\n { provide: AuthService, useClass: AzureAuthService },\n provideAppInitializer(() => { inject(AuthService) }),\n provideEffect(AppFrameStore.ActionId.SIGN_IN_WITH_MICROSOFT, () => {\n const auth = inject(AuthService);\n return () => {\n console.debug('auth:', auth);\n if (!auth.auth()) {\n auth.signIn();\n } else {\n console.log('既にログイン済みです。');\n }\n }\n }),\n provideEffect(AppFrameStore.ActionId.SIGN_OUT, () => {\n const auth = inject(AuthService);\n return () => auth.signOut();\n }),\n ]);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["AuthService"],"mappings":";;;;;;;;;;;;AAOA,MAAe,WAAW,CAAA;AAMzB;MAOY,iBAAiB,GAAG,IAAI,cAAc,CAAkB,uCAAuC;AAGtG,MAAO,gBAAiB,SAAQ,WAAW,CAAA;AAQ5B,IAAA,IAAA;AAPA,IAA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QAAQ,CAAC,sBAAsB,EAAE,MAAK;AAChE,YAAA,MAAM,IAAI,GAAG,MAAM,CAACA,aAAW,CAAC;AAChC,YAAA,OAAO,MAAK;AACV,gBAAA,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC;AAC5B,gBAAA,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,EAAE;oBAChB,IAAI,CAAC,MAAM,EAAE;;qBACR;AACL,oBAAA,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;;AAE9B,aAAC;AACH,SAAC,CAAC;QACF,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAK;AAClD,YAAA,MAAM,IAAI,GAAG,MAAM,CAACA,aAAW,CAAC;AAChC,YAAA,OAAO,MAAM,IAAI,CAAC,OAAO,EAAE;AAC7B,SAAC,CAAC;AACH,KAAA,CAAC;AACJ;;ACpDA;;AAEG;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"xxmachina-common-domain-builder-screen-item.mjs","sources":["../../../../../packages/@xxmachina/common/src/lib/domain/builder/screen-item/screen-item.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain/builder/screen-item/xxmachina-common-domain-builder-screen-item.ts"],"sourcesContent":["import { ScreenItem } from '@xxmachina/common/domain/models';\nimport type { GetDatabaseResponse } from '@notionhq/client/build/src/api-endpoints';\nimport { Database } from '@xxmachina/common/domain/models';\n\nfunction buildPageItem(\n property: GetDatabaseResponse['properties'][string],\n propName: string,\n dbName: string,\n): ScreenItem {\n switch (property.type) {\n case 'select': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'セレクト',\n formula: '',\n valueType: 'string',\n dbName,\n };\n case 'multi_select': return {\n id: property.id,\n name: propName,\n type: '入力(複数選択)',\n notionPropType: 'マルチセレクト',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'relation': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'リレーション',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'rollup': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: 'ロールアップ',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'unique_id': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: 'ユニークID',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'created_time': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '作成日時',\n formula: '',\n valueType: 'date',\n dbName,\n }\n case 'created_by': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '作成者',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'rich_text': return {\n id: property.id,\n name: propName,\n type: '入力(テキスト)',\n notionPropType: 'テキスト',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'number': return {\n id: property.id,\n name: propName,\n type: '入力(数値)',\n notionPropType: '数値',\n formula: '',\n valueType: 'number',\n dbName,\n }\n case 'date': return {\n id: property.id,\n name: propName,\n type: '入力(日時)',\n notionPropType: '日時',\n formula: '',\n valueType: 'date',\n dbName,\n }\n case 'checkbox': return {\n id: property.id,\n name: propName,\n type: '入力(複数選択)',\n notionPropType: 'チェックボックス',\n formula: '',\n valueType: 'boolean',\n dbName,\n }\n case 'title': return {\n id: property.id,\n name: propName,\n type: '入力(テキスト)',\n notionPropType: 'タイトル',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'people': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'ユーザー',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'last_edited_time': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '最終更新日時',\n formula: '',\n valueType: 'date',\n dbName,\n }\n case 'last_edited_by': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '最終更新者',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'status': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'ステータス',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'formula': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '数式',\n formula: '',\n valueType: 'any',\n dbName,\n }\n /* @ts-ignore */\n case 'button': return {\n id: property?.['id'] ?? '',\n name: propName,\n type: 'ボタン',\n notionPropType: 'ボタン',\n formula: '',\n valueType: 'string',\n dbName,\n }\n default: return {\n id: property.id,\n name: propName,\n type: '不明',\n notionPropType: property.type,\n formula: '',\n valueType: 'string',\n dbName,\n };\n }\n}\n\nexport class ScreenItemBuilder {\n build(database: Database): ScreenItem[] {\n const items: ScreenItem[] = [];\n \n Object.entries(database?.properties ?? {}).sort((a, b) => {\n return a[0].localeCompare(b[0]);\n }).filter(([propName, prop]) => {\n // if (propName.startsWith('_')) return false;\n // if (/^\\d/.test(propName)) return false;\n // if (propName.includes('旧エクセル')) return false;\n // if (['formula', 'rollup', 'button'].includes(prop.type)) return false;\n return true;\n }).forEach(([propName, prop]) => {\n const item = buildPageItem(prop, propName, database?.title?.[0]?.plain_text ?? '');\n items.push(item);\n });\n \n return items;\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAIA,SAAS,aAAa,CACpB,QAAmD,EACnD,QAAgB,EAChB,MAAc,EAAA;AAEd,IAAA,QAAQ,QAAQ,CAAC,IAAI;QACnB,KAAK,QAAQ,EAAE,OAAO;YACpB,EAAE,EAAE,QAAQ,CAAC,EAAE;AACf,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,cAAc,EAAE,MAAM;AACtB,YAAA,OAAO,EAAE,EAAE;AACX,YAAA,SAAS,EAAE,QAAQ;YACnB,MAAM;SACP;QACD,KAAK,cAAc,EAAE,OAAO;YAC1B,EAAE,EAAE,QAAQ,CAAC,EAAE;AACf,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,cAAc,EAAE,SAAS;AACzB,YAAA,OAAO,EAAE,EAAE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AAA,cAAc,EAAE,KAAK;AACrB,YAAA,OAAO,EAAE,EAAE;AACX,YAAA,SAAS,EAAE,QAAQ;YACnB,MAAM;SACP;QACD,SAAS,OAAO;YACd,EAAE,EAAE,QAAQ,CAAC,EAAE;AACf,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,IAAI,EAAE,IAAI;YACV,cAAc,EAAE,QAAQ,CAAC,IAAI;AAC7B,YAAA,OAAO,EAAE,EAAE;AACX,YAAA,SAAS,EAAE,QAAQ;YACnB,MAAM;SACP;;AAEL;MAEa,iBAAiB,CAAA;AAC5B,IAAA,KAAK,CAAC,QAAkB,EAAA;QACtB,MAAM,KAAK,GAAiB,EAAE;AAE9B,QAAA,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAI;AACvD,YAAA,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAChC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAI;;;;;AAK7B,YAAA,OAAO,IAAI;SACZ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAI;YAC9B,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,UAAU,IAAI,EAAE,CAAC;AAClF,YAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAClB,SAAC,CAAC;AAEF,QAAA,OAAO,KAAK;;AAEf;;AC5MD;;AAEG;;;;"}
@@ -1,470 +0,0 @@
1
- import { createAction } from '@ng-atomic/core';
2
- import { flatten } from 'flat';
3
- import { omitBy } from 'lodash-es';
4
- import { createNavigateAction } from '@ng-atomic/components/frames/app';
5
-
6
- class CommandBuilder {
7
- buildFromOpenApi(openApi) {
8
- return Object.keys(openApi.getPaths()).flatMap((path) => {
9
- return openApi.getMethods(path).map((method, index) => ({
10
- id: openApi.getOperationId(path, method) ?? `cmd-${index}`,
11
- name: openApi.getSummary(path, method) ?? '',
12
- description: openApi.getDescription(path, method) ?? '',
13
- type: 'webApiRequest',
14
- webApiRequest: {
15
- path: path,
16
- method: method.toLocaleUpperCase(),
17
- contentType: openApi.getContentType(path, method),
18
- responseContentType: openApi.getResponseContentType(path, method),
19
- bodySchema: openApi.getRequestBodySchema(path, method),
20
- serverUrl: openApi.getServerUrl(),
21
- apiJsonUrl: openApi.apiJsonUrl,
22
- security: openApi.getSecurity(path, method) ?? [],
23
- }
24
- }));
25
- });
26
- }
27
- }
28
-
29
- var ActionId;
30
- (function (ActionId) {
31
- ActionId["NAVIGATE_TO_COMMAND_PAGE"] = "[@xxmachina/common] Navigate To Command Page";
32
- ActionId["EXECUTE_COMMAND"] = "[@xxmachina/common] Execute Command";
33
- })(ActionId || (ActionId = {}));
34
- class CommandActionsBuilder {
35
- commands = [];
36
- options = {};
37
- item = null;
38
- filterIds = null;
39
- autoIds = [];
40
- setCommands(commands) {
41
- const newFactory = new CommandActionsBuilder();
42
- newFactory.commands = [...commands];
43
- newFactory.options = { ...this.options };
44
- newFactory.item = this.item;
45
- newFactory.filterIds = this.filterIds;
46
- newFactory.autoIds = this.autoIds;
47
- return newFactory;
48
- }
49
- setOptions(options) {
50
- const newFactory = new CommandActionsBuilder();
51
- newFactory.commands = [...this.commands];
52
- newFactory.options = { ...this.options, ...options };
53
- newFactory.item = this.item;
54
- newFactory.filterIds = this.filterIds;
55
- newFactory.autoIds = this.autoIds;
56
- return newFactory;
57
- }
58
- setItem(item) {
59
- const newFactory = new CommandActionsBuilder();
60
- newFactory.commands = [...this.commands];
61
- newFactory.options = { ...this.options };
62
- newFactory.item = item;
63
- newFactory.filterIds = this.filterIds;
64
- newFactory.autoIds = this.autoIds;
65
- return newFactory;
66
- }
67
- setFilterIds(filterIds = []) {
68
- const newFactory = new CommandActionsBuilder();
69
- newFactory.commands = [...this.commands];
70
- newFactory.options = { ...this.options };
71
- newFactory.item = this.item;
72
- newFactory.filterIds = filterIds.map((id) => typeof id === 'string' ? id : id.id);
73
- newFactory.autoIds = filterIds.filter((id) => typeof id !== 'string' && id.auto).map((id) => id.id);
74
- return newFactory;
75
- }
76
- setAutoIds(autoIds) {
77
- const newFactory = new CommandActionsBuilder();
78
- newFactory.commands = [...this.commands];
79
- newFactory.options = { ...this.options };
80
- newFactory.item = this.item;
81
- newFactory.filterIds = [...this.filterIds];
82
- newFactory.autoIds = autoIds;
83
- return newFactory;
84
- }
85
- applyFilter(commands) {
86
- if (!this.filterIds)
87
- return commands;
88
- return this.filterIds.map((id) => commands.find((command) => command.id === id))
89
- .filter((command) => !!command);
90
- }
91
- buildAction(id) {
92
- const command = this.commands.find((command) => command.id === id);
93
- if (!command)
94
- throw new Error(`Command not found: ${id}`);
95
- const actionId = this.autoIds.includes(command.id)
96
- ? ActionId.EXECUTE_COMMAND
97
- : ActionId.NAVIGATE_TO_COMMAND_PAGE;
98
- const creator = createAction(actionId, command.webApiRequest.bodySchema, {
99
- name: command.name,
100
- icon: this.options.icon || 'default',
101
- ...this.options,
102
- });
103
- return creator.create({
104
- command,
105
- body: this.item,
106
- options: {
107
- queryId: this.options.queryId,
108
- confirm: this.options.confirm,
109
- }
110
- });
111
- }
112
- buildActions(item, navigationExtras = {}, overwrite = {}) {
113
- const filteredCommands = this.applyFilter(this.commands);
114
- return filteredCommands.map((command) => {
115
- if (this.autoIds.includes(command.id)) {
116
- return createAction(ActionId.EXECUTE_COMMAND, command.webApiRequest.bodySchema, {
117
- name: command.name,
118
- icon: this.options.icon || 'default',
119
- }).create({
120
- command,
121
- body: this.item,
122
- options: {
123
- queryId: this.options.queryId,
124
- confirm: this.options.confirm,
125
- }
126
- }, overwrite);
127
- }
128
- else {
129
- const data = omitBy(flatten({ data: this.item, queryId: this.options.queryId }), value => typeof value === 'undefined');
130
- return createNavigateAction(['commands', { skip: true }, command.id, data], navigationExtras, {
131
- name: command.name,
132
- icon: this.options.icon,
133
- ...overwrite,
134
- });
135
- }
136
- });
137
- }
138
- buildItemActions() {
139
- return (item) => this.setItem(item).buildActions();
140
- }
141
- }
142
- function createCommandNavigateAction(command, navigationExtras = {}, item = {}, options = {}, overwrite = {}) {
143
- if (!command)
144
- return null;
145
- return new CommandActionsBuilder()
146
- .setItem(item)
147
- .setCommands([command])
148
- .setOptions(options)
149
- .setFilterIds([command.id])
150
- .buildActions(item, navigationExtras, overwrite)[0];
151
- }
152
- function createCommandExecutionAction(command, item = {}, options = {}, overwrite = {}) {
153
- if (!command)
154
- return null;
155
- return new CommandActionsBuilder()
156
- .setItem(item)
157
- .setCommands([command])
158
- .setOptions(options)
159
- .setFilterIds([command.id])
160
- .setAutoIds([command.id])
161
- .buildActions(item, undefined, overwrite)[0];
162
- }
163
-
164
- const NOTION_PROP_TYPE_MAP = {
165
- people: 'string',
166
- unique_id: 'string',
167
- rich_text: 'string',
168
- title: 'string',
169
- text: 'string',
170
- number: 'number',
171
- select: 'enum',
172
- status: 'enum',
173
- multi_select: 'string',
174
- date: 'date',
175
- person: 'string',
176
- files: 'string',
177
- checkbox: 'boolean',
178
- url: 'string',
179
- email: 'string',
180
- phone_number: 'string',
181
- relation: 'string',
182
- rollup: 'string',
183
- created_time: 'date',
184
- created_by: 'string',
185
- last_edited_time: 'date',
186
- last_edited_by: 'string',
187
- };
188
- const NOTION_KEY_MAP = {
189
- 'relation': 'FK',
190
- 'unique_id': 'UK',
191
- };
192
- class ErBuilder {
193
- build(databases) {
194
- const schemas = [];
195
- const dbIdToName = databases.reduce((acc, db) => ({
196
- ...acc,
197
- [db.id]: db?.title?.[0]?.plain_text
198
- }), {});
199
- for (const database of databases) {
200
- const schema = this.parseDatabaseSchema(database, database?.title?.[0]?.plain_text, dbIdToName);
201
- schemas.push(schema);
202
- }
203
- return this.buildMermaidER(schemas);
204
- }
205
- parseDatabaseSchema(database, name = '', map = {}) {
206
- const properties = database.properties;
207
- const fields = [];
208
- const relations = [];
209
- Object.keys(properties)
210
- .filter(propName => {
211
- if (['formula', 'rollup', 'button'].includes(properties[propName].type))
212
- return false;
213
- return true;
214
- })
215
- .sort()
216
- .forEach(propName => {
217
- const prop = properties[propName];
218
- const type = prop.type;
219
- const mappedType = NOTION_PROP_TYPE_MAP[type];
220
- const key = NOTION_KEY_MAP[type] ?? ' ';
221
- const field = `${mappedType} ${type} ${key} "${propName}"`;
222
- fields.push(field);
223
- // リレーションシップの解析
224
- if (type === 'relation') {
225
- const relation = prop['relation'];
226
- if (relation && relation.database_id) {
227
- const targetDbId = relation.database_id;
228
- const targetDbName = map[targetDbId] || 'Unknown';
229
- relations.push({
230
- source: name,
231
- target: targetDbName,
232
- label: propName,
233
- type: '||--||', // リレーションのタイプを適宜設定
234
- });
235
- }
236
- else if (relation && Array.isArray(relation)) {
237
- relation.forEach(rel => {
238
- const targetDbId = rel.database_id;
239
- const targetDbName = map[targetDbId] || 'Unknown';
240
- relations.push({
241
- source: name,
242
- target: targetDbName,
243
- label: propName,
244
- type: '||--o{',
245
- });
246
- });
247
- }
248
- }
249
- });
250
- return { name, fields, relations };
251
- }
252
- buildMermaidER(schemas) {
253
- let mermaid = 'erDiagram\n';
254
- // エンティティの定義
255
- schemas.forEach(schema => {
256
- mermaid += ` "${schema.name}" {\n`;
257
- mermaid += schema.fields.map(field => ` ${field}`).join('\n');
258
- mermaid += '\n }\n';
259
- });
260
- // リレーションシップの定義
261
- schemas.forEach(schema => {
262
- schema.relations.forEach(relation => {
263
- mermaid += ` "${relation.source}" ${relation.type} "${relation.target}" : "${relation.label}"\n`;
264
- });
265
- });
266
- return mermaid;
267
- }
268
- }
269
-
270
- function buildPageItem(property, propName, dbName) {
271
- switch (property.type) {
272
- case 'select': return {
273
- id: property.id,
274
- name: propName,
275
- type: '入力(単一選択)',
276
- notionPropType: 'セレクト',
277
- formula: '',
278
- valueType: 'string',
279
- dbName,
280
- };
281
- case 'multi_select': return {
282
- id: property.id,
283
- name: propName,
284
- type: '入力(複数選択)',
285
- notionPropType: 'マルチセレクト',
286
- formula: '',
287
- valueType: 'string',
288
- dbName,
289
- };
290
- case 'relation': return {
291
- id: property.id,
292
- name: propName,
293
- type: '入力(単一選択)',
294
- notionPropType: 'リレーション',
295
- formula: '',
296
- valueType: 'string',
297
- dbName,
298
- };
299
- case 'rollup': return {
300
- id: property.id,
301
- name: propName,
302
- type: '表示',
303
- notionPropType: 'ロールアップ',
304
- formula: '',
305
- valueType: 'string',
306
- dbName,
307
- };
308
- case 'unique_id': return {
309
- id: property.id,
310
- name: propName,
311
- type: '表示',
312
- notionPropType: 'ユニークID',
313
- formula: '',
314
- valueType: 'string',
315
- dbName,
316
- };
317
- case 'created_time': return {
318
- id: property.id,
319
- name: propName,
320
- type: '表示',
321
- notionPropType: '作成日時',
322
- formula: '',
323
- valueType: 'date',
324
- dbName,
325
- };
326
- case 'created_by': return {
327
- id: property.id,
328
- name: propName,
329
- type: '表示',
330
- notionPropType: '作成者',
331
- formula: '',
332
- valueType: 'string',
333
- dbName,
334
- };
335
- case 'rich_text': return {
336
- id: property.id,
337
- name: propName,
338
- type: '入力(テキスト)',
339
- notionPropType: 'テキスト',
340
- formula: '',
341
- valueType: 'string',
342
- dbName,
343
- };
344
- case 'number': return {
345
- id: property.id,
346
- name: propName,
347
- type: '入力(数値)',
348
- notionPropType: '数値',
349
- formula: '',
350
- valueType: 'number',
351
- dbName,
352
- };
353
- case 'date': return {
354
- id: property.id,
355
- name: propName,
356
- type: '入力(日時)',
357
- notionPropType: '日時',
358
- formula: '',
359
- valueType: 'date',
360
- dbName,
361
- };
362
- case 'checkbox': return {
363
- id: property.id,
364
- name: propName,
365
- type: '入力(複数選択)',
366
- notionPropType: 'チェックボックス',
367
- formula: '',
368
- valueType: 'boolean',
369
- dbName,
370
- };
371
- case 'title': return {
372
- id: property.id,
373
- name: propName,
374
- type: '入力(テキスト)',
375
- notionPropType: 'タイトル',
376
- formula: '',
377
- valueType: 'string',
378
- dbName,
379
- };
380
- case 'people': return {
381
- id: property.id,
382
- name: propName,
383
- type: '入力(単一選択)',
384
- notionPropType: 'ユーザー',
385
- formula: '',
386
- valueType: 'string',
387
- dbName,
388
- };
389
- case 'last_edited_time': return {
390
- id: property.id,
391
- name: propName,
392
- type: '表示',
393
- notionPropType: '最終更新日時',
394
- formula: '',
395
- valueType: 'date',
396
- dbName,
397
- };
398
- case 'last_edited_by': return {
399
- id: property.id,
400
- name: propName,
401
- type: '表示',
402
- notionPropType: '最終更新者',
403
- formula: '',
404
- valueType: 'string',
405
- dbName,
406
- };
407
- case 'status': return {
408
- id: property.id,
409
- name: propName,
410
- type: '入力(単一選択)',
411
- notionPropType: 'ステータス',
412
- formula: '',
413
- valueType: 'string',
414
- dbName,
415
- };
416
- case 'formula': return {
417
- id: property.id,
418
- name: propName,
419
- type: '表示',
420
- notionPropType: '数式',
421
- formula: '',
422
- valueType: 'any',
423
- dbName,
424
- };
425
- /* @ts-ignore */
426
- case 'button': return {
427
- id: property?.['id'] ?? '',
428
- name: propName,
429
- type: 'ボタン',
430
- notionPropType: 'ボタン',
431
- formula: '',
432
- valueType: 'string',
433
- dbName,
434
- };
435
- default: return {
436
- id: property.id,
437
- name: propName,
438
- type: '不明',
439
- notionPropType: property.type,
440
- formula: '',
441
- valueType: 'string',
442
- dbName,
443
- };
444
- }
445
- }
446
- class ScreenItemBuilder {
447
- build(database) {
448
- const items = [];
449
- Object.entries(database?.properties ?? {}).sort((a, b) => {
450
- return a[0].localeCompare(b[0]);
451
- }).filter(([propName, prop]) => {
452
- // if (propName.startsWith('_')) return false;
453
- // if (/^\d/.test(propName)) return false;
454
- // if (propName.includes('旧エクセル')) return false;
455
- // if (['formula', 'rollup', 'button'].includes(prop.type)) return false;
456
- return true;
457
- }).forEach(([propName, prop]) => {
458
- const item = buildPageItem(prop, propName, database?.title?.[0]?.plain_text ?? '');
459
- items.push(item);
460
- });
461
- return items;
462
- }
463
- }
464
-
465
- /**
466
- * Generated bundle index. Do not edit.
467
- */
468
-
469
- export { ActionId, CommandActionsBuilder, CommandBuilder, ErBuilder, ScreenItemBuilder, createCommandExecutionAction, createCommandNavigateAction };
470
- //# sourceMappingURL=xxmachina-common-domain-builder.mjs.map