@xxmachina/common 19.24.1 → 19.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/fesm2022/xxmachina-common-_shared-auth.mjs.map +1 -1
  2. package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +3 -3
  3. package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +1 -1
  4. package/fesm2022/xxmachina-common-_shared-meta.mjs.map +1 -1
  5. package/fesm2022/xxmachina-common-auth-azure.mjs +4 -4
  6. package/fesm2022/xxmachina-common-auth-azure.mjs.map +1 -1
  7. package/fesm2022/xxmachina-common-auth-core.mjs +3 -3
  8. package/fesm2022/xxmachina-common-auth-core.mjs.map +1 -1
  9. package/fesm2022/xxmachina-common-auth-firebase.mjs.map +1 -1
  10. package/fesm2022/xxmachina-common-auth-passports-anonymous.mjs.map +1 -1
  11. package/fesm2022/xxmachina-common-auth-passports-firebase.mjs.map +1 -1
  12. package/fesm2022/xxmachina-common-auth-passports-internal.mjs.map +1 -1
  13. package/fesm2022/xxmachina-common-auth-passports-msal.mjs.map +1 -1
  14. package/fesm2022/xxmachina-common-auth-passports.mjs.map +1 -1
  15. package/fesm2022/xxmachina-common-auth.mjs +3 -3
  16. package/fesm2022/xxmachina-common-auth.mjs.map +1 -1
  17. package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +1 -1
  18. package/fesm2022/xxmachina-common-domain-builder.mjs.map +1 -1
  19. package/fesm2022/xxmachina-common-domain-models-presenter.mjs.map +1 -1
  20. package/fesm2022/xxmachina-common-domain-models.mjs.map +1 -1
  21. package/fesm2022/xxmachina-common-domain.mjs.map +1 -1
  22. package/fesm2022/xxmachina-common-infra-converters-google.mjs +3 -3
  23. package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +1 -1
  24. package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +1 -1
  25. package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +5 -5
  26. package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +1 -1
  27. package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +1 -1
  28. package/fesm2022/xxmachina-common-infra-external.mjs +3 -3
  29. package/fesm2022/xxmachina-common-infra-external.mjs.map +1 -1
  30. package/fesm2022/xxmachina-common-infra-query-firestore.mjs +6 -6
  31. package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +1 -1
  32. package/fesm2022/xxmachina-common-infra-query-hasura.mjs +3 -3
  33. package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +1 -1
  34. package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +1 -1
  35. package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +15 -15
  36. package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +1 -1
  37. package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +6 -6
  38. package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +1 -1
  39. package/fesm2022/xxmachina-common-infra-repository-notion.mjs +15 -15
  40. package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +1 -1
  41. package/fesm2022/xxmachina-common-infra.mjs +114 -111
  42. package/fesm2022/xxmachina-common-infra.mjs.map +1 -1
  43. package/fesm2022/xxmachina-common-invoice-domain-builders.mjs.map +1 -1
  44. package/fesm2022/xxmachina-common-invoice-domain-models.mjs.map +1 -1
  45. package/fesm2022/xxmachina-common-invoice-domain-resolvers.mjs.map +1 -1
  46. package/fesm2022/xxmachina-common-invoice-domain.mjs.map +1 -1
  47. package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs +3 -3
  48. package/fesm2022/xxmachina-common-invoice-usecase-contract.mjs.map +1 -1
  49. package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs +3 -3
  50. package/fesm2022/xxmachina-common-invoice-usecase-invoice.mjs.map +1 -1
  51. package/fesm2022/xxmachina-common-invoice-usecase-order.mjs +3 -3
  52. package/fesm2022/xxmachina-common-invoice-usecase-order.mjs.map +1 -1
  53. package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs +3 -3
  54. package/fesm2022/xxmachina-common-invoice-usecase-partner.mjs.map +1 -1
  55. package/fesm2022/xxmachina-common-services-graphql.mjs +9 -9
  56. package/fesm2022/xxmachina-common-services-graphql.mjs.map +1 -1
  57. package/fesm2022/xxmachina-common-services-query-config.mjs +3 -3
  58. package/fesm2022/xxmachina-common-services-query-config.mjs.map +1 -1
  59. package/fesm2022/xxmachina-common-services-query.mjs +6 -6
  60. package/fesm2022/xxmachina-common-services-query.mjs.map +1 -1
  61. package/fesm2022/xxmachina-common-services-speech.mjs +10 -10
  62. package/fesm2022/xxmachina-common-services-speech.mjs.map +1 -1
  63. package/fesm2022/xxmachina-common-services-transformer.mjs +3 -3
  64. package/fesm2022/xxmachina-common-services-transformer.mjs.map +1 -1
  65. package/fesm2022/xxmachina-common-stores-firestore.mjs.map +1 -1
  66. package/fesm2022/xxmachina-common-stores-hasura.mjs.map +1 -1
  67. package/fesm2022/xxmachina-common-stores-inmemory.mjs +3 -3
  68. package/fesm2022/xxmachina-common-stores-inmemory.mjs.map +1 -1
  69. package/fesm2022/xxmachina-common-stores.mjs.map +1 -1
  70. package/fesm2022/xxmachina-common-usecase-assistant.mjs +3 -3
  71. package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +1 -1
  72. package/fesm2022/xxmachina-common-usecase-database.mjs +3 -3
  73. package/fesm2022/xxmachina-common-usecase-database.mjs.map +1 -1
  74. package/fesm2022/xxmachina-common-usecase-graphql.mjs +3 -3
  75. package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +1 -1
  76. package/fesm2022/xxmachina-common-usecase-link.mjs +3 -3
  77. package/fesm2022/xxmachina-common-usecase-link.mjs.map +1 -1
  78. package/fesm2022/xxmachina-common-usecase-project.mjs +3 -3
  79. package/fesm2022/xxmachina-common-usecase-project.mjs.map +1 -1
  80. package/fesm2022/xxmachina-common-usecase-spec.mjs +3 -3
  81. package/fesm2022/xxmachina-common-usecase-spec.mjs.map +1 -1
  82. package/fesm2022/xxmachina-common-usecase.mjs +18 -18
  83. package/fesm2022/xxmachina-common-usecase.mjs.map +1 -1
  84. package/fesm2022/xxmachina-common-utils-crypto.mjs.map +1 -1
  85. package/fesm2022/xxmachina-common-utils.mjs.map +1 -1
  86. package/fesm2022/xxmachina-common.mjs.map +1 -1
  87. package/package.json +143 -143
  88. package/{_shared/auth/index.d.ts → types/xxmachina-common-_shared-auth.d.ts} +1 -1
  89. package/types/xxmachina-common-_shared-auth.d.ts.map +1 -0
  90. package/{_shared/meta/redis/index.d.ts → types/xxmachina-common-_shared-meta-redis.d.ts} +1 -1
  91. package/types/xxmachina-common-_shared-meta-redis.d.ts.map +1 -0
  92. package/{_shared/meta/index.d.ts → types/xxmachina-common-_shared-meta.d.ts} +1 -1
  93. package/types/xxmachina-common-_shared-meta.d.ts.map +1 -0
  94. package/{auth/azure/index.d.ts → types/xxmachina-common-auth-azure.d.ts} +1 -1
  95. package/types/xxmachina-common-auth-azure.d.ts.map +1 -0
  96. package/{auth/index.d.ts → types/xxmachina-common-auth-core.d.ts} +1 -1
  97. package/types/xxmachina-common-auth-core.d.ts.map +1 -0
  98. package/{auth/firebase/index.d.ts → types/xxmachina-common-auth-firebase.d.ts} +1 -1
  99. package/types/xxmachina-common-auth-firebase.d.ts.map +1 -0
  100. package/{auth/passports/anonymous/index.d.ts → types/xxmachina-common-auth-passports-anonymous.d.ts} +1 -1
  101. package/types/xxmachina-common-auth-passports-anonymous.d.ts.map +1 -0
  102. package/{auth/passports/firebase/index.d.ts → types/xxmachina-common-auth-passports-firebase.d.ts} +1 -1
  103. package/types/xxmachina-common-auth-passports-firebase.d.ts.map +1 -0
  104. package/{auth/passports/internal/index.d.ts → types/xxmachina-common-auth-passports-internal.d.ts} +1 -1
  105. package/types/xxmachina-common-auth-passports-internal.d.ts.map +1 -0
  106. package/{auth/passports/msal/index.d.ts → types/xxmachina-common-auth-passports-msal.d.ts} +1 -1
  107. package/types/xxmachina-common-auth-passports-msal.d.ts.map +1 -0
  108. package/{auth/passports/index.d.ts → types/xxmachina-common-auth-passports.d.ts} +1 -1
  109. package/types/xxmachina-common-auth-passports.d.ts.map +1 -0
  110. package/{auth/core/index.d.ts → types/xxmachina-common-auth.d.ts} +1 -1
  111. package/types/xxmachina-common-auth.d.ts.map +1 -0
  112. package/{domain/builder/screen-item/index.d.ts → types/xxmachina-common-domain-builder-screen-item.d.ts} +1 -1
  113. package/types/xxmachina-common-domain-builder-screen-item.d.ts.map +1 -0
  114. package/{domain/builder/index.d.ts → types/xxmachina-common-domain-builder.d.ts} +1 -1
  115. package/types/xxmachina-common-domain-builder.d.ts.map +1 -0
  116. package/{domain/models/presenter/index.d.ts → types/xxmachina-common-domain-models-presenter.d.ts} +1 -1
  117. package/types/xxmachina-common-domain-models-presenter.d.ts.map +1 -0
  118. package/{domain/models/index.d.ts → types/xxmachina-common-domain-models.d.ts} +1 -1
  119. package/types/xxmachina-common-domain-models.d.ts.map +1 -0
  120. package/{domain/index.d.ts → types/xxmachina-common-domain.d.ts} +1 -1
  121. package/types/xxmachina-common-domain.d.ts.map +1 -0
  122. package/{infra/converters/google/index.d.ts → types/xxmachina-common-infra-converters-google.d.ts} +1 -1
  123. package/types/xxmachina-common-infra-converters-google.d.ts.map +1 -0
  124. package/{infra/external/data-connect/index.d.ts → types/xxmachina-common-infra-external-data-connect.d.ts} +1 -1
  125. package/types/xxmachina-common-infra-external-data-connect.d.ts.map +1 -0
  126. package/{infra/external/quick-js/index.d.ts → types/xxmachina-common-infra-external-quick-js.d.ts} +1 -1
  127. package/types/xxmachina-common-infra-external-quick-js.d.ts.map +1 -0
  128. package/{infra/external/resend/index.d.ts → types/xxmachina-common-infra-external-resend.d.ts} +1 -1
  129. package/types/xxmachina-common-infra-external-resend.d.ts.map +1 -0
  130. package/{infra/external/index.d.ts → types/xxmachina-common-infra-external.d.ts} +3 -3
  131. package/types/xxmachina-common-infra-external.d.ts.map +1 -0
  132. package/{infra/query/firestore/index.d.ts → types/xxmachina-common-infra-query-firestore.d.ts} +1 -1
  133. package/types/xxmachina-common-infra-query-firestore.d.ts.map +1 -0
  134. package/{infra/query/hasura/index.d.ts → types/xxmachina-common-infra-query-hasura.d.ts} +1 -1
  135. package/types/xxmachina-common-infra-query-hasura.d.ts.map +1 -0
  136. package/{infra/repository/dataconnect/index.d.ts → types/xxmachina-common-infra-repository-dataconnect.d.ts} +1 -1
  137. package/types/xxmachina-common-infra-repository-dataconnect.d.ts.map +1 -0
  138. package/{infra/repository/firestore/index.d.ts → types/xxmachina-common-infra-repository-firestore.d.ts} +1 -1
  139. package/types/xxmachina-common-infra-repository-firestore.d.ts.map +1 -0
  140. package/{infra/repository/hasura/index.d.ts → types/xxmachina-common-infra-repository-hasura.d.ts} +1 -1
  141. package/types/xxmachina-common-infra-repository-hasura.d.ts.map +1 -0
  142. package/{infra/repository/notion/index.d.ts → types/xxmachina-common-infra-repository-notion.d.ts} +1 -1
  143. package/types/xxmachina-common-infra-repository-notion.d.ts.map +1 -0
  144. package/{infra/index.d.ts → types/xxmachina-common-infra.d.ts} +73 -44
  145. package/types/xxmachina-common-infra.d.ts.map +1 -0
  146. package/{invoice/domain/builders/index.d.ts → types/xxmachina-common-invoice-domain-builders.d.ts} +1 -1
  147. package/types/xxmachina-common-invoice-domain-builders.d.ts.map +1 -0
  148. package/{invoice/domain/models/index.d.ts → types/xxmachina-common-invoice-domain-models.d.ts} +1 -1
  149. package/types/xxmachina-common-invoice-domain-models.d.ts.map +1 -0
  150. package/{invoice/domain/resolvers/index.d.ts → types/xxmachina-common-invoice-domain-resolvers.d.ts} +1 -1
  151. package/types/xxmachina-common-invoice-domain-resolvers.d.ts.map +1 -0
  152. package/{invoice/domain/index.d.ts → types/xxmachina-common-invoice-domain.d.ts} +1 -1
  153. package/types/xxmachina-common-invoice-domain.d.ts.map +1 -0
  154. package/{invoice/usecase/contract/index.d.ts → types/xxmachina-common-invoice-usecase-contract.d.ts} +1 -1
  155. package/types/xxmachina-common-invoice-usecase-contract.d.ts.map +1 -0
  156. package/{invoice/usecase/invoice/index.d.ts → types/xxmachina-common-invoice-usecase-invoice.d.ts} +1 -1
  157. package/types/xxmachina-common-invoice-usecase-invoice.d.ts.map +1 -0
  158. package/{invoice/usecase/order/index.d.ts → types/xxmachina-common-invoice-usecase-order.d.ts} +1 -1
  159. package/types/xxmachina-common-invoice-usecase-order.d.ts.map +1 -0
  160. package/{invoice/usecase/partner/index.d.ts → types/xxmachina-common-invoice-usecase-partner.d.ts} +1 -1
  161. package/types/xxmachina-common-invoice-usecase-partner.d.ts.map +1 -0
  162. package/{services/graphql/index.d.ts → types/xxmachina-common-services-graphql.d.ts} +1 -1
  163. package/types/xxmachina-common-services-graphql.d.ts.map +1 -0
  164. package/{services/query/config/index.d.ts → types/xxmachina-common-services-query-config.d.ts} +1 -1
  165. package/types/xxmachina-common-services-query-config.d.ts.map +1 -0
  166. package/{services/query/index.d.ts → types/xxmachina-common-services-query.d.ts} +1 -1
  167. package/types/xxmachina-common-services-query.d.ts.map +1 -0
  168. package/{services/speech/index.d.ts → types/xxmachina-common-services-speech.d.ts} +1 -1
  169. package/types/xxmachina-common-services-speech.d.ts.map +1 -0
  170. package/{services/transformer/index.d.ts → types/xxmachina-common-services-transformer.d.ts} +1 -1
  171. package/types/xxmachina-common-services-transformer.d.ts.map +1 -0
  172. package/{stores/firestore/index.d.ts → types/xxmachina-common-stores-firestore.d.ts} +1 -1
  173. package/types/xxmachina-common-stores-firestore.d.ts.map +1 -0
  174. package/{stores/hasura/index.d.ts → types/xxmachina-common-stores-hasura.d.ts} +1 -1
  175. package/types/xxmachina-common-stores-hasura.d.ts.map +1 -0
  176. package/{stores/inmemory/index.d.ts → types/xxmachina-common-stores-inmemory.d.ts} +1 -1
  177. package/types/xxmachina-common-stores-inmemory.d.ts.map +1 -0
  178. package/{stores/index.d.ts → types/xxmachina-common-stores.d.ts} +6 -6
  179. package/types/xxmachina-common-stores.d.ts.map +1 -0
  180. package/{usecase/assistant/index.d.ts → types/xxmachina-common-usecase-assistant.d.ts} +1 -1
  181. package/types/xxmachina-common-usecase-assistant.d.ts.map +1 -0
  182. package/{usecase/database/index.d.ts → types/xxmachina-common-usecase-database.d.ts} +1 -1
  183. package/types/xxmachina-common-usecase-database.d.ts.map +1 -0
  184. package/{usecase/graphql/index.d.ts → types/xxmachina-common-usecase-graphql.d.ts} +1 -1
  185. package/types/xxmachina-common-usecase-graphql.d.ts.map +1 -0
  186. package/{usecase/link/index.d.ts → types/xxmachina-common-usecase-link.d.ts} +1 -1
  187. package/types/xxmachina-common-usecase-link.d.ts.map +1 -0
  188. package/{usecase/project/index.d.ts → types/xxmachina-common-usecase-project.d.ts} +1 -1
  189. package/types/xxmachina-common-usecase-project.d.ts.map +1 -0
  190. package/{usecase/spec/index.d.ts → types/xxmachina-common-usecase-spec.d.ts} +1 -1
  191. package/types/xxmachina-common-usecase-spec.d.ts.map +1 -0
  192. package/{usecase/index.d.ts → types/xxmachina-common-usecase.d.ts} +1 -1
  193. package/types/xxmachina-common-usecase.d.ts.map +1 -0
  194. package/{utils/crypto/index.d.ts → types/xxmachina-common-utils-crypto.d.ts} +1 -1
  195. package/types/xxmachina-common-utils-crypto.d.ts.map +1 -0
  196. package/{utils/index.d.ts → types/xxmachina-common-utils.d.ts} +1 -1
  197. package/types/xxmachina-common-utils.d.ts.map +1 -0
  198. package/types/xxmachina-common.d.ts +2 -0
  199. package/types/xxmachina-common.d.ts.map +1 -0
  200. package/_shared/auth/index.d.ts.map +0 -1
  201. package/_shared/meta/index.d.ts.map +0 -1
  202. package/_shared/meta/redis/index.d.ts.map +0 -1
  203. package/auth/azure/index.d.ts.map +0 -1
  204. package/auth/core/index.d.ts.map +0 -1
  205. package/auth/firebase/index.d.ts.map +0 -1
  206. package/auth/index.d.ts.map +0 -1
  207. package/auth/passports/anonymous/index.d.ts.map +0 -1
  208. package/auth/passports/firebase/index.d.ts.map +0 -1
  209. package/auth/passports/index.d.ts.map +0 -1
  210. package/auth/passports/internal/index.d.ts.map +0 -1
  211. package/auth/passports/msal/index.d.ts.map +0 -1
  212. package/domain/builder/index.d.ts.map +0 -1
  213. package/domain/builder/screen-item/index.d.ts.map +0 -1
  214. package/domain/index.d.ts.map +0 -1
  215. package/domain/models/index.d.ts.map +0 -1
  216. package/domain/models/presenter/index.d.ts.map +0 -1
  217. package/index.d.ts +0 -2
  218. package/index.d.ts.map +0 -1
  219. package/infra/converters/google/index.d.ts.map +0 -1
  220. package/infra/external/data-connect/index.d.ts.map +0 -1
  221. package/infra/external/index.d.ts.map +0 -1
  222. package/infra/external/quick-js/index.d.ts.map +0 -1
  223. package/infra/external/resend/index.d.ts.map +0 -1
  224. package/infra/index.d.ts.map +0 -1
  225. package/infra/query/firestore/index.d.ts.map +0 -1
  226. package/infra/query/hasura/index.d.ts.map +0 -1
  227. package/infra/repository/dataconnect/index.d.ts.map +0 -1
  228. package/infra/repository/firestore/index.d.ts.map +0 -1
  229. package/infra/repository/hasura/index.d.ts.map +0 -1
  230. package/infra/repository/notion/index.d.ts.map +0 -1
  231. package/invoice/domain/builders/index.d.ts.map +0 -1
  232. package/invoice/domain/index.d.ts.map +0 -1
  233. package/invoice/domain/models/index.d.ts.map +0 -1
  234. package/invoice/domain/resolvers/index.d.ts.map +0 -1
  235. package/invoice/usecase/contract/index.d.ts.map +0 -1
  236. package/invoice/usecase/invoice/index.d.ts.map +0 -1
  237. package/invoice/usecase/order/index.d.ts.map +0 -1
  238. package/invoice/usecase/partner/index.d.ts.map +0 -1
  239. package/services/graphql/index.d.ts.map +0 -1
  240. package/services/query/config/index.d.ts.map +0 -1
  241. package/services/query/index.d.ts.map +0 -1
  242. package/services/speech/index.d.ts.map +0 -1
  243. package/services/transformer/index.d.ts.map +0 -1
  244. package/stores/firestore/index.d.ts.map +0 -1
  245. package/stores/hasura/index.d.ts.map +0 -1
  246. package/stores/index.d.ts.map +0 -1
  247. package/stores/inmemory/index.d.ts.map +0 -1
  248. package/usecase/assistant/index.d.ts.map +0 -1
  249. package/usecase/database/index.d.ts.map +0 -1
  250. package/usecase/graphql/index.d.ts.map +0 -1
  251. package/usecase/index.d.ts.map +0 -1
  252. package/usecase/link/index.d.ts.map +0 -1
  253. package/usecase/project/index.d.ts.map +0 -1
  254. package/usecase/spec/index.d.ts.map +0 -1
  255. package/utils/crypto/index.d.ts.map +0 -1
  256. package/utils/index.d.ts.map +0 -1
