@mframework/core 0.0.1
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 +0 -0
- package/bin/create-adapter +18 -0
- package/bin/create-adapter.cjs +18 -0
- package/createNormalizer.ts +7 -0
- package/dist/adapters/auth.d.ts +9 -0
- package/dist/adapters/auth.js +1 -0
- package/dist/adapters/cart.d.ts +22 -0
- package/dist/adapters/cart.js +1 -0
- package/dist/adapters/catalog.d.ts +17 -0
- package/dist/adapters/catalog.js +1 -0
- package/dist/adapters/common.d.ts +9 -0
- package/dist/adapters/common.js +1 -0
- package/dist/adapters/search.d.ts +21 -0
- package/dist/adapters/search.js +1 -0
- package/dist/index.d.ts +70 -0
- package/dist/index.js +72 -0
- package/dist/plugins/defineAdapter.d.ts +6 -0
- package/dist/plugins/defineAdapter.js +3 -0
- package/dist/plugins/defineModule.d.ts +2 -0
- package/dist/plugins/defineModule.js +3 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.js +3 -0
- package/dist/plugins/registry.d.ts +10 -0
- package/dist/plugins/registry.js +27 -0
- package/dist/runtime/app.d.ts +2 -0
- package/dist/runtime/app.js +20 -0
- package/dist/runtime/config.d.ts +7 -0
- package/dist/runtime/config.js +9 -0
- package/dist/runtime/context.d.ts +9 -0
- package/dist/runtime/context.js +11 -0
- package/dist/runtime/hooks.d.ts +5 -0
- package/dist/runtime/hooks.js +18 -0
- package/dist/runtime/lifecycle.d.ts +4 -0
- package/dist/runtime/lifecycle.js +5 -0
- package/dist/src/adapters/auth.d.ts +9 -0
- package/dist/src/adapters/auth.js +1 -0
- package/dist/src/adapters/cart.d.ts +22 -0
- package/dist/src/adapters/cart.js +1 -0
- package/dist/src/adapters/catalog.d.ts +17 -0
- package/dist/src/adapters/catalog.js +1 -0
- package/dist/src/adapters/common.d.ts +9 -0
- package/dist/src/adapters/common.js +1 -0
- package/dist/src/adapters/lists.d.ts +17 -0
- package/dist/src/adapters/lists.js +1 -0
- package/dist/src/adapters/search.d.ts +21 -0
- package/dist/src/adapters/search.js +1 -0
- package/dist/src/plugins/defineAdapter.d.ts +2 -0
- package/dist/src/plugins/defineAdapter.js +3 -0
- package/dist/src/plugins/defineModule.d.ts +2 -0
- package/dist/src/plugins/defineModule.js +3 -0
- package/dist/src/plugins/index.d.ts +1 -0
- package/dist/src/plugins/index.js +3 -0
- package/dist/src/plugins/registry.d.ts +14 -0
- package/dist/src/plugins/registry.js +46 -0
- package/dist/src/runtime/app.d.ts +6 -0
- package/dist/src/runtime/app.js +20 -0
- package/dist/src/runtime/config.d.ts +18 -0
- package/dist/src/runtime/config.js +20 -0
- package/dist/src/runtime/context.d.ts +9 -0
- package/dist/src/runtime/context.js +11 -0
- package/dist/src/runtime/hooks.d.ts +6 -0
- package/dist/src/runtime/hooks.js +21 -0
- package/dist/src/runtime/lifecycle.d.ts +4 -0
- package/dist/src/runtime/lifecycle.js +5 -0
- package/dist/src/types/adapters.d.ts +14 -0
- package/dist/src/types/adapters.js +1 -0
- package/dist/src/types/app.d.ts +13 -0
- package/dist/src/types/app.js +1 -0
- package/dist/src/types/auth/adapter.d.ts +6 -0
- package/dist/src/types/auth/adapter.js +1 -0
- package/dist/src/types/auth/inputs.d.ts +22 -0
- package/dist/src/types/auth/inputs.js +21 -0
- package/dist/src/types/auth/providers.d.ts +6 -0
- package/dist/src/types/auth/providers.js +1 -0
- package/dist/src/types/auth/session.d.ts +7 -0
- package/dist/src/types/auth/session.js +1 -0
- package/dist/src/types/auth/user.d.ts +9 -0
- package/dist/src/types/auth/user.js +1 -0
- package/dist/src/types/commerce/adapter.d.ts +18 -0
- package/dist/src/types/commerce/adapter.js +1 -0
- package/dist/src/types/commerce/cart.d.ts +14 -0
- package/dist/src/types/commerce/cart.js +1 -0
- package/dist/src/types/commerce/category.d.ts +7 -0
- package/dist/src/types/commerce/category.js +1 -0
- package/dist/src/types/commerce/order.d.ts +12 -0
- package/dist/src/types/commerce/order.js +1 -0
- package/dist/src/types/commerce/product.d.ts +28 -0
- package/dist/src/types/commerce/product.js +1 -0
- package/dist/src/types/compat/legacy.d.ts +21 -0
- package/dist/src/types/compat/legacy.js +1 -0
- package/dist/src/types/config.d.ts +8 -0
- package/dist/src/types/config.js +1 -0
- package/dist/src/types/core/common.d.ts +2 -0
- package/dist/src/types/core/common.js +1 -0
- package/dist/src/types/core/error.d.ts +5 -0
- package/dist/src/types/core/error.js +1 -0
- package/dist/src/types/core/id.d.ts +1 -0
- package/dist/src/types/core/id.js +1 -0
- package/dist/src/types/core/pagination.d.ts +6 -0
- package/dist/src/types/core/pagination.js +1 -0
- package/dist/src/types/core/result.d.ts +9 -0
- package/dist/src/types/core/result.js +1 -0
- package/dist/src/types/core/utility.d.ts +5 -0
- package/dist/src/types/core/utility.js +1 -0
- package/dist/src/types/events.d.ts +20 -0
- package/dist/src/types/events.js +22 -0
- package/dist/src/types/index.d.ts +38 -0
- package/dist/src/types/index.js +35 -0
- package/dist/src/types/module.d.ts +15 -0
- package/dist/src/types/module.js +1 -0
- package/dist/src/types/sdk/adapter.d.ts +5 -0
- package/dist/src/types/sdk/adapter.js +1 -0
- package/dist/src/types/sdk/endpoint.d.ts +7 -0
- package/dist/src/types/sdk/endpoint.js +1 -0
- package/dist/src/types/sdk/errors.d.ts +6 -0
- package/dist/src/types/sdk/errors.js +1 -0
- package/dist/src/types/sdk/request.d.ts +6 -0
- package/dist/src/types/sdk/request.js +1 -0
- package/dist/src/types/sdk/response.d.ts +5 -0
- package/dist/src/types/sdk/response.js +1 -0
- package/dist/src/types/search/adapter.d.ts +6 -0
- package/dist/src/types/search/adapter.js +1 -0
- package/dist/src/types/search/facet.d.ts +8 -0
- package/dist/src/types/search/facet.js +1 -0
- package/dist/src/types/search/opensearch.d.ts +21 -0
- package/dist/src/types/search/opensearch.js +1 -0
- package/dist/src/types/search/query.d.ts +17 -0
- package/dist/src/types/search/query.js +1 -0
- package/dist/src/types/search/result.d.ts +15 -0
- package/dist/src/types/search/result.js +1 -0
- package/dist/src/types/ui/api/global-search.d.ts +8 -0
- package/dist/src/types/ui/api/global-search.js +1 -0
- package/dist/src/types/ui/blocks/block-button-group.d.ts +6 -0
- package/dist/src/types/ui/blocks/block-button-group.js +1 -0
- package/dist/src/types/ui/blocks/block-button.d.ts +13 -0
- package/dist/src/types/ui/blocks/block-button.js +1 -0
- package/dist/src/types/ui/blocks/block-column.d.ts +18 -0
- package/dist/src/types/ui/blocks/block-column.js +1 -0
- package/dist/src/types/ui/blocks/block-cta.d.ts +11 -0
- package/dist/src/types/ui/blocks/block-cta.js +1 -0
- package/dist/src/types/ui/blocks/block-divider.d.ts +4 -0
- package/dist/src/types/ui/blocks/block-divider.js +1 -0
- package/dist/src/types/ui/blocks/block-faq.d.ts +11 -0
- package/dist/src/types/ui/blocks/block-faq.js +1 -0
- package/dist/src/types/ui/blocks/block-form.d.ts +7 -0
- package/dist/src/types/ui/blocks/block-form.js +1 -0
- package/dist/src/types/ui/blocks/block-gallery.d.ts +13 -0
- package/dist/src/types/ui/blocks/block-gallery.js +1 -0
- package/dist/src/types/ui/blocks/block-hero.d.ts +11 -0
- package/dist/src/types/ui/blocks/block-hero.js +1 -0
- package/dist/src/types/ui/blocks/block-html.d.ts +4 -0
- package/dist/src/types/ui/blocks/block-html.js +1 -0
- package/dist/src/types/ui/blocks/block-logocloud.d.ts +13 -0
- package/dist/src/types/ui/blocks/block-logocloud.js +1 -0
- package/dist/src/types/ui/blocks/block-quote.d.ts +10 -0
- package/dist/src/types/ui/blocks/block-quote.js +1 -0
- package/dist/src/types/ui/blocks/block-richtext.d.ts +7 -0
- package/dist/src/types/ui/blocks/block-richtext.js +1 -0
- package/dist/src/types/ui/blocks/block-steps.d.ts +21 -0
- package/dist/src/types/ui/blocks/block-steps.js +1 -0
- package/dist/src/types/ui/blocks/block-team.d.ts +6 -0
- package/dist/src/types/ui/blocks/block-team.js +1 -0
- package/dist/src/types/ui/blocks/block-testimonial.d.ts +13 -0
- package/dist/src/types/ui/blocks/block-testimonial.js +1 -0
- package/dist/src/types/ui/blocks/block-video.d.ts +9 -0
- package/dist/src/types/ui/blocks/block-video.js +1 -0
- package/dist/src/types/ui/blocks/block.d.ts +17 -0
- package/dist/src/types/ui/blocks/block.js +1 -0
- package/dist/src/types/ui/blocks/index.d.ts +18 -0
- package/dist/src/types/ui/blocks/index.js +1 -0
- package/dist/src/types/ui/component.d.ts +6 -0
- package/dist/src/types/ui/component.js +1 -0
- package/dist/src/types/ui/content/category.d.ts +10 -0
- package/dist/src/types/ui/content/category.js +1 -0
- package/dist/src/types/ui/content/form.d.ts +21 -0
- package/dist/src/types/ui/content/form.js +1 -0
- package/dist/src/types/ui/content/index.d.ts +6 -0
- package/dist/src/types/ui/content/index.js +1 -0
- package/dist/src/types/ui/content/page.d.ts +38 -0
- package/dist/src/types/ui/content/page.js +1 -0
- package/dist/src/types/ui/content/post.d.ts +38 -0
- package/dist/src/types/ui/content/post.js +1 -0
- package/dist/src/types/ui/content/team.d.ts +17 -0
- package/dist/src/types/ui/content/team.js +1 -0
- package/dist/src/types/ui/content/testimonial.d.ts +18 -0
- package/dist/src/types/ui/content/testimonial.js +1 -0
- package/dist/src/types/ui/form.d.ts +12 -0
- package/dist/src/types/ui/form.js +1 -0
- package/dist/src/types/ui/help/index.d.ts +51 -0
- package/dist/src/types/ui/help/index.js +1 -0
- package/dist/src/types/ui/meta/analytics.d.ts +21 -0
- package/dist/src/types/ui/meta/analytics.js +1 -0
- package/dist/src/types/ui/meta/config.d.ts +22 -0
- package/dist/src/types/ui/meta/config.js +1 -0
- package/dist/src/types/ui/meta/globals.d.ts +33 -0
- package/dist/src/types/ui/meta/globals.js +1 -0
- package/dist/src/types/ui/meta/index.d.ts +6 -0
- package/dist/src/types/ui/meta/index.js +1 -0
- package/dist/src/types/ui/meta/navigation.d.ts +31 -0
- package/dist/src/types/ui/meta/navigation.js +1 -0
- package/dist/src/types/ui/meta/redirect.d.ts +12 -0
- package/dist/src/types/ui/meta/redirect.js +1 -0
- package/dist/src/types/ui/meta/seo.d.ts +19 -0
- package/dist/src/types/ui/meta/seo.js +1 -0
- package/dist/src/types/ui/os/contact.d.ts +22 -0
- package/dist/src/types/ui/os/contact.js +1 -0
- package/dist/src/types/ui/os/conversation.d.ts +23 -0
- package/dist/src/types/ui/os/conversation.js +1 -0
- package/dist/src/types/ui/os/index.d.ts +16 -0
- package/dist/src/types/ui/os/index.js +1 -0
- package/dist/src/types/ui/os/organization.d.ts +51 -0
- package/dist/src/types/ui/os/organization.js +1 -0
- package/dist/src/types/ui/os/os-activity.d.ts +26 -0
- package/dist/src/types/ui/os/os-activity.js +1 -0
- package/dist/src/types/ui/os/os-deal.d.ts +42 -0
- package/dist/src/types/ui/os/os-deal.js +1 -0
- package/dist/src/types/ui/os/os-expense.d.ts +21 -0
- package/dist/src/types/ui/os/os-expense.js +1 -0
- package/dist/src/types/ui/os/os-invoice.d.ts +46 -0
- package/dist/src/types/ui/os/os-invoice.js +1 -0
- package/dist/src/types/ui/os/os-item.d.ts +17 -0
- package/dist/src/types/ui/os/os-item.js +1 -0
- package/dist/src/types/ui/os/os-payment.d.ts +27 -0
- package/dist/src/types/ui/os/os-payment.js +1 -0
- package/dist/src/types/ui/os/os-project.d.ts +45 -0
- package/dist/src/types/ui/os/os-project.js +1 -0
- package/dist/src/types/ui/os/os-proposal.d.ts +61 -0
- package/dist/src/types/ui/os/os-proposal.js +1 -0
- package/dist/src/types/ui/os/os-settings.d.ts +17 -0
- package/dist/src/types/ui/os/os-settings.js +1 -0
- package/dist/src/types/ui/os/os-subscription.d.ts +12 -0
- package/dist/src/types/ui/os/os-subscription.js +1 -0
- package/dist/src/types/ui/os/os-task.d.ts +32 -0
- package/dist/src/types/ui/os/os-task.js +1 -0
- package/dist/src/types/ui/os/os-tax-rate.d.ts +12 -0
- package/dist/src/types/ui/os/os-tax-rate.js +1 -0
- package/dist/src/types/ui/pageComponentMap.d.ts +2 -0
- package/dist/src/types/ui/pageComponentMap.js +7 -0
- package/dist/src/types/ui/pagination.d.ts +6 -0
- package/dist/src/types/ui/pagination.js +1 -0
- package/dist/src/types/ui/schema.d.ts +78 -0
- package/dist/src/types/ui/schema.js +1 -0
- package/dist/src/types/ui/state.d.ts +5 -0
- package/dist/src/types/ui/state.js +1 -0
- package/dist/src/types/ui/system/file.d.ts +47 -0
- package/dist/src/types/ui/system/file.js +1 -0
- package/dist/src/types/ui/system/folder.d.ts +8 -0
- package/dist/src/types/ui/system/folder.js +1 -0
- package/dist/src/types/ui/system/index.d.ts +4 -0
- package/dist/src/types/ui/system/index.js +1 -0
- package/dist/src/types/ui/system/role.d.ts +20 -0
- package/dist/src/types/ui/system/role.js +1 -0
- package/dist/src/types/ui/system/user.d.ts +57 -0
- package/dist/src/types/ui/system/user.js +1 -0
- package/dist/src/utils/adapterValidation.d.ts +2 -0
- package/dist/src/utils/adapterValidation.js +8 -0
- package/dist/src/utils/env.d.ts +7 -0
- package/dist/src/utils/env.js +20 -0
- package/dist/src/utils/errors.d.ts +9 -0
- package/dist/src/utils/errors.js +13 -0
- package/dist/src/utils/logger.d.ts +9 -0
- package/dist/src/utils/logger.js +29 -0
- package/dist/types/adapters.d.ts +12 -0
- package/dist/types/adapters.js +1 -0
- package/dist/types/app.d.ts +13 -0
- package/dist/types/app.js +1 -0
- package/dist/types/config.d.ts +8 -0
- package/dist/types/config.js +1 -0
- package/dist/types/events.d.ts +16 -0
- package/dist/types/events.js +22 -0
- package/dist/types/module.d.ts +15 -0
- package/dist/types/module.js +1 -0
- package/dist/utils/errors.d.ts +9 -0
- package/dist/utils/errors.js +13 -0
- package/dist/utils/logger.d.ts +9 -0
- package/dist/utils/logger.js +29 -0
- package/errors.ts +21 -0
- package/index.ts +93 -0
- package/package.json +39 -0
- package/src/adapters/auth.ts +11 -0
- package/src/adapters/cart.ts +27 -0
- package/src/adapters/catalog.ts +21 -0
- package/src/adapters/common.ts +10 -0
- package/src/adapters/lists.ts +23 -0
- package/src/adapters/search.ts +26 -0
- package/src/normalizers/factories/apiClientFactory/context.d.ts +14 -0
- package/src/normalizers/factories/apiClientFactory/index.d.ts +3 -0
- package/src/normalizers/factories/index.d.ts +19 -0
- package/src/normalizers/factories/useBillingFactory.d.ts +12 -0
- package/src/normalizers/factories/useCartFactory.d.ts +45 -0
- package/src/normalizers/factories/useCategoryFactory.d.ts +7 -0
- package/src/normalizers/factories/useContentFactory.d.ts +16 -0
- package/src/normalizers/factories/useFacetFactory.d.ts +6 -0
- package/src/normalizers/factories/useForgotPasswordFactory.d.ts +20 -0
- package/src/normalizers/factories/useMakeOrderFactory.d.ts +7 -0
- package/src/normalizers/factories/useProductFactory.d.ts +7 -0
- package/src/normalizers/factories/useReviewFactory.d.ts +10 -0
- package/src/normalizers/factories/useSearchFactory.d.ts +7 -0
- package/src/normalizers/factories/useShippingFactory.d.ts +12 -0
- package/src/normalizers/factories/useShippingProviderFactory.d.ts +14 -0
- package/src/normalizers/factories/useStoreFactory.d.ts +2 -0
- package/src/normalizers/factories/useUserBillingFactory.d.ts +27 -0
- package/src/normalizers/factories/useUserFactory.d.ts +32 -0
- package/src/normalizers/factories/useUserOrderFactory.d.ts +7 -0
- package/src/normalizers/factories/useUserShippingFactory.d.ts +27 -0
- package/src/normalizers/factories/useWishlistFactory.d.ts +24 -0
- package/src/normalizers/utils/context/index.d.ts +8 -0
- package/src/normalizers/utils/factoryParams/commonMethods.d.ts +2 -0
- package/src/normalizers/utils/factoryParams/index.d.ts +2 -0
- package/src/normalizers/utils/factoryParams/platformMethods.d.ts +2 -0
- package/src/normalizers/utils/helpers/index.d.ts +7 -0
- package/src/normalizers/utils/i18n-redirects/index.d.ts +12 -0
- package/src/normalizers/utils/logger/defaultLogger.d.ts +7 -0
- package/src/normalizers/utils/logger/index.d.ts +5 -0
- package/src/normalizers/utils/logger/makeMessageStyle.d.ts +2 -0
- package/src/normalizers/utils/logger/makeMethod.d.ts +2 -0
- package/src/normalizers/utils/logger/mask.d.ts +2 -0
- package/src/normalizers/utils/logger/types.d.ts +13 -0
- package/src/normalizers/utils/logger/utils.d.ts +4 -0
- package/src/normalizers/utils/shared/index.d.ts +4 -0
- package/src/normalizers/utils/ssr/index.d.ts +11 -0
- package/src/normalizers/utils/wrap/index.d.ts +3 -0
- package/src/plugins/defineAdapter.ts +5 -0
- package/src/plugins/defineModule.ts +5 -0
- package/src/plugins/index.ts +3 -0
- package/src/plugins/registry.ts +58 -0
- package/src/runtime/app.ts +31 -0
- package/src/runtime/config.ts +24 -0
- package/src/runtime/context.ts +18 -0
- package/src/runtime/hooks.ts +28 -0
- package/src/runtime/lifecycle.ts +16 -0
- package/src/types/adapters.ts +17 -0
- package/src/types/app.ts +15 -0
- package/src/types/auth/adapter.ts +7 -0
- package/src/types/auth/inputs.ts +33 -0
- package/src/types/auth/providers.ts +6 -0
- package/src/types/auth/session.ts +8 -0
- package/src/types/auth/user.ts +9 -0
- package/src/types/commerce/adapter.ts +21 -0
- package/src/types/commerce/cart.ts +16 -0
- package/src/types/commerce/category.ts +7 -0
- package/src/types/commerce/order.ts +13 -0
- package/src/types/commerce/product.ts +31 -0
- package/src/types/compat/legacy.ts +19 -0
- package/src/types/config.ts +9 -0
- package/src/types/core/common.ts +2 -0
- package/src/types/core/error.ts +11 -0
- package/src/types/core/id.ts +1 -0
- package/src/types/core/pagination.ts +6 -0
- package/src/types/core/result.ts +11 -0
- package/src/types/core/utility.ts +7 -0
- package/src/types/events.ts +47 -0
- package/src/types/index.ts +49 -0
- package/src/types/module.ts +18 -0
- package/src/types/sdk/adapter.ts +10 -0
- package/src/types/sdk/endpoint.ts +11 -0
- package/src/types/sdk/errors.ts +6 -0
- package/src/types/sdk/request.ts +6 -0
- package/src/types/sdk/response.ts +5 -0
- package/src/types/search/adapter.ts +7 -0
- package/src/types/search/facet.ts +9 -0
- package/src/types/search/opensearch.ts +19 -0
- package/src/types/search/query.ts +19 -0
- package/src/types/search/result.ts +17 -0
- package/src/types/ui/api/global-search.ts +8 -0
- package/src/types/ui/blocks/block-button-group.ts +7 -0
- package/src/types/ui/blocks/block-button.ts +14 -0
- package/src/types/ui/blocks/block-column.ts +20 -0
- package/src/types/ui/blocks/block-cta.ts +10 -0
- package/src/types/ui/blocks/block-divider.ts +4 -0
- package/src/types/ui/blocks/block-faq.ts +12 -0
- package/src/types/ui/blocks/block-form.ts +8 -0
- package/src/types/ui/blocks/block-gallery.ts +14 -0
- package/src/types/ui/blocks/block-hero.ts +12 -0
- package/src/types/ui/blocks/block-html.ts +4 -0
- package/src/types/ui/blocks/block-logocloud.ts +14 -0
- package/src/types/ui/blocks/block-quote.ts +11 -0
- package/src/types/ui/blocks/block-richtext.ts +7 -0
- package/src/types/ui/blocks/block-steps.ts +22 -0
- package/src/types/ui/blocks/block-team.ts +6 -0
- package/src/types/ui/blocks/block-testimonial.ts +14 -0
- package/src/types/ui/blocks/block-video.ts +10 -0
- package/src/types/ui/blocks/block.ts +49 -0
- package/src/types/ui/blocks/index.ts +18 -0
- package/src/types/ui/component.ts +7 -0
- package/src/types/ui/content/category.ts +11 -0
- package/src/types/ui/content/form.ts +20 -0
- package/src/types/ui/content/index.ts +6 -0
- package/src/types/ui/content/page.ts +76 -0
- package/src/types/ui/content/post.ts +39 -0
- package/src/types/ui/content/team.ts +16 -0
- package/src/types/ui/content/testimonial.ts +19 -0
- package/src/types/ui/env.d.ts +8 -0
- package/src/types/ui/form.ts +17 -0
- package/src/types/ui/help/index.ts +53 -0
- package/src/types/ui/meta/analytics.ts +18 -0
- package/src/types/ui/meta/config.ts +21 -0
- package/src/types/ui/meta/globals.ts +30 -0
- package/src/types/ui/meta/index.ts +6 -0
- package/src/types/ui/meta/navigation.ts +32 -0
- package/src/types/ui/meta/redirect.ts +13 -0
- package/src/types/ui/meta/seo.ts +19 -0
- package/src/types/ui/os/contact.ts +23 -0
- package/src/types/ui/os/conversation.ts +25 -0
- package/src/types/ui/os/index.ts +16 -0
- package/src/types/ui/os/organization.ts +54 -0
- package/src/types/ui/os/os-activity.ts +28 -0
- package/src/types/ui/os/os-deal.ts +45 -0
- package/src/types/ui/os/os-expense.ts +22 -0
- package/src/types/ui/os/os-invoice.ts +48 -0
- package/src/types/ui/os/os-item.ts +18 -0
- package/src/types/ui/os/os-payment.ts +29 -0
- package/src/types/ui/os/os-project.ts +47 -0
- package/src/types/ui/os/os-proposal.ts +84 -0
- package/src/types/ui/os/os-settings.ts +19 -0
- package/src/types/ui/os/os-subscription.ts +12 -0
- package/src/types/ui/os/os-task.ts +34 -0
- package/src/types/ui/os/os-tax-rate.ts +13 -0
- package/src/types/ui/pageComponentMap.ts +8 -0
- package/src/types/ui/pagination.ts +6 -0
- package/src/types/ui/schema.d.ts +39 -0
- package/src/types/ui/schema.ts +151 -0
- package/src/types/ui/state.ts +5 -0
- package/src/types/ui/system/file.ts +46 -0
- package/src/types/ui/system/folder.ts +8 -0
- package/src/types/ui/system/index.ts +4 -0
- package/src/types/ui/system/role.ts +21 -0
- package/src/types/ui/system/user.ts +56 -0
- package/src/utils/adapterValidation.ts +10 -0
- package/src/utils/env.ts +18 -0
- package/src/utils/errors.ts +15 -0
- package/src/utils/index.d.ts +11 -0
- package/src/utils/logger.ts +37 -0
- package/tsconfig.json +15 -0
- package/validation.ts +89 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { SEO } from '../meta';
|
|
2
|
+
import type { User } from '../system';
|
|
3
|
+
import type { Post } from '.';
|
|
4
|
+
import type {
|
|
5
|
+
BlockColumn,
|
|
6
|
+
BlockCta,
|
|
7
|
+
BlockFaq,
|
|
8
|
+
BlockForm,
|
|
9
|
+
BlockGallery,
|
|
10
|
+
BlockHero,
|
|
11
|
+
BlockHtml,
|
|
12
|
+
BlockLogocloud,
|
|
13
|
+
BlockQuote,
|
|
14
|
+
BlockRichtext,
|
|
15
|
+
BlockStep,
|
|
16
|
+
BlockTeam,
|
|
17
|
+
BlockTestimonial,
|
|
18
|
+
BlockVideo,
|
|
19
|
+
BlockType,
|
|
20
|
+
} from '../blocks';
|
|
21
|
+
|
|
22
|
+
export interface Page {
|
|
23
|
+
id?: string;
|
|
24
|
+
permalink: string;
|
|
25
|
+
date_created?: string | null;
|
|
26
|
+
date_updated?: string | null;
|
|
27
|
+
seo?: (string | SEO) | null;
|
|
28
|
+
sort?: number | null;
|
|
29
|
+
status?: string;
|
|
30
|
+
title?: string | null;
|
|
31
|
+
user_created?: (string | User) | null;
|
|
32
|
+
user_updated?: (string | User) | null;
|
|
33
|
+
blocks?: (string | PageBlock)[];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface PageBlock {
|
|
37
|
+
collection?: BlockType | null;
|
|
38
|
+
id?: string;
|
|
39
|
+
item?:
|
|
40
|
+
| (
|
|
41
|
+
| string
|
|
42
|
+
| BlockColumn
|
|
43
|
+
| BlockCta
|
|
44
|
+
| BlockFaq
|
|
45
|
+
| BlockForm
|
|
46
|
+
| BlockGallery
|
|
47
|
+
| BlockHero
|
|
48
|
+
| BlockHtml
|
|
49
|
+
| BlockLogocloud
|
|
50
|
+
| BlockQuote
|
|
51
|
+
| BlockRichtext
|
|
52
|
+
| BlockStep
|
|
53
|
+
| BlockTeam
|
|
54
|
+
| BlockTestimonial
|
|
55
|
+
| BlockVideo
|
|
56
|
+
)[]
|
|
57
|
+
| null;
|
|
58
|
+
pages_id?: (string | Page) | null;
|
|
59
|
+
sort?: number | null;
|
|
60
|
+
hide_block?: boolean | null;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface PagesProjects {
|
|
64
|
+
id?: string;
|
|
65
|
+
title?: string | null;
|
|
66
|
+
headline?: string | null | undefined;
|
|
67
|
+
seo: (string | SEO) | null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export interface PagesBlog {
|
|
71
|
+
id?: string;
|
|
72
|
+
title?: string | null;
|
|
73
|
+
headline?: string | null;
|
|
74
|
+
featured_post?: (string | Post) | null;
|
|
75
|
+
seo: (string | SEO) | null;
|
|
76
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { User, File } from '../system';
|
|
2
|
+
import type { SEO } from '../meta';
|
|
3
|
+
import type { Category, Team } from '.';
|
|
4
|
+
|
|
5
|
+
export interface Post {
|
|
6
|
+
author?: (string | Team) | null;
|
|
7
|
+
category?: (string | Category) | null;
|
|
8
|
+
content?: string | null;
|
|
9
|
+
date_created?: string | null;
|
|
10
|
+
date_published?: string | null;
|
|
11
|
+
date_updated?: string | null;
|
|
12
|
+
id?: string;
|
|
13
|
+
image?: (string | File) | null;
|
|
14
|
+
seo?: (string | SEO) | null;
|
|
15
|
+
slug?: string | null;
|
|
16
|
+
sort?: number | null;
|
|
17
|
+
status?: 'draft' | 'published' | 'scheduled' | 'in_review' | 'archived';
|
|
18
|
+
summary?: string | null;
|
|
19
|
+
title?: string | null;
|
|
20
|
+
user_created?: string | null;
|
|
21
|
+
user_updated?: string | null;
|
|
22
|
+
links?: string;
|
|
23
|
+
type?: PostType;
|
|
24
|
+
details?: string;
|
|
25
|
+
gallery?: (number | ProjectFile)[];
|
|
26
|
+
built_with?: { [key: string]: any } | null;
|
|
27
|
+
client?: string | null;
|
|
28
|
+
cost?: string | null;
|
|
29
|
+
video_url?: string | null;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type PostType = 'blog' | 'video' | 'project';
|
|
33
|
+
|
|
34
|
+
export interface ProjectFile {
|
|
35
|
+
directus_files_id?: (string | File) | null;
|
|
36
|
+
id?: number;
|
|
37
|
+
project?: (string | File) | null;
|
|
38
|
+
sort?: number | null;
|
|
39
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { User, File } from '../system';
|
|
2
|
+
|
|
3
|
+
export interface Team {
|
|
4
|
+
bio?: string | null;
|
|
5
|
+
date_created?: string | null;
|
|
6
|
+
date_updated?: string | null;
|
|
7
|
+
id?: string;
|
|
8
|
+
image?: (string | File) | null;
|
|
9
|
+
job_title?: string | null;
|
|
10
|
+
name?: string | null;
|
|
11
|
+
social_media?: { [key: string]: any } | null;
|
|
12
|
+
sort?: number | null;
|
|
13
|
+
status?: string;
|
|
14
|
+
user_created?: string | User | null;
|
|
15
|
+
user_updated?: string | User | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
|
|
3
|
+
export interface Testimonial {
|
|
4
|
+
company?: string | null;
|
|
5
|
+
company_logo?: (string | File) | null;
|
|
6
|
+
content?: string | null;
|
|
7
|
+
date_created?: string | null;
|
|
8
|
+
date_updated?: string | null;
|
|
9
|
+
id?: string;
|
|
10
|
+
image?: (string | File) | null;
|
|
11
|
+
link?: string | null;
|
|
12
|
+
sort?: number | null;
|
|
13
|
+
status?: string;
|
|
14
|
+
subtitle?: string | null;
|
|
15
|
+
title?: string | null;
|
|
16
|
+
user_created?: string | User | null;
|
|
17
|
+
user_updated?: string | User | null;
|
|
18
|
+
company_info?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type FormFieldType =
|
|
2
|
+
| 'text'
|
|
3
|
+
| 'email'
|
|
4
|
+
| 'password'
|
|
5
|
+
| 'number'
|
|
6
|
+
| 'checkbox'
|
|
7
|
+
| 'select'
|
|
8
|
+
| 'textarea'
|
|
9
|
+
|
|
10
|
+
export interface FormField {
|
|
11
|
+
name: string
|
|
12
|
+
label: string
|
|
13
|
+
type: FormFieldType
|
|
14
|
+
placeholder?: string
|
|
15
|
+
schema?: unknown
|
|
16
|
+
options?: Array<{ label: string; value: string }>
|
|
17
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
import type { Form } from '../content';
|
|
3
|
+
|
|
4
|
+
export interface HelpArticle {
|
|
5
|
+
content?: string | null;
|
|
6
|
+
date_created?: string | null;
|
|
7
|
+
date_updated?: string | null;
|
|
8
|
+
help_collection?: (string | HelpCollection) | null;
|
|
9
|
+
id?: string;
|
|
10
|
+
owner?: string | User | null;
|
|
11
|
+
slug?: string | null;
|
|
12
|
+
sort?: number | null;
|
|
13
|
+
status?: string;
|
|
14
|
+
summary?: string | null;
|
|
15
|
+
title?: string | null;
|
|
16
|
+
user_created?: string | User | null;
|
|
17
|
+
user_updated?: string | User | null;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface HelpCollection {
|
|
21
|
+
description?: string | null;
|
|
22
|
+
icon?: string | null;
|
|
23
|
+
id?: string;
|
|
24
|
+
slug?: string | null;
|
|
25
|
+
sort?: number | null;
|
|
26
|
+
title?: string | null;
|
|
27
|
+
articles?: (string | HelpArticle)[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface HelpFeedback {
|
|
31
|
+
comments?: string | null;
|
|
32
|
+
date_created?: string | null;
|
|
33
|
+
date_updated?: string | null;
|
|
34
|
+
id?: string;
|
|
35
|
+
rating?: number | null;
|
|
36
|
+
title?: string | null;
|
|
37
|
+
url?: string | null;
|
|
38
|
+
user_created?: string | User | null;
|
|
39
|
+
user_updated?: string | User | null;
|
|
40
|
+
visitor_id?: string | null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface Inbox {
|
|
44
|
+
data?: { [key: string]: any } | null;
|
|
45
|
+
date_created?: string | null;
|
|
46
|
+
date_updated?: string | null;
|
|
47
|
+
form?: (string | Form) | null;
|
|
48
|
+
id?: string;
|
|
49
|
+
sort?: number | null;
|
|
50
|
+
status?: string;
|
|
51
|
+
user_created?: string | User | null;
|
|
52
|
+
user_updated?: string | User | null;
|
|
53
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface Event {
|
|
2
|
+
id?: string;
|
|
3
|
+
key?: string | null;
|
|
4
|
+
metadata?: { [key: string]: any } | null;
|
|
5
|
+
service?: string | null;
|
|
6
|
+
session?: string | null;
|
|
7
|
+
timestamp?: string | null;
|
|
8
|
+
user?: string | null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface Metric {
|
|
12
|
+
id?: string;
|
|
13
|
+
key?: string | null;
|
|
14
|
+
metadata?: { [key: string]: any } | null;
|
|
15
|
+
service?: string | null;
|
|
16
|
+
timestamp?: string | null;
|
|
17
|
+
value?: number | null;
|
|
18
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SEO } from '.';
|
|
2
|
+
|
|
3
|
+
export interface ChatConfig {
|
|
4
|
+
/** Would you like to enable the chat / messenger widget on the site? */
|
|
5
|
+
enabled?: boolean | null;
|
|
6
|
+
hours?: { [key: string]: any } | null;
|
|
7
|
+
id?: string;
|
|
8
|
+
modules?: { [key: string]: any } | null;
|
|
9
|
+
require_email?: string | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface PageSettings {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ProjectsSettings {
|
|
17
|
+
headline?: string | null;
|
|
18
|
+
id?: string;
|
|
19
|
+
seo?: (string | SEO) | null;
|
|
20
|
+
title?: string | null;
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { File } from '../system/index.js';
|
|
2
|
+
|
|
3
|
+
export interface Globals {
|
|
4
|
+
address_country?: string | null;
|
|
5
|
+
address_locality?: string | null;
|
|
6
|
+
address_region?: string | null;
|
|
7
|
+
/** URL for the build / deploy hook that starts a new build */
|
|
8
|
+
build_hook_url?: string | null;
|
|
9
|
+
description?: string | null;
|
|
10
|
+
email?: string | null;
|
|
11
|
+
id?: string;
|
|
12
|
+
og_image?: (string | File) | null;
|
|
13
|
+
phone?: string | null;
|
|
14
|
+
postal_code?: string | null;
|
|
15
|
+
routes?: { [key: string]: any } | null;
|
|
16
|
+
social_links: { [key: string]: any } | null;
|
|
17
|
+
street_address?: string | null;
|
|
18
|
+
/** What's the website title? */
|
|
19
|
+
tagline?: string | null;
|
|
20
|
+
/** What's the website title? */
|
|
21
|
+
title?: string | null;
|
|
22
|
+
/** What's is the base url for the site? */
|
|
23
|
+
url?: string | null;
|
|
24
|
+
contact?: string;
|
|
25
|
+
deployment?: string;
|
|
26
|
+
/** This will be the default metadata used for SEO */
|
|
27
|
+
seo?: string;
|
|
28
|
+
social?: string;
|
|
29
|
+
notice_deployment?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { User } from '../system/index.js';
|
|
2
|
+
import type { Page } from '../content/index.js';
|
|
3
|
+
|
|
4
|
+
export interface Navigation {
|
|
5
|
+
date_created?: string | null;
|
|
6
|
+
date_updated?: string | null;
|
|
7
|
+
id?: string;
|
|
8
|
+
status?: string;
|
|
9
|
+
title?: string | null;
|
|
10
|
+
user_created?: string | User | null;
|
|
11
|
+
user_updated?: string | User | null;
|
|
12
|
+
items?: (string | NavigationItem)[];
|
|
13
|
+
}
|
|
14
|
+
export interface NavigationItem {
|
|
15
|
+
has_children?: boolean | null;
|
|
16
|
+
/** Icon that displays in dropdown menus on website. */
|
|
17
|
+
icon?: string | null;
|
|
18
|
+
id?: string;
|
|
19
|
+
/** Label to help User. Displays below the link in dropdown nav menus. */
|
|
20
|
+
label?: string | null;
|
|
21
|
+
navigation?: (string | Navigation) | null;
|
|
22
|
+
open_in_new_tab?: boolean | null;
|
|
23
|
+
page?: (string | Page) | null;
|
|
24
|
+
parent?: (string | NavigationItem) | null;
|
|
25
|
+
sort?: number | null;
|
|
26
|
+
title?: string | null;
|
|
27
|
+
type?: string | null;
|
|
28
|
+
url?: string | null;
|
|
29
|
+
children?: (string | NavigationItem)[];
|
|
30
|
+
/** Control the icon and label displayed on the website. */
|
|
31
|
+
display_details?: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
|
|
3
|
+
export interface Redirect {
|
|
4
|
+
date_created?: string | null;
|
|
5
|
+
date_updated?: string | null;
|
|
6
|
+
id?: string;
|
|
7
|
+
response_code?: number | null | string;
|
|
8
|
+
url_new: string;
|
|
9
|
+
url_old: string;
|
|
10
|
+
user_created?: string | User | null;
|
|
11
|
+
user_updated?: string | User | null;
|
|
12
|
+
notice_redirects?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface SEO {
|
|
2
|
+
/** Where should the canonical URL for this entry point to. */
|
|
3
|
+
canonical_url?: string | null;
|
|
4
|
+
id?: string;
|
|
5
|
+
/** This entries meta description. Max 160 characters. */
|
|
6
|
+
meta_description?: string | null;
|
|
7
|
+
/** Instruct crawlers not to follow links on this page. */
|
|
8
|
+
no_follow?: boolean | null;
|
|
9
|
+
/** Instruct crawlers not to index this entry. */
|
|
10
|
+
no_index?: boolean | null;
|
|
11
|
+
/** This item's OG image. Defaults to global site OG image. The recommended size is 1200px x 630px. The image will be focal cropped to this dimension. */
|
|
12
|
+
og_image?: (string | File) | null;
|
|
13
|
+
/** How often to instruct search engines to crawl. */
|
|
14
|
+
sitemap_change_frequency?: string | null;
|
|
15
|
+
/** Valid values range from 0.0 to 1.0. This value does not affect how your pages are compared to pages on other sites, it only lets the search engines know which pages you deem most important for the crawlers. */
|
|
16
|
+
sitemap_priority?: number | null;
|
|
17
|
+
/** This entries title, defaults to title. Max 70 characters including the site name. */
|
|
18
|
+
title?: string | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
import type { OrganizationContact, OsDealContact, OsActivityContact } from '.';
|
|
3
|
+
|
|
4
|
+
export interface Contact {
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Is this an active contact? */
|
|
7
|
+
status?: string | null;
|
|
8
|
+
user_created?: (string | User) | null;
|
|
9
|
+
date_created?: string | null;
|
|
10
|
+
user_updated?: (string | User) | null;
|
|
11
|
+
date_updated?: string | null;
|
|
12
|
+
first_name?: string | null;
|
|
13
|
+
last_name?: string | null;
|
|
14
|
+
user?: (string | User) | null;
|
|
15
|
+
email?: string | null;
|
|
16
|
+
phone?: string | null;
|
|
17
|
+
job_title?: string | null;
|
|
18
|
+
contact_notes?: string | null;
|
|
19
|
+
organizations?: (string | OrganizationContact)[];
|
|
20
|
+
os_deals?: (string | OsDealContact)[];
|
|
21
|
+
activity?: string;
|
|
22
|
+
activities?: (string | OsActivityContact)[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
|
|
3
|
+
export interface Conversation {
|
|
4
|
+
date_created?: string | null;
|
|
5
|
+
date_updated?: string | null;
|
|
6
|
+
id?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
title?: string | null;
|
|
9
|
+
visitor_id?: string | null;
|
|
10
|
+
item?: string | null;
|
|
11
|
+
collection?: string | null;
|
|
12
|
+
messages?: (string | Message)[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface Message {
|
|
16
|
+
conversation?: (string | Conversation) | null;
|
|
17
|
+
date_created?: string | null;
|
|
18
|
+
date_updated?: string | null;
|
|
19
|
+
id?: string;
|
|
20
|
+
text?: string | null;
|
|
21
|
+
user_created?: (string | User) | null;
|
|
22
|
+
user_updated?: (string | User) | null;
|
|
23
|
+
visitor_id?: string | null;
|
|
24
|
+
contact_id?: string | null;
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type * from './contact';
|
|
2
|
+
export type * from './conversation';
|
|
3
|
+
export type * from './index';
|
|
4
|
+
export type * from './organization';
|
|
5
|
+
export type * from './os-activity';
|
|
6
|
+
export type * from './os-deal';
|
|
7
|
+
export type * from './os-expense';
|
|
8
|
+
export type * from './os-invoice';
|
|
9
|
+
export type * from './os-item';
|
|
10
|
+
export type * from './os-payment';
|
|
11
|
+
export type * from './os-project';
|
|
12
|
+
export type * from './os-proposal';
|
|
13
|
+
export type * from './os-settings';
|
|
14
|
+
export type * from './os-subscription';
|
|
15
|
+
export type * from './os-task';
|
|
16
|
+
export type * from './os-tax-rate';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { User, File } from '../system';
|
|
2
|
+
import type { OsPaymentTerm, Contact } from '.';
|
|
3
|
+
|
|
4
|
+
export interface Organization {
|
|
5
|
+
id?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
user_created?: (string | User) | null;
|
|
8
|
+
date_created?: string | null;
|
|
9
|
+
user_updated?: (string | User) | null;
|
|
10
|
+
date_updated?: string | null;
|
|
11
|
+
name?: string | null;
|
|
12
|
+
website?: string | null;
|
|
13
|
+
logo?: string | File | null;
|
|
14
|
+
brand_color?: string | null;
|
|
15
|
+
organization_notes?: string | null;
|
|
16
|
+
/** Company email address (sales@company.com) */
|
|
17
|
+
email?: string | null;
|
|
18
|
+
ap_contact?: (string | Contact) | null;
|
|
19
|
+
payment_terms?: (string | OsPaymentTerm) | null;
|
|
20
|
+
owner?: (string | User) | null;
|
|
21
|
+
/** Company phone number */
|
|
22
|
+
phone?: string | null;
|
|
23
|
+
branding?: string;
|
|
24
|
+
contacts?: (string | OrganizationContact)[];
|
|
25
|
+
addresses?: (string | OrganizationAddress)[];
|
|
26
|
+
billing?: string;
|
|
27
|
+
stripe_customer_id?: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface OrganizationAddress {
|
|
31
|
+
id?: string;
|
|
32
|
+
sort?: number | null;
|
|
33
|
+
user_created?: (string | User) | null;
|
|
34
|
+
date_created?: string | null;
|
|
35
|
+
user_updated?: (string | User) | null;
|
|
36
|
+
date_updated?: string | null;
|
|
37
|
+
organization?: (string | Organization) | null;
|
|
38
|
+
name?: string | null;
|
|
39
|
+
street_address?: string | null;
|
|
40
|
+
postal_code?: string | null;
|
|
41
|
+
/** State (or region if outside US) */
|
|
42
|
+
address_region?: string | null;
|
|
43
|
+
address_country?: string | null;
|
|
44
|
+
/** City */
|
|
45
|
+
address_locality?: string | null;
|
|
46
|
+
is_primary_billing?: boolean | null;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface OrganizationContact {
|
|
50
|
+
id?: string;
|
|
51
|
+
contacts_id?: (string | Contact) | null;
|
|
52
|
+
organizations_id?: (string | Organization) | null;
|
|
53
|
+
sort?: number | null;
|
|
54
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
import type { Organization, Contact, OsDeal } from '.';
|
|
3
|
+
|
|
4
|
+
export interface OsActivity {
|
|
5
|
+
id?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
sort?: number | null;
|
|
8
|
+
user_created?: (string | User) | null;
|
|
9
|
+
date_created?: string | null;
|
|
10
|
+
user_updated?: (string | User) | null;
|
|
11
|
+
date_updated?: string | null;
|
|
12
|
+
deal?: (string | OsDeal) | null;
|
|
13
|
+
activity_type?: string | null;
|
|
14
|
+
activity_notes?: string | null;
|
|
15
|
+
name?: string | null;
|
|
16
|
+
organization?: (string | Organization) | null;
|
|
17
|
+
start_time?: string | null;
|
|
18
|
+
end_time?: string | null;
|
|
19
|
+
due_date?: string | null;
|
|
20
|
+
assigned_to?: (string | User) | null;
|
|
21
|
+
contacts?: (string | OsActivityContact)[];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface OsActivityContact {
|
|
25
|
+
id?: string;
|
|
26
|
+
os_activities_id?: (string | OsActivity) | null;
|
|
27
|
+
contacts_id?: (string | Contact) | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
import type { Organization, Contact, OsProposal, OsActivity } from '.';
|
|
3
|
+
|
|
4
|
+
export interface OsDeal {
|
|
5
|
+
id?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
sort?: number | null;
|
|
8
|
+
user_created?: (string | User) | null;
|
|
9
|
+
date_created?: string | null;
|
|
10
|
+
user_updated?: (string | User) | null;
|
|
11
|
+
date_updated?: string | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
owner?: (string | User) | null;
|
|
14
|
+
organization?: (string | Organization) | null;
|
|
15
|
+
close_date?: string | null;
|
|
16
|
+
deal_stage?: (string | OsDealStage) | null;
|
|
17
|
+
next_contact_date?: string | null;
|
|
18
|
+
deal_value?: number | null;
|
|
19
|
+
deal_notes?: string | null;
|
|
20
|
+
comments?: string;
|
|
21
|
+
proposals?: (string | OsProposal)[];
|
|
22
|
+
contacts?: (string | OsDealContact)[];
|
|
23
|
+
activity?: string;
|
|
24
|
+
activities?: (string | OsActivity)[];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface OsDealContact {
|
|
28
|
+
id?: string;
|
|
29
|
+
primary?: boolean | null;
|
|
30
|
+
os_deals_id?: (string | OsDeal) | null;
|
|
31
|
+
contacts_id?: (string | Contact) | null;
|
|
32
|
+
sort?: number | null;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface OsDealStage {
|
|
36
|
+
id?: string;
|
|
37
|
+
status?: string;
|
|
38
|
+
sort?: number | null;
|
|
39
|
+
user_created?: (string | User) | null;
|
|
40
|
+
date_created?: string | null;
|
|
41
|
+
user_updated?: (string | User) | null;
|
|
42
|
+
date_updated?: string | null;
|
|
43
|
+
name?: string | null;
|
|
44
|
+
color?: string | null;
|
|
45
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { File, User } from '../system';
|
|
2
|
+
import type { OsProject, OsInvoiceItem } from '.';
|
|
3
|
+
|
|
4
|
+
export interface OsExpense {
|
|
5
|
+
id?: string;
|
|
6
|
+
sort?: number | null;
|
|
7
|
+
user_created?: (string | User) | null;
|
|
8
|
+
date_created?: string | null;
|
|
9
|
+
user_updated?: (string | User) | null;
|
|
10
|
+
date_updated?: string | null;
|
|
11
|
+
category?: string | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
cost?: number | null;
|
|
14
|
+
description?: string | null;
|
|
15
|
+
date?: string | null;
|
|
16
|
+
file?: (string | File) | null;
|
|
17
|
+
project?: (string | OsProject) | null;
|
|
18
|
+
is_billable?: boolean | null;
|
|
19
|
+
invoice_item?: (string | OsInvoiceItem) | null;
|
|
20
|
+
status?: string;
|
|
21
|
+
is_reimbursable?: boolean | null;
|
|
22
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
import type { Organization, Contact, OsProject, OsPayment, OsTaxRate, OsExpense, OsItem } from '.';
|
|
3
|
+
|
|
4
|
+
export interface OsInvoice {
|
|
5
|
+
id?: string;
|
|
6
|
+
status?: string;
|
|
7
|
+
sort?: number | null;
|
|
8
|
+
user_created?: (string | User) | null;
|
|
9
|
+
date_created?: string | null;
|
|
10
|
+
user_updated?: (string | User) | null;
|
|
11
|
+
date_updated?: string | null;
|
|
12
|
+
invoice_number?: string | null;
|
|
13
|
+
due_date?: string | null;
|
|
14
|
+
reference?: string | null;
|
|
15
|
+
organization?: (string | Organization) | null;
|
|
16
|
+
contact?: (string | Contact) | null;
|
|
17
|
+
issue_date?: string | null;
|
|
18
|
+
project?: (string | OsProject) | null;
|
|
19
|
+
subtotal?: number | null;
|
|
20
|
+
total_tax?: number | null;
|
|
21
|
+
total?: number | null;
|
|
22
|
+
amount_paid?: number | null;
|
|
23
|
+
amount_due?: number | null;
|
|
24
|
+
payments?: (string | OsPayment)[];
|
|
25
|
+
line_items?: (string | OsInvoiceItem)[];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface OsInvoiceItem {
|
|
29
|
+
id?: string;
|
|
30
|
+
sort?: number | null;
|
|
31
|
+
user_created?: (string | User) | null;
|
|
32
|
+
date_created?: string | null;
|
|
33
|
+
user_updated?: (string | User) | null;
|
|
34
|
+
date_updated?: string | null;
|
|
35
|
+
invoice?: (string | OsInvoice) | null;
|
|
36
|
+
line_item_number?: number | null;
|
|
37
|
+
description?: string | null;
|
|
38
|
+
tax_rate?: (string | OsTaxRate) | null;
|
|
39
|
+
tax_amount?: number | null;
|
|
40
|
+
unit_price?: number | null;
|
|
41
|
+
quantity?: number | null;
|
|
42
|
+
line_amount?: number | null;
|
|
43
|
+
billable_expense?: (string | OsExpense) | null;
|
|
44
|
+
item?: (string | OsItem) | null;
|
|
45
|
+
type?: string | null;
|
|
46
|
+
item_name?: string | null;
|
|
47
|
+
override_unit_price?: boolean | null;
|
|
48
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { User } from '../system';
|
|
2
|
+
import type { OsTaxRate } from '.';
|
|
3
|
+
|
|
4
|
+
export interface OsItem {
|
|
5
|
+
id?: string;
|
|
6
|
+
status?: string | null;
|
|
7
|
+
sort?: number | null;
|
|
8
|
+
user_created?: (string | User) | null;
|
|
9
|
+
date_created?: string | null;
|
|
10
|
+
user_updated?: (string | User) | null;
|
|
11
|
+
date_updated?: string | null;
|
|
12
|
+
name?: string | null;
|
|
13
|
+
description?: string | null;
|
|
14
|
+
unit_price?: number | null;
|
|
15
|
+
default_tax_rate?: (string | OsTaxRate) | null;
|
|
16
|
+
icon?: string | null;
|
|
17
|
+
unit_cost?: number | null;
|
|
18
|
+
}
|