@xxmachina/common 19.0.0-preview.2 → 19.0.0-preview.21
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/_shared/meta/index.d.ts +1 -0
- package/_shared/meta/redis/redis.repository.d.ts +6 -3
- package/auth/auth.service.d.ts +3 -0
- package/azure-auth/auth.service.d.ts +3 -0
- package/domain/builder/command/command.builder.d.ts +1 -2
- package/domain/builder/command-action/command-action.builder.d.ts +1 -1
- package/domain/builder/index.d.ts +4 -0
- package/domain/builder/screen-item/screen-item.builder.d.ts +2 -2
- package/domain/index.d.ts +2 -1
- package/domain/models/index.d.ts +8 -2
- package/domain/models/links/index.d.ts +1 -0
- package/{domain/invoice → domain-invoice}/builders/email/email.builder.d.ts +1 -1
- package/domain-invoice/builders/index.d.ts +3 -0
- package/{domain/invoice → domain-invoice}/builders/message/message.builder.d.ts +1 -1
- package/{domain/invoice → domain-invoice}/builders/title/title.builder.d.ts +1 -1
- package/domain-invoice/index.d.ts +3 -0
- package/{domain/invoice → domain-invoice}/models/backoffice/invoice.d.ts +1 -1
- package/{domain/invoice → domain-invoice}/models/backoffice/order.d.ts +1 -1
- package/{domain/invoice → domain-invoice}/models/backoffice/partner.d.ts +1 -1
- package/{domain → domain-invoice}/resolvers/invoice.resolver.d.ts +1 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs +20 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs +41 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs +34 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs +49 -0
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-auth.mjs +25 -0
- package/fesm2022/xxmachina-common-_shared-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +99 -0
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +1 -0
- package/fesm2022/xxmachina-common-_shared-meta.mjs +26 -0
- package/fesm2022/xxmachina-common-_shared-meta.mjs.map +1 -0
- package/fesm2022/xxmachina-common-auth.mjs +17 -0
- package/fesm2022/xxmachina-common-auth.mjs.map +1 -0
- package/fesm2022/xxmachina-common-azure-auth.mjs +160 -0
- package/fesm2022/xxmachina-common-azure-auth.mjs.map +1 -0
- package/{domain/builder/screen-item/screen-item.builder.js → fesm2022/xxmachina-common-domain-builder-screen-item.mjs} +10 -11
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-builder.mjs +470 -0
- package/fesm2022/xxmachina-common-domain-builder.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-invoice-builders.mjs +70 -0
- package/fesm2022/xxmachina-common-domain-invoice-builders.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-invoice-models.mjs +427 -0
- package/fesm2022/xxmachina-common-domain-invoice-models.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs +39 -0
- package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-invoice.mjs +8 -0
- package/fesm2022/xxmachina-common-domain-invoice.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain-models.mjs +783 -0
- package/fesm2022/xxmachina-common-domain-models.mjs.map +1 -0
- package/fesm2022/xxmachina-common-domain.mjs +7 -0
- package/fesm2022/xxmachina-common-domain.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-converters-google.mjs +36 -0
- package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs +13 -0
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +44 -0
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external-resend.mjs +10 -0
- package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-external.mjs +36 -0
- package/fesm2022/xxmachina-common-infra-external.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs +34 -0
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs +20 -0
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs +18 -0
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +74 -0
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +41 -0
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs +112 -0
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +1 -0
- package/fesm2022/xxmachina-common-infra.mjs +377 -0
- package/fesm2022/xxmachina-common-infra.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-firestore.mjs +33 -0
- package/fesm2022/xxmachina-common-stores-firestore.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores-hasura.mjs +32 -0
- package/fesm2022/xxmachina-common-stores-hasura.mjs.map +1 -0
- package/fesm2022/xxmachina-common-stores.mjs +16 -0
- package/fesm2022/xxmachina-common-stores.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-assistant.mjs +67 -0
- package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-database.mjs +95 -0
- package/fesm2022/xxmachina-common-usecase-database.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-graphql.mjs +51 -0
- package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-invoice.mjs +67 -0
- package/fesm2022/xxmachina-common-usecase-invoice.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-link.mjs +26 -0
- package/fesm2022/xxmachina-common-usecase-link.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-order.mjs +29 -0
- package/fesm2022/xxmachina-common-usecase-order.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-project.mjs +35 -0
- package/fesm2022/xxmachina-common-usecase-project.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase-spec.mjs +45 -0
- package/fesm2022/xxmachina-common-usecase-spec.mjs.map +1 -0
- package/fesm2022/xxmachina-common-usecase.mjs +198 -0
- package/fesm2022/xxmachina-common-usecase.mjs.map +1 -0
- package/{utils/crypto.js → fesm2022/xxmachina-common-utils-crypto.mjs} +10 -12
- package/fesm2022/xxmachina-common-utils-crypto.mjs.map +1 -0
- package/{utils/extract-display-fields.js → fesm2022/xxmachina-common-utils.mjs} +7 -4
- package/fesm2022/xxmachina-common-utils.mjs.map +1 -0
- package/fesm2022/xxmachina-common.mjs +6 -0
- package/fesm2022/xxmachina-common.mjs.map +1 -0
- package/index.d.ts +1 -0
- package/{infrastructure → infra}/converters/google/google.converter.d.ts +4 -1
- package/{infrastructure → infra}/external/external.config.d.ts +2 -2
- package/{infrastructure → infra}/external/external.service.d.ts +4 -1
- package/{infrastructure → infra}/external/quick-js/quick-js.service.d.ts +3 -0
- package/infra/external/resend/resend.service.d.ts +2 -0
- package/{infrastructure → infra}/external/resend/resend.service.impl.d.ts +4 -8
- package/{infrastructure → infra}/infrastructure.config.d.ts +5 -5
- package/{infrastructure → infra}/infrastructure.service.d.ts +3 -0
- package/infra/query/firestore/index.d.ts +2 -0
- package/{infrastructure → infra}/query/firestore/query/query.query.d.ts +3 -0
- package/{infrastructure → infra}/query/firestore/resource/resource.query.d.ts +3 -0
- package/infra/query/hasura/index.d.ts +1 -0
- package/infra/query/hasura/resource/resource.query.d.ts +6 -0
- package/infra/repository/dataconnect/index.d.ts +2 -0
- package/{infrastructure → infra}/repository/dataconnect/invoice/invoice.repository.impl.d.ts +4 -1
- package/{infrastructure → infra}/repository/dataconnect/order/order.repository.impl.d.ts +4 -1
- package/infra/repository/firestore/firestore.repository.d.ts +8 -0
- package/infra/repository/firestore/index.d.ts +3 -0
- package/infra/repository/firestore/link/google/google.repository.d.ts +10 -0
- package/infra/repository/firestore/link/link.repository.d.ts +8 -0
- package/{infrastructure → infra}/repository/firestore/query/query.repository.d.ts +4 -1
- package/{infrastructure → infra}/repository/firestore/resource/resource.repository.d.ts +4 -1
- package/infra/repository/hasura/index.d.ts +2 -0
- package/{infrastructure → infra}/repository/hasura/query/query.repository.d.ts +3 -0
- package/{infrastructure → infra}/repository/hasura/resource/resource.repository.d.ts +3 -0
- package/{infrastructure → infra}/repository/notion/contract/contract.repository.d.ts +4 -1
- package/infra/repository/notion/index.d.ts +6 -0
- package/{infrastructure → infra}/repository/notion/invoice/invoice.repository.d.ts +4 -1
- package/{infrastructure → infra}/repository/notion/notion.repository.d.ts +3 -0
- package/{infrastructure → infra}/repository/notion/order/order.repository.d.ts +4 -1
- package/{infrastructure → infra}/repository/notion/partner/partner.repository.d.ts +4 -1
- package/{infrastructure → infra}/repository/redis/operator/operator.repository.d.ts +3 -0
- package/{infrastructure → infra}/repository/redis/project/project.repository.d.ts +3 -0
- package/{infrastructure → infra}/repository/redis/redis.service.d.ts +3 -0
- package/{infrastructure → infra}/repository/redis/spec/spec.repository.d.ts +5 -3
- package/infra/repository/redis/system/system.repository.d.ts +6 -0
- package/{infrastructure → infra}/repository/repository.config.d.ts +4 -4
- package/{infrastructure → infra}/repository/repository.service.d.ts +3 -0
- package/package.json +199 -13
- package/stores/firestore/firestore.store.d.ts +12 -0
- package/stores/firestore/index.d.ts +1 -0
- package/stores/hasura/hasura.store.d.ts +12 -0
- package/stores/hasura/index.d.ts +1 -0
- package/stores/index.d.ts +4 -28
- package/usecase/assistant/assistant.service.d.ts +4 -1
- package/usecase/database/database.service.d.ts +3 -0
- package/usecase/graphql/graphql.service.d.ts +3 -0
- package/usecase/invoice/invoice.service.d.ts +9 -13
- package/usecase/link/link.service.d.ts +5 -2
- package/usecase/order/order.service.d.ts +5 -2
- package/usecase/project/project.service.d.ts +4 -1
- package/usecase/spec/spec.service.d.ts +4 -1
- package/usecase/usecase.service.d.ts +3 -0
- package/utils/crypto/index.d.ts +1 -0
- package/README.md +0 -11
- package/_shared/auth/auth.module.js +0 -22
- package/_shared/auth/auth.module.js.map +0 -1
- package/_shared/auth/index.js +0 -5
- package/_shared/auth/index.js.map +0 -1
- package/_shared/auth/passports/anonymous/anonymous.strategy.js +0 -19
- package/_shared/auth/passports/anonymous/anonymous.strategy.js.map +0 -1
- package/_shared/auth/passports/anonymous/index.js +0 -5
- package/_shared/auth/passports/anonymous/index.js.map +0 -1
- package/_shared/auth/passports/firebase/firebase.guard.js +0 -23
- package/_shared/auth/passports/firebase/firebase.guard.js.map +0 -1
- package/_shared/auth/passports/firebase/firebase.strategy.js +0 -22
- package/_shared/auth/passports/firebase/firebase.strategy.js.map +0 -1
- package/_shared/auth/passports/firebase/index.js +0 -6
- package/_shared/auth/passports/firebase/index.js.map +0 -1
- package/_shared/auth/passports/internal/index.js +0 -5
- package/_shared/auth/passports/internal/index.js.map +0 -1
- package/_shared/auth/passports/internal/internal.strategy.js +0 -33
- package/_shared/auth/passports/internal/internal.strategy.js.map +0 -1
- package/_shared/auth/passports/msal/index.js +0 -6
- package/_shared/auth/passports/msal/index.js.map +0 -1
- package/_shared/auth/passports/msal/msal.guard.js +0 -13
- package/_shared/auth/passports/msal/msal.guard.js.map +0 -1
- package/_shared/auth/passports/msal/msal.strategy.js +0 -43
- package/_shared/auth/passports/msal/msal.strategy.js.map +0 -1
- package/_shared/meta/decorators.js +0 -25
- package/_shared/meta/decorators.js.map +0 -1
- package/_shared/meta/redis/index.js +0 -6
- package/_shared/meta/redis/index.js.map +0 -1
- package/_shared/meta/redis/redis.config.js +0 -10
- package/_shared/meta/redis/redis.config.js.map +0 -1
- package/_shared/meta/redis/redis.repository.js +0 -108
- package/_shared/meta/redis/redis.repository.js.map +0 -1
- package/auth/auth.service.js +0 -12
- package/auth/auth.service.js.map +0 -1
- package/auth/index.js +0 -5
- package/auth/index.js.map +0 -1
- package/azure-auth/auth.di.js +0 -56
- package/azure-auth/auth.di.js.map +0 -1
- package/azure-auth/auth.service.js +0 -115
- package/azure-auth/auth.service.js.map +0 -1
- package/azure-auth/index.js +0 -6
- package/azure-auth/index.js.map +0 -1
- package/domain/builder/command/command.builder.js +0 -30
- package/domain/builder/command/command.builder.js.map +0 -1
- package/domain/builder/command/index.js +0 -5
- package/domain/builder/command/index.js.map +0 -1
- package/domain/builder/command-action/command-action.builder.js +0 -139
- package/domain/builder/command-action/command-action.builder.js.map +0 -1
- package/domain/builder/command-action/index.js +0 -5
- package/domain/builder/command-action/index.js.map +0 -1
- package/domain/builder/er/er.builder.js +0 -112
- package/domain/builder/er/er.builder.js.map +0 -1
- package/domain/builder/er/index.js +0 -5
- package/domain/builder/er/index.js.map +0 -1
- package/domain/builder/screen-item/index.js +0 -5
- package/domain/builder/screen-item/index.js.map +0 -1
- package/domain/builder/screen-item/screen-item.builder.js.map +0 -1
- package/domain/index.js +0 -5
- package/domain/index.js.map +0 -1
- package/domain/invoice/builders/email/email.builder.js +0 -29
- package/domain/invoice/builders/email/email.builder.js.map +0 -1
- package/domain/invoice/builders/email/index.js +0 -5
- package/domain/invoice/builders/email/index.js.map +0 -1
- package/domain/invoice/builders/message/index.js +0 -5
- package/domain/invoice/builders/message/index.js.map +0 -1
- package/domain/invoice/builders/message/message.builder.js +0 -43
- package/domain/invoice/builders/message/message.builder.js.map +0 -1
- package/domain/invoice/builders/title/index.js +0 -5
- package/domain/invoice/builders/title/index.js.map +0 -1
- package/domain/invoice/builders/title/title.builder.js +0 -11
- package/domain/invoice/builders/title/title.builder.js.map +0 -1
- package/domain/invoice/models/backoffice/contract.js +0 -50
- package/domain/invoice/models/backoffice/contract.js.map +0 -1
- package/domain/invoice/models/backoffice/index.js +0 -9
- package/domain/invoice/models/backoffice/index.js.map +0 -1
- package/domain/invoice/models/backoffice/invoice-mail.js +0 -7
- package/domain/invoice/models/backoffice/invoice-mail.js.map +0 -1
- package/domain/invoice/models/backoffice/invoice.js +0 -91
- package/domain/invoice/models/backoffice/invoice.js.map +0 -1
- package/domain/invoice/models/backoffice/order.js +0 -157
- package/domain/invoice/models/backoffice/order.js.map +0 -1
- package/domain/invoice/models/backoffice/partner.js +0 -96
- package/domain/invoice/models/backoffice/partner.js.map +0 -1
- package/domain/invoice/models/index.js +0 -5
- package/domain/invoice/models/index.js.map +0 -1
- package/domain/models/agent/assistant.js +0 -31
- package/domain/models/agent/assistant.js.map +0 -1
- package/domain/models/agent/index.js +0 -5
- package/domain/models/agent/index.js.map +0 -1
- package/domain/models/bookmarklet/bookmarklet.js +0 -34
- package/domain/models/bookmarklet/bookmarklet.js.map +0 -1
- package/domain/models/bookmarklet/index.js +0 -5
- package/domain/models/bookmarklet/index.js.map +0 -1
- package/domain/models/calendar-utils.d.ts +0 -5
- package/domain/models/calendar-utils.js +0 -43
- package/domain/models/calendar-utils.js.map +0 -1
- package/domain/models/command/command.helper.js +0 -14
- package/domain/models/command/command.helper.js.map +0 -1
- package/domain/models/command/command.js +0 -40
- package/domain/models/command/command.js.map +0 -1
- package/domain/models/command/index.js +0 -6
- package/domain/models/command/index.js.map +0 -1
- package/domain/models/database/database.js +0 -7
- package/domain/models/database/database.js.map +0 -1
- package/domain/models/database/index.js +0 -5
- package/domain/models/database/index.js.map +0 -1
- package/domain/models/endpoint/endpoint.helper.js +0 -21
- package/domain/models/endpoint/endpoint.helper.js.map +0 -1
- package/domain/models/endpoint/index.js +0 -5
- package/domain/models/endpoint/index.js.map +0 -1
- package/domain/models/index.js +0 -12
- package/domain/models/index.js.map +0 -1
- package/domain/models/links/google/google.js +0 -47
- package/domain/models/links/google/google.js.map +0 -1
- package/domain/models/links/google/index.js +0 -5
- package/domain/models/links/google/index.js.map +0 -1
- package/domain/models/openapi/index.js +0 -6
- package/domain/models/openapi/index.js.map +0 -1
- package/domain/models/openapi/openapi.js +0 -87
- package/domain/models/openapi/openapi.js.map +0 -1
- package/domain/models/openapi/openapi.schema.js +0 -3
- package/domain/models/openapi/openapi.schema.js.map +0 -1
- package/domain/models/operators/assistancts/base.js +0 -13
- package/domain/models/operators/assistancts/base.js.map +0 -1
- package/domain/models/operators/assistancts/index.js +0 -5
- package/domain/models/operators/assistancts/index.js.map +0 -1
- package/domain/models/operators/base.js +0 -10
- package/domain/models/operators/base.js.map +0 -1
- package/domain/models/operators/index.js +0 -8
- package/domain/models/operators/index.js.map +0 -1
- package/domain/models/operators/systems/base.js +0 -3
- package/domain/models/operators/systems/base.js.map +0 -1
- package/domain/models/operators/systems/graphql.js +0 -3
- package/domain/models/operators/systems/graphql.js.map +0 -1
- package/domain/models/operators/systems/index.js +0 -7
- package/domain/models/operators/systems/index.js.map +0 -1
- package/domain/models/operators/systems/rest.js +0 -3
- package/domain/models/operators/systems/rest.js.map +0 -1
- package/domain/models/operators/workflows/index.js +0 -5
- package/domain/models/operators/workflows/index.js.map +0 -1
- package/domain/models/operators/workflows/workflow.js +0 -3
- package/domain/models/operators/workflows/workflow.js.map +0 -1
- package/domain/models/project.js +0 -9
- package/domain/models/project.js.map +0 -1
- package/domain/models/query/index.js +0 -6
- package/domain/models/query/index.js.map +0 -1
- package/domain/models/query/query.helper.js +0 -172
- package/domain/models/query/query.helper.js.map +0 -1
- package/domain/models/query/query.js +0 -122
- package/domain/models/query/query.js.map +0 -1
- package/domain/models/resource/index.js +0 -6
- package/domain/models/resource/index.js.map +0 -1
- package/domain/models/resource/resource.helper.js +0 -16
- package/domain/models/resource/resource.helper.js.map +0 -1
- package/domain/models/resource/resource.js +0 -73
- package/domain/models/resource/resource.js.map +0 -1
- package/domain/models/scheduler/index.js +0 -5
- package/domain/models/scheduler/index.js.map +0 -1
- package/domain/models/scheduler/schedule.js +0 -89
- package/domain/models/scheduler/schedule.js.map +0 -1
- package/domain/models/screen-item/index.js +0 -5
- package/domain/models/screen-item/index.js.map +0 -1
- package/domain/models/screen-item/screen-item.js +0 -3
- package/domain/models/screen-item/screen-item.js.map +0 -1
- package/domain/models/spec.js +0 -3
- package/domain/models/spec.js.map +0 -1
- package/domain/resolvers/index.js +0 -5
- package/domain/resolvers/index.js.map +0 -1
- package/domain/resolvers/invoice.resolver.js +0 -31
- package/domain/resolvers/invoice.resolver.js.map +0 -1
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.d.ts +0 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js +0 -1
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js.map +0 -1
- package/infrastructure/converters/google/google.converter.js +0 -27
- package/infrastructure/converters/google/google.converter.js.map +0 -1
- package/infrastructure/converters/google/index.js +0 -5
- package/infrastructure/converters/google/index.js.map +0 -1
- package/infrastructure/external/data-connect/data-connect.service.impl.d.ts +0 -7
- package/infrastructure/external/data-connect/data-connect.service.impl.js +0 -20
- package/infrastructure/external/data-connect/data-connect.service.impl.js.map +0 -1
- package/infrastructure/external/data-connect/data-connect.service.js +0 -11
- package/infrastructure/external/data-connect/data-connect.service.js.map +0 -1
- package/infrastructure/external/data-connect/index.js +0 -5
- package/infrastructure/external/data-connect/index.js.map +0 -1
- package/infrastructure/external/external.config.js +0 -13
- package/infrastructure/external/external.config.js.map +0 -1
- package/infrastructure/external/external.service.js +0 -23
- package/infrastructure/external/external.service.js.map +0 -1
- package/infrastructure/external/index.js +0 -6
- package/infrastructure/external/index.js.map +0 -1
- package/infrastructure/external/quick-js/index.js +0 -5
- package/infrastructure/external/quick-js/index.js.map +0 -1
- package/infrastructure/external/quick-js/quick-js.service.js +0 -44
- package/infrastructure/external/quick-js/quick-js.service.js.map +0 -1
- package/infrastructure/external/resend/index.js +0 -5
- package/infrastructure/external/resend/index.js.map +0 -1
- package/infrastructure/external/resend/resend.service.d.ts +0 -9
- package/infrastructure/external/resend/resend.service.impl.js +0 -27
- package/infrastructure/external/resend/resend.service.impl.js.map +0 -1
- package/infrastructure/external/resend/resend.service.js +0 -6
- package/infrastructure/external/resend/resend.service.js.map +0 -1
- package/infrastructure/index.js +0 -6
- package/infrastructure/index.js.map +0 -1
- package/infrastructure/infrastructure.config.js +0 -12
- package/infrastructure/infrastructure.config.js.map +0 -1
- package/infrastructure/infrastructure.service.js +0 -20
- package/infrastructure/infrastructure.service.js.map +0 -1
- package/infrastructure/query/firestore/query/index.js +0 -5
- package/infrastructure/query/firestore/query/index.js.map +0 -1
- package/infrastructure/query/firestore/query/query.query.js +0 -20
- package/infrastructure/query/firestore/query/query.query.js.map +0 -1
- package/infrastructure/query/firestore/resource/index.js +0 -5
- package/infrastructure/query/firestore/resource/index.js.map +0 -1
- package/infrastructure/query/firestore/resource/resource.query.js +0 -20
- package/infrastructure/query/firestore/resource/resource.query.js.map +0 -1
- package/infrastructure/query/hasura/resource/index.js +0 -5
- package/infrastructure/query/hasura/resource/index.js.map +0 -1
- package/infrastructure/query/hasura/resource/resource.query.d.ts +0 -3
- package/infrastructure/query/hasura/resource/resource.query.js +0 -14
- package/infrastructure/query/hasura/resource/resource.query.js.map +0 -1
- package/infrastructure/repository/dataconnect/invoice/index.js +0 -5
- package/infrastructure/repository/dataconnect/invoice/index.js.map +0 -1
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js +0 -54
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js.map +0 -1
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js +0 -11
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js.map +0 -1
- package/infrastructure/repository/dataconnect/order/index.js +0 -5
- package/infrastructure/repository/dataconnect/order/index.js.map +0 -1
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js +0 -74
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js.map +0 -1
- package/infrastructure/repository/dataconnect/order/order.repository.js +0 -11
- package/infrastructure/repository/dataconnect/order/order.repository.js.map +0 -1
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.d.ts +0 -6
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js +0 -20
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js.map +0 -1
- package/infrastructure/repository/firestore/bookmarklet/index.d.ts +0 -1
- package/infrastructure/repository/firestore/bookmarklet/index.js +0 -5
- package/infrastructure/repository/firestore/bookmarklet/index.js.map +0 -1
- package/infrastructure/repository/firestore/firestore.repository.d.ts +0 -7
- package/infrastructure/repository/firestore/firestore.repository.js +0 -20
- package/infrastructure/repository/firestore/firestore.repository.js.map +0 -1
- package/infrastructure/repository/firestore/index.d.ts +0 -1
- package/infrastructure/repository/firestore/index.js +0 -5
- package/infrastructure/repository/firestore/index.js.map +0 -1
- package/infrastructure/repository/firestore/link/google/google.repository.d.ts +0 -7
- package/infrastructure/repository/firestore/link/google/google.repository.js +0 -19
- package/infrastructure/repository/firestore/link/google/google.repository.js.map +0 -1
- package/infrastructure/repository/firestore/link/google/index.js +0 -5
- package/infrastructure/repository/firestore/link/google/index.js.map +0 -1
- package/infrastructure/repository/firestore/link/index.js +0 -5
- package/infrastructure/repository/firestore/link/index.js.map +0 -1
- package/infrastructure/repository/firestore/link/link.repository.d.ts +0 -5
- package/infrastructure/repository/firestore/link/link.repository.js +0 -17
- package/infrastructure/repository/firestore/link/link.repository.js.map +0 -1
- package/infrastructure/repository/firestore/query/index.js +0 -5
- package/infrastructure/repository/firestore/query/index.js.map +0 -1
- package/infrastructure/repository/firestore/query/query.repository.js +0 -20
- package/infrastructure/repository/firestore/query/query.repository.js.map +0 -1
- package/infrastructure/repository/firestore/resource/index.js +0 -5
- package/infrastructure/repository/firestore/resource/index.js.map +0 -1
- package/infrastructure/repository/firestore/resource/resource.repository.js +0 -20
- package/infrastructure/repository/firestore/resource/resource.repository.js.map +0 -1
- package/infrastructure/repository/hasura/query/index.js +0 -5
- package/infrastructure/repository/hasura/query/index.js.map +0 -1
- package/infrastructure/repository/hasura/query/query.repository.js +0 -23
- package/infrastructure/repository/hasura/query/query.repository.js.map +0 -1
- package/infrastructure/repository/hasura/resource/index.js +0 -5
- package/infrastructure/repository/hasura/resource/index.js.map +0 -1
- package/infrastructure/repository/hasura/resource/resource.repository.js +0 -23
- package/infrastructure/repository/hasura/resource/resource.repository.js.map +0 -1
- package/infrastructure/repository/index.js +0 -6
- package/infrastructure/repository/index.js.map +0 -1
- package/infrastructure/repository/notion/contract/contract.config.js +0 -10
- package/infrastructure/repository/notion/contract/contract.config.js.map +0 -1
- package/infrastructure/repository/notion/contract/contract.repository.js +0 -22
- package/infrastructure/repository/notion/contract/contract.repository.js.map +0 -1
- package/infrastructure/repository/notion/contract/index.js +0 -6
- package/infrastructure/repository/notion/contract/index.js.map +0 -1
- package/infrastructure/repository/notion/index.d.ts +0 -2
- package/infrastructure/repository/notion/index.js +0 -6
- package/infrastructure/repository/notion/index.js.map +0 -1
- package/infrastructure/repository/notion/invoice/index.js +0 -6
- package/infrastructure/repository/notion/invoice/index.js.map +0 -1
- package/infrastructure/repository/notion/invoice/invoice.config.js +0 -10
- package/infrastructure/repository/notion/invoice/invoice.config.js.map +0 -1
- package/infrastructure/repository/notion/invoice/invoice.repository.js +0 -22
- package/infrastructure/repository/notion/invoice/invoice.repository.js.map +0 -1
- package/infrastructure/repository/notion/notion.config.js +0 -18
- package/infrastructure/repository/notion/notion.config.js.map +0 -1
- package/infrastructure/repository/notion/notion.repository.js +0 -26
- package/infrastructure/repository/notion/notion.repository.js.map +0 -1
- package/infrastructure/repository/notion/order/index.js +0 -5
- package/infrastructure/repository/notion/order/index.js.map +0 -1
- package/infrastructure/repository/notion/order/order.config.js +0 -10
- package/infrastructure/repository/notion/order/order.config.js.map +0 -1
- package/infrastructure/repository/notion/order/order.repository.js +0 -22
- package/infrastructure/repository/notion/order/order.repository.js.map +0 -1
- package/infrastructure/repository/notion/partner/index.js +0 -6
- package/infrastructure/repository/notion/partner/index.js.map +0 -1
- package/infrastructure/repository/notion/partner/partner.config.js +0 -10
- package/infrastructure/repository/notion/partner/partner.config.js.map +0 -1
- package/infrastructure/repository/notion/partner/partner.repository.js +0 -22
- package/infrastructure/repository/notion/partner/partner.repository.js.map +0 -1
- package/infrastructure/repository/redis/index.js +0 -6
- package/infrastructure/repository/redis/index.js.map +0 -1
- package/infrastructure/repository/redis/operator/index.js +0 -5
- package/infrastructure/repository/redis/operator/index.js.map +0 -1
- package/infrastructure/repository/redis/operator/operator.repository.js +0 -17
- package/infrastructure/repository/redis/operator/operator.repository.js.map +0 -1
- package/infrastructure/repository/redis/project/index.js +0 -5
- package/infrastructure/repository/redis/project/index.js.map +0 -1
- package/infrastructure/repository/redis/project/project.repository.js +0 -33
- package/infrastructure/repository/redis/project/project.repository.js.map +0 -1
- package/infrastructure/repository/redis/redis.config.js +0 -10
- package/infrastructure/repository/redis/redis.config.js.map +0 -1
- package/infrastructure/repository/redis/redis.service.js +0 -22
- package/infrastructure/repository/redis/redis.service.js.map +0 -1
- package/infrastructure/repository/redis/spec/index.js +0 -5
- package/infrastructure/repository/redis/spec/index.js.map +0 -1
- package/infrastructure/repository/redis/spec/spec.repository.js +0 -94
- package/infrastructure/repository/redis/spec/spec.repository.js.map +0 -1
- package/infrastructure/repository/redis/system/index.js +0 -5
- package/infrastructure/repository/redis/system/index.js.map +0 -1
- package/infrastructure/repository/redis/system/system.repository.d.ts +0 -3
- package/infrastructure/repository/redis/system/system.repository.js +0 -15
- package/infrastructure/repository/redis/system/system.repository.js.map +0 -1
- package/infrastructure/repository/repository.config.js +0 -12
- package/infrastructure/repository/repository.config.js.map +0 -1
- package/infrastructure/repository/repository.service.js +0 -20
- package/infrastructure/repository/repository.service.js.map +0 -1
- package/stores/index.js +0 -66
- package/stores/index.js.map +0 -1
- package/usecase/assistant/assistant.service.js +0 -72
- package/usecase/assistant/assistant.service.js.map +0 -1
- package/usecase/assistant/index.js +0 -5
- package/usecase/assistant/index.js.map +0 -1
- package/usecase/database/database.service.js +0 -103
- package/usecase/database/database.service.js.map +0 -1
- package/usecase/database/index.js +0 -5
- package/usecase/database/index.js.map +0 -1
- package/usecase/graphql/graphql.service.js +0 -49
- package/usecase/graphql/graphql.service.js.map +0 -1
- package/usecase/graphql/index.js +0 -5
- package/usecase/graphql/index.js.map +0 -1
- package/usecase/index.js +0 -5
- package/usecase/index.js.map +0 -1
- package/usecase/invoice/index.js +0 -5
- package/usecase/invoice/index.js.map +0 -1
- package/usecase/invoice/invoice.service.js +0 -69
- package/usecase/invoice/invoice.service.js.map +0 -1
- package/usecase/link/index.js +0 -5
- package/usecase/link/index.js.map +0 -1
- package/usecase/link/link.service.js +0 -20
- package/usecase/link/link.service.js.map +0 -1
- package/usecase/order/index.js +0 -5
- package/usecase/order/index.js.map +0 -1
- package/usecase/order/order.service.js +0 -27
- package/usecase/order/order.service.js.map +0 -1
- package/usecase/project/index.js +0 -5
- package/usecase/project/index.js.map +0 -1
- package/usecase/project/project.service.js +0 -37
- package/usecase/project/project.service.js.map +0 -1
- package/usecase/spec/index.js +0 -5
- package/usecase/spec/index.js.map +0 -1
- package/usecase/spec/spec.service.js +0 -49
- package/usecase/spec/spec.service.js.map +0 -1
- package/usecase/usecase.service.js +0 -24
- package/usecase/usecase.service.js.map +0 -1
- package/utils/crypto.js.map +0 -1
- package/utils/extract-display-fields.js.map +0 -1
- package/utils/index.js +0 -5
- package/utils/index.js.map +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 → domain-invoice}/resolvers/index.d.ts +0 -0
- /package/{infrastructure → infra}/converters/google/index.d.ts +0 -0
- /package/{infrastructure → infra}/external/data-connect/data-connect.service.d.ts +0 -0
- /package/{infrastructure → infra}/external/data-connect/index.d.ts +0 -0
- /package/{infrastructure → infra}/external/index.d.ts +0 -0
- /package/{infrastructure → infra}/external/quick-js/index.d.ts +0 -0
- /package/{infrastructure → infra}/external/resend/index.d.ts +0 -0
- /package/{infrastructure → infra}/index.d.ts +0 -0
- /package/{infrastructure → infra}/query/firestore/query/index.d.ts +0 -0
- /package/{infrastructure → infra}/query/firestore/resource/index.d.ts +0 -0
- /package/{infrastructure → infra}/query/hasura/resource/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/dataconnect/invoice/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/dataconnect/invoice/invoice.repository.d.ts +0 -0
- /package/{infrastructure → infra}/repository/dataconnect/order/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/dataconnect/order/order.repository.d.ts +0 -0
- /package/{infrastructure → infra}/repository/firestore/link/google/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/firestore/link/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/firestore/query/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/firestore/resource/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/hasura/query/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/hasura/resource/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/contract/contract.config.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/contract/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/invoice/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/invoice/invoice.config.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/notion.config.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/order/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/order/order.config.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/partner/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/notion/partner/partner.config.d.ts +0 -0
- /package/{infrastructure → infra}/repository/redis/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/redis/operator/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/redis/project/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/redis/redis.config.d.ts +0 -0
- /package/{infrastructure → infra}/repository/redis/spec/index.d.ts +0 -0
- /package/{infrastructure → infra}/repository/redis/system/index.d.ts +0 -0
- /package/utils/{crypto.d.ts → crypto/crypto.d.ts} +0 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
2
|
+
import { Entity, Domain } from '@nx-ddd/common/domain/models';
|
|
3
|
+
import * as notion from '@nx-ddd/notion/decorators';
|
|
4
|
+
import { Notion } from '@nx-ddd/notion/decorators';
|
|
5
|
+
import { Field, ID, ObjectType } from '@xxmachina/common/_shared/meta';
|
|
6
|
+
import dayjs from 'dayjs';
|
|
7
|
+
import { Entity as Entity$1, Domain as Domain$1, TransformToDayjs } from '@nx-ddd/common/domain';
|
|
8
|
+
import { Notion as Notion$1 } from '@nx-ddd/notion';
|
|
9
|
+
import { Type } from 'class-transformer';
|
|
10
|
+
import { ValidateNested } from 'class-validator';
|
|
11
|
+
|
|
12
|
+
var Contract_1;
|
|
13
|
+
let Contract = Contract_1 = class Contract extends Entity {
|
|
14
|
+
id;
|
|
15
|
+
no;
|
|
16
|
+
title;
|
|
17
|
+
issueDate;
|
|
18
|
+
orderIds;
|
|
19
|
+
static from(params) {
|
|
20
|
+
const instance = Object.assign(new Contract_1(), { ...params });
|
|
21
|
+
return instance;
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
__decorate([
|
|
25
|
+
Field(() => ID, { nullable: true }),
|
|
26
|
+
Domain.Lang('ID'),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], Contract.prototype, "id", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
Field(() => Number, { nullable: true }),
|
|
31
|
+
Domain.Lang('番号'),
|
|
32
|
+
Notion.UniqueID('no'),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], Contract.prototype, "no", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Field(() => String, { nullable: false }),
|
|
37
|
+
Notion.Title('件名'),
|
|
38
|
+
Domain.Lang('件名'),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Contract.prototype, "title", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Field(() => Date, { nullable: true }),
|
|
43
|
+
Notion.Date('発行日'),
|
|
44
|
+
Domain.Lang('発行日'),
|
|
45
|
+
__metadata("design:type", dayjs.Dayjs)
|
|
46
|
+
], Contract.prototype, "issueDate", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Field(() => [String], { nullable: true }),
|
|
49
|
+
Notion.Relation('注文一覧', { multi: true }),
|
|
50
|
+
Domain.Lang('注文一覧'),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], Contract.prototype, "orderIds", void 0);
|
|
53
|
+
Contract = Contract_1 = __decorate([
|
|
54
|
+
ObjectType(),
|
|
55
|
+
Domain.Entity({ name: '契約' })
|
|
56
|
+
], Contract);
|
|
57
|
+
|
|
58
|
+
var Partner_1;
|
|
59
|
+
let Partner = Partner_1 = class Partner extends Entity$1 {
|
|
60
|
+
id;
|
|
61
|
+
no;
|
|
62
|
+
name;
|
|
63
|
+
type;
|
|
64
|
+
address;
|
|
65
|
+
postalCode;
|
|
66
|
+
email;
|
|
67
|
+
billingEmail;
|
|
68
|
+
billingContact;
|
|
69
|
+
phoneNumber;
|
|
70
|
+
contact;
|
|
71
|
+
suffix;
|
|
72
|
+
bankAccount;
|
|
73
|
+
static from(params) {
|
|
74
|
+
return Object.assign(new Partner_1(), { ...params });
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
__decorate([
|
|
78
|
+
Field(() => ID, { nullable: true }),
|
|
79
|
+
Domain$1.Lang('ID'),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Partner.prototype, "id", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
Field(() => Number, { nullable: true }),
|
|
84
|
+
notion.UniqueID('no'),
|
|
85
|
+
Domain$1.Lang('番号'),
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
|
+
], Partner.prototype, "no", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
Field(() => String, { nullable: true }),
|
|
90
|
+
notion.Title('名前'),
|
|
91
|
+
Domain$1.Lang('名前'),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], Partner.prototype, "name", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
Field(() => String, { nullable: true }),
|
|
96
|
+
notion.Select('種別'),
|
|
97
|
+
Domain$1.Lang('種別'),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], Partner.prototype, "type", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
Field(() => String, { nullable: true }),
|
|
102
|
+
notion.RichText('住所'),
|
|
103
|
+
Domain$1.Lang('住所'),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], Partner.prototype, "address", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
Field(() => String, { nullable: true }),
|
|
108
|
+
notion.RichText('郵便番号'),
|
|
109
|
+
Domain$1.Lang('郵便番号'),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], Partner.prototype, "postalCode", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
Field(() => String, { nullable: true }),
|
|
114
|
+
notion.Email('メールアドレス'),
|
|
115
|
+
Domain$1.Lang('メールアドレス'),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], Partner.prototype, "email", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
Field(() => String, { nullable: true }),
|
|
120
|
+
notion.Email('請求先メールアドレス'),
|
|
121
|
+
Domain$1.Lang('請求先メールアドレス'),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], Partner.prototype, "billingEmail", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
Field(() => String, { nullable: true }),
|
|
126
|
+
notion.RichText('請求先担当者名'),
|
|
127
|
+
Domain$1.Lang('請求先担当者名'),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], Partner.prototype, "billingContact", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
Field(() => String, { nullable: true }),
|
|
132
|
+
notion.PhoneNumber('電話番号'),
|
|
133
|
+
Domain$1.Lang('電話番号'),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], Partner.prototype, "phoneNumber", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
Field(() => String, { nullable: true }),
|
|
138
|
+
notion.RichText('担当者'),
|
|
139
|
+
Domain$1.Lang('担当者'),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], Partner.prototype, "contact", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
Field(() => String, { nullable: true }),
|
|
144
|
+
notion.Formula('敬称'),
|
|
145
|
+
Domain$1.Lang('敬称'),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], Partner.prototype, "suffix", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
Field(() => String, { nullable: true }),
|
|
150
|
+
notion.Formula('口座'),
|
|
151
|
+
Domain$1.Lang('口座'),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], Partner.prototype, "bankAccount", void 0);
|
|
154
|
+
Partner = Partner_1 = __decorate([
|
|
155
|
+
ObjectType(),
|
|
156
|
+
Domain$1.Entity({ name: '取引先' })
|
|
157
|
+
], Partner);
|
|
158
|
+
|
|
159
|
+
var Order_1;
|
|
160
|
+
let Order = Order_1 = class Order extends Entity$1 {
|
|
161
|
+
id;
|
|
162
|
+
no;
|
|
163
|
+
title;
|
|
164
|
+
eclId;
|
|
165
|
+
customerId;
|
|
166
|
+
customer;
|
|
167
|
+
vendorId;
|
|
168
|
+
vendor;
|
|
169
|
+
contractId;
|
|
170
|
+
invoiceId;
|
|
171
|
+
startDate;
|
|
172
|
+
endDate;
|
|
173
|
+
unitPrice;
|
|
174
|
+
unit;
|
|
175
|
+
quantity;
|
|
176
|
+
amountInput;
|
|
177
|
+
amount;
|
|
178
|
+
statusIn;
|
|
179
|
+
statusOut;
|
|
180
|
+
static from(params) {
|
|
181
|
+
const instance = Object.assign(new Order_1(), { ...params });
|
|
182
|
+
return instance;
|
|
183
|
+
}
|
|
184
|
+
static get EMPTY() {
|
|
185
|
+
return Order_1.from({
|
|
186
|
+
id: null,
|
|
187
|
+
no: null,
|
|
188
|
+
title: null,
|
|
189
|
+
eclId: null,
|
|
190
|
+
customerId: null,
|
|
191
|
+
vendorId: null,
|
|
192
|
+
statusIn: null,
|
|
193
|
+
statusOut: null,
|
|
194
|
+
contractId: null,
|
|
195
|
+
invoiceId: null,
|
|
196
|
+
startDate: null,
|
|
197
|
+
endDate: null,
|
|
198
|
+
unitPrice: null,
|
|
199
|
+
unit: null,
|
|
200
|
+
quantity: null,
|
|
201
|
+
amount: null,
|
|
202
|
+
amountInput: null,
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
__decorate([
|
|
207
|
+
Field(() => ID, { nullable: true }),
|
|
208
|
+
Domain$1.Lang('ID'),
|
|
209
|
+
__metadata("design:type", String)
|
|
210
|
+
], Order.prototype, "id", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
Field(() => Number, { nullable: true }),
|
|
213
|
+
Notion$1.UniqueID('no'),
|
|
214
|
+
Domain$1.Lang('no'),
|
|
215
|
+
__metadata("design:type", Number)
|
|
216
|
+
], Order.prototype, "no", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
Field(() => String, { nullable: true }),
|
|
219
|
+
Notion$1.Title('件名'),
|
|
220
|
+
Domain$1.Lang('件名'),
|
|
221
|
+
__metadata("design:type", String)
|
|
222
|
+
], Order.prototype, "title", void 0);
|
|
223
|
+
__decorate([
|
|
224
|
+
Field(() => String, { nullable: true }),
|
|
225
|
+
Notion$1.Relation('ECL', { multi: false }),
|
|
226
|
+
Domain$1.Lang('ECL'),
|
|
227
|
+
__metadata("design:type", String)
|
|
228
|
+
], Order.prototype, "eclId", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
Field(() => String, { nullable: true }),
|
|
231
|
+
Notion$1.Relation('発注者', { multi: false }),
|
|
232
|
+
Domain$1.Lang('発注者ID'),
|
|
233
|
+
__metadata("design:type", String)
|
|
234
|
+
], Order.prototype, "customerId", void 0);
|
|
235
|
+
__decorate([
|
|
236
|
+
Type(() => Partner),
|
|
237
|
+
Domain$1.Lang('発注者'),
|
|
238
|
+
__metadata("design:type", Partner)
|
|
239
|
+
], Order.prototype, "customer", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
Field(() => String, { nullable: true }),
|
|
242
|
+
Notion$1.Relation('受注者', { multi: false }),
|
|
243
|
+
Domain$1.Lang('受注者ID'),
|
|
244
|
+
__metadata("design:type", String)
|
|
245
|
+
], Order.prototype, "vendorId", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
Type(() => Partner),
|
|
248
|
+
Domain$1.Lang('受注者'),
|
|
249
|
+
__metadata("design:type", Partner)
|
|
250
|
+
], Order.prototype, "vendor", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
Field(() => String, { nullable: true }),
|
|
253
|
+
Notion$1.Relation('契約', { multi: false }),
|
|
254
|
+
Domain$1.Lang('契約ID'),
|
|
255
|
+
__metadata("design:type", String)
|
|
256
|
+
], Order.prototype, "contractId", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
Field(() => String, { nullable: true }),
|
|
259
|
+
Notion$1.Formula('請求'),
|
|
260
|
+
Domain$1.Lang('請求ID'),
|
|
261
|
+
__metadata("design:type", String)
|
|
262
|
+
], Order.prototype, "invoiceId", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
Field(() => Date, { nullable: true }),
|
|
265
|
+
TransformToDayjs(),
|
|
266
|
+
Notion$1.Date('開始日'),
|
|
267
|
+
Domain$1.Lang('開始日'),
|
|
268
|
+
__metadata("design:type", dayjs.Dayjs)
|
|
269
|
+
], Order.prototype, "startDate", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
Field(() => Date, { nullable: true }),
|
|
272
|
+
TransformToDayjs(),
|
|
273
|
+
Notion$1.Date('終了日'),
|
|
274
|
+
Domain$1.Lang('終了日'),
|
|
275
|
+
__metadata("design:type", dayjs.Dayjs)
|
|
276
|
+
], Order.prototype, "endDate", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
Field(() => Number, { nullable: true }),
|
|
279
|
+
Notion$1.Number('単価'),
|
|
280
|
+
Domain$1.Lang('単価'),
|
|
281
|
+
__metadata("design:type", Number)
|
|
282
|
+
], Order.prototype, "unitPrice", void 0);
|
|
283
|
+
__decorate([
|
|
284
|
+
Field(() => String, { nullable: true }),
|
|
285
|
+
Notion$1.Select('単位'),
|
|
286
|
+
Domain$1.Lang('単位'),
|
|
287
|
+
__metadata("design:type", String)
|
|
288
|
+
], Order.prototype, "unit", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
Field(() => Number, { nullable: true }),
|
|
291
|
+
Notion$1.Number('数量'),
|
|
292
|
+
Domain$1.Lang('数量'),
|
|
293
|
+
__metadata("design:type", Number)
|
|
294
|
+
], Order.prototype, "quantity", void 0);
|
|
295
|
+
__decorate([
|
|
296
|
+
Field(() => Number, { nullable: true }),
|
|
297
|
+
Notion$1.Number('合計金額(入力)'),
|
|
298
|
+
Domain$1.Lang('合計金額(入力)'),
|
|
299
|
+
__metadata("design:type", Number)
|
|
300
|
+
], Order.prototype, "amountInput", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
Field(() => Number, { nullable: true }),
|
|
303
|
+
Notion$1.Formula('合計金額'),
|
|
304
|
+
Domain$1.Lang('合計金額'),
|
|
305
|
+
__metadata("design:type", Number)
|
|
306
|
+
], Order.prototype, "amount", void 0);
|
|
307
|
+
__decorate([
|
|
308
|
+
Field(() => String, { nullable: true }),
|
|
309
|
+
Notion$1.Status('受注ステータス'),
|
|
310
|
+
Domain$1.Lang('受注ステータス'),
|
|
311
|
+
__metadata("design:type", String)
|
|
312
|
+
], Order.prototype, "statusIn", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
Field(() => String, { nullable: true }),
|
|
315
|
+
Notion$1.Status('発注ステータス'),
|
|
316
|
+
Domain$1.Lang('発注ステータス'),
|
|
317
|
+
__metadata("design:type", String)
|
|
318
|
+
], Order.prototype, "statusOut", void 0);
|
|
319
|
+
Order = Order_1 = __decorate([
|
|
320
|
+
ObjectType(),
|
|
321
|
+
Domain$1.Entity({ name: '受注' })
|
|
322
|
+
], Order);
|
|
323
|
+
|
|
324
|
+
class InvoiceMail {
|
|
325
|
+
from;
|
|
326
|
+
to;
|
|
327
|
+
subject;
|
|
328
|
+
content;
|
|
329
|
+
invoice;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
var Invoice_1;
|
|
333
|
+
let Invoice = Invoice_1 = class Invoice extends Entity$1 {
|
|
334
|
+
id;
|
|
335
|
+
no;
|
|
336
|
+
title;
|
|
337
|
+
subject;
|
|
338
|
+
customerId;
|
|
339
|
+
customer;
|
|
340
|
+
vendorId;
|
|
341
|
+
vendor;
|
|
342
|
+
amount;
|
|
343
|
+
dueDate;
|
|
344
|
+
orderIds;
|
|
345
|
+
orders;
|
|
346
|
+
static from(data) {
|
|
347
|
+
return Object.assign(new Invoice_1(), data);
|
|
348
|
+
}
|
|
349
|
+
};
|
|
350
|
+
__decorate([
|
|
351
|
+
Field(() => ID, { nullable: true }),
|
|
352
|
+
Domain$1.Lang('番号'),
|
|
353
|
+
__metadata("design:type", String)
|
|
354
|
+
], Invoice.prototype, "id", void 0);
|
|
355
|
+
__decorate([
|
|
356
|
+
Field(() => Number, { nullable: true }),
|
|
357
|
+
notion.UniqueID('no'),
|
|
358
|
+
Domain$1.Lang('no'),
|
|
359
|
+
__metadata("design:type", Number)
|
|
360
|
+
], Invoice.prototype, "no", void 0);
|
|
361
|
+
__decorate([
|
|
362
|
+
Field(() => String, { nullable: true }),
|
|
363
|
+
notion.Title('タイトル'),
|
|
364
|
+
Domain$1.Lang('タイトル'),
|
|
365
|
+
__metadata("design:type", String)
|
|
366
|
+
], Invoice.prototype, "title", void 0);
|
|
367
|
+
__decorate([
|
|
368
|
+
Field(() => String, { nullable: true }),
|
|
369
|
+
notion.RichText('件名'),
|
|
370
|
+
Domain$1.Lang('件名'),
|
|
371
|
+
__metadata("design:type", String)
|
|
372
|
+
], Invoice.prototype, "subject", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
Field(() => String, { nullable: true }),
|
|
375
|
+
notion.Relation('請求先'),
|
|
376
|
+
Domain$1.Lang('請求先'),
|
|
377
|
+
__metadata("design:type", String)
|
|
378
|
+
], Invoice.prototype, "customerId", void 0);
|
|
379
|
+
__decorate([
|
|
380
|
+
Type(() => Partner),
|
|
381
|
+
__metadata("design:type", Partner)
|
|
382
|
+
], Invoice.prototype, "customer", void 0);
|
|
383
|
+
__decorate([
|
|
384
|
+
Field(() => String, { nullable: true }),
|
|
385
|
+
notion.Relation('受託先'),
|
|
386
|
+
Domain$1.Lang('受託先'),
|
|
387
|
+
__metadata("design:type", String)
|
|
388
|
+
], Invoice.prototype, "vendorId", void 0);
|
|
389
|
+
__decorate([
|
|
390
|
+
Type(() => Partner),
|
|
391
|
+
__metadata("design:type", Partner)
|
|
392
|
+
], Invoice.prototype, "vendor", void 0);
|
|
393
|
+
__decorate([
|
|
394
|
+
Field(() => Number, { nullable: true }),
|
|
395
|
+
notion.Rollup('請求金額(税込)', { multi: false }),
|
|
396
|
+
Domain$1.Lang('請求金額(税込)'),
|
|
397
|
+
__metadata("design:type", Number)
|
|
398
|
+
], Invoice.prototype, "amount", void 0);
|
|
399
|
+
__decorate([
|
|
400
|
+
Field(() => Date, { nullable: true }),
|
|
401
|
+
notion.Date('支払期日'),
|
|
402
|
+
Domain$1.Lang('支払期日'),
|
|
403
|
+
TransformToDayjs(),
|
|
404
|
+
__metadata("design:type", dayjs.Dayjs)
|
|
405
|
+
], Invoice.prototype, "dueDate", void 0);
|
|
406
|
+
__decorate([
|
|
407
|
+
Field(() => [String], { nullable: true }),
|
|
408
|
+
notion.Relation('請求内容', { multi: true }),
|
|
409
|
+
Domain$1.Lang('請求内容'),
|
|
410
|
+
__metadata("design:type", Array)
|
|
411
|
+
], Invoice.prototype, "orderIds", void 0);
|
|
412
|
+
__decorate([
|
|
413
|
+
ValidateNested(),
|
|
414
|
+
Type(() => Order),
|
|
415
|
+
__metadata("design:type", Array)
|
|
416
|
+
], Invoice.prototype, "orders", void 0);
|
|
417
|
+
Invoice = Invoice_1 = __decorate([
|
|
418
|
+
ObjectType(),
|
|
419
|
+
Domain$1.Entity({ name: '請求' })
|
|
420
|
+
], Invoice);
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Generated bundle index. Do not edit.
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
export { Contract, Invoice, InvoiceMail, Order, Partner };
|
|
427
|
+
//# sourceMappingURL=xxmachina-common-domain-invoice-models.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-common-domain-invoice-models.mjs","sources":["../../../../../packages/@xxmachina/common/src/lib/domain-invoice/models/backoffice/contract.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/models/backoffice/partner.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/models/backoffice/order.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/models/backoffice/invoice-mail.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/models/backoffice/invoice.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/models/xxmachina-common-domain-invoice-models.ts"],"sourcesContent":["import { Domain, Entity } from \"@nx-ddd/common/domain/models\";\nimport { Notion } from '@nx-ddd/notion/decorators'; \nimport { ObjectType, Field, ID } from '@xxmachina/common/_shared/meta';\nimport dayjs from \"dayjs\";\n\n\n@ObjectType()\n@Domain.Entity({name: '契約'})\nexport class Contract extends Entity {\n @Field(() => ID, {nullable: true})\n @Domain.Lang('ID')\n id!: string;\n\n @Field(() => Number, {nullable: true})\n @Domain.Lang('番号')\n @Notion.UniqueID('no')\n no: number;\n\n @Field(() => String, {nullable: false})\n @Notion.Title('件名')\n @Domain.Lang('件名')\n title: string;\n\n @Field(() => Date, {nullable: true})\n @Notion.Date('発行日')\n @Domain.Lang('発行日')\n issueDate: dayjs.Dayjs;\n\n @Field(() => [String], {nullable: true})\n @Notion.Relation('注文一覧', {multi: true})\n @Domain.Lang('注文一覧')\n orderIds: string[];\n\n static from(params: Contract): Contract {\n const instance = Object.assign(new Contract(), {...params});\n return instance;\n }\n}\n","import { Domain, Entity } from \"@nx-ddd/common/domain\";\nimport * as notion from '@nx-ddd/notion/decorators'; \nimport { ObjectType, Field, ID } from '@xxmachina/common/_shared/meta';\n\n@ObjectType()\n@Domain.Entity({name: '取引先'})\nexport class Partner extends Entity {\n @Field(() => ID, {nullable: true})\n @Domain.Lang('ID')\n id: string;\n\n @Field(() => Number, {nullable: true})\n @notion.UniqueID('no')\n @Domain.Lang('番号')\n no: number;\n\n @Field(() => String, {nullable: true})\n @notion.Title('名前')\n @Domain.Lang('名前')\n name: string;\n\n @Field(() => String, {nullable: true})\n @notion.Select('種別')\n @Domain.Lang('種別')\n type: string;\n\n @Field(() => String, {nullable: true})\n @notion.RichText('住所')\n @Domain.Lang('住所')\n address: string;\n\n @Field(() => String, {nullable: true})\n @notion.RichText('郵便番号')\n @Domain.Lang('郵便番号')\n postalCode: string;\n\n @Field(() => String, {nullable: true})\n @notion.Email('メールアドレス')\n @Domain.Lang('メールアドレス')\n email: string;\n\n @Field(() => String, {nullable: true})\n @notion.Email('請求先メールアドレス')\n @Domain.Lang('請求先メールアドレス')\n billingEmail: string;\n\n @Field(() => String, {nullable: true})\n @notion.RichText('請求先担当者名')\n @Domain.Lang('請求先担当者名')\n billingContact: string;\n\n @Field(() => String, {nullable: true})\n @notion.PhoneNumber('電話番号')\n @Domain.Lang('電話番号')\n phoneNumber: string;\n\n @Field(() => String, {nullable: true})\n @notion.RichText('担当者')\n @Domain.Lang('担当者')\n contact: string;\n\n @Field(() => String, {nullable: true})\n @notion.Formula('敬称')\n @Domain.Lang('敬称')\n suffix: string;\n\n @Field(() => String, {nullable: true})\n @notion.Formula('口座')\n @Domain.Lang('口座')\n bankAccount: string;\n\n static from(params: Partner): Partner {\n return Object.assign(new Partner(), {...params});\n }\n}\n","import { Domain, Entity, TransformToDayjs } from '@nx-ddd/common/domain';\nimport { Notion } from '@nx-ddd/notion'; \nimport { ObjectType, Field, ID } from '@xxmachina/common/_shared/meta';\nimport dayjs from 'dayjs';\nimport { Partner } from './partner';\nimport { Type } from 'class-transformer';\n\n\n@ObjectType()\n@Domain.Entity({name: '受注'})\nexport class Order extends Entity {\n @Field(() => ID, {nullable: true})\n @Domain.Lang('ID')\n id!: string;\n\n @Field(() => Number, {nullable: true})\n @Notion.UniqueID('no')\n @Domain.Lang('no')\n no: number;\n\n @Field(() => String, {nullable: true})\n @Notion.Title('件名')\n @Domain.Lang('件名')\n title: string;\n\n @Field(() => String, {nullable: true})\n @Notion.Relation('ECL', {multi: false})\n @Domain.Lang('ECL')\n eclId: string;\n\n @Field(() => String, {nullable: true})\n @Notion.Relation('発注者', {multi: false})\n @Domain.Lang('発注者ID')\n customerId: string;\n\n @Type(() => Partner)\n @Domain.Lang('発注者')\n customer?: Partner;\n\n @Field(() => String, {nullable: true})\n @Notion.Relation('受注者', {multi: false})\n @Domain.Lang('受注者ID')\n vendorId: string;\n\n @Type(() => Partner)\n @Domain.Lang('受注者')\n vendor?: Partner;\n\n @Field(() => String, {nullable: true})\n @Notion.Relation('契約', {multi: false})\n @Domain.Lang('契約ID')\n contractId: string;\n\n @Field(() => String, {nullable: true})\n @Notion.Formula('請求')\n @Domain.Lang('請求ID')\n invoiceId: string;\n\n @Field(() => Date, {nullable: true})\n @TransformToDayjs()\n @Notion.Date('開始日')\n @Domain.Lang('開始日')\n startDate: dayjs.Dayjs;\n\n @Field(() => Date, {nullable: true})\n @TransformToDayjs()\n @Notion.Date('終了日')\n @Domain.Lang('終了日')\n endDate: dayjs.Dayjs;\n\n @Field(() => Number, {nullable: true})\n @Notion.Number('単価')\n @Domain.Lang('単価')\n unitPrice: number;\n\n @Field(() => String, {nullable: true})\n @Notion.Select('単位')\n @Domain.Lang('単位')\n unit: string;\n\n @Field(() => Number, {nullable: true})\n @Notion.Number('数量')\n @Domain.Lang('数量')\n quantity: number;\n\n @Field(() => Number, {nullable: true})\n @Notion.Number('合計金額(入力)')\n @Domain.Lang('合計金額(入力)')\n amountInput: number;\n\n @Field(() => Number, {nullable: true})\n @Notion.Formula('合計金額')\n @Domain.Lang('合計金額')\n amount: number;\n\n @Field(() => String, {nullable: true})\n @Notion.Status('受注ステータス')\n @Domain.Lang('受注ステータス')\n statusIn: string;\n\n @Field(() => String, {nullable: true})\n @Notion.Status('発注ステータス')\n @Domain.Lang('発注ステータス')\n statusOut: string;\n\n static from(params: Order): Order {\n const instance = Object.assign(new Order(), {...params});\n return instance;\n }\n\n static get EMPTY() {\n return Order.from({\n id: null,\n no: null,\n title: null,\n eclId: null,\n customerId: null,\n vendorId: null,\n statusIn: null,\n statusOut: null,\n contractId: null,\n invoiceId: null,\n startDate: null,\n endDate: null,\n unitPrice: null,\n unit: null,\n quantity: null,\n amount: null,\n amountInput: null,\n });\n }\n}\n","import { Invoice } from \"./invoice\";\n\nexport class InvoiceMail {\n from: string;\n to: string;\n subject: string;\n content: string;\n invoice: Invoice;\n}","import { ObjectType, Field, ID } from '@xxmachina/common/_shared/meta';\nimport { Domain, Entity, TransformToDayjs } from \"@nx-ddd/common/domain\";\nimport * as notion from '@nx-ddd/notion/decorators'; \nimport dayjs from \"dayjs\";\nimport { Order } from \"./order\";\nimport { Partner } from './partner';\nimport { Type } from 'class-transformer';\nimport { ValidateNested } from 'class-validator';\n\n@ObjectType()\n@Domain.Entity({name: '請求'})\nexport class Invoice extends Entity {\n @Field(() => ID, {nullable: true})\n @Domain.Lang('番号')\n id: string;\n\n @Field(() => Number, {nullable: true})\n @notion.UniqueID('no')\n @Domain.Lang('no')\n no: number;\n\n @Field(() => String, {nullable: true})\n @notion.Title('タイトル')\n @Domain.Lang('タイトル')\n title: string;\n\n @Field(() => String, {nullable: true})\n @notion.RichText('件名')\n @Domain.Lang('件名')\n subject: string;\n\n @Field(() => String, {nullable: true})\n @notion.Relation('請求先')\n @Domain.Lang('請求先')\n customerId: string;\n\n @Type(() => Partner)\n customer?: Partner;\n\n @Field(() => String, {nullable: true})\n @notion.Relation('受託先')\n @Domain.Lang('受託先')\n vendorId: string;\n\n @Type(() => Partner)\n vendor?: Partner;\n\n @Field(() => Number, {nullable: true})\n @notion.Rollup('請求金額(税込)', {multi: false})\n @Domain.Lang('請求金額(税込)')\n amount: number;\n\n @Field(() => Date, {nullable: true})\n @notion.Date('支払期日')\n @Domain.Lang('支払期日')\n @TransformToDayjs()\n dueDate: dayjs.Dayjs;\n\n @Field(() => [String], {nullable: true})\n @notion.Relation('請求内容', {multi: true})\n @Domain.Lang('請求内容')\n orderIds: string[];\n\n @ValidateNested()\n @Type(() => Order)\n orders?: Order[];\n\n static from(data: Partial<Invoice>) {\n return Object.assign(new Invoice(), data);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Entity","Domain","Notion"],"mappings":";;;;;;;;;;;;AAQO,IAAM,QAAQ,GAAA,UAAA,GAAd,MAAM,QAAS,SAAQ,MAAM,CAAA;AAGlC,IAAA,EAAE;A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EAAA,KAAA,CAAA,CAAA;AAMf,UAAA,CAAA;IAJC,KAAK,CAAC,MAAM,IAAI,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AACnC,IAAA,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;AACnB,IAAAA,QAAM,CAAC,IAAI,CAAC,MAAM,CAAC;AACnB,IAAA,gBAAgB,EAAE;AACV,IAAA,UAAA,CAAA,aAAA,EAAA,KAAK,CAAC,KAAK;AAAC,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA;AAKrB,UAAA,CAAA;AAHC,IAAA,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IACvC,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC;AACtC,IAAAA,QAAM,CAAC,IAAI,CAAC,MAAM,CAAC;;AACD,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,UAAA,EAAA,KAAA,CAAA,CAAA;AAInB,UAAA,CAAA;AAFC,IAAA,cAAc,EAAE;AAChB,IAAA,IAAI,CAAC,MAAM,KAAK,CAAC;;AACD,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA;AAtDN,OAAO,GAAA,SAAA,GAAA,UAAA,CAAA;AAFnB,IAAA,UAAU,EAAE;IACZA,QAAM,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC;AACd,CAAA,EAAA,OAAO,CA2DnB;;ACtED;;AAEG;;;;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { plainToInstance } from 'class-transformer';
|
|
2
|
+
import { Invoice } from '@xxmachina/common/domain-invoice/models';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
|
|
5
|
+
function aggregate(items) {
|
|
6
|
+
return items.reduce((map, item) => {
|
|
7
|
+
const items = map.get(item.id) || [];
|
|
8
|
+
items.push(item);
|
|
9
|
+
map.set(item.id, items);
|
|
10
|
+
return map;
|
|
11
|
+
}, new Map());
|
|
12
|
+
}
|
|
13
|
+
class InvoiceResolver {
|
|
14
|
+
orderMap = new Map();
|
|
15
|
+
partnerMap = new Map();
|
|
16
|
+
constructor({ orders = [], partners = [], } = {}) {
|
|
17
|
+
this.orderMap = new Map(orders.map((order) => [order.id, order]));
|
|
18
|
+
this.partnerMap = new Map(partners.map((partner) => [partner.id, partner]));
|
|
19
|
+
}
|
|
20
|
+
resolve(invoice) {
|
|
21
|
+
return plainToInstance(Invoice, {
|
|
22
|
+
...invoice,
|
|
23
|
+
dueDate: dayjs.isDayjs(invoice.dueDate) ? invoice.dueDate.toISOString() : invoice.dueDate,
|
|
24
|
+
orders: invoice.orderIds.map((orderId) => this.orderMap.get(orderId)),
|
|
25
|
+
customer: this.partnerMap.get(invoice.customerId),
|
|
26
|
+
vendor: this.partnerMap.get(invoice.vendorId),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
resolveMany(invoices) {
|
|
30
|
+
return invoices.map((invoice) => this.resolve(invoice));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Generated bundle index. Do not edit.
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
export { InvoiceResolver };
|
|
39
|
+
//# sourceMappingURL=xxmachina-common-domain-invoice-resolvers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-common-domain-invoice-resolvers.mjs","sources":["../../../../../packages/@xxmachina/common/src/lib/domain-invoice/resolvers/invoice.resolver.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/resolvers/xxmachina-common-domain-invoice-resolvers.ts"],"sourcesContent":["import { plainToInstance } from \"class-transformer\";\nimport { Invoice, Order, Partner } from \"@xxmachina/common/domain-invoice/models\";\nimport dayjs from 'dayjs';\n\n\nfunction aggregate<T extends {id: string}>(items: T[]): Map<string, T[]> {\n return items.reduce((map, item) => {\n const items = map.get(item.id) || [];\n items.push(item);\n map.set(item.id, items);\n return map;\n }, new Map());\n}\n\nexport class InvoiceResolver {\n orderMap = new Map<string, Order>();\n partnerMap = new Map<string, Partner>();\n\n constructor({\n orders = [],\n partners = [],\n }: {\n orders?: Order[];\n partners?: Partner[];\n } = {}) {\n this.orderMap = new Map(orders.map((order) => [order.id, order]));\n this.partnerMap = new Map(partners.map((partner) => [partner.id, partner]));\n }\n\n resolve(invoice: Invoice): Invoice {\n return plainToInstance(Invoice, {\n ...invoice,\n dueDate: dayjs.isDayjs(invoice.dueDate) ? invoice.dueDate.toISOString() : invoice.dueDate,\n orders: invoice.orderIds.map((orderId) => this.orderMap.get(orderId)),\n customer: this.partnerMap.get(invoice.customerId),\n vendor: this.partnerMap.get(invoice.vendorId),\n });\n }\n\n resolveMany(invoices: Invoice[]): Invoice[] {\n return invoices.map((invoice) => this.resolve(invoice));\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAKA,SAAS,SAAS,CAAyB,KAAU,EAAA;IACnD,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,KAAI;AAChC,QAAA,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE;AACpC,QAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QAChB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC;AACvB,QAAA,OAAO,GAAG;AACZ,KAAC,EAAE,IAAI,GAAG,EAAE,CAAC;AACf;MAEa,eAAe,CAAA;AAC1B,IAAA,QAAQ,GAAG,IAAI,GAAG,EAAiB;AACnC,IAAA,UAAU,GAAG,IAAI,GAAG,EAAmB;IAEvC,WAAY,CAAA,EACV,MAAM,GAAG,EAAE,EACX,QAAQ,GAAG,EAAE,GAAA,GAIX,EAAE,EAAA;QACJ,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC;QACjE,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;;AAG7E,IAAA,OAAO,CAAC,OAAgB,EAAA;QACtB,OAAO,eAAe,CAAC,OAAO,EAAE;AAC9B,YAAA,GAAG,OAAO;YACV,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,OAAO;YACzF,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACrE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC;YACjD,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC;AAC9C,SAAA,CAAC;;AAGJ,IAAA,WAAW,CAAC,QAAmB,EAAA;AAC7B,QAAA,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,KAAK,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;;AAE1D;;AC1CD;;AAEG;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from '@xxmachina/common/domain-invoice/builders';
|
|
2
|
+
export * from '@xxmachina/common/domain-invoice/models';
|
|
3
|
+
export * from '@xxmachina/common/domain-invoice/resolvers';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Generated bundle index. Do not edit.
|
|
7
|
+
*/
|
|
8
|
+
//# sourceMappingURL=xxmachina-common-domain-invoice.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xxmachina-common-domain-invoice.mjs","sources":["../../../../../packages/@xxmachina/common/src/lib/domain-invoice/xxmachina-common-domain-invoice.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;;AAEG"}
|