@@ -3,14 +3,14 @@ import * as i0 from '@angular/core';
3
3
  import { Injectable, InjectionToken, inject } from '@angular/core';
4
4
  import { injectOpenAiService } from '@nx-ddd/common/infrastructure/externals/openai';
5
5
  import { injectDataConnectService } from '@xxmachina/common/infra/external/data-connect';
6
+ import { NotionRepository as NotionRepository$1, createConverter, getDatabaseId, provideNotionConfig as provideNotionConfig$1, NOTION_ACCESS_TOKEN } from '@nx-ddd/notion';
7
+ import { Contract, Invoice, Order } from '@xxmachina/common/invoice/domain';
8
+ import { Partner } from '@xxmachina/common/invoice/domain/models';
6
9
  import { provideRedisConfig as provideRedisConfig$1, RedisRepository, Converter, REDIS_CONFIG } from '@xxmachina/common/_shared/meta/redis';
7
10
  import { float32Buffer, bufferFloat32 } from '@xxmachina/common/utils/crypto';
8
11
  import { GoogleConverter } from '@xxmachina/common/infra/converters/google';
9
12
  import { FirestoreRepository as FirestoreRepository$1, injectConverter } from '@nx-ddd/firestore';
10
13
  import { Query, Resource } from '@xxmachina/common/domain/models';
