@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.
- package/README.md +11 -0
- package/_shared/auth/auth.module.js +22 -0
- package/_shared/auth/auth.module.js.map +1 -0
- package/_shared/auth/index.js +5 -0
- package/_shared/auth/index.js.map +1 -0
- package/_shared/auth/passports/anonymous/anonymous.strategy.js +19 -0
- package/_shared/auth/passports/anonymous/anonymous.strategy.js.map +1 -0
- package/_shared/auth/passports/anonymous/index.js +5 -0
- package/_shared/auth/passports/anonymous/index.js.map +1 -0
- package/_shared/auth/passports/firebase/firebase.guard.js +23 -0
- package/_shared/auth/passports/firebase/firebase.guard.js.map +1 -0
- package/_shared/auth/passports/firebase/firebase.strategy.js +22 -0
- package/_shared/auth/passports/firebase/firebase.strategy.js.map +1 -0
- package/_shared/auth/passports/firebase/index.js +6 -0
- package/_shared/auth/passports/firebase/index.js.map +1 -0
- package/_shared/auth/passports/internal/index.js +5 -0
- package/_shared/auth/passports/internal/index.js.map +1 -0
- package/_shared/auth/passports/internal/internal.strategy.js +33 -0
- package/_shared/auth/passports/internal/internal.strategy.js.map +1 -0
- package/_shared/auth/passports/msal/index.js +6 -0
- package/_shared/auth/passports/msal/index.js.map +1 -0
- package/_shared/auth/passports/msal/msal.guard.js +13 -0
- package/_shared/auth/passports/msal/msal.guard.js.map +1 -0
- package/_shared/auth/passports/msal/msal.strategy.js +43 -0
- package/_shared/auth/passports/msal/msal.strategy.js.map +1 -0
- package/_shared/meta/decorators.js +25 -0
- package/_shared/meta/decorators.js.map +1 -0
- package/_shared/meta/redis/index.js +6 -0
- package/_shared/meta/redis/index.js.map +1 -0
- package/_shared/meta/redis/redis.config.js +10 -0
- package/_shared/meta/redis/redis.config.js.map +1 -0
- package/_shared/meta/redis/redis.repository.d.ts +3 -6
- package/_shared/meta/redis/redis.repository.js +108 -0
- package/_shared/meta/redis/redis.repository.js.map +1 -0
- package/auth/auth.service.d.ts +0 -3
- package/auth/auth.service.js +12 -0
- package/auth/auth.service.js.map +1 -0
- package/auth/index.js +5 -0
- package/auth/index.js.map +1 -0
- package/azure-auth/auth.di.js +56 -0
- package/azure-auth/auth.di.js.map +1 -0
- package/azure-auth/auth.service.d.ts +0 -3
- package/azure-auth/auth.service.js +115 -0
- package/azure-auth/auth.service.js.map +1 -0
- package/azure-auth/index.js +6 -0
- package/azure-auth/index.js.map +1 -0
- package/domain/builder/command/command.builder.d.ts +2 -1
- package/domain/builder/command/command.builder.js +30 -0
- package/domain/builder/command/command.builder.js.map +1 -0
- package/domain/builder/command/index.js +5 -0
- package/domain/builder/command/index.js.map +1 -0
- package/domain/builder/command-action/command-action.builder.d.ts +1 -1
- package/domain/builder/command-action/command-action.builder.js +139 -0
- package/domain/builder/command-action/command-action.builder.js.map +1 -0
- package/domain/builder/command-action/index.js +5 -0
- package/domain/builder/command-action/index.js.map +1 -0
- package/domain/builder/er/er.builder.js +112 -0
- package/domain/builder/er/er.builder.js.map +1 -0
- package/domain/builder/er/index.js +5 -0
- package/domain/builder/er/index.js.map +1 -0
- package/domain/builder/screen-item/index.js +5 -0
- package/domain/builder/screen-item/index.js.map +1 -0
- package/domain/builder/screen-item/screen-item.builder.d.ts +2 -2
- package/{fesm2022/xxmachina-common-domain-builder-screen-item.mjs → domain/builder/screen-item/screen-item.builder.js} +11 -10
- package/domain/builder/screen-item/screen-item.builder.js.map +1 -0
- package/domain/index.d.ts +1 -2
- package/domain/index.js +5 -0
- package/domain/index.js.map +1 -0
- package/{domain-invoice → domain/invoice}/builders/email/email.builder.d.ts +1 -1
- package/domain/invoice/builders/email/email.builder.js +29 -0
- package/domain/invoice/builders/email/email.builder.js.map +1 -0
- package/domain/invoice/builders/email/index.js +5 -0
- package/domain/invoice/builders/email/index.js.map +1 -0
- package/domain/invoice/builders/message/index.js +5 -0
- package/domain/invoice/builders/message/index.js.map +1 -0
- package/{domain-invoice → domain/invoice}/builders/message/message.builder.d.ts +1 -1
- package/domain/invoice/builders/message/message.builder.js +43 -0
- package/domain/invoice/builders/message/message.builder.js.map +1 -0
- package/domain/invoice/builders/title/index.js +5 -0
- package/domain/invoice/builders/title/index.js.map +1 -0
- package/{domain-invoice → domain/invoice}/builders/title/title.builder.d.ts +1 -1
- package/domain/invoice/builders/title/title.builder.js +11 -0
- package/domain/invoice/builders/title/title.builder.js.map +1 -0
- package/domain/invoice/models/backoffice/contract.js +50 -0
- package/domain/invoice/models/backoffice/contract.js.map +1 -0
- package/domain/invoice/models/backoffice/index.js +9 -0
- package/domain/invoice/models/backoffice/index.js.map +1 -0
- package/domain/invoice/models/backoffice/invoice-mail.js +7 -0
- package/domain/invoice/models/backoffice/invoice-mail.js.map +1 -0
- package/{domain-invoice → domain/invoice}/models/backoffice/invoice.d.ts +1 -1
- package/domain/invoice/models/backoffice/invoice.js +91 -0
- package/domain/invoice/models/backoffice/invoice.js.map +1 -0
- package/{domain-invoice → domain/invoice}/models/backoffice/order.d.ts +1 -1
- package/domain/invoice/models/backoffice/order.js +157 -0
- package/domain/invoice/models/backoffice/order.js.map +1 -0
- package/{domain-invoice → domain/invoice}/models/backoffice/partner.d.ts +1 -1
- package/domain/invoice/models/backoffice/partner.js +96 -0
- package/domain/invoice/models/backoffice/partner.js.map +1 -0
- package/domain/invoice/models/index.js +5 -0
- package/domain/invoice/models/index.js.map +1 -0
- package/domain/models/agent/assistant.js +31 -0
- package/domain/models/agent/assistant.js.map +1 -0
- package/domain/models/agent/index.js +5 -0
- package/domain/models/agent/index.js.map +1 -0
- package/domain/models/bookmarklet/bookmarklet.js +34 -0
- package/domain/models/bookmarklet/bookmarklet.js.map +1 -0
- package/domain/models/bookmarklet/index.js +5 -0
- package/domain/models/bookmarklet/index.js.map +1 -0
- package/domain/models/calendar-utils.d.ts +5 -0
- package/domain/models/calendar-utils.js +43 -0
- package/domain/models/calendar-utils.js.map +1 -0
- package/domain/models/command/command.helper.js +14 -0
- package/domain/models/command/command.helper.js.map +1 -0
- package/domain/models/command/command.js +40 -0
- package/domain/models/command/command.js.map +1 -0
- package/domain/models/command/index.js +6 -0
- package/domain/models/command/index.js.map +1 -0
- package/domain/models/database/database.js +7 -0
- package/domain/models/database/database.js.map +1 -0
- package/domain/models/database/index.js +5 -0
- package/domain/models/database/index.js.map +1 -0
- package/domain/models/endpoint/endpoint.helper.js +21 -0
- package/domain/models/endpoint/endpoint.helper.js.map +1 -0
- package/domain/models/endpoint/index.js +5 -0
- package/domain/models/endpoint/index.js.map +1 -0
- package/domain/models/index.d.ts +2 -8
- package/domain/models/index.js +12 -0
- package/domain/models/index.js.map +1 -0
- package/domain/models/links/google/google.js +47 -0
- package/domain/models/links/google/google.js.map +1 -0
- package/domain/models/links/google/index.js +5 -0
- package/domain/models/links/google/index.js.map +1 -0
- package/domain/models/openapi/index.js +6 -0
- package/domain/models/openapi/index.js.map +1 -0
- package/domain/models/openapi/openapi.js +87 -0
- package/domain/models/openapi/openapi.js.map +1 -0
- package/domain/models/openapi/openapi.schema.js +3 -0
- package/domain/models/openapi/openapi.schema.js.map +1 -0
- package/domain/models/operators/assistancts/base.js +13 -0
- package/domain/models/operators/assistancts/base.js.map +1 -0
- package/domain/models/operators/assistancts/index.js +5 -0
- package/domain/models/operators/assistancts/index.js.map +1 -0
- package/domain/models/operators/base.js +10 -0
- package/domain/models/operators/base.js.map +1 -0
- package/domain/models/operators/index.js +8 -0
- package/domain/models/operators/index.js.map +1 -0
- package/domain/models/operators/systems/base.js +3 -0
- package/domain/models/operators/systems/base.js.map +1 -0
- package/domain/models/operators/systems/graphql.js +3 -0
- package/domain/models/operators/systems/graphql.js.map +1 -0
- package/domain/models/operators/systems/index.js +7 -0
- package/domain/models/operators/systems/index.js.map +1 -0
- package/domain/models/operators/systems/rest.js +3 -0
- package/domain/models/operators/systems/rest.js.map +1 -0
- package/domain/models/operators/workflows/index.js +5 -0
- package/domain/models/operators/workflows/index.js.map +1 -0
- package/domain/models/operators/workflows/workflow.js +3 -0
- package/domain/models/operators/workflows/workflow.js.map +1 -0
- package/domain/models/project.js +9 -0
- package/domain/models/project.js.map +1 -0
- package/domain/models/query/index.js +6 -0
- package/domain/models/query/index.js.map +1 -0
- package/domain/models/query/query.d.ts +1 -1
- package/domain/models/query/query.helper.d.ts +0 -1
- package/domain/models/query/query.helper.js +172 -0
- package/domain/models/query/query.helper.js.map +1 -0
- package/domain/models/query/query.js +122 -0
- package/domain/models/query/query.js.map +1 -0
- package/domain/models/resource/index.js +6 -0
- package/domain/models/resource/index.js.map +1 -0
- package/domain/models/resource/resource.helper.js +16 -0
- package/domain/models/resource/resource.helper.js.map +1 -0
- package/domain/models/resource/resource.js +73 -0
- package/domain/models/resource/resource.js.map +1 -0
- package/domain/models/scheduler/index.js +5 -0
- package/domain/models/scheduler/index.js.map +1 -0
- package/domain/models/scheduler/schedule.js +89 -0
- package/domain/models/scheduler/schedule.js.map +1 -0
- package/domain/models/screen-item/index.js +5 -0
- package/domain/models/screen-item/index.js.map +1 -0
- package/domain/models/screen-item/screen-item.js +3 -0
- package/domain/models/screen-item/screen-item.js.map +1 -0
- package/domain/models/spec.js +3 -0
- package/domain/models/spec.js.map +1 -0
- package/domain/resolvers/index.js +5 -0
- package/domain/resolvers/index.js.map +1 -0
- package/{domain-invoice → domain}/resolvers/invoice.resolver.d.ts +1 -1
- package/domain/resolvers/invoice.resolver.js +31 -0
- package/domain/resolvers/invoice.resolver.js.map +1 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.d.ts +0 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js +1 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js.map +1 -0
- package/{infra → infrastructure}/converters/google/google.converter.d.ts +1 -4
- package/infrastructure/converters/google/google.converter.js +27 -0
- package/infrastructure/converters/google/google.converter.js.map +1 -0
- package/infrastructure/converters/google/index.js +5 -0
- package/infrastructure/converters/google/index.js.map +1 -0
- package/infrastructure/external/data-connect/data-connect.service.impl.d.ts +7 -0
- package/infrastructure/external/data-connect/data-connect.service.impl.js +20 -0
- package/infrastructure/external/data-connect/data-connect.service.impl.js.map +1 -0
- package/infrastructure/external/data-connect/data-connect.service.js +11 -0
- package/infrastructure/external/data-connect/data-connect.service.js.map +1 -0
- package/infrastructure/external/data-connect/index.js +5 -0
- package/infrastructure/external/data-connect/index.js.map +1 -0
- package/{infra → infrastructure}/external/external.config.d.ts +2 -2
- package/infrastructure/external/external.config.js +13 -0
- package/infrastructure/external/external.config.js.map +1 -0
- package/{infra → infrastructure}/external/external.service.d.ts +3 -4
- package/infrastructure/external/external.service.js +23 -0
- package/infrastructure/external/external.service.js.map +1 -0
- package/infrastructure/external/index.js +6 -0
- package/infrastructure/external/index.js.map +1 -0
- package/infrastructure/external/quick-js/index.js +5 -0
- package/infrastructure/external/quick-js/index.js.map +1 -0
- package/{infra → infrastructure}/external/quick-js/quick-js.service.d.ts +0 -3
- package/infrastructure/external/quick-js/quick-js.service.js +44 -0
- package/infrastructure/external/quick-js/quick-js.service.js.map +1 -0
- package/infrastructure/external/resend/index.js +5 -0
- package/infrastructure/external/resend/index.js.map +1 -0
- package/infrastructure/external/resend/resend.service.d.ts +9 -0
- package/{infra → infrastructure}/external/resend/resend.service.impl.d.ts +8 -4
- package/infrastructure/external/resend/resend.service.impl.js +27 -0
- package/infrastructure/external/resend/resend.service.impl.js.map +1 -0
- package/infrastructure/external/resend/resend.service.js +6 -0
- package/infrastructure/external/resend/resend.service.js.map +1 -0
- package/infrastructure/index.js +6 -0
- package/infrastructure/index.js.map +1 -0
- package/{infra → infrastructure}/infrastructure.config.d.ts +5 -5
- package/infrastructure/infrastructure.config.js +12 -0
- package/infrastructure/infrastructure.config.js.map +1 -0
- package/{infra → infrastructure}/infrastructure.service.d.ts +0 -3
- package/infrastructure/infrastructure.service.js +20 -0
- package/infrastructure/infrastructure.service.js.map +1 -0
- package/infrastructure/query/firestore/query/index.js +5 -0
- package/infrastructure/query/firestore/query/index.js.map +1 -0
- package/{infra → infrastructure}/query/firestore/query/query.query.d.ts +0 -3
- package/infrastructure/query/firestore/query/query.query.js +20 -0
- package/infrastructure/query/firestore/query/query.query.js.map +1 -0
- package/infrastructure/query/firestore/resource/index.js +5 -0
- package/infrastructure/query/firestore/resource/index.js.map +1 -0
- package/{infra → infrastructure}/query/firestore/resource/resource.query.d.ts +0 -3
- package/infrastructure/query/firestore/resource/resource.query.js +20 -0
- package/infrastructure/query/firestore/resource/resource.query.js.map +1 -0
- package/infrastructure/query/hasura/resource/index.js +5 -0
- package/infrastructure/query/hasura/resource/index.js.map +1 -0
- package/infrastructure/query/hasura/resource/resource.query.d.ts +3 -0
- package/infrastructure/query/hasura/resource/resource.query.js +14 -0
- package/infrastructure/query/hasura/resource/resource.query.js.map +1 -0
- package/infrastructure/repository/dataconnect/invoice/index.js +5 -0
- package/infrastructure/repository/dataconnect/invoice/index.js.map +1 -0
- package/{infra → infrastructure}/repository/dataconnect/invoice/invoice.repository.impl.d.ts +1 -4
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js +54 -0
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js.map +1 -0
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js +11 -0
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js.map +1 -0
- package/infrastructure/repository/dataconnect/order/index.js +5 -0
- package/infrastructure/repository/dataconnect/order/index.js.map +1 -0
- package/{infra → infrastructure}/repository/dataconnect/order/order.repository.impl.d.ts +1 -4
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js +74 -0
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js.map +1 -0
- package/infrastructure/repository/dataconnect/order/order.repository.js +11 -0
- package/infrastructure/repository/dataconnect/order/order.repository.js.map +1 -0
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.d.ts +6 -0
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js +20 -0
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js.map +1 -0
- package/infrastructure/repository/firestore/bookmarklet/index.d.ts +1 -0
- package/infrastructure/repository/firestore/bookmarklet/index.js +5 -0
- package/infrastructure/repository/firestore/bookmarklet/index.js.map +1 -0
- package/infrastructure/repository/firestore/firestore.repository.d.ts +7 -0
- package/infrastructure/repository/firestore/firestore.repository.js +20 -0
- package/infrastructure/repository/firestore/firestore.repository.js.map +1 -0
- package/infrastructure/repository/firestore/index.d.ts +1 -0
- package/infrastructure/repository/firestore/index.js +5 -0
- package/infrastructure/repository/firestore/index.js.map +1 -0
- package/infrastructure/repository/firestore/link/google/google.repository.d.ts +7 -0
- package/infrastructure/repository/firestore/link/google/google.repository.js +19 -0
- package/infrastructure/repository/firestore/link/google/google.repository.js.map +1 -0
- package/infrastructure/repository/firestore/link/google/index.js +5 -0
- package/infrastructure/repository/firestore/link/google/index.js.map +1 -0
- package/infrastructure/repository/firestore/link/index.js +5 -0
- package/infrastructure/repository/firestore/link/index.js.map +1 -0
- package/infrastructure/repository/firestore/link/link.repository.d.ts +5 -0
- package/infrastructure/repository/firestore/link/link.repository.js +17 -0
- package/infrastructure/repository/firestore/link/link.repository.js.map +1 -0
- package/infrastructure/repository/firestore/query/index.js +5 -0
- package/infrastructure/repository/firestore/query/index.js.map +1 -0
- package/{infra → infrastructure}/repository/firestore/query/query.repository.d.ts +1 -4
- package/infrastructure/repository/firestore/query/query.repository.js +20 -0
- package/infrastructure/repository/firestore/query/query.repository.js.map +1 -0
- package/infrastructure/repository/firestore/resource/index.js +5 -0
- package/infrastructure/repository/firestore/resource/index.js.map +1 -0
- package/{infra → infrastructure}/repository/firestore/resource/resource.repository.d.ts +1 -4
- package/infrastructure/repository/firestore/resource/resource.repository.js +20 -0
- package/infrastructure/repository/firestore/resource/resource.repository.js.map +1 -0
- package/infrastructure/repository/hasura/query/index.js +5 -0
- package/infrastructure/repository/hasura/query/index.js.map +1 -0
- package/{infra → infrastructure}/repository/hasura/query/query.repository.d.ts +0 -3
- package/infrastructure/repository/hasura/query/query.repository.js +23 -0
- package/infrastructure/repository/hasura/query/query.repository.js.map +1 -0
- package/infrastructure/repository/hasura/resource/index.js +5 -0
- package/infrastructure/repository/hasura/resource/index.js.map +1 -0
- package/{infra → infrastructure}/repository/hasura/resource/resource.repository.d.ts +0 -3
- package/infrastructure/repository/hasura/resource/resource.repository.js +23 -0
- package/infrastructure/repository/hasura/resource/resource.repository.js.map +1 -0
- package/infrastructure/repository/index.js +6 -0
- package/infrastructure/repository/index.js.map +1 -0
- package/infrastructure/repository/notion/contract/contract.config.js +10 -0
- package/infrastructure/repository/notion/contract/contract.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/contract/contract.repository.d.ts +1 -4
- package/infrastructure/repository/notion/contract/contract.repository.js +22 -0
- package/infrastructure/repository/notion/contract/contract.repository.js.map +1 -0
- package/infrastructure/repository/notion/contract/index.js +6 -0
- package/infrastructure/repository/notion/contract/index.js.map +1 -0
- package/infrastructure/repository/notion/index.d.ts +2 -0
- package/infrastructure/repository/notion/index.js +6 -0
- package/infrastructure/repository/notion/index.js.map +1 -0
- package/infrastructure/repository/notion/invoice/index.js +6 -0
- package/infrastructure/repository/notion/invoice/index.js.map +1 -0
- package/infrastructure/repository/notion/invoice/invoice.config.js +10 -0
- package/infrastructure/repository/notion/invoice/invoice.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/invoice/invoice.repository.d.ts +1 -4
- package/infrastructure/repository/notion/invoice/invoice.repository.js +22 -0
- package/infrastructure/repository/notion/invoice/invoice.repository.js.map +1 -0
- package/infrastructure/repository/notion/notion.config.js +18 -0
- package/infrastructure/repository/notion/notion.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/notion.repository.d.ts +0 -3
- package/infrastructure/repository/notion/notion.repository.js +26 -0
- package/infrastructure/repository/notion/notion.repository.js.map +1 -0
- package/infrastructure/repository/notion/order/index.js +5 -0
- package/infrastructure/repository/notion/order/index.js.map +1 -0
- package/infrastructure/repository/notion/order/order.config.js +10 -0
- package/infrastructure/repository/notion/order/order.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/order/order.repository.d.ts +1 -4
- package/infrastructure/repository/notion/order/order.repository.js +22 -0
- package/infrastructure/repository/notion/order/order.repository.js.map +1 -0
- package/infrastructure/repository/notion/partner/index.js +6 -0
- package/infrastructure/repository/notion/partner/index.js.map +1 -0
- package/infrastructure/repository/notion/partner/partner.config.js +10 -0
- package/infrastructure/repository/notion/partner/partner.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/partner/partner.repository.d.ts +1 -4
- package/infrastructure/repository/notion/partner/partner.repository.js +22 -0
- package/infrastructure/repository/notion/partner/partner.repository.js.map +1 -0
- package/infrastructure/repository/redis/index.js +6 -0
- package/infrastructure/repository/redis/index.js.map +1 -0
- package/infrastructure/repository/redis/operator/index.js +5 -0
- package/infrastructure/repository/redis/operator/index.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/operator/operator.repository.d.ts +0 -3
- package/infrastructure/repository/redis/operator/operator.repository.js +17 -0
- package/infrastructure/repository/redis/operator/operator.repository.js.map +1 -0
- package/infrastructure/repository/redis/project/index.js +5 -0
- package/infrastructure/repository/redis/project/index.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/project/project.repository.d.ts +0 -3
- package/infrastructure/repository/redis/project/project.repository.js +33 -0
- package/infrastructure/repository/redis/project/project.repository.js.map +1 -0
- package/infrastructure/repository/redis/redis.config.js +10 -0
- package/infrastructure/repository/redis/redis.config.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/redis.service.d.ts +0 -3
- package/infrastructure/repository/redis/redis.service.js +22 -0
- package/infrastructure/repository/redis/redis.service.js.map +1 -0
- package/infrastructure/repository/redis/spec/index.js +5 -0
- package/infrastructure/repository/redis/spec/index.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/spec/spec.repository.d.ts +3 -5
- package/infrastructure/repository/redis/spec/spec.repository.js +94 -0
- package/infrastructure/repository/redis/spec/spec.repository.js.map +1 -0
- package/infrastructure/repository/redis/system/index.js +5 -0
- package/infrastructure/repository/redis/system/index.js.map +1 -0
- package/infrastructure/repository/redis/system/system.repository.d.ts +3 -0
- package/infrastructure/repository/redis/system/system.repository.js +15 -0
- package/infrastructure/repository/redis/system/system.repository.js.map +1 -0
- package/{infra → infrastructure}/repository/repository.config.d.ts +4 -4
- package/infrastructure/repository/repository.config.js +12 -0
- package/infrastructure/repository/repository.config.js.map +1 -0
- package/{infra → infrastructure}/repository/repository.service.d.ts +0 -3
- package/infrastructure/repository/repository.service.js +20 -0
- package/infrastructure/repository/repository.service.js.map +1 -0
- package/package.json +14 -202
- package/stores/index.d.ts +28 -4
- package/stores/index.js +66 -0
- package/stores/index.js.map +1 -0
- package/usecase/assistant/assistant.service.d.ts +1 -4
- package/usecase/assistant/assistant.service.js +72 -0
- package/usecase/assistant/assistant.service.js.map +1 -0
- package/usecase/assistant/index.js +5 -0
- package/usecase/assistant/index.js.map +1 -0
- package/usecase/database/database.service.d.ts +0 -3
- package/usecase/database/database.service.js +103 -0
- package/usecase/database/database.service.js.map +1 -0
- package/usecase/database/index.js +5 -0
- package/usecase/database/index.js.map +1 -0
- package/usecase/graphql/graphql.service.d.ts +0 -3
- package/usecase/graphql/graphql.service.js +49 -0
- package/usecase/graphql/graphql.service.js.map +1 -0
- package/usecase/graphql/index.js +5 -0
- package/usecase/graphql/index.js.map +1 -0
- package/usecase/index.js +5 -0
- package/usecase/index.js.map +1 -0
- package/usecase/invoice/index.js +5 -0
- package/usecase/invoice/index.js.map +1 -0
- package/usecase/invoice/invoice.service.d.ts +13 -9
- package/usecase/invoice/invoice.service.js +69 -0
- package/usecase/invoice/invoice.service.js.map +1 -0
- package/usecase/link/index.js +5 -0
- package/usecase/link/index.js.map +1 -0
- package/usecase/link/link.service.d.ts +2 -5
- package/usecase/link/link.service.js +20 -0
- package/usecase/link/link.service.js.map +1 -0
- package/usecase/order/index.js +5 -0
- package/usecase/order/index.js.map +1 -0
- package/usecase/order/order.service.d.ts +2 -5
- package/usecase/order/order.service.js +27 -0
- package/usecase/order/order.service.js.map +1 -0
- package/usecase/project/index.js +5 -0
- package/usecase/project/index.js.map +1 -0
- package/usecase/project/project.service.d.ts +1 -4
- package/usecase/project/project.service.js +37 -0
- package/usecase/project/project.service.js.map +1 -0
- package/usecase/spec/index.js +5 -0
- package/usecase/spec/index.js.map +1 -0
- package/usecase/spec/spec.service.d.ts +1 -4
- package/usecase/spec/spec.service.js +49 -0
- package/usecase/spec/spec.service.js.map +1 -0
- package/usecase/usecase.service.d.ts +0 -3
- package/usecase/usecase.service.js +24 -0
- package/usecase/usecase.service.js.map +1 -0
- package/{fesm2022/xxmachina-common-utils-crypto.mjs → utils/crypto.js} +12 -10
- package/utils/crypto.js.map +1 -0
- package/{fesm2022/xxmachina-common-utils.mjs → utils/extract-display-fields.js} +4 -7
- package/utils/extract-display-fields.js.map +1 -0
- package/utils/index.js +5 -0
- package/utils/index.js.map +1 -0
- package/_shared/meta/index.d.ts +0 -1
- package/domain/builder/index.d.ts +0 -4
- package/domain/models/links/index.d.ts +0 -1
- package/domain-invoice/builders/index.d.ts +0 -3
- package/domain-invoice/index.d.ts +0 -3
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs +0 -20
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs +0 -41
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs +0 -34
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs +0 -49
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth.mjs +0 -25
- package/fesm2022/xxmachina-common-_shared-auth.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +0 -99
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-meta.mjs +0 -26
- package/fesm2022/xxmachina-common-_shared-meta.mjs.map +0 -1
- package/fesm2022/xxmachina-common-auth.mjs +0 -17
- package/fesm2022/xxmachina-common-auth.mjs.map +0 -1
- package/fesm2022/xxmachina-common-azure-auth.mjs +0 -160
- package/fesm2022/xxmachina-common-azure-auth.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-builder.mjs +0 -470
- package/fesm2022/xxmachina-common-domain-builder.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice-builders.mjs +0 -70
- package/fesm2022/xxmachina-common-domain-invoice-builders.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice-models.mjs +0 -427
- package/fesm2022/xxmachina-common-domain-invoice-models.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs +0 -39
- package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice.mjs +0 -8
- package/fesm2022/xxmachina-common-domain-invoice.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-models.mjs +0 -805
- package/fesm2022/xxmachina-common-domain-models.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain.mjs +0 -7
- package/fesm2022/xxmachina-common-domain.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-converters-google.mjs +0 -36
- package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs +0 -13
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +0 -44
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external-resend.mjs +0 -10
- package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external.mjs +0 -35
- package/fesm2022/xxmachina-common-infra-external.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs +0 -34
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs +0 -20
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs +0 -18
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +0 -74
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +0 -41
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs +0 -112
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra.mjs +0 -376
- package/fesm2022/xxmachina-common-infra.mjs.map +0 -1
- package/fesm2022/xxmachina-common-stores-firestore.mjs +0 -33
- package/fesm2022/xxmachina-common-stores-firestore.mjs.map +0 -1
- package/fesm2022/xxmachina-common-stores-hasura.mjs +0 -32
- package/fesm2022/xxmachina-common-stores-hasura.mjs.map +0 -1
- package/fesm2022/xxmachina-common-stores.mjs +0 -16
- package/fesm2022/xxmachina-common-stores.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-assistant.mjs +0 -67
- package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-database.mjs +0 -95
- package/fesm2022/xxmachina-common-usecase-database.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-graphql.mjs +0 -51
- package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-invoice.mjs +0 -67
- package/fesm2022/xxmachina-common-usecase-invoice.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-link.mjs +0 -26
- package/fesm2022/xxmachina-common-usecase-link.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-order.mjs +0 -29
- package/fesm2022/xxmachina-common-usecase-order.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-project.mjs +0 -35
- package/fesm2022/xxmachina-common-usecase-project.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-spec.mjs +0 -45
- package/fesm2022/xxmachina-common-usecase-spec.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase.mjs +0 -198
- package/fesm2022/xxmachina-common-usecase.mjs.map +0 -1
- package/fesm2022/xxmachina-common-utils-crypto.mjs.map +0 -1
- package/fesm2022/xxmachina-common-utils.mjs.map +0 -1
- package/fesm2022/xxmachina-common.mjs +0 -6
- package/fesm2022/xxmachina-common.mjs.map +0 -1
- package/index.d.ts +0 -1
- package/infra/external/resend/resend.service.d.ts +0 -2
- package/infra/query/firestore/index.d.ts +0 -2
- package/infra/query/hasura/index.d.ts +0 -1
- package/infra/query/hasura/resource/resource.query.d.ts +0 -6
- package/infra/repository/dataconnect/index.d.ts +0 -2
- package/infra/repository/firestore/firestore.repository.d.ts +0 -8
- package/infra/repository/firestore/index.d.ts +0 -3
- package/infra/repository/firestore/link/google/google.repository.d.ts +0 -10
- package/infra/repository/firestore/link/link.repository.d.ts +0 -8
- package/infra/repository/hasura/index.d.ts +0 -2
- package/infra/repository/notion/index.d.ts +0 -6
- package/infra/repository/redis/system/system.repository.d.ts +0 -6
- package/stores/firestore/firestore.store.d.ts +0 -12
- package/stores/firestore/index.d.ts +0 -1
- package/stores/hasura/hasura.store.d.ts +0 -12
- package/stores/hasura/index.d.ts +0 -1
- package/utils/crypto/index.d.ts +0 -1
- /package/{domain-invoice → domain/invoice}/builders/email/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/builders/message/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/builders/title/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/backoffice/contract.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/backoffice/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/backoffice/invoice-mail.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/index.d.ts +0 -0
- /package/{domain-invoice → domain}/resolvers/index.d.ts +0 -0
- /package/{infra → infrastructure}/converters/google/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/data-connect/data-connect.service.d.ts +0 -0
- /package/{infra → infrastructure}/external/data-connect/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/quick-js/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/resend/index.d.ts +0 -0
- /package/{infra → infrastructure}/index.d.ts +0 -0
- /package/{infra → infrastructure}/query/firestore/query/index.d.ts +0 -0
- /package/{infra → infrastructure}/query/firestore/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/query/hasura/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/invoice/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/invoice/invoice.repository.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/order/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/order/order.repository.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/link/google/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/link/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/query/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/hasura/query/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/hasura/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/contract/contract.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/contract/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/invoice/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/invoice/invoice.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/notion.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/order/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/order/order.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/partner/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/partner/partner.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/operator/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/project/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/redis.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/spec/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/system/index.d.ts +0 -0
- /package/utils/{crypto/crypto.d.ts → crypto.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONTRACT_CONFIG = void 0;
|
|
4
|
+
exports.provideContractConfig = provideContractConfig;
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
exports.CONTRACT_CONFIG = new core_1.InjectionToken('CONTRACT_CONFIG');
|
|
7
|
+
function provideContractConfig(config) {
|
|
8
|
+
return { provide: exports.CONTRACT_CONFIG, useValue: config };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=contract.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.config.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/contract/contract.config.ts"],"names":[],"mappings":";;;AAQA,sDAEC;AAVD,wCAA+C;AAMlC,QAAA,eAAe,GAAG,IAAI,qBAAc,CAAiB,iBAAiB,CAAC,CAAC;AAErF,SAAgB,qBAAqB,CAAC,MAAsB;IAC1D,OAAO,EAAE,OAAO,EAAE,uBAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACxD,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { NotionRepository } from "@nx-ddd/notion";
|
|
2
|
-
import { Contract } from "@xxmachina/common/domain
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
2
|
+
import { Contract } from "@xxmachina/common/domain/invoice/models";
|
|
4
3
|
export declare class ContractRepository extends NotionRepository<Contract> {
|
|
5
4
|
protected converter: import("@nx-ddd/notion").NotionConverter<any>;
|
|
6
5
|
protected config: import("./contract.config").ContractConfig;
|
|
7
6
|
protected accessToken: string;
|
|
8
7
|
protected databaseId: string;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContractRepository, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContractRepository>;
|
|
11
8
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContractRepository = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const notion_1 = require("@nx-ddd/notion");
|
|
7
|
+
const models_1 = require("@xxmachina/common/domain/invoice/models");
|
|
8
|
+
const contract_config_1 = require("./contract.config");
|
|
9
|
+
let ContractRepository = class ContractRepository extends notion_1.NotionRepository {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.converter = (0, notion_1.createConverter)(models_1.Contract);
|
|
13
|
+
this.config = (0, core_1.inject)(contract_config_1.CONTRACT_CONFIG);
|
|
14
|
+
this.accessToken = (0, core_1.inject)(notion_1.NOTION_ACCESS_TOKEN);
|
|
15
|
+
this.databaseId = this.config.databaseId;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.ContractRepository = ContractRepository;
|
|
19
|
+
exports.ContractRepository = ContractRepository = tslib_1.__decorate([
|
|
20
|
+
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
21
|
+
], ContractRepository);
|
|
22
|
+
//# sourceMappingURL=contract.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/contract/contract.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,2CAAwF;AACxF,oEAAmE;AACnE,uDAAoD;AAG7C,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,yBAA0B;IAA3D;;QACK,cAAS,GAAG,IAAA,wBAAe,EAAC,iBAAQ,CAAC,CAAC;QACtC,WAAM,GAAG,IAAA,aAAM,EAAC,iCAAe,CAAC,CAAC;QACjC,gBAAW,GAAG,IAAA,aAAM,EAAC,4BAAmB,CAAC,CAAC;QAC1C,eAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;IAChD,CAAC;CAAA,CAAA;AALY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,kBAAkB,CAK9B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./contract.config"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./contract.repository"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/contract/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,gEAAsC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./notion.config"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./notion.repository"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,8DAAoC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./invoice.config"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./invoice.repository"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/invoice/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,+DAAqC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.INVOICE_CONFIG = void 0;
|
|
4
|
+
exports.provideInvoiceConfig = provideInvoiceConfig;
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
exports.INVOICE_CONFIG = new core_1.InjectionToken('Invoice Config');
|
|
7
|
+
function provideInvoiceConfig(config) {
|
|
8
|
+
return { provide: exports.INVOICE_CONFIG, useValue: config };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=invoice.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.config.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/invoice/invoice.config.ts"],"names":[],"mappings":";;;AAQA,oDAEC;AAVD,wCAA+C;AAMlC,QAAA,cAAc,GAAG,IAAI,qBAAc,CAAgB,gBAAgB,CAAC,CAAC;AAElF,SAAgB,oBAAoB,CAAC,MAAqB;IACxD,OAAO,EAAE,OAAO,EAAE,sBAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACvD,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { NotionRepository } from "@nx-ddd/notion";
|
|
2
|
-
import { Invoice } from "@xxmachina/common/domain
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
2
|
+
import { Invoice } from "@xxmachina/common/domain/invoice/models";
|
|
4
3
|
export declare class InvoiceRepository extends NotionRepository<Invoice> {
|
|
5
4
|
protected converter: import("@nx-ddd/notion").NotionConverter<any>;
|
|
6
5
|
protected config: import("./invoice.config").InvoiceConfig;
|
|
7
6
|
protected accessToken: string;
|
|
8
7
|
protected databaseId: string;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InvoiceRepository, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InvoiceRepository>;
|
|
11
8
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvoiceRepository = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const notion_1 = require("@nx-ddd/notion");
|
|
7
|
+
const models_1 = require("@xxmachina/common/domain/invoice/models");
|
|
8
|
+
const invoice_config_1 = require("./invoice.config");
|
|
9
|
+
let InvoiceRepository = class InvoiceRepository extends notion_1.NotionRepository {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.converter = (0, notion_1.createConverter)(models_1.Invoice);
|
|
13
|
+
this.config = (0, core_1.inject)(invoice_config_1.INVOICE_CONFIG);
|
|
14
|
+
this.accessToken = (0, core_1.inject)(notion_1.NOTION_ACCESS_TOKEN);
|
|
15
|
+
this.databaseId = this.config.databaseId;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.InvoiceRepository = InvoiceRepository;
|
|
19
|
+
exports.InvoiceRepository = InvoiceRepository = tslib_1.__decorate([
|
|
20
|
+
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
21
|
+
], InvoiceRepository);
|
|
22
|
+
//# sourceMappingURL=invoice.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/invoice/invoice.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,2CAAwF;AACxF,oEAAkE;AAClE,qDAAkD;AAG3C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,yBAAyB;IAAzD;;QACK,cAAS,GAAG,IAAA,wBAAe,EAAC,gBAAO,CAAC,CAAC;QACrC,WAAM,GAAG,IAAA,aAAM,EAAC,+BAAc,CAAC,CAAC;QAChC,gBAAW,GAAG,IAAA,aAAM,EAAC,4BAAmB,CAAC,CAAC;QAC1C,eAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;IAChD,CAAC;CAAA,CAAA;AALY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,iBAAiB,CAK7B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.provideNotionConfig = provideNotionConfig;
|
|
4
|
+
const contract_1 = require("./contract");
|
|
5
|
+
const invoice_1 = require("./invoice");
|
|
6
|
+
const order_config_1 = require("./order/order.config");
|
|
7
|
+
const partner_1 = require("./partner");
|
|
8
|
+
const notion_1 = require("@nx-ddd/notion");
|
|
9
|
+
function provideNotionConfig(config) {
|
|
10
|
+
return [
|
|
11
|
+
(0, contract_1.provideContractConfig)(config.contract),
|
|
12
|
+
(0, invoice_1.provideInvoiceConfig)(config.invoice),
|
|
13
|
+
(0, order_config_1.provideOrderConfig)(config.order),
|
|
14
|
+
(0, partner_1.providePartnerConfig)(config.partner),
|
|
15
|
+
(0, notion_1.provideNotionConfig)({ accessToken: config.accessToken }),
|
|
16
|
+
];
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=notion.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notion.config.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/notion.config.ts"],"names":[],"mappings":";;AAcA,kDAQC;AAtBD,yCAAmE;AACnE,uCAAgE;AAChE,uDAA0D;AAC1D,uCAAgE;AAChE,2CAA6E;AAU7E,SAAgB,mBAAmB,CAAC,MAAoB;IACtD,OAAO;QACL,IAAA,gCAAqB,EAAC,MAAM,CAAC,QAAQ,CAAC;QACtC,IAAA,8BAAoB,EAAC,MAAM,CAAC,OAAO,CAAC;QACpC,IAAA,iCAAkB,EAAC,MAAM,CAAC,KAAK,CAAC;QAChC,IAAA,8BAAoB,EAAC,MAAM,CAAC,OAAO,CAAC;QACpC,IAAA,4BAAoB,EAAC,EAAC,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -2,13 +2,10 @@ import { ContractRepository } from "./contract";
|
|
|
2
2
|
import { InvoiceRepository } from "./invoice";
|
|
3
3
|
import { OrderRepository } from "./order";
|
|
4
4
|
import { PartnerRepository } from "./partner";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class NotionRepository {
|
|
7
6
|
contract: ContractRepository;
|
|
8
7
|
invoice: InvoiceRepository;
|
|
9
8
|
order: OrderRepository;
|
|
10
9
|
partner: PartnerRepository;
|
|
11
10
|
constructor(contract: ContractRepository, invoice: InvoiceRepository, order: OrderRepository, partner: PartnerRepository);
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotionRepository, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NotionRepository>;
|
|
14
11
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NotionRepository = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const contract_1 = require("./contract");
|
|
7
|
+
const invoice_1 = require("./invoice");
|
|
8
|
+
const order_1 = require("./order");
|
|
9
|
+
const partner_1 = require("./partner");
|
|
10
|
+
let NotionRepository = class NotionRepository {
|
|
11
|
+
constructor(contract, invoice, order, partner) {
|
|
12
|
+
this.contract = contract;
|
|
13
|
+
this.invoice = invoice;
|
|
14
|
+
this.order = order;
|
|
15
|
+
this.partner = partner;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.NotionRepository = NotionRepository;
|
|
19
|
+
exports.NotionRepository = NotionRepository = tslib_1.__decorate([
|
|
20
|
+
(0, core_1.Injectable)({ providedIn: 'root' }),
|
|
21
|
+
tslib_1.__metadata("design:paramtypes", [contract_1.ContractRepository,
|
|
22
|
+
invoice_1.InvoiceRepository,
|
|
23
|
+
order_1.OrderRepository,
|
|
24
|
+
partner_1.PartnerRepository])
|
|
25
|
+
], NotionRepository);
|
|
26
|
+
//# sourceMappingURL=notion.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notion.repository.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/notion.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,yCAAgD;AAChD,uCAA8C;AAC9C,mCAA0C;AAC1C,uCAA8C;AAGvC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YACS,QAA4B,EAC5B,OAA0B,EAC1B,KAAsB,EACtB,OAA0B;QAH1B,aAAQ,GAAR,QAAQ,CAAoB;QAC5B,YAAO,GAAP,OAAO,CAAmB;QAC1B,UAAK,GAAL,KAAK,CAAiB;QACtB,YAAO,GAAP,OAAO,CAAmB;IAChC,CAAC;CACL,CAAA;AAPY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;6CAGZ,6BAAkB;QACnB,2BAAiB;QACnB,uBAAe;QACb,2BAAiB;GALxB,gBAAgB,CAO5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/order/index.ts"],"names":[],"mappings":";;;AAAA,6DAAmC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ORDER_CONFIG = void 0;
|
|
4
|
+
exports.provideOrderConfig = provideOrderConfig;
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
exports.ORDER_CONFIG = new core_1.InjectionToken('ORDER_CONFIG');
|
|
7
|
+
function provideOrderConfig(config) {
|
|
8
|
+
return { provide: exports.ORDER_CONFIG, useValue: config };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=order.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.config.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/order/order.config.ts"],"names":[],"mappings":";;;AAQA,gDAEC;AAVD,wCAA+C;AAMlC,QAAA,YAAY,GAAG,IAAI,qBAAc,CAAc,cAAc,CAAC,CAAC;AAE5E,SAAgB,kBAAkB,CAAC,MAAmB;IACpD,OAAO,EAAE,OAAO,EAAE,oBAAY,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACrD,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { NotionRepository } from "@nx-ddd/notion";
|
|
2
|
-
import { Order } from "@xxmachina/common/domain
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
2
|
+
import { Order } from "@xxmachina/common/domain/invoice/models";
|
|
4
3
|
export declare class OrderRepository extends NotionRepository<Order> {
|
|
5
4
|
protected converter: import("@nx-ddd/notion").NotionConverter<any>;
|
|
6
5
|
protected config: import("./order.config").OrderConfig;
|
|
7
6
|
protected accessToken: string;
|
|
8
7
|
protected databaseId: string;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OrderRepository, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OrderRepository>;
|
|
11
8
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrderRepository = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const notion_1 = require("@nx-ddd/notion");
|
|
7
|
+
const models_1 = require("@xxmachina/common/domain/invoice/models");
|
|
8
|
+
const order_config_1 = require("./order.config");
|
|
9
|
+
let OrderRepository = class OrderRepository extends notion_1.NotionRepository {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.converter = (0, notion_1.createConverter)(models_1.Order);
|
|
13
|
+
this.config = (0, core_1.inject)(order_config_1.ORDER_CONFIG);
|
|
14
|
+
this.accessToken = (0, core_1.inject)(notion_1.NOTION_ACCESS_TOKEN);
|
|
15
|
+
this.databaseId = this.config.databaseId;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.OrderRepository = OrderRepository;
|
|
19
|
+
exports.OrderRepository = OrderRepository = tslib_1.__decorate([
|
|
20
|
+
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
21
|
+
], OrderRepository);
|
|
22
|
+
//# sourceMappingURL=order.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/order/order.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,2CAAwF;AACxF,oEAAgE;AAChE,iDAA8C;AAGvC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,yBAAuB;IAArD;;QACK,cAAS,GAAG,IAAA,wBAAe,EAAC,cAAK,CAAC,CAAC;QACnC,WAAM,GAAG,IAAA,aAAM,EAAC,2BAAY,CAAC,CAAC;QAC9B,gBAAW,GAAG,IAAA,aAAM,EAAC,4BAAmB,CAAC,CAAC;QAC1C,eAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;IAChD,CAAC;CAAA,CAAA;AALY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,eAAe,CAK3B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./partner.config"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./partner.repository"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/partner/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,+DAAqC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PARTNER_CONFIG = void 0;
|
|
4
|
+
exports.providePartnerConfig = providePartnerConfig;
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
exports.PARTNER_CONFIG = new core_1.InjectionToken('PARTNER_CONFIG');
|
|
7
|
+
function providePartnerConfig(config) {
|
|
8
|
+
return { provide: exports.PARTNER_CONFIG, useValue: config };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=partner.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner.config.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/partner/partner.config.ts"],"names":[],"mappings":";;;AAQA,oDAEC;AAVD,wCAA+C;AAMlC,QAAA,cAAc,GAAG,IAAI,qBAAc,CAAgB,gBAAgB,CAAC,CAAC;AAElF,SAAgB,oBAAoB,CAAC,MAAqB;IACxD,OAAO,EAAE,OAAO,EAAE,sBAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;AACvD,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { NotionRepository } from "@nx-ddd/notion";
|
|
2
|
-
import { Partner } from "@xxmachina/common/domain
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
2
|
+
import { Partner } from "@xxmachina/common/domain/invoice/models";
|
|
4
3
|
export declare class PartnerRepository extends NotionRepository<Partner> {
|
|
5
4
|
protected converter: import("@nx-ddd/notion").NotionConverter<any>;
|
|
6
5
|
protected config: import("./partner.config").PartnerConfig;
|
|
7
6
|
protected accessToken: string;
|
|
8
7
|
protected databaseId: string;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PartnerRepository, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PartnerRepository>;
|
|
11
8
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PartnerRepository = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const notion_1 = require("@nx-ddd/notion");
|
|
7
|
+
const models_1 = require("@xxmachina/common/domain/invoice/models");
|
|
8
|
+
const partner_config_1 = require("./partner.config");
|
|
9
|
+
let PartnerRepository = class PartnerRepository extends notion_1.NotionRepository {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.converter = (0, notion_1.createConverter)(models_1.Partner);
|
|
13
|
+
this.config = (0, core_1.inject)(partner_config_1.PARTNER_CONFIG);
|
|
14
|
+
this.accessToken = (0, core_1.inject)(notion_1.NOTION_ACCESS_TOKEN);
|
|
15
|
+
this.databaseId = this.config.databaseId;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.PartnerRepository = PartnerRepository;
|
|
19
|
+
exports.PartnerRepository = PartnerRepository = tslib_1.__decorate([
|
|
20
|
+
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
21
|
+
], PartnerRepository);
|
|
22
|
+
//# sourceMappingURL=partner.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/notion/partner/partner.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,2CAAwF;AACxF,oEAAkE;AAClE,qDAAkD;AAG3C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,yBAAyB;IAAzD;;QACK,cAAS,GAAG,IAAA,wBAAe,EAAC,gBAAO,CAAC,CAAC;QACrC,WAAM,GAAG,IAAA,aAAM,EAAC,+BAAc,CAAC,CAAC;QAChC,gBAAW,GAAG,IAAA,aAAM,EAAC,4BAAmB,CAAC,CAAC;QAC1C,eAAU,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;IAChD,CAAC;CAAA,CAAA;AALY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,iBAAiB,CAK7B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./redis.config"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./redis.service"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,0DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/operator/index.ts"],"names":[],"mappings":";;;AAAA,gEAAsC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { RedisRepository } from '@xxmachina/common/_shared/meta/redis';
|
|
2
2
|
import { Operator } from "@xxmachina/common/domain/models";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class OperatorRepository extends RedisRepository<Operator> {
|
|
5
4
|
protected entityName: string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OperatorRepository, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OperatorRepository>;
|
|
8
5
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OperatorRepository = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const redis_1 = require("@xxmachina/common/_shared/meta/redis");
|
|
7
|
+
let OperatorRepository = class OperatorRepository extends redis_1.RedisRepository {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.entityName = 'operator';
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.OperatorRepository = OperatorRepository;
|
|
14
|
+
exports.OperatorRepository = OperatorRepository = tslib_1.__decorate([
|
|
15
|
+
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
16
|
+
], OperatorRepository);
|
|
17
|
+
//# sourceMappingURL=operator.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/operator/operator.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,gEAAuE;AAIhE,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,uBAAyB;IAA1D;;QACK,eAAU,GAAG,UAAU,CAAC;IACpC,CAAC;CAAA,CAAA;AAFY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,kBAAkB,CAE9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/project/index.ts"],"names":[],"mappings":";;;AAAA,+DAAqC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Converter, RedisRepository } from '@xxmachina/common/_shared/meta/redis';
|
|
2
2
|
import { Project } from "@xxmachina/common/domain/models";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class ProjectConverter extends Converter<Project, {
|
|
5
4
|
id: string;
|
|
6
5
|
settings: string;
|
|
@@ -17,6 +16,4 @@ export declare class ProjectConverter extends Converter<Project, {
|
|
|
17
16
|
export declare class ProjectRepository extends RedisRepository<Project> {
|
|
18
17
|
protected entityName: string;
|
|
19
18
|
protected converter: ProjectConverter;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProjectRepository, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProjectRepository>;
|
|
22
19
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectRepository = exports.ProjectConverter = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const redis_1 = require("@xxmachina/common/_shared/meta/redis");
|
|
7
|
+
class ProjectConverter extends redis_1.Converter {
|
|
8
|
+
fromRedis(record) {
|
|
9
|
+
return {
|
|
10
|
+
id: record.id,
|
|
11
|
+
settings: JSON.parse(record.settings),
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
toRedis(entity) {
|
|
15
|
+
return {
|
|
16
|
+
id: entity.id,
|
|
17
|
+
settings: JSON.stringify(entity.settings),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.ProjectConverter = ProjectConverter;
|
|
22
|
+
let ProjectRepository = class ProjectRepository extends redis_1.RedisRepository {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.entityName = 'project';
|
|
26
|
+
this.converter = new ProjectConverter();
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.ProjectRepository = ProjectRepository;
|
|
30
|
+
exports.ProjectRepository = ProjectRepository = tslib_1.__decorate([
|
|
31
|
+
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
32
|
+
], ProjectRepository);
|
|
33
|
+
//# sourceMappingURL=project.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project.repository.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/project/project.repository.ts"],"names":[],"mappings":";;;;AAAA,wCAA2C;AAC3C,gEAAkF;AAGlF,MAAa,gBAAiB,SAAQ,iBAAkD;IACtF,SAAS,CAAC,MAAyC;QACjD,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;SACtC,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,MAAe;QACrB,OAAO;YACL,EAAE,EAAE,MAAM,CAAC,EAAE;YACb,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;SAC1C,CAAC;IACJ,CAAC;CACF;AAdD,4CAcC;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,uBAAwB;IAAxD;;QACK,eAAU,GAAG,SAAS,CAAC;QACvB,cAAS,GAAG,IAAI,gBAAgB,EAAE,CAAC;IAC/C,CAAC;CAAA,CAAA;AAHY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,iBAAiB,CAG7B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.provideRedisConfig = provideRedisConfig;
|
|
4
|
+
const redis_1 = require("@xxmachina/common/_shared/meta/redis");
|
|
5
|
+
function provideRedisConfig(config) {
|
|
6
|
+
return [
|
|
7
|
+
(0, redis_1.provideRedisConfig)(config.redis),
|
|
8
|
+
];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=redis.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis.config.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/redis.config.ts"],"names":[],"mappings":";;AAMA,gDAIC;AAVD,gEAA8H;AAM9H,SAAgB,kBAAkB,CAAC,MAAmB;IACpD,OAAO;QACL,IAAA,0BAAmB,EAAC,MAAM,CAAC,KAAK,CAAC;KAClC,CAAC;AACJ,CAAC"}
|
|
@@ -2,12 +2,9 @@ import { OperatorRepository } from "./operator";
|
|
|
2
2
|
import { ProjectRepository } from "./project";
|
|
3
3
|
import { SpecRepository } from "./spec";
|
|
4
4
|
import { SystemRepository } from "./system";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class RedisService {
|
|
7
6
|
readonly operator: OperatorRepository;
|
|
8
7
|
readonly project: ProjectRepository;
|
|
9
8
|
readonly spec: SpecRepository;
|
|
10
9
|
readonly system: SystemRepository;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RedisService, never>;
|
|
12
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RedisService>;
|
|
13
10
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RedisService = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const core_1 = require("@angular/core");
|
|
6
|
+
const operator_1 = require("./operator");
|
|
7
|
+
const project_1 = require("./project");
|
|
8
|
+
const spec_1 = require("./spec");
|
|
9
|
+
const system_1 = require("./system");
|
|
10
|
+
let RedisService = class RedisService {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.operator = (0, core_1.inject)(operator_1.OperatorRepository);
|
|
13
|
+
this.project = (0, core_1.inject)(project_1.ProjectRepository);
|
|
14
|
+
this.spec = (0, core_1.inject)(spec_1.SpecRepository);
|
|
15
|
+
this.system = (0, core_1.inject)(system_1.SystemRepository);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
exports.RedisService = RedisService;
|
|
19
|
+
exports.RedisService = RedisService = tslib_1.__decorate([
|
|
20
|
+
(0, core_1.Injectable)({ providedIn: 'root' })
|
|
21
|
+
], RedisService);
|
|
22
|
+
//# sourceMappingURL=redis.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis.service.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/redis.service.ts"],"names":[],"mappings":";;;;AAAA,wCAAmD;AACnD,yCAAgD;AAChD,uCAA8C;AAC9C,iCAAwC;AACxC,qCAA4C;AAGrC,IAAM,YAAY,GAAlB,MAAM,YAAY;IAAlB;QACI,aAAQ,GAAG,IAAA,aAAM,EAAC,6BAAkB,CAAC,CAAC;QACtC,YAAO,GAAG,IAAA,aAAM,EAAC,2BAAiB,CAAC,CAAC;QACpC,SAAI,GAAG,IAAA,aAAM,EAAC,qBAAc,CAAC,CAAC;QAC9B,WAAM,GAAG,IAAA,aAAM,EAAC,yBAAgB,CAAC,CAAC;IAC7C,CAAC;CAAA,CAAA;AALY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,iBAAU,EAAC,EAAC,UAAU,EAAE,MAAM,EAAC,CAAC;GACpB,YAAY,CAKxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/infrastructure/repository/redis/spec/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { InjectionToken } from "@angular/core";
|
|
2
|
-
import { RedisRepository } from '@xxmachina/common/_shared/meta/redis';
|
|
2
|
+
import { RedisConfig, RedisRepository } from '@xxmachina/common/_shared/meta/redis';
|
|
3
3
|
import { Spec } from "@xxmachina/common/domain/models";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
4
|
export declare const VECTOR_SIZE: InjectionToken<unknown>;
|
|
6
5
|
export declare class SpecRepository extends RedisRepository<Spec> {
|
|
7
|
-
|
|
6
|
+
private vectorSize;
|
|
7
|
+
constructor(config: RedisConfig, vectorSize: number);
|
|
8
8
|
protected entityName: string;
|
|
9
9
|
create(spec: Spec): Promise<Spec>;
|
|
10
10
|
get(id: string): Promise<Spec>;
|
|
@@ -14,6 +14,4 @@ export declare class SpecRepository extends RedisRepository<Spec> {
|
|
|
14
14
|
search(operatorId: string, embeddings: number[], n?: number): Promise<Spec[]>;
|
|
15
15
|
private toBuffer;
|
|
16
16
|
private fromBuffer;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpecRepository, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SpecRepository>;
|
|
19
17
|
}
|