@meeovi/layer-shared 1.0.0 → 1.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.
Files changed (123) hide show
  1. package/nuxt.config.ts +12 -2
  2. package/package.json +2 -1
  3. package/src/mappers/createMapper.ts +11 -0
  4. package/src/mappers/errors.ts +13 -0
  5. package/src/mappers/index.ts +7 -0
  6. package/src/mappers/registry.ts +28 -0
  7. package/src/mappers/testHarness.ts +142 -0
  8. package/src/mappers/types.ts +6 -0
  9. package/src/mappers/zodMapper.ts +37 -0
  10. package/src/runtime/plugin.ts +5 -0
  11. package/src/runtime/server/tsconfig.json +3 -0
  12. package/src/schema/commerce/attributes.ts +10 -0
  13. package/src/schema/commerce/blocks.ts +7 -0
  14. package/src/schema/commerce/bundleProduts.ts +12 -0
  15. package/src/schema/commerce/cart.ts +35 -0
  16. package/src/schema/commerce/category.ts +15 -0
  17. package/src/schema/commerce/checkout.ts +11 -0
  18. package/src/schema/commerce/company.ts +8 -0
  19. package/src/schema/commerce/configurableProducts.ts +11 -0
  20. package/src/schema/commerce/coupons.ts +10 -0
  21. package/src/schema/commerce/credit-memos.ts +50 -0
  22. package/src/schema/commerce/digitalProducts.ts +13 -0
  23. package/src/schema/commerce/directory.ts +8 -0
  24. package/src/schema/commerce/events.ts +30 -0
  25. package/src/schema/commerce/gift-registry.ts +9 -0
  26. package/src/schema/commerce/guest-cart.ts +6 -0
  27. package/src/schema/commerce/inventory.ts +9 -0
  28. package/src/schema/commerce/invoices.ts +49 -0
  29. package/src/schema/commerce/orders.ts +39 -0
  30. package/src/schema/commerce/payments.ts +11 -0
  31. package/src/schema/commerce/price.ts +12 -0
  32. package/src/schema/commerce/product-types.ts +9 -0
  33. package/src/schema/commerce/product.ts +23 -0
  34. package/src/schema/commerce/quotes.ts +10 -0
  35. package/src/schema/commerce/requisition-lists.ts +7 -0
  36. package/src/schema/commerce/returns.ts +11 -0
  37. package/src/schema/commerce/reward.ts +8 -0
  38. package/src/schema/commerce/rules.ts +8 -0
  39. package/src/schema/commerce/shipment.ts +21 -0
  40. package/src/schema/commerce/shops.ts +10 -0
  41. package/src/schema/commerce/stockItems.ts +8 -0
  42. package/src/schema/commerce/store.ts +8 -0
  43. package/src/schema/commerce/subscriptons.ts +11 -0
  44. package/src/schema/commerce/taxRates.ts +9 -0
  45. package/src/schema/commerce/taxRules.ts +8 -0
  46. package/src/schema/commerce/teams.ts +7 -0
  47. package/src/schema/commerce/transactions.ts +13 -0
  48. package/src/schema/identity/customerGroup.ts +8 -0
  49. package/src/schema/identity/user.ts +47 -0
  50. package/src/schema/media/asset.ts +31 -0
  51. package/src/schema/social/post.ts +28 -0
  52. package/src/schema/social/profile.ts +25 -0
  53. package/src/schema/social/space.ts +19 -0
  54. package/src/utils/assert.ts +8 -0
  55. package/src/utils/deepMerge.ts +21 -0
  56. package/src/utils/index.ts +4 -0
  57. package/src/utils/isObject.ts +7 -0
  58. package/src/utils/module.ts +19 -0
  59. package/src/utils/safeGet.ts +8 -0
  60. package/app/types/api/global-search.ts +0 -8
  61. package/app/types/blocks/block-button-group.ts +0 -7
  62. package/app/types/blocks/block-button.ts +0 -14
  63. package/app/types/blocks/block-column.ts +0 -20
  64. package/app/types/blocks/block-cta.ts +0 -10
  65. package/app/types/blocks/block-divider.ts +0 -4
  66. package/app/types/blocks/block-faq.ts +0 -12
  67. package/app/types/blocks/block-form.ts +0 -8
  68. package/app/types/blocks/block-gallery.ts +0 -14
  69. package/app/types/blocks/block-hero.ts +0 -12
  70. package/app/types/blocks/block-html.ts +0 -4
  71. package/app/types/blocks/block-logocloud.ts +0 -14
  72. package/app/types/blocks/block-quote.ts +0 -11
  73. package/app/types/blocks/block-richtext.ts +0 -7
  74. package/app/types/blocks/block-steps.ts +0 -22
  75. package/app/types/blocks/block-team.ts +0 -6
  76. package/app/types/blocks/block-testimonial.ts +0 -14
  77. package/app/types/blocks/block-video.ts +0 -10
  78. package/app/types/blocks/block.ts +0 -49
  79. package/app/types/blocks/index.ts +0 -18
  80. package/app/types/componentMap.ts +0 -15
  81. package/app/types/content/category.ts +0 -11
  82. package/app/types/content/form.ts +0 -20
  83. package/app/types/content/index.ts +0 -6
  84. package/app/types/content/page.ts +0 -76
  85. package/app/types/content/post.ts +0 -39
  86. package/app/types/content/team.ts +0 -16
  87. package/app/types/content/testimonial.ts +0 -19
  88. package/app/types/directus.d.ts +0 -47
  89. package/app/types/env.d.ts +0 -8
  90. package/app/types/help/index.ts +0 -53
  91. package/app/types/index.d.ts +0 -9
  92. package/app/types/index.ts +0 -7
  93. package/app/types/meta/analytics.ts +0 -18
  94. package/app/types/meta/config.ts +0 -21
  95. package/app/types/meta/globals.ts +0 -30
  96. package/app/types/meta/index.ts +0 -6
  97. package/app/types/meta/navigation.ts +0 -32
  98. package/app/types/meta/redirect.ts +0 -13
  99. package/app/types/meta/seo.ts +0 -19
  100. package/app/types/os/contact.ts +0 -23
  101. package/app/types/os/conversation.ts +0 -25
  102. package/app/types/os/index.ts +0 -16
  103. package/app/types/os/organization.ts +0 -54
  104. package/app/types/os/os-activity.ts +0 -28
  105. package/app/types/os/os-deal.ts +0 -45
  106. package/app/types/os/os-expense.ts +0 -22
  107. package/app/types/os/os-invoice.ts +0 -48
  108. package/app/types/os/os-item.ts +0 -18
  109. package/app/types/os/os-payment.ts +0 -29
  110. package/app/types/os/os-project.ts +0 -47
  111. package/app/types/os/os-proposal.ts +0 -84
  112. package/app/types/os/os-settings.ts +0 -19
  113. package/app/types/os/os-subscription.ts +0 -12
  114. package/app/types/os/os-task.ts +0 -34
  115. package/app/types/os/os-tax-rate.ts +0 -13
  116. package/app/types/pageComponentMap.ts +0 -8
  117. package/app/types/schema.d.ts +0 -39
  118. package/app/types/schema.ts +0 -151
  119. package/app/types/system/file.ts +0 -46
  120. package/app/types/system/folder.ts +0 -8
  121. package/app/types/system/index.ts +0 -4
  122. package/app/types/system/role.ts +0 -21
  123. package/app/types/system/user.ts +0 -56