11
- import { NotionRepository as NotionRepository$1, createConverter, getDatabaseId, provideNotionConfig as provideNotionConfig$1 } from '@nx-ddd/notion';
12
- import { Contract, Invoice, Order } from '@xxmachina/common/invoice/domain';
13
- import { Partner } from '@xxmachina/common/invoice/domain/models';
14
14
 
15
15
  function provideExternalConfig(config) {
16
16
  return [
@@ -24,14 +24,77 @@ class ExternalService {
24
24
  getAiAdapter(aiConfig) {
25
25
  return {};
26
26
  }
27
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ExternalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
28
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ExternalService, providedIn: 'root' });
27
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ExternalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
28
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ExternalService, providedIn: 'root' });
29
+ }
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ExternalService, decorators: [{
31
+ type: Injectable,
32
+ args: [{ providedIn: 'root' }]
33
+ }] });
34
+
35
+ const CONTRACT_CONFIG = new InjectionToken('CONTRACT_CONFIG');
36
+ function provideContractConfig(config) {
37
+ return { provide: CONTRACT_CONFIG, useValue: config };
38
+ }
39
+
40
+ class ContractNotionRepository extends NotionRepository$1 {
41
+ converter = createConverter(Contract);
42
+ databaseId = getDatabaseId(Contract);
43
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ContractNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
44
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ContractNotionRepository, providedIn: 'root' });
45
+ }
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ContractNotionRepository, decorators: [{
47
+ type: Injectable,
48
+ args: [{ providedIn: 'root' }]
49
+ }] });
50
+
51
+ const INVOICE_CONFIG = new InjectionToken('Invoice Config');
52
+ function provideInvoiceConfig(config) {
53
+ return { provide: INVOICE_CONFIG, useValue: config };
54
+ }
55
+
56
+ class InvoiceNotionRepository extends NotionRepository$1 {
57
+ converter = createConverter(Invoice);
58
+ databaseId = getDatabaseId(Invoice);
59
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InvoiceNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
60
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InvoiceNotionRepository, providedIn: 'root' });
61
+ }
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InvoiceNotionRepository, decorators: [{
63
+ type: Injectable,
64
+ args: [{ providedIn: 'root' }]
65
+ }] });
66
+
67
+ const ORDER_CONFIG = new InjectionToken('ORDER_CONFIG');
68
+ function provideOrderConfig(config) {
69
+ return { provide: ORDER_CONFIG, useValue: config };
70
+ }
71
+
72
+ const PARTNER_CONFIG = new InjectionToken('PARTNER_CONFIG');
73
+ function providePartnerConfig(config) {
74
+ return { provide: PARTNER_CONFIG, useValue: config };
29
75
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ExternalService, decorators: [{
76
+
77
+ class PartnerNotionRepository extends NotionRepository$1 {
78
+ converter = createConverter(Partner);
79
+ databaseId = getDatabaseId(Partner);
80
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PartnerNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
81
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PartnerNotionRepository, providedIn: 'root' });
82
+ }
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: PartnerNotionRepository, decorators: [{
31
84
  type: Injectable,
32
85
  args: [{ providedIn: 'root' }]
33
86
  }] });
