@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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-common-domain-builder.mjs","sources":["../../../../../packages/@xxmachina/common/src/lib/domain/builder/command/command.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain/builder/command-action/command-action.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain/builder/er/er.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain/builder/screen-item/screen-item.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain/builder/xxmachina-common-domain-builder.ts"],"sourcesContent":["import { Command, OpenApi } from '@xxmachina/common/domain/models';\n\nexport class CommandBuilder {\n buildFromOpenApi(openApi: OpenApi): Command[] {\n return Object.keys(openApi.getPaths()).flatMap((path) => {\n return openApi.getMethods(path).map((method, index: number) => ({\n id: openApi.getOperationId(path, method) ?? `cmd-${index}`,\n name: openApi.getSummary(path, method) ?? '',\n description: openApi.getDescription(path, method) ?? '',\n type: 'webApiRequest' as const,\n webApiRequest: {\n path: path,\n method: method.toLocaleUpperCase(),\n contentType: openApi.getContentType(path, method) as 'application/json' | 'multipart/form-data',\n responseContentType: openApi.getResponseContentType(path, method) as 'application/octet-stream' | 'unknown',\n bodySchema: openApi.getRequestBodySchema(path, method),\n serverUrl: openApi.getServerUrl(),\n apiJsonUrl: openApi.apiJsonUrl,\n security: openApi.getSecurity(path, method) ?? [],\n }\n }));\n });\n }\n}\n","import { Action, createAction, CreateActionsOptions } from '@ng-atomic/core';\nimport { flatten } from 'flat';\nimport { omitBy } from 'lodash-es';\nimport { createNavigateAction } from '@ng-atomic/components/frames/app';\nimport { NavigationExtras } from '@angular/router';\nimport { Command } from '@xxmachina/common/domain/models';\n\nexport enum ActionId {\n NAVIGATE_TO_COMMAND_PAGE = '[@xxmachina/common] Navigate To Command Page',\n EXECUTE_COMMAND = '[@xxmachina/common] Execute Command',\n}\n\nexport interface CommandActionFactoryOptions extends CreateActionsOptions {\n queryId?: string;\n confirm?: () => Promise<boolean> | boolean;\n}\n\nexport interface CommandActionPayload<P> {\n command: any;\n body: P;\n options?: {\n confirm?: () => Promise<boolean> | boolean;\n queryId?: string;\n };\n}\n\nexport class CommandActionsBuilder {\n private commands: Command[] = [];\n private options: CommandActionFactoryOptions = {};\n private item: any = null;\n private filterIds: string[] | null = null;\n private autoIds: string[] = [];\n\n setCommands(commands: Command[]): CommandActionsBuilder {\n const newFactory = new CommandActionsBuilder();\n newFactory.commands = [...commands];\n newFactory.options = { ...this.options };\n newFactory.item = this.item;\n newFactory.filterIds = this.filterIds;\n newFactory.autoIds = this.autoIds;\n return newFactory;\n }\n\n setOptions(options: Partial<CommandActionFactoryOptions>): CommandActionsBuilder {\n const newFactory = new CommandActionsBuilder();\n newFactory.commands = [...this.commands];\n newFactory.options = { ...this.options, ...options };\n newFactory.item = this.item;\n newFactory.filterIds = this.filterIds;\n newFactory.autoIds = this.autoIds;\n return newFactory;\n }\n\n setItem(item: any): CommandActionsBuilder {\n const newFactory = new CommandActionsBuilder();\n newFactory.commands = [...this.commands];\n newFactory.options = { ...this.options };\n newFactory.item = item;\n newFactory.filterIds = this.filterIds;\n newFactory.autoIds = this.autoIds;\n return newFactory;\n }\n\n setFilterIds(filterIds: (string | {id: string, auto: boolean})[] = []): CommandActionsBuilder {\n const newFactory = new CommandActionsBuilder();\n newFactory.commands = [...this.commands];\n newFactory.options = { ...this.options };\n newFactory.item = this.item;\n newFactory.filterIds = filterIds.map((id) => typeof id === 'string' ? id : id.id);\n newFactory.autoIds = filterIds.filter((id) => typeof id !== 'string' && id.auto).map((id) => (id as any).id);\n return newFactory;\n }\n\n setAutoIds(autoIds: string[]): CommandActionsBuilder {\n const newFactory = new CommandActionsBuilder();\n newFactory.commands = [...this.commands];\n newFactory.options = { ...this.options };\n newFactory.item = this.item;\n newFactory.filterIds = [...this.filterIds];\n newFactory.autoIds = autoIds;\n return newFactory;\n }\n\n private applyFilter(commands: Command[]): Command[] {\n if (!this.filterIds) return commands;\n return this.filterIds.map((id) => commands.find((command) => command.id === id)!)\n .filter((command) => !!command) as Command[];\n }\n\n buildAction(id: string): Action {\n const command = this.commands.find((command) => command.id === id);\n if (!command) throw new Error(`Command not found: ${id}`);\n const actionId = this.autoIds.includes(command.id)\n ? ActionId.EXECUTE_COMMAND\n : ActionId.NAVIGATE_TO_COMMAND_PAGE;\n const creator = createAction<CommandActionPayload<any>>(\n actionId,\n command.webApiRequest.bodySchema,\n {\n name: command.name,\n icon: this.options.icon || 'default',\n ...this.options,\n }\n );\n\n return creator.create({\n command,\n body: this.item,\n options: {\n queryId: this.options.queryId,\n confirm: this.options.confirm,\n }\n });\n }\n\n buildActions(item?: any, navigationExtras: NavigationExtras = {}, overwrite: Partial<Action> = {}): Action[] {\n const filteredCommands = this.applyFilter(this.commands);\n return filteredCommands.map((command) => {\n if (this.autoIds.includes(command.id)) {\n return createAction<CommandActionPayload<any>>(\n ActionId.EXECUTE_COMMAND,\n command.webApiRequest.bodySchema,\n {\n name: command.name,\n icon: this.options.icon || 'default',\n }\n ).create({\n command,\n body: this.item,\n options: {\n queryId: this.options.queryId,\n confirm: this.options.confirm,\n }\n }, overwrite);\n } else {\n const data = omitBy(flatten<object, object>({data: this.item, queryId: this.options.queryId}), value => typeof value === 'undefined');\n return createNavigateAction(['commands', {skip: true}, command.id, data], navigationExtras, {\n name: command.name,\n icon: this.options.icon,\n ...overwrite,\n });\n }\n });\n }\n\n buildItemActions<T>(): (item: T) => Action[] {\n return (item: T) => this.setItem(item).buildActions();\n }\n}\n\n\nexport function createCommandNavigateAction(\n command: Command,\n navigationExtras: NavigationExtras = {},\n item: any = {},\n options: CommandActionFactoryOptions = {},\n overwrite: Partial<Action> = {}\n): Action | null {\n if (!command) return null;\n return new CommandActionsBuilder()\n .setItem(item)\n .setCommands([command])\n .setOptions(options)\n .setFilterIds([command.id])\n .buildActions(item, navigationExtras, overwrite)[0];\n}\n\nexport function createCommandExecutionAction(\n command: Command,\n item: any = {},\n options: CommandActionFactoryOptions = {},\n overwrite: Partial<Action> = {}\n): Action | null {\n if (!command) return null;\n return new CommandActionsBuilder()\n .setItem(item)\n .setCommands([command])\n .setOptions(options)\n .setFilterIds([command.id])\n .setAutoIds([command.id])\n .buildActions(item, undefined, overwrite)[0];\n}\n","interface Schema {\n name: string;\n fields: string[];\n relations: Relation[];\n}\n\ninterface Relation {\n source: string;\n target: string;\n label?: string;\n type?: string; // 例: \"||--o{\"\n}\n\nconst NOTION_PROP_TYPE_MAP = {\n people: 'string',\n unique_id: 'string',\n rich_text: 'string',\n title: 'string',\n text: 'string',\n number: 'number',\n select: 'enum',\n status: 'enum',\n multi_select: 'string',\n date: 'date',\n person: 'string',\n files: 'string',\n checkbox: 'boolean',\n url: 'string',\n email: 'string',\n phone_number: 'string',\n relation: 'string',\n rollup: 'string',\n created_time: 'date',\n created_by: 'string',\n last_edited_time: 'date',\n last_edited_by: 'string',\n};\n\nconst NOTION_KEY_MAP = {\n 'relation': 'FK',\n 'unique_id': 'UK',\n}\n\nexport class ErBuilder {\n build(databases): string {\n const schemas = [];\n const dbIdToName = databases.reduce((acc, db) => ({\n ...acc,\n [db.id]: db?.title?.[0]?.plain_text\n }), {});\n for (const database of databases) {\n const schema = this.parseDatabaseSchema(database, database?.title?.[0]?.plain_text, dbIdToName);\n schemas.push(schema);\n }\n return this.buildMermaidER(schemas);\n }\n\n parseDatabaseSchema(\n database,\n name = '',\n map: { [key: string]: string } = {},\n ): Schema {\n const properties = database.properties;\n const fields: string[] = [];\n const relations: Relation[] = [];\n \n Object.keys(properties)\n .filter(propName => {\n if (['formula', 'rollup', 'button'].includes(properties[propName].type)) return false;\n return true;\n })\n .sort()\n .forEach(propName => {\n const prop = properties[propName];\n const type = prop.type as keyof typeof NOTION_PROP_TYPE_MAP;\n const mappedType = NOTION_PROP_TYPE_MAP[type];\n const key = NOTION_KEY_MAP[type] ?? ' ';\n const field = `${mappedType} ${type} ${key} \"${propName}\"`;\n fields.push(field);\n \n // リレーションシップの解析\n if (type === 'relation') {\n const relation = prop['relation'];\n if (relation && relation.database_id) {\n const targetDbId = relation.database_id;\n const targetDbName = map[targetDbId] || 'Unknown';\n relations.push({\n source: name,\n target: targetDbName,\n label: propName,\n type: '||--||', // リレーションのタイプを適宜設定\n });\n } else if (relation && Array.isArray(relation)) {\n relation.forEach(rel => {\n const targetDbId = rel.database_id;\n const targetDbName = map[targetDbId] || 'Unknown';\n relations.push({\n source: name,\n target: targetDbName,\n label: propName,\n type: '||--o{',\n });\n });\n }\n }\n });\n \n return { name, fields, relations };\n }\n\n buildMermaidER(schemas: Schema[]): string {\n let mermaid = 'erDiagram\\n';\n \n // エンティティの定義\n schemas.forEach(schema => {\n mermaid += ` \"${schema.name}\" {\\n`;\n mermaid += schema.fields.map(field => ` ${field}`).join('\\n');\n mermaid += '\\n }\\n';\n });\n \n // リレーションシップの定義\n schemas.forEach(schema => {\n schema.relations.forEach(relation => {\n mermaid += ` \"${relation.source}\" ${relation.type} \"${relation.target}\" : \"${relation.label}\"\\n`;\n });\n });\n \n return mermaid;\n }\n}","import { ScreenItem } from '@xxmachina/common/domain/models';\nimport type { GetDatabaseResponse } from '@notionhq/client/build/src/api-endpoints';\nimport { Database } from '@xxmachina/common/domain/models';\n\nfunction buildPageItem(\n property: GetDatabaseResponse['properties'][string],\n propName: string,\n dbName: string,\n): ScreenItem {\n switch (property.type) {\n case 'select': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'セレクト',\n formula: '',\n valueType: 'string',\n dbName,\n };\n case 'multi_select': return {\n id: property.id,\n name: propName,\n type: '入力(複数選択)',\n notionPropType: 'マルチセレクト',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'relation': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'リレーション',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'rollup': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: 'ロールアップ',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'unique_id': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: 'ユニークID',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'created_time': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '作成日時',\n formula: '',\n valueType: 'date',\n dbName,\n }\n case 'created_by': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '作成者',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'rich_text': return {\n id: property.id,\n name: propName,\n type: '入力(テキスト)',\n notionPropType: 'テキスト',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'number': return {\n id: property.id,\n name: propName,\n type: '入力(数値)',\n notionPropType: '数値',\n formula: '',\n valueType: 'number',\n dbName,\n }\n case 'date': return {\n id: property.id,\n name: propName,\n type: '入力(日時)',\n notionPropType: '日時',\n formula: '',\n valueType: 'date',\n dbName,\n }\n case 'checkbox': return {\n id: property.id,\n name: propName,\n type: '入力(複数選択)',\n notionPropType: 'チェックボックス',\n formula: '',\n valueType: 'boolean',\n dbName,\n }\n case 'title': return {\n id: property.id,\n name: propName,\n type: '入力(テキスト)',\n notionPropType: 'タイトル',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'people': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'ユーザー',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'last_edited_time': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '最終更新日時',\n formula: '',\n valueType: 'date',\n dbName,\n }\n case 'last_edited_by': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '最終更新者',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'status': return {\n id: property.id,\n name: propName,\n type: '入力(単一選択)',\n notionPropType: 'ステータス',\n formula: '',\n valueType: 'string',\n dbName,\n }\n case 'formula': return {\n id: property.id,\n name: propName,\n type: '表示',\n notionPropType: '数式',\n formula: '',\n valueType: 'any',\n dbName,\n }\n /* @ts-ignore */\n case 'button': return {\n id: property?.['id'] ?? '',\n name: propName,\n type: 'ボタン',\n notionPropType: 'ボタン',\n formula: '',\n valueType: 'string',\n dbName,\n }\n default: return {\n id: property.id,\n name: propName,\n type: '不明',\n notionPropType: property.type,\n formula: '',\n valueType: 'string',\n dbName,\n };\n }\n}\n\nexport class ScreenItemBuilder {\n build(database: Database): ScreenItem[] {\n const items: ScreenItem[] = [];\n \n Object.entries(database?.properties ?? {}).sort((a, b) => {\n return a[0].localeCompare(b[0]);\n }).filter(([propName, prop]) => {\n // if (propName.startsWith('_')) return false;\n // if (/^\\d/.test(propName)) return false;\n // if (propName.includes('旧エクセル')) return false;\n // if (['formula', 'rollup', 'button'].includes(prop.type)) return false;\n return true;\n }).forEach(([propName, prop]) => {\n const item = buildPageItem(prop, propName, database?.title?.[0]?.plain_text ?? '');\n items.push(item);\n });\n \n return items;\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAEa,cAAc,CAAA;AACzB,IAAA,gBAAgB,CAAC,OAAgB,EAAA;AAC/B,QAAA,O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C,QAAQ,EAAE,IAAI,CAAC,KAAI;;;;;AAK7B,YAAA,OAAO,IAAI;SACZ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAI;YAC9B,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,UAAU,IAAI,EAAE,CAAC;AAClF,YAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAClB,SAAC,CAAC;AAEF,QAAA,OAAO,KAAK;;AAEf;;AC5MD;;AAEG;;;;"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { message } from '@nx-ddd/common';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
|
|
4
|
-
class MessageBuilder {
|
|
5
|
-
getInvoiceRange(invoice) {
|
|
6
|
-
const start = (invoice?.orders ?? []).reduce((acc, order) => {
|
|
7
|
-
const startDate = order?.startDate ?? dayjs('2200-12-31');
|
|
8
|
-
return acc.isBefore(startDate) ? acc : startDate;
|
|
9
|
-
}, dayjs('2200-12-31'));
|
|
10
|
-
const end = (invoice?.orders ?? []).reduce((acc, order) => {
|
|
11
|
-
const endDate = order?.endDate ?? dayjs('1970-01-01');
|
|
12
|
-
return acc.isAfter(endDate) ? acc : endDate;
|
|
13
|
-
}, dayjs('1970-01-01'));
|
|
14
|
-
return { start, end };
|
|
15
|
-
}
|
|
16
|
-
getInvoicePeriod(invoice) {
|
|
17
|
-
const { start, end } = this.getInvoiceRange(invoice);
|
|
18
|
-
return `${start?.format('YYYY年M月D日') ?? ''}~${end?.format('YYYY年M月D日') ?? ''}`;
|
|
19
|
-
}
|
|
20
|
-
build(invoice) {
|
|
21
|
-
return message `${invoice?.customer?.name}
|
|
22
|
-
${invoice?.customer?.billingContact ?? 'ご担当者'}様
|
|
23
|
-
|
|
24
|
-
お世話になっております。
|
|
25
|
-
${'〇〇'}です。
|
|
26
|
-
|
|
27
|
-
${this.getInvoicePeriod(invoice)}の請求書をご用意ができましたのでお送りさせていただきます。
|
|
28
|
-
ご確認のほど、よろしくお願いいたします。
|
|
29
|
-
|
|
30
|
-
${invoice?.vendor?.type !== '個人事業主' ? invoice?.vendor?.name : ''}
|
|
31
|
-
${invoice?.vendor?.contact}`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
class Email {
|
|
36
|
-
static EMPTY = {
|
|
37
|
-
to: '',
|
|
38
|
-
cc: '',
|
|
39
|
-
title: '',
|
|
40
|
-
body: '',
|
|
41
|
-
};
|
|
42
|
-
to;
|
|
43
|
-
cc;
|
|
44
|
-
title;
|
|
45
|
-
body;
|
|
46
|
-
}
|
|
47
|
-
class EmailBuilder {
|
|
48
|
-
mesageBuilder = new MessageBuilder();
|
|
49
|
-
build(invoice) {
|
|
50
|
-
return {
|
|
51
|
-
to: invoice?.customer?.billingEmail,
|
|
52
|
-
cc: invoice?.vendor?.email,
|
|
53
|
-
title: `[${invoice?.vendor?.name ?? '{{invoice.vendor.name}}'}] 請求書ご送付のお知らせ`,
|
|
54
|
-
body: this.mesageBuilder.build(invoice),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
class TitleBuilder {
|
|
60
|
-
build(invoice) {
|
|
61
|
-
return `[${invoice?.customer?.name ?? '{{invoice.vendor.name}}'}様] invoice_${invoice?.dueDate?.toISOString()}`;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Generated bundle index. Do not edit.
|
|
67
|
-
*/
|
|
68
|
-
|
|
69
|
-
export { Email, EmailBuilder, MessageBuilder, TitleBuilder };
|
|
70
|
-
//# sourceMappingURL=xxmachina-common-domain-invoice-builders.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xxmachina-common-domain-invoice-builders.mjs","sources":["../../../../../packages/@xxmachina/common/src/lib/domain-invoice/builders/message/message.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/builders/email/email.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/builders/title/title.builder.ts","../../../../../packages/@xxmachina/common/src/lib/domain-invoice/builders/xxmachina-common-domain-invoice-builders.ts"],"sourcesContent":["import { Invoice } from \"@xxmachina/common/domain-invoice/models\";\nimport { message } from '@nx-ddd/common';\nimport dayjs from \"dayjs\";\n\nexport class MessageBuilder {\n private getInvoiceRange(invoice: Invoice): {start: dayjs.Dayjs, end: dayjs.Dayjs} {\n const start = (invoice?.orders ?? []).reduce((acc, order) => {\n const startDate = order?.startDate ?? dayjs('2200-12-31');\n return acc.isBefore(startDate) ? acc : startDate;\n }, dayjs('2200-12-31'));\n const end = (invoice?.orders ?? []).reduce((acc, order) => {\n const endDate = order?.endDate ?? dayjs('1970-01-01');\n return acc.isAfter(endDate) ? acc : endDate;\n }, dayjs('1970-01-01'));\n return {start, end};\n }\n\n private getInvoicePeriod(invoice: Invoice): string {\n const {start, end} = this.getInvoiceRange(invoice);\n return `${start?.format('YYYY年M月D日') ?? ''}~${end?.format('YYYY年M月D日') ?? ''}`;\n }\n\n build(invoice: Invoice) {\n return message`${invoice?.customer?.name}\n ${invoice?.customer?.billingContact ?? 'ご担当者'}様\n \n お世話になっております。\n ${'〇〇'}です。\n \n ${this.getInvoicePeriod(invoice)}の請求書をご用意ができましたのでお送りさせていただきます。\n ご確認のほど、よろしくお願いいたします。\n \n ${invoice?.vendor?.type !== '個人事業主' ? invoice?.vendor?.name : ''}\n ${invoice?.vendor?.contact}`;\n }\n}\n","import { Invoice } from \"@xxmachina/common/domain-invoice/models\";\nimport { MessageBuilder } from \"../message\";\n\nexport class Email {\n static EMPTY = {\n to: '',\n cc: '',\n title: '',\n body: '',\n };\n\n to: string;\n cc: string;\n title: string;\n body: string;\n}\n\nexport class EmailBuilder {\n protected readonly mesageBuilder = new MessageBuilder();\n\n build(invoice: Invoice): Email {\n return {\n to: invoice?.customer?.billingEmail,\n cc: invoice?.vendor?.email,\n title: `[${invoice?.vendor?.name ?? '{{invoice.vendor.name}}'}] 請求書ご送付のお知らせ`,\n body: this.mesageBuilder.build(invoice),\n }\n }\n}","import { Invoice } from '@xxmachina/common/domain-invoice/models';\n\nexport class TitleBuilder {\n build(invoice: Invoice) {\n return `[${invoice?.customer?.name ?? '{{invoice.vendor.name}}'}様] invoice_${invoice?.dueDate?.toISOString()}`;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAIa,cAAc,CAAA;AACjB,IAAA,eAAe,CAAC,OAAgB,EAAA;AACtC,QAAA,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,KAAI;YAC1D,MAAM,SAAS,GAAG,KAAK,EAAE,SAAS,IAAI,KAAK,CAAC,YAAY,CAAC;AACzD,YAAA,OAAO,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,SAAS;AAClD,SAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;AACvB,QAAA,MAAM,GAAG,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,KAAI;YACxD,MAAM,OAAO,GAAG,KAAK,EAAE,OAAO,IAAI,KAAK,CAAC,YAAY,CAAC;AACrD,YAAA,OAAO,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,GAAG,GAAG,OAAO;AAC7C,SAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;AACvB,QAAA,OAAO,EAAC,KAAK,EAAE,GAAG,EAAC;;AAGb,IAAA,gBAAgB,CAAC,OAAgB,EAAA;AACvC,QAAA,MAAM,EAAC,KAAK,EAAE,GAAG,EAAC,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;AAClD,QAAA,OAAO,GAAG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ACpB,QAAA,OAAO,IAAI,OAAO,EAAE,QAAQ,EAAE,IAAI,IAAI,yBAAyB,CAAc,WAAA,EAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE;;AAEjH;;ACND;;AAEG;;;;"}
|
|
@@ -1,427 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;AAKF,IAAA,EAAE;AAKF,IAAA,KAAK;AAKL,IAAA,SAAS;AAKT,IAAA,QAAQ;IAER,OAAO,IAAI,CAAC,MAAgB,EAAA;AAC1B,QAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,UAAQ,EAAE,EAAE,EAAC,GAAG,MAAM,EAAC,CAAC;AAC3D,QAAA,OAAO,QAAQ;;;AAxBjB,UAAA,CAAA;IAFC,KAAK,CAAC,MAAM,EAAE,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;AACjC,IAAA,MAAM,CAAC,IAAI,CAAC,IAA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