@xxmachina/common 19.0.0-preview.29 → 19.0.0-preview.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/_shared/auth/auth.module.js +22 -0
- package/_shared/auth/auth.module.js.map +1 -0
- package/_shared/auth/index.js +5 -0
- package/_shared/auth/index.js.map +1 -0
- package/_shared/auth/passports/anonymous/anonymous.strategy.js +19 -0
- package/_shared/auth/passports/anonymous/anonymous.strategy.js.map +1 -0
- package/_shared/auth/passports/anonymous/index.js +5 -0
- package/_shared/auth/passports/anonymous/index.js.map +1 -0
- package/_shared/auth/passports/firebase/firebase.guard.js +23 -0
- package/_shared/auth/passports/firebase/firebase.guard.js.map +1 -0
- package/_shared/auth/passports/firebase/firebase.strategy.js +22 -0
- package/_shared/auth/passports/firebase/firebase.strategy.js.map +1 -0
- package/_shared/auth/passports/firebase/index.js +6 -0
- package/_shared/auth/passports/firebase/index.js.map +1 -0
- package/_shared/auth/passports/internal/index.js +5 -0
- package/_shared/auth/passports/internal/index.js.map +1 -0
- package/_shared/auth/passports/internal/internal.strategy.js +33 -0
- package/_shared/auth/passports/internal/internal.strategy.js.map +1 -0
- package/_shared/auth/passports/msal/index.js +6 -0
- package/_shared/auth/passports/msal/index.js.map +1 -0
- package/_shared/auth/passports/msal/msal.guard.js +13 -0
- package/_shared/auth/passports/msal/msal.guard.js.map +1 -0
- package/_shared/auth/passports/msal/msal.strategy.js +43 -0
- package/_shared/auth/passports/msal/msal.strategy.js.map +1 -0
- package/_shared/meta/decorators.js +25 -0
- package/_shared/meta/decorators.js.map +1 -0
- package/_shared/meta/redis/index.js +6 -0
- package/_shared/meta/redis/index.js.map +1 -0
- package/_shared/meta/redis/redis.config.js +10 -0
- package/_shared/meta/redis/redis.config.js.map +1 -0
- package/_shared/meta/redis/redis.repository.d.ts +3 -6
- package/_shared/meta/redis/redis.repository.js +108 -0
- package/_shared/meta/redis/redis.repository.js.map +1 -0
- package/auth/auth.service.d.ts +0 -3
- package/auth/auth.service.js +12 -0
- package/auth/auth.service.js.map +1 -0
- package/auth/index.js +5 -0
- package/auth/index.js.map +1 -0
- package/azure-auth/auth.di.js +56 -0
- package/azure-auth/auth.di.js.map +1 -0
- package/azure-auth/auth.service.d.ts +0 -3
- package/azure-auth/auth.service.js +115 -0
- package/azure-auth/auth.service.js.map +1 -0
- package/azure-auth/index.js +6 -0
- package/azure-auth/index.js.map +1 -0
- package/domain/builder/command/command.builder.d.ts +2 -1
- package/domain/builder/command/command.builder.js +30 -0
- package/domain/builder/command/command.builder.js.map +1 -0
- package/domain/builder/command/index.js +5 -0
- package/domain/builder/command/index.js.map +1 -0
- package/domain/builder/command-action/command-action.builder.d.ts +1 -1
- package/domain/builder/command-action/command-action.builder.js +139 -0
- package/domain/builder/command-action/command-action.builder.js.map +1 -0
- package/domain/builder/command-action/index.js +5 -0
- package/domain/builder/command-action/index.js.map +1 -0
- package/domain/builder/er/er.builder.js +112 -0
- package/domain/builder/er/er.builder.js.map +1 -0
- package/domain/builder/er/index.js +5 -0
- package/domain/builder/er/index.js.map +1 -0
- package/domain/builder/screen-item/index.js +5 -0
- package/domain/builder/screen-item/index.js.map +1 -0
- package/domain/builder/screen-item/screen-item.builder.d.ts +2 -2
- package/{fesm2022/xxmachina-common-domain-builder-screen-item.mjs → domain/builder/screen-item/screen-item.builder.js} +11 -10
- package/domain/builder/screen-item/screen-item.builder.js.map +1 -0
- package/domain/index.d.ts +1 -2
- package/domain/index.js +5 -0
- package/domain/index.js.map +1 -0
- package/{domain-invoice → domain/invoice}/builders/email/email.builder.d.ts +1 -1
- package/domain/invoice/builders/email/email.builder.js +29 -0
- package/domain/invoice/builders/email/email.builder.js.map +1 -0
- package/domain/invoice/builders/email/index.js +5 -0
- package/domain/invoice/builders/email/index.js.map +1 -0
- package/domain/invoice/builders/message/index.js +5 -0
- package/domain/invoice/builders/message/index.js.map +1 -0
- package/{domain-invoice → domain/invoice}/builders/message/message.builder.d.ts +1 -1
- package/domain/invoice/builders/message/message.builder.js +43 -0
- package/domain/invoice/builders/message/message.builder.js.map +1 -0
- package/domain/invoice/builders/title/index.js +5 -0
- package/domain/invoice/builders/title/index.js.map +1 -0
- package/{domain-invoice → domain/invoice}/builders/title/title.builder.d.ts +1 -1
- package/domain/invoice/builders/title/title.builder.js +11 -0
- package/domain/invoice/builders/title/title.builder.js.map +1 -0
- package/domain/invoice/models/backoffice/contract.js +50 -0
- package/domain/invoice/models/backoffice/contract.js.map +1 -0
- package/domain/invoice/models/backoffice/index.js +9 -0
- package/domain/invoice/models/backoffice/index.js.map +1 -0
- package/domain/invoice/models/backoffice/invoice-mail.js +7 -0
- package/domain/invoice/models/backoffice/invoice-mail.js.map +1 -0
- package/{domain-invoice → domain/invoice}/models/backoffice/invoice.d.ts +1 -1
- package/domain/invoice/models/backoffice/invoice.js +91 -0
- package/domain/invoice/models/backoffice/invoice.js.map +1 -0
- package/{domain-invoice → domain/invoice}/models/backoffice/order.d.ts +1 -1
- package/domain/invoice/models/backoffice/order.js +157 -0
- package/domain/invoice/models/backoffice/order.js.map +1 -0
- package/{domain-invoice → domain/invoice}/models/backoffice/partner.d.ts +1 -1
- package/domain/invoice/models/backoffice/partner.js +96 -0
- package/domain/invoice/models/backoffice/partner.js.map +1 -0
- package/domain/invoice/models/index.js +5 -0
- package/domain/invoice/models/index.js.map +1 -0
- package/domain/models/agent/assistant.js +31 -0
- package/domain/models/agent/assistant.js.map +1 -0
- package/domain/models/agent/index.js +5 -0
- package/domain/models/agent/index.js.map +1 -0
- package/domain/models/bookmarklet/bookmarklet.js +34 -0
- package/domain/models/bookmarklet/bookmarklet.js.map +1 -0
- package/domain/models/bookmarklet/index.js +5 -0
- package/domain/models/bookmarklet/index.js.map +1 -0
- package/domain/models/calendar-utils.d.ts +5 -0
- package/domain/models/calendar-utils.js +43 -0
- package/domain/models/calendar-utils.js.map +1 -0
- package/domain/models/command/command.helper.js +14 -0
- package/domain/models/command/command.helper.js.map +1 -0
- package/domain/models/command/command.js +40 -0
- package/domain/models/command/command.js.map +1 -0
- package/domain/models/command/index.js +6 -0
- package/domain/models/command/index.js.map +1 -0
- package/domain/models/database/database.js +7 -0
- package/domain/models/database/database.js.map +1 -0
- package/domain/models/database/index.js +5 -0
- package/domain/models/database/index.js.map +1 -0
- package/domain/models/endpoint/endpoint.helper.js +21 -0
- package/domain/models/endpoint/endpoint.helper.js.map +1 -0
- package/domain/models/endpoint/index.js +5 -0
- package/domain/models/endpoint/index.js.map +1 -0
- package/domain/models/index.d.ts +2 -8
- package/domain/models/index.js +12 -0
- package/domain/models/index.js.map +1 -0
- package/domain/models/links/google/google.js +47 -0
- package/domain/models/links/google/google.js.map +1 -0
- package/domain/models/links/google/index.js +5 -0
- package/domain/models/links/google/index.js.map +1 -0
- package/domain/models/openapi/index.js +6 -0
- package/domain/models/openapi/index.js.map +1 -0
- package/domain/models/openapi/openapi.js +87 -0
- package/domain/models/openapi/openapi.js.map +1 -0
- package/domain/models/openapi/openapi.schema.js +3 -0
- package/domain/models/openapi/openapi.schema.js.map +1 -0
- package/domain/models/operators/assistancts/base.js +13 -0
- package/domain/models/operators/assistancts/base.js.map +1 -0
- package/domain/models/operators/assistancts/index.js +5 -0
- package/domain/models/operators/assistancts/index.js.map +1 -0
- package/domain/models/operators/base.js +10 -0
- package/domain/models/operators/base.js.map +1 -0
- package/domain/models/operators/index.js +8 -0
- package/domain/models/operators/index.js.map +1 -0
- package/domain/models/operators/systems/base.js +3 -0
- package/domain/models/operators/systems/base.js.map +1 -0
- package/domain/models/operators/systems/graphql.js +3 -0
- package/domain/models/operators/systems/graphql.js.map +1 -0
- package/domain/models/operators/systems/index.js +7 -0
- package/domain/models/operators/systems/index.js.map +1 -0
- package/domain/models/operators/systems/rest.js +3 -0
- package/domain/models/operators/systems/rest.js.map +1 -0
- package/domain/models/operators/workflows/index.js +5 -0
- package/domain/models/operators/workflows/index.js.map +1 -0
- package/domain/models/operators/workflows/workflow.js +3 -0
- package/domain/models/operators/workflows/workflow.js.map +1 -0
- package/domain/models/project.js +9 -0
- package/domain/models/project.js.map +1 -0
- package/domain/models/query/index.js +6 -0
- package/domain/models/query/index.js.map +1 -0
- package/domain/models/query/query.d.ts +1 -1
- package/domain/models/query/query.helper.d.ts +0 -1
- package/domain/models/query/query.helper.js +172 -0
- package/domain/models/query/query.helper.js.map +1 -0
- package/domain/models/query/query.js +122 -0
- package/domain/models/query/query.js.map +1 -0
- package/domain/models/resource/index.js +6 -0
- package/domain/models/resource/index.js.map +1 -0
- package/domain/models/resource/resource.helper.js +16 -0
- package/domain/models/resource/resource.helper.js.map +1 -0
- package/domain/models/resource/resource.js +73 -0
- package/domain/models/resource/resource.js.map +1 -0
- package/domain/models/scheduler/index.js +5 -0
- package/domain/models/scheduler/index.js.map +1 -0
- package/domain/models/scheduler/schedule.js +89 -0
- package/domain/models/scheduler/schedule.js.map +1 -0
- package/domain/models/screen-item/index.js +5 -0
- package/domain/models/screen-item/index.js.map +1 -0
- package/domain/models/screen-item/screen-item.js +3 -0
- package/domain/models/screen-item/screen-item.js.map +1 -0
- package/domain/models/spec.js +3 -0
- package/domain/models/spec.js.map +1 -0
- package/domain/resolvers/index.js +5 -0
- package/domain/resolvers/index.js.map +1 -0
- package/{domain-invoice → domain}/resolvers/invoice.resolver.d.ts +1 -1
- package/domain/resolvers/invoice.resolver.js +31 -0
- package/domain/resolvers/invoice.resolver.js.map +1 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.d.ts +0 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js +1 -0
- package/infrastructure/converters/bookmarklet/bookmarklet.converter.js.map +1 -0
- package/{infra → infrastructure}/converters/google/google.converter.d.ts +1 -4
- package/infrastructure/converters/google/google.converter.js +27 -0
- package/infrastructure/converters/google/google.converter.js.map +1 -0
- package/infrastructure/converters/google/index.js +5 -0
- package/infrastructure/converters/google/index.js.map +1 -0
- package/infrastructure/external/data-connect/data-connect.service.impl.d.ts +7 -0
- package/infrastructure/external/data-connect/data-connect.service.impl.js +20 -0
- package/infrastructure/external/data-connect/data-connect.service.impl.js.map +1 -0
- package/infrastructure/external/data-connect/data-connect.service.js +11 -0
- package/infrastructure/external/data-connect/data-connect.service.js.map +1 -0
- package/infrastructure/external/data-connect/index.js +5 -0
- package/infrastructure/external/data-connect/index.js.map +1 -0
- package/{infra → infrastructure}/external/external.config.d.ts +2 -2
- package/infrastructure/external/external.config.js +13 -0
- package/infrastructure/external/external.config.js.map +1 -0
- package/{infra → infrastructure}/external/external.service.d.ts +3 -4
- package/infrastructure/external/external.service.js +23 -0
- package/infrastructure/external/external.service.js.map +1 -0
- package/infrastructure/external/index.js +6 -0
- package/infrastructure/external/index.js.map +1 -0
- package/infrastructure/external/quick-js/index.js +5 -0
- package/infrastructure/external/quick-js/index.js.map +1 -0
- package/{infra → infrastructure}/external/quick-js/quick-js.service.d.ts +0 -3
- package/infrastructure/external/quick-js/quick-js.service.js +44 -0
- package/infrastructure/external/quick-js/quick-js.service.js.map +1 -0
- package/infrastructure/external/resend/index.js +5 -0
- package/infrastructure/external/resend/index.js.map +1 -0
- package/infrastructure/external/resend/resend.service.d.ts +9 -0
- package/{infra → infrastructure}/external/resend/resend.service.impl.d.ts +8 -4
- package/infrastructure/external/resend/resend.service.impl.js +27 -0
- package/infrastructure/external/resend/resend.service.impl.js.map +1 -0
- package/infrastructure/external/resend/resend.service.js +6 -0
- package/infrastructure/external/resend/resend.service.js.map +1 -0
- package/infrastructure/index.js +6 -0
- package/infrastructure/index.js.map +1 -0
- package/{infra → infrastructure}/infrastructure.config.d.ts +5 -5
- package/infrastructure/infrastructure.config.js +12 -0
- package/infrastructure/infrastructure.config.js.map +1 -0
- package/{infra → infrastructure}/infrastructure.service.d.ts +0 -3
- package/infrastructure/infrastructure.service.js +20 -0
- package/infrastructure/infrastructure.service.js.map +1 -0
- package/infrastructure/query/firestore/query/index.js +5 -0
- package/infrastructure/query/firestore/query/index.js.map +1 -0
- package/{infra → infrastructure}/query/firestore/query/query.query.d.ts +0 -3
- package/infrastructure/query/firestore/query/query.query.js +20 -0
- package/infrastructure/query/firestore/query/query.query.js.map +1 -0
- package/infrastructure/query/firestore/resource/index.js +5 -0
- package/infrastructure/query/firestore/resource/index.js.map +1 -0
- package/{infra → infrastructure}/query/firestore/resource/resource.query.d.ts +0 -3
- package/infrastructure/query/firestore/resource/resource.query.js +20 -0
- package/infrastructure/query/firestore/resource/resource.query.js.map +1 -0
- package/infrastructure/query/hasura/resource/index.js +5 -0
- package/infrastructure/query/hasura/resource/index.js.map +1 -0
- package/infrastructure/query/hasura/resource/resource.query.d.ts +3 -0
- package/infrastructure/query/hasura/resource/resource.query.js +14 -0
- package/infrastructure/query/hasura/resource/resource.query.js.map +1 -0
- package/infrastructure/repository/dataconnect/invoice/index.js +5 -0
- package/infrastructure/repository/dataconnect/invoice/index.js.map +1 -0
- package/{infra → infrastructure}/repository/dataconnect/invoice/invoice.repository.impl.d.ts +1 -4
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js +54 -0
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.impl.js.map +1 -0
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js +11 -0
- package/infrastructure/repository/dataconnect/invoice/invoice.repository.js.map +1 -0
- package/infrastructure/repository/dataconnect/order/index.js +5 -0
- package/infrastructure/repository/dataconnect/order/index.js.map +1 -0
- package/{infra → infrastructure}/repository/dataconnect/order/order.repository.impl.d.ts +1 -4
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js +74 -0
- package/infrastructure/repository/dataconnect/order/order.repository.impl.js.map +1 -0
- package/infrastructure/repository/dataconnect/order/order.repository.js +11 -0
- package/infrastructure/repository/dataconnect/order/order.repository.js.map +1 -0
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.d.ts +6 -0
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js +20 -0
- package/infrastructure/repository/firestore/bookmarklet/bookmarklet.repository.js.map +1 -0
- package/infrastructure/repository/firestore/bookmarklet/index.d.ts +1 -0
- package/infrastructure/repository/firestore/bookmarklet/index.js +5 -0
- package/infrastructure/repository/firestore/bookmarklet/index.js.map +1 -0
- package/infrastructure/repository/firestore/firestore.repository.d.ts +7 -0
- package/infrastructure/repository/firestore/firestore.repository.js +20 -0
- package/infrastructure/repository/firestore/firestore.repository.js.map +1 -0
- package/infrastructure/repository/firestore/index.d.ts +1 -0
- package/infrastructure/repository/firestore/index.js +5 -0
- package/infrastructure/repository/firestore/index.js.map +1 -0
- package/infrastructure/repository/firestore/link/google/google.repository.d.ts +7 -0
- package/infrastructure/repository/firestore/link/google/google.repository.js +19 -0
- package/infrastructure/repository/firestore/link/google/google.repository.js.map +1 -0
- package/infrastructure/repository/firestore/link/google/index.js +5 -0
- package/infrastructure/repository/firestore/link/google/index.js.map +1 -0
- package/infrastructure/repository/firestore/link/index.js +5 -0
- package/infrastructure/repository/firestore/link/index.js.map +1 -0
- package/infrastructure/repository/firestore/link/link.repository.d.ts +5 -0
- package/infrastructure/repository/firestore/link/link.repository.js +17 -0
- package/infrastructure/repository/firestore/link/link.repository.js.map +1 -0
- package/infrastructure/repository/firestore/query/index.js +5 -0
- package/infrastructure/repository/firestore/query/index.js.map +1 -0
- package/{infra → infrastructure}/repository/firestore/query/query.repository.d.ts +1 -4
- package/infrastructure/repository/firestore/query/query.repository.js +20 -0
- package/infrastructure/repository/firestore/query/query.repository.js.map +1 -0
- package/infrastructure/repository/firestore/resource/index.js +5 -0
- package/infrastructure/repository/firestore/resource/index.js.map +1 -0
- package/{infra → infrastructure}/repository/firestore/resource/resource.repository.d.ts +1 -4
- package/infrastructure/repository/firestore/resource/resource.repository.js +20 -0
- package/infrastructure/repository/firestore/resource/resource.repository.js.map +1 -0
- package/infrastructure/repository/hasura/query/index.js +5 -0
- package/infrastructure/repository/hasura/query/index.js.map +1 -0
- package/{infra → infrastructure}/repository/hasura/query/query.repository.d.ts +0 -3
- package/infrastructure/repository/hasura/query/query.repository.js +23 -0
- package/infrastructure/repository/hasura/query/query.repository.js.map +1 -0
- package/infrastructure/repository/hasura/resource/index.js +5 -0
- package/infrastructure/repository/hasura/resource/index.js.map +1 -0
- package/{infra → infrastructure}/repository/hasura/resource/resource.repository.d.ts +0 -3
- package/infrastructure/repository/hasura/resource/resource.repository.js +23 -0
- package/infrastructure/repository/hasura/resource/resource.repository.js.map +1 -0
- package/infrastructure/repository/index.js +6 -0
- package/infrastructure/repository/index.js.map +1 -0
- package/infrastructure/repository/notion/contract/contract.config.js +10 -0
- package/infrastructure/repository/notion/contract/contract.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/contract/contract.repository.d.ts +1 -4
- package/infrastructure/repository/notion/contract/contract.repository.js +22 -0
- package/infrastructure/repository/notion/contract/contract.repository.js.map +1 -0
- package/infrastructure/repository/notion/contract/index.js +6 -0
- package/infrastructure/repository/notion/contract/index.js.map +1 -0
- package/infrastructure/repository/notion/index.d.ts +2 -0
- package/infrastructure/repository/notion/index.js +6 -0
- package/infrastructure/repository/notion/index.js.map +1 -0
- package/infrastructure/repository/notion/invoice/index.js +6 -0
- package/infrastructure/repository/notion/invoice/index.js.map +1 -0
- package/infrastructure/repository/notion/invoice/invoice.config.js +10 -0
- package/infrastructure/repository/notion/invoice/invoice.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/invoice/invoice.repository.d.ts +1 -4
- package/infrastructure/repository/notion/invoice/invoice.repository.js +22 -0
- package/infrastructure/repository/notion/invoice/invoice.repository.js.map +1 -0
- package/infrastructure/repository/notion/notion.config.js +18 -0
- package/infrastructure/repository/notion/notion.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/notion.repository.d.ts +0 -3
- package/infrastructure/repository/notion/notion.repository.js +26 -0
- package/infrastructure/repository/notion/notion.repository.js.map +1 -0
- package/infrastructure/repository/notion/order/index.js +5 -0
- package/infrastructure/repository/notion/order/index.js.map +1 -0
- package/infrastructure/repository/notion/order/order.config.js +10 -0
- package/infrastructure/repository/notion/order/order.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/order/order.repository.d.ts +1 -4
- package/infrastructure/repository/notion/order/order.repository.js +22 -0
- package/infrastructure/repository/notion/order/order.repository.js.map +1 -0
- package/infrastructure/repository/notion/partner/index.js +6 -0
- package/infrastructure/repository/notion/partner/index.js.map +1 -0
- package/infrastructure/repository/notion/partner/partner.config.js +10 -0
- package/infrastructure/repository/notion/partner/partner.config.js.map +1 -0
- package/{infra → infrastructure}/repository/notion/partner/partner.repository.d.ts +1 -4
- package/infrastructure/repository/notion/partner/partner.repository.js +22 -0
- package/infrastructure/repository/notion/partner/partner.repository.js.map +1 -0
- package/infrastructure/repository/redis/index.js +6 -0
- package/infrastructure/repository/redis/index.js.map +1 -0
- package/infrastructure/repository/redis/operator/index.js +5 -0
- package/infrastructure/repository/redis/operator/index.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/operator/operator.repository.d.ts +0 -3
- package/infrastructure/repository/redis/operator/operator.repository.js +17 -0
- package/infrastructure/repository/redis/operator/operator.repository.js.map +1 -0
- package/infrastructure/repository/redis/project/index.js +5 -0
- package/infrastructure/repository/redis/project/index.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/project/project.repository.d.ts +0 -3
- package/infrastructure/repository/redis/project/project.repository.js +33 -0
- package/infrastructure/repository/redis/project/project.repository.js.map +1 -0
- package/infrastructure/repository/redis/redis.config.js +10 -0
- package/infrastructure/repository/redis/redis.config.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/redis.service.d.ts +0 -3
- package/infrastructure/repository/redis/redis.service.js +22 -0
- package/infrastructure/repository/redis/redis.service.js.map +1 -0
- package/infrastructure/repository/redis/spec/index.js +5 -0
- package/infrastructure/repository/redis/spec/index.js.map +1 -0
- package/{infra → infrastructure}/repository/redis/spec/spec.repository.d.ts +3 -5
- package/infrastructure/repository/redis/spec/spec.repository.js +94 -0
- package/infrastructure/repository/redis/spec/spec.repository.js.map +1 -0
- package/infrastructure/repository/redis/system/index.js +5 -0
- package/infrastructure/repository/redis/system/index.js.map +1 -0
- package/infrastructure/repository/redis/system/system.repository.d.ts +3 -0
- package/infrastructure/repository/redis/system/system.repository.js +15 -0
- package/infrastructure/repository/redis/system/system.repository.js.map +1 -0
- package/{infra → infrastructure}/repository/repository.config.d.ts +4 -4
- package/infrastructure/repository/repository.config.js +12 -0
- package/infrastructure/repository/repository.config.js.map +1 -0
- package/{infra → infrastructure}/repository/repository.service.d.ts +0 -3
- package/infrastructure/repository/repository.service.js +20 -0
- package/infrastructure/repository/repository.service.js.map +1 -0
- package/package.json +14 -202
- package/stores/index.d.ts +28 -4
- package/stores/index.js +66 -0
- package/stores/index.js.map +1 -0
- package/usecase/assistant/assistant.service.d.ts +1 -4
- package/usecase/assistant/assistant.service.js +72 -0
- package/usecase/assistant/assistant.service.js.map +1 -0
- package/usecase/assistant/index.js +5 -0
- package/usecase/assistant/index.js.map +1 -0
- package/usecase/database/database.service.d.ts +0 -3
- package/usecase/database/database.service.js +103 -0
- package/usecase/database/database.service.js.map +1 -0
- package/usecase/database/index.js +5 -0
- package/usecase/database/index.js.map +1 -0
- package/usecase/graphql/graphql.service.d.ts +0 -3
- package/usecase/graphql/graphql.service.js +49 -0
- package/usecase/graphql/graphql.service.js.map +1 -0
- package/usecase/graphql/index.js +5 -0
- package/usecase/graphql/index.js.map +1 -0
- package/usecase/index.js +5 -0
- package/usecase/index.js.map +1 -0
- package/usecase/invoice/index.js +5 -0
- package/usecase/invoice/index.js.map +1 -0
- package/usecase/invoice/invoice.service.d.ts +13 -9
- package/usecase/invoice/invoice.service.js +69 -0
- package/usecase/invoice/invoice.service.js.map +1 -0
- package/usecase/link/index.js +5 -0
- package/usecase/link/index.js.map +1 -0
- package/usecase/link/link.service.d.ts +2 -5
- package/usecase/link/link.service.js +20 -0
- package/usecase/link/link.service.js.map +1 -0
- package/usecase/order/index.js +5 -0
- package/usecase/order/index.js.map +1 -0
- package/usecase/order/order.service.d.ts +2 -5
- package/usecase/order/order.service.js +27 -0
- package/usecase/order/order.service.js.map +1 -0
- package/usecase/project/index.js +5 -0
- package/usecase/project/index.js.map +1 -0
- package/usecase/project/project.service.d.ts +1 -4
- package/usecase/project/project.service.js +37 -0
- package/usecase/project/project.service.js.map +1 -0
- package/usecase/spec/index.js +5 -0
- package/usecase/spec/index.js.map +1 -0
- package/usecase/spec/spec.service.d.ts +1 -4
- package/usecase/spec/spec.service.js +49 -0
- package/usecase/spec/spec.service.js.map +1 -0
- package/usecase/usecase.service.d.ts +0 -3
- package/usecase/usecase.service.js +24 -0
- package/usecase/usecase.service.js.map +1 -0
- package/{fesm2022/xxmachina-common-utils-crypto.mjs → utils/crypto.js} +12 -10
- package/utils/crypto.js.map +1 -0
- package/{fesm2022/xxmachina-common-utils.mjs → utils/extract-display-fields.js} +4 -7
- package/utils/extract-display-fields.js.map +1 -0
- package/utils/index.js +5 -0
- package/utils/index.js.map +1 -0
- package/_shared/meta/index.d.ts +0 -1
- package/domain/builder/index.d.ts +0 -4
- package/domain/models/links/index.d.ts +0 -1
- package/domain-invoice/builders/index.d.ts +0 -3
- package/domain-invoice/index.d.ts +0 -3
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs +0 -20
- package/fesm2022/xxmachina-common-_shared-auth-passports-anonymous.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs +0 -41
- package/fesm2022/xxmachina-common-_shared-auth-passports-firebase.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs +0 -34
- package/fesm2022/xxmachina-common-_shared-auth-passports-internal.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs +0 -49
- package/fesm2022/xxmachina-common-_shared-auth-passports-msal.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-auth.mjs +0 -25
- package/fesm2022/xxmachina-common-_shared-auth.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs +0 -99
- package/fesm2022/xxmachina-common-_shared-meta-redis.mjs.map +0 -1
- package/fesm2022/xxmachina-common-_shared-meta.mjs +0 -26
- package/fesm2022/xxmachina-common-_shared-meta.mjs.map +0 -1
- package/fesm2022/xxmachina-common-auth.mjs +0 -17
- package/fesm2022/xxmachina-common-auth.mjs.map +0 -1
- package/fesm2022/xxmachina-common-azure-auth.mjs +0 -160
- package/fesm2022/xxmachina-common-azure-auth.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-builder-screen-item.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-builder.mjs +0 -470
- package/fesm2022/xxmachina-common-domain-builder.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice-builders.mjs +0 -70
- package/fesm2022/xxmachina-common-domain-invoice-builders.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice-models.mjs +0 -427
- package/fesm2022/xxmachina-common-domain-invoice-models.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs +0 -39
- package/fesm2022/xxmachina-common-domain-invoice-resolvers.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-invoice.mjs +0 -8
- package/fesm2022/xxmachina-common-domain-invoice.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain-models.mjs +0 -805
- package/fesm2022/xxmachina-common-domain-models.mjs.map +0 -1
- package/fesm2022/xxmachina-common-domain.mjs +0 -7
- package/fesm2022/xxmachina-common-domain.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-converters-google.mjs +0 -36
- package/fesm2022/xxmachina-common-infra-converters-google.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs +0 -13
- package/fesm2022/xxmachina-common-infra-external-data-connect.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs +0 -44
- package/fesm2022/xxmachina-common-infra-external-quick-js.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external-resend.mjs +0 -10
- package/fesm2022/xxmachina-common-infra-external-resend.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-external.mjs +0 -35
- package/fesm2022/xxmachina-common-infra-external.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs +0 -34
- package/fesm2022/xxmachina-common-infra-query-firestore.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs +0 -20
- package/fesm2022/xxmachina-common-infra-query-hasura.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs +0 -18
- package/fesm2022/xxmachina-common-infra-repository-dataconnect.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs +0 -74
- package/fesm2022/xxmachina-common-infra-repository-firestore.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs +0 -41
- package/fesm2022/xxmachina-common-infra-repository-hasura.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs +0 -112
- package/fesm2022/xxmachina-common-infra-repository-notion.mjs.map +0 -1
- package/fesm2022/xxmachina-common-infra.mjs +0 -376
- package/fesm2022/xxmachina-common-infra.mjs.map +0 -1
- package/fesm2022/xxmachina-common-stores-firestore.mjs +0 -33
- package/fesm2022/xxmachina-common-stores-firestore.mjs.map +0 -1
- package/fesm2022/xxmachina-common-stores-hasura.mjs +0 -32
- package/fesm2022/xxmachina-common-stores-hasura.mjs.map +0 -1
- package/fesm2022/xxmachina-common-stores.mjs +0 -16
- package/fesm2022/xxmachina-common-stores.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-assistant.mjs +0 -67
- package/fesm2022/xxmachina-common-usecase-assistant.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-database.mjs +0 -95
- package/fesm2022/xxmachina-common-usecase-database.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-graphql.mjs +0 -51
- package/fesm2022/xxmachina-common-usecase-graphql.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-invoice.mjs +0 -67
- package/fesm2022/xxmachina-common-usecase-invoice.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-link.mjs +0 -26
- package/fesm2022/xxmachina-common-usecase-link.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-order.mjs +0 -29
- package/fesm2022/xxmachina-common-usecase-order.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-project.mjs +0 -35
- package/fesm2022/xxmachina-common-usecase-project.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase-spec.mjs +0 -45
- package/fesm2022/xxmachina-common-usecase-spec.mjs.map +0 -1
- package/fesm2022/xxmachina-common-usecase.mjs +0 -198
- package/fesm2022/xxmachina-common-usecase.mjs.map +0 -1
- package/fesm2022/xxmachina-common-utils-crypto.mjs.map +0 -1
- package/fesm2022/xxmachina-common-utils.mjs.map +0 -1
- package/fesm2022/xxmachina-common.mjs +0 -6
- package/fesm2022/xxmachina-common.mjs.map +0 -1
- package/index.d.ts +0 -1
- package/infra/external/resend/resend.service.d.ts +0 -2
- package/infra/query/firestore/index.d.ts +0 -2
- package/infra/query/hasura/index.d.ts +0 -1
- package/infra/query/hasura/resource/resource.query.d.ts +0 -6
- package/infra/repository/dataconnect/index.d.ts +0 -2
- package/infra/repository/firestore/firestore.repository.d.ts +0 -8
- package/infra/repository/firestore/index.d.ts +0 -3
- package/infra/repository/firestore/link/google/google.repository.d.ts +0 -10
- package/infra/repository/firestore/link/link.repository.d.ts +0 -8
- package/infra/repository/hasura/index.d.ts +0 -2
- package/infra/repository/notion/index.d.ts +0 -6
- package/infra/repository/redis/system/system.repository.d.ts +0 -6
- package/stores/firestore/firestore.store.d.ts +0 -12
- package/stores/firestore/index.d.ts +0 -1
- package/stores/hasura/hasura.store.d.ts +0 -12
- package/stores/hasura/index.d.ts +0 -1
- package/utils/crypto/index.d.ts +0 -1
- /package/{domain-invoice → domain/invoice}/builders/email/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/builders/message/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/builders/title/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/backoffice/contract.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/backoffice/index.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/backoffice/invoice-mail.d.ts +0 -0
- /package/{domain-invoice → domain/invoice}/models/index.d.ts +0 -0
- /package/{domain-invoice → domain}/resolvers/index.d.ts +0 -0
- /package/{infra → infrastructure}/converters/google/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/data-connect/data-connect.service.d.ts +0 -0
- /package/{infra → infrastructure}/external/data-connect/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/quick-js/index.d.ts +0 -0
- /package/{infra → infrastructure}/external/resend/index.d.ts +0 -0
- /package/{infra → infrastructure}/index.d.ts +0 -0
- /package/{infra → infrastructure}/query/firestore/query/index.d.ts +0 -0
- /package/{infra → infrastructure}/query/firestore/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/query/hasura/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/invoice/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/invoice/invoice.repository.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/order/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/dataconnect/order/order.repository.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/link/google/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/link/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/query/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/firestore/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/hasura/query/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/hasura/resource/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/contract/contract.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/contract/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/invoice/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/invoice/invoice.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/notion.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/order/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/order/order.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/partner/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/notion/partner/partner.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/operator/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/project/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/redis.config.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/spec/index.d.ts +0 -0
- /package/{infra → infrastructure}/repository/redis/system/index.d.ts +0 -0
- /package/utils/{crypto/crypto.d.ts → crypto.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/builders/email/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/builders/message/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessageBuilder = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const message_1 = require("@nx-ddd/common/utilities/message");
|
|
6
|
+
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
7
|
+
class MessageBuilder {
|
|
8
|
+
getInvoiceRange(invoice) {
|
|
9
|
+
var _a, _b;
|
|
10
|
+
const start = ((_a = invoice === null || invoice === void 0 ? void 0 : invoice.orders) !== null && _a !== void 0 ? _a : []).reduce((acc, order) => {
|
|
11
|
+
var _a;
|
|
12
|
+
const startDate = (_a = order === null || order === void 0 ? void 0 : order.startDate) !== null && _a !== void 0 ? _a : (0, dayjs_1.default)('2200-12-31');
|
|
13
|
+
return acc.isBefore(startDate) ? acc : startDate;
|
|
14
|
+
}, (0, dayjs_1.default)('2200-12-31'));
|
|
15
|
+
const end = ((_b = invoice === null || invoice === void 0 ? void 0 : invoice.orders) !== null && _b !== void 0 ? _b : []).reduce((acc, order) => {
|
|
16
|
+
var _a;
|
|
17
|
+
const endDate = (_a = order === null || order === void 0 ? void 0 : order.endDate) !== null && _a !== void 0 ? _a : (0, dayjs_1.default)('1970-01-01');
|
|
18
|
+
return acc.isAfter(endDate) ? acc : endDate;
|
|
19
|
+
}, (0, dayjs_1.default)('1970-01-01'));
|
|
20
|
+
return { start, end };
|
|
21
|
+
}
|
|
22
|
+
getInvoicePeriod(invoice) {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const { start, end } = this.getInvoiceRange(invoice);
|
|
25
|
+
return `${(_a = start === null || start === void 0 ? void 0 : start.format('YYYY年M月D日')) !== null && _a !== void 0 ? _a : ''}~${(_b = end === null || end === void 0 ? void 0 : end.format('YYYY年M月D日')) !== null && _b !== void 0 ? _b : ''}`;
|
|
26
|
+
}
|
|
27
|
+
build(invoice) {
|
|
28
|
+
var _a, _b, _c, _d, _e, _f;
|
|
29
|
+
return (0, message_1.message) `${(_a = invoice === null || invoice === void 0 ? void 0 : invoice.customer) === null || _a === void 0 ? void 0 : _a.name}
|
|
30
|
+
${(_c = (_b = invoice === null || invoice === void 0 ? void 0 : invoice.customer) === null || _b === void 0 ? void 0 : _b.billingContact) !== null && _c !== void 0 ? _c : 'ご担当者'}様
|
|
31
|
+
|
|
32
|
+
お世話になっております。
|
|
33
|
+
${'〇〇'}です。
|
|
34
|
+
|
|
35
|
+
${this.getInvoicePeriod(invoice)}の請求書をご用意ができましたのでお送りさせていただきます。
|
|
36
|
+
ご確認のほど、よろしくお願いいたします。
|
|
37
|
+
|
|
38
|
+
${((_d = invoice === null || invoice === void 0 ? void 0 : invoice.vendor) === null || _d === void 0 ? void 0 : _d.type) !== '個人事業主' ? (_e = invoice === null || invoice === void 0 ? void 0 : invoice.vendor) === null || _e === void 0 ? void 0 : _e.name : ''}
|
|
39
|
+
${(_f = invoice === null || invoice === void 0 ? void 0 : invoice.vendor) === null || _f === void 0 ? void 0 : _f.contact}`;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.MessageBuilder = MessageBuilder;
|
|
43
|
+
//# sourceMappingURL=message.builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.builder.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/builders/message/message.builder.ts"],"names":[],"mappings":";;;;AACA,8DAA2D;AAC3D,0DAA0B;AAE1B,MAAa,cAAc;IACjB,eAAe,CAAC,OAAgB;;QACtC,MAAM,KAAK,GAAG,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;;YAC1D,MAAM,SAAS,GAAG,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAAS,mCAAI,IAAA,eAAK,EAAC,YAAY,CAAC,CAAC;YAC1D,OAAO,GAAG,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;QACnD,CAAC,EAAE,IAAA,eAAK,EAAC,YAAY,CAAC,CAAC,CAAC;QACxB,MAAM,GAAG,GAAG,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,E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C7B,CAAC;CACF;AA/BD,wCA+BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/builders/title/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TitleBuilder = void 0;
|
|
4
|
+
class TitleBuilder {
|
|
5
|
+
build(invoice) {
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
return `[${(_b = (_a = invoice === null || invoice === void 0 ? void 0 : invoice.customer) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : '{{invoice.vendor.name}}'}様] invoice_${(_c = invoice === null || invoice === void 0 ? void 0 : invoice.dueDate) === null || _c === void 0 ? void 0 : _c.toISOString()}`;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.TitleBuilder = TitleBuilder;
|
|
11
|
+
//# sourceMappingURL=title.builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title.builder.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/builders/title/title.builder.ts"],"names":[],"mappings":";;;AAEA,MAAa,YAAY;IACvB,KAAK,CAAC,OAAgB;;QACpB,OAAO,IAAI,MAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,0CAAE,IAAI,mCAAI,yBAAyB,cAAc,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,WAAW,EAAE,EAAE,CAAC;IACjH,CAAC;CACF;AAJD,oCAIC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var Contract_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Contract = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const models_1 = require("@nx-ddd/common/domain/models");
|
|
7
|
+
const decorators_1 = require("@nx-ddd/notion/decorators");
|
|
8
|
+
const decorators_2 = require("@xxmachina/common/_shared/meta/decorators");
|
|
9
|
+
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
10
|
+
let Contract = Contract_1 = class Contract extends models_1.Entity {
|
|
11
|
+
static from(params) {
|
|
12
|
+
const instance = Object.assign(new Contract_1(), Object.assign({}, params));
|
|
13
|
+
return instance;
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
exports.Contract = Contract;
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, decorators_2.Field)(() => decorators_2.ID, { nullable: true }),
|
|
19
|
+
models_1.Domain.Lang('ID'),
|
|
20
|
+
tslib_1.__metadata("design:type", String)
|
|
21
|
+
], Contract.prototype, "id", void 0);
|
|
22
|
+
tslib_1.__decorate([
|
|
23
|
+
(0, decorators_2.Field)(() => Number, { nullable: true }),
|
|
24
|
+
models_1.Domain.Lang('番号'),
|
|
25
|
+
decorators_1.Notion.UniqueID('no'),
|
|
26
|
+
tslib_1.__metadata("design:type", Number)
|
|
27
|
+
], Contract.prototype, "no", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, decorators_2.Field)(() => String, { nullable: false }),
|
|
30
|
+
decorators_1.Notion.Title('件名'),
|
|
31
|
+
models_1.Domain.Lang('件名'),
|
|
32
|
+
tslib_1.__metadata("design:type", String)
|
|
33
|
+
], Contract.prototype, "title", void 0);
|
|
34
|
+
tslib_1.__decorate([
|
|
35
|
+
(0, decorators_2.Field)(() => Date, { nullable: true }),
|
|
36
|
+
decorators_1.Notion.Date('発行日'),
|
|
37
|
+
models_1.Domain.Lang('発行日'),
|
|
38
|
+
tslib_1.__metadata("design:type", dayjs_1.default.Dayjs)
|
|
39
|
+
], Contract.prototype, "issueDate", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, decorators_2.Field)(() => [String], { nullable: true }),
|
|
42
|
+
decorators_1.Notion.Relation('注文一覧', { multi: true }),
|
|
43
|
+
models_1.Domain.Lang('注文一覧'),
|
|
44
|
+
tslib_1.__metadata("design:type", Array)
|
|
45
|
+
], Contract.prototype, "orderIds", void 0);
|
|
46
|
+
exports.Contract = Contract = Contract_1 = tslib_1.__decorate([
|
|
47
|
+
(0, decorators_2.ObjectType)(),
|
|
48
|
+
models_1.Domain.Entity({ name: '契約' })
|
|
49
|
+
], Contract);
|
|
50
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/models/backoffice/contract.ts"],"names":[],"mappings":";;;;;AAAA,yDAA8D;AAC9D,0DAAmD;AACnD,0EAAkF;AAClF,0DAA0B;AAKnB,IAAM,QAAQ,gBAAd,MAAM,QAAS,SAAQ,eAAM;IAyBlC,MAAM,CAAC,IAAI,CAAC,MAAgB;QAC1B,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,UAAQ,EAAE,oBAAM,MAAM,EAAE,CAAC;QAC5D,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AA7BY,4BAAQ;AAGnB;IAFC,IAAA,kBAAK,EAAC,GAAG,EAAE,CAAC,eAAE,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IACjC,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;oCACN;AAKZ;IAHC,IAAA,kBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IACrC,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC;IACjB,mBAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;;oCACX;AAKX;IAHC,IAAA,kBAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAC,CAAC;IACtC,mBAAM,CAAC,KAAK,CAAC,IAAI,CAAC;IAClB,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC;;uCACJ;AAKd;IAHC,IAAA,kBAAK,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IACnC,mBAAM,CAAC,IAAI,CAAC,KAAK,CAAC;IAClB,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC;sCACR,eAAK,CAAC,KAAK;2CAAC;AAKvB;IAHC,IAAA,kBAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IACvC,mBAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC;IACtC,eAAM,CAAC,IAAI,CAAC,MAAM,CAAC;;0CACD;mBAvBR,QAAQ;IAFpB,IAAA,uBAAU,GAAE;IACZ,eAAM,CAAC,MAAM,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;GACf,QAAQ,CA6BpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./contract"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./order"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./partner"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./invoice-mail"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./invoice"), exports);
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/models/backoffice/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B;AAC3B,kDAAwB;AACxB,oDAA0B;AAC1B,yDAA+B;AAC/B,oDAA0B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice-mail.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/models/backoffice/invoice-mail.ts"],"names":[],"mappings":";;;AAEA,MAAa,WAAW;CAMvB;AAND,kCAMC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var Invoice_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Invoice = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const decorators_1 = require("@xxmachina/common/_shared/meta/decorators");
|
|
7
|
+
const models_1 = require("@nx-ddd/common/domain/models");
|
|
8
|
+
const notion = tslib_1.__importStar(require("@nx-ddd/notion/decorators"));
|
|
9
|
+
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
10
|
+
const order_1 = require("./order");
|
|
11
|
+
const partner_1 = require("./partner");
|
|
12
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
let Invoice = Invoice_1 = class Invoice extends models_1.Entity {
|
|
15
|
+
static from(data) {
|
|
16
|
+
return Object.assign(new Invoice_1(), data);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.Invoice = Invoice;
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, decorators_1.Field)(() => decorators_1.ID, { nullable: true }),
|
|
22
|
+
models_1.Domain.Lang('番号'),
|
|
23
|
+
tslib_1.__metadata("design:type", String)
|
|
24
|
+
], Invoice.prototype, "id", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
27
|
+
notion.UniqueID('no'),
|
|
28
|
+
models_1.Domain.Lang('no'),
|
|
29
|
+
tslib_1.__metadata("design:type", Number)
|
|
30
|
+
], Invoice.prototype, "no", void 0);
|
|
31
|
+
tslib_1.__decorate([
|
|
32
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
33
|
+
notion.Title('タイトル'),
|
|
34
|
+
models_1.Domain.Lang('タイトル'),
|
|
35
|
+
tslib_1.__metadata("design:type", String)
|
|
36
|
+
], Invoice.prototype, "title", void 0);
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
39
|
+
notion.RichText('件名'),
|
|
40
|
+
models_1.Domain.Lang('件名'),
|
|
41
|
+
tslib_1.__metadata("design:type", String)
|
|
42
|
+
], Invoice.prototype, "subject", void 0);
|
|
43
|
+
tslib_1.__decorate([
|
|
44
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
45
|
+
notion.Relation('請求先'),
|
|
46
|
+
models_1.Domain.Lang('請求先'),
|
|
47
|
+
tslib_1.__metadata("design:type", String)
|
|
48
|
+
], Invoice.prototype, "customerId", void 0);
|
|
49
|
+
tslib_1.__decorate([
|
|
50
|
+
(0, class_transformer_1.Type)(() => partner_1.Partner),
|
|
51
|
+
tslib_1.__metadata("design:type", partner_1.Partner)
|
|
52
|
+
], Invoice.prototype, "customer", void 0);
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
55
|
+
notion.Relation('受託先'),
|
|
56
|
+
models_1.Domain.Lang('受託先'),
|
|
57
|
+
tslib_1.__metadata("design:type", String)
|
|
58
|
+
], Invoice.prototype, "vendorId", void 0);
|
|
59
|
+
tslib_1.__decorate([
|
|
60
|
+
(0, class_transformer_1.Type)(() => partner_1.Partner),
|
|
61
|
+
tslib_1.__metadata("design:type", partner_1.Partner)
|
|
62
|
+
], Invoice.prototype, "vendor", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
65
|
+
notion.Rollup('請求金額(税込)', { multi: false }),
|
|
66
|
+
models_1.Domain.Lang('請求金額(税込)'),
|
|
67
|
+
tslib_1.__metadata("design:type", Number)
|
|
68
|
+
], Invoice.prototype, "amount", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, decorators_1.Field)(() => Date, { nullable: true }),
|
|
71
|
+
notion.Date('支払期日'),
|
|
72
|
+
models_1.Domain.Lang('支払期日'),
|
|
73
|
+
(0, models_1.TransformToDayjs)(),
|
|
74
|
+
tslib_1.__metadata("design:type", dayjs_1.default.Dayjs)
|
|
75
|
+
], Invoice.prototype, "dueDate", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, decorators_1.Field)(() => [String], { nullable: true }),
|
|
78
|
+
notion.Relation('請求内容', { multi: true }),
|
|
79
|
+
models_1.Domain.Lang('請求内容'),
|
|
80
|
+
tslib_1.__metadata("design:type", Array)
|
|
81
|
+
], Invoice.prototype, "orderIds", void 0);
|
|
82
|
+
tslib_1.__decorate([
|
|
83
|
+
(0, class_validator_1.ValidateNested)(),
|
|
84
|
+
(0, class_transformer_1.Type)(() => order_1.Order),
|
|
85
|
+
tslib_1.__metadata("design:type", Array)
|
|
86
|
+
], Invoice.prototype, "orders", void 0);
|
|
87
|
+
exports.Invoice = Invoice = Invoice_1 = tslib_1.__decorate([
|
|
88
|
+
(0, decorators_1.ObjectType)(),
|
|
89
|
+
models_1.Domain.Entity({ name: '請求' })
|
|
90
|
+
], Invoice);
|
|
91
|
+
//# sourceMappingURL=invoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"invoice.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/models/backoffice/invoice.ts"],"names":[],"mappings":";;;;;AAAA,0EAAkF;AAClF,yDAAgF;AAChF,0EAAoD;AACpD,0DAA0B;AAC1B,mCAAgC;AAChC,uCAAoC;AACpC,yDAAyC;AACzC,qDAAiD;AAI1C,IAAM,OAAO,eAAb,MA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object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Order = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const models_1 = require("@nx-ddd/common/domain/models");
|
|
7
|
+
const notion_1 = require("@nx-ddd/notion");
|
|
8
|
+
const decorators_1 = require("@xxmachina/common/_shared/meta/decorators");
|
|
9
|
+
const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
|
|
10
|
+
const partner_1 = require("./partner");
|
|
11
|
+
const class_transformer_1 = require("class-transformer");
|
|
12
|
+
let Order = Order_1 = class Order extends models_1.Entity {
|
|
13
|
+
static from(params) {
|
|
14
|
+
const instance = Object.assign(new Order_1(), Object.assign({}, params));
|
|
15
|
+
return instance;
|
|
16
|
+
}
|
|
17
|
+
static get EMPTY() {
|
|
18
|
+
return Order_1.from({
|
|
19
|
+
id: null,
|
|
20
|
+
no: null,
|
|
21
|
+
title: null,
|
|
22
|
+
eclId: null,
|
|
23
|
+
customerId: null,
|
|
24
|
+
vendorId: null,
|
|
25
|
+
statusIn: null,
|
|
26
|
+
statusOut: null,
|
|
27
|
+
contractId: null,
|
|
28
|
+
invoiceId: null,
|
|
29
|
+
startDate: null,
|
|
30
|
+
endDate: null,
|
|
31
|
+
unitPrice: null,
|
|
32
|
+
unit: null,
|
|
33
|
+
quantity: null,
|
|
34
|
+
amount: null,
|
|
35
|
+
amountInput: null,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
exports.Order = Order;
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, decorators_1.Field)(() => decorators_1.ID, { nullable: true }),
|
|
42
|
+
models_1.Domain.Lang('ID'),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], Order.prototype, "id", void 0);
|
|
45
|
+
tslib_1.__decorate([
|
|
46
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
47
|
+
notion_1.Notion.UniqueID('no'),
|
|
48
|
+
models_1.Domain.Lang('no'),
|
|
49
|
+
tslib_1.__metadata("design:type", Number)
|
|
50
|
+
], Order.prototype, "no", void 0);
|
|
51
|
+
tslib_1.__decorate([
|
|
52
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
53
|
+
notion_1.Notion.Title('件名'),
|
|
54
|
+
models_1.Domain.Lang('件名'),
|
|
55
|
+
tslib_1.__metadata("design:type", String)
|
|
56
|
+
], Order.prototype, "title", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
59
|
+
notion_1.Notion.Relation('ECL', { multi: false }),
|
|
60
|
+
models_1.Domain.Lang('ECL'),
|
|
61
|
+
tslib_1.__metadata("design:type", String)
|
|
62
|
+
], Order.prototype, "eclId", void 0);
|
|
63
|
+
tslib_1.__decorate([
|
|
64
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
65
|
+
notion_1.Notion.Relation('発注者', { multi: false }),
|
|
66
|
+
models_1.Domain.Lang('発注者ID'),
|
|
67
|
+
tslib_1.__metadata("design:type", String)
|
|
68
|
+
], Order.prototype, "customerId", void 0);
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, class_transformer_1.Type)(() => partner_1.Partner),
|
|
71
|
+
models_1.Domain.Lang('発注者'),
|
|
72
|
+
tslib_1.__metadata("design:type", partner_1.Partner)
|
|
73
|
+
], Order.prototype, "customer", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
76
|
+
notion_1.Notion.Relation('受注者', { multi: false }),
|
|
77
|
+
models_1.Domain.Lang('受注者ID'),
|
|
78
|
+
tslib_1.__metadata("design:type", String)
|
|
79
|
+
], Order.prototype, "vendorId", void 0);
|
|
80
|
+
tslib_1.__decorate([
|
|
81
|
+
(0, class_transformer_1.Type)(() => partner_1.Partner),
|
|
82
|
+
models_1.Domain.Lang('受注者'),
|
|
83
|
+
tslib_1.__metadata("design:type", partner_1.Partner)
|
|
84
|
+
], Order.prototype, "vendor", void 0);
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
87
|
+
notion_1.Notion.Relation('契約', { multi: false }),
|
|
88
|
+
models_1.Domain.Lang('契約ID'),
|
|
89
|
+
tslib_1.__metadata("design:type", String)
|
|
90
|
+
], Order.prototype, "contractId", void 0);
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
93
|
+
notion_1.Notion.Formula('請求'),
|
|
94
|
+
models_1.Domain.Lang('請求ID'),
|
|
95
|
+
tslib_1.__metadata("design:type", String)
|
|
96
|
+
], Order.prototype, "invoiceId", void 0);
|
|
97
|
+
tslib_1.__decorate([
|
|
98
|
+
(0, decorators_1.Field)(() => Date, { nullable: true }),
|
|
99
|
+
(0, models_1.TransformToDayjs)(),
|
|
100
|
+
notion_1.Notion.Date('開始日'),
|
|
101
|
+
models_1.Domain.Lang('開始日'),
|
|
102
|
+
tslib_1.__metadata("design:type", dayjs_1.default.Dayjs)
|
|
103
|
+
], Order.prototype, "startDate", void 0);
|
|
104
|
+
tslib_1.__decorate([
|
|
105
|
+
(0, decorators_1.Field)(() => Date, { nullable: true }),
|
|
106
|
+
(0, models_1.TransformToDayjs)(),
|
|
107
|
+
notion_1.Notion.Date('終了日'),
|
|
108
|
+
models_1.Domain.Lang('終了日'),
|
|
109
|
+
tslib_1.__metadata("design:type", dayjs_1.default.Dayjs)
|
|
110
|
+
], Order.prototype, "endDate", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
113
|
+
notion_1.Notion.Number('単価'),
|
|
114
|
+
models_1.Domain.Lang('単価'),
|
|
115
|
+
tslib_1.__metadata("design:type", Number)
|
|
116
|
+
], Order.prototype, "unitPrice", void 0);
|
|
117
|
+
tslib_1.__decorate([
|
|
118
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
119
|
+
notion_1.Notion.Select('単位'),
|
|
120
|
+
models_1.Domain.Lang('単位'),
|
|
121
|
+
tslib_1.__metadata("design:type", String)
|
|
122
|
+
], Order.prototype, "unit", void 0);
|
|
123
|
+
tslib_1.__decorate([
|
|
124
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
125
|
+
notion_1.Notion.Number('数量'),
|
|
126
|
+
models_1.Domain.Lang('数量'),
|
|
127
|
+
tslib_1.__metadata("design:type", Number)
|
|
128
|
+
], Order.prototype, "quantity", void 0);
|
|
129
|
+
tslib_1.__decorate([
|
|
130
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
131
|
+
notion_1.Notion.Number('合計金額(入力)'),
|
|
132
|
+
models_1.Domain.Lang('合計金額(入力)'),
|
|
133
|
+
tslib_1.__metadata("design:type", Number)
|
|
134
|
+
], Order.prototype, "amountInput", void 0);
|
|
135
|
+
tslib_1.__decorate([
|
|
136
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
137
|
+
notion_1.Notion.Formula('合計金額'),
|
|
138
|
+
models_1.Domain.Lang('合計金額'),
|
|
139
|
+
tslib_1.__metadata("design:type", Number)
|
|
140
|
+
], Order.prototype, "amount", void 0);
|
|
141
|
+
tslib_1.__decorate([
|
|
142
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
143
|
+
notion_1.Notion.Status('受注ステータス'),
|
|
144
|
+
models_1.Domain.Lang('受注ステータス'),
|
|
145
|
+
tslib_1.__metadata("design:type", String)
|
|
146
|
+
], Order.prototype, "statusIn", void 0);
|
|
147
|
+
tslib_1.__decorate([
|
|
148
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
149
|
+
notion_1.Notion.Status('発注ステータス'),
|
|
150
|
+
models_1.Domain.Lang('発注ステータス'),
|
|
151
|
+
tslib_1.__metadata("design:type", String)
|
|
152
|
+
], Order.prototype, "statusOut", void 0);
|
|
153
|
+
exports.Order = Order = Order_1 = tslib_1.__decorate([
|
|
154
|
+
(0, decorators_1.ObjectType)(),
|
|
155
|
+
models_1.Domain.Entity({ name: '受注' })
|
|
156
|
+
], Order);
|
|
157
|
+
//# sourceMappingURL=order.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/models/backoffice/order.ts"],"names":[],"mappings":";;;;;AAAA,yDAAgF;AAChF,2CAAwC;AACxC,0EAAkF;AAClF,0DAA0B;AAC1B,uCAAoC;AACpC,yDAAyC;AAKlC,IAAM,KAAK,aAAX,MAAM,KAAM,SAAQ,eAAM;IA+F/B,MAAM,CAAC,IAAI,CAAC,MAAa;QACvB,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,OAAK,EAAE,oBAAM,MAAM,EAAE,CAAC;QACzD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,MAAM,KAAK,KAAK;QACd,OAAO,OAAK,CAAC,IAAI,CAAC;YAChB,EAAE,EAAE,IAAI;YACR,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,UAAU,EAAE,IAAI;YAChB,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,IAAI;YACd,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,IAAI;YAChB,SAAS,EAAE,IAAI;YACf,SAAS,EAAE,IAAI;YACf,OAAO,EAAE,IAAI;YACb,SAAS,EAAE,IAAI;YACf,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI;YACZ,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAzHY,sBAAK;AAGhB;IAFC,IAAA,kBAAK,EAAC,GAAG,EAAE,CAAC,eAAE,EAAE,EAAC,QAAQ,EAAE,IAAI,EAAC,CAAC;IACjC,eAAM,CAAC,IAAI,CAAC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AK,CAyHjB"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var Partner_1;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Partner = void 0;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
const models_1 = require("@nx-ddd/common/domain/models");
|
|
7
|
+
const notion = tslib_1.__importStar(require("@nx-ddd/notion/decorators"));
|
|
8
|
+
const decorators_1 = require("@xxmachina/common/_shared/meta/decorators");
|
|
9
|
+
let Partner = Partner_1 = class Partner extends models_1.Entity {
|
|
10
|
+
static from(params) {
|
|
11
|
+
return Object.assign(new Partner_1(), Object.assign({}, params));
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
exports.Partner = Partner;
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, decorators_1.Field)(() => decorators_1.ID, { nullable: true }),
|
|
17
|
+
models_1.Domain.Lang('ID'),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], Partner.prototype, "id", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, decorators_1.Field)(() => Number, { nullable: true }),
|
|
22
|
+
notion.UniqueID('no'),
|
|
23
|
+
models_1.Domain.Lang('番号'),
|
|
24
|
+
tslib_1.__metadata("design:type", Number)
|
|
25
|
+
], Partner.prototype, "no", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
28
|
+
notion.Title('名前'),
|
|
29
|
+
models_1.Domain.Lang('名前'),
|
|
30
|
+
tslib_1.__metadata("design:type", String)
|
|
31
|
+
], Partner.prototype, "name", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
34
|
+
notion.Select('種別'),
|
|
35
|
+
models_1.Domain.Lang('種別'),
|
|
36
|
+
tslib_1.__metadata("design:type", String)
|
|
37
|
+
], Partner.prototype, "type", void 0);
|
|
38
|
+
tslib_1.__decorate([
|
|
39
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
40
|
+
notion.RichText('住所'),
|
|
41
|
+
models_1.Domain.Lang('住所'),
|
|
42
|
+
tslib_1.__metadata("design:type", String)
|
|
43
|
+
], Partner.prototype, "address", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
46
|
+
notion.RichText('郵便番号'),
|
|
47
|
+
models_1.Domain.Lang('郵便番号'),
|
|
48
|
+
tslib_1.__metadata("design:type", String)
|
|
49
|
+
], Partner.prototype, "postalCode", void 0);
|
|
50
|
+
tslib_1.__decorate([
|
|
51
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
52
|
+
notion.Email('メールアドレス'),
|
|
53
|
+
models_1.Domain.Lang('メールアドレス'),
|
|
54
|
+
tslib_1.__metadata("design:type", String)
|
|
55
|
+
], Partner.prototype, "email", void 0);
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
58
|
+
notion.Email('請求先メールアドレス'),
|
|
59
|
+
models_1.Domain.Lang('請求先メールアドレス'),
|
|
60
|
+
tslib_1.__metadata("design:type", String)
|
|
61
|
+
], Partner.prototype, "billingEmail", void 0);
|
|
62
|
+
tslib_1.__decorate([
|
|
63
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
64
|
+
notion.RichText('請求先担当者名'),
|
|
65
|
+
models_1.Domain.Lang('請求先担当者名'),
|
|
66
|
+
tslib_1.__metadata("design:type", String)
|
|
67
|
+
], Partner.prototype, "billingContact", void 0);
|
|
68
|
+
tslib_1.__decorate([
|
|
69
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
70
|
+
notion.PhoneNumber('電話番号'),
|
|
71
|
+
models_1.Domain.Lang('電話番号'),
|
|
72
|
+
tslib_1.__metadata("design:type", String)
|
|
73
|
+
], Partner.prototype, "phoneNumber", void 0);
|
|
74
|
+
tslib_1.__decorate([
|
|
75
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
76
|
+
notion.RichText('担当者'),
|
|
77
|
+
models_1.Domain.Lang('担当者'),
|
|
78
|
+
tslib_1.__metadata("design:type", String)
|
|
79
|
+
], Partner.prototype, "contact", void 0);
|
|
80
|
+
tslib_1.__decorate([
|
|
81
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
82
|
+
notion.Formula('敬称'),
|
|
83
|
+
models_1.Domain.Lang('敬称'),
|
|
84
|
+
tslib_1.__metadata("design:type", String)
|
|
85
|
+
], Partner.prototype, "suffix", void 0);
|
|
86
|
+
tslib_1.__decorate([
|
|
87
|
+
(0, decorators_1.Field)(() => String, { nullable: true }),
|
|
88
|
+
notion.Formula('口座'),
|
|
89
|
+
models_1.Domain.Lang('口座'),
|
|
90
|
+
tslib_1.__metadata("design:type", String)
|
|
91
|
+
], Partner.prototype, "bankAccount", void 0);
|
|
92
|
+
exports.Partner = Partner = Partner_1 = tslib_1.__decorate([
|
|
93
|
+
(0, decorators_1.ObjectType)(),
|
|
94
|
+
models_1.Domain.Entity({ name: '取引先' })
|
|
95
|
+
], Partner);
|
|
96
|
+
//# sourceMappingURL=partner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"partner.js","sourceRoot":"","sources":["../../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/models/backoffice/partner.ts"],"names":[],"mappings":";;;;;AAAA,yDAA8D;AAC9D,0EAAoD;AACpD,0EAAkF;AAI3E,IAAM,OAAO,eAAb,MAAM,OAAQ,SAAQ,eAAM;IAiEjC,MAAM,CAAC,IAAI,CAAC,MAAe;QACzB,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,SAAO,EAAE,oBAAM,MAAM,EAAE,CAAC;IACnD,CAAC;CACF,CAAA;AApEY,0BAAO;AAGlB;IAFC,IAAA,kBAAK,EAAC,GAAG,EAA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MAAM,CAAC,EAAC,IAAI,EAAE,KAAK,EAAC,CAAC;GAChB,OAAO,CAoEnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/domain/invoice/models/index.ts"],"names":[],"mappings":";;;AAAA,uDAA6B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Assistant = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const class_validator_1 = require("class-validator");
|
|
6
|
+
const class_validator_extended_1 = require("class-validator-extended");
|
|
7
|
+
class Assistant {
|
|
8
|
+
}
|
|
9
|
+
exports.Assistant = Assistant;
|
|
10
|
+
tslib_1.__decorate([
|
|
11
|
+
(0, class_validator_1.IsString)(),
|
|
12
|
+
(0, class_validator_1.IsOptional)(),
|
|
13
|
+
tslib_1.__metadata("design:type", String)
|
|
14
|
+
], Assistant.prototype, "model", void 0);
|
|
15
|
+
tslib_1.__decorate([
|
|
16
|
+
(0, class_validator_1.IsString)(),
|
|
17
|
+
(0, class_validator_1.IsOptional)(),
|
|
18
|
+
tslib_1.__metadata("design:type", String)
|
|
19
|
+
], Assistant.prototype, "name", void 0);
|
|
20
|
+
tslib_1.__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_extended_1.Nullable)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
tslib_1.__metadata("design:type", String)
|
|
25
|
+
], Assistant.prototype, "description", void 0);
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
tslib_1.__metadata("design:type", String)
|
|
30
|
+
], Assistant.prototype, "instructions", void 0);
|
|
31
|
+
//# sourceMappingURL=assistant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant.js","sourceRoot":"","sources":["../../../../../../../packages/@xxmachina/common/src/lib/domain/models/agent/assistant.ts"],"names":[],"mappings":";;;;AAAA,qDAAuD;AACvD,uEAAoD;AAEpD,MAAa,SAAS;CAQrB;AARD,8BAQC;AAN2B;IAAzB,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;wCAAgB;AACf;IAAzB,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;uCAAe;AACF;IAArC,IAAA,0BAAQ,GAAE;IAAE,IAAA,mCAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;8CAA4B;AACvC;IAAzB,IAAA,0BAAQ,GAAE;IAAE,IAAA,4BAAU,GAAE;;+CAAuB"}
|