34
87
 
88
+ function provideNotionConfig(config) {
89
+ return [
90
+ provideContractConfig(config.contract),
91
+ provideInvoiceConfig(config.invoice),
92
+ provideOrderConfig(config.order),
93
+ providePartnerConfig(config.partner),
94
+ provideNotionConfig$1({ accessToken: config.accessToken }),
95
+ ];
96
+ }
97
+
35
98
  function provideRedisConfig(config) {
36
99
  return [
37
100
  provideRedisConfig$1(config.redis),
@@ -40,10 +103,10 @@ function provideRedisConfig(config) {
40
103
 
41
104
  class OperatorRepository extends RedisRepository {
42
105
  entityName = 'operator';
43
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: OperatorRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
44
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: OperatorRepository, providedIn: 'root' });
106
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OperatorRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
107
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OperatorRepository, providedIn: 'root' });
45
108
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: OperatorRepository, decorators: [{
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OperatorRepository, decorators: [{
47
110
  type: Injectable,
48
111
  args: [{ providedIn: 'root' }]
49
112
  }] });
@@ -65,10 +128,10 @@ class ProjectConverter extends Converter {
65
128
  class ProjectRepository extends RedisRepository {
66
129
  entityName = 'project';
67
130
  converter = new ProjectConverter();
68
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ProjectRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
69
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ProjectRepository, providedIn: 'root' });
131
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ProjectRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
132
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ProjectRepository, providedIn: 'root' });
70
133
  }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ProjectRepository, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ProjectRepository, decorators: [{
72
135
  type: Injectable,
73
136
  args: [{ providedIn: 'root' }]
74
137
  }] });
@@ -131,20 +194,20 @@ class SpecRepository extends RedisRepository {
131
194
  fromBuffer(buffer) {
132
195
  return bufferFloat32(buffer);
133
196
  }
134
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: SpecRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
135
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: SpecRepository, providedIn: 'root' });
197
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SpecRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
198
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SpecRepository, providedIn: 'root' });
136
199
  }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: SpecRepository, decorators: [{
200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SpecRepository, decorators: [{
138
201
  type: Injectable,
139
202
  args: [{ providedIn: 'root' }]
140
203
  }] });
141
204
 
142
205
  class SystemRepository {
143
206
  entityName = 'system';
144
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: SystemRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
145
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: SystemRepository, providedIn: 'root' });
207
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SystemRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
208
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SystemRepository, providedIn: 'root' });
146
209
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: SystemRepository, decorators: [{
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: SystemRepository, decorators: [{
148
211
  type: Injectable,
149
212
  args: [{ providedIn: 'root' }]
150
213
  }] });
@@ -154,10 +217,10 @@ class RedisService {
154
217
  project = inject(ProjectRepository);
155
218
  spec = inject(SpecRepository);
156
219
  system = inject(SystemRepository);
157
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: RedisService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
158
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: RedisService, providedIn: 'root' });
220
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RedisService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
221
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RedisService, providedIn: 'root' });
159
222
  }
160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: RedisService, decorators: [{
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RedisService, decorators: [{
161
224
  type: Injectable,
162
225
  args: [{ providedIn: 'root' }]
163
226
  }] });
@@ -165,6 +228,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
165
228
  function provideRepositoryConfig(config) {
166
229
  return [
167
230
  provideRedisConfig(config.redis),
231
+ ...(config.notion?.accessToken
232
+ ? [provideNotionConfig(config.notion)]
233
+ : [{ provide: NOTION_ACCESS_TOKEN, useValue: '' }]),
168
234
  ];
169
235
  }
170
236
 
@@ -178,10 +244,10 @@ function provideInfrastructureConfig(config) {
178
244
  class GoogleRepository extends FirestoreRepository$1 {
179
245
  collectionPath = 'users/:userId/links/:id';
180
246
  converter = inject(GoogleConverter);
181
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: GoogleRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
182
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: GoogleRepository, providedIn: 'root' });
247
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: GoogleRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
248
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: GoogleRepository, providedIn: 'root' });
183
249
  }
184
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: GoogleRepository, decorators: [{
250
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: GoogleRepository, decorators: [{
185
251
  type: Injectable,
186
252
  args: [{ providedIn: 'root' }]
187
253
  }] });
@@ -191,10 +257,10 @@ class LinkRepository {
191
257
  constructor(google) {
192
258
  this.google = google;
193
259
  }
194
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: LinkRepository, deps: [{ token: GoogleRepository }], target: i0.ɵɵFactoryTarget.Injectable });
195
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: LinkRepository, providedIn: 'root' });
260
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: LinkRepository, deps: [{ token: GoogleRepository }], target: i0.ɵɵFactoryTarget.Injectable });
261
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: LinkRepository, providedIn: 'root' });
196
262
  }
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: LinkRepository, decorators: [{
263
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: LinkRepository, decorators: [{
198
264
  type: Injectable,
199
265
  args: [{ providedIn: 'root' }]
200
266
  }], ctorParameters: () => [{ type: GoogleRepository }] });