@@ -1,54 +0,0 @@
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
- }
@@ -1,28 +0,0 @@
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
- }
@@ -1,45 +0,0 @@
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
- }
@@ -1,22 +0,0 @@
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
- }
@@ -1,48 +0,0 @@
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
- }
@@ -1,18 +0,0 @@
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
- }
@@ -1,29 +0,0 @@
1
- import type { User } from '../system';
2
- import type { Organization, Contact, OsInvoice } from '.';
3
-
4
- export interface OsPayment {
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
- payment_date?: string | null;
13
- amount?: number | null;
14
- stripe_payment_id?: string;
15
- transaction_fee?: number | null;
16
- organization?: (string | Organization) | null;
17
- contact?: (string | Contact) | null;
18
- invoice?: (string | OsInvoice) | null;
19
- metadata?: object | null;
20
- receipt_url?: string | null;
21
- }
22
-
23
- export interface OsPaymentTerm {
24
- id?: string;
25
- user_created?: (string | User) | null;
26
- date_created?: string | null;
27
- user_updated?: (string | User) | null;
28
- date_updated?: string | null;
29
- }
@@ -1,47 +0,0 @@
1
- import type { User } from '../system';
2
- import type { Organization, Contact, OsInvoice, OsTask, OsExpense } from '.';
3
-
4
- export interface OsProject {
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
- organization?: (string | Organization) | null;
14
- description?: string | null;
15
- owner?: (string | User) | null;
16
- start_date?: string | null;
17
- due_date?: string | null;
18
- expenses?: (string | OsExpense)[];
19
- invoices?: (string | OsInvoice)[];
20
- contacts?: (string | OsProjectContact)[];
21
- billing?: string;
22
- tasks?: (string | OsTask)[];
23
- }
24
-
25
- export interface OsProjectContact {
26
- id?: string;
27
- os_projects_id?: (string | OsProject) | null;
28
- contacts_id?: (string | Contact) | null;
29
- sort?: number | null;
30
- }
31
-
32
- export interface OsProjectFile {
33
- id?: string;
34
- }
35
-
36
- export interface OsProjectTemplate {
37
- id?: string;
38
- status?: string;
39
- sort?: number | null;
40
- user_created?: (string | User) | null;
41
- date_created?: string | null;
42
- user_updated?: (string | User) | null;
43
- date_updated?: string | null;
44
- name?: string | null;
45
- tasks?: { [key: string]: any } | null;
46
- description?: string | null;
47
- }
@@ -1,84 +0,0 @@
1
- import type { User, File } from '../system';
2
- import type {
3
- BlockDivider,
4
- BlockFaq,
5
- BlockLogocloud,
6
- BlockQuote,
7
- BlockRichtext,
8
- BlockStep,
9
- BlockTeam,
10
- BlockVideo,
11
- } from '../blocks';
12
- import type { Organization, Contact, OsDeal } from '.';
13
-
14
- export interface OsProposal {
15
- id?: string;
16
- sort?: number | null;
17
- user_created?: (string | User) | null;
18
- date_created?: string | null;
19
- user_updated?: (string | User) | null;
20
- date_updated?: string | null;
21
- name?: string | null;
22
- organization?: (string | Organization) | null;
23
- deal?: (string | OsDeal) | null;
24
- owner?: (string | User) | null;
25
- status?: string;
26
- contacts?: (string | OsProposalContact)[];
27
- activity?: string;
28
- approvals?: (string | OsProposalApproval)[];
29
- /** This is the content of your proposal */
30
- blocks?: (string | OsProposalBlock)[];
31
- }
32
-
33
- export interface OsProposalApproval {
34
- id?: string;
35
- status?: string;
36
- sort?: number | null;
37
- user_created?: (string | User) | null;
38
- date_created?: string | null;
39
- user_updated?: (string | User) | null;
40
- date_updated?: string | null;
41
- signature_text?: string | null;
42
- signature_image?: (string | File) | null;
43
- signature_type?: string | null;
44
- first_name?: string | null;
45
- last_name?: string | null;
46
- organization?: string | null;
47
- proposal?: (string | OsProposal) | null;
48
- email?: string | null;
49
- metadata?: { [key: string]: any } | null;
50
- ip_address?: string | null;
51
- esignature_agreement?: boolean | null;
52
- contact?: (string | Contact) | null;
53
- }
54
-
55
- export interface OsProposalBlock {
56
- id?: string;
57
- sort?: number | null;
58
- user_created?: (string | User) | null;
59
- date_created?: string | null;
60
- user_updated?: (string | User) | null;
61
- date_updated?: string | null;
62
- os_proposals_id?: (string | OsProposal) | null;
63
- item?:
64
- | (
65
- | string
66
- | BlockDivider
67
- | BlockFaq
68
- | BlockLogocloud
69
- | BlockQuote
70
- | BlockRichtext
71
- | BlockStep
72
- | BlockTeam
73
- | BlockVideo
74
- )[]
75
- | null;
76
- collection?: string | null;
77
- }
78
-
79
- export interface OsProposalContact {
80
- id?: string;
81
- os_proposals_id?: (string | OsProposal) | null;
82
- contacts_id?: (string | Contact) | null;
83
- sort?: number | null;
84
- }
@@ -1,19 +0,0 @@
1
- import type { User } from '../system';
2
-
3
- export interface OsSettings {
4
- id?: string;
5
- next_invoice_number?: number | null;
6
- next_proposal_number?: number | null;
7
- }
8
-
9
- export interface OsEmailTemplate {
10
- id?: string;
11
- sort?: number | null;
12
- user_created?: (string | User) | null;
13
- date_created?: string | null;
14
- user_updated?: (string | User) | null;
15
- date_updated?: string | null;
16
- subject?: string | null;
17
- body?: string | null;
18
- name?: string | null;
19
- }
@@ -1,12 +0,0 @@
1
- export interface OsSubscription {
2
- id?: string;
3
- quantity?: number | null;
4
- cancel_at_period_end?: boolean | null;
5
- created?: string | null;
6
- ended_at?: string | null;
7
- status?: string | null;
8
- cancel_at?: string | null;
9
- canceled_at?: string | null;
10
- trial_start?: string | null;
11
- trial_end?: string | null;
12
- }
@@ -1,34 +0,0 @@
1
- import type { User } from '../system';
2
- import type { Form } from '../content';
3
- import type { OsProject } from '.';
4
-
5
- export interface OsTaskFile {
6
- id?: string;
7
- os_tasks_id?: (string | OsTask) | null;
8
- directus_files_id?: (string | File) | null;
9
- sort?: number | null;
10
- }
11
-
12
- export interface OsTask {
13
- id?: string;
14
- status?: string;
15
- sort?: number | null;
16
- user_created?: (string | User) | null;
17
- date_created?: string | null;
18
- user_updated?: (string | User) | null;
19
- date_updated?: string | null;
20
- project?: (string | OsProject) | null;
21
- name?: string | null;
22
- description?: string | null;
23
- assigned_to?: (string | User) | null;
24
- due_date?: string | null;
25
- is_visible_to_client?: boolean;
26
- type?: string;
27
- date_completed?: string | null;
28
- responsibility?: string | null;
29
- start_date?: string | null;
30
- embed_url?: string | null;
31
- form?: (string | Form) | null;
32
- files?: (string | OsTaskFile)[];
33
- client_task_details?: string;
34
- }
@@ -1,13 +0,0 @@
1
- import type { User } from '../system';
2
-
3
- export interface OsTaxRate {
4
- id?: string;
5
- status?: 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
- name?: string | null;
12
- rate?: number | null;
13
- }
@@ -1,8 +0,0 @@
1
- // types/pageComponentMap.ts
2
- // Typed mapping for page name/slug -> async component loader
3
- // Simplified pageComponentMap: dynamic page-to-component mapping is optional.
4
- // Keeping an empty map avoids build-time resolution of many optional components
5
- // that may not be present in all installations.
6
- export const pageComponentMap = {}
7
-
8
- export default pageComponentMap
@@ -1,39 +0,0 @@
1
- // Shared form schema types used across the project
2
- export interface FormField {
3
- id?: string;
4
- field: string;
5
- name?: string;
6
- label?: string;
7
- placeholder?: string;
8
- help?: string;
9
- type?: string; // e.g. 'text', 'integer', 'textarea', 'select', 'checkbox', etc.
10
- interface?: string; // optional Directus interface name
11
- required?: boolean;
12
- width?: string | number;
13
- choices?: Array<any>;
14
- options?: Record<string, any> | Array<any>;
15
- meta?: Record<string, any>;
16
- [key: string]: any;
17
- }
18
-
19
- // Provide an ambient module so imports using the `~/types/schema` alias resolve
20
- declare module '~/types/schema' {
21
- export interface FormField {
22
- id?: string;
23
- field: string;
24
- name?: string;
25
- label?: string;
26
- placeholder?: string;
27
- help?: string;
28
- type?: string; // e.g. 'text', 'integer', 'textarea', 'select', 'checkbox', etc.
29
- interface?: string; // optional Directus interface name
30
- required?: boolean;
31
- width?: string | number;
32
- choices?: Array<any>;
33
- options?: Record<string, any> | Array<any>;
34
- meta?: Record<string, any>;
35
- [key: string]: any;
36
- }
37
- }
38
-
39
- export {};
@@ -1,151 +0,0 @@
1
- import type {
2
- BlockColumn,
3
- BlockCta,
4
- BlockFaq,
5
- BlockForm,
6
- BlockGallery,
7
- BlockHero,
8
- BlockHtml,
9
- BlockLogocloud,
10
- BlockQuote,
11
- BlockRichtext,
12
- BlockStep,
13
- BlockTeam,
14
- BlockTestimonial,
15
- BlockVideo,
16
- } from './blocks';
17
- import type {
18
- Globals,
19
- Navigation,
20
- Redirect,
21
- SEO,
22
- ProjectsSettings,
23
- PageSettings,
24
- ChatConfig,
25
- Event,
26
- Metric,
27
- } from './meta';
28
- import type { Page, PageBlock, Category, Form, Post, Team, Testimonial, PagesProjects, PagesBlog } from './content';
29
- import type { Inbox, HelpArticle, HelpCollection, HelpFeedback } from './help';
30
- import type { File, User } from './system';
31
- import type {
32
- Conversation,
33
- Message,
34
- Contact,
35
- Organization,
36
- OrganizationAddress,
37
- OrganizationContact,
38
- OsActivity,
39
- OsActivityContact,
40
- OsDealContact,
41
- OsDeal,
42
- OsDealStage,
43
- OsEmailTemplate,
44
- OsExpense,
45
- OsInvoiceItem,
46
- OsInvoice,
47
- OsItem,
48
- OsPayment,
49
- OsPaymentTerm,
50
- OsProjectContact,
51
- OsProjectFile,
52
- OsProject,
53
- OsProjectTemplate,
54
- OsProposalApproval,
55
- OsProposalBlock,
56
- OsProposalContact,
57
- OsProposal,
58
- OsSettings,
59
- OsSubscription,
60
- OsTaskFile,
61
- OsTask,
62
- OsTaxRate,
63
- } from './os';
64
-
65
- /** Directus Schema for SDK */
66
- export interface Schema {
67
- // Routes
68
- pages: Page[];
69
- pages_blocks: PageBlock[];
70
-
71
- // Content
72
- categories: Category[];
73
- forms: Form[];
74
- posts: Post[];
75
- team: Team[];
76
- testimonials: Testimonial[];
77
- pages_projects: PagesProjects;
78
- pages_blog: PagesBlog;
79
-
80
- // Blocks
81
- block_columns: BlockColumn[];
82
- block_cta: BlockCta[];
83
- block_faq: BlockFaq[];
84
- block_form: BlockForm[];
85
- block_gallery: BlockGallery[];
86
- block_hero: BlockHero[];
87
- block_html: BlockHtml[];
88
- block_logocloud: BlockLogocloud[];
89
- block_quote: BlockQuote[];
90
- block_richtext: BlockRichtext[];
91
- block_steps: BlockStep[];
92
- block_team: BlockTeam[];
93
- block_testimonial: BlockTestimonial[];
94
- block_video: BlockVideo[];
95
-
96
- // OS
97
- contacts: Contact[];
98
- organizations: Organization[];
99
- organization_addresses: OrganizationAddress[];
100
- organizations_contacts: OrganizationContact[];
101
- os_activities: OsActivity[];
102
- os_activity_contacts: OsActivityContact[];
103
- os_deal_contacts: OsDealContact[];
104
- os_deals: OsDeal[];
105
- os_deal_stages: OsDealStage[];
106
- os_email_templates: OsEmailTemplate[];
107
- os_expenses: OsExpense[];
108
- os_invoice_items: OsInvoiceItem[];
109
- os_invoices: OsInvoice[];
110
- os_items: OsItem[];
111
- os_payments: OsPayment[];
112
- os_payment_terms: OsPaymentTerm[];
113
- os_project_contacts: OsProjectContact[];
114
- os_project_files: OsProjectFile[];
115
- os_projects: OsProject[];
116
- os_project_templates: OsProjectTemplate[];
117
- os_proposal_approvals: OsProposalApproval[];
118
- os_proposal_blocks: OsProposalBlock[];
119
- os_proposal_contacts: OsProposalContact[];
120
- os_proposals: OsProposal[];
121
- os_settings: OsSettings;
122
- os_subscriptions: OsSubscription[];
123
- os_task_files: OsTaskFile[];
124
- os_tasks: OsTask[];
125
- os_tax_rates: OsTaxRate[];
126
-
127
- // Help
128
- help_collections: HelpCollection[];
129
- help_articles: HelpArticle[];
130
- help_feedback: HelpFeedback[];
131
- inbox: Inbox[];
132
- conversations: Conversation[];
133
- messages: Message[];
134
-
135
- // Meta
136
- globals: Globals;
137
- navigation: Navigation[];
138
- redirects: Redirect[];
139
- seo: SEO[];
140
- projects_settings: ProjectsSettings;
141
- page_settings: PageSettings;
142
- chat_config: ChatConfig;
143
-
144
- // Data
145
- metrics: Metric[];
146
- events: Event[];
147
-
148
- // System
149
- directus_files: File[];
150
- directus_users: User[];
151
- }