@@ -206,10 +272,10 @@ class FirestoreRepository {
206
272
  link) {
207
273
  this.link = link;
208
274
  }
209
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: FirestoreRepository, deps: [{ token: LinkRepository }], target: i0.ɵɵFactoryTarget.Injectable });
210
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: FirestoreRepository, providedIn: 'root' });
275
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: FirestoreRepository, deps: [{ token: LinkRepository }], target: i0.ɵɵFactoryTarget.Injectable });
276
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: FirestoreRepository, providedIn: 'root' });
211
277
  }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: FirestoreRepository, decorators: [{
278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: FirestoreRepository, decorators: [{
213
279
  type: Injectable,
214
280
  args: [{ providedIn: 'root' }]
215
281
  }], ctorParameters: () => [{ type: LinkRepository }] });
@@ -217,10 +283,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
217
283
  class QueryFirestoreRepository extends FirestoreRepository$1 {
218
284
  collectionPath = 'projects/:projectId/queries/:id';
219
285
  converter = injectConverter(Query);
220
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryFirestoreRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
221
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryFirestoreRepository, providedIn: 'root' });
286
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: QueryFirestoreRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
287
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: QueryFirestoreRepository, providedIn: 'root' });
222
288
  }
223
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: QueryFirestoreRepository, decorators: [{
289
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: QueryFirestoreRepository, decorators: [{
224
290
  type: Injectable,
225
291
  args: [{ providedIn: 'root' }]
226
292
  }] });
@@ -228,42 +294,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
228
294
  class ResourceFirestoreRepository extends FirestoreRepository$1 {
229
295
  collectionPath = 'projects/:projectId/resources/:id';
230
296
  converter = injectConverter(Resource);
231
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ResourceFirestoreRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
232
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ResourceFirestoreRepository, providedIn: 'root' });
233
- }
234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ResourceFirestoreRepository, decorators: [{
235
- type: Injectable,
236
- args: [{ providedIn: 'root' }]
237
- }] });
238
-
239
- const CONTRACT_CONFIG = new InjectionToken('CONTRACT_CONFIG');
240
- function provideContractConfig(config) {
241
- return { provide: CONTRACT_CONFIG, useValue: config };
242
- }
243
-
244
- class ContractNotionRepository extends NotionRepository$1 {
245
- converter = createConverter(Contract);
246
- databaseId = getDatabaseId(Contract);
247
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ContractNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
248
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ContractNotionRepository, providedIn: 'root' });
249
- }
250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: ContractNotionRepository, decorators: [{
251
- type: Injectable,
252
- args: [{ providedIn: 'root' }]
253
- }] });
254
-
255
- const INVOICE_CONFIG = new InjectionToken('Invoice Config');
256
- function provideInvoiceConfig(config) {
257
- return { provide: INVOICE_CONFIG, useValue: config };
258
- }
259
-
260
- class InvoiceNotionRepository extends NotionRepository$1 {
261
- converter = createConverter(Invoice);
262
- databaseId = getDatabaseId(Invoice);
263
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InvoiceNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
264
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InvoiceNotionRepository, providedIn: 'root' });
297
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ResourceFirestoreRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
298
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ResourceFirestoreRepository, providedIn: 'root' });
265
299
  }
266
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InvoiceNotionRepository, decorators: [{
300
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: ResourceFirestoreRepository, decorators: [{
267
301
  type: Injectable,
268
302
  args: [{ providedIn: 'root' }]
269
303
  }] });
@@ -271,45 +305,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImpor
271
305
  class OrderNotionRepository extends NotionRepository$1 {
272
306
  converter = createConverter(Order);
273
307
  databaseId = getDatabaseId(Order);
274
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: OrderNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
275
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: OrderNotionRepository, providedIn: 'root' });
308
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OrderNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
309
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OrderNotionRepository, providedIn: 'root' });
276
310
  }
277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: OrderNotionRepository, decorators: [{
311
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: OrderNotionRepository, decorators: [{
278
312
  type: Injectable,
279
313
  args: [{ providedIn: 'root' }]
280
314
  }] });
281
315
 
282
- const PARTNER_CONFIG = new InjectionToken('PARTNER_CONFIG');
283
- function providePartnerConfig(config) {
284
- return { provide: PARTNER_CONFIG, useValue: config };
285
- }
286
-
287
- class PartnerNotionRepository extends NotionRepository$1 {
288
- converter = createConverter(Partner);
289
- databaseId = getDatabaseId(Partner);
290
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: PartnerNotionRepository, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
291
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: PartnerNotionRepository, providedIn: 'root' });
292
- }
293
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: PartnerNotionRepository, decorators: [{
294
- type: Injectable,
295
- args: [{ providedIn: 'root' }]
296
- }] });
297
-
298
- const ORDER_CONFIG = new InjectionToken('ORDER_CONFIG');
299
- function provideOrderConfig(config) {
300
- return { provide: ORDER_CONFIG, useValue: config };
301
- }
302
-
303
- function provideNotionConfig(config) {
304
- return [
305
- provideContractConfig(config.contract),
306
- provideInvoiceConfig(config.invoice),
307
- provideOrderConfig(config.order),
308
- providePartnerConfig(config.partner),
309
- provideNotionConfig$1({ accessToken: config.accessToken }),
310
- ];
311
- }
312
-
313
316
  class NotionRepository {
314
317
  contract;
315
318
  invoice;
@@ -321,10 +324,10 @@ class NotionRepository {
321
324
  this.order = order;
322
325
  this.partner = partner;
323
326
  }
324
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NotionRepository, deps: [{ token: ContractNotionRepository }, { token: InvoiceNotionRepository }, { token: OrderNotionRepository }, { token: PartnerNotionRepository }], target: i0.ɵɵFactoryTarget.Injectable });
325
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NotionRepository, providedIn: 'root' });
327
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NotionRepository, deps: [{ token: ContractNotionRepository }, { token: InvoiceNotionRepository }, { token: OrderNotionRepository }, { token: PartnerNotionRepository }], target: i0.ɵɵFactoryTarget.Injectable });
328
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NotionRepository, providedIn: 'root' });
326
329
  }
327
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: NotionRepository, decorators: [{
330
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: NotionRepository, decorators: [{
328
331
  type: Injectable,
329
332
  args: [{ providedIn: 'root' }]
330
333
  }], ctorParameters: () => [{ type: ContractNotionRepository }, { type: InvoiceNotionRepository }, { type: OrderNotionRepository }, { type: PartnerNotionRepository }] });
@@ -333,10 +336,10 @@ class RepositoriesService {
333
336
  firestore = inject(FirestoreRepository);
334
337
  notion = inject(NotionRepository);
335
338
  redis = inject(RedisService);
336
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: RepositoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
337
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: RepositoriesService, providedIn: 'root' });
339
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RepositoriesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
340
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RepositoriesService, providedIn: 'root' });
338
341
  }
339
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: RepositoriesService, decorators: [{
342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: RepositoriesService, decorators: [{
340
343
  type: Injectable,
341
344
  args: [{ providedIn: 'root' }]
342
345
  }] });
@@ -348,10 +351,10 @@ class InfrastructureService {
348
351
  this.external = external;
349
352
  this.repo = repo;
350
353
  }
351
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InfrastructureService, deps: [{ token: ExternalService }, { token: RepositoriesService }], target: i0.ɵɵFactoryTarget.Injectable });
352
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InfrastructureService, providedIn: 'root' });
354
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InfrastructureService, deps: [{ token: ExternalService }, { token: RepositoriesService }], target: i0.ɵɵFactoryTarget.Injectable });
355
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InfrastructureService, providedIn: 'root' });
353
356
  }
354
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.5", ngImport: i0, type: InfrastructureService, decorators: [{
357
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.6", ngImport: i0, type: InfrastructureService, decorators: [{
355
358
  type: Injectable,
356
359
  args: [{ providedIn: 'root' }]
357
360
  }], ctorParameters: () => [{ type: ExternalService }, { type: RepositoriesService